/* V1a: the phone page (/talk) — dark, full screen, the glowing blue orb + "SayMySite" and nothing else. */
:root {
  /* SD-11: every colour on /talk is a --talk-* token. This block is the light theme (exactly the colours used before);
     theme-dark.css overrides the paper surfaces, ink and the orb's glow for dark (docs/dark-mode.md). The page itself is
     the blue night in both themes. */
  --talk-night:#05070d; --talk-night-2:#0b1730; --talk-night-text:#e8eefc; --talk-night-hi:#f4f7ff; --talk-night-soft:#c9d6f2;
  --talk-night-text-2:#dbe5ff; --talk-night-dim:#a9b8da; --talk-night-dim-2:#9aa8c8; --talk-night-note:#b6c4e4; --talk-night-placeholder:#8d9bbd;
  --talk-night-edge:#5d7ab5; --talk-night-edge-2:#3a4f80; --talk-night-edge-3:#3a5288; --talk-night-edge-4:#2f4f8f; --talk-night-edge-5:#8fb2ef;
  --talk-night-field:#0d1528; --talk-night-field-2:#07112a; --talk-night-field-3:#0b1530; --talk-night-card:#0d1a36; --talk-night-field-text:#eef3ff;
  --talk-night-photo-text:#f4f6fb; --talk-night-meter:#2a3a63; --talk-night-focus:#6ea8ff; --talk-night-focus-2:#8fc3ff;
  --talk-night-glass:rgba(13, 21, 40, .6); --talk-night-glass-2:rgba(13, 21, 40, .85); --talk-night-veil:rgba(255,255,255,.08);
  --talk-blue:#1f5fd6; --talk-blue-deep:#142c86; --talk-focus:#1f5fd6; --talk-stop:#b3261e; --talk-meter-1:#ff7a5c; --talk-meter-2:#ffb547; --talk-meter-3:#34d1b4; --talk-white:#fff;
  --talk-orb-fill:radial-gradient(circle at 34% 30%, #d6ebff 0%, #7fb8ff 16%, #2f7bf5 42%, #1048b8 70%, #071f5c 100%);
  --talk-orb-think:conic-gradient(from 0deg, #1048b8, #5aa2ff, #1a5fd8, #9cd0ff, #1048b8);
  --talk-orb-glow:0 0 40px 6px rgba(47, 123, 245, .55), 0 0 120px 30px rgba(31, 111, 235, .28), inset 0 -18px 40px rgba(2, 12, 48, .55);
  --talk-orb-glow-small:0 0 10px 2px rgba(47, 123, 245, .45), inset 0 -6px 12px rgba(2, 12, 48, .5);
  --talk-ripple:rgba(80, 150, 255, .28);
  /* the brand's paper cards and SITE view bars */
  --talk-paper:#FFF8F0; --talk-page:#FFF8F0; --talk-bar:#FFF8F0; --talk-card:#fff; --talk-ink:#1B1530; --talk-line:#1B1530;
  --talk-shadow:#1B1530; --talk-on-accent:#1B1530; --talk-coral:#FF5A36; --talk-coral-d:#E2421F; --talk-butter:#FFE28A; --talk-teal:#0F9D8A;
  --talk-live-bg:#0F9D8A; --talk-live-fg:#1B1530; --talk-hair:#EADFD2; --talk-wait:#F6EFE7; --talk-muted:#5E5468; --talk-muted-2:#6E6577;
  /* the blue button ("Show me", "Send my link" …): white words 5.7:1 on the fill, the fill's edge 3.0:1 on the night card.
     Dark (theme-dark.css): the deeper blue fill (white 12.1:1, never a light block in dark) inside a light-blue edge (8.0:1). */
  --talk-btn:var(--talk-blue); --talk-btn-edge:var(--talk-blue);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
.talk-body {
  background: radial-gradient(120% 80% at 50% 38%, var(--talk-night-2) 0%, var(--talk-night) 62%) fixed, var(--talk-night);
  color: var(--talk-night-text); font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.talk {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 28px) 22px calc(env(safe-area-inset-bottom, 0px) + 18px);
}
.talk-name { margin: 0; font-size: 1.35rem; font-weight: 600; letter-spacing: .02em; color: var(--talk-night-hi); }
.talk-stage { overflow: visible; flex: 1 1 auto; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 300px; }

/* ---- the orb ---- */
.torb {
  position: relative; width: min(62vw, 270px); aspect-ratio: 1; border: 0; padding: 0; border-radius: 50%; cursor: pointer;
  /* rule 4: never a square behind the orb — no native button face, no tap flash, round all the way */
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; background-color: transparent; outline-offset: 10px;
  background: var(--talk-orb-fill);
  box-shadow: var(--talk-orb-glow);
  animation: breathe 4.2s ease-in-out infinite; transition: transform .25s ease;
  touch-action: manipulation;
}
.torb:focus-visible { outline: 3px solid var(--talk-night-hi); outline-offset: 10px; }
.torb:active { transform: scale(.97); }
.torb-glow { position: absolute; inset: -14%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(80, 150, 255, .0) 52%, var(--talk-ripple) 64%, rgba(80, 150, 255, 0) 74%);
  opacity: .0; }

[data-state=listening] .torb { animation: listen 1.1s ease-in-out infinite; }
[data-state=listening] .torb-glow { opacity: 1; animation: ripple 1.4s ease-out infinite; }
[data-state=thinking] .torb { animation: think 2.6s linear infinite; cursor: progress;
  background: var(--talk-orb-think); }
[data-state=speaking] .torb { animation: speak .62s ease-in-out infinite alternate; }
[data-state=speaking] .torb-glow { opacity: .8; }

@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes listen { 0%, 100% { transform: scale(1.04); } 50% { transform: scale(1.1); } }
@keyframes ripple { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes think { to { transform: rotate(360deg); } }
/* (no filter in these: it clips the glow to a visible rectangle) */
@keyframes speak { from { transform: scale(1); } to { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) {
  .torb, [data-state] .torb, [data-state] .torb-glow { animation: none; transition: none; }
  [data-state=listening] .torb { transform: scale(1.06); }
}

/* ---- words (what was just said), actions, typed fallback ---- */
.talk-caption { margin: 8px 0 0; max-width: 34rem; min-height: 4.4em; text-align: center; color: var(--talk-night-soft); font-size: 1.02rem;
  overflow-wrap: anywhere; }
.talk-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0 0; }
.talk-actions:empty { display: none; }
.talk-btn { display: inline-block; padding: 11px 20px; border-radius: 999px; background: var(--talk-btn); color: var(--talk-white); font-weight: 600;
  text-decoration: none; border: 2px solid var(--talk-btn-edge); font: inherit; font-weight: 600; cursor: pointer; }
.talk-btn:focus-visible, .talk-send:focus-visible, .talk-type:focus-visible, .talk-typed input:focus-visible { outline: 3px solid var(--talk-night-hi); outline-offset: 3px; }
.talk-btn.ghost { background: transparent; border: 1px solid var(--talk-night-edge); color: var(--talk-night-text); }
.talk-typed { display: flex; gap: 8px; width: 100%; max-width: 34rem; margin: 14px 0 0; }
.talk-typed[hidden] { display: none; }
.talk-typed input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--talk-night-edge-2); background: var(--talk-night-field);
  color: var(--talk-night-hi); font: inherit; font-size: 16px; /* 16px: iOS doesn't zoom the page on focus */ }
.talk-typed input::placeholder { color: var(--talk-night-placeholder); }
.talk-send { padding: 0 18px; border-radius: 999px; border: 0; background: var(--talk-blue); color: var(--talk-white); font: inherit; font-weight: 600; cursor: pointer; }
/* Batch 1 item 2: "Or type it" — a clear second button right under the orb (outlined pill, 44px+, 16px text) */
.talk-type { margin: 12px 0 0; min-height: 48px; padding: 10px 24px; border-radius: 999px; background: var(--talk-night-glass);
  border: 1.5px solid var(--talk-night-edge-5); color: var(--talk-night-hi); font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; }
.talk-type[hidden] { display: none; }
.talk-type[aria-expanded=true] { border-color: var(--talk-night-edge); color: var(--talk-night-soft); }

/* ---- V1b: the pairing code for watching on a computer ---- */
.talk-pair { margin: 12px 0 0; text-align: center; }
.talk-pair[hidden] { display: none; }
.talk-pair-where { margin: 0; color: var(--talk-night-dim); font-size: .95rem; }
.talk-pair-where strong { color: var(--talk-night-hi); }
.talk-code { margin: 6px 0 0; font: 700 2.4rem/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .3em;
  padding-left: .3em; color: var(--talk-white); }
.talk-legal { margin: 10px 0 0; font-size: 15px; color: var(--talk-night-dim-2); }   /* (Batch 1: 15px, the brand floor) */
.talk-legal a { color: var(--talk-night-dim); }
/* V2b: STOP TALKING while the orb speaks (the microphone stays closed until it stops or finishes) */
.talk-stop { margin: 10px 0 0; background: var(--talk-stop); }
.talk-stop[hidden] { display: none; }

/* Exit: always reachable, big enough to tap, clear of the notch */
.talk-exit { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 10px); left: calc(env(safe-area-inset-left, 0px) + 10px);
  z-index: 10; min-width: 44px; min-height: 44px; padding: 10px 14px; border-radius: 22px; color: var(--talk-night-text-2); text-decoration: none;
  font-size: 1rem; background: var(--talk-night-veil); }
