:root { --bg:#0B0B0C; --surface:#161618; --surface2:#202024; --line:#2C2C31; --text:#F4F4F0; --muted:#9A9AA0; --volt:#C8FF2E; --win:#FF4A1C;
  --display:"Avenir Next Condensed","Arial Narrow","Roboto Condensed","Helvetica Neue",Impact,sans-serif;
  --body:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; --safe-b:env(safe-area-inset-bottom,0px); --safe-t:env(safe-area-inset-top,0px); }
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body { margin:0; background:var(--bg); color:var(--text); font:16px/1.4 var(--body); }
body { min-height:100dvh; overscroll-behavior-y:none; }
button,input,select { font:inherit; color:inherit; }
button { cursor:pointer; border:0; background:none; touch-action:manipulation; }
.boot { display:grid; place-items:center; height:100dvh; }
#app.shell { position:fixed; inset:0; display:flex; flex-direction:column; overflow:hidden; }
.scroll { flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.wrap { max-width:560px; margin:0 auto; padding:calc(var(--safe-t) + 14px) 16px 28px; }
.top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.brand { font:800 20px/1 var(--display); letter-spacing:.04em; text-transform:uppercase; }
.count { font:800 14px/1 var(--display); letter-spacing:.08em; text-transform:uppercase; color:#111; background:var(--volt); padding:10px 14px; border-radius:99px; min-height:44px; display:grid; place-items:center; }
.chips { display:flex; gap:8px; overflow-x:auto; padding:2px 0 10px; scrollbar-width:none; }
.chips::-webkit-scrollbar { display:none; }
.chip { flex:0 0 auto; min-height:44px; padding:0 16px; border-radius:99px; background:var(--surface); color:var(--muted); font-weight:700; border:1px solid var(--line); }
.chip.on { background:var(--volt); color:#111; border-color:var(--volt); }
.kicker { font:800 13px/1 var(--display); letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin:10px 0 6px; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:18px; margin:12px 0; }
.card .t { font:800 26px/1.05 var(--display); text-transform:uppercase; letter-spacing:.01em; }
.card .say { color:var(--volt); font-weight:700; margin-top:8px; }
.card .sketch { color:var(--muted); font-style:italic; margin-top:6px; }
.card .note { color:var(--muted); font-size:14px; margin-top:6px; }
.card .meta { font:800 12px/1 var(--display); letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; }
.got { width:100%; min-height:56px; margin-top:14px; border-radius:14px; background:var(--volt); color:#111; font:800 20px/1 var(--display); letter-spacing:.08em; text-transform:uppercase; }
.empty { color:var(--muted); padding:24px 4px; text-align:center; }
.row { display:flex; align-items:center; gap:10px; min-height:48px; padding:8px 0; border-bottom:1px solid var(--line); }
.row .tx { flex:1; }
.row .sc { color:var(--muted); font-size:13px; }
.row.done .tx { opacity:.4; text-decoration:line-through; }
.row .when { color:var(--volt); font-size:13px; font-weight:700; opacity:.7; }
.undo { min-height:44px; padding:0 12px; color:var(--muted); font-weight:700; }
.h2 { font:800 18px/1 var(--display); letter-spacing:.08em; text-transform:uppercase; margin:20px 0 2px; }
.h2 span { color:var(--muted); font-size:14px; }
label { display:block; font:800 13px/1 var(--display); letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin:14px 0 6px; }
input,select { width:100%; min-height:48px; padding:0 14px; border-radius:12px; background:var(--surface); border:1px solid var(--line); }
.btn { width:100%; min-height:52px; margin-top:18px; border-radius:14px; background:var(--volt); color:#111; font:800 18px/1 var(--display); letter-spacing:.08em; text-transform:uppercase; }
.err { color:var(--win); margin-top:10px; min-height:20px; }
.login { max-width:360px; margin:0 auto; padding:calc(var(--safe-t) + 80px) 20px 20px; text-align:center; }
.login img { width:72px; height:72px; }
.toast { position:fixed; left:16px; right:16px; bottom:calc(var(--safe-b) + 72px); max-width:528px; margin:0 auto; background:var(--surface2); border:1px solid var(--line); border-radius:14px; padding:10px 14px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.toast button { color:var(--volt); font-weight:800; min-height:44px; padding:0 8px; }

.areas { display:grid; grid-template-columns:repeat(6,1fr); gap:6px; margin-bottom:10px; }
.area { min-height:64px; border-radius:14px; background:var(--surface); border:1px solid var(--line); color:var(--muted); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; font:800 11px/1 var(--display); letter-spacing:.08em; text-transform:uppercase; }
.area b { font-size:24px; line-height:1; font-weight:400; }
.area.on { background:var(--volt); color:#111; border-color:var(--volt); }
.card .ask { width:100%; min-height:44px; margin-top:4px; color:var(--muted); font-weight:700; }
.dock { flex:0 0 auto; display:flex; gap:10px; padding:10px 16px calc(var(--safe-b) + 10px); background:linear-gradient(transparent,var(--bg) 30%); }
.dock button { flex:1; min-height:60px; border-radius:18px; background:var(--surface2); border:1px solid var(--line); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font:800 12px/1 var(--display); letter-spacing:.1em; text-transform:uppercase; }
.dock button b { font-size:22px; line-height:1; font-weight:400; }
.dock .lloyd { background:var(--volt); color:#111; border-color:var(--volt); }
.sheet { position:fixed; inset:0; z-index:5; background:var(--bg); display:flex; flex-direction:column; }
.sheet .bar { flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; padding:calc(var(--safe-t) + 8px) 12px 8px; border-bottom:1px solid var(--line); }
.sheet .bar .ttl { font:800 18px/1 var(--display); letter-spacing:.08em; text-transform:uppercase; }
.back { min-height:44px; min-width:44px; padding:0 14px; border-radius:99px; background:var(--surface); font-weight:800; }
.prog { height:8px; border-radius:99px; background:var(--surface2); margin:8px 0 4px; overflow:hidden; }
.prog i { display:block; height:100%; background:var(--volt); }
.chat { flex:1 1 auto; min-height:0; overflow-y:auto; padding:14px 16px; }
.msg { max-width:88%; padding:10px 14px; border-radius:16px; margin:8px 0; white-space:pre-wrap; background:var(--surface); }
.msg.me { margin-left:auto; background:var(--surface2); }
.msg .use { display:block; margin-top:8px; min-height:44px; padding:0 14px; border-radius:12px; background:var(--volt); color:#111; font-weight:800; }
.quick { display:flex; gap:8px; flex-wrap:wrap; padding:4px 16px; }
.quick .chip { white-space:normal; text-align:left; padding:8px 14px; }
.compose { flex:0 0 auto; display:flex; gap:8px; padding:8px 12px calc(var(--safe-b) + 10px); border-top:1px solid var(--line); }
.compose input { flex:1; }
.compose button { min-width:72px; border-radius:12px; background:var(--volt); color:#111; font-weight:800; }
.ctx { padding:8px 12px; border-radius:12px; background:var(--surface); color:var(--muted); font-size:14px; }
.base { margin:0 0 10px; font:800 12px/1.2 var(--display); letter-spacing:.1em; text-transform:uppercase; color:var(--volt); }
