/* Ayuen on the web. Tokens, fonts and components follow the Mac app's PAGE
   (webui.py, "THEME v2" 2026-09-28): ink-blue charcoal dark, warm paper light,
   one teal accent, serif headings from the system (nothing downloaded). */
:root{
  --bg:#12161c; --bg2:#161b22; --surface:#1a2029; --surface2:#212833; --panel:var(--surface); --side:#12161c;
  --border:rgba(255,255,255,.075); --border2:rgba(255,255,255,.13);
  --text:#e9edf2; --muted:#a3acb9; --faint:#7b8594;
  --a1:#2bb3a3; --a2:#1c8f83; --a3:#86d9cd; --aq:43,179,163;
  --warn:#d9a441; --danger:#e5605a; --ok:var(--a1);
  --serif:ui-serif,"New York","Iowan Old Style",Georgia,serif;
  --shadow:0 18px 50px rgba(0,0,0,.38);
  --r:14px; --ease:cubic-bezier(.2,.8,.2,1); --spring:cubic-bezier(.34,1.56,.64,1);
  --safe-b:env(safe-area-inset-bottom,0px); --safe-t:env(safe-area-inset-top,0px);
  --safe-l:env(safe-area-inset-left,0px); --safe-r:env(safe-area-inset-right,0px);
  color-scheme:dark;
}
body.light{
  --bg:#f3efe7; --bg2:#ece7dd; --surface:#fbf9f5; --surface2:#ffffff; --panel:var(--surface); --side:#f3efe7;
  --border:rgba(60,45,20,.12); --border2:rgba(60,45,20,.2);
  --text:#23201b; --muted:#5f584d; --faint:#8a8276;
  --a1:#0f7a6e; --a2:#0b6258; --a3:#0f7a6e; --aq:15,122,110;
  --warn:#a86b12; --danger:#c43d38;
  --shadow:0 14px 40px rgba(70,50,20,.12);
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{height:100%}
[hidden],.hidden{display:none!important}
::selection{background:rgba(var(--aq),.35)}
body{margin:0;background:var(--bg);color:var(--text);
  font:15px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,system-ui,Roboto,"Noto Sans",sans-serif;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%;
  overflow:hidden;transition:background-color .3s ease,color .3s ease}
button,input,select,textarea{font:inherit;color:inherit}
a{color:var(--a3)} body.light a{color:var(--a1)}
:focus-visible{outline:2px solid var(--a1);outline-offset:2px}
.noscript{padding:24px;text-align:center}

/* ---- logo (shapes cloned from web/logo.svg) ---- */
.mark .tile{fill:var(--a1)}
.mark .bubble{fill:#fff}
.mark .spark{fill:var(--a1);transform-box:fill-box;transform-origin:center}
.mark .bubble{transform-box:fill-box;transform-origin:30% 85%}
.mark.intro .bubble{animation:pop .55s var(--spring) both}
.mark.intro .spark{animation:twinkle .7s .35s var(--spring) both}
.mark.live .spark{animation:turn 2.4s ease-in-out infinite}
@keyframes pop{from{transform:scale(.3);opacity:0}to{transform:none;opacity:1}}
@keyframes twinkle{0%{transform:scale(0) rotate(-45deg);opacity:0}70%{transform:scale(1.18) rotate(8deg);opacity:1}100%{transform:none}}
@keyframes turn{0%{transform:rotate(0) scale(1)}50%{transform:rotate(45deg) scale(.82)}100%{transform:rotate(90deg) scale(1)}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---- signed out ---- */
.auth{height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch;
  padding:max(28px,var(--safe-t)) max(16px,var(--safe-r)) max(24px,var(--safe-b)) max(16px,var(--safe-l))}
.authwrap{max-width:420px;margin:0 auto;padding-top:clamp(8px,6vh,72px)}
.authhead{text-align:center;margin-bottom:22px}
.authlogo{width:56px;height:56px;display:block;margin:0 auto 14px}
.authbrand{font-family:var(--serif);font-weight:600;font-size:34px;letter-spacing:-.4px;margin:0;line-height:1.1}
.authline{color:var(--muted);margin:8px auto 0;max-width:340px;font-size:15px;line-height:1.5}
.authcard{background:var(--surface2);border:1px solid var(--border2);border-radius:18px;padding:18px;box-shadow:var(--shadow)}
.atabs{display:flex;gap:3px;padding:3px;border-radius:11px;background:var(--bg2);border:1px solid var(--border);margin-bottom:14px}
.atabs button{flex:1;padding:9px 8px;border:0;background:none;color:var(--muted);font-size:14px;font-weight:600;border-radius:8px;cursor:pointer;min-height:40px}
.atabs button.on{background:var(--surface2);color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.18),inset 0 0 0 1px var(--border)}
.aform{display:flex;flex-direction:column}
.fl{font-size:13px;font-weight:600;color:var(--muted);margin:10px 0 5px}
.fl:first-child{margin-top:0}
.aform input:not([type=checkbox]),.aform select,.acctcard input:not([type=checkbox]),.acctcard select{
  width:100%;padding:11px 13px;border-radius:11px;border:1px solid var(--border2);background:var(--panel);
  font-size:16px;outline:none;min-height:46px}
.aform input:focus,.aform select:focus,.acctcard input:focus,.acctcard select:focus{border-color:rgba(var(--aq),.6);box-shadow:0 0 0 3px rgba(var(--aq),.12)}
.fnote{font-size:12.5px;color:var(--muted);margin:6px 0 0;line-height:1.45}
.refbox{margin-top:12px;font-size:13.5px}
.refbox summary{cursor:pointer;color:var(--a3);font-weight:600;padding:4px 0}
body.light .refbox summary{color:var(--a1)}
.refbox input{margin-top:6px}
.check{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;color:var(--muted);margin:12px 0 0;line-height:1.45;cursor:pointer}
.check input{width:18px;height:18px;flex:none;margin:1px 0 0;accent-color:var(--a1)}
.pbtn{font-weight:600;padding:11px 16px;border-radius:12px;border:0;background:var(--a1);color:#fff;cursor:pointer;min-height:46px;font-size:15px}
.pbtn:hover{filter:brightness(1.08)}
.pbtn:disabled{opacity:.55;cursor:default}
.pbtn.wide{width:100%;margin-top:16px}
.gbtn{padding:9px 14px;border-radius:11px;border:1px solid var(--border2);background:none;cursor:pointer;min-height:42px}
.gbtn:hover{background:var(--surface)}
.authfoot{text-align:center;font-size:13.5px;color:var(--faint);margin:20px 0 0}
.authfoot a{font-weight:600}

/* error / notice cards (as in the app: a small card, the fix as a button) */
.errcard{border:1px solid rgba(229,96,90,.35);background:rgba(229,96,90,.08);border-radius:12px;padding:10px 12px;
  display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:1.45;margin:0 0 12px}
.errcard.ok{border-color:rgba(var(--aq),.4);background:rgba(var(--aq),.1)}
.errcard .eacts{display:flex;gap:8px;flex-wrap:wrap}
.errcard button{font-size:13px;font-weight:600;padding:6px 13px;border-radius:999px;cursor:pointer;
  border:1px solid var(--border2);background:transparent;min-height:34px}
.errcard button.pri{background:var(--a1);border-color:transparent;color:#fff}

/* ---- signed in: layout ---- */
.app{display:flex;height:100%;height:100dvh}
.side{width:262px;flex:none;display:flex;flex-direction:column;background:var(--side);border-right:1px solid var(--border);z-index:40;
  padding-top:var(--safe-t)}
.side .top{display:flex;align-items:center;gap:11px;padding:15px 16px 10px}
.logo{width:32px;height:32px;flex:none}
.brand{flex:1;min-width:0}
.brand b{font-family:var(--serif);font-size:17px;font-weight:600;letter-spacing:.1px;display:block;line-height:1.2}
.brand span{display:block;font-size:11px;color:var(--faint);letter-spacing:.3px}
.iconbtn.sideclose{display:none}
.newchat{display:flex;align-items:center;gap:8px;margin:4px 10px 10px;padding:9px 12px;border-radius:11px;border:1px solid var(--border);
  background:var(--surface);color:var(--text);font-size:13.5px;font-weight:600;cursor:pointer;min-height:42px}
.newchat:hover{border-color:var(--border2)}
.sect{font-size:10.5px;color:var(--faint);text-transform:uppercase;letter-spacing:.9px;padding:6px 18px 4px}
.chatlist{flex:1;overflow-y:auto;padding:0 8px 12px;overscroll-behavior:contain}
.citem{display:flex;align-items:center;gap:6px;border-radius:10px;color:var(--muted);font-size:13.5px;position:relative}
.citem:hover{background:rgba(127,127,127,.08);color:var(--text)}
.citem.on{background:var(--surface2);box-shadow:inset 0 0 0 1px var(--border);color:var(--text)}
.citem .t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;background:none;text-align:left;
  padding:9px 4px 9px 10px;cursor:pointer;min-height:38px;color:inherit}
.citem .del{opacity:0;border:0;background:none;color:var(--faint);cursor:pointer;padding:6px 8px;border-radius:7px;font-size:15px;line-height:1}
.citem:hover .del,.citem.on .del,.citem .del:focus-visible{opacity:1}
.citem .del:hover{color:var(--danger)}
.empty-side{color:var(--faint);font-size:12.5px;padding:8px 10px}
.sidenote{font-size:11.5px;color:var(--faint);margin:0;padding:4px 18px}
.sidefoot{padding:8px 10px max(12px,var(--safe-b))}
.installbtn{width:100%;display:flex;align-items:center;gap:9px;margin:0 0 8px;padding:9px 12px;border-radius:11px;border:1px solid var(--border);
  background:none;color:var(--muted);font:inherit;font-size:13px;cursor:pointer}
.installbtn:hover{color:var(--text);border-color:var(--a1)}
.installbtn svg{color:var(--a1);flex:none}
.installnote{margin:-2px 2px 10px;font-size:12.5px;line-height:1.45;color:var(--muted)}
.installbtn[hidden],.installnote[hidden]{display:none}
.profbtn{width:100%;display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;border:1px solid transparent;
  background:none;cursor:pointer;text-align:left}
.profbtn:hover{background:var(--surface);border-color:var(--border)}
.profav{flex:none;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--a1);color:#fff;font-weight:600;font-size:13px}
.proftext{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.profname{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profsub{font-size:12px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.main{flex:1;min-width:0;display:flex;flex-direction:column;position:relative}
header{display:flex;align-items:center;gap:8px;padding:calc(10px + var(--safe-t)) max(18px,var(--safe-r)) 10px 18px;min-height:56px}
.iconbtn{width:40px;height:40px;flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:11px;border:1px solid var(--border);
  background:var(--surface);color:var(--muted);cursor:pointer}
.iconbtn:hover{color:var(--text);border-color:var(--border2)}
.iconbtn.menubtn{display:none}
.htitle{font-size:14px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.spacer{margin-left:auto}
.balpill{font-size:12.5px;font-weight:600;padding:0 12px;height:36px;border-radius:999px;border:1px solid var(--border);background:var(--surface);
  cursor:pointer;white-space:nowrap;font-variant-numeric:tabular-nums}
.balpill:hover{border-color:var(--border2)}
.balpill.low{border-color:color-mix(in srgb,var(--warn) 55%,transparent)}
.notes{max-width:760px;width:100%;margin:0 auto;padding:0 22px}
.notecard{display:flex;gap:10px;align-items:flex-start;margin:6px 0;padding:10px 12px;border-radius:12px;font-size:13.5px;line-height:1.45;
  background:rgba(var(--aq),.1);border:1px solid rgba(var(--aq),.28)}
.notecard .nt{flex:1;min-width:0}.notecard .nt b{display:block;margin-bottom:2px}
.notecard button{border:0;background:none;color:var(--muted);cursor:pointer;font-size:17px;line-height:1;padding:4px 6px;border-radius:7px}
.notecard button:hover{color:var(--text)}

#scroll{flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#log{max-width:760px;margin:0 auto;padding:22px 22px 12px}

/* home: greeting + one question, no starters */
#hello{max-width:640px;margin:clamp(40px,14vh,140px) auto 0;text-align:center;padding:0 12px}
#hello .biglogo{width:52px;height:52px;display:block;margin:0 auto}
#hello .greet{font-size:13.5px;font-weight:600;letter-spacing:.4px;margin:18px 0 0;color:var(--a3)}
body.light #hello .greet{color:var(--a1)}
#hello h1{font-family:var(--serif);font-weight:500;font-size:40px;letter-spacing:-.6px;line-height:1.12;margin:6px 0 0}
#hello h1 .w{display:inline-block;animation:wordin .7s var(--ease) both}
@keyframes wordin{from{opacity:0;transform:translateY(8px);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
#hello .hnote{color:var(--faint);font-size:13px;margin:14px 0 0}

/* messages */
.msg{display:flex;gap:12px;margin:0 0 24px;animation:rise .35s var(--ease)}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.msg.user{flex-direction:row-reverse}
.msg .who{width:28px;height:28px;flex:none;margin-top:1px}
.msg .who .mark{width:28px;height:28px;display:block}
.col{min-width:0;max-width:85%}
.bot .col{max-width:100%;flex:1}
.user .col{display:flex;flex-direction:column;align-items:flex-end}
.mtext{word-wrap:break-word;overflow-wrap:anywhere}
.user .mtext{background:var(--surface2);box-shadow:inset 0 0 0 1px var(--border);border-radius:18px 18px 6px 18px;padding:10px 15px;white-space:pre-wrap}
body.light .user .mtext{background:#e6e0d3}
.ufile{font-size:12px;color:var(--muted);margin-top:5px;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.ufile span{border:1px solid var(--border);border-radius:8px;padding:2px 8px;background:var(--surface)}
.bot .mtext{max-width:70ch;font-size:15.5px;line-height:1.72;padding:2px 2px 0}
.bot .mtext>:first-child{margin-top:0!important}
.bot .mtext>:last-child{margin-bottom:0!important}
.mdp{margin:0 0 .9em}
.mtext strong{font-weight:620}
.mdh{margin:1.5em 0 .5em;line-height:1.3}
.mdh2{font-family:var(--serif);font-weight:600;font-size:1.28em;letter-spacing:-.2px}
.mdh3{font-family:var(--serif);font-weight:600;font-size:1.1em}
.mdh4,.mdh5,.mdh6{font-weight:650;font-size:1em;margin-top:1.2em}
.mdh+.mdh{margin-top:.4em}
.mdul,.mdol{margin:.2em 0 1em;padding-left:1.35em}
.mdul li,.mdol li{margin:.38em 0;padding-left:.2em}
.mdul li::marker{color:var(--faint)}
.mdol li::marker{color:var(--muted);font-variant-numeric:tabular-nums;font-weight:600}
li .mdul,li .mdol{margin:.2em 0 .3em}
.mdli2{color:var(--muted);margin-top:.2em}
.mdhr{border:0;border-top:1px solid var(--border);margin:1.6em 0}
.mdtablewrap{margin:.6em 0 1.1em;overflow-x:auto}
.mdtable{border-collapse:collapse;width:100%;font-size:.93em}
.mdtable th,.mdtable td{border-bottom:1px solid var(--border);padding:8px 14px 8px 0;text-align:left;vertical-align:top}
.mdtable th{font-weight:650;border-bottom:1.5px solid var(--border2);white-space:nowrap}
.mdtable tr:last-child td{border-bottom:0}
.mdq{border-left:2px solid var(--border2);padding:.1em 0 .1em 1em;margin:.6em 0 1em;color:var(--muted)}
.mtext code{background:var(--surface);border:1px solid var(--border);border-radius:5px;padding:.08em .38em;font-size:.88em;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.mtext a{text-decoration:underline;text-decoration-color:rgba(var(--aq),.45);text-underline-offset:3px}
.mdul.tasks{list-style:none;padding-left:0}
.mdul.tasks li.task{display:flex;align-items:baseline;gap:9px;color:var(--muted)}
.tbox{flex:none;width:13px;height:13px;border-radius:50%;border:1.6px solid var(--border2);position:relative;top:2px}
li.task.done .tbox{background:var(--a1);border-color:var(--a1)}
.codeblock{margin:.7em 0 1.1em;border:1px solid var(--border);border-radius:10px;background:#0c1015;overflow:hidden}
.codebar{display:flex;align-items:center;justify-content:space-between;padding:4px 6px 4px 12px;border-bottom:1px solid rgba(255,255,255,.06)}
.codelang{font-size:11px;color:#8a93a3;font-family:ui-monospace,Menlo,monospace}
.codecopy{font-size:11.5px;color:#b9c0cc;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:7px;padding:3px 10px;cursor:pointer;min-height:28px}
.codecopy:hover{color:#fff}
.codeblock pre{margin:0;padding:12px 14px;overflow-x:auto}
.codeblock pre code{display:block;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;line-height:1.55;
  color:#e7ebf5;white-space:pre;background:none;border:0;padding:0}
.meta{display:flex;align-items:center;gap:8px;margin-top:9px;flex-wrap:wrap}
.step{font-size:11.5px;padding:3px 10px;border-radius:999px;background:var(--surface);border:1px solid var(--border);color:var(--muted);
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.step b{color:var(--text);font-weight:600}
.step.warn{border-color:rgba(217,164,65,.45)}
.rowbtns{display:flex;gap:2px;margin-top:6px}
.copy{font-size:12px;color:var(--faint);background:none;border:0;cursor:pointer;padding:4px 8px;border-radius:7px;min-height:30px}
.copy:hover{color:var(--text);background:var(--surface)}
.typing{display:inline-flex;gap:4px;padding:6px 2px}
.typing span{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:blink 1.3s infinite both}
.typing span:nth-child(2){animation-delay:.18s}.typing span:nth-child(3){animation-delay:.36s}
@keyframes blink{0%,80%,100%{opacity:.2;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}
.thinking{font-size:12.5px;color:var(--faint);margin:0 0 8px}
.thinking summary{cursor:pointer}
.thinking div{white-space:pre-wrap;border-left:2px solid var(--border);padding-left:10px;margin-top:4px;max-height:220px;overflow-y:auto}
.qpos{font-size:12.5px;color:var(--faint)}

/* composer */
.composer{padding:8px max(22px,var(--safe-r)) calc(16px + var(--safe-b)) max(22px,var(--safe-l));background:var(--bg)}
.attachrow{max-width:760px;margin:0 auto 8px;display:flex;flex-wrap:wrap;gap:8px}
.attachrow:empty{display:none}
.attach{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:11px;padding:6px 6px 6px 11px;
  font-size:12.5px;max-width:100%}
.attach .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.attach .sz{color:var(--faint);white-space:nowrap}
.attach.trim{border-color:rgba(217,164,65,.5)}
.attnote{flex-basis:100%;font-size:12.5px;color:var(--muted);padding:6px 10px;border-radius:10px;border:1px solid rgba(217,164,65,.45);background:rgba(217,164,65,.08)}
.attach .rm{border:0;background:none;color:var(--faint);cursor:pointer;font-size:16px;line-height:1;padding:4px 7px;border-radius:7px}
.attach .rm:hover{color:var(--danger)}
form#f{position:relative;max-width:760px;margin:0 auto;display:flex;gap:6px;align-items:flex-end;background:var(--surface2);
  border:1px solid var(--border2);border-radius:18px;padding:7px 7px 7px 7px;box-shadow:0 10px 30px rgba(0,0,0,.22)}
body.light form#f{box-shadow:0 8px 24px rgba(70,50,20,.10)}
form#f:focus-within{border-color:rgba(var(--aq),.55);box-shadow:0 0 0 4px rgba(var(--aq),.10),0 10px 30px rgba(0,0,0,.22)}
textarea#q{flex:1;min-width:0;resize:none;background:none;border:0;padding:9px 4px;max-height:180px;outline:none;line-height:1.5;font-size:16px}
textarea#q::placeholder{color:var(--faint)}
.attachbtn{width:40px;height:42px;border:0;border-radius:12px;flex:none;cursor:pointer;color:var(--muted);background:none;
  display:flex;align-items:center;justify-content:center}
.attachbtn:hover,.attachbtn[aria-expanded="true"]{color:var(--text);background:rgba(127,127,127,.1)}
.send{width:42px;height:42px;border:0;border-radius:13px;flex:none;cursor:pointer;color:#fff;background:var(--a1);
  display:flex;align-items:center;justify-content:center;transition:transform .2s var(--spring),filter .2s,opacity .2s}
.send:not(:disabled):hover{filter:brightness(1.1);transform:translateY(-1px)}
.send:disabled{opacity:.4;cursor:default}
.send.stop{background:var(--surface);color:var(--text);border:1px solid var(--border2)}
.hint{max-width:760px;margin:8px auto 0;text-align:center;font-size:11.5px;color:var(--faint)}
.modelchip{display:inline-flex;align-items:center;gap:5px;align-self:center;flex:none;max-width:190px;height:34px;padding:0 11px;
  border-radius:999px;border:1px solid rgba(var(--aq),.55);background:transparent;font-size:12.5px;cursor:pointer}
.modelchip .mclbl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hchip{display:none}
.pmenu{position:absolute;bottom:calc(100% + 8px);left:6px;z-index:30;min-width:270px;max-width:min(340px,calc(100vw - 32px));
  background:var(--surface2);border:1px solid var(--border2);border-radius:14px;padding:6px;box-shadow:0 14px 40px rgba(0,0,0,.35);
  display:flex;flex-direction:column;gap:2px;max-height:min(62vh,460px);overflow-y:auto}
.pmenu button{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:1px;padding:9px 11px;border-radius:10px}
.pmenu button:hover,.pmenu button:focus-visible{background:rgba(127,127,127,.1)}
.pmenu button.on{background:rgba(var(--aq),.16)}
.pmenu b{font-size:13.5px;font-weight:600}
.pmenu small{font-size:12px;color:var(--muted)}
.pmenu .mhd{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);padding:8px 11px 2px}
.pmenu .pmnote{font-size:12px;color:var(--faint);padding:4px 11px 6px}
.mmenu{left:auto;right:6px}
.modechip{display:inline-flex;align-items:center;gap:4px;align-self:center;flex:none;font-size:12.5px;font-weight:600;
  padding:4px 4px 4px 10px;border-radius:999px;background:rgba(var(--aq),.16)}
.modechip select{all:unset;cursor:pointer;font-weight:700;padding:0 2px;max-width:140px}
.modechip select option{color:#111}
.modechip button{all:unset;cursor:pointer;width:22px;height:22px;border-radius:50%;text-align:center;line-height:22px;color:var(--muted)}

/* account modal */
.modal{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;background:rgba(4,5,9,.55);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);padding:16px}
body.light .modal{background:rgba(40,30,15,.25)}
.card{background:var(--surface2);border:1px solid var(--border2);border-radius:20px;padding:22px;box-shadow:var(--shadow);animation:rise .3s var(--ease)}
.card .ch{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.card h2{margin:0;font-size:19px;font-family:var(--serif);font-weight:600;flex:1}
.acctcard{width:100%;max-width:540px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
.acctcard h3{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--faint);margin:20px 0 8px;font-weight:600}
/* the guide panel ("How to use Ayuen") */
.gdfilter{width:100%;box-sizing:border-box;margin:4px 0 10px;padding:9px 12px;border-radius:10px;border:1px solid var(--border2);background:var(--surface);color:var(--text);font:inherit;font-size:14px}
.gdfilter:focus{outline:none;border-color:var(--a1)}
.gdintro{font-size:13px;color:var(--faint);margin:0 0 8px;line-height:1.5}
.gdsec{border-bottom:1px solid var(--border);padding:6px 0}
.gdsec summary{cursor:pointer;list-style:none;display:flex;flex-direction:column;gap:2px;padding:4px 0}
.gdsec summary::-webkit-details-marker{display:none}
.gdsec summary b{font-size:14px}
.gdsum{font-size:12.5px;color:var(--faint)}
.gdsec ul{margin:4px 0 8px 18px;padding:0;font-size:13.5px;line-height:1.5}
.gdsec li{margin:4px 0}
.acctbal{font-size:32px;font-weight:600;font-family:var(--serif);line-height:1.15;font-variant-numeric:tabular-nums}
.acctbal small{font-family:inherit;font-size:14px;font-weight:400;color:var(--muted)}
.acctsub{color:var(--muted);font-size:13.5px;margin:4px 0 0}
.acctsub a{cursor:pointer}
.bundles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.bundles button{padding:11px 6px;border-radius:11px;border:1px solid var(--border2);background:var(--panel);cursor:pointer;font-weight:600;min-height:54px}
.bundles button:hover{border-color:rgba(var(--aq),.55)}
.bundles button small{display:block;color:var(--faint);font-size:11px;font-weight:400}
.ubar{margin:8px 0}.ubar .l{display:flex;justify-content:space-between;font-size:12.5px;color:var(--muted)}
.ubar .t{height:7px;border-radius:99px;background:rgba(127,127,127,.15);overflow:hidden}.ubar .t i{display:block;height:100%;background:var(--a1);width:0}
.ubar.hot .t i{background:var(--warn)}
.paybox{border:1px solid var(--border2);border-radius:12px;padding:12px 14px;margin-top:12px;font-size:14px}
.paybox ol{margin:8px 0 0 18px;padding:0}
.paybox code,.paybox .big{font-size:16px;font-weight:650;font-family:ui-monospace,Menlo,monospace}
.paybox details{margin-top:8px;font-size:13px}.paybox summary{cursor:pointer;color:var(--muted)}
.paybox .muted,.muted{color:var(--muted);font-size:13px}
.row{display:flex;gap:8px;align-items:stretch;margin-top:6px}
.row input{flex:1;min-width:0}
.row .pbtn,.row .gbtn{flex:none}
.ledger{width:100%;border-collapse:collapse;font-size:13px}
.ledger td{padding:7px 0;border-bottom:1px solid var(--border);vertical-align:top}
.ledger td:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;padding-left:8px}
.ledger .when{color:var(--faint);font-size:12px}
.plus{color:var(--a3)} body.light .plus{color:var(--a1)}
.acctfoot{display:flex;gap:8px;justify-content:space-between;align-items:center;margin-top:22px;flex-wrap:wrap}
.acctfoot a{font-size:13px}
.atabs.small{margin:16px 0 4px}
.atabs.small button{font-size:13px;min-height:36px;padding:6px 6px}

.toast{position:fixed;left:50%;bottom:calc(96px + var(--safe-b));transform:translateX(-50%);z-index:80;background:var(--text);color:var(--bg);
  padding:9px 16px;border-radius:999px;font-size:13.5px;font-weight:600;box-shadow:var(--shadow);animation:rise .25s var(--ease)}

/* ---- phones and small tablets ---- */
@media (max-width:820px){
  .side{position:fixed;top:0;bottom:0;left:0;width:min(84vw,300px);transform:translateX(-102%);transition:transform .25s var(--ease);
    box-shadow:var(--shadow);padding-left:var(--safe-l)}
  .app.drawer .side{transform:none}
  .scrim{position:fixed;inset:0;z-index:35;background:rgba(0,0,0,.4)}
  .iconbtn.menubtn,.iconbtn.sideclose{display:inline-flex}
  header{padding-left:max(12px,var(--safe-l));padding-right:max(12px,var(--safe-r))}
  #log{padding:16px 16px 8px}
  .notes{padding:0 16px}
  .composer{padding:6px max(10px,var(--safe-r)) calc(10px + var(--safe-b)) max(10px,var(--safe-l))}
  .hint{display:none}
  #hello h1{font-size:30px}
  .citem .del{opacity:1}
}
@media (max-width:520px){
  form#f .modelchip{display:none}
  .hchip{display:inline-flex;height:34px;max-width:42vw}
  .mmenu{position:fixed;top:calc(60px + var(--safe-t));bottom:auto;right:12px;left:12px;min-width:0;max-width:none}
  .htitle{display:none}
  .balpill{padding:0 10px}
  #themebtn{display:none}
  .acctthemeline{display:flex!important}
  .modal{align-items:flex-end;padding:0}
  .acctcard{border-radius:22px 22px 0 0;max-height:calc(100dvh - 12px - var(--safe-t));padding:20px 16px calc(18px + var(--safe-b));border-bottom:0}
  .bundles{grid-template-columns:repeat(2,1fr)}
  .msg{gap:10px}
  .msg.user .who{display:none}
  .col{max-width:90%}
}
.acctthemeline{display:none;align-items:center;justify-content:space-between;margin-top:14px;font-size:13.5px;color:var(--muted)}
.msg.user .who{display:none}

.nt a{color:var(--a1);text-decoration:underline;text-underline-offset:2px}.nt a:hover{color:var(--a2)}

.sideup{margin:6px 10px 10px;padding:11px 12px;border-radius:12px;border:1px solid var(--border);background:var(--surface);display:flex;flex-direction:column;gap:5px}
.sideup b{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:600;color:var(--text)}
.sideup b svg{color:var(--a1);flex:none}
.sideup span{font-size:12.5px;line-height:1.45;color:var(--muted)}
.sideup a{font-size:13px;font-weight:600;color:var(--a1);text-decoration:none;margin-top:2px}
.sideup a:hover{text-decoration:underline}

/* maths (KaTeX), the same look as the laptop app */
.mdmath{margin:.5em 0 1em;overflow-x:auto;overflow-y:hidden;padding:2px 0}
.mdmath .katex-display{margin:0}
.katex{font-size:1.06em}
.mathraw{font-family:ui-monospace,Menlo,monospace;font-size:13px;color:var(--muted);margin:.4em 0;white-space:pre-wrap}

/* promo slot on the home screen */
.promo{position:relative;max-width:560px;height:118px;margin:26px auto 0;border:1px solid var(--border);border-radius:16px;background:var(--surface);text-align:left;overflow:hidden}
.promo:empty{display:none}
.promo .slide{position:absolute;inset:0;padding:14px 18px 12px;display:flex;flex-direction:column;gap:4px;opacity:0;transition:opacity .5s}
.promo .slide.on{opacity:1}
.promo .ptag{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--a3);font-weight:700}
body.light .promo .ptag{color:var(--a1)}
.promo .ptag.sp{color:var(--muted)}
.promo .ptitle{font-size:15px;font-weight:650;line-height:1.25}
.promo .pbody{font-size:12.5px;color:var(--muted);line-height:1.4;padding-right:128px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.promo .pcta{position:absolute;right:14px;bottom:12px;font-size:12px;font-weight:600;color:var(--a3);background:rgba(var(--aq),.12);border:0;border-radius:999px;padding:5px 11px;cursor:pointer}
body.light .promo .pcta{color:var(--a1)}
.promo .pdots{position:absolute;left:18px;bottom:12px;display:flex;gap:5px}
.promo .pdots button{all:unset;cursor:pointer;width:6px;height:6px;border-radius:50%;background:var(--border2)}
.promo .pdots button.on{background:var(--a3)}
@media (max-width:520px){.promo{height:160px}.promo .pbody{padding-right:0}.promo .pcta{position:static;align-self:flex-start;margin-top:4px}}
.promo.side{max-width:none;height:168px;margin:auto 10px 10px;background:var(--surface2)}
.promo.side .slide{padding:12px 14px 10px;gap:3px}
.promo.side .ptitle{font-size:13.5px}
.promo.side .pbody{font-size:12px;padding-right:0;-webkit-line-clamp:3}
.promo.side .pcta{position:static;align-self:flex-start;margin-top:auto;padding:4px 10px}
.promo.side .pdots{left:auto;right:14px;bottom:14px}
/* attention: slides enter from the right and settle, the tag dot pulses, a thin bar
   fills until the next slide (paused on hover); reduced motion keeps a plain fade */
.promo .slide{transform:translateX(14px);transition:opacity .45s var(--ease,ease),transform .55s cubic-bezier(.2,.8,.2,1)}
.promo .slide.on{transform:none}
.promo .slide.off{transform:translateX(-10px)}
.promo .ptag::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--a3);margin-right:6px;vertical-align:1px;animation:promopulse 1.6s ease-in-out infinite}
body.light .promo .ptag::before{background:var(--a1)}
.promo .ptag.sp::before{background:var(--muted);animation:none}
@keyframes promopulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.6);opacity:.45}}
.promo .pbar{position:absolute;left:0;top:0;height:2px;width:0;background:var(--a3);opacity:.8}
body.light .promo .pbar{background:var(--a1)}
.promo .pbar.run{animation:promobar var(--secs,8s) linear forwards}
.promo:hover .pbar.run{animation-play-state:paused}
@keyframes promobar{from{width:0}to{width:100%}}
@keyframes promoup{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.promo .slide.on .ptitle{animation:promoup .5s ease .05s both}
.promo .slide.on .pbody{animation:promoup .5s ease .12s both}
.promo .slide.on .pcta{animation:promoup .5s ease .2s both}
@media (prefers-reduced-motion:reduce){.promo .slide,.promo .slide.on .ptitle,.promo .slide.on .pbody,.promo .slide.on .pcta,.promo .ptag::before{animation:none;transition:opacity .3s;transform:none}}

/* ==================================================================
   NEXUS look (2026-10-23, ported from the laptop app, PRs #90-#95): a neural
   field (canvas) breathes behind the chat and gathers toward the message box
   while Ayuen works; the home screen is an orbit of four words; the sidebar is a
   rail; the message box is a command deck with a data stream on its edge; a
   reactor-core HUD above it marks the milestones only (WORKING / SOURCING /
   DELIVERED). Answers and the thinking feed stay plain text (owner, 2026-10-22).
   Everything is scoped to html.nexus (html.nohud for the HUD), so switching it
   off in Account gives the classic look. Never force position on .side on
   phones: there it is the fixed drawer.
   ================================================================== */
html.nexus .main>*{position:relative;z-index:1}
html.nexus .main>#field{position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.9}
html.nexus body.light .main>#field{opacity:.75}
/* a faint perspective grid behind the chat */
html.nexus .main::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.28;
  background:
    linear-gradient(rgba(var(--aq),.07) 1px,transparent 1px) 0 0/100% 44px,
    linear-gradient(90deg,rgba(var(--aq),.07) 1px,transparent 1px) 0 0/44px 100%;
  -webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 42%,#000 0%,transparent 100%);
          mask-image:radial-gradient(ellipse 70% 60% at 50% 42%,#000 0%,transparent 100%)}
/* a scan line along the top of the chat while Ayuen works */
html.nexus .main::after{content:"";position:absolute;left:0;right:0;top:0;height:2px;z-index:2;pointer-events:none;opacity:0;
  background:linear-gradient(90deg,transparent,rgba(var(--aq),.9),transparent);transition:opacity .3s}
html.nexus body.busy .main::after{opacity:1;animation:mscanx 1.6s linear infinite}
@keyframes mscanx{0%{transform:translateX(-60%)}100%{transform:translateX(60%)}}
html.nexus .composer{background:transparent}

/* header -> status bar */
html.nexus header::after{content:"";position:absolute;left:18px;right:18px;bottom:0;height:1px;pointer-events:none;
  background:linear-gradient(90deg,rgba(var(--aq),.55),rgba(var(--aq),.08) 60%,transparent)}
html.nexus .htitle{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;letter-spacing:.05em;text-transform:uppercase}
html.nexus .iconbtn{border-radius:8px}

/* sidebar -> rail */
html.nexus .side{border-right-color:rgba(var(--aq),.14)}
@media (min-width:821px){
  html.nexus .side{position:relative}
  html.nexus .side::after{content:"";position:absolute;top:0;bottom:0;right:-1px;width:1px;pointer-events:none;
    background:linear-gradient(180deg,transparent,rgba(var(--aq),.55) 30%,rgba(var(--aq),.55) 70%,transparent)}}
html.nexus .sect{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10.5px;letter-spacing:.16em}
html.nexus .sect::before{content:"▸ ";color:var(--a1)}
html.nexus .newchat{border-color:rgba(var(--aq),.25);background:rgba(var(--aq),.05);box-shadow:inset 0 0 14px rgba(var(--aq),.06)}
html.nexus .newchat:hover{border-color:rgba(var(--aq),.5)}
html.nexus .citem{border-left:2px solid transparent;border-radius:8px;transition:border-color .2s,background .2s}
html.nexus .citem:hover{border-left-color:rgba(var(--aq),.4)}
html.nexus .citem.on{border-left-color:var(--a1);background:rgba(var(--aq),.1);box-shadow:none}

/* messages: the answer stays plain text on the canvas; only the user's card is shaped */
html.nexus .user .mtext{border-radius:14px 14px 4px 14px;color:#fff;box-shadow:none;
  clip-path:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,0 100%);
  background:linear-gradient(135deg,#0F766E,#115E56)}
html.nexus .bot .who .mark{filter:drop-shadow(0 0 10px rgba(var(--aq),.55))}
html.nexus .meta .step{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;letter-spacing:.04em;border-color:rgba(var(--aq),.22);background:rgba(var(--aq),.06)}
html.nexus .rowbtns .copy{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase}

/* composer -> command deck */
html.nexus form#f{border:1px solid rgba(var(--aq),.32);background:rgba(var(--aq),.04);border-radius:16px;
  box-shadow:0 0 0 1px rgba(var(--aq),.06),0 18px 50px rgba(0,0,0,.35),inset 0 0 24px rgba(var(--aq),.04)}
html.nexus body.light form#f{background:rgba(var(--aq),.05);box-shadow:0 0 0 1px rgba(var(--aq),.06),0 14px 36px rgba(35,40,90,.1)}
html.nexus form#f:focus-within{border-color:rgba(var(--aq),.7);box-shadow:0 0 0 1px rgba(var(--aq),.2),0 0 28px rgba(var(--aq),.22),0 18px 50px rgba(0,0,0,.35)}
html.nexus body.light form#f:focus-within{box-shadow:0 0 0 1px rgba(var(--aq),.2),0 0 22px rgba(var(--aq),.16),0 14px 36px rgba(35,40,90,.1)}
html.nexus form#f::after{content:"";position:absolute;left:14px;right:14px;bottom:-1px;height:1px;opacity:0;pointer-events:none;
  background:repeating-linear-gradient(90deg,rgba(var(--aq),.9) 0 10px,transparent 10px 18px);transition:opacity .3s}
html.nexus body.busy form#f::after{opacity:1;animation:mstream .5s linear infinite}
@keyframes mstream{to{background-position:18px 0}}
html.nexus .send{border-radius:10px;box-shadow:0 0 18px rgba(var(--aq),.45)}
html.nexus .send.stop{box-shadow:none}
html.nexus .hint{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase}

/* home -> orbital map: four words orbit the mark, a small story of how AI works */
html.nexus #hello{margin-top:clamp(16px,5vh,60px)}
html.nexus #hello .greet{margin-top:10px}
html.nexus .orbit{position:relative;width:min(250px,60vw);height:min(250px,60vw);margin:10px auto 4px;pointer-events:none}
html.nexus .orbit .ring{position:absolute;inset:0;border-radius:50%;border:1px solid rgba(var(--aq),.18)}
html.nexus .orbit .ring.r2{inset:18%;border-style:dashed;border-color:rgba(var(--aq),.28);animation:ospin 60s linear infinite}
html.nexus .orbit .ring.r3{inset:36%;border-color:rgba(var(--aq),.14)}
html.nexus .orbit .ring.r1::before{content:"";position:absolute;inset:-1px;border-radius:50%;border:1.5px solid transparent;
  border-top-color:rgba(var(--aq),.9);animation:ospin 9s linear infinite}
html.nexus .orbit .sats{position:absolute;inset:0;animation:ospin 90s linear infinite}
html.nexus .orbit .sat{position:absolute;left:50%;top:50%;width:0;height:0}
html.nexus .orbit .satw{position:absolute;left:0;top:0;transform:translate(-50%,-50%) rotate(calc(var(--a) * -1deg));
  display:flex;flex-direction:column;align-items:center;gap:5px;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;animation:ocounter 90s linear infinite;white-space:nowrap}
html.nexus .orbit .satw b{font-weight:600}
html.nexus .orbit .satw i{width:9px;height:9px;border-radius:50%;background:var(--a3);box-shadow:0 0 10px rgba(var(--aq),.9),0 0 0 4px rgba(var(--aq),.12)}
html.nexus body.light .orbit .satw i{background:var(--a1)}
html.nexus .orbit .core{position:absolute;left:50%;top:50%;width:84px;height:84px;margin:-42px;border-radius:50%;
  background:radial-gradient(circle,rgba(var(--aq),.22),rgba(var(--aq),.04) 60%,transparent 72%);display:flex;align-items:center;justify-content:center}
html.nexus #hello .orbit .biglogo{position:relative;z-index:1;margin:0}
@keyframes ospin{to{transform:rotate(360deg)}}
@keyframes ocounter{to{transform:translate(-50%,-50%) rotate(calc(var(--a) * -1deg - 360deg))}}
@media (max-width:520px){
  html.nexus .orbit{width:min(200px,58vw);height:min(200px,58vw);margin-top:6px}
  html.nexus .orbit .satw{font-size:9px;letter-spacing:.12em}
  html.nexus .orbit .core{width:66px;height:66px;margin:-33px}
  html.nexus #hello .orbit .biglogo{width:46px;height:46px}}

/* the HUD: a reactor core + readout above the message box, milestones only */
.mhud{display:none}
html.nexus:not(.nohud) .mhud{position:relative;display:flex;align-items:center;gap:12px;max-width:760px;margin:0 auto 4px;padding:7px 12px 7px 8px;
  border:1px solid rgba(var(--aq),.22);border-bottom-color:transparent;border-radius:12px 12px 4px 4px;overflow:hidden;
  background:linear-gradient(180deg,rgba(var(--aq),.07),rgba(var(--aq),.02));
  font:11.5px/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.06em;color:var(--muted);
  transition:border-color .35s,box-shadow .35s,background .35s}
html.nexus .mhud[data-state="sourcing"],html.nexus .mhud[data-state="working"]{border-color:rgba(var(--aq),.55);
  box-shadow:0 0 0 1px rgba(var(--aq),.12),0 0 24px rgba(var(--aq),.18),inset 0 0 18px rgba(var(--aq),.06)}
html.nexus .mhud[data-state="done"]{border-color:rgba(var(--aq),.9);box-shadow:0 0 0 1px rgba(var(--aq),.3),0 0 34px rgba(var(--aq),.35);animation:mflash 1.1s ease-out}
@keyframes mflash{0%{background:rgba(var(--aq),.28)}100%{background:rgba(var(--aq),.05)}}
.mcore{all:unset;position:relative;width:30px;height:30px;flex:none;cursor:pointer;border-radius:50%}
.mcore:focus-visible{outline:2px solid var(--a1);outline-offset:2px}
.mcore .ring{position:absolute;inset:0;border-radius:50%;border:1.5px solid transparent;border-top-color:rgba(var(--aq),.9);border-right-color:rgba(var(--aq),.35)}
.mcore .r2{inset:4px;border-top-color:rgba(var(--aq),.6);border-left-color:rgba(var(--aq),.25);border-right-color:transparent}
.mcore .r3{inset:8px;border-top-color:rgba(var(--aq),.45);border-bottom-color:rgba(var(--aq),.2)}
.mcore .corec{position:absolute;left:50%;top:50%;width:7px;height:7px;margin:-3.5px;border-radius:50%;background:var(--a3);
  box-shadow:0 0 8px rgba(var(--aq),.9);transition:transform .3s,box-shadow .3s}
.mcore .r1{animation:mspin 6s linear infinite}.mcore .r2{animation:mspin 4s linear infinite reverse}.mcore .r3{animation:mspin 2.6s linear infinite}
.mhud[data-state="sourcing"] .mcore .ring{animation-duration:.9s}
.mhud[data-state="working"] .mcore .ring{animation-duration:1.6s}
.mhud[data-state="working"] .corec{animation:mbeat 1.1s ease-in-out infinite}
.mhud[data-state="done"] .corec{transform:scale(1.9);box-shadow:0 0 18px rgba(var(--aq),1)}
.mhud.muted .corec{background:var(--faint);box-shadow:none}
.mhud.muted .mcore .ring{opacity:.45}
@keyframes mspin{to{transform:rotate(360deg)}}
@keyframes mbeat{0%,100%{transform:scale(1)}50%{transform:scale(1.5);box-shadow:0 0 14px rgba(var(--aq),1)}}
.mtxt{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.mstate{color:var(--a3);font-weight:700;font-size:10.5px;letter-spacing:.18em}
body.light .mstate{color:var(--a2)}
.mline{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}
.mhud[data-state="idle"] .mline{color:var(--faint)}
.mbars{display:flex;align-items:flex-end;gap:2px;height:16px;flex:none}
.mbars i{width:3px;height:3px;border-radius:1px;background:rgba(var(--aq),.5);transition:height .25s}
.mhud[data-state="working"] .mbars i,.mhud[data-state="sourcing"] .mbars i{animation:mbar 1s ease-in-out infinite}
.mbars i:nth-child(2){animation-delay:.12s}.mbars i:nth-child(3){animation-delay:.24s}.mbars i:nth-child(4){animation-delay:.36s}
.mbars i:nth-child(5){animation-delay:.48s}.mbars i:nth-child(6){animation-delay:.6s}.mbars i:nth-child(7){animation-delay:.72s}
@keyframes mbar{0%,100%{height:3px}50%{height:16px;background:rgba(var(--aq),.95)}}
.mscan{position:absolute;top:0;bottom:0;width:38%;left:-40%;pointer-events:none;opacity:0;
  background:linear-gradient(90deg,transparent,rgba(var(--aq),.16),transparent)}
.mhud[data-state="sourcing"] .mscan{opacity:1;animation:msweep 1.3s linear infinite}
@keyframes msweep{to{left:110%}}
@media (max-width:520px){html.nexus:not(.nohud) .mhud{margin-bottom:4px;padding:5px 10px 5px 7px;gap:10px}.mline,.mbars{display:none}
  .mcore{width:24px;height:24px}}

/* the switches in Account */
.looksw{margin-top:4px}
.looksw .check{margin-top:8px}