.talk-exit:focus-visible { outline: 3px solid var(--talk-night-focus-2); outline-offset: 2px; }

/* ---- spec 2026-10-31 the phone app: TALK view / SITE view (one tap), the install coaching ---- */
.talk-view { margin: 12px 0 0; padding: 12px 22px; min-height: 44px; border-radius: 999px; border: 1px solid var(--talk-night-edge);
  background: var(--talk-night-glass-2); color: var(--talk-night-hi); font: inherit; font-weight: 600; cursor: pointer; }
.talk-view[hidden] { display: none; }
.talk-view:focus-visible { outline: 3px solid var(--talk-night-hi); outline-offset: 3px; }

/* SITE view (flow fixes 2026-11-27 rule 3a): a stacked column — the paper top bar, the site, Sky's cards (a sheet that
   pushes the site up), the paper bottom bar. Nothing of Sky's is fixed over the site. The rules are at the end. */
.talk-site[hidden] { display: none; }
.talk-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
[data-view=site] .talk-legal, [data-view=site] .talk-type, [data-view=site] .talk-pair,
[data-view=site] .talk-exit { display: none; }
/* the page's one heading stays for screen readers in SITE view (the top bar says what's on screen) */
[data-view=site] .talk-name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The install coaching card: the steps stay on screen while Sky says them. */
.talk-install { width: 100%; max-width: 30rem; margin: 12px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--talk-night-card);
  border: 1px solid var(--talk-night-edge-4); }
