:root{--bg: #f6f3ee;--surface: #ffffff;--surface-muted: #efe9df;--text: #2b2620;--text-muted: #6b6459;--primary: #6b7f5e;--primary-dark: #4f5f45;--primary-contrast: #ffffff;--accent: #c98a5e;--border: #e4ddd0;--zone-green-bg: #e7f0e3;--zone-green-text: #3f6b41;--zone-yellow-bg: #faf1de;--zone-yellow-text: #8a6a1f;--zone-red-bg: #f7e6e3;--zone-red-text: #a33f34;--danger: #a33f34;--radius: 16px;--shadow: 0 2px 10px rgba(43, 38, 32, .06);color-scheme:light}@media (prefers-color-scheme: dark){:root{--bg: #1c1a17;--surface: #262320;--surface-muted: #302c27;--text: #ede8e0;--text-muted: #a89f92;--primary: #8fa682;--primary-dark: #a9bd9d;--primary-contrast: #16210f;--accent: #e0a578;--border: #3a352e;--zone-green-bg: #253524;--zone-green-text: #a5cf9d;--zone-yellow-bg: #362f1e;--zone-yellow-text: #e3c073;--zone-red-bg: #3a2521;--zone-red-text: #e6968a;--danger: #e6968a;color-scheme:dark}}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:Segoe UI,system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased}button{font-family:inherit}.app-shell{max-width:480px;margin:0 auto;min-height:100%;display:flex;flex-direction:column;background:var(--bg)}.screen{flex:1;padding:24px 20px 96px;overflow-y:auto}.screen-narrow{padding:24px 20px 32px}h1,h2,h3{line-height:1.25;margin:0 0 8px}h1{font-size:1.6rem}h2{font-size:1.25rem}h3{font-size:1.05rem}p{line-height:1.55;color:var(--text-muted);margin:0 0 16px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;margin-bottom:16px;box-shadow:var(--shadow)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:14px 18px;border-radius:999px;border:none;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .05s ease,opacity .15s ease}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--primary);color:var(--primary-contrast)}.btn-secondary{background:var(--surface-muted);color:var(--text)}.btn-outline{background:transparent;color:var(--primary-dark);border:1.5px solid var(--primary)}.btn-danger{background:transparent;color:var(--danger);border:1.5px solid var(--danger)}.btn-sm{width:auto;padding:8px 16px;font-size:.85rem}.field{margin-bottom:18px}.field label{display:block;font-weight:600;margin-bottom:6px;font-size:.92rem}.field input[type=text],.field input[type=email],.field input[type=password],.field input[type=datetime-local],.field textarea,.field select{width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:1rem}.field textarea{min-height:80px;resize:vertical;font-family:inherit}.hint{font-size:.8rem;color:var(--text-muted);margin-top:4px}.error-text{color:var(--danger);font-size:.88rem;margin:8px 0}.topbar{position:sticky;top:0;background:var(--bg);padding:18px 20px 8px;display:flex;align-items:center;justify-content:space-between;z-index:5}.brand{font-size:1.15rem;font-weight:700;color:var(--primary-dark);letter-spacing:.02em}.tabbar{position:sticky;bottom:0;display:flex;border-top:1px solid var(--border);background:var(--surface)}.tab{flex:1;border:none;background:none;padding:10px 4px 14px;color:var(--text-muted);font-size:.72rem;display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer}.tab.active{color:var(--primary-dark);font-weight:700}.tab-icon{font-size:1.25rem}.zone-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;font-weight:700;font-size:.85rem}.zone-green{background:var(--zone-green-bg);color:var(--zone-green-text)}.zone-yellow{background:var(--zone-yellow-bg);color:var(--zone-yellow-text)}.zone-red{background:var(--zone-red-bg);color:var(--zone-red-text)}.slider-row{display:flex;align-items:center;gap:12px}.slider-row input[type=range]{flex:1;accent-color:var(--primary)}.slider-value{width:28px;text-align:center;font-weight:700;color:var(--primary-dark)}.pill-select{display:flex;gap:6px;flex-wrap:wrap}.pill{padding:7px 12px;border-radius:999px;border:1.5px solid var(--border);background:var(--surface);color:var(--text-muted);font-size:.78rem;cursor:pointer}.pill.selected{border-color:var(--primary);background:var(--primary);color:var(--primary-contrast)}.progress-track{height:6px;border-radius:999px;background:var(--surface-muted);overflow:hidden;margin-bottom:20px}.progress-fill{height:100%;background:var(--primary);border-radius:999px;transition:width .2s ease}.chat-list{display:flex;flex-direction:column;gap:10px}.bubble{max-width:78%;padding:10px 14px;border-radius:16px;font-size:.93rem;line-height:1.4}.bubble-mine{align-self:flex-end;background:var(--primary);color:var(--primary-contrast);border-bottom-right-radius:4px}.bubble-theirs{align-self:flex-start;background:var(--surface-muted);color:var(--text);border-bottom-left-radius:4px}.bubble-ai{align-self:center;background:var(--zone-yellow-bg);color:var(--zone-yellow-text);border-radius:14px;font-size:.88rem;max-width:92%}.bubble-safety{align-self:center;background:var(--zone-red-bg);color:var(--zone-red-text);border-radius:14px;font-size:.88rem;max-width:92%;font-weight:600}.chat-composer{position:sticky;bottom:0;display:flex;gap:8px;padding:10px 0;background:var(--bg)}.chat-composer input{flex:1;padding:12px 16px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--text)}.icon-btn{border:none;background:var(--surface-muted);color:var(--primary-dark);border-radius:999px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:1.1rem}.center-note{text-align:center;color:var(--text-muted);font-size:.85rem;margin:12px 0}.tag{display:inline-block;padding:3px 10px;border-radius:999px;background:var(--surface-muted);color:var(--text-muted);font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em}.disclaimer{background:var(--surface-muted);border-radius:12px;padding:12px 14px;font-size:.8rem;color:var(--text-muted);margin-bottom:16px}.spinner{text-align:center;padding:40px 0;color:var(--text-muted)}
