/* Layout: a full-screen pastel desktop. Icons down the left, draggable retro windows on top, taskbar along the bottom. On phones every window opens full screen like an app. */
:root{
  /* the pastel Y2K desktop from Payton's reference; a dark version follows the browser's setting */
  --ink:#262a6b;
  --ink-soft:#5d619c;
  --line:#262a6b;
  --paper:rgba(255,255,255,.80);
  --paper-solid:#fffefc;
  --field:#ffffff;
  --lav:#d4ccff; --peri:#b9c4ff; --pink:#ffc3df; --mint:#c4f3df; --butter:#fff0a6; --peach:#ffd9bb; --sky:#c8eaff;
  --off:#ecebf7;
  --hot:#ff5fa8;
  --select:#8b82ff; --select-ink:#ffffff;
  --w1:#ffcde4; --w2:#ffe4c6; --w3:#fff4bb; --w4:#cbf4e3; --w5:#d6d0ff;
  --night1:#1c1e52; --night2:#3a2f7a; --saver:#14153d;
  --grid:rgba(255,255,255,.8);
  --live:#16865a; --building:#c0650f; --planned:#5b4fd8;
  --hard:4px 4px 0 var(--line);
  --tb:48px;
  --f-display:"Unbounded","Arial Black",system-ui,sans-serif;
  --f-body:"Nunito",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-pixel:"Silkscreen",ui-monospace,Menlo,Consolas,monospace;
  --f-mono:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  color-scheme:light;
}
/* dark look: follows the browser until the visitor flips the switch in Welcome */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --ink:#f1efff; --ink-soft:#b8b4ea; --line:#a59ff0;
    --paper:rgba(34,36,90,.90); --paper-solid:#23255c; --field:#15163f;
    --lav:#4d4596; --peri:#3d4b9c; --pink:#7c3a66; --mint:#1d6a53; --butter:#6f6020; --peach:#7c4b2e; --sky:#1f557b;
    --off:#2d2f6a; --hot:#ff6fb0; --select:#8b82ff; --select-ink:#ffffff;
    --w1:#3b2452; --w2:#3e2c3f; --w3:#2a2f4a; --w4:#1d3b43; --w5:#2c2963;
    --grid:rgba(255,255,255,.10);
    --live:#62e3ab; --building:#ffb46b; --planned:#ab9fff;
    color-scheme:dark;
  }
  :root:not([data-theme="light"]) .dicon span{background:rgba(21,22,63,.88);color:var(--ink)}
  :root:not([data-theme="light"]) .note{background:rgba(21,22,63,.5)}
  :root:not([data-theme="light"]) .tree{background:rgba(21,22,63,.45)}
  :root:not([data-theme="light"]) .file:hover{background:rgba(255,255,255,.08)}
  :root:not([data-theme="light"]) .chip.lost,:root:not([data-theme="light"]) .cat.over{background:#4a1f3a}
  :root:not([data-theme="light"]) body[data-wall="teal"] #wall,:root:not([data-theme="light"]) body[data-wall="teal"]{background:#125f5f}
}
:root[data-theme="dark"]{
    --ink:#f1efff; --ink-soft:#b8b4ea; --line:#a59ff0;
    --paper:rgba(34,36,90,.90); --paper-solid:#23255c; --field:#15163f;
    --lav:#4d4596; --peri:#3d4b9c; --pink:#7c3a66; --mint:#1d6a53; --butter:#6f6020; --peach:#7c4b2e; --sky:#1f557b;
    --off:#2d2f6a; --hot:#ff6fb0; --select:#8b82ff; --select-ink:#ffffff;
    --w1:#3b2452; --w2:#3e2c3f; --w3:#2a2f4a; --w4:#1d3b43; --w5:#2c2963;
    --grid:rgba(255,255,255,.10);
    --live:#62e3ab; --building:#ffb46b; --planned:#ab9fff;
    color-scheme:dark;
  }
:root[data-theme="dark"] .dicon span{background:rgba(21,22,63,.88);color:var(--ink)}
:root[data-theme="dark"] .note{background:rgba(21,22,63,.5)}
:root[data-theme="dark"] .tree{background:rgba(21,22,63,.45)}
:root[data-theme="dark"] .file:hover{background:rgba(255,255,255,.08)}
:root[data-theme="dark"] .chip.lost,:root[data-theme="dark"] .cat.over{background:#4a1f3a}
:root[data-theme="dark"] body[data-wall="teal"] #wall,:root[data-theme="dark"] body[data-wall="teal"]{background:#125f5f}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;overflow:hidden;background:var(--w3);color:var(--ink);font-family:var(--f-body);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer;background:none;border:0;padding:0}
:focus-visible{outline:2px dashed var(--hot);outline-offset:2px}
[hidden]{display:none!important}
.rel{position:relative}.p0{padding:0!important}.m0{margin:0}.b8{font-weight:800}.soft{color:var(--ink-soft)}.mono13{font-family:var(--f-mono);font-size:13px}.clear{background:transparent!important}

/* ---------- desktop + wallpapers ---------- */
#desk{position:relative;height:100%;overflow:hidden;user-select:none;-webkit-user-select:none}
#wall{position:absolute;inset:0;z-index:0}
body[data-wall="pastel"] #wall{background:
  linear-gradient(var(--grid) 1px,transparent 1px) 0 0/28px 28px,
  linear-gradient(90deg,var(--grid) 1px,transparent 1px) 0 0/28px 28px,
  linear-gradient(135deg,var(--w1) 0%,var(--w2) 28%,var(--w3) 50%,var(--w4) 74%,var(--w5) 100%)}
body[data-wall="dreamy"] #wall{background:
  radial-gradient(circle at 20% 25%,var(--pink),transparent 40%),
  radial-gradient(circle at 80% 30%,var(--sky),transparent 45%),
  radial-gradient(circle at 60% 85%,var(--lav),transparent 50%),
  radial-gradient(circle at 15% 85%,var(--mint),transparent 45%),
  var(--paper-solid)}
body[data-wall="night"] #wall{background:
  linear-gradient(rgba(200,190,255,.16) 1px,transparent 1px) 0 0/28px 28px,
  linear-gradient(90deg,rgba(200,190,255,.16) 1px,transparent 1px) 0 0/28px 28px,
  linear-gradient(180deg,var(--night1),var(--night2))}
body[data-wall="night"]{background:var(--night1)}