.talk-install[hidden] { display: none; }
.talk-outline-list { margin: 4px 0 0; padding-left: 1.2em; color: var(--talk-night-text-2); }
.talk-outline-list li { margin: 4px 0; line-height: 1.35; }
.talk-signup-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; }
.talk-signup-form input { flex: 1 1 12rem; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--talk-night-edge-3);
  background: var(--talk-night-field-2); color: var(--talk-white); font-size: 1rem; }
.talk-signup-form input:focus { outline: 3px solid var(--talk-night-focus); outline-offset: 1px; }
.talk-install-h { margin: 0 0 6px; font-size: 1.05rem; color: var(--talk-white); }
.talk-install-steps { margin: 0; padding-left: 1.3em; color: var(--talk-night-text-2); }
.talk-install-steps li { margin: 3px 0; }
.talk-install-steps strong { color: var(--talk-white); }
.talk-install-note { margin: 8px 0 10px; font-size: .9rem; color: var(--talk-night-note); }
.talk-install-btns { display: flex; gap: 10px; flex-wrap: wrap; }


/* Show Me is up (the engine's .ves-showme overlay, z-index 2147483000): the orb, small, above it in the corner. */
.showme-on .talk-stage { position: fixed; z-index: 2147483001; right: calc(env(safe-area-inset-right, 0px) + 16px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); width: auto; min-height: 0; flex: none; }
.showme-on .torb { width: 64px; }

/* ==== Batch 1 (2026-11-23): the starting point, build progress, "Ask a friend". The orb stays BLUE (owner's decision);
   the brand's paper + coral appear only on the starting point's phone frame, its tag and the progress pulse. ==== */
.talk-coral { background: var(--talk-coral); color: var(--talk-on-accent); border: 2px solid var(--talk-line); }   /* ink on coral: 5.7:1 (white fails AA) */
.talk-coral:focus-visible { outline: 3px solid var(--talk-night-hi); outline-offset: 3px; }
.talk-btn { min-height: 48px; }

/* 1: the paper phone frame with the coral "Starting point" tag */
.talk-starter { width: 100%; max-width: 30rem; margin: 14px 0 0; display: flex; flex-direction: column; align-items: center; }
.talk-starter[hidden] { display: none; }
.talk-tag { margin: 0 0 -12px; position: relative; z-index: 1; align-self: center; padding: 6px 14px; border-radius: 999px;
  background: var(--talk-coral); color: var(--talk-on-accent); border: 2px solid var(--talk-line); font-size: 15px; font-weight: 700; line-height: 1.3; text-align: center;
  max-width: 92%; transform: rotate(-1.5deg); }
.talk-phone { width: min(84vw, 320px); padding: 14px 10px 18px; border-radius: 38px; background: var(--talk-paper); border: 2px solid var(--talk-line);
  box-shadow: 4px 4px 0 var(--talk-shadow); }
