/* r52g: Google Sheets + Docs page (#m/google) and settings row */
.g52 { gap: 16px; padding-bottom: 8px; }
.g52 .g52h { text-align: center; margin-top: 4px; }
.g52 .g52s { text-align: center; max-width: 40ch; margin: -6px auto 0; }
.g52art { position: relative; width: 150px; height: 104px; margin: 8px auto 0; }
.g52fi { position: absolute; top: 10px; width: 64px; height: 78px; border-radius: 14px; display: grid; place-items: center; box-shadow: var(--shadow-s); transition: transform 500ms var(--spring); }
.g52fi.s { inset-inline-end: 8px; background: oklch(0.93 0.07 150); color: oklch(0.42 0.12 150); transform: rotate(8deg); }
.g52fi.d { inset-inline-start: 8px; background: oklch(0.93 0.05 250); color: oklch(0.42 0.13 255); transform: rotate(-8deg); }
.g52g { position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow); }
.g52art.on .g52g { background: var(--ok); color: #fff; }
.g52art.on .g52g svg { width: 24px; height: 24px; stroke-width: 3; }
.g52art.pop .g52g { animation: g52pop 700ms var(--bouncy) both; }
.g52art.pop .g52fi.s { animation: g52s 700ms var(--spring) both; } .g52art.pop .g52fi.d { animation: g52d 700ms var(--spring) both; }
@keyframes g52pop { from { scale: 0.2; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes g52s { from { transform: rotate(0) translateX(-30px); opacity: 0; } to { transform: rotate(8deg); opacity: 1; } }
@keyframes g52d { from { transform: rotate(0) translateX(30px); opacity: 0; } to { transform: rotate(-8deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .g52art.pop * { animation: none !important; } }
.g52f { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 6px; }
.g52f > div { display: flex; align-items: center; gap: 14px; padding: 10px 12px; }
.g52f b, .g52file b, .g52warn b { display: block; font-weight: var(--w-strong); }
.g52f small, .g52file small, .g52warn small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.g52files { display: grid; gap: 10px; }
.g52file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 64px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; transition: transform 120ms var(--spring); }
.g52file > span:nth-child(2) { flex: 1; min-width: 0; }
.g52file > svg { color: var(--muted); flex: none; }
.g52file:active { transform: scale(0.98); }
.g52warn { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--warn-soft); color: var(--fg); }
.g52warn > svg { color: oklch(0.55 0.13 65); flex: none; margin-top: 2px; }
.g52when { text-align: center; }
.g52bot { display: grid; gap: 6px; }
.g52go { background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); gap: 10px; }
.g52go svg { flex: none; }
.g52off { color: var(--no-ink); }
.btn.busy { opacity: 0.6; pointer-events: none; }
.g52row .g52dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
@media (min-width: 1000px) {
  .wizard.g52 { max-width: 520px; margin: 4vh auto 0; }
  .g52 .spacer { display: none; }
  .g52 .bottom.g52bot { position: static; inset: auto; padding: 4px 0 0; background: none; box-shadow: none; max-width: none; width: auto; transform: none; }
  .g52files { grid-template-columns: 1fr 1fr; }
}
/* r90/r91: calendar sheet: brand tile goes from grey to colour + a green tick when that app is connected */
.cal91 .cal91i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--sunk); color: var(--muted); transition: background 300ms, color 300ms; }
.cal91 .cal91i.on { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-s); color: var(--fg); }
.cal91 .cap.ok91 { color: var(--ok); font-weight: var(--w-strong); }
.cal91 .cap.w91 { color: oklch(0.55 0.12 65); }
.cal91ok { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; animation: cal91pop 450ms var(--bouncy) both; }
.cal91ok .ic svg { width: 16px; height: 16px; stroke-width: 3; }
@keyframes cal91pop { from { scale: 0.3; opacity: 0; } to { scale: 1; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cal91ok { animation: none; } }
.li.cal91.busy { opacity: 0.6; pointer-events: none; }
.cal90t { margin-top: 12px; background: var(--sunk); border-radius: 14px; padding: 4px 12px; }
.cal90t summary { cursor: pointer; font-weight: var(--w-strong); min-height: 44px; display: flex; align-items: center; color: var(--muted); }
.cal90r { display: flex; align-items: center; gap: 10px; min-height: 44px; border-top: 1px solid var(--line); }
.list .cal91 + .cal91 { border-top: 1px solid var(--line); }