/* ---------- desktop icons ---------- */
#icons{position:absolute;inset:0 0 var(--tb) 0;z-index:1;display:grid;grid-auto-flow:column;grid-template-rows:repeat(auto-fill,94px);grid-auto-columns:92px;gap:4px 10px;align-content:start;justify-content:start;
  padding-block:16px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.dicon{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 2px;border-radius:8px;text-align:center}
.dicon svg{filter:drop-shadow(2px 2px 0 rgba(38,42,107,.25))}
.dicon span{font-size:12px;font-weight:800;line-height:1.2;padding:1px 6px;border-radius:5px;background:rgba(255,255,255,.85);border:1.5px solid var(--line);max-width:100%;overflow-wrap:anywhere}
.dicon.sel span{background:var(--select);color:var(--select-ink)}
.dicon.sel svg{filter:drop-shadow(2px 2px 0 rgba(38,42,107,.25)) hue-rotate(-20deg) brightness(.92)}
#band{position:absolute;z-index:5;border:1.5px dashed var(--line);background:rgba(139,130,255,.18);pointer-events:none}

/* ---------- windows ---------- */
#winlayer{position:absolute;inset:0 0 var(--tb) 0;z-index:3;pointer-events:none}
.win{position:absolute;pointer-events:auto;display:flex;flex-direction:column;min-width:240px;min-height:120px;max-height:100%;
  background:var(--paper);-webkit-backdrop-filter:blur(10px) saturate(150%);backdrop-filter:blur(10px) saturate(150%);
  border:2px solid var(--line);border-radius:10px;box-shadow:var(--hard);container-type:inline-size;outline:none}
