:root{--bg:#0f172a;--surface:#1e293b;--surface-2:#273449;--text:#f1f5f9;--text-dim:#94a3b8;--primary:#2563eb;--primary-bright:#3b82f6;--accent:#22c55e;--danger:#ef4444;--ring:#3b82f659;--cat-responses:#38bdf8;--cat-needs:#f59e0b;--cat-requests:#ef4444;--cat-feelings:#a78bfa;--cat-social:#34d399;--cat-custom:#64748b;--radius:18px;--tap:64px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;min-height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:var(--text);border:none;font-family:inherit}input,select{border:2px solid var(--surface-2);background:var(--surface);color:var(--text);border-radius:12px;padding:.85rem 1rem;font-family:inherit;font-size:1.05rem}input:focus,select:focus,button:focus-visible{outline:3px solid var(--ring);outline-offset:2px}button:disabled{opacity:.45;cursor:default}.loading{height:100%;color:var(--text-dim);place-items:center;font-size:1.5rem;display:grid}.app{flex-direction:column;min-height:100%;display:flex}.topbar{z-index:10;padding:max(.75rem, env(safe-area-inset-top)) 1rem .75rem;background:var(--surface);border-bottom:1px solid var(--surface-2);justify-content:space-between;align-items:center;gap:1rem;display:flex;position:sticky;top:0}.topbar-brand{flex-direction:column;gap:.1rem;min-width:0;display:flex}.topbar-title{font-size:1.25rem;font-weight:700}.topbar-user{color:var(--text-dim);text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;overflow:hidden}.topbar-modes{background:var(--bg);border-radius:12px;gap:.4rem;padding:.25rem;display:flex}.mode-btn{color:var(--text-dim);background:0 0;border-radius:9px;padding:.55rem 1.1rem;font-size:1rem;font-weight:600}.mode-btn.active{background:var(--primary);color:#fff}.app-main{flex:1;width:100%;max-width:720px;margin:0 auto;padding:1rem 1rem 3rem}.talk{flex-direction:column;gap:1.25rem;display:flex}.talk-btn{background:linear-gradient(160deg, var(--primary-bright), var(--primary));border-radius:28px;flex-direction:column;justify-content:center;align-items:center;gap:.5rem;width:100%;min-height:190px;transition:transform 80ms;display:flex;position:relative;overflow:hidden;box-shadow:0 12px 30px #2563eb59}.talk-btn:active{transform:scale(.99)}.talk-btn.listening{background:linear-gradient(160deg,#f43f5e,#e11d48);box-shadow:0 12px 30px #f43f5e66}.talk-btn.busy{opacity:.8}.talk-btn-ring{background:#ffffff29;border-radius:50%;width:150px;height:150px;transition:transform 90ms ease-out;position:absolute}.talk-btn-icon{font-size:3.5rem;line-height:1;position:relative}.talk-btn-label{color:#fff;font-size:1.35rem;font-weight:700;position:relative}.hint{background:var(--surface);border:1px dashed var(--surface-2);border-radius:var(--radius);color:var(--text-dim);margin:0;padding:1rem 1.15rem;font-size:1.05rem;line-height:1.5}.notice{background:var(--surface);text-align:center;border-radius:14px;padding:.9rem 1.1rem;font-size:1.1rem}.notice.error{color:#fca5a5;background:#ef444426}.result-card{background:var(--surface);border-radius:var(--radius);border:2px solid var(--surface-2);flex-direction:column;gap:.85rem;padding:1.25rem;display:flex}.result-card.high{border-color:var(--accent)}.result-lead{color:var(--text-dim);text-transform:uppercase;letter-spacing:.05em;font-size:1rem}.result-best{background:var(--primary);border-radius:16px;flex-direction:column;align-items:flex-start;gap:.35rem;padding:1.4rem 1.2rem;display:flex}.result-best-text{color:#fff;text-align:left;font-size:2rem;font-weight:800}.result-speak{color:#ffffffd9;font-size:1rem}.result-alt-label{color:var(--text-dim);font-size:1rem}.result-alt-label.subtle{opacity:.75;font-size:.9rem}.result-alts{flex-wrap:wrap;gap:.6rem;display:flex}.result-alt{background:var(--surface-2);min-height:var(--tap);border-radius:12px;flex:45%;padding:.85rem 1.1rem;font-size:1.15rem;font-weight:600}.result-dismiss{color:var(--text-dim);background:0 0;align-self:center;padding:.6rem;font-size:1rem}.grid{flex-direction:column;gap:1.25rem;display:flex}.grid.correcting{outline:2px dashed var(--accent);outline-offset:8px;border-radius:var(--radius)}.grid-correct-banner{color:#86efac;text-align:center;background:#22c55e26;border-radius:12px;padding:.75rem 1rem;font-weight:600}.grid-cat-title{text-transform:uppercase;letter-spacing:.06em;color:var(--text-dim);margin:0 0 .6rem;font-size:.95rem}.grid-items{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.7rem;display:grid}.phrase-btn{background:var(--surface);border-left:6px solid var(--cat-custom);text-align:left;border-radius:16px;align-items:center;min-height:88px;padding:.9rem 1rem;font-size:1.2rem;font-weight:700;transition:transform 60ms,background .15s;display:flex}.phrase-btn:active{background:var(--surface-2);transform:scale(.97)}.cat-responses{border-left-color:var(--cat-responses)}.cat-needs{border-left-color:var(--cat-needs)}.cat-requests{border-left-color:var(--cat-requests)}.cat-feelings{border-left-color:var(--cat-feelings)}.cat-social{border-left-color:var(--cat-social)}.cat-custom{border-left-color:var(--cat-custom)}.trainer{flex-direction:column;gap:1.25rem;display:flex}.tabs{background:var(--surface);border-radius:14px;gap:.5rem;padding:.3rem;display:flex}.tabs button{color:var(--text-dim);background:0 0;border-radius:10px;flex:1;padding:.8rem;font-size:1rem;font-weight:600}.tabs button.active{background:var(--primary);color:#fff}.manager,.settings{flex-direction:column;gap:1rem;display:flex}.manager-intro{color:var(--text-dim);margin:0;line-height:1.5}.add-row{gap:.5rem;display:flex}.add-row input{flex:1;min-width:0}.add-row button{background:var(--primary);border-radius:12px;padding:0 1.2rem;font-weight:700}.phrase-list{flex-direction:column;gap:.6rem;margin:0;padding:0;list-style:none;display:flex}.phrase-row{background:var(--surface);border-radius:14px;justify-content:space-between;align-items:center;gap:1rem;padding:.9rem 1rem;display:flex}.phrase-row-main{flex-direction:column;gap:.35rem;display:flex}.phrase-row-text{font-size:1.15rem;font-weight:600}.sample-badge{border-radius:999px;align-self:flex-start;padding:.15rem .55rem;font-size:.85rem;font-weight:700}.sample-badge.ok{color:#86efac;background:#22c55e33}.sample-badge.partial{color:#fcd34d;background:#f59e0b33}.sample-badge.none{background:var(--surface-2);color:var(--text-dim)}.phrase-row-actions{flex-shrink:0;gap:.5rem;display:flex}.phrase-row-actions button{background:var(--surface-2);border-radius:12px;min-height:52px;padding:.7rem .9rem;font-weight:600}.phrase-row-actions .danger{color:#fca5a5;background:#ef444426}.modal-overlay{z-index:50;background:#020617b3;place-items:center;padding:1.25rem;display:grid;position:fixed;inset:0}.modal{background:var(--surface);text-align:center;border-radius:22px;flex-direction:column;gap:1rem;width:100%;max-width:420px;padding:1.5rem;display:flex}.modal-title{margin:0;font-size:1.6rem}.modal-count{color:var(--text-dim);margin:0;font-weight:600}.modal-count.ok{color:#86efac}.modal-help{color:var(--text-dim);margin:0;font-size:.95rem}.record-btn{background:linear-gradient(160deg, var(--primary-bright), var(--primary));color:#fff;border-radius:20px;place-items:center;min-height:130px;font-size:1.25rem;font-weight:700;display:grid;position:relative;overflow:hidden}.record-btn.recording{background:linear-gradient(160deg,#f43f5e,#e11d48)}.record-ring{background:#ffffff29;border-radius:50%;width:110px;height:110px;transition:transform 90ms ease-out;position:absolute}.modal-done{background:var(--surface-2);border-radius:14px;padding:.9rem;font-size:1.05rem;font-weight:700}.field{flex-direction:column;gap:.45rem;display:flex}.field-label{font-weight:600}.field-hint{color:var(--text-dim);font-size:.9rem;font-weight:400}.field-check{background:var(--surface);border-radius:14px;align-items:flex-start;gap:.75rem;padding:1rem;line-height:1.4;display:flex}.field-check input{flex-shrink:0;width:26px;height:26px}input[type=range]{height:40px;accent-color:var(--primary-bright);padding:0}.divider{border:none;border-top:1px solid var(--surface-2);margin:.5rem 0}.settings-actions{align-items:center;gap:1rem;margin-top:.5rem;display:flex}.primary{background:var(--primary);border-radius:14px;padding:1rem 1.5rem;font-size:1.1rem;font-weight:700}.secondary{background:var(--surface-2);border-radius:14px;padding:.9rem 1.3rem;font-size:1.05rem;font-weight:600}.saved-flag{color:#86efac;font-weight:700}.users{flex-direction:column;gap:1rem;display:flex}.user-list{flex-direction:column;gap:.6rem;margin:0;padding:0;list-style:none;display:flex}.user-row{background:var(--surface);border:2px solid #0000;border-radius:14px;align-items:stretch;gap:.5rem;display:flex}.user-row.active{border-color:var(--primary-bright)}.user-main{text-align:left;background:0 0;flex-direction:column;flex:1;gap:.2rem;min-width:0;padding:.9rem 1rem;display:flex}.user-name{font-size:1.15rem;font-weight:700}.user-current{color:var(--primary-bright);font-weight:700}.user-email{color:var(--text-dim);text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;overflow:hidden}.user-actions{align-items:center;gap:.4rem;padding-right:.6rem;display:flex}.user-actions button{background:var(--surface-2);border-radius:10px;min-width:48px;min-height:48px;font-size:1.05rem}.user-actions .danger{color:#fca5a5;background:#ef444426}.add-user{background:var(--surface);border-radius:14px;flex-direction:column;gap:.6rem;padding:1rem;display:flex}.add-user input{width:100%}.add-user-actions{gap:.6rem;display:flex}.add-user-btn{align-self:flex-start}.consent,.pin-gate{place-items:center;min-height:100%;padding:1.5rem;display:grid}.consent-card{background:var(--surface);border-radius:24px;flex-direction:column;gap:1rem;max-width:460px;padding:2rem 1.75rem;display:flex}.consent-card h1{margin:0;font-size:2rem}.consent-card p{margin:0;font-size:1.1rem;line-height:1.55}.consent-points{flex-direction:column;gap:.75rem;margin:0;padding-left:0;font-size:1.05rem;line-height:1.4;list-style:none;display:flex}.consent-ack{color:var(--text-dim);font-size:.95rem!important}.consent-btn{background:var(--primary);border-radius:16px;margin-top:.5rem;padding:1.15rem;font-size:1.2rem;font-weight:700}.pin-gate{text-align:center;flex-direction:column;gap:1rem}.pin-input{text-align:center;letter-spacing:.5rem;max-width:260px;font-size:2rem}.pin-actions{gap:.75rem;display:flex}.pin-actions button{background:var(--primary);border-radius:14px;padding:.9rem 1.6rem;font-size:1.05rem;font-weight:700}.pin-actions .secondary{background:var(--surface-2)}@media (prefers-reduced-motion:reduce){*{transition:none!important}}