.talk-phone-frame { display: block; width: 100%; height: min(62vh, 560px); border: 1.5px solid var(--talk-hair); border-radius: 24px; background: #fff; }
.talk-starter-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 14px 0 0; }
.talk-starter-form { display: grid; gap: 6px; margin: 6px 0 0; }
.talk-starter-form label { font-size: 15px; color: var(--talk-night-text-2); min-height: 44px; display: flex; align-items: flex-end; padding-bottom: 4px; }
.talk-starter-form input, .talk-share-url { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--talk-night-edge-3);
  background: var(--talk-night-field-2); color: var(--talk-white); font-size: 16px; width: 100%; }
.talk-starter-form input:focus, .talk-starter-form textarea:focus, .talk-share-url:focus { outline: 3px solid var(--talk-night-focus); outline-offset: 1px; }
/* Kind of business round: "What kind of business?" — 3 lines that grow with the words (talk.js), a quiet count under it;
   an app's town + phone are hidden (.st-local[hidden]: the label's display:flex would otherwise keep them) */
.talk-starter-form textarea { min-height: calc(3 * 1.4em + 22px); padding: 11px 14px; border-radius: 12px; border: 1px solid var(--talk-night-edge-3);
  background: var(--talk-night-field-2); color: var(--talk-white); font-size: 16px; line-height: 1.4; font-family: inherit; width: 100%; resize: none; overflow: hidden; }
.talk-starter-form textarea::placeholder { color: var(--talk-night-placeholder); }
.talk-count { margin: 0; font-size: 15px; color: var(--talk-night-dim); text-align: right; }   /* 8.7:1 on the night card */
.talk-starter-form .st-local[hidden] { display: none; }
.talk-starter-form .talk-btn { margin-top: 10px; justify-self: start; }
.talk-install-note { font-size: 15px; }

/* 5: the real build steps under the orb — finished ones checked, the current one a coral pulse */
.talk-progress { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px;
  color: var(--talk-night-text-2); text-align: left; }
.talk-progress[hidden] { display: none; }
.talk-progress li { display: flex; align-items: center; gap: 10px; min-height: 26px; }
.talk-progress li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; }
.talk-progress li.doing::before { background: var(--talk-coral); box-shadow: 0 0 0 0 rgba(255, 90, 54, .6); animation: coralpulse 1.4s ease-out infinite; }
.talk-progress li.done { color: var(--talk-night-note); }
.talk-progress li.done::before { content: "✓"; background: var(--talk-teal); color: var(--talk-white); font-size: 12px; font-weight: 800; line-height: 18px; text-align: center; }
@keyframes coralpulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 54, .6); } 100% { box-shadow: 0 0 0 10px rgba(255, 90, 54, 0); } }
@media (prefers-reduced-motion: reduce) { .talk-progress li.doing::before { animation: none; } }
[data-view=site] .talk-progress, [data-view=site] .talk-starter, [data-view=site] .talk-friend, [data-view=site] .talk-starter-ask { display: none; }

/* 6: "Ask a friend" */
.talk-friend { margin-top: 10px; }
.talk-share-url { margin: 4px 0 10px; font-size: 15px; }

