:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #edf4ed;
  background: #10211f;
  font-synthesis: none;
  --muted: #a5bab2;
  --mint: #bbdfbf;
  --border: rgba(189, 221, 203, .12);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: radial-gradient(ellipse at 50% 15%, #213c33 0, transparent 58%), #10211f; }
button, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, summary:focus-visible { outline: 3px solid #d0ecca; outline-offset: 5px; }
[hidden] { display: none !important; }
.call-page { width: min(100%, 520px); margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: 13px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: .01em; }
.brand-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.private-label { color: var(--muted); font-size: 11px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 20px; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.settings-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: 50%; cursor: pointer; }
.settings-toggle svg { width: 20px; height: 20px; }
.call-card { text-align: center; }
.call-orb { position: relative; width: 128px; height: 128px; display: grid; place-items: center; margin: 0 auto 15px; }
.orb-ring { position: absolute; border: 1px solid rgba(191, 225, 195, .16); border-radius: 50%; }
.ring-one { inset: 0; }
.ring-two { inset: 14px; }
.orb-core { width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, #d2e9bb, #7ea991); box-shadow: 0 0 58px rgba(168, 209, 156, .13), inset 0 1px 2px #ecf6e2; color: #1d3e32; }
.orb-core span { font-size: 51px; font-weight: 350; font-family: Georgia, "Times New Roman", serif; margin-top: -1px; }
.call-orb[data-phase="listening"] .ring-one, .call-orb[data-phase="speaking"] .ring-one { animation: breathe 2.5s ease-in-out infinite; border-color: #badfbf66; }
.call-orb[data-phase="speaking"] .ring-two { animation: breathe 1.5s ease-in-out infinite reverse; }
.call-orb[data-phase="connecting"] .ring-one, .call-orb[data-phase="working"] .ring-one, .call-orb[data-phase="transcribing"] .ring-one { border-top-color: var(--mint); animation: rotate 3s linear infinite; }
.call-orb[data-phase="ringing"] .ring-one { animation: breathe 2s ease-in-out infinite; border-color: #badfbf66; }
.call-orb[data-phase="error"] .orb-core { background: linear-gradient(140deg, #e0bbb1, #b48074); color: #4e302b; }
.eyebrow { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0 0 7px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: 40px; font-weight: 400; letter-spacing: -.04em; line-height: 1.15; margin: 0; }
.call-context { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 13px auto 0; max-width: 350px; overflow-wrap: anywhere; }
.status-box { text-align: left; background: rgba(6, 23, 18, .29); border: 1px solid var(--border); border-radius: 16px; margin: 18px 0 17px; padding: 17px 18px; min-height: 89px; }
.status-line { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.status-line strong { font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #7a9889; flex: 0 0 auto; }
.status-dot[data-phase="listening"], .status-dot[data-phase="speaking"] { background: #c5ecc4; box-shadow: 0 0 10px #b7e7b845; }
.status-dot[data-phase="working"], .status-dot[data-phase="transcribing"], .status-dot[data-phase="connecting"] { background: #d4c48f; }
.status-dot[data-phase="error"] { background: #e6a297; }
.call-duration { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.status-box p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 8px 0 0 16px; overflow-wrap: anywhere; }
.call-button { width: 100%; border: 0; border-radius: 17px; min-height: 62px; padding: 15px 20px; display: flex; justify-content: center; align-items: center; gap: 12px; color: #183528; background: #c5e2be; font-weight: 650; font-size: 17px; cursor: pointer; box-shadow: 0 6px 25px #030e1433; touch-action: manipulation; transition: background .15s, transform .15s; }
.call-button:active { transform: scale(.985); }
.call-button:disabled { opacity: .6; cursor: wait; transform: none; }
.call-button[data-active="true"] { background: #dca297; color: #492b27; }
.call-button[data-active="true"] .phone-icon { transform: rotate(135deg); }
.phone-icon { width: 22px; height: 22px; }
.call-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.interrupt-slot { min-height: 54px; }
.secondary-actions .interrupt-button { min-height: 54px; }
.interrupt-button { width: 100%; min-height: 62px; padding: 11px 10px; border-radius: 14px; border: 1px solid #c5e2be70; background: #274539; color: #ecf4e9; font-size: 14px; font-weight: 600; cursor: pointer; touch-action: manipulation; }
.interrupt-button:disabled { opacity: .55; cursor: wait; }
.microphone-status { font-size: 12px; color: var(--muted); margin: -6px 0 13px; min-height: 18px; }
.caption-panel, .work-panel { border: 1px solid var(--border); border-radius: 15px; margin-top: 18px; background: rgba(6, 23, 18, .16); }
.caption-text { padding: 0 17px 17px; margin: 0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.work-panel { padding: 17px; text-align: left; }
.work-panel h2 { margin: 0 0 10px; font-size: 14px; }
.work-panel p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 8px 0 0; }
.work-job { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.work-job strong, .work-job span { display: block; }
.work-job span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.work-panel .precision-text { white-space: pre-wrap; overflow-wrap: anywhere; color: #edf4ed; font-size: 14px; }
.settings-discard { width: 100%; min-height: 44px; margin-top: 8px; border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: 11px; cursor: pointer; }
.foreground-note, .connection-note { color: #91aa9e; font-size: 12px; line-height: 1.6; }
.foreground-note { max-width: 280px; margin: 14px auto 0; }
.connection-note { text-align: center; margin: 17px 12px 0; }
.call-warning { margin: -6px 0 17px; color: #ecd5b1; font-size: 13px; line-height: 1.5; }
.resume-button { padding: 11px 18px; border-radius: 12px; border: 1px solid #c5e2be70; background: #274539; color: #ecf4e9; margin-bottom: 17px; cursor: pointer; }
.transcript-panel { border: 1px solid var(--border); border-radius: 15px; margin-top: 27px; background: rgba(6, 23, 18, .16); }
.settings-panel { border: 1px solid var(--border); border-radius: 15px; margin-top: 24px; background: rgba(6, 23, 18, .16); scroll-margin-top: 18px; }
.settings-panel summary .details-chevron { margin-left: auto; }
.settings-form { padding: 0 17px 17px; border-top: 1px solid var(--border); }
.settings-intro { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 15px 0 5px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.setting-row > span:first-child { min-width: 0; }
.setting-row small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 4px; }
.number-control { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.number-control input { width: 62px; min-height: 38px; padding: 7px 4px 7px 8px; border: 1px solid #a8c0b34a; border-radius: 8px; background: #132a22; color: #edf4ed; font: inherit; font-size: 14px; text-align: center; }
.setting-row input:disabled { opacity: .45; }
.setting-row input:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.toggle-row input { width: 22px; height: 22px; accent-color: #bdddbd; flex: 0 0 auto; margin: 0; cursor: pointer; }
.settings-message { font-size: 12px; line-height: 1.5; color: var(--muted); min-height: 18px; margin: 15px 0 12px; }
.preset-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.preset-button { min-height: 60px; border-radius: 14px; border: 1px solid #a8c0b34a; background: #142b24; color: #edf4ed; font-size: 17px; font-weight: 650; cursor: pointer; touch-action: manipulation; }
.preset-button[aria-pressed="true"] { border-color: #c5e2be; background: #375943; box-shadow: inset 0 0 0 1px #c5e2be; }
.preset-button:disabled { opacity: .45; cursor: default; }
.preset-message { grid-column: 1 / -1; margin: 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.5; min-height: 18px; }
.setting-row select { min-height: 38px; max-width: 120px; background: #132a22; border: 1px solid #a8c0b34a; border-radius: 8px; padding: 7px; color: #edf4ed; }
.settings-save { width: 100%; min-height: 42px; border: 1px solid #c5e2be70; border-radius: 11px; background: #274539; color: #ecf4e9; font-size: 13px; font-weight: 600; cursor: pointer; }
.settings-save:disabled { opacity: .45; cursor: default; }
summary { cursor: pointer; display: flex; align-items: center; gap: 8px; list-style: none; padding: 17px; font-size: 13px; font-weight: 550; touch-action: manipulation; }
summary::-webkit-details-marker { display: none; }
.transcript-count { font-size: 11px; color: var(--muted); margin-left: auto; font-weight: 400; }
.details-chevron { font-size: 20px; color: var(--muted); line-height: .5; margin: -4px 0 0 5px; transition: transform .2s; }
details[open] .details-chevron { transform: rotate(180deg); }
.transcript { max-height: 320px; overflow: auto; overscroll-behavior: contain; padding: 0 17px 17px; border-top: 1px solid var(--border); }
.transcript-empty { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 16px 0 0; }
.transcript-turn { padding-top: 16px; }
.transcript-turn h2 { font-size: 11px; letter-spacing: .03em; font-weight: 600; color: #bcdbbf; margin: 0 0 5px; }
.transcript-turn[data-speaker="Chezky"] h2 { color: #aebcb5; }
.transcript-turn p { color: #e1e9e1; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.07); opacity: 1; } }
@keyframes rotate { to { transform: rotate(360deg); } }
@media (max-width: 350px) { .call-page { padding-left: 18px; padding-right: 18px; } .private-label { font-size: 10px; } h1 { font-size: 36px; } }
@media (max-height: 760px) { .call-page { padding-top: max(12px, env(safe-area-inset-top)); } .page-header { margin-bottom: 12px; } .call-orb { width: 100px; height: 100px; margin-bottom: 12px; } .orb-core { width: 72px; height: 72px; } .orb-core span { font-size: 34px; } h1 { font-size: 32px; } .call-context { margin-top: 8px; } .status-box { margin: 14px 0 16px; padding: 13px; min-height: 84px; } .eyebrow { display: none; } .foreground-note { margin-top: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
