:root{font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,SF Pro Text,Inter,system-ui,sans-serif;color:#111;background:#f5f5f7;font-synthesis:none;--accent: #111111;--blue: #0071e3;--green: #34c759;--orange: #ff9f0a;--red: #ff3b30;--panel: rgba(255,255,255,.92);--muted: #6e6e73;--line: rgba(0,0,0,.1);--soft: #f5f5f7}*{box-sizing:border-box}html,body,#app{width:100%;min-height:100%;margin:0}body{min-width:320px;background:#f5f5f7;-webkit-font-smoothing:antialiased}button,textarea,input{font:inherit}button{cursor:pointer}button:disabled,textarea:disabled{cursor:not-allowed}body.modal-open{overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.home-shell{min-height:100vh;min-height:100svh;display:grid;place-items:center;padding:32px 20px;background:radial-gradient(circle at top,#fffffffa,#f5f5f7f5 52%),#f5f5f7}.home-card{width:min(100%,620px);text-align:center}.brand-line{display:inline-flex;align-items:center;gap:9px;color:#3a3a3c;font-size:12px;font-weight:700;letter-spacing:.13em}.brand-mark{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#111;color:#fff;font-size:10px;letter-spacing:0;box-shadow:0 1px 2px #0000001f}.home-card h1{margin:22px 0 10px;font-size:clamp(46px,8vw,72px);line-height:.98;letter-spacing:-.055em;font-weight:700}.home-lead{margin:0 auto;max-width:470px;color:var(--muted);font-size:19px;line-height:1.45}.feature-row{margin:28px auto 24px;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.feature-row span{padding:8px 12px;border-radius:999px;background:#0000000b;color:#4b4b50;font-size:13px;font-weight:500}.start-btn{width:min(100%,330px);min-height:54px;border:0;border-radius:14px;background:#111;color:#fff;font-size:16px;font-weight:650;letter-spacing:-.01em;transition:transform .15s ease,opacity .15s ease,background .15s ease;box-shadow:0 8px 26px #0000001f}.start-btn:hover:not(:disabled){background:#27272a}.start-btn:active:not(:disabled){transform:scale(.985)}.start-btn:disabled{opacity:.35;box-shadow:none}.home-note{margin:13px 0 0;color:#8e8e93;font-size:12px}.modal-backdrop{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:20px;background:#00000047;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.modal-backdrop[hidden]{display:none}.terms-sheet{width:min(100%,650px);max-height:min(86svh,760px);display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.65);border-radius:28px;background:#fffffff5;box-shadow:0 24px 70px #00000038}.sheet-handle{display:none}.terms-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 24px 16px;border-bottom:1px solid var(--line)}.eyebrow{display:block;margin-bottom:5px;color:#8e8e93;font-size:11px;font-weight:700;letter-spacing:.12em}.terms-header h2{margin:0;font-size:26px;letter-spacing:-.035em}.icon-btn{width:34px;height:34px;flex:0 0 auto;border:0;border-radius:50%;background:#ededf0;color:#5c5c61;font-size:25px;line-height:1}.terms-scroll{overflow-y:auto;padding:18px 24px 8px;overscroll-behavior:contain}.terms-intro{display:flex;align-items:flex-start;gap:12px;padding:15px;border-radius:18px;background:#f5f5f7}.shield-icon{width:28px;height:28px;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;background:#111;color:#fff;font-weight:700}.terms-intro p{margin:2px 0 0;color:#3a3a3c;line-height:1.45}.terms-section{padding:19px 2px 5px}.terms-section+.terms-section{border-top:1px solid var(--line)}.terms-section h3{margin:0 0 9px;font-size:16px;letter-spacing:-.015em}.terms-section p,.terms-section li{color:#505055;font-size:14px;line-height:1.5}.terms-section p{margin:0}.terms-section ol{margin:0;padding-left:21px}.terms-section li+li{margin-top:6px}.legal-note{margin:14px 2px 4px;color:#8e8e93;font-size:11px;line-height:1.45}.terms-footer{padding:16px 24px 22px;border-top:1px solid var(--line);background:#fffffff0}.consent-row{display:grid;grid-template-columns:22px 1fr;gap:10px;align-items:start;margin-bottom:14px;color:#3a3a3c;font-size:13px;line-height:1.4;cursor:pointer}.consent-row input{width:20px;height:20px;margin:0;accent-color:#111}.terms-footer .start-btn{width:100%}.chat-page{height:100vh;height:100svh;min-height:460px;display:flex;flex-direction:column;background:#f5f5f7}.chat-header{min-height:58px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#ffffffe0;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}.brand-home{min-width:0;display:inline-flex;align-items:center;gap:9px;padding:4px 2px;border:0;background:transparent;color:#111;text-align:left}.brand-home:before{content:"NS";width:28px;height:28px;display:grid;place-items:center;flex:0 0 auto;border-radius:8px;background:#111;color:#fff;font-size:9px;font-weight:700}.brand-home .brand-dot{display:none}.brand-home strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px}.privacy-label{color:#8e8e93;font-size:10px;letter-spacing:.06em;white-space:nowrap}.chat-window{min-height:0;flex:1;display:flex;flex-direction:column;padding:12px;gap:8px}.status-row{min-height:36px;display:flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid var(--line);border-radius:12px;background:#ffffffe6;color:#5f5f64;font-size:13px}.status-dot{width:8px;height:8px;border-radius:50%;background:#aaa}.status-row.connected{color:#237a3b}.status-row.connected .status-dot{background:var(--green)}.status-row.searching .status-dot{background:var(--orange);animation:pulse 1s ease-in-out infinite}.status-row.ended{color:#a8322a}.status-row.ended .status-dot{background:var(--red)}@keyframes pulse{50%{opacity:.35}}.transcript{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff}.chat-line{display:grid;grid-template-columns:auto 1fr;gap:7px;align-items:start;margin:0 0 10px;font-size:15px;line-height:1.42}.chat-line strong{font-weight:650;white-space:nowrap}.chat-line span{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}.chat-line.mine strong{color:var(--blue)}.chat-line.theirs strong{color:#c96d00}.system-message{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:24px;color:#8e8e93;text-align:center;font-size:14px}.system-message strong{color:#3a3a3c;font-size:16px}.ended-message strong{color:#b2342b}.controls{display:grid;grid-template-columns:92px minmax(0,1fr) 82px;gap:8px;align-items:stretch}.next-btn,.leave-btn,.send-btn{min-height:52px;border:0;border-radius:13px;font-weight:650}.next-btn{background:#111;color:#fff}.next-btn:hover{background:#29292b}.leave-btn{background:#e8e8ed;color:#3a3a3c}.leave-btn:hover{background:#dedee3}.composer{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:6px}.composer textarea{width:100%;min-width:0;height:52px;min-height:52px;max-height:120px;resize:none;padding:13px;border:1px solid var(--line);border-radius:13px;outline:none;background:#fff;color:#111;font-size:16px;line-height:1.4}.composer textarea:focus{border-color:#0071e38c;box-shadow:0 0 0 3px #0071e31a}.composer textarea:disabled{background:#ebebef;color:#8e8e93}.send-btn{background:var(--blue);color:#fff}.send-btn:hover:not(:disabled){background:#0064c9}.send-btn:disabled{background:#d1d1d6;color:#8e8e93}.fatal{min-height:100vh;display:grid;place-items:center;padding:20px;background:#f5f5f7}.fatal-card{width:min(100%,480px);text-align:center}.fatal-card h1{font-size:34px;margin:0 0 12px;letter-spacing:-.03em}.fatal-card p{color:#6e6e73;line-height:1.5}.fatal-card code{color:#333;font-weight:700}.fatal-card .start-btn{margin-top:10px}@media(max-width:640px){.home-shell{padding:24px 18px;background:#fff}.home-card h1{font-size:clamp(44px,13vw,58px)}.home-lead{font-size:17px}.feature-row{margin-top:24px}.feature-row span{font-size:12px;padding:7px 10px}.start-btn{width:100%}.modal-backdrop{align-items:end;padding:0;background:#0000004d}.terms-sheet{width:100%;max-height:90svh;border-radius:24px 24px 0 0;border-left:0;border-right:0;border-bottom:0}.sheet-handle{display:block;width:38px;height:5px;margin:9px auto 0;border-radius:999px;background:#d1d1d6}.terms-header{padding:16px 18px 13px}.terms-header h2{font-size:22px}.terms-scroll{padding:14px 18px 6px}.terms-footer{padding:14px 18px calc(14px + env(safe-area-inset-bottom))}.terms-section p,.terms-section li{font-size:13px}.chat-page{min-height:100svh;background:#fff}.chat-header{min-height:52px;padding:7px 10px}.brand-home strong{font-size:16px}.privacy-label{display:none}.chat-window{padding:7px;gap:6px}.status-row{min-height:31px;padding:6px 9px;border-radius:10px;font-size:12px}.transcript{padding:11px;border-radius:12px}.chat-line{grid-template-columns:auto minmax(0,1fr);gap:5px;margin-bottom:8px;font-size:15px}.controls{grid-template-columns:72px minmax(0,1fr);grid-template-areas:"next composer" "leave composer";gap:5px;padding-bottom:env(safe-area-inset-bottom)}.next-btn{grid-area:next}.leave-btn{grid-area:leave}.composer{grid-area:composer;grid-template-columns:minmax(0,1fr) 68px;gap:5px}.next-btn,.leave-btn{min-height:39px;border-radius:11px;font-size:12px}.composer textarea{height:83px;min-height:83px;max-height:130px;padding:10px;font-size:16px;border-radius:11px}.send-btn{min-height:83px;border-radius:11px;font-size:12px}}@media(max-width:380px){.feature-row{gap:6px}.controls{grid-template-columns:64px minmax(0,1fr)}.composer{grid-template-columns:minmax(0,1fr) 60px}.next-btn,.leave-btn,.send-btn{font-size:11px}}.online-badge{position:fixed;top:max(14px,env(safe-area-inset-top));right:16px;z-index:20;display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid rgba(0,0,0,.08);border-radius:999px;background:#ffffffd1;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);color:#5f5f64;font-size:12px;box-shadow:0 2px 10px #0000000d}.online-badge strong{color:#111;font-weight:700}.online-dot{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px #34c7591f}.header-right{display:flex;align-items:center;gap:10px;min-width:0}.online-badge-header{position:static;flex:0 0 auto;padding:6px 9px;background:#f5f5f7e6;box-shadow:none}@media(max-width:640px){.home-shell>.online-badge{top:max(10px,env(safe-area-inset-top));right:10px;padding:7px 9px;font-size:11px}.header-right{gap:6px}.online-badge-header{padding:5px 8px;font-size:11px}}