.win.opening{animation:pop .22s cubic-bezier(.3,1.5,.5,1)}
@keyframes pop{from{transform:scale(.85);opacity:.3}}
.win.max{left:0!important;top:0!important;width:100%!important;height:100%!important;border-radius:0;border-width:0 0 2px;box-shadow:none}
.titlebar{flex:none;height:32px;display:flex;align-items:center;gap:8px;padding:0 5px 0 9px;border-bottom:2px solid var(--line);border-radius:8px 8px 0 0;background:var(--off);touch-action:none;cursor:default}
.win.max .titlebar{border-radius:0}
.win.active .titlebar{background:var(--tint,var(--lav))}
.win.active .titlebar::after{content:"";order:2;flex:1;min-width:10px;height:12px;background:repeating-linear-gradient(180deg,var(--line) 0 1.5px,transparent 1.5px 4px);opacity:.55}
.tint-lav{--tint:var(--lav)} .tint-peri{--tint:var(--peri)} .tint-pink{--tint:var(--pink)} .tint-mint{--tint:var(--mint)} .tint-butter{--tint:var(--butter)} .tint-peach{--tint:var(--peach)} .tint-sky{--tint:var(--sky)}
.ticon{display:grid;flex:none;order:0}
.ttl{order:1;font-family:var(--f-pixel);font-size:12px;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.win:not(.active) .ttl{opacity:.6}
.tbtns{order:3;display:flex;gap:4px;margin-left:auto;flex:none}
.tb{width:24px;height:21px;display:grid;place-items:center;background:var(--paper-solid);border:1.5px solid var(--line);border-radius:4px;box-shadow:1.5px 1.5px 0 var(--line)}
.tb svg{width:10px;height:10px;fill:var(--ink)}
.tb:hover{background:var(--butter)}
.tb[data-act="close"]:hover{background:var(--pink)}
.tb:active{transform:translate(1.5px,1.5px);box-shadow:none}
.wbody{flex:1;min-height:0;overflow:auto;user-select:text;-webkit-user-select:text;display:flex;flex-direction:column}
.pad{padding:16px;display:grid;gap:12px;align-content:start}
.grip{position:absolute;right:2px;bottom:2px;width:14px;height:14px;cursor:nwse-resize;touch-action:none;background:linear-gradient(135deg,transparent 0 45%,var(--line) 45% 52%,transparent 52% 64%,var(--line) 64% 71%,transparent 71% 83%,var(--line) 83% 90%,transparent 90%)}
.win.max .grip{display:none}

/* ---------- retro widgets ---------- */
.rbtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 14px;min-height:34px;border-radius:6px;background:var(--paper-solid);border:1.5px solid var(--line);box-shadow:2px 2px 0 var(--line);font-weight:800;font-size:14px}
.rbtn:hover{background:var(--butter)}
.rbtn:active{transform:translate(2px,2px);box-shadow:none}
.rbtn.primary{background:var(--pink)}
.rbtn.primary:hover{background:var(--hot);color:#fff}
.rbtn.sm{min-height:28px;padding:3px 10px;font-size:13px}
.btnrow{display:flex;flex-wrap:wrap;gap:10px}
.btnrow.right{justify-content:flex-end}
.field{background:var(--field);border:1.5px solid var(--line);border-radius:5px;box-shadow:inset 2px 2px 0 rgba(38,42,107,.12);padding:4px 8px;font:inherit;font-size:13px;color:var(--ink);min-width:0}
input.field::placeholder{color:var(--ink-soft)}
.menubar{flex:none;display:flex;gap:2px;padding:3px 6px;border-bottom:1.5px solid var(--line);background:var(--paper-solid);position:relative}
.mb{padding:2px 8px;border-radius:4px;font-size:13px;font-weight:700}
.mb:hover,.mb[aria-expanded="true"]{background:var(--select);color:var(--select-ink)}
.mb.dead{opacity:.55;cursor:default}
.mb.dead:hover{background:none;color:inherit}
.dd{position:absolute;top:100%;z-index:5;min-width:170px;padding:4px;background:var(--paper-solid);border:1.5px solid var(--line);border-radius:6px;box-shadow:3px 3px 0 var(--line);display:grid}
.dd button{text-align:left;padding:5px 10px;border-radius:4px;font-size:13px;font-weight:700;display:flex;justify-content:space-between;gap:12px}
.dd button:hover{background:var(--select);color:var(--select-ink)}
.statusbar{flex:none;display:flex;gap:6px;padding:4px 6px;border-top:1.5px solid var(--line);background:var(--paper-solid);font-size:12px}
.statusbar span{padding:1px 8px;border:1.5px solid var(--line);border-radius:4px;box-shadow:inset 1px 1px 0 rgba(38,42,107,.12);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.statusbar span:first-child{flex:none}
.tabs{display:flex;gap:4px;border-bottom:1.5px solid var(--line);margin:0 -16px;padding:0 16px}
.tabs [role="tab"]{padding:5px 12px;border:1.5px solid var(--line);border-bottom:0;border-radius:6px 6px 0 0;background:var(--off);font-size:13px;font-weight:800;margin-bottom:-1.5px}
.tabs [role="tab"][aria-selected="true"]{background:var(--paper-solid);padding-bottom:7px;margin-top:-2px}
.seg{display:grid;grid-template-columns:repeat(16,1fr);gap:3px;padding:3px;border:1.5px solid var(--line);border-radius:5px;background:var(--field);height:22px}
.seg i{border-radius:2px;background:var(--select);animation:blk .25s steps(1) backwards}
@keyframes blk{from{background:transparent}}
.note{font-size:13px;padding:8px 10px;border-radius:6px;border:1.5px dashed var(--ink-soft);color:var(--ink-soft);background:rgba(255,255,255,.6)}
.draft{font-family:var(--f-pixel);font-size:10px;letter-spacing:.05em;padding:2px 7px;border-radius:99px;border:1.5px dashed var(--ink-soft);color:var(--ink-soft);justify-self:start;white-space:nowrap}
.status{display:inline-flex;align-items:center;gap:5px;font-family:var(--f-pixel);font-size:11px}
.status::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;border:1.5px solid var(--line)}
.s-Live{color:var(--live)} .s-Building{color:var(--building)} .s-Planned{color:var(--planned)}
.pill{font-family:var(--f-mono);font-size:12px;padding:2px 9px;border-radius:99px;background:var(--off);border:1.5px solid var(--line)}
.pills{display:flex;flex-wrap:wrap;gap:6px}
.check{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;cursor:pointer}
.check input{appearance:none;-webkit-appearance:none;width:18px;height:18px;margin:0;border:1.5px solid var(--line);border-radius:4px;background:var(--field);box-shadow:inset 2px 2px 0 rgba(38,42,107,.12);display:grid;place-items:center;flex:none}
.check input:checked{background:var(--mint)}
.check input:checked::after{content:"";width:9px;height:5px;border-left:2.5px solid var(--line);border-bottom:2.5px solid var(--line);transform:translateY(-1px) rotate(-45deg)}
.checker{background:conic-gradient(var(--lav) 25%,var(--paper-solid) 0 50%,var(--lav) 0 75%,var(--paper-solid) 0) 0 0/16px 16px}

/* ---------- welcome ---------- */
.hello{display:grid;gap:10px}
.hello .eyebrow{font-family:var(--f-pixel);font-size:12px;color:var(--ink-soft);margin:0}
.display{font-family:var(--f-display);font-weight:800;font-size:clamp(34px,10cqi,52px);line-height:1;margin:0;letter-spacing:-.02em;
  color:var(--paper-solid);-webkit-text-stroke:2px var(--line);paint-order:stroke fill;text-shadow:4px 4px 0 var(--pink)}
.display span{color:var(--butter);text-shadow:4px 4px 0 var(--sky)}
.lede{margin:0;max-width:52ch}
.loadrow{display:grid;gap:4px;font-family:var(--f-pixel);font-size:11px}
.tips{margin:0;padding:10px 12px 10px 28px;border:1.5px solid var(--line);border-radius:6px;background:var(--paper-solid);font-size:14px;display:grid;gap:2px}
.tips li::marker{content:"\2726  ";color:var(--hot)}
.badges{display:flex;flex-wrap:wrap;gap:6px}
.b88{width:88px;height:31px;display:grid;place-items:center;font-family:var(--f-pixel);font-size:9px;line-height:1.05;text-align:center;text-transform:uppercase;border:1.5px solid var(--line);border-radius:3px;box-shadow:2px 2px 0 var(--line)}
.b88.a{background:var(--lav)} .b88.b{background:var(--mint)} .b88.c{background:linear-gradient(90deg,var(--pink),var(--butter),var(--sky))} .b88.d{background:var(--ink);color:var(--butter)}

/* ---------- explorer ---------- */
.toolbar{flex:none;display:flex;gap:6px;align-items:center;padding:6px;border-bottom:1.5px solid var(--line);background:var(--paper-solid)}
.addr{flex:1;font-family:var(--f-mono);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search{width:130px}
.ex-main{flex:1;min-height:0;display:grid;grid-template-columns:150px 1fr}
.tree{border-right:1.5px solid var(--line);padding:8px 6px;display:grid;gap:2px;align-content:start;overflow:auto;background:rgba(255,255,255,.55)}
.tree button{display:flex;align-items:center;gap:6px;text-align:left;padding:4px 6px;border-radius:5px;font-size:13px;font-weight:700}
.tree button[aria-pressed="true"]{background:var(--select);color:var(--select-ink)}
.tree .n{margin-left:auto;font-family:var(--f-mono);font-size:11px;opacity:.75}
.files{overflow:auto;padding:12px;align-content:start;min-width:0}
.files.icons{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.file{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px;border-radius:8px;border:1.5px solid transparent;text-align:center}
.file:hover{border-color:var(--line);background:rgba(255,255,255,.7)}
.file.sel{background:var(--lav);border-color:var(--line)}
.file .fname{font-weight:800;font-size:13px;line-height:1.2;overflow-wrap:anywhere}
.file .ftype{display:none}
.files.list{display:grid;gap:2px}
.files.list .file{flex-direction:row;gap:10px;text-align:left;padding:4px 8px}
.files.list .fname{flex:1}
.files.list .ftype{display:inline;font-size:12px;color:var(--ink-soft);width:72px}
.empty{padding:20px;text-align:center;color:var(--ink-soft);grid-column:1/-1}
@container (max-width:520px){
  .ex-main{grid-template-columns:1fr;grid-template-rows:auto 1fr}
  .tree{display:flex;flex-wrap:wrap;border-right:0;border-bottom:1.5px solid var(--line);gap:4px}
  .tree .n{margin-left:4px}
  .search{width:96px}
}

/* ---------- demos ---------- */
.demo{display:flex;flex-direction:column;flex:1;min-height:0}
.demobar{flex:none;display:flex;align-items:center;gap:8px;padding:5px 10px;border-bottom:1.5px solid var(--line);background:var(--butter);font-size:12px;font-weight:700}
.demobar b{font-family:var(--f-pixel);font-weight:400;font-size:11px;padding:1px 6px;border:1.5px solid var(--line);background:var(--paper-solid)}
.demo-scroll{flex:1;min-height:0;overflow:auto}
.demoframe{flex:1;min-height:0;width:100%;border:0;display:block;background:#fff}
.demolist{display:grid;gap:8px}
.demolist button{display:flex;align-items:center;gap:12px;text-align:left;padding:8px 10px;border:1.5px solid var(--line);background:var(--paper-solid);box-shadow:2px 2px 0 var(--line)}
.demolist button:hover{background:var(--butter)}
.demolist button:active{transform:translate(2px,2px);box-shadow:none}
.demolist b{display:block;font-size:14px}
.demolist span span{display:block;font-size:13px;color:var(--ink-soft)}
/* harness */
.hchat{flex:1;min-height:150px;overflow:auto;padding:12px;display:grid;gap:8px;align-content:start;background:var(--paper-solid)}
.msg{max-width:88%;padding:7px 10px;border:1.5px solid var(--line);font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.msg .who{display:block;font-family:var(--f-pixel);font-size:10px;color:var(--ink-soft);margin-bottom:2px}
.msg.me{justify-self:end;background:var(--pink)}
.msg.ai{justify-self:start;background:var(--sky)}
.msg.tool{justify-self:start;background:var(--off);border-style:dashed;font-family:var(--f-mono);font-size:12px}
.msg svg{display:block;margin:4px 0;border:1.5px solid var(--line);background:var(--mint)}
.hfoot{flex:none;border-top:1.5px solid var(--line);background:var(--paper)}
.sugg{display:flex;gap:6px;flex-wrap:wrap;padding:8px 10px 0}
.hform{display:flex;gap:8px;padding:8px 10px}
.hform .field{flex:1;font-size:14px;min-height:32px}
.meter{font-family:var(--f-pixel);font-size:11px}
/* budget */
.bud-head{display:flex;justify-content:space-between;align-items:end;gap:12px;flex-wrap:wrap}
.bud-total{font-family:var(--f-display);font-weight:600;font-size:28px;line-height:1}
.bud-total small{font-family:var(--f-body);font-size:13px;font-weight:700;color:var(--ink-soft)}
.split{display:flex;height:24px;border:1.5px solid var(--line);background:var(--field)}
.split i{display:block;height:100%;min-width:0;border-right:1.5px solid var(--line);transition:flex-grow .4s}
.split i:last-child{border-right:0}
.legend{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12px;font-weight:700}
.legend span{display:inline-flex;align-items:center;gap:5px}
.legend span::before{content:"";width:10px;height:10px;border:1.5px solid var(--line);background:var(--c)}
.cats{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.cat{display:grid;gap:5px;padding:8px 10px;border:1.5px solid var(--line);background:var(--paper-solid)}
.cat .top{display:flex;justify-content:space-between;gap:8px;font-size:13px}
.cat .top b{font-size:14px}
.cat .seg{height:16px}
.cat .seg i{animation:none;background:var(--c)}
.cat .seg i.off{background:transparent}
.cat.over{background:#ffe8f2}
.cat.over .seg i{background:var(--hot)}
.cat .left{font-family:var(--f-pixel);font-size:10px;color:var(--ink-soft)}
.cat.over .left{color:var(--hot)}
.addexp{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding:8px 10px;border:1.5px solid var(--line);background:var(--paper)}
.addexp .field{min-height:30px}
.recent{margin:0;padding:0;list-style:none;font-size:13px;display:grid;gap:2px}
.recent li{display:flex;justify-content:space-between;gap:8px;padding:2px 0;border-bottom:1px dashed var(--ink-soft)}
/* homedash */
.phone{width:min(310px,100%);margin:0 auto;padding:10px 8px 14px;border:2px solid var(--line);background:var(--peri);box-shadow:var(--hard)}
.phone .notch{width:70px;height:8px;margin:0 auto 8px;border:1.5px solid var(--line);background:var(--ink)}
.screen{display:grid;gap:8px;padding:10px;border:1.5px solid var(--line);background:var(--paper-solid)}
.screen .hello{display:flex;justify-content:space-between;font-family:var(--f-pixel);font-size:11px}
.dcard{display:block;width:100%;text-align:left;padding:8px 10px;border:1.5px solid var(--line);background:var(--field);box-shadow:2px 2px 0 var(--line)}
button.dcard:hover{background:var(--butter)}
.dcard h4{margin:0 0 4px;font-family:var(--f-pixel);font-weight:400;font-size:10px;color:var(--ink-soft);display:flex;justify-content:space-between}
.dcard .big{font-family:var(--f-display);font-weight:600;font-size:20px;line-height:1.1}
.dcard .sub{font-size:12px;color:var(--ink-soft)}
.dcard .seg{height:14px;margin-top:4px}
.dcard .seg i{animation:none}
.dcard .seg i.off{background:transparent}
.dcard .seg i.hotc{background:var(--hot)}
.duo{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pods{margin:6px 0 0;padding:0;list-style:none;font-family:var(--f-mono);font-size:12px;display:grid;gap:2px}
.pods li{display:flex;justify-content:space-between;gap:6px}
.dcard ul.ev{margin:0;padding:0;list-style:none;font-size:13px;display:grid;gap:2px}
.spark-line{display:block;width:100%;height:34px}
/* k3s */
.nodes{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
.node{display:grid;gap:6px;align-content:start;padding:8px 10px;border:1.5px solid var(--line);background:var(--paper-solid);box-shadow:2px 2px 0 var(--line);transition:opacity .3s}
.node.down{background:var(--off);box-shadow:none}
.node .nh{display:flex;justify-content:space-between;align-items:center;gap:6px}
.node .nh b{font-family:var(--f-pixel);font-weight:400;font-size:12px}
.node .seg{height:14px}
.node .seg i{animation:none}
.node .seg i.off{background:transparent}
.chips{display:flex;flex-wrap:wrap;gap:4px;min-height:24px}
.chip{font-family:var(--f-mono);font-size:11px;padding:1px 6px;border:1.5px solid var(--line);background:var(--mint)}
.chip.sys{background:var(--off)}
.chip.pend{background:var(--butter);border-style:dashed}
.chip.lost{background:#ffe8f2;text-decoration:line-through}
.klog{margin:0;padding:8px 10px;list-style:none;border:1.5px solid var(--line);background:var(--saver);color:#c4f3df;font-family:var(--f-mono);font-size:12px;line-height:1.5;height:112px;overflow:auto}
.klog li::before{content:"> ";color:var(--pink)}
.kstat{display:flex;gap:12px;flex-wrap:wrap;font-size:13px;font-weight:700}
.kstat span b{font-family:var(--f-display);font-size:18px;font-weight:600;margin-right:4px}

/* ---------- properties / security / notepad / buddies ---------- */
.prop-head{display:flex;align-items:center;gap:12px}
.prop-head h3{margin:0;font-family:var(--f-display);font-weight:600;font-size:20px;line-height:1.15;overflow-wrap:anywhere}
.rows{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;font-size:14px;margin:0}
.rows dt{color:var(--ink-soft);font-weight:700}
.rows dd{margin:0;min-width:0;overflow-wrap:anywhere}
.checks{display:grid;gap:6px;margin:0;padding:10px 12px;list-style:none;border:1.5px solid var(--line);border-radius:6px;background:var(--paper-solid)}
.checks li{display:flex;gap:8px;align-items:center;font-size:14px;font-weight:700}
.checks li::before{content:"";width:16px;height:16px;flex:none;border:1.5px solid var(--line);border-radius:3px;background:var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23262a6b' stroke-width='2.2'/%3E%3C/svg%3E") center/100% no-repeat}
.code{overflow-x:auto;border:1.5px solid var(--line);border-radius:6px;background:var(--paper-solid)}
.code pre{margin:0;padding:12px;font-family:var(--f-mono);font-size:12px;line-height:1.55;user-select:text}
.code b{color:var(--hot);font-weight:700}
.scanres{font-family:var(--f-pixel);font-size:12px;min-height:1.4em}
.notepad{flex:1;min-height:180px;margin:0;border:0;resize:none;padding:12px 14px;font-family:var(--f-mono);font-size:13.5px;line-height:1.6;color:var(--ink);background:var(--paper-solid);outline:none;white-space:pre-wrap}
.notepad.nowrap{white-space:pre;overflow-x:auto}
.me{display:flex;align-items:center;gap:10px;padding:10px;border:1.5px solid var(--line);border-radius:6px;background:var(--paper-solid)}
.me b{font-family:var(--f-pixel);font-weight:400;font-size:13px;display:block}
.online{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:var(--live)}
.online::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;border:1.5px solid var(--line)}
.group{font-family:var(--f-pixel);font-size:11px;color:var(--ink-soft)}
.buddy{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:6px;font-weight:800;font-size:14px;width:100%;color:inherit;text-decoration:none;background:none;border:0;font-family:inherit;text-align:left;cursor:pointer}
.buddy:focus-visible{outline:2px dashed var(--line);outline-offset:1px}
.buddy:hover{background:var(--lav)}
.buddy small{margin-left:auto;font-weight:600;color:var(--ink-soft);font-size:12px}
label.lbl{font-size:12px;font-weight:800;color:var(--ink-soft);display:grid;gap:4px}
.walls{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.wopt{display:grid;gap:6px;justify-items:center;font-size:13px;font-weight:800;cursor:pointer}
.wopt input{position:absolute;opacity:0;pointer-events:none}
.wopt i{width:100%;aspect-ratio:4/3;max-width:100%;border:1.5px solid var(--line);border-radius:6px;box-shadow:2px 2px 0 var(--line)}
.wopt input:checked+i{outline:3px solid var(--hot);outline-offset:2px}
.wopt input:focus-visible+i{outline:2px dashed var(--hot);outline-offset:4px}
.wp-pastel{background:linear-gradient(var(--grid) 1px,transparent 1px) 0 0/8px 8px,linear-gradient(90deg,var(--grid) 1px,transparent 1px) 0 0/8px 8px,linear-gradient(135deg,var(--w1),var(--w3),var(--w4),var(--w5))}
.wp-dreamy{background:radial-gradient(circle at 25% 30%,var(--pink),transparent 50%),radial-gradient(circle at 75% 35%,var(--sky),transparent 55%),radial-gradient(circle at 55% 85%,var(--lav),transparent 55%),var(--paper-solid)}
.wp-night{background:linear-gradient(rgba(200,190,255,.2) 1px,transparent 1px) 0 0/8px 8px,linear-gradient(90deg,rgba(200,190,255,.2) 1px,transparent 1px) 0 0/8px 8px,linear-gradient(180deg,var(--night1),var(--night2))}
body[data-wall="teal"] #wall,.wp-teal{background:#1e8c8c}
body[data-wall="clouds"] #wall,.wp-clouds{background:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22640%22 height=%22360%22 shape-rendering=%22crispEdges%22%3E%3Cg fill=%22%239cc4f2%22%3E%3Crect x=%2270%22 y=%2262%22 width=%2272%22 height=%2212%22/%3E%3Crect x=%2258%22 y=%2274%22 width=%2296%22 height=%2212%22/%3E%3Crect x=%2246%22 y=%2286%22 width=%22132%22 height=%2212%22/%3E%3Crect x=%2246%22 y=%2298%22 width=%22144%22 height=%2212%22/%3E%3Crect x=%2258%22 y=%22110%22 width=%22120%22 height=%2212%22/%3E%3Crect x=%22352%22 y=%22159%22 width=%2254%22 height=%229%22/%3E%3Crect x=%22343%22 y=%22168%22 width=%2272%22 height=%229%22/%3E%3Crect x=%22334%22 y=%22177%22 width=%2299%22 height=%229%22/%3E%3Crect x=%22334%22 y=%22186%22 width=%22108%22 height=%229%22/%3E%3Crect x=%22343%22 y=%22195%22 width=%2290%22 height=%229%22/%3E%3Crect x=%22167%22 y=%22257%22 width=%2242%22 height=%227%22/%3E%3Crect x=%22160%22 y=%22264%22 width=%2256%22 height=%227%22/%3E%3Crect x=%22153%22 y=%22271%22 width=%2277%22 height=%227%22/%3E%3Crect x=%22153%22 y=%22278%22 width=%2284%22 height=%227%22/%3E%3Crect x=%22160%22 y=%22285%22 width=%2270%22 height=%227%22/%3E%3Crect x=%22535%22 y=%2246%22 width=%2236%22 height=%226%22/%3E%3Crect x=%22529%22 y=%2252%22 width=%2248%22 height=%226%22/%3E%3Crect x=%22523%22 y=%2258%22 width=%2266%22 height=%226%22/%3E%3Crect x=%22523%22 y=%2264%22 width=%2272%22 height=%226%22/%3E%3Crect x=%22529%22 y=%2270%22 width=%2260%22 height=%226%22/%3E%3C/g%3E%3Cg fill=%22%23ffffff%22%3E%3Crect x=%2264%22 y=%2250%22 width=%2272%22 height=%2212%22/%3E%3Crect x=%2252%22 y=%2262%22 width=%2296%22 height=%2212%22/%3E%3Crect x=%2240%22 y=%2274%22 width=%22132%22 height=%2212%22/%3E%3Crect x=%2240%22 y=%2286%22 width=%22144%22 height=%2212%22/%3E%3Crect x=%2252%22 y=%2298%22 width=%22120%22 height=%2212%22/%3E%3Crect x=%22348%22 y=%22150%22 width=%2254%22 height=%229%22/%3E%3Crect x=%22339%22 y=%22159%22 width=%2272%22 height=%229%22/%3E%3Crect x=%22330%22 y=%22168%22 width=%2299%22 height=%229%22/%3E%3Crect x=%22330%22 y=%22177%22 width=%22108%22 height=%229%22/%3E%3Crect x=%22339%22 y=%22186%22 width=%2290%22 height=%229%22/%3E%3Crect x=%22164%22 y=%22250%22 width=%2242%22 height=%227%22/%3E%3Crect x=%22157%22 y=%22257%22 width=%2256%22 height=%227%22/%3E%3Crect x=%22150%22 y=%22264%22 width=%2277%22 height=%227%22/%3E%3Crect x=%22150%22 y=%22271%22 width=%2284%22 height=%227%22/%3E%3Crect x=%22157%22 y=%22278%22 width=%2270%22 height=%227%22/%3E%3Crect x=%22532%22 y=%2240%22 width=%2236%22 height=%226%22/%3E%3Crect x=%22526%22 y=%2246%22 width=%2248%22 height=%226%22/%3E%3Crect x=%22520%22 y=%2252%22 width=%2266%22 height=%226%22/%3E%3Crect x=%22520%22 y=%2258%22 width=%2272%22 height=%226%22/%3E%3Crect x=%22526%22 y=%2264%22 width=%2260%22 height=%226%22/%3E%3C/g%3E%3C/svg%3E") 0 0/640px 360px,linear-gradient(180deg,#5d97ea 0%,#9cc6ff 60%,#d6ecff 100%)}
body[data-wall="zigzag"] #wall,.wp-zigzag{background:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2232%22 height=%2216%22 shape-rendering=%22crispEdges%22%3E%3Crect width=%2232%22 height=%2216%22 fill=%22%23ffd9ec%22/%3E%3Cpath d=%22M0 12 8 4 16 12 24 4 32 12%22 fill=%22none%22 stroke=%22%23c9b8ff%22 stroke-width=%224%22/%3E%3Cpath d=%22M0 12 8 4 16 12 24 4 32 12%22 fill=%22none%22 stroke=%22%23ffffff%22 stroke-width=%221%22 transform=%22translate(0 -3)%22/%3E%3C/svg%3E") 0 0/32px 16px}
body[data-wall="checker"] #wall,.wp-checker{background:repeating-conic-gradient(var(--mint) 0 25%,var(--butter) 0 50%) 0 0/48px 48px}
body[data-wall="stars"] #wall,.wp-stars{background:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22240%22 height=%22240%22 shape-rendering=%22crispEdges%22%3E%3Crect x=%22194%22 y=%22136%22 width=%223%22 height=%223%22 fill=%22%23c8eaff%22/%3E%3Crect x=%227%22 y=%2235%22 width=%222%22 height=%222%22 fill=%22%23ffffff%22/%3E%3Crect x=%22161%22 y=%2270%22 width=%222%22 height=%222%22 fill=%22%23c8eaff%22/%3E%3Crect x=%22145%22 y=%22184%22 width=%222%22 height=%222%22 fill=%22%23c8eaff%22/%3E%3Crect x=%2292%22 y=%2271%22 width=%222%22 height=%222%22 fill=%22%23fff0a6%22/%3E%3Crect x=%2239%22 y=%2245%22 width=%223%22 height=%223%22 fill=%22%23c8eaff%22/%3E%3Crect x=%2286%22 y=%22158%22 width=%223%22 height=%223%22 fill=%22%23c8eaff%22/%3E%3Crect x=%22152%22 y=%2264%22 width=%222%22 height=%222%22 fill=%22%23c8eaff%22/%3E%3Crect x=%22188%22 y=%2225%22 width=%223%22 height=%223%22 fill=%22%23ffc3df%22/%3E%3Crect x=%2278%22 y=%223%22 width=%222%22 height=%222%22 fill=%22%23ffffff%22/%3E%3Crect x=%22176%22 y=%22135%22 width=%222%22 height=%222%22 fill=%22%23ffc3df%22/%3E%3Crect x=%22237%22 y=%2295%22 width=%223%22 height=%223%22 fill=%22%23c8eaff%22/%3E%3Crect x=%22156%22 y=%22230%22 width=%222%22 height=%222%22 fill=%22%23fff0a6%22/%3E%3Crect x=%22229%22 y=%2233%22 width=%222%22 height=%222%22 fill=%22%23ffffff%22/%3E%3Crect x=%223%22 y=%22229%22 width=%223%22 height=%223%22 fill=%22%23c8eaff%22/%3E%3Crect x=%2259%22 y=%22132%22 width=%222%22 height=%222%22 fill=%22%23fff0a6%22/%3E%3Crect x=%22176%22 y=%22173%22 width=%223%22 height=%223%22 fill=%22%23fff0a6%22/%3E%3Crect x=%2236%22 y=%22147%22 width=%223%22 height=%223%22 fill=%22%23ffffff%22/%3E%3Crect x=%22192%22 y=%22117%22 width=%222%22 height=%222%22 fill=%22%23c8eaff%22/%3E%3Crect x=%2275%22 y=%2298%22 width=%222%22 height=%222%22 fill=%22%23c8eaff%22/%3E%3Crect x=%2236%22 y=%2258%22 width=%222%22 height=%222%22 fill=%22%23ffffff%22/%3E%3Crect x=%22141%22 y=%22154%22 width=%222%22 height=%222%22 fill=%22%23c8eaff%22/%3E%3Crect x=%22227%22 y=%221%22 width=%223%22 height=%223%22 fill=%22%23c8eaff%22/%3E%3Crect x=%22160%22 y=%22185%22 width=%222%22 height=%222%22 fill=%22%23ffffff%22/%3E%3Crect x=%22197%22 y=%2274%22 width=%223%22 height=%223%22 fill=%22%23c8eaff%22/%3E%3Crect x=%2257%22 y=%2263%22 width=%222%22 height=%222%22 fill=%22%23ffffff%22/%3E%3Crect x=%22190%22 y=%22200%22 width=%222%22 height=%222%22 fill=%22%23c8eaff%22/%3E%3Crect x=%22163%22 y=%22177%22 width=%223%22 height=%223%22 fill=%22%23ffc3df%22/%3E%3Crect x=%2294%22 y=%22107%22 width=%222%22 height=%222%22 fill=%22%23fff0a6%22/%3E%3Crect x=%22130%22 y=%22235%22 width=%223%22 height=%223%22 fill=%22%23fff0a6%22/%3E%3Crect x=%22116%22 y=%2225%22 width=%222%22 height=%222%22 fill=%22%23ffc3df%22/%3E%3Crect x=%2264%22 y=%2212%22 width=%222%22 height=%222%22 fill=%22%23ffc3df%22/%3E%3Crect x=%22117%22 y=%2236%22 width=%222%22 height=%222%22 fill=%22%23ffc3df%22/%3E%3Crect x=%2235%22 y=%22199%22 width=%222%22 height=%222%22 fill=%22%23c8eaff%22/%3E%3Crect x=%2256%22 y=%2223%22 width=%223%22 height=%223%22 fill=%22%23ffffff%22/%3E%3Crect x=%22155%22 y=%22200%22 width=%222%22 height=%222%22 fill=%22%23fff0a6%22/%3E%3Crect x=%22211%22 y=%22214%22 width=%223%22 height=%223%22 fill=%22%23ffc3df%22/%3E%3Crect x=%22195%22 y=%2298%22 width=%222%22 height=%222%22 fill=%22%23ffc3df%22/%3E%3Crect x=%2259%22 y=%2265%22 width=%223%22 height=%2211%22 fill=%22%23fff0a6%22/%3E%3Crect x=%2255%22 y=%2269%22 width=%2211%22 height=%223%22 fill=%22%23fff0a6%22/%3E%3Crect x=%2260%22 y=%2270%22 width=%221%22 height=%221%22 fill=%22%23fff%22/%3E%3Crect x=%22179%22 y=%22185%22 width=%223%22 height=%2211%22 fill=%22%23fff0a6%22/%3E%3Crect x=%22175%22 y=%22189%22 width=%2211%22 height=%223%22 fill=%22%23fff0a6%22/%3E%3Crect x=%22180%22 y=%22190%22 width=%221%22 height=%221%22 fill=%22%23fff%22/%3E%3C/svg%3E") 0 0/240px 240px,linear-gradient(180deg,#0e0f33,#1c1e52)}
body[data-wall="ducks"] #wall,.wp-ducks{background:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22128%22 height=%22128%22 shape-rendering=%22crispEdges%22%3E%3Crect x=%226%22 y=%2240%22 width=%228%22 height=%222%22 fill=%22%23a9dcf0%22/%3E%3Crect x=%2246%22 y=%228%22 width=%228%22 height=%222%22 fill=%22%23a9dcf0%22/%3E%3Crect x=%2270%22 y=%2286%22 width=%228%22 height=%222%22 fill=%22%23a9dcf0%22/%3E%3Crect x=%22110%22 y=%2252%22 width=%228%22 height=%222%22 fill=%22%23a9dcf0%22/%3E%3Crect x=%2230%22 y=%22110%22 width=%228%22 height=%222%22 fill=%22%23a9dcf0%22/%3E%3Crect x=%2223%22 y=%2212%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2226%22 y=%2212%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2229%22 y=%2212%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2220%22 y=%2215%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2223%22 y=%2215%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2226%22 y=%2215%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2229%22 y=%2215%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2232%22 y=%2215%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2220%22 y=%2218%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2223%22 y=%2218%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2226%22 y=%2218%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2229%22 y=%2218%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2232%22 y=%2218%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2235%22 y=%2218%22 width=%223%22 height=%223%22 fill=%22%23ff9a3c%22/%3E%3Crect x=%2238%22 y=%2218%22 width=%223%22 height=%223%22 fill=%22%23ff9a3c%22/%3E%3Crect x=%2220%22 y=%2221%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2223%22 y=%2221%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2226%22 y=%2221%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2229%22 y=%2221%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2232%22 y=%2221%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2214%22 y=%2224%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2223%22 y=%2224%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2226%22 y=%2224%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2229%22 y=%2224%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2232%22 y=%2224%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2214%22 y=%2227%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2217%22 y=%2227%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2220%22 y=%2227%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2223%22 y=%2227%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2226%22 y=%2227%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2229%22 y=%2227%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2232%22 y=%2227%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2235%22 y=%2227%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2214%22 y=%2230%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2217%22 y=%2230%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2220%22 y=%2230%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2223%22 y=%2230%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2226%22 y=%2230%22 width=%223%22 height=%223%22 fill=%22%23fff5b8%22/%3E%3Crect x=%2229%22 y=%2230%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2232%22 y=%2230%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2235%22 y=%2230%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2238%22 y=%2230%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2217%22 y=%2233%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2220%22 y=%2233%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2223%22 y=%2233%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2226%22 y=%2233%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2229%22 y=%2233%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2232%22 y=%2233%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2235%22 y=%2233%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2220%22 y=%2236%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2223%22 y=%2236%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2226%22 y=%2236%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2229%22 y=%2236%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2232%22 y=%2236%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2287%22 y=%2274%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2290%22 y=%2274%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2293%22 y=%2274%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2284%22 y=%2277%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2287%22 y=%2277%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2290%22 y=%2277%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2293%22 y=%2277%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2296%22 y=%2277%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2284%22 y=%2280%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2287%22 y=%2280%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2290%22 y=%2280%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2293%22 y=%2280%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2296%22 y=%2280%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2299%22 y=%2280%22 width=%223%22 height=%223%22 fill=%22%23ff9a3c%22/%3E%3Crect x=%22102%22 y=%2280%22 width=%223%22 height=%223%22 fill=%22%23ff9a3c%22/%3E%3Crect x=%2284%22 y=%2283%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2287%22 y=%2283%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2290%22 y=%2283%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2293%22 y=%2283%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2296%22 y=%2283%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2278%22 y=%2286%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2287%22 y=%2286%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2290%22 y=%2286%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2293%22 y=%2286%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2296%22 y=%2286%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2278%22 y=%2289%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2281%22 y=%2289%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2284%22 y=%2289%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2287%22 y=%2289%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2290%22 y=%2289%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2293%22 y=%2289%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2296%22 y=%2289%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2299%22 y=%2289%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2278%22 y=%2292%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2281%22 y=%2292%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2284%22 y=%2292%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2287%22 y=%2292%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2290%22 y=%2292%22 width=%223%22 height=%223%22 fill=%22%23fff5b8%22/%3E%3Crect x=%2293%22 y=%2292%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2296%22 y=%2292%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2299%22 y=%2292%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%22102%22 y=%2292%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2281%22 y=%2295%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2284%22 y=%2295%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2287%22 y=%2295%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2290%22 y=%2295%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2293%22 y=%2295%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2296%22 y=%2295%22 width=%223%22 height=%223%22 fill=%22%23ffe066%22/%3E%3Crect x=%2299%22 y=%2295%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2284%22 y=%2298%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2287%22 y=%2298%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2290%22 y=%2298%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2293%22 y=%2298%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3Crect x=%2296%22 y=%2298%22 width=%223%22 height=%223%22 fill=%22%23262a6b%22/%3E%3C/svg%3E") 0 0/128px 128px,#c8eaff}
body[data-wall="stars"]{background:#0e0f33}
body[data-wall="teal"]{background:#1e8c8c}
.trashbox{display:grid;justify-items:center;gap:8px;text-align:center;padding:12px}
.alertrow{display:flex;gap:14px;align-items:flex-start}
.alertrow p{margin:0}

/* ---------- taskbar, start, context menu ---------- */
#taskbar{position:absolute;left:0;right:0;bottom:0;height:var(--tb);z-index:60;display:flex;align-items:center;gap:8px;
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));
  background:var(--paper);-webkit-backdrop-filter:blur(12px) saturate(160%);backdrop-filter:blur(12px) saturate(160%);border-top:2px solid var(--line)}
#startbtn{flex:none;display:flex;align-items:center;gap:6px;height:34px;padding:0 12px 0 8px;border:1.5px solid var(--line);border-radius:8px;background:var(--pink);box-shadow:2px 2px 0 var(--line);font-family:var(--f-pixel);font-size:13px}
#startbtn[aria-expanded="true"]{transform:translate(2px,2px);box-shadow:none;background:var(--hot);color:#fff}
#tasks{flex:1;min-width:0;display:flex;gap:6px;overflow:hidden}
.task{flex:0 1 160px;min-width:40px;display:flex;align-items:center;gap:6px;height:34px;padding:0 8px;border:1.5px solid var(--line);border-radius:6px;background:var(--paper-solid);box-shadow:2px 2px 0 var(--line);font-size:13px;font-weight:800}
.task span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.task[aria-pressed="true"]{transform:translate(2px,2px);box-shadow:none;background:var(--lav)}
.task svg{flex:none}
#tray{flex:none;display:flex;align-items:center;gap:4px;height:34px;padding:0 8px;border:1.5px solid var(--line);border-radius:6px;background:var(--paper-solid);box-shadow:inset 2px 2px 0 rgba(38,42,107,.1)}
.trayb{display:grid;place-items:center;width:26px;height:26px;border-radius:5px}
.trayb:hover{background:var(--butter)}
.trayb[aria-pressed="false"]{opacity:.4}
#clock{font-family:var(--f-pixel);font-size:12px;margin-left:4px;white-space:nowrap;font-variant-numeric:tabular-nums}
#start{position:absolute;z-index:70;left:max(16px,env(safe-area-inset-left,0px));bottom:calc(var(--tb) + 6px);width:260px;max-width:calc(100% - 32px);display:flex;background:var(--paper-solid);border:2px solid var(--line);border-radius:10px;box-shadow:var(--hard);overflow:hidden}
.banner{flex:none;width:34px;background:linear-gradient(0deg,var(--pink),var(--lav),var(--sky));border-right:2px solid var(--line);display:flex;align-items:flex-end;justify-content:center;padding-bottom:10px}
.banner span{writing-mode:vertical-rl;transform:rotate(180deg);font-family:var(--f-display);font-weight:800;font-size:18px;color:var(--paper-solid);-webkit-text-stroke:1.5px var(--line);paint-order:stroke fill;letter-spacing:.02em}
.smenu{flex:1;display:grid;padding:6px;gap:1px}
.smenu button,.cmenu button{display:flex;align-items:center;gap:10px;text-align:left;padding:7px 10px;border-radius:6px;font-weight:800;font-size:14px}
.smenu button:hover,.cmenu button:hover,.smenu button:focus-visible,.cmenu button:focus-visible{background:var(--select);color:var(--select-ink);outline:none}
.smenu hr,.cmenu hr{border:0;border-top:1.5px dashed var(--ink-soft);margin:4px 6px;width:auto}
.smenu .on{margin-left:auto;font-family:var(--f-pixel);font-size:10px}
#ctx{position:absolute;z-index:70;min-width:200px;background:var(--paper-solid);border:2px solid var(--line);border-radius:8px;box-shadow:3px 3px 0 var(--line)}
.cmenu{display:grid;padding:4px}
.cmenu button{padding:5px 10px;font-size:13px}

/* ---------- screensaver + sparkles ---------- */
#saver{position:fixed;inset:0;z-index:200;background:var(--saver);overflow:hidden;cursor:none}
#saver .bounce{position:absolute;left:0;top:0;font-family:var(--f-display);font-weight:800;font-size:clamp(28px,7vw,56px);color:var(--paper-solid);-webkit-text-stroke:2px var(--line);paint-order:stroke fill;text-shadow:4px 4px 0 var(--hot);white-space:nowrap}
#saver .hint{position:absolute;left:0;right:0;bottom:calc(20px + env(safe-area-inset-bottom,0px));text-align:center;font-family:var(--f-pixel);font-size:11px;color:var(--lav)}
#sparkles{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:150;pointer-events:none}
/* square corners everywhere, dots included: pure 90s pixels */
*,*::before,*::after{border-radius:0!important}

@media (max-width:699px){
  #icons{grid-auto-flow:row;grid-template-rows:none;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:96px;grid-auto-columns:auto;gap:6px;padding-top:20px}
  .win{border-radius:0}
  .grip{display:none}
  .search{width:96px}
  .task{flex-basis:44px}
  .task span{display:none}
  .task[aria-pressed="true"] span{display:inline}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}