/* ==== Batch 2 (2026-11-23): the orb stays BLUE (decision 1B); the cards are paper with ink and one coral action ==== */
/* 9: Sky checks her work — a small magnifier on the orb while she looks */
.is-looking .torb::after { content: ""; position: absolute; right: 4%; bottom: 4%; width: 26%; height: 26%; min-width: 40px; min-height: 40px;
  border-radius: 50%; border: 2px solid var(--talk-line); background: var(--talk-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='6' fill='none' stroke='%231B1530' stroke-width='2.6'/%3E%3Cpath d='M14.5 14.5 20 20' stroke='%231B1530' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E") center/60% no-repeat; }
/* 11 "Welcome back" + 8 "Put it back": paper cards */
.talk-paper { background: var(--talk-paper); color: var(--talk-ink); border: 2px solid var(--talk-line); box-shadow: 4px 4px 0 var(--talk-shadow); border-radius: 22px; text-align: left; }
.talk-paper .talk-install-h { color: var(--talk-ink); font-size: 1.15rem; line-height: 1.3; }
.tw-earlier { margin: 0 0 4px; }
.tw-earlier a { display: inline-flex; min-height: 44px; align-items: center; color: var(--talk-ink); font-weight: 700; font-size: 15px; text-underline-offset: 3px; }
.tw-earlier a[hidden] { display: none; }
.tw-lines { margin: 4px 0 0; padding-left: 1.2em; font-size: 16px; }
.tw-lines li { margin: 4px 0; }
.tw-q { margin: 10px 0 6px; font-weight: 700; font-size: 16px; }
.tw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tw-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--talk-line);
  background: var(--talk-card); color: var(--talk-ink); font: 700 15px/1.2 system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.tw-chip:focus-visible, .talk-paper a:focus-visible, .talk-paper button:focus-visible { outline: 3px solid var(--talk-focus); outline-offset: 2px; }
.tw-cost { margin: 10px 0 0; font-size: 15px; color: var(--talk-muted); }
.tw-cost[hidden] { display: none; }
@media (max-width: 700px) { .tw-desktop { display: none; } }
.talk-putback .pb-row { display: flex; gap: 12px; align-items: center; margin: 6px 0 0; }
.talk-putback .pb-text { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.talk-putback .v-frame { display: block; flex: none; width: 76px; aspect-ratio: 390/844; border: 2px solid var(--talk-line); border-radius: 12px; overflow: hidden; background: var(--talk-card); }
.talk-putback .v-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.talk-putback .v-frame-wait { background: linear-gradient(180deg, var(--talk-card) 0 18%, var(--talk-wait) 18% 22%, var(--talk-card) 22% 60%, var(--talk-wait) 60% 64%, var(--talk-card) 64%); }
.talk-putback .v-now { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--talk-butter); color: var(--talk-on-accent); border: 1.5px solid var(--talk-line); font-size: 15px; font-weight: 700; }
.talk-putback .v-now[hidden] { display: none; }
.talk-putback .v-tag { color: var(--talk-muted); font-size: 15px; font-weight: 600; }
.talk-putback .pb-btns { margin-top: 12px; }
.talk-putback .pb-keep { background: var(--talk-coral); color: var(--talk-on-accent); border: 2px solid var(--talk-line); text-decoration: none; }
.talk-putback .pb-keep[hidden], .talk-putback .pb-not[hidden] { display: none; }
.talk-putback .pb-not { background: transparent; color: var(--talk-ink); border: 2px solid transparent; text-decoration: underline; text-underline-offset: 3px; }
[data-view=site] .talk-welcome { display: none; }
/* ==== Grok's phase-1 fixes (2026-11-23) ==== */
/* "Or type it": a big thumb-sized button — phone: the width less 24px a side (342px at 390), 56px tall, 17px semibold,
   a keyboard icon on the left; desktop: 320px, centred. The quiet line under it says Sky answers on screen too. */
.talk-typeit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: calc(100vw - 48px); max-width: 100%;
  min-height: 56px; margin: 14px 0 0; padding: 0 20px; border-radius: 999px; font-size: 17px; font-weight: 600; line-height: 1.2; }
.talk-typeit[hidden] { display: none; }
.talk-kbd { flex: none; width: 24px; height: 24px; }
.talk-type-note { margin: 8px 0 0; font-size: 15px; color: var(--talk-night-dim); text-align: center; }   /* 8.9:1 on the page's dark */
@media (min-width: 600px) { .talk-typeit { width: 320px; } }
[data-view=site] .talk-type-note { display: none; }

/* "Ask a friend": the link, two butter chips, a coral Share link, a quiet "Stop sharing now" (brand tokens: app.css) */
.talk-share-label { display: flex; align-items: flex-end; min-height: 44px; padding-bottom: 4px; font-size: 15px; color: var(--talk-night-text-2); }
.share-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.share-chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--talk-butter); color: var(--talk-on-accent);
  border: 1.5px solid var(--talk-line); font-size: 15px; font-weight: 700; line-height: 1.3; }
.talk-btn:disabled { opacity: .55; cursor: not-allowed; }
.share-stop { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--talk-night-soft); font: inherit; font-size: 15px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.share-stop[hidden] { display: none; }
.share-stop:focus-visible, .talk-install-note:focus-visible { outline: 3px solid var(--talk-night-hi); outline-offset: 2px; }

/* Round 2 (Grok's screenshot check): the starting-point tag sits ABOVE the phone frame (12px gap, never over the site's
   name), on one line: 15px, tighter sides, at most 342px, a slight tilt. */
.talk-tag { margin: 0 0 15px; padding: 6px 9px; white-space: nowrap; max-width: 342px; letter-spacing: -.01em; transform: rotate(-1deg); }

/* Batch 3 item 18 "Add a photo" by the orb (camera or Photos) + item 14 "Before + After"; Sky's cards (items 12 + 14).
   The orb stays BLUE here (1B); the cards are paper. */
