:root {
  color-scheme: dark;
  --ink: #f5f1ff;
  --muted: #a9a4b7;
  --bg: #090714;
  --surface: rgba(22, 18, 38, 0.78);
  --surface-strong: #171226;
  --line: rgba(255, 255, 255, 0.1);
  --teal: #4ecdc4;
  --teal-deep: #1b8c90;
  --orange: #f7941d;
  --purple: #7d477f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden; color: var(--ink); background: radial-gradient(circle at 50% -20%, #2a1942 0, transparent 42%), var(--bg); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.ambient { position: fixed; z-index: -1; border-radius: 999px; filter: blur(100px); opacity: .17; pointer-events: none; }
.ambient-one { width: 420px; height: 420px; background: var(--teal); top: 25%; right: -180px; }
.ambient-two { width: 360px; height: 360px; background: var(--orange); bottom: -190px; left: -140px; }
.app-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand strong { display: block; font-size: 16px; letter-spacing: .24em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .16em; }
.brand-logo { display: grid; flex: 0 0 54px; width: 54px; height: 46px; place-items: center; filter: drop-shadow(0 0 13px rgba(78,205,196,.2)); }
.brand-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo-fragment img, .mini-fragment img { position: absolute; max-width: none; width: 315%; left: -102%; top: -60%; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.ui-language { display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); }
.ui-language button { display: grid; width: 32px; height: 30px; padding: 0; place-items: center; border: 0; border-radius: 999px; background: transparent; font-size: 17px; cursor: pointer; filter: saturate(.55); opacity: .58; transition: .2s ease; }
.ui-language button:hover { filter: saturate(1); opacity: 1; }
.ui-language button.is-active { background: rgba(78,205,196,.14); box-shadow: inset 0 0 0 1px rgba(78,205,196,.3); filter: saturate(1); opacity: 1; }
.connection-badge, .icon-button, .control-button { border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 999px; padding: 10px 14px; color: var(--muted); font-size: 12px; }
.connection-badge::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-right: 8px; box-shadow: 0 0 10px currentColor; }
.connection-badge.is-live::before { background: var(--teal); }
.icon-button, .control-button { cursor: pointer; }
.icon-button:hover, .control-button:hover:not(:disabled) { color: var(--ink); border-color: rgba(78,205,196,.38); }
.control-button:disabled { opacity: .35; cursor: not-allowed; }
.hero { min-height: 680px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; padding: 76px 0 90px; }
.hero-copy { min-width: 0; }
.eyebrow { margin: 0 0 20px; color: var(--teal); font-size: 11px; font-weight: 760; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 24px; height: 1px; vertical-align: middle; margin-right: 10px; background: var(--teal); }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(58px, 7vw, 96px); line-height: .94; letter-spacing: -.055em; }
.hero h1 .into-word { color: var(--ink); }
.hero h1 em { color: var(--teal); font-weight: 400; }
.hero-description { max-width: 570px; margin: 30px 0 26px; color: var(--muted); font-size: 17px; line-height: 1.72; }
.privacy-line { color: #cdc8d7; font-size: 12px; letter-spacing: .035em; }
.privacy-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 14px var(--teal); }
.orb-stage { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.timer { margin-bottom: 14px; color: rgba(255,255,255,.52); font-variant-numeric: tabular-nums; font-size: 13px; letter-spacing: .14em; }
.orb { --level: .16; position: relative; width: min(360px, 78vw); aspect-ratio: 1; border: 0; border-radius: 50%; background: transparent; cursor: pointer; isolation: isolate; }
.orb-rings, .orb-rings::before, .orb-rings::after { position: absolute; inset: 1%; border: 1px solid rgba(78,205,196,.22); border-radius: 50%; content: ""; transition: .35s ease; }
.orb-rings::before { inset: -7%; opacity: .62; }
.orb-rings::after { inset: -15%; opacity: .25; }
.orb-core { position: absolute; inset: 10%; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.24), transparent 28%), linear-gradient(145deg, rgba(78,205,196,.82), rgba(18,87,93,.94) 55%, rgba(45,23,63,.98)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.32), inset -18px -24px 45px rgba(2,10,19,.44), 0 0 calc(40px + var(--level) * 90px) rgba(78,205,196,.34); transition: background .35s ease, box-shadow .12s linear, transform .2s ease; }
.orb-core::after { position: absolute; z-index: 1; inset: 0; border-radius: inherit; background: radial-gradient(circle at 35% 28%, rgba(255,210,145,.18), transparent 28%), linear-gradient(145deg, rgba(247,148,29,.24), rgba(247,94,29,.68)); content: ""; opacity: 0; pointer-events: none; }
.orb:hover .orb-core { transform: scale(1.018); }
.logo-fragment { position: absolute; z-index: 2; inset: 0; opacity: .62; mix-blend-mode: screen; filter: saturate(.88) contrast(1.08); }
.logo-fragment img { width: 330%; left: -110%; top: -58%; }
.orb-sheen { position: absolute; z-index: 3; width: 58%; height: 32%; left: 18%; top: 9%; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.25), transparent); filter: blur(6px); transform: rotate(-13deg); }
.orb-status { position: absolute; z-index: 3; left: 50%; bottom: 21%; transform: translateX(-50%); width: max-content; max-width: 76%; color: rgba(255,255,255,.9); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; text-shadow: 0 2px 8px #000; }
.orb.is-recording .orb-core { animation: recording-color 2.5s ease-in-out infinite; transform: scale(calc(1 + var(--level) * .04)); }
.orb.is-recording .orb-core::after { animation: orange-breathe 2.5s ease-in-out infinite; }
.orb.is-recording .orb-rings { animation: ring-pulse 1.55s ease-out infinite; border-color: rgba(247,148,29,.52); }
.orb.is-paused .orb-core { background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.24), transparent 28%), linear-gradient(145deg, #ffb54e, var(--orange) 45%, #5e2a25); box-shadow: inset 0 0 0 1px rgba(255,255,255,.38), 0 0 60px rgba(247,148,29,.36); }
.orb.is-ready .orb-core { background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.28), transparent 28%), linear-gradient(145deg, #63e5dd, #267f87 58%, #4a285d); }
@keyframes recording-color { 0%,100% { background-color: var(--teal); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 0 46px rgba(78,205,196,.42); } 50% { background-color: var(--orange); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 0 76px rgba(247,148,29,.48); } }
@keyframes orange-breathe { 0%,100% { opacity: 0; } 50% { opacity: .66; } }
@keyframes ring-pulse { 0% { transform: scale(.94); opacity: .9; } 80%,100% { transform: scale(1.15); opacity: 0; } }
.consent-script { width: min(470px, 96%); margin-top: 28px; padding: 15px 17px; border: 1px solid rgba(78,205,196,.22); border-radius: 16px; background: rgba(78,205,196,.055); text-align: left; }
.consent-script-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.consent-script-head strong { color: var(--teal); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.consent-script-head select { width: auto; height: 34px; min-height: 0; padding: 0 28px 0 10px; }
.consent-script p { margin: 11px 0 0; color: #d9d3e1; font-size: 11px; line-height: 1.55; }
.consent-line { width: min(430px, 90%); margin: 14px auto 0; color: #8f899f; font-size: 11px; line-height: 1.6; text-align: center; }
.consent-confirm { display: flex; align-items: flex-start; justify-content: center; gap: 9px; cursor: pointer; }
.consent-confirm input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; accent-color: var(--teal); }
.record-controls { display: flex; gap: 9px; margin-top: 16px; }
.workspace { margin-bottom: 94px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(27,22,44,.95), rgba(11,9,22,.9)); box-shadow: var(--shadow); }
.workspace-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.workspace h2, .state-board h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px,4vw,48px); font-weight: 400; letter-spacing: -.03em; }
.session-fields { display: grid; grid-template-columns: 1fr 260px; gap: 16px; margin: 30px 0; }
label span { display: block; margin: 0 0 9px; color: var(--muted); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
input, select, textarea { width: 100%; color: var(--ink); border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.045); }
input, select { height: 48px; padding: 0 14px; }
textarea { min-height: 300px; resize: vertical; padding: 17px; line-height: 1.65; }
.mode-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.mode-card { min-height: 132px; padding: 16px; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); cursor: pointer; transition: .2s ease; }
.mode-card:hover { transform: translateY(-2px); border-color: rgba(78,205,196,.33); }
.mode-card.is-selected { border-color: rgba(78,205,196,.7); background: rgba(78,205,196,.08); box-shadow: inset 0 0 0 1px rgba(78,205,196,.15); }
.mode-card b { display: block; margin-bottom: 18px; color: var(--teal); font-size: 10px; letter-spacing: .15em; }
.mode-card strong { display: block; margin-bottom: 8px; font-size: 14px; }
.mode-card span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.whatsapp-options { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 16px 0 0; padding: 16px; border: 1px solid rgba(78,205,196,.22); border-radius: 16px; background: rgba(78,205,196,.045); }
.whatsapp-options legend { padding: 0 8px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.whatsapp-options label { display: flex; align-items: center; gap: 7px; }
.whatsapp-options input { width: 16px; height: 16px; min-height: 0; accent-color: var(--teal); }
.whatsapp-options p { flex-basis: 100%; margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.whatsapp-options code { color: var(--ink); }
.document-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.document-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: rgba(0,0,0,.16); }
.document-card textarea { border: 0; border-radius: 0; background: transparent; }
.document-head { display: flex; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.document-head span { font-size: 12px; font-weight: 700; }
.document-head small { color: var(--muted); }
.workspace-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.primary-action, .secondary-action { min-height: 46px; padding: 0 18px; border-radius: 12px; cursor: pointer; font-weight: 750; }
.primary-action { color: #071311; border: 0; background: var(--teal); }
.secondary-action { color: var(--ink); border: 1px solid var(--line); background: rgba(255,255,255,.045); }
.primary-action:disabled, .secondary-action:disabled { opacity: .35; cursor: not-allowed; }
.state-board { padding: 10px 0 100px; }
.section-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 32px; }
.section-title .eyebrow { margin-bottom: 12px; }
.state-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.state-card { display: flex; align-items: center; gap: 18px; min-height: 132px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.025); }
.state-card.is-featured { background: linear-gradient(135deg, rgba(78,205,196,.08), rgba(247,148,29,.08)); }
.state-card strong { display: block; margin-bottom: 7px; }
.state-card div > span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.mini-orb { position: relative; flex: 0 0 78px; width: 78px; height: 78px; overflow: hidden; border-radius: 50%; background: linear-gradient(145deg, #62e5dc, #227983 60%, #382144); box-shadow: inset 0 0 0 1px rgba(255,255,255,.32), 0 0 28px rgba(78,205,196,.22); }
.mini-fragment { position: absolute; z-index: 2; inset: 0; opacity: .55; mix-blend-mode: screen; }
.mini-paused { background: linear-gradient(145deg, #ffb54e, var(--orange) 52%, #613020); box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), 0 0 28px rgba(247,148,29,.24); }
.mini-recording { animation: recording-color 2.5s ease-in-out infinite; }
.mini-recording::before { position: absolute; z-index: 1; inset: 0; border-radius: inherit; background: linear-gradient(145deg, rgba(247,148,29,.12), rgba(247,94,29,.72)); content: ""; animation: orange-breathe 2.5s ease-in-out infinite; }
.mini-recording::after { position: absolute; inset: -1px; border: 2px solid rgba(247,148,29,.7); border-radius: 50%; content: ""; animation: ring-pulse 1.55s ease-out infinite; }
footer { height: 84px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #746e83; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.account-dialog { width: min(480px, calc(100% - 32px)); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; background: #151121; box-shadow: var(--shadow); }
.account-dialog::backdrop { background: rgba(3,2,7,.75); backdrop-filter: blur(9px); }
.account-dialog form { display: grid; gap: 16px; padding: 8px; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; }
.dialog-head small { color: var(--teal); letter-spacing: .18em; }
.dialog-head h2 { margin: 7px 0 0; }
.account-dialog p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.form-message { min-height: 20px; margin: 0; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 28px; transform: translate(-50%, 16px); padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(18,14,30,.92); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 54px; padding-top: 58px; text-align: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: clamp(56px, 14vw, 86px); }
  .mode-grid { grid-template-columns: repeat(2,1fr); }
  .state-grid { grid-template-columns: 1fr; }
  .section-title { display: block; }
}

@media (max-width: 620px) {
  .app-shell { width: min(100% - 24px, 1180px); }
  .topbar { height: 78px; }
  .brand small, .connection-badge { display: none; }
  .ui-language { gap: 1px; }
  .ui-language button { width: 28px; height: 28px; font-size: 15px; }
  .brand strong { font-size: 14px; letter-spacing: .2em; }
  .top-actions .icon-button { padding: 8px 10px; font-size: 11px; }
  .hero { min-height: 0; padding: 50px 0 74px; }
  .hero h1 { font-size: clamp(43px, 12vw, 49px); line-height: .98; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .13em; white-space: normal; }
  .hero-description { font-size: 15px; }
  .workspace { padding: 22px 16px; }
  .workspace-head, .section-title { gap: 18px; }
  .session-fields, .document-grid { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: 104px; }
  footer { display: grid; justify-content: start; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Hidden is an application state, including flex/grid containers. */
[hidden] { display: none !important; }
.helper { color: var(--muted); font-size: 12px; line-height: 1.6; }
.orb-stage > .helper { max-width: 430px; text-align: center; margin: 8px 0 0; }
.record-controls { flex-wrap: wrap; justify-content: center; }
.audio-recovery { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 24px; padding: 18px; background: rgba(78,205,196,.05); border: 1px solid var(--line); border-radius: 16px; }
.audio-recovery audio { flex: 1 1 250px; min-width: 0; max-width: 100%; }
.audio-recovery .helper { flex-basis: 100%; margin: 0; }
.mode-card:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.mode-card:disabled:hover { border-color: var(--line); }
.toast { max-width: calc(100vw - 24px); width: max-content; border-radius: 16px; text-align: center; }
.document-head { gap: 12px; flex-wrap: wrap; }
.topbar { height: auto; min-height: 92px; gap: 16px; flex-wrap: wrap; padding: 18px 0; }
.ui-language button { min-width: 36px; min-height: 36px; }
.state-board { display: none; }
body.show-evidence .state-board { display: block; }
@media (max-width: 620px) {
  .topbar { justify-content: center; padding: 14px 0; }
  .top-actions { flex-wrap: wrap; justify-content: center; }
  .connection-badge { display: inline-block; }
  .brand { margin-right: auto; }
  .top-actions { width: 100%; justify-content: space-between; }
  .ui-language button { width: 38px; height: 38px; font-size: 20px; }
  .hero { padding-top: 32px; gap: 28px; }
  .workspace-head { flex-wrap: wrap; }
  .workspace-actions button { flex: 1 1 150px; }
  .orb { width: min(320px, 76vw); }
  .orb-status { font-size: 10px; letter-spacing: .08em; }
}
/* Explicit clipping also contains composited image layers in Safari. */
.orb-core, .mini-orb { clip-path: circle(50% at 50% 50%); isolation: isolate; }

/* Rod's state ruling, 2026-09-16: violet idle, teal pause, orange listening. */
:root { --violet-deep: #21152e; }
.logo-fragment img, .mini-fragment img { display: block; width: 100%; height: 100%; left: 0; top: 0; object-fit: contain; border-radius: 50%; }
.logo-fragment, .mini-fragment { mix-blend-mode: luminosity; filter: none; opacity: .38; }
.orb-core, .orb.is-ready .orb-core, .mini-idle { background: radial-gradient(circle at 32% 24%, rgba(160,113,167,.32), transparent 42%), linear-gradient(145deg, #49304f, var(--violet-deep) 62%, #100b1b); box-shadow: inset 0 0 0 1px rgba(203,165,216,.25), inset -18px -24px 45px rgba(0,0,0,.4), 0 0 35px rgba(85,49,110,.25); }
.orb.is-idle .orb-rings, .orb.is-ready .orb-rings { border-color: rgba(136,88,166,.22); }
.orb.is-paused .orb-core, .mini-paused { background: radial-gradient(circle at 35% 28%, rgba(211,255,247,.32), transparent 35%), linear-gradient(145deg, #4ecdc4, #17656a 65%, #142b3c); box-shadow: inset 0 0 0 1px rgba(187,255,248,.42), 0 0 52px rgba(78,205,196,.38); }
.orb.is-recording .orb-core, .mini-recording { background: radial-gradient(circle at 35% 26%, rgba(255,236,165,.62), transparent 34%), linear-gradient(145deg, #ffc264, #f7941d 48%, #a83e13 82%, #247e80); animation: speech-glow var(--pulse-speed, .8s) ease-in-out infinite; box-shadow: inset 0 0 0 1px rgba(255,231,178,.66), 0 0 calc(42px + var(--level, .35) * 110px) rgba(255,127,16,.78), 0 0 calc(80px + var(--level, .35) * 100px) rgba(78,205,196,.19); }
.orb.is-recording .orb-core::after, .mini-recording::before { animation: none; opacity: 0; }
.orb.is-recording .orb-rings { animation-duration: var(--pulse-speed, .8s); border-color: rgba(255,153,36,.6); }
.orb.is-recording .orb-rings::after { border-color: rgba(78,205,196,.65); }
@keyframes speech-glow { 0%,100% { filter: brightness(1); } 50% { filter: brightness(calc(1.12 + var(--level, .35) * .5)); } }
.floating-recorder { min-width: 240px; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: #090714; }
.floating-recorder > strong { font-size: 11px; letter-spacing: .22em; color: var(--muted); }
.floating-recorder .orb { width: min(240px, 70vw); flex-shrink: 0; }
.floating-recorder .timer { margin: 0; }
.floating-recorder .record-controls { margin: 0; }
.floating-recorder .orb-status { font-size: 9px; letter-spacing: .06em; }

/* Recorder feedback and an explicit path from audio to notes. */
.recorder-clock { position: relative; z-index: 2; margin: 0 0 28px; padding: 13px 26px 10px; border: 1px solid rgba(158,115,181,.3); border-radius: 14px; background: #0c0915; box-shadow: inset 0 1px rgba(255,255,255,.035); text-align: center; }
.recorder-clock > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; letter-spacing: .2em; font-weight: 700; }
.recorder-clock .timer { margin: 0; color: #dbcee6; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 46px; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums slashed-zero; letter-spacing: .06em; text-shadow: 0 0 18px rgba(171,109,202,.28); }
.recorder-clock[data-state=recording] { border-color: rgba(247,148,29,.45); }
.recorder-clock[data-state=recording] .timer { color: #ffb654; text-shadow: 0 0 18px rgba(247,148,29,.32); }
.recorder-clock[data-state=paused] { border-color: rgba(78,205,196,.45); }
.recorder-clock[data-state=paused] .timer { color: var(--teal); text-shadow: 0 0 18px rgba(78,205,196,.3); }
.recorder-clock { background: #160f21; border-radius: 10px; border-color: #5b466c; }
.recorder-clock > span { color: #d0c1de; }
.recorder-clock #timer { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.clock-digits { display: flex; align-items: center; gap: 5px; color: #e8d2ff; filter: drop-shadow(0 0 3px rgba(170,106,201,.18)); }
.clock-digits svg { display: block; width: 27px; height: 50px; fill: currentColor; }
.clock-digits .clock-colon { width: 12px; }
.recorder-clock[data-state=recording] .clock-digits { color: #ffba62; filter: drop-shadow(0 0 3px rgba(247,148,29,.22)); }
.recorder-clock[data-state=paused] .clock-digits { color: #75efe4; filter: drop-shadow(0 0 3px rgba(78,205,196,.2)); }
.orb .recorder-clock { position: absolute; z-index: 4; top: 34%; left: 50%; transform: translateX(-50%); width: 58%; margin: 0; padding: 11px 15px; border: 1px solid rgba(227,205,248,.18); border-radius: 8px; background: rgba(16,10,25,.91); box-shadow: 0 3px 14px rgba(0,0,0,.16); pointer-events: none; }
.orb .recorder-clock > span:first-child { font-size: 8px; letter-spacing: .15em; }
.orb .clock-digits { display: flex; margin: 0; gap: 5px; color: #e8d2ff; }
.orb .clock-digits svg { flex: 1 1 0; min-width: 0; width: 0; height: 45px; }
.orb .clock-digits .clock-colon { flex: .4 1 0; }
.floating-recorder .orb .recorder-clock { padding: 8px 10px; }
.floating-recorder .orb .recorder-clock > span:first-child { font-size: 6px; }
.floating-recorder .orb .clock-digits { gap: 3px; }
.floating-recorder .orb .clock-digits svg { height: 30px; }
#livePreviewStatus { color: var(--teal); }
.generation-controls { margin: 20px 0; padding: 16px 18px; border: 1px solid rgba(78,205,196,.2); border-radius: 14px; background: rgba(78,205,196,.04); }
.generation-controls .helper { margin: 0 0 12px; text-align: left; }
.generation-controls #requestStatus:empty { display: none; }
.generation-controls .workspace-actions { margin: 0; }
.record-controls { flex-wrap: wrap; justify-content: center; max-width: 100%; }
.record-controls .primary-action { font-size: 12px; border-radius: 999px; }
.hero { align-items: start; }
@media (min-width: 781px) { .hero-copy { padding-top: 110px; } }
.floating-recorder .timer { font-size: 24px; font-family: ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .recorder-clock .timer { font-size: 42px; }
  .generation-controls { padding: 14px; }
  .generation-controls .workspace-actions > button { width: 100%; }
}

/* v0.5: quiet in-orb time, one primary toolbar, one working transcript. */
.orb .recorder-clock { top: 42%; width: 39%; padding: 7px 12px; border-radius: 999px; border-color: rgba(255,255,255,.12); background: rgba(16,10,25,.78); box-shadow: 0 2px 9px rgba(0,0,0,.12); }
.orb .recorder-clock > span:first-child { display: none; }
.orb .clock-digits { gap: 3px; }
.orb .clock-digits svg { height: 25px; }
.floating-recorder .orb .recorder-clock { width: 45%; padding: 6px 10px; }
.floating-recorder .orb .clock-digits svg { height: 19px; }
.orb-stage > .record-controls { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: min(420px,100%); gap: 8px; }
.orb-stage > .record-controls > button { width: 100%; height: 44px; margin: 0; padding: 0 9px; font-size: 12px; font-weight: 600; border-radius: 999px; white-space: nowrap; }
.orb-stage #finishButton:not(:disabled) { border-color: rgba(78,205,196,.5); background: rgba(78,205,196,.1); color: #e6fffb; }
.orb-stage .live-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--orange); border-color: rgba(247,148,29,.32); background: rgba(247,148,29,.04); letter-spacing: .14em; }
.live-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: currentColor; }
.live-button[data-state=recording] { border-color: rgba(247,148,29,.65); background: rgba(247,148,29,.1); box-shadow: 0 0 16px rgba(247,148,29,.13); }
.live-button[data-state=recording] .live-label { animation: live-vibrate var(--pulse-speed, 1.05s) ease-in-out infinite; }
.live-button[data-state=recording] .live-dot { animation: live-glow var(--pulse-speed, 1.05s) ease-in-out infinite; }
@keyframes live-vibrate { 0%, 100% { transform: translateY(0); text-shadow: 0 0 5px rgba(247,148,29,.3); } 40% { transform: translateY(-.5px); text-shadow: 0 0 12px rgba(247,148,29,.85); } 60% { transform: translateY(.5px); text-shadow: 0 0 9px rgba(247,148,29,.6); } }
@keyframes live-glow { 0%, 100% { box-shadow: 0 0 4px rgba(247,148,29,.4); } 50% { box-shadow: 0 0 10px 2px rgba(247,148,29,.65); } }
@media (prefers-reduced-motion: reduce) { .live-button[data-state=recording] .live-label, .live-button[data-state=recording] .live-dot { animation: none; } }
.recorder-tools { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.recorder-tools > button { padding: 7px 12px; min-height: 34px; background: transparent; border-color: transparent; font-size: 11px; }
.workspace-tools { display: flex; align-items: center; gap: 8px; }
#modeGrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
#modeGrid .mode-card { min-height: 110px; }
.future-formats { margin: 16px 0; color: var(--muted); font-size: 12px; }
.future-formats summary, .audio-recovery summary { cursor: pointer; padding: 8px 0; }
.future-formats .mode-grid { margin-top: 12px; }
.generation-controls { border: none; background: transparent; padding: 0; }
.generation-controls .workspace-actions:has(> button:not([hidden])) { margin-top: 10px; }
.audio-recovery { display: block; padding: 8px 16px; border-radius: 14px; }
.audio-recovery:not([open]) > :not(summary) { display: none; }
.audio-recovery audio { display: block; width: 100%; margin: 12px 0; }
.audio-recovery summary { font-size: 12px; color: var(--muted); }
.document-card #livePreviewStatus { margin: 0; padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 11px; }
#titleHint { display: block; margin-top: 7px; color: var(--teal); font-size: 10px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.live-disclosure { font-size: 11px; }
@media (max-width: 480px) {
  .orb-stage > .record-controls > button { font-size: 11px; padding: 0 5px; }
  .workspace-tools { width: 100%; justify-content: space-between; }
  #modeGrid .mode-card { min-height: 120px; padding: 14px; }
}

/* Fit the canonical logo's circular disc to the orb, cropping the U/CT relief at its edge. */
.orb-frame { position: relative; width: min(360px,78vw); aspect-ratio: 1; }
.orb-frame > .orb { width: 100%; }
.orb-core, .mini-orb { overflow: hidden; }
.logo-fragment, .mini-fragment { inset: 0; opacity: .86; mix-blend-mode: normal; filter: none; }
/* Source disc bounds: approximately x=29, y=24, diameter=1440 in the 1891×1521 PNG. */
.logo-fragment img, .mini-fragment img { position: absolute; width: 131.32%; height: 105.63%; left: -2.01%; top: -1.67%; object-fit: fill; border-radius: 0; filter: blur(1.15px); }
.orb-core::before, .mini-orb::after { content: ""; position: absolute; z-index: 4; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(125deg, rgba(78,205,196,.12), transparent 45%, rgba(14,7,28,.3)); }
.orb-sheen { opacity: .25; }
.orb .recorder-clock { top: 19%; width: 34%; padding: 5px 9px; background: transparent; border-color: transparent; box-shadow: none; }
.orb .clock-digits { filter: drop-shadow(0 1px 2px #110b19); }
.orb .clock-digits svg { height: 23px; }
.orb-status { bottom: 6%; font-size: 9px; letter-spacing: .1em; }
.orb.is-recording .orb-core { background: #142d37; animation: none; transition: box-shadow 70ms linear, transform 70ms linear; transform: scale(calc(1 + var(--level,0) * .035)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 0 calc(32px + var(--level,0) * 65px) color-mix(in srgb,var(--teal),var(--orange) calc(var(--level,0) * 100%)); }
.orb.is-recording .orb-core::after { z-index: 3; opacity: calc(.12 + var(--level,0) * .38); animation: none; background: color-mix(in srgb,var(--teal),var(--orange) calc(var(--level,0) * 100%)); mix-blend-mode: color; transition: opacity 70ms linear; }
.orb.is-recording .orb-rings { border-color: color-mix(in srgb,var(--teal),var(--orange) calc(var(--level,0) * 100%)); }
.orb.is-paused .logo-fragment { filter: saturate(.7); }
.orb.needs-consent .orb-status { color: #fff2ef; background: #7d302f; border: 1px solid #e17e71; padding: 8px 10px; border-radius: 999px; bottom: 2%; letter-spacing: .03em; }
.orb-consent { position: absolute; z-index: 8; inset: 23% 14% 16%; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px solid #df9a90; border-radius: 26px; background: rgba(27,15,34,.97); box-shadow: 0 8px 35px #090714a0; text-align: center; }
.orb-consent strong { font-family: Georgia,serif; font-size: 22px; line-height: 1.1; }
.orb-consent p { font-size: 12px; line-height: 1.35; margin: 0; }
.orb-consent button { padding: 9px 14px; border-radius: 999px; cursor: pointer; font-size: 12px; }
#confirmConsentButton { border: 1px solid #ffb07b; background: #b85121; color: white; font-weight: 700; }
#cancelConsentButton { border: 0; background: transparent; color: var(--muted); padding: 3px 10px; }
#liveLanguageFlag { font-size: 13px; letter-spacing: 0; }
#modeGrid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.transcript-languages { display:flex; align-items:center; gap:6px; padding: 9px 12px; border-bottom:1px solid var(--line); }
.transcript-languages button { cursor:pointer; min-height:32px; padding:5px 9px; border:1px solid transparent; border-radius:999px; background:transparent; font-size:12px; }
.transcript-languages [aria-pressed=true] { color:var(--teal); border-color:rgba(78,205,196,.4); background:rgba(78,205,196,.08); }
@media(max-width:800px) { #modeGrid {grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:480px) { .orb-frame {width:min(320px,76vw);} .orb-consent {padding:12px 10px;inset:20% 10% 14%;} .orb-consent strong {font-size:19px;} .orb-consent p {font-size:11px;} }

.orb.is-paused .orb-core::after { z-index:3; opacity:.45; background:var(--teal); mix-blend-mode:color; }
.orb.is-idle .logo-fragment, .orb.is-ready .logo-fragment { animation:canonical-breathe 4.8s ease-in-out infinite; }
@keyframes canonical-breathe { 0%,100% {filter:brightness(.82);} 50% {filter:brightness(1);} }
@media(prefers-reduced-motion:reduce) { .orb.is-idle .logo-fragment, .orb.is-ready .logo-fragment {animation:none;} }
/* Keep the glow outside the clipped artwork. */
.orb::before { content:""; position:absolute; z-index:-1; inset:10%; border-radius:50%; background:rgba(106,63,130,.16); filter:blur(22px); transition:background 70ms linear,opacity 70ms linear; }
.orb.is-recording::before { background:color-mix(in srgb,var(--teal),var(--orange) calc(var(--level,0) * 100%)); opacity:calc(.2 + var(--level,0) * .6); transform:scale(calc(1 + var(--level,0) * .1)); }
.orb.is-paused::before { background:var(--teal); opacity:.28; }
.orb.is-recording .orb-core { background:color-mix(in srgb,#153039,var(--orange) calc(var(--level,0) * 100%)); }
.orb.is-recording::before { animation:recorder-aura var(--pulse-speed,1.1s) ease-in-out infinite; }
@keyframes recorder-aura { 0%,100% {filter:blur(20px);} 50% {filter:blur(28px);} }
@media(prefers-reduced-motion:reduce) { .orb.is-recording::before {animation:none;} }
.orb.is-recording .orb-core { background-image:radial-gradient(circle at 32% 24%,rgba(255,239,207,.22),transparent 44%),linear-gradient(145deg,transparent 35%,rgba(21,10,32,.34)); }
.orb.is-recording .clock-digits { color:#fff4e0; filter:drop-shadow(0 1px 1px #241127) drop-shadow(0 0 3px #241127); }
.orb.is-paused .clock-digits { color:#c4fff8; filter:drop-shadow(0 1px 2px #142132); }

/* v0.7: a separate, tactile consent control and a time-cap ring. */
.orb-frame.consent-open { margin-bottom: 184px; }
.orb-consent { top: 96%; right: 4%; bottom: auto; left: 4%; padding: 12px 10px; gap: 9px; border: 0; border-radius: 22px; background: #110d1d; box-shadow: 0 10px 26px #0005; }
.orb-consent strong { font: 600 16px/1.3 system-ui,sans-serif; }
.orb-consent p { color: #e8e1ef; }
#confirmConsentButton { width: 100%; min-height: 56px; padding: 12px 16px; border: 2px solid #a8a9ab; border-top-color: #dedfe0; border-bottom-color: #60616b; border-radius: 19px; background: #f7941d; color: #171020; font-size: 12px; font-weight: 850; line-height: 1.3; letter-spacing: .035em; box-shadow: inset 0 2px 0 #ffd296, inset 0 -3px 0 #c96712, 0 4px 0 #45434d, 0 8px 16px #0008; }
#confirmConsentButton:hover { background: #ffab3d; }
#confirmConsentButton:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #ffd296, 0 2px 0 #45434d; }
#confirmConsentButton:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
#cancelConsentButton { min-height: 30px; color: #cbc3d7; }
.recording-progress { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transform: rotate(-90deg); opacity: 0; }
.is-recording .recording-progress,.is-paused .recording-progress,.is-ready .recording-progress { opacity: 1; }
.recording-progress circle { fill: none; stroke-width: .9; }
.progress-track { stroke: #89868e; opacity: .65; }
.progress-value { stroke: #f7941d; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--recorded,0)); filter: drop-shadow(0 0 1.5px #f7941d); transition: stroke-dashoffset .2s linear; }
.is-paused .progress-value { stroke: var(--teal); }
.orb.is-recording .logo-fragment { filter: saturate(.7); }
.whatsapp-options .emoji-fader { width: 100%; display: grid; grid-template-columns: auto minmax(90px,1fr) 85px; gap: 16px; }
.whatsapp-options input[type=range] { width: 100%; height: 32px; cursor: ew-resize; accent-color: #f7941d; }
.emoji-fader output { text-align: right; color: var(--orange); font-size: 12px; }
.floating-recorder { position: relative; min-width: 240px; padding: 10px; gap: 4px; overflow: hidden; }
.floating-recorder .orb { width: min(250px,90vw); }
.floating-recorder > strong { font-size: 8px; letter-spacing: .09em; color: var(--orange); }
.floating-recorder .record-controls { width: 100%; gap: 5px; }
.floating-recorder .control-button { padding: 7px; font-size: 10px; min-height: 36px; }
.floating-transcript { position: absolute; z-index: 8; inset: 32% 14px 65px; margin: 0; padding: 14px; overflow: auto; white-space: pre-wrap; background: #110d1def; border: 1px solid #88828e; border-radius: 18px; color: #faf6ff; font-size: 12px; line-height: 1.55; box-shadow: 0 8px 24px #0008; opacity: 0; transition: opacity .16s; pointer-events: none; }
.floating-recorder:hover .floating-transcript,.floating-recorder:focus-within .floating-transcript { opacity: 1; }
@media (max-width:480px) { .whatsapp-options .emoji-fader { gap: 8px; grid-template-columns: auto minmax(65px,1fr) 70px; font-size: 12px; } }
@media (prefers-reduced-motion:reduce) { .floating-transcript,.progress-value { transition: none; } }
.orb.needs-consent .orb-status { bottom: -3%; width: 74%; min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 10px 15px; border: 2px solid #a8a9ab; border-top-color: #dedfe0; border-bottom-color: #60616b; border-radius: 18px; background: #f7941d; color: #171020; text-shadow: none; font-size: 12px; letter-spacing: .035em; box-shadow: inset 0 2px 0 #ffd296, inset 0 -3px 0 #c96712, 0 4px 0 #45434d, 0 8px 16px #0008; }
.orb-frame:has(.needs-consent) { margin-bottom: 20px; }
.orb-frame.consent-open { margin-bottom: 184px; }
.consent-open .orb-status { visibility: hidden; }
.orb-rings { pointer-events: none; }
.floating-recorder .record-controls { position: relative; z-index: 10; }

/* Native popup menus may ignore the page's dark color scheme on macOS.
   Give the control and its options one explicit, high-contrast light palette. */
select { color-scheme: light; color: #211c29; background: #e7e4e9; border-color: #716a79; }
select option, select optgroup { color: #211c29; background: #f5f1f8; }
/* Matte gunmetal rim: key light at 2:30, depth and cast shadow down-left. */
#confirmConsentButton, .orb.needs-consent .orb-status {
  border: 5px solid transparent;
  background: linear-gradient(255deg, #fca22e 0%, #f7941d 38%, #e98315 100%) padding-box,
              linear-gradient(255deg, #706a68 0%, #4a454c 16%, #29252f 40%, #15121d 72%, #38313e 100%) border-box #f7941d;
  color: #171020;
  box-shadow: inset -1px 1px 0 #ffc06755, inset 1px -2px 3px #70380766,
              -2px 2px 0 #100d16, -5px 5px 0 #28222f, -9px 9px 14px #0009;
}
#confirmConsentButton:hover {
  background: linear-gradient(255deg, #ffae42, #f99b25 45%, #ed8a1b) padding-box,
              linear-gradient(255deg, #706a68, #4a454c 16%, #29252f 40%, #15121d 72%, #38313e) border-box #f7941d;
}
#confirmConsentButton:active {
  transform: translate(-2px, 2px);
  box-shadow: inset 1px -1px 3px #70380766, -2px 2px 0 #211b28, -4px 4px 8px #0008;
}
