/* Local system fonts keep all assets on this origin. */
:root { color-scheme: dark; --bg: #0b1d20; --panel: #10282c; --ink: #e9f5f2; --muted: #aac2bf; --line: #355052; --accent: #91e7ce; --danger: #ffc0b5; font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.65; }
.shell { width: min(100%, 620px); margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; gap: 12px; padding: 4px 0 26px; }
.brand { color: var(--ink); text-decoration: none; font-size: 22px; letter-spacing: -.9px; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
.brand span { font-weight: 400; color: var(--accent); padding-left: 6px; }
.ai-label { font-size: 11px; font-weight: 700; color: var(--accent); border: 1px solid var(--line); border-radius: 30px; padding: 3px 9px; white-space: nowrap; }
.topbar .quiet { margin-left: auto; padding: 6px 4px; font-size: 12px; }
.session-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.eyebrow { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.timer { font: 12px ui-monospace, monospace; color: var(--accent); }
h1 { font-size: clamp(26px, 6vw, 33px); letter-spacing: -1.2px; line-height: 1.3; margin: 18px 0 12px; }
.intro { color: var(--muted); margin: 0; font-size: 14px; }
.voice-orb { width: 150px; height: 150px; margin: 24px auto 12px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #426b65; background: #163d3d; box-shadow: 0 0 0 12px #112c2f, 0 0 0 13px #1a383a; }
.wave { display: flex; align-items: center; gap: 7px; height: 52px; }
.wave i { display: block; width: 7px; height: 18px; border-radius: 9px; background: var(--accent); }
.wave i:nth-child(2), .wave i:nth-child(4) { height: 33px; }
.wave i:nth-child(3) { height: 48px; }
[data-state="speaking"] .wave i { animation: speak .8s ease-in-out infinite alternate; }
[data-state="speaking"] .wave i:nth-child(even) { animation-delay: -.5s; }
[data-state="connecting"] .voice-orb { animation: connecting 1.5s ease-in-out infinite alternate; }
[data-state="error"] .voice-orb { border-color: var(--danger); box-shadow: none; }
.status { text-align: center; min-height: 26px; margin: 22px 0 14px; font-weight: 700; }
.message { padding: 12px; color: #ffdbd4; background: #382d2c; border-radius: 10px; font-size: 13px; overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; }
button, select, input:not([type="checkbox"]), summary { min-height: 44px; }
button { cursor: pointer; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--panel); color: var(--ink); font-weight: 600; touch-action: manipulation; }
button:hover:not(:disabled) { filter: brightness(1.12); }
button:disabled { opacity: .4; cursor: not-allowed; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.primary { background: var(--accent); color: #0b2c27; border-color: var(--accent); }
.danger { color: var(--danger); }
.primary-controls { display: grid; grid-template-columns: 1fr 90px; gap: 10px; }
.primary-controls button { min-height: 54px; }
.secondary-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
button[aria-pressed="true"] { border-color: var(--danger); color: var(--danger); }
.quiet { border-color: transparent; color: var(--muted); background: transparent; }
.retry { display: block; margin: 8px auto 16px; font-size: 12px; }
.resume { width: 100%; margin-top: 10px; border-color: var(--accent); color: var(--accent); }
.settings { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 14px; }
h2 { margin: 0 0 16px; font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
h2 span { font-size: 11px; font-weight: 400; color: var(--muted); }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
input:not([type="checkbox"]), select, textarea { width: 100%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px; padding: 10px 12px; min-width: 0; font-size: 16px; }
textarea { resize: vertical; line-height: 1.6; }
textarea::placeholder { color: var(--muted); font-size: 13px; }
.setting-grid { display: grid; grid-template-columns: 1fr 108px; gap: 12px; margin-bottom: 20px; }
.optional { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 11px; }
.hint { font-size: 11px; color: var(--muted); margin: 6px 0 18px; }
.check { display: flex; align-items: center; min-height: 44px; gap: 10px; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: 0 0 22px; accent-color: var(--accent); }
.check small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; margin-top: 2px; }
.consent { padding: 12px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 10px; }
.consent p { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.login-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.transcript { max-height: 300px; overflow-y: auto; overflow-wrap: anywhere; background: var(--panel); padding: 12px; border-radius: 10px; font-size: 13px; }
.transcript p { white-space: pre-wrap; margin: 6px 0 12px; }
.transcript strong { color: var(--accent); font-size: 11px; }
footer { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 11px; color: var(--muted); }
footer p { margin: 10px 0; }
footer strong { color: var(--ink); }
.install-hint { color: var(--accent); }
@keyframes speak { to { transform: scaleY(.45); } }
@keyframes connecting { to { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 360px) { .shell { padding-left: 16px; padding-right: 16px; } .setting-grid { grid-template-columns: 1fr; } .topbar { gap: 8px; } .ai-label { font-size: 10px; } }