.talk-photo { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; width:100%; max-width:420px; margin:6px auto 0; }
.talk-photo .talk-type-note { flex-basis:100%; text-align:center; margin:0; }
.talk-addphoto, .talk-babtn { flex:1 1 150px; display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:52px; white-space:nowrap; padding-left:12px; padding-right:12px; }
.talk-photo-msg:empty { display:none; }
.talk-photo-list { list-style:none; padding:0; margin:0; width:100%; display:grid; gap:8px; }
.talk-photo-list .b3-photo { display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:16px; background:var(--talk-night-veil); color:var(--talk-night-photo-text); }
.talk-photo-list .b3-photo img { width:64px; height:64px; object-fit:cover; border-radius:12px; flex:none; }
.talk-photo-list .msg-body { margin:0; font-size:16px; }
.talk-b3 { width:100%; max-width:460px; margin:0 auto; }
.talk-b3 .b3c { margin:12px 0 0; padding:16px; border-radius:20px; background:var(--talk-paper); color:var(--talk-ink); border:2px solid var(--talk-line); }
.talk-b3 .b3c-quote { margin:0; padding:12px 14px; background:var(--talk-card); border:1.5px solid var(--talk-hair); border-radius:14px; }
.talk-b3 .b3c-quote blockquote { margin:0 0 6px; font-size:16px; }
.talk-b3 .b3c-stars { margin:0 0 6px; color:var(--talk-coral-d); letter-spacing:2px; font-size:18px; }
.talk-b3 .b3c-by, .talk-b3 .muted { color:var(--talk-muted-2); font-size:15px; }
.talk-b3 .b3c-btns { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin:12px 0 4px; }
.talk-b3 .br-btn { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 20px; border-radius:999px; border:2px solid var(--talk-line);
  background:var(--talk-card); color:var(--talk-ink); font:700 16px/1.2 system-ui, -apple-system, sans-serif; text-decoration:none; cursor:pointer; }
.talk-b3 .br-primary { background:var(--talk-coral); }
.talk-b3 .b3c-quiet { min-height:44px; display:inline-flex; align-items:center; background:none; border:0; padding:0 4px; color:var(--talk-ink);
  font:700 15px system-ui, sans-serif; text-decoration:underline; cursor:pointer; }
.talk-b3 .b3c-tag { display:inline-block; margin:0 0 8px; padding:3px 10px; border-radius:999px; background:var(--talk-butter); color:var(--talk-on-accent); border:1.5px solid var(--talk-line); font-weight:700; font-size:15px; }
.talk-b3 .b3c-ask { margin:0; font-weight:800; font-size:17px; }
.talk-b3 .b3c-status, .talk-b3 .small { font-size:15px; margin:6px 0 0; }
.talk-b3 .b3c-status:empty { display:none; }
.talk[data-view=site] .talk-photo { display:none; }

/* the new sign-in: Keep my site's optional password (show/hide + the strength meter from signin.js) */
.talk-pw { flex: 1 1 100%; margin: 6px 0 0; }
.talk-pw summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; font-size: 16px; }
.talk-pw summary:focus-visible { outline: 3px solid var(--talk-night-focus); outline-offset: 2px; border-radius: 8px; }
.talk-pw-label { display: flex; align-items: flex-end; min-height: 44px; font-size: 15px; margin: 0 0 6px; }
.talk-pw .si-pw { position: relative; display: flex; }
.talk-pw .si-pw input { flex: 1; min-height: 48px; padding: 0 96px 0 14px; border-radius: 12px; border: 1px solid var(--talk-night-edge-3); background: var(--talk-night-field-3);
  color: var(--talk-night-field-text); font: inherit; font-size: 17px; }
.talk-pw .si-pw input:focus { outline: 3px solid var(--talk-night-focus); outline-offset: 1px; }
.talk-pw .si-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 44px; min-width: 76px; border: 0;
  border-radius: 10px; background: var(--talk-night-field-3); color: var(--talk-night-field-text); font: 700 16px system-ui, sans-serif; cursor: pointer; }
.talk-pw .si-eye:focus-visible { outline: 3px solid var(--talk-night-focus); outline-offset: -3px; }
.talk-pw .si-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 4px; }
.talk-pw .si-meter i { display: block; height: 6px; border-radius: 99px; background: var(--talk-night-meter); }
.talk-pw .si-meter[data-score="1"] i:nth-child(-n+1) { background: var(--talk-meter-1); }
.talk-pw .si-meter[data-score="2"] i:nth-child(-n+2) { background: var(--talk-meter-2); }
.talk-pw .si-meter[data-score="3"] i:nth-child(-n+3), .talk-pw .si-meter[data-score="4"] i { background: var(--talk-meter-3); }
.talk-pw .si-meter-text { font-size: 15px; margin: 2px 0 0; }

/* ==== Flow fixes (Grok, 2026-11-27) ==== */
.talk { overflow-x: clip; }   /* the big orb's ripple never adds sideways scroll (the glow itself is never boxed in) */
/* TALK view: the way home ("‹ Your sites" for an owner, Exit / Sign in otherwise) — 44px, 15px+ */
.talk-exit { display: inline-flex; align-items: center; font-weight: 600; }
.talk-plain { background: var(--talk-card); color: var(--talk-ink); border: 2px solid var(--talk-line); text-decoration: none; }
.talk-plain:focus-visible { outline: 3px solid var(--talk-focus); outline-offset: 2px; }
.talk-paper .talk-btn { text-decoration: none; }
.talk-firstdraft .talk-install-btns { margin-top: 12px; }
.talk-firstdraft:focus { outline: none; }
.talk-firstdraft:focus-visible { outline: 3px solid var(--talk-focus); outline-offset: 3px; }
/* the SITE view bars and the next step only exist in SITE view */
.talk-sitebar, .talk-dockbg, .talk-next { display: none; }

