:root{--sat:44px;--sab:0px;--top:calc(var(--sat) + 12px);--ink:#0E0E0E;--ground:#F5F4F1;--accent:#FF6B3D;--tint1:#FFE7DC;--tint2:#FFD5C4;--stone:#EDEBE6;--stone2:#E2E0DA;--grey:#5E5E5E;--muted:#8A8A8A;--border:#E6E4DF;--input:#D9D7D1;--danger:#C2410C}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:'Inter',system-ui,sans-serif;color:var(--ink);background:var(--ground);-webkit-tap-highlight-color:transparent}
h1,h2,h3{font-family:'Inter Tight','Inter',sans-serif;font-weight:800;letter-spacing:-0.045em;margin:0}
a{color:var(--ink);text-decoration:none}
button{font-family:inherit;cursor:pointer}
.phone{width:100%;max-width:390px;height:100vh;max-height:844px;margin:0 auto;background:var(--ground);position:relative;overflow:hidden}
@media (min-width:600px){.phone{margin:24px auto;border-radius:36px;box-shadow:0 20px 60px rgba(0,0,0,.18);height:844px}}
.screen{height:100%;display:flex;flex-direction:column}
.screen-body{flex:1;overflow-y:auto;padding:var(--top) 24px 16px;display:flex;flex-direction:column}
.screen-body.dark{background:var(--ink);color:#fff}
.tabbar{display:flex;justify-content:space-around;padding:8px 8px calc(14px + var(--sab));background:#fff;border-top:1px solid var(--border);font-size:11px;font-weight:600}
.tab{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 8px;min-width:44px;min-height:44px;color:var(--muted)}
.tab.on{color:var(--ink)}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border-radius:12px;border:0;background:var(--ink);color:#fff;font-size:16px;font-weight:600;width:100%}
.btn.accent{background:var(--accent);color:var(--ink)}
.btn.outline{background:transparent;color:var(--ink);border:1.5px solid #CFCFC8}
.btn.danger{background:transparent;color:var(--danger);border:1.5px solid var(--danger)}
.btn.small{min-height:44px;width:auto;font-size:14px;padding:0 16px;border-radius:10px}
.btn:disabled{opacity:.4}
.link{background:none;border:0;color:var(--ink);font-weight:600;font-size:14px;text-decoration:underline;min-height:44px;padding:0 8px}
.card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:16px}
.reassure{background:var(--tint1);border-radius:12px;padding:14px 16px;font-size:14px;line-height:1.4}
.chip{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:18px;background:var(--stone);font-size:13px;font-weight:600;border:0;color:var(--ink)}
.chip.on{background:var(--ink);color:#fff}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.pill{display:inline-flex;align-items:center;padding:3px 9px;border-radius:7px;background:var(--stone);font-size:12px;font-weight:600}
.row{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--border);min-height:44px}
.row:last-child{border-bottom:0}
.row .grow{flex:1;display:flex;flex-direction:column;gap:2px}
.sub{font-size:13px;color:var(--grey)}
.iconbtn{width:44px;height:44px;border-radius:22px;background:#fff;border:1px solid var(--border);display:inline-flex;align-items:center;justify-content:center;position:relative}
.iconbtn.dark{background:var(--ink);border-color:var(--ink)}
.dot{position:absolute;top:8px;right:9px;width:8px;height:8px;border-radius:4px;background:var(--accent)}
.topbar{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.topbar-title{flex:1;font-family:'Inter Tight',sans-serif;font-weight:700;font-size:18px}
.input{width:100%;min-height:48px;border-radius:12px;border:1.5px solid var(--input);padding:0 14px;font-size:16px;background:#fff;font-family:inherit}
textarea.input{padding:12px 14px;min-height:110px}
label.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;margin-top:14px}
.vthumb{position:relative;border-radius:14px;overflow:hidden;background:repeating-linear-gradient(135deg,#3A3A3A 0 2px,#262626 2px 14px)}
.vthumb img{width:100%;height:100%;object-fit:cover;display:block}
.vgrad{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 45%,rgba(0,0,0,.7))}
.vplay{position:absolute;top:12px;right:12px;width:40px;height:40px;border-radius:20px;background:var(--accent);display:flex;align-items:center;justify-content:center}
.vdur{position:absolute;left:12px;bottom:10px;font-size:12px;font-weight:700;color:#fff;background:rgba(0,0,0,.6);padding:2px 7px;border-radius:6px}
.tick{width:22px;height:22px;border-radius:11px;background:var(--ink);display:inline-flex;align-items:center;justify-content:center;flex:none}
.vthumb .tick{position:absolute;left:12px;top:12px}
.avatar{display:inline-flex;border-radius:50%;overflow:hidden;flex:none}
.progress{height:3px;background:var(--border);position:relative}
.progress>div{position:absolute;left:0;top:0;height:3px;background:var(--ink)}
.toggle{width:50px;height:30px;border-radius:15px;background:#CFCFC8;border:0;position:relative;flex:none}
.toggle.on{background:var(--ink)}
.toggle::after{content:'';position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:12px;background:#fff;transition:left .15s}
.toggle.on::after{left:23px}
.h1{font-size:34px;line-height:1.02}
.spacer{height:16px}
.sheet-bg{position:absolute;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:flex-end;z-index:20}
.sheet{background:#fff;width:100%;border-radius:20px 20px 0 0;padding:20px 20px calc(28px + var(--sab))}
.bubble{max-width:80%;padding:10px 14px;border-radius:16px;font-size:15px;line-height:1.35}
.bubble.me{align-self:flex-end;background:var(--ink);color:#fff;border-bottom-right-radius:4px}
.bubble.them{align-self:flex-start;background:#fff;border:1px solid var(--border);border-bottom-left-radius:4px}
.seg{display:flex;background:var(--stone);border-radius:12px;padding:3px;gap:3px}
.seg button{flex:1;min-height:40px;border:0;border-radius:10px;background:transparent;font-weight:600;font-size:14px}
.seg button.on{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.option{display:flex;align-items:center;gap:12px;min-height:56px;padding:12px 16px;border:1.5px solid var(--input);border-radius:12px;background:#fff;font-size:16px;font-weight:600;width:100%;text-align:left;color:var(--ink)}
.option.on{border-color:var(--ink);background:var(--ink);color:#fff}
.option.on .radio{border-color:var(--accent);background:var(--accent)}
.radio{width:20px;height:20px;border-radius:10px;border:2px solid #CFCFC8;flex:none}
.wordmark{font-family:'Inter Tight',sans-serif;font-weight:800;letter-spacing:-0.045em}
.wordmark i{color:var(--accent);font-style:normal}
.loading{padding:40px;text-align:center;color:var(--grey)}
.err{color:var(--danger);font-size:14px;margin-top:8px}
/* Screens without a tab bar keep their last button clear of the gesture bar. */
.screen-body:last-child{padding-bottom:calc(16px + var(--sab))}
/* Toggles: 50x30 visual, 44px+ tap target. */
.toggle{margin:7px 0;box-sizing:content-box}
.toggle::before{content:"";position:absolute;inset:-7px -2px}
.chip{min-height:44px}
/* Screens scroll; their blocks must never be squashed to fit the viewport (flex items with overflow:hidden would shrink to nothing on tall pages). */
.screen-body > *{flex-shrink:0}