/* SITE view, rule 3a: top bar / the site / Sky's cards (a sheet: it pushes the site up) / bottom bar. One grid, every
   Sky element in its own cell — nothing positioned over the site (qa/flow-shots.mjs checks the rectangles). */
.talk[data-view=site] {
  display: grid; height: 100vh; height: 100dvh; min-height: 0; padding: 0; overflow: hidden; align-items: stretch;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-rows: auto minmax(0, 1fr) repeat(8, auto) auto auto;
  background: var(--talk-page); color: var(--talk-ink);
}
.talk[data-view=site] > * { grid-column: 1 / -1; min-width: 0; }
.talk[data-view=site] .talk-sitebar { grid-row: 1; display: flex; align-items: center; gap: 8px; margin: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 6px) calc(env(safe-area-inset-right, 0px) + 12px) 6px calc(env(safe-area-inset-left, 0px) + 8px);
  background: var(--talk-bar); color: var(--talk-ink); border-bottom: 2px solid var(--talk-line); }
.ts-back { display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 0 14px 0 10px; border-radius: 999px;
  border: 2px solid var(--talk-line); background: var(--talk-card); color: var(--talk-ink); font: 700 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-decoration: none; cursor: pointer; white-space: nowrap; }
.ts-back:focus-visible, .talk[data-view=site] .talk-caption:focus-visible { outline: 3px solid var(--talk-focus); outline-offset: 2px; }
.ts-title { flex: 1; min-width: 0; margin: 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-what { font-weight: 800; }
.ts-chip { flex: none; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--talk-line); background: var(--talk-butter); color: var(--talk-on-accent);
  font-size: 15px; font-weight: 800; line-height: 1.2; }
.ts-chip.is-live { background: var(--talk-live-bg); color: var(--talk-live-fg); }   /* ink on teal: AA */
.talk[data-view=site] .talk-site { grid-row: 2; position: static; min-height: 0; background: #fff; }
/* Sky's cards in SITE view: rows of their own between the site and the bottom bar (paper, ink, one coral action) */
.talk[data-view=site] .talk-outline { grid-row: 3; }
.talk[data-view=site] .talk-putback { grid-row: 4; }
.talk[data-view=site] .talk-share { grid-row: 5; }
.talk[data-view=site] .talk-b3 { grid-row: 6; }
.talk[data-view=site] .talk-signup { grid-row: 7; }
.talk[data-view=site] .talk-firstdraft { grid-row: 8; }
.talk[data-view=site] .talk-actions { grid-row: 9; margin: 8px 12px 0; justify-content: flex-start; }
.talk[data-view=site] .talk-typed { grid-row: 10; width: auto; margin: 8px 12px 0; }
.talk[data-view=site] .talk-install, .talk[data-view=site] .talk-b3:not(:empty) {
  width: auto; max-width: none; margin: 8px 12px 0; max-height: 34vh; overflow: auto;
  background: var(--talk-card); color: var(--talk-ink); border: 2px solid var(--talk-line); border-radius: 18px; box-shadow: none; }
.talk[data-view=site] .talk-b3:not(:empty) { padding: 0 12px 12px; }
.talk[data-view=site] .talk-b3 .b3c { border: 0; padding: 12px 0 0; margin: 0; background: transparent; }
.talk[data-view=site] .talk-install-h, .talk[data-view=site] .talk-outline-list, .talk[data-view=site] .talk-share-label,
.talk[data-view=site] .talk-install-note, .talk[data-view=site] .share-stop { color: var(--talk-ink); }
.talk[data-view=site] .talk-install .talk-btn.ghost { color: var(--talk-ink); border: 2px solid var(--talk-line); background: var(--talk-card); }
.talk[data-view=site] .talk-signup-form input, .talk[data-view=site] .talk-share-url { background: var(--talk-card); color: var(--talk-ink); border: 2px solid var(--talk-line); }
.talk[data-view=site] .talk-welcome, .talk[data-view=site] #install, .talk[data-view=site] .talk-starter-ask,
.talk[data-view=site] .talk-photo, .talk[data-view=site] .talk-progress, .talk[data-view=site] .talk-starter,
.talk[data-view=site] .talk-friend, .talk[data-view=site] .talk-type-note { display: none; }
.talk[data-view=site] .talk-install[hidden], .talk[data-view=site] .talk-b3:empty, .talk[data-view=site] .talk-actions:empty { display: none; }
/* the bottom bar: Sky's one line (tap: the whole of it) or "Stop talking" while she speaks · the small blue orb ·
   "Talk to Sky" · the coral next step */
.talk[data-view=site] .talk-dockbg { display: block; grid-row: 11 / 13; grid-column: 1 / -1; margin-top: 8px; background: var(--talk-bar); border-top: 2px solid var(--talk-line);
  pointer-events: none; z-index: 0; }
/* the bar's own controls paint above its paper (grid items stack by z-index) */
.talk[data-view=site] .talk-caption, .talk[data-view=site] .talk-stop, .talk[data-view=site] .talk-stage,
.talk[data-view=site] .talk-view, .talk[data-view=site] .talk-next { z-index: 1; }
.talk[data-view=site] .talk-caption { grid-row: 11; grid-column: 1 / 3; align-self: center; position: static;
  margin: 16px 6px 0 calc(env(safe-area-inset-left, 0px) + 14px); padding: 0; min-height: 44px; max-height: none; line-height: 44px;
  text-align: left; font-size: 15px; color: var(--talk-ink); background: none; border-radius: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.talk[data-view=site] .talk-caption.is-open { white-space: normal; line-height: 1.4; max-height: 30vh; overflow: auto; padding: 10px 0; }
.talk[data-view=site] .talk-caption:empty { display: block; }
.talk[data-view=site].is-speaking .talk-caption { display: none; }
.talk[data-view=site] .talk-stop { grid-row: 11; grid-column: 1 / 3; justify-self: start; align-self: center; position: static;
  margin: 16px 6px 0 calc(env(safe-area-inset-left, 0px) + 12px); min-height: 44px; padding: 0 18px; color: var(--talk-white); }
.talk[data-view=site] .talk-stop[hidden] { display: none; }
.talk[data-view=site] .talk-stage { grid-row: 11; grid-column: 3; position: static; width: auto; min-height: 0; flex: none;
  overflow: visible; align-self: center; margin: 16px calc(env(safe-area-inset-right, 0px) + 14px) 0 6px; }
.talk[data-view=site] .torb { width: 52px; box-shadow: var(--talk-orb-glow-small); }
.talk[data-view=site] .torb-glow { inset: -10%; }
.talk[data-view=site] .torb:focus-visible { outline: 3px solid var(--talk-focus); outline-offset: 4px; }
.talk[data-view=site].is-looking .torb::after { min-width: 22px; min-height: 22px; right: -4px; bottom: -4px; }
.talk[data-view=site] .talk-view { grid-row: 12; grid-column: 1 / 2; justify-self: stretch; position: static; transform: none;
  margin: 8px 6px calc(env(safe-area-inset-bottom, 0px) + 10px) calc(env(safe-area-inset-left, 0px) + 12px);
  min-height: 48px; background: var(--talk-card); color: var(--talk-ink); border: 2px solid var(--talk-line); font-size: 16px; }
.talk[data-view=site] .talk-next:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; grid-row: 12; grid-column: 2 / -1;
  margin: 8px calc(env(safe-area-inset-right, 0px) + 12px) calc(env(safe-area-inset-bottom, 0px) + 10px) 6px; padding: 0 18px;
  white-space: nowrap; font-size: 16px; text-decoration: none; box-shadow: 3px 3px 0 var(--talk-shadow); }
.talk[data-view=site].no-next .talk-view { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .talk[data-view=site] .talk-view { justify-self: start; padding: 0 28px; }
}

/* ==== Flow round 2 (Grok, 2026-11-27) (5): the first-draft moment — the card's own three ways on, nothing else beside it.
   While it shows, the separate See your site / Ask a friend buttons and the photo row (Add a photo · Before + After) wait;
   "Or type it" stays. talk.js endFirstDraft() brings them back once the card is acted on or passed by. */
.talk.is-firstdraft #view-toggle, .talk.is-firstdraft #friend-btn, .talk.is-firstdraft #talk-photo { display: none !important; }
.talk-firstdraft .talk-install-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.talk-firstdraft .talk-install-btns .talk-btn { flex: 1 1 auto; min-height: 48px; padding: 12px 14px; font-size: 16px; text-align: center; white-space: nowrap; }
.talk-firstdraft .fd-more { margin: 6px 0 0; text-align: center; }
.fd-sites { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 16px; font-weight: 700; color: var(--talk-ink);
  text-decoration: underline; text-underline-offset: 3px; }
.fd-sites:focus-visible { outline: 3px solid var(--talk-focus); outline-offset: 2px; }
