/* MKOMPUTER Monitor - retro / old-computer aesthetics */
:root {
  --f-title: 'Silkscreen', 'Courier New', monospace;
  --f-ui: 'Pixelify Sans', 'Courier New', monospace;
  --f-num: 'VT323', 'Courier New', monospace;
  --ink-line: #14142b;
  --bevel-out: inset -1px -1px 0 #0a0a0a, inset 1px 1px 0 var(--chrome-hi), inset -2px -2px 0 var(--chrome-lo), inset 2px 2px 0 var(--chrome-hi2);
  --bevel-in: inset 1px 1px 0 var(--chrome-lo), inset -1px -1px 0 var(--chrome-hi), inset 2px 2px 0 #0a0a0a, inset -2px -2px 0 var(--chrome-hi2);
  --ok: #3fbf8a; --warn: #f2b632; --hot: #ef5a7a;
}

/* ---------- themes ---------- */
[data-theme='mint'], [data-theme='custom'] {
  --desk: #c6e8df; --desk-dot: #aedacf; --band1: #f7e9a8; --band2: #f4b8d0;
  --chrome: #d4d4d4; --chrome-hi: #ffffff; --chrome-hi2: #e9e9e9; --chrome-lo: #808080;
  --screen: #f3fbf8; --screen-dot: #cfe7e0; --panel: #ffffff; --panel-ink: #1b1b30; --panel-dim: #77778c; --ink: #14142b;
  --line: #c9c9d6; --seg-bg: #ececf3; --shadow: rgba(130, 120, 190, 0.45);
  --title-grad: linear-gradient(90deg, #c9c4f2 0%, #f7b9d3 55%, #fbeaa5 100%); --title-grad-v: linear-gradient(0deg, #c9c4f2 0%, #f7b9d3 55%, #fbeaa5 100%); --title-ink: #14142b; --menu-hover: #14142b; --menu-hover-ink: #fff;
  --c1: #f06ea9; --c2: #35b6bd; --c3: #e8aa1c; --c4: #8672e6; --c5: #f58a4a; --c6: #43bf84;
  --chart-ink: #6b6b80; --chart-grid: #d5d5e0; --tip-bg: #fffbe0; --tip-ink: #14142b; --scan: 0;
}
[data-theme='midnight'] {
  --desk: #faf7d8; --desk-dot: #ece8bd; --band1: #aadcef; --band2: #f4b8d0;
  --chrome: #cfcfd6; --chrome-hi: #ffffff; --chrome-hi2: #e6e6ec; --chrome-lo: #7c7c88;
  --screen: #07070d; --screen-dot: #17172a; --panel: #000000; --panel-ink: #fbf1c2; --panel-dim: #9a98b8; --ink: #14142b;
  --line: #2b2b44; --seg-bg: #14141f; --shadow: rgba(120, 130, 200, 0.5);
  --title-grad: linear-gradient(90deg, #fdf0a6 0%, #f7b4d0 55%, #a8dcef 100%); --title-grad-v: linear-gradient(0deg, #fdf0a6 0%, #f7b4d0 55%, #a8dcef 100%); --title-ink: #14142b; --menu-hover: #14142b; --menu-hover-ink: #fff;
  --c1: #ff8fc0; --c2: #8fe3f0; --c3: #ffe27a; --c4: #b9a6ff; --c5: #ffab76; --c6: #7fe8b0;
  --chart-ink: #b3b1d0; --chart-grid: #30304a; --tip-bg: #fbf1c2; --tip-ink: #000; --scan: 0.35;
}
[data-theme='phosphor'] {
  --desk: #04100a; --desk-dot: #0a2416; --band1: #0b2a1a; --band2: #0e3a24;
  --chrome: #123624; --chrome-hi: #2f7a53; --chrome-hi2: #1b4d35; --chrome-lo: #07170f;
  --screen: #020a05; --screen-dot: #0b2417; --panel: #010603; --panel-ink: #57ffa2; --panel-dim: #2e9c63; --ink: #57ffa2;
  --line: #124a2c; --seg-bg: #04170d; --shadow: rgba(40, 255, 140, 0.18);
  --title-grad: linear-gradient(90deg, #0b3d25, #14724a 70%, #1c9a63); --title-grad-v: linear-gradient(0deg, #0b3d25, #14724a 70%, #1c9a63); --title-ink: #d9ffe9; --menu-hover: #57ffa2; --menu-hover-ink: #02140a;
  --c1: #57ffa2; --c2: #9dff6a; --c3: #e8ff5e; --c4: #4dd9c9; --c5: #b6ffd2; --c6: #2fd17c;
  --chart-ink: #3fbf80; --chart-grid: #0f3a24; --tip-bg: #02140a; --tip-ink: #57ffa2; --scan: 0.6;
  --ok: #57ffa2; --warn: #e8ff5e; --hot: #ff5d73;
}
[data-theme='amber'] {
  --desk: #140d03; --desk-dot: #261808; --band1: #2a1a06; --band2: #3b2508;
  --chrome: #35230a; --chrome-hi: #8a6020; --chrome-hi2: #4d340f; --chrome-lo: #150d03;
  --screen: #0b0702; --screen-dot: #22160a; --panel: #060401; --panel-ink: #ffb633; --panel-dim: #a8741c; --ink: #ffb633;
  --line: #4a3210; --seg-bg: #140d04; --shadow: rgba(255, 170, 40, 0.16);
  --title-grad: linear-gradient(90deg, #4a2f0a, #8a5412 70%, #b8741a); --title-grad-v: linear-gradient(0deg, #4a2f0a, #8a5412 70%, #b8741a); --title-ink: #fff0cc; --menu-hover: #ffb633; --menu-hover-ink: #1a0f02;
  --c1: #ffb633; --c2: #ffd27a; --c3: #ff8a3d; --c4: #ffe9b0; --c5: #e0701c; --c6: #c9a35a;
  --chart-ink: #c58a2a; --chart-grid: #3a2810; --tip-bg: #140d03; --tip-ink: #ffb633; --scan: 0.6;
  --ok: #ffb633; --warn: #ff8a3d; --hot: #ff4d4d;
}
[data-accent='pink'] { --acc: #f58bbd; --acc2: #fbc5de; }
[data-accent='teal'] { --acc: #52c9cc; --acc2: #a7e8e6; }
[data-accent='yellow'] { --acc: #f5cf55; --acc2: #fbe9a3; }
[data-accent='purple'] { --acc: #9d8cf0; --acc2: #cfc6fa; }
[data-accent='orange'] { --acc: #ff9f6b; --acc2: #ffcfb2; }
[data-accent='green'] { --acc: #5cd593; --acc2: #aeeccb; }
[data-theme='phosphor'][data-accent] { --acc: #3de88f; --acc2: #a2ffcf; }
[data-theme='amber'][data-accent] { --acc: #ffae2b; --acc2: #ffd88c; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--f-ui); font-size: 15px; color: var(--ink); background: var(--desk); overflow: hidden;
  background-image: radial-gradient(var(--desk-dot) 1.5px, transparent 1.6px); background-size: 22px 22px;
  -webkit-font-smoothing: none; image-rendering: pixelated;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--acc); color: #111; }
.pix { display: block; }
.dim { color: var(--panel-dim); }
.pad { padding: 12px; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--chrome); box-shadow: inset 1px 1px 0 var(--chrome-lo); background-image: repeating-conic-gradient(var(--chrome) 0 25%, var(--chrome-hi2) 0 50%); background-size: 4px 4px; }
::-webkit-scrollbar-thumb { background: var(--chrome); box-shadow: var(--bevel-out); }
::-webkit-scrollbar-corner { background: var(--chrome); }
* { scrollbar-color: var(--chrome-lo) var(--chrome); }

/* ---------- desktop decoration ---------- */
#desk { position: fixed; inset: 0 0 42px 0; overflow: hidden; pointer-events: none; }
.band { position: absolute; top: 0; bottom: 0; opacity: 0.5; }
.b1 { left: 9%; width: 14%; background: linear-gradient(180deg, var(--band1), transparent 70%); }
.b2 { right: 7%; width: 10%; background: linear-gradient(0deg, var(--band2), transparent 80%); }
[data-theme='phosphor'] .band, [data-theme='amber'] .band { opacity: 0.6; }
.deco { position: absolute; z-index: 1; display: none; }
@media (min-width: 1100px) and (min-height: 640px) { .deco { display: block; } }
.orb { right: 0.5vw; top: 2px; width: 74px; height: 74px; border-radius: 50%; z-index: 40; background: radial-gradient(circle at 35% 30%, #fff 0 8%, #fbc5de 30%, #f7a8a8 60%, #fbd9a8 100%); box-shadow: 4px 4px 0 var(--shadow); animation: float 6s ease-in-out infinite; }
.orb .ring { position: absolute; inset: -14px -30px; border: 2px solid var(--ink-line); border-radius: 50%; transform: rotate(-24deg); border-left-color: transparent; }
.orb.small { right: auto; left: 0.4vw; top: auto; bottom: 8vh; width: 34px; height: 34px; animation-delay: -2s; background: radial-gradient(circle at 35% 30%, #fff 0 8%, #a8dcef 40%, #c8c4f0 100%); }
.sparkle { width: 22px; height: 22px; background: #fff; border: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(1px 1px 0 var(--ink-line)); animation: twinkle 2.4s steps(4) infinite; z-index: 40; }
.s1 { left: 2px; top: 12vh; } .s2 { right: 3px; top: 38vh; animation-delay: -0.8s; transform: scale(0.7); } .s3 { left: 6px; bottom: 28vh; animation-delay: -1.6s; transform: scale(0.8); }
.floppy { left: 4px; bottom: 2px; width: 46px; height: 46px; background: #e9b8e1; border: 2px solid var(--ink-line); box-shadow: 3px 3px 0 var(--shadow); z-index: 40; animation: float 7s ease-in-out infinite; animation-delay: -3s; }
.floppy i { position: absolute; left: 8px; right: 8px; top: 0; height: 15px; background: #eee; border: 2px solid var(--ink-line); border-top: 0; }
.bubble { right: 6px; bottom: 6px; z-index: 40; background: #fff; color: #111; font: 700 18px var(--f-title); padding: 8px 14px; border: 3px solid var(--ink-line); border-radius: 22px 22px 22px 2px; box-shadow: 4px 4px 0 var(--shadow); animation: bob 3s steps(2) infinite; }
.smiley { left: 1vw; top: 52vh; width: 44px; height: 44px; z-index: 40; animation: spin-slow 12s linear infinite; }
.hand { right: 1.4vw; top: 62vh; width: 30px; height: 36px; z-index: 40; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14' shape-rendering='crispEdges'%3E%3Cpath d='M4 0h2v6h1V4h2v3h1V5h2v6l-2 3H5l-3-4V7h2z' fill='%23fff' stroke='%2314142b' stroke-width='.8'/%3E%3C/svg%3E") center/contain no-repeat; animation: tap 1.6s steps(2) infinite; }
.tag { left: 50%; bottom: 2px; transform: translateX(-50%); font: 12px var(--f-title); letter-spacing: 2px; color: var(--ink-line); opacity: 0.55; z-index: 40; }
[data-theme='phosphor'] .tag, [data-theme='amber'] .tag { color: var(--panel-ink); }
.smiley, .about .smiley { border-radius: 50%; background: #fbeaa5; border: 3px solid var(--ink-line); position: relative; box-shadow: 0 0 0 4px #fff, 4px 4px 0 4px var(--shadow); }
.smiley::before { content: ''; position: absolute; left: 24%; top: 28%; width: 12%; height: 22%; background: var(--ink-line); box-shadow: calc(var(--s, 44px) * 0.3) 0 0 var(--ink-line); }
.smiley::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 20%; height: 22%; border: 3px solid var(--ink-line); border-top: 0; border-radius: 0 0 50% 50%; }
.about .smiley { width: 64px; height: 64px; margin: 6px auto 14px; --s: 64px; animation: none; }
.smiley { --s: 44px; }

/* ---------- window chrome ---------- */
.win { background: var(--chrome); border: 2px solid var(--ink-line); box-shadow: var(--bevel-out), 7px 7px 0 var(--shadow); color: var(--ink); }
[data-theme='phosphor'] .win, [data-theme='amber'] .win { --ink-line: #000; color: var(--panel-ink); }
#windows { position: fixed; z-index: 10; inset: 0 0 42px 0; pointer-events: none; transition: opacity 0.3s steps(4); }
body.loading #windows { opacity: 0; }
.appwin { position: absolute; display: flex; flex-direction: column; pointer-events: auto; min-width: 0; min-height: 0; transform-origin: 50% 100%; }
.appwin[hidden] { display: none !important; }
.appwin.maxed { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-width: 0; box-shadow: none; }
.appwin.animating { transition: left 0.22s steps(6), top 0.22s steps(6), width 0.22s steps(6), height 0.22s steps(6); }
.appwin.opening { animation: winopen 0.5s steps(9) both; }
.appwin.minimizing { transform: translateY(35%) scale(0.35); opacity: 0; transition: transform 0.2s steps(5), opacity 0.2s steps(5); }
.appwin.moving { user-select: none; } .appwin.moving .client { pointer-events: none; }
.appwin.offline .screen { filter: grayscale(0.8) brightness(0.9); }
.appwin:not(.focused) { box-shadow: var(--bevel-out), 3px 3px 0 var(--shadow); }
.appwin:not(.focused) .titlebar { filter: grayscale(0.9) brightness(1.04); opacity: 0.88; }
.appwin .titlebar { cursor: default; } .appwin.maxed .titlebar { cursor: default; }
.rz { position: absolute; z-index: 20; display: block; touch-action: none; }
.rz-n { top: -5px; left: 12px; right: 12px; height: 9px; cursor: ns-resize; } .rz-s { bottom: -5px; left: 12px; right: 12px; height: 9px; cursor: ns-resize; }
.rz-e { right: -5px; top: 12px; bottom: 12px; width: 9px; cursor: ew-resize; } .rz-w { left: -5px; top: 12px; bottom: 12px; width: 9px; cursor: ew-resize; }
.rz-ne { top: -5px; right: -5px; width: 16px; height: 16px; cursor: nesw-resize; } .rz-nw { top: -5px; left: -5px; width: 16px; height: 16px; cursor: nwse-resize; }
.rz-se { bottom: -5px; right: -5px; width: 16px; height: 16px; cursor: nwse-resize; } .rz-sw { bottom: -5px; left: -5px; width: 16px; height: 16px; cursor: nesw-resize; }
.appwin.maxed .rz { display: none; }
.snap-preview { position: absolute; z-index: 90; pointer-events: none; background: color-mix(in srgb, var(--acc) 28%, transparent); border: 3px dashed var(--acc); transition: all 0.12s steps(3); }

.titlebar { flex: none; height: 28px; display: flex; align-items: center; gap: 8px; padding: 2px 3px 2px 8px; background: var(--title-grad); color: var(--title-ink); font: 700 12px var(--f-title); letter-spacing: 1px; text-transform: uppercase; user-select: none; }
.titlebar .ticon { display: grid; place-items: center; color: var(--title-ink); }
.titlebar .ttl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ttl-sub { opacity: 0.7; font-weight: 400; }
.tbtns { display: flex; gap: 3px; }
.tb { width: 22px; height: 20px; padding: 0; display: grid; place-items: center; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink-line); font: 700 12px var(--f-title); line-height: 1; }
[data-theme='phosphor'] .tb, [data-theme='amber'] .tb { color: var(--panel-ink); }
.tb:active { box-shadow: var(--bevel-in); }
.tb i { display: block; position: relative; }
.g-min { width: 8px; height: 2px; background: currentColor; margin-top: 6px; }
.g-max { width: 9px; height: 8px; border: 2px solid currentColor; border-top-width: 3px; }
.g-x { width: 10px; height: 10px; background: linear-gradient(45deg, transparent 42%, currentColor 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, currentColor 42% 58%, transparent 58%); }

.menubar { flex: none; display: flex; padding: 2px 4px; gap: 2px; border-bottom: 1px solid var(--chrome-lo); box-shadow: 0 1px 0 var(--chrome-hi); font: 15px var(--f-ui); position: relative; z-index: 5; overflow-x: auto; }
.menu { background: none; border: 0; padding: 3px 12px; }
.menu:hover, .menu.open { background: var(--menu-hover); color: var(--menu-hover-ink); }
.menu::first-letter { text-decoration: underline; }

.toolbar { flex: none; display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-bottom: 1px solid var(--chrome-lo); }
.tbtn { height: 28px; min-width: 30px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); font: 12px var(--f-title); color: inherit; }
.tbtn:active:not(:disabled), .tbtn.on { box-shadow: var(--bevel-in); background: var(--acc2); color: #111; }
.tbtn:disabled { opacity: 0.4; cursor: default; }
.tbtn:not(:disabled):hover { background: var(--chrome-hi2); }
.addr { flex: 1; min-width: 0; height: 28px; display: flex; align-items: center; padding: 0 10px; background: var(--panel); color: var(--panel-ink); box-shadow: var(--bevel-in); font: 17px var(--f-num); white-space: nowrap; overflow: hidden; }
.addr a { text-decoration: none; } .addr a:hover { text-decoration: underline; }
.addr .drive { color: var(--panel-dim); } .addr b { color: var(--acc); font-weight: 400; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2); }
.blink { animation: blink 1s steps(2) infinite; }

.client { flex: 1; min-height: 0; display: flex; gap: 6px; padding: 6px; }
.palette { flex: none; width: 56px; display: flex; flex-direction: column; gap: 5px; padding: 6px; background: var(--chrome); box-shadow: var(--bevel-in); overflow-y: auto; overflow-x: hidden; }
.tool { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); transition: transform 0.1s steps(2); }
[data-theme='phosphor'] .tool, [data-theme='amber'] .tool { color: var(--panel-ink); }
.tool:hover { background: var(--chrome-hi2); transform: translateY(-1px); }
.tool.on { box-shadow: var(--bevel-in); background: var(--panel); color: var(--acc); animation: select 0.3s steps(3); }
.tool.on svg { filter: drop-shadow(1px 1px 0 var(--acc2)); }
.tool kbd { position: absolute; right: 2px; bottom: 0; font: 9px var(--f-title); opacity: 0.45; }
.tool.add { opacity: 0.6; border-top: 0; }
.tool::after { content: attr(data-tip); position: absolute; left: 50px; top: 50%; transform: translateY(-50%) scale(0.8); transform-origin: left; padding: 4px 8px; background: var(--tip-bg); color: var(--tip-ink); border: 2px solid var(--ink-line); font: 11px var(--f-title); white-space: nowrap; opacity: 0; pointer-events: none; z-index: 50; transition: 0.12s steps(3); box-shadow: 3px 3px 0 var(--shadow); }
.tool:hover::after, .tool:focus-visible::after { opacity: 1; transform: translateY(-50%) scale(1); }

.screen { position: relative; flex: 1; min-width: 0; overflow: auto; padding: 14px; background: var(--screen); background-image: radial-gradient(var(--screen-dot) 1.2px, transparent 1.3px); background-size: 16px 16px; box-shadow: var(--bevel-in); color: var(--panel-ink); scroll-behavior: smooth; }
[data-theme='midnight'] .screen { background-image: radial-gradient(var(--screen-dot) 1.2px, transparent 1.3px), radial-gradient(ellipse at 15% 0%, rgba(168, 220, 239, 0.12), transparent 50%), radial-gradient(ellipse at 90% 100%, rgba(244, 184, 208, 0.12), transparent 50%); background-size: 16px 16px, 100% 100%, 100% 100%; }

.statusbar { flex: none; display: flex; align-items: stretch; gap: 6px; padding: 5px 6px 6px; border-top: 1px solid var(--chrome-hi); font: 13px var(--f-ui); }
.pal { display: flex; gap: 6px; padding: 3px 6px; box-shadow: var(--bevel-in); align-items: center; }
.fgbg { position: relative; width: 30px; height: 28px; } .fgbg i { position: absolute; width: 18px; height: 18px; border: 2px solid var(--ink-line); } .fgbg i:first-child { left: 0; top: 0; background: #000; z-index: 2; } .fgbg i:last-child { right: 0; bottom: 0; background: var(--acc); }
.swatches { display: grid; grid-template-columns: repeat(6, 14px); gap: 2px; }
.sw { width: 14px; height: 14px; padding: 0; border: 1px solid var(--ink-line); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5); }
.sw:not(.dead):hover { transform: scale(1.25); z-index: 2; } .sw.on { outline: 2px solid var(--panel-ink); outline-offset: 0; z-index: 1; }
.sw.dead { cursor: default; opacity: 0.85; }
.st-cell { display: flex; align-items: center; gap: 10px; padding: 0 10px; box-shadow: var(--bevel-in); white-space: nowrap; overflow: hidden; }
.st-cell.grow { flex: 1; min-width: 0; }
.st-cell .stats { display: flex; gap: 14px; margin-left: 8px; font: 17px var(--f-num); overflow: hidden; }
.stats b { color: var(--ink); font-weight: 400; }
[data-theme='phosphor'] .stats b, [data-theme='amber'] .stats b { color: var(--panel-ink); }
#st-clock { font: 19px var(--f-num); }
.alertchip { background: var(--hot); color: #fff; font: 700 11px var(--f-title); padding: 2px 6px; animation: blink 0.8s steps(2) infinite; }

/* ---------- shared components ---------- */
.led { display: inline-block; width: 10px; height: 10px; border: 2px solid var(--ink-line); background: #888; flex: none; }
.led[data-s='ready'] { background: #3fe08a; box-shadow: 0 0 6px #3fe08a; }
.led[data-s='loading'] { background: #f5c242; animation: blink 0.8s steps(2) infinite; }
.led[data-s='error'] { background: var(--hot); }
.led[data-s='offline'] { background: #777; }

.seg { position: relative; height: 14px; padding: 2px; background: var(--seg-bg); box-shadow: inset 1px 1px 0 var(--chrome-lo), inset -1px -1px 0 var(--chrome-hi), inset 2px 2px 0 rgba(0, 0, 0, 0.3); --fa: var(--acc2); --fb: var(--acc); }
.seg.lg { height: 24px; padding: 3px; }
[data-lvl='warn'] { --fa: #fbe6a0; --fb: var(--warn); }
[data-lvl='hot'] { --fa: #ffb5c4; --fb: var(--hot); }
.seg > i, .vbar > i { display: block; background: linear-gradient(180deg, var(--fa), var(--fb)); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s; }
.seg > i { height: 100%; width: 0; -webkit-mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 9px); mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 9px); }
.seg.lg > i { -webkit-mask: repeating-linear-gradient(90deg, #000 0 11px, transparent 11px 14px); mask: repeating-linear-gradient(90deg, #000 0 11px, transparent 11px 14px); }
.vbar { display: flex; align-items: flex-end; padding: 2px; background: var(--seg-bg); box-shadow: inset 1px 1px 0 var(--chrome-lo), inset -1px -1px 0 var(--chrome-hi); --fa: var(--acc2); --fb: var(--acc); }
.vbar > i { width: 100%; height: 0; -webkit-mask: repeating-linear-gradient(0deg, #000 0 5px, transparent 5px 7px); mask: repeating-linear-gradient(0deg, #000 0 5px, transparent 5px 7px); }

.chip { display: inline-block; font: 10px var(--f-title); padding: 3px 7px; background: var(--acc); color: #14142b; box-shadow: var(--bevel-out); text-transform: uppercase; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.dim { background: var(--chrome); color: var(--ink); }
[data-theme='phosphor'] .chip.dim, [data-theme='amber'] .chip.dim { color: var(--panel-ink); }
.chip.bad { background: var(--hot); color: #fff; animation: blink 1s steps(2) infinite; }

.bignum { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.bignum b { font: 400 clamp(44px, 24cqmin, 110px) / 0.8 var(--f-num); color: var(--panel-ink); text-shadow: 3px 3px 0 var(--acc2); letter-spacing: -1px; white-space: nowrap; }
.bignum small { font: 12px var(--f-title); color: var(--panel-dim); }
.bignum.sm b { font-size: 34px; text-shadow: 2px 2px 0 var(--acc2); } .bignum.sm span { color: var(--acc); font-size: 16px; }
[data-theme='phosphor'] .bignum b, [data-theme='amber'] .bignum b { text-shadow: 0 0 10px var(--acc), 2px 2px 0 rgba(0, 0, 0, 0.5); }

.kvgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 3px 14px; }
.kvgrid.c2 { grid-template-columns: 1fr 1fr; } .kvgrid.c1 { grid-template-columns: 1fr; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 1px dotted var(--line); padding: 1px 0; min-width: 0; }
.kv span { font: 9px var(--f-title); color: var(--panel-dim); letter-spacing: 0.5px; white-space: nowrap; }
.kv b { font: 400 19px var(--f-num); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv b[data-lvl='warn'] { color: var(--warn); } .kv b[data-lvl='hot'] { color: var(--hot); }
.kv a { color: var(--acc); }

.tabs { display: flex; gap: 3px; flex-wrap: wrap; }
.tab { padding: 4px 9px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); font: 10px var(--f-title); color: var(--ink); }
[data-theme='phosphor'] .tab, [data-theme='amber'] .tab { color: var(--panel-ink); }
.tab.on { box-shadow: var(--bevel-in); background: var(--acc2); color: #111; }
.toolrow { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex: none; }

.field { width: 100%; padding: 6px 8px; font: 15px var(--f-ui); background: var(--panel); color: var(--panel-ink); border: 0; box-shadow: var(--bevel-in); outline: none; min-width: 0; }
.field:focus { box-shadow: var(--bevel-in), 0 0 0 2px var(--acc); }
.field.sm { width: 74px; flex: none; } .field.big { font-size: 20px; padding: 10px; }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
.toolrow .field { max-width: 180px; padding: 3px 8px; font-size: 14px; }
.btn { padding: 7px 14px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); font: 11px var(--f-title); color: var(--ink); white-space: nowrap; }
[data-theme='phosphor'] .btn, [data-theme='amber'] .btn { color: var(--panel-ink); }
.btn:hover { background: var(--chrome-hi2); } .btn:active { box-shadow: var(--bevel-in); transform: translate(1px, 1px); }
.btn.primary { background: var(--acc); color: #14142b; } .btn.sm { padding: 4px 9px; font-size: 10px; }
.btn.danger { background: var(--hot); color: #fff; } .btn.ok { background: var(--ok); color: #111; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.switch { width: 44px; height: 22px; padding: 2px; flex: none; background: var(--seg-bg); border: 0; box-shadow: var(--bevel-in); position: relative; }
.switch i { display: block; width: 18px; height: 18px; background: var(--chrome); box-shadow: var(--bevel-out); transition: transform 0.15s steps(3); }
.switch.on { background: var(--acc2); } .switch.on i { transform: translateX(22px); background: var(--acc); }
.seg-btns { display: flex; } .seg-btns button { padding: 5px 14px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); font: 12px var(--f-title); color: var(--ink); } .seg-btns button.on { box-shadow: var(--bevel-in); background: var(--acc); color: #111; }

.code { margin: 6px 0; padding: 8px 10px; background: #000; color: #8dffc1; font: 16px var(--f-num); white-space: pre-wrap; word-break: break-all; box-shadow: var(--bevel-in); }
code { font-family: var(--f-num); font-size: 1.1em; background: rgba(128, 128, 160, 0.2); padding: 0 3px; }
canvas { display: block; }
canvas.grow { flex: 1 1 0; min-height: 36px; width: 100%; }

/* ---------- grid + widget windows ---------- */
.page.enter .wwin { animation: reveal 0.5s steps(10, end) both; animation-delay: calc(var(--i, 0) * 50ms); }
.grid { position: relative; }
.grid.editing { background-image: radial-gradient(circle, var(--chart-ink) 1px, transparent 1.6px); background-size: calc((100% + 10px) / var(--ncols, 24)) 40px; background-position: -5px -5px; }
.gitem { position: absolute; left: 0; top: 0; transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.25, 1), width 0.28s cubic-bezier(0.2, 0.9, 0.25, 1), height 0.28s cubic-bezier(0.2, 0.9, 0.25, 1); }
.gitem.dragging { transition: none; z-index: 30; opacity: 0.93; }
.gitem.dragging.wwin { box-shadow: var(--bevel-out), 10px 10px 0 var(--shadow); }
.grid-ghost { position: absolute; left: 0; top: 0; background: color-mix(in srgb, var(--acc) 25%, transparent); border: 2px dashed var(--acc); z-index: 0; transition: transform 0.1s steps(2), width 0.1s steps(2), height 0.1s steps(2); }
.grid.stacked { display: flex; flex-direction: column; }
.grid.stacked .gitem { position: relative; height: var(--h); margin-bottom: 12px; }

.wwin { display: flex; flex-direction: column; background: var(--chrome); border: 2px solid var(--ink-line); box-shadow: var(--bevel-out), 4px 4px 0 var(--shadow); min-width: 0; min-height: 0; }
.wwin.flash { animation: flash 0.9s steps(6) 2; }
.wbar { flex: none; height: 24px; display: flex; align-items: center; gap: 6px; padding: 0 4px 0 6px; background: var(--title-grad); color: var(--title-ink); font: 700 11px var(--f-title); letter-spacing: 1px; text-transform: uppercase; user-select: none; touch-action: none; }
.wbar .wic { display: grid; } .wbar .wt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wact { display: none; gap: 3px; }
.wb { width: 18px; height: 16px; padding: 0; display: grid; place-items: center; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); } [data-theme='phosphor'] .wb, [data-theme='amber'] .wb { color: var(--panel-ink); } .wb:hover { background: var(--acc2); }
.wbody { flex: 1; min-height: 0; margin: 3px; padding: 10px; background: var(--panel); color: var(--panel-ink); box-shadow: var(--bevel-in); overflow: auto; container-type: size; position: relative; }
.wbody > div:first-child { height: 100%; }
.wres { display: none; position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; z-index: 5; touch-action: none; background: linear-gradient(135deg, transparent 0 50%, var(--ink-line) 50% 56%, transparent 56% 66%, var(--ink-line) 66% 72%, transparent 72% 82%, var(--ink-line) 82% 88%, transparent 88%); }
.editing .wact, .editing .wres { display: flex; } .editing .wres { display: block; }
.editing .wwin { outline: 2px dashed var(--acc); outline-offset: 2px; } .editing .wbar { cursor: grab; } .is-dragging .wbar { cursor: grabbing; }
.editing .wbody { pointer-events: none; }
.editbar { position: sticky; top: -14px; z-index: 20; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -14px -14px 14px; padding: 8px 14px; background: var(--acc); color: #14142b; font: 12px var(--f-ui); border-bottom: 2px solid var(--ink-line); animation: slidedown 0.25s steps(4); }
.editbar b { font: 700 12px var(--f-title); } .editbar span { flex: 1; min-width: 200px; opacity: 0.85; }
.editbar .btn { color: #14142b; } .editbar .btn.primary { background: #14142b; color: #fff; }

/* ---------- widgets ---------- */
.cpuw, .memw, .gpuw, .tilew, .netw, .diskw, .llmw, .chartw, .setup, .procw, .sensorlab, .sysw, .spec { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.cpuw .row, .memw .row, .gpu-live .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; flex: none; }
.side { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; min-width: 0; }
.memw .bignum b { font-size: clamp(28px, 16cqmin, 60px); }
.swaprow, .meter, .mt { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 8px; font: 9px var(--f-title); color: var(--panel-dim); }
.swaprow b, .meter b, .mt b { font: 400 17px var(--f-num); color: var(--panel-ink); min-width: 70px; text-align: right; white-space: nowrap; }
.meters { display: flex; flex-direction: column; gap: 5px; flex: none; }
.gpu-live { display: flex; flex-direction: column; gap: 8px; min-height: 0; height: 100%; }
.gpuw { height: 100%; } .gpuw > div { min-height: 0; }
.throttle { background: var(--hot); color: #fff; font: 10px var(--f-title); padding: 4px 6px; }
.plist { display: flex; flex-direction: column; gap: 2px; font: 14px var(--f-ui); flex: none; } .plist > div { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--line); } .plist em { color: var(--panel-dim); font-style: normal; }
.plist.procs { margin-top: 4px; } .proc { display: grid !important; grid-template-columns: auto 1fr; gap: 0 10px; padding: 3px 0; } .proc .pm { color: var(--acc); } .proc .pi, .proc b { grid-column: 1 / -1; color: var(--panel-dim); font: 15px var(--f-num); }

.nosignal { position: relative; height: 100%; min-height: 120px; display: grid; place-items: center; overflow: hidden; box-shadow: var(--bevel-in); background: #000; }
.nosignal .bars { position: absolute; inset: 0; display: flex; opacity: 0.85; animation: tvjitter 0.25s steps(2) infinite; }
.nosignal .bars i { flex: 1; } .nosignal .bars i:nth-child(1) { background: #e8e8e8; } .nosignal .bars i:nth-child(2) { background: #f5e27a; } .nosignal .bars i:nth-child(3) { background: #8fe3f0; } .nosignal .bars i:nth-child(4) { background: #8fe8a8; } .nosignal .bars i:nth-child(5) { background: #f7a8d6; } .nosignal .bars i:nth-child(6) { background: #f08a8a; } .nosignal .bars i:nth-child(7) { background: #9aa8f5; }
.nosignal::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0 2px, transparent 2px 4px); animation: scanroll 6s linear infinite; }
.nosignal .msg { position: relative; z-index: 2; background: #000; color: #fff; padding: 10px 16px; text-align: center; border: 3px solid #fff; display: flex; flex-direction: column; gap: 6px; max-width: 90%; }
.nosignal .msg b { font: 700 20px var(--f-title); letter-spacing: 3px; } .nosignal .msg span { font: 11px var(--f-title); color: #9be0c9; letter-spacing: 1px; }
.nosig-wrap { height: 100%; } .empty { min-height: 200px; }

.cores { display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); gap: 6px; height: 100%; }
.core { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 0; } .core .vbar { flex: 1; width: 100%; max-width: 40px; } .core b { font: 9px var(--f-title); } .core em { font: normal 14px var(--f-num); color: var(--panel-dim); }
@container (max-width: 520px) { .cores { grid-template-columns: repeat(8, 1fr); height: auto; } .core .vbar { min-height: 60px; } }

.srows { display: flex; flex-direction: column; min-height: 0; overflow: auto; flex: 1; }
.srow { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(70px, 1.3fr) auto minmax(50px, 90px); gap: 10px; align-items: center; padding: 3px 4px; border-bottom: 1px dotted var(--line); font: 14px var(--f-ui); }
.srow:hover { background: color-mix(in srgb, var(--acc) 14%, transparent); }
.srow .sg { color: var(--panel-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .srow .sl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .srow .sv { font: 20px var(--f-num); text-align: right; min-width: 60px; }
.srow .seg { height: 10px; padding: 1px; } .srow .seg > i { -webkit-mask: repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 6px); mask: repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 6px); }
@container (max-width: 420px) { .srow { grid-template-columns: 1fr auto 50px; } .srow .sg { display: none; } }
.srow:has(.sg:empty) { grid-template-columns: 1fr auto minmax(50px, 90px); } .srow .sg:empty { display: none; }


.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 14px var(--f-ui); flex: none; } .legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 10px; height: 10px; display: inline-block; } .legend b { font: 400 19px var(--f-num); }

.tilew { align-items: flex-start; } .tilew .bignum b { font-size: clamp(34px, 28cqmin, 120px); } .tilew .sub { font: 10px var(--f-title); } .tilew .seg { width: 100%; }
.drow { padding: 4px 0; } .drow .top { display: flex; gap: 8px; align-items: baseline; margin-bottom: 3px; } .drow b { font: 11px var(--f-title); } .drow span { color: var(--panel-dim); flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .drow em { font: normal 17px var(--f-num); }
.diskw .srows { flex: none; max-height: 45%; }
.netw .row { display: flex; gap: 24px; flex: none; } .ifaces { display: flex; flex-direction: column; gap: 3px; flex: none; }
.iface { display: grid; grid-template-columns: auto 90px 1fr auto; gap: 8px; align-items: center; font: 13px var(--f-ui); border-bottom: 1px dotted var(--line); padding: 2px 0; } .iface em { font: normal 16px var(--f-num); color: var(--panel-dim); } .iface span { color: var(--acc); }

.ptable { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: auto; }
.ph, .pr { display: grid; grid-template-columns: 64px minmax(90px, 1.4fr) minmax(60px, 0.7fr) minmax(110px, 1.2fr) 80px 110px 28px; gap: 10px; align-items: center; padding: 3px 6px; }
.ph { position: sticky; top: 0; background: var(--panel); font: 9px var(--f-title); color: var(--panel-dim); border-bottom: 2px solid var(--line); z-index: 1; }
.pr { font: 14px var(--f-ui); border-bottom: 1px dotted var(--line); } .pr:hover { background: color-mix(in srgb, var(--acc) 14%, transparent); } .pr.llama { background: color-mix(in srgb, var(--c4) 22%, transparent); }
.pr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pr .bar2 { display: flex; align-items: center; gap: 6px; } .pr .bar2 b { font: 400 18px var(--f-num); min-width: 54px; } .pr .seg { flex: 1; height: 8px; padding: 0; }
@container (max-width: 640px) { .ph, .pr { grid-template-columns: 52px 1fr 90px 70px 28px; } .ph span:nth-child(3), .pr span:nth-child(3), .ph span:nth-child(6), .pr span:nth-child(6) { display: none; } }

.sysw .logo-row { display: flex; gap: 12px; align-items: center; } .sysw .big { display: block; font: 700 18px var(--f-title); } .pc-art { width: 46px; height: 40px; flex: none; background: var(--chrome); box-shadow: var(--bevel-out); position: relative; border: 2px solid var(--ink-line); } .pc-art i { position: absolute; inset: 4px 4px 10px; background: linear-gradient(135deg, #a8dcef, #f7b4d0, #fbeaa5); border: 2px solid var(--ink-line); animation: hue 6s linear infinite; }
.clockw { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; text-align: center; } .digits { font: 400 clamp(36px, 22cqw, 110px) / 1 var(--f-num); letter-spacing: 2px; text-shadow: 3px 3px 0 var(--acc2); } .clockw .date { font: 10px var(--f-title); }
.alertw { display: flex; flex-direction: column; gap: 4px; } .al { display: flex; gap: 10px; padding: 4px 6px; font: 14px var(--f-ui); border-left: 4px solid var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); } .al.hot { border-color: var(--hot); background: color-mix(in srgb, var(--hot) 14%, transparent); } .al time { font: 16px var(--f-num); color: var(--panel-dim); }
.notew { white-space: pre-wrap; font: 17px / 1.3 var(--f-ui); }
.empty-note { padding: 14px; }

.gpus .rows { display: flex; flex-direction: column; gap: 8px; } .grow-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) 1.2fr 1.4fr repeat(3, auto); gap: 14px; align-items: center; padding: 6px 4px; border-bottom: 1px dotted var(--line); animation: reveal 0.4s steps(6) both; }
.gi { display: flex; flex-direction: column; min-width: 0; } .gi b { font: 20px var(--f-num); color: var(--acc); } .gi span { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gi em { font: normal 9px var(--f-title); color: var(--panel-dim); }
.grow-row .mt { grid-template-columns: 40px 1fr auto; } .grow-row .mt.s { display: flex; flex-direction: column; gap: 0; align-items: flex-start; } .grow-row .mt.s b { text-align: left; min-width: 0; }
@container (max-width: 760px) { .grow-row { grid-template-columns: repeat(3, 1fr); } .grow-row .gi, .grow-row .mt:not(.s) { grid-column: 1 / -1; } }

.llm-card { border: 2px solid var(--line); margin-bottom: 10px; animation: reveal 0.4s steps(6) both; } .llm-card .head { display: flex; gap: 10px; align-items: center; padding: 6px 8px; background: color-mix(in srgb, var(--acc) 22%, transparent); } .llm-card .head b { font: 11px var(--f-title); } .llm-card .head .chip:last-child { margin-left: auto; }
.llm-card .body { display: grid; grid-template-columns: minmax(120px, 0.8fr) 1.6fr; gap: 8px 16px; padding: 10px; } .llm-card .body > * { min-width: 0; } .tps .sub { display: flex; gap: 8px; align-items: baseline; font: 9px var(--f-title); color: var(--panel-dim); margin-top: 6px; } .tps .sub b { font: 400 20px var(--f-num); color: var(--panel-ink); }
.llm-card canvas { height: 62px; width: 100%; } .llm-card .mt, .llm-card .slots, .llm-card .kvgrid, .llm-card .hint { grid-column: 1 / -1; }
.slots { display: flex; gap: 4px; flex-wrap: wrap; } .slot { width: 14px; height: 14px; background: var(--seg-bg); box-shadow: var(--bevel-in); } .slot.on { background: var(--acc); animation: blink 0.5s steps(2) infinite; }
.hint { font-size: 13px; color: var(--panel-dim); }
.callout { background: color-mix(in srgb, var(--warn) 22%, transparent); border-left: 4px solid var(--warn); padding: 8px 10px; font-size: 14px; }
.setup h4, .spec h4 { margin: 10px 0 4px; font: 11px var(--f-title); color: var(--acc); border-bottom: 2px solid var(--line); padding-bottom: 3px; } .setup h4 em { font-style: normal; color: var(--panel-dim); }
.cmd > div { display: flex; justify-content: space-between; align-items: center; } .cmd b { font: 10px var(--f-title); }
.model { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 3px 0; border-bottom: 1px dotted var(--line); font-size: 14px; } .model span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .model b { font: 400 17px var(--f-num); }

.spec .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 4px 28px; align-items: start; }
.spec section.wide { grid-column: 1 / -1; }
.sr { display: flex; align-items: baseline; gap: 6px; padding: 1px 0; font: 14px var(--f-ui); } .sr span { color: var(--panel-dim); white-space: pre; } .sr i { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-3px); min-width: 12px; } .sr b { font-weight: 400; text-align: right; max-width: 65%; }
.pci { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 2px 20px; font: 13px var(--f-ui); } .pci > div { display: grid; grid-template-columns: 54px 120px 1fr; gap: 8px; border-bottom: 1px dotted var(--line); padding: 1px 0; } .pci em { color: var(--panel-dim); font-style: normal; } .pci span { color: var(--panel-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pci b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pci .gpu b { color: var(--acc); }

/* ---------- settings ---------- */
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); gap: 16px; align-items: start; }
.setwin { position: relative; animation: reveal 0.5s steps(8) both; } .setwin:nth-child(2) { animation-delay: 0.08s; } .setwin:nth-child(3) { animation-delay: 0.16s; } .setwin:nth-child(4) { animation-delay: 0.24s; }
.setwin .wbody { container-type: normal; display: flex; flex-direction: column; gap: 12px; padding: 14px; overflow: visible; }
.frm { display: flex; flex-direction: column; gap: 4px; font: 14px var(--f-ui); } .frm > span { font: 10px var(--f-title); letter-spacing: 0.5px; } .frm em { font: normal 13px var(--f-ui); color: var(--panel-dim); margin-left: 8px; }
.settings .frm { flex-direction: row; justify-content: space-between; align-items: center; gap: 14px; } .settings .frm > .field, .settings .frm select { max-width: 220px; } .settings .frm textarea, .settings .frm > input[type=text] { max-width: 280px; }
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 8px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); transition: transform 0.12s steps(2); } .theme-card:hover { transform: translateY(-2px); } .theme-card.on { box-shadow: var(--bevel-in), 0 0 0 3px var(--acc); }
.theme-card b { font: 11px var(--f-title); } .theme-card span { font-size: 12px; color: var(--ink); opacity: 0.7; } .theme-card .sw { display: flex; height: 22px; border: 2px solid var(--ink-line); } .theme-card .sw i { flex: 1; }
[data-theme='phosphor'] .theme-card, [data-theme='amber'] .theme-card { color: var(--panel-ink); } [data-theme='phosphor'] .theme-card span, [data-theme='amber'] .theme-card span { color: var(--panel-ink); }
.accents { display: flex; gap: 8px; } .acc { width: 26px; height: 26px; border: 2px solid var(--ink-line); box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.5), inset -2px -2px 0 rgba(0, 0, 0, 0.2); } .acc.on { outline: 3px solid var(--panel-ink); outline-offset: 2px; } .acc:hover { transform: scale(1.15); }
.arow { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; } .arow select.field { flex: 1; min-width: 120px; max-width: none; } .arow select.field.sm { flex: none; min-width: 0; width: 70px; } .eps .arow .field:nth-child(2) { flex: 1; }
.settings .frm.tall { flex-direction: column; align-items: stretch; }

/* ---------- dialogs, menus, toasts ---------- */
#modal-root { position: relative; z-index: 900; }
.modal-back { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(20, 20, 50, 0.38); animation: fadein 0.15s steps(3); padding: 10px; } .modal-back.closing { opacity: 0; transition: opacity 0.15s steps(3); }
.dlg { max-height: 92vh; display: flex; flex-direction: column; animation: dlgin 0.22s steps(5); } .dlg.closing { transform: scale(0.9); opacity: 0; transition: 0.15s steps(3); }
.dlg-body { padding: 14px; overflow: auto; background: var(--chrome); color: var(--ink); } [data-theme='phosphor'] .dlg-body, [data-theme='amber'] .dlg-body { color: var(--panel-ink); }
.dlg-body .field, .dlg-body .mpick { background: var(--panel); color: var(--panel-ink); }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--chrome-lo); box-shadow: 0 -1px 0 var(--chrome-hi); }
.msg { margin: 0; font: 16px / 1.3 var(--f-ui); }
.form { display: flex; flex-direction: column; gap: 12px; } .dlg .frm { font: 15px var(--f-ui); }
.mp-wrap { display: flex; flex-direction: column; gap: 6px; } .mpick { max-height: 240px; overflow: auto; box-shadow: var(--bevel-in); padding: 4px; }
.mg { font: 9px var(--f-title); color: var(--acc); padding: 6px 4px 2px; position: sticky; top: -4px; background: var(--panel); } .mrow { display: flex; gap: 8px; align-items: center; padding: 2px 4px; font-size: 14px; cursor: pointer; } .mrow:hover { background: color-mix(in srgb, var(--acc) 20%, transparent); } .mrow.on { background: color-mix(in srgb, var(--acc) 30%, transparent); } .mrow span { flex: 1; } .mrow em { font: normal 13px var(--f-num); color: var(--panel-dim); } .mrow input { accent-color: var(--acc); }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.cat-i { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 10px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); transition: transform 0.1s steps(2); } [data-theme='phosphor'] .cat-i, [data-theme='amber'] .cat-i { color: var(--panel-ink); }
.cat-i:hover { transform: translate(-1px, -2px); background: var(--chrome-hi2); box-shadow: var(--bevel-out), 3px 3px 0 var(--shadow); } .cat-i .ci { color: var(--acc); } .cat-i b { font: 11px var(--f-title); } .cat-i span { font-size: 13px; opacity: 0.8; } .cat-i em { font: normal 9px var(--f-title); background: var(--acc); color: #111; padding: 1px 5px; }
.about { text-align: center; } .about .big { font: 700 20px var(--f-title); margin-bottom: 8px; } .about p { margin: 6px 0; font-size: 15px; }

.menu-pop { position: fixed; z-index: 800; min-width: 230px; padding: 3px; background: var(--chrome); border: 2px solid var(--ink-line); box-shadow: var(--bevel-out), 5px 5px 0 var(--shadow); animation: dropin 0.14s steps(4); transform-origin: top; }
.menu-pop hr { border: 0; border-top: 1px solid var(--chrome-lo); border-bottom: 1px solid var(--chrome-hi); margin: 3px 2px; }
.mi { display: grid; grid-template-columns: 18px 1fr auto; width: 100%; text-align: left; padding: 4px 8px 4px 4px; background: none; border: 0; font: 15px var(--f-ui); } .mi:hover:not(.off) { background: var(--menu-hover); color: var(--menu-hover-ink); } .mi.off { opacity: 0.4; cursor: default; } .mi em { font: normal 10px var(--f-title); opacity: 0.7; margin-left: 24px; align-self: center; } .mi i { font-style: normal; text-align: center; }
[data-theme='phosphor'] .mi, [data-theme='amber'] .mi { color: var(--panel-ink); }
.cmdlist { margin-top: 10px; max-height: 50vh; overflow: auto; background: var(--panel); box-shadow: var(--bevel-in); }
.cmd-i { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 10px; align-items: center; width: 100%; padding: 6px 10px; text-align: left; background: none; border: 0; color: var(--panel-ink); font: 15px var(--f-ui); } .cmd-i b { font-weight: 400; } .cmd-i em { font: normal 9px var(--f-title); color: var(--panel-dim); } .cmd-i kbd { font: 10px var(--f-title); background: var(--chrome); color: var(--ink); padding: 1px 5px; min-width: 16px; text-align: center; } .cmd-i kbd:empty { display: none; }
.cmd-i.sel, .cmd-i:hover { background: var(--acc); color: #14142b; } .cmd-i.sel em, .cmd-i:hover em { color: #14142b; }

#toasts { position: fixed; z-index: 1100; right: 22px; top: 60px; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: min(380px, 90vw); padding: 10px 16px; background: #fff; color: #14142b; border: 3px solid #14142b; border-radius: 20px 20px 4px 20px; box-shadow: 5px 5px 0 rgba(20, 20, 43, 0.25); font: 15px var(--f-ui); cursor: pointer; animation: toastin 0.4s steps(6); } .toast.out { opacity: 0; transform: translateX(30px); transition: 0.25s steps(4); }
.toast b { font: 700 20px var(--f-title); color: var(--hot); } .toast.ok b { color: var(--ok); } .toast.info b { color: var(--c4); } .toast.hot { background: #ffe1ea; animation: toastin 0.4s steps(6), shake 0.5s steps(4) 0.4s 2; }

/* ---------- boot screen ---------- */
#boot { position: fixed; inset: 0; z-index: 2000; background: #000; color: #d7ecff; padding: 6vh 7vw; font: 22px / 1.25 var(--f-num); display: flex; flex-direction: column; gap: 16px; } #boot.off { opacity: 0; transition: opacity 0.4s steps(5); }
#boot pre { margin: 0; font: inherit; white-space: pre-wrap; color: #cfe9d8; text-shadow: 0 0 6px rgba(160, 255, 200, 0.45); flex: 1; overflow: hidden; } #boot pre::after { content: '█'; animation: blink 0.8s steps(2) infinite; }
.bootbar { height: 22px; border: 3px solid #d7ecff; padding: 2px; max-width: 520px; } .bootbar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #f7b4d0 0 14px, transparent 14px 18px); }
.bootskip { position: absolute; right: 5vw; bottom: 4vh; font: 12px var(--f-title); color: #6c7a8a; animation: blink 1.2s steps(2) infinite; }
.fatal { position: fixed; inset: 20px; background: #000; color: #f88; padding: 20px; z-index: 5000; overflow: auto; }

/* ---------- CRT scanlines (dark themes) ---------- */
html[data-scan='on'] body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 3000; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, calc(var(--scan) * 0.5)) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, calc(var(--scan) * 0.8)) 120%); }
html[data-scan='on'][data-theme='phosphor'] .appwin.focused, html[data-scan='on'][data-theme='amber'] .appwin.focused { animation: flicker 6s steps(1) infinite; }

/* ---------- animations ---------- */
@keyframes reveal { from { clip-path: inset(0 0 100% 0); opacity: 0.3; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes winopen { 0% { clip-path: inset(48% 0 48% 0); filter: brightness(2); } 60% { clip-path: inset(0 0 0 0); filter: brightness(1.4); } 100% { filter: none; } }
@keyframes dlgin { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes dropin { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes slidedown { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastin { 0% { transform: translateX(120%) scale(0.9); } 70% { transform: translateX(-6px); } 100% { transform: none; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px) rotate(-1deg); } 75% { transform: translateX(4px) rotate(1deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 50% { transform: translateY(-9px); } }
@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; transform: scale(0.6) rotate(20deg); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes tap { 50% { transform: translateY(-5px) translateX(-3px); } }
@keyframes select { 0% { transform: scale(0.85); } 100% { transform: scale(1); } }
@keyframes flash { 50% { box-shadow: 0 0 0 5px var(--acc), 4px 4px 0 var(--shadow); } }
@keyframes tvjitter { 50% { transform: translateX(2px); } }
@keyframes scanroll { to { background-position: 0 40px; } }
@keyframes hue { to { filter: hue-rotate(360deg); } }
@keyframes flicker { 0%, 100% { filter: none; } 92% { filter: brightness(1.12); } 93% { filter: brightness(0.95); } }
html[data-anim='off'] *, html[data-anim='off'] *::before, html[data-anim='off'] *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) { .toolbar .txt span { display: none; } .st-cell .stats span:nth-child(n + 5) { display: none; } }
@media (max-width: 760px) {
  body { overflow: auto; }
  .menubar { padding: 2px; } .menu { padding: 3px 8px; }
  .addr { font-size: 15px; } .tbtn#btn-add, .tbtn#btn-edit, .tbtn#btn-full { display: none; }
  .client { flex-direction: column-reverse; padding: 4px; gap: 4px; }
  .palette { flex-direction: row; width: auto; overflow-x: auto; overflow-y: hidden; padding: 4px; } .tool kbd { display: none; } .tool::after { display: none; }
  .screen { padding: 8px; } .titlebar .ttl-sub { display: none; }
  .llm-card .body { grid-template-columns: 1fr; } .settings { grid-template-columns: 1fr; } .settings .frm { flex-direction: column; align-items: stretch; } .settings .frm > .field, .settings .frm select { max-width: none; }
  .themes { grid-template-columns: 1fr; } #toasts { right: 8px; top: 40px; } .spec .cols, .pci { grid-template-columns: 1fr; } .pci > div { grid-template-columns: 54px 1fr; } .pci span { display: none; }
  .grid.stacked .wbody { overflow: auto; }
}

/* =====================================================================
   LLM control: chat, launcher, models, tasks
   ===================================================================== */
.screen.fill { overflow: hidden; padding: 8px; }
.screen.fill .page { height: 100%; }
.btnrow.tight { margin-top: 0; gap: 6px; }
.wbody.tight { padding: 8px 14px; }
.setwin.full { width: 100%; }
.small { font-size: 12px; }
.warnc { color: var(--warn); }
.errline { color: var(--hot); font: 15px var(--f-ui); padding: 3px 0; }
.warnline { color: var(--warn); font: 15px var(--f-ui); padding: 3px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip, .chip[onclick], button.chip { cursor: pointer; font: 10px var(--f-title); padding: 4px 9px; background: var(--chrome); color: var(--ink); border: 0; box-shadow: var(--bevel-out); }
[data-theme='phosphor'] button.chip, [data-theme='amber'] button.chip { color: var(--panel-ink); }
button.chip.on { background: var(--acc); color: #14142b; box-shadow: var(--bevel-in); }
button.chip:hover { background: var(--acc2); color: #14142b; }
.pad { padding: 12px; }
.pair { display: flex; gap: 8px; align-items: center; } .pair .field { max-width: 150px; } .pair .dim { font-size: 13px; }
input[type='range'] { accent-color: var(--acc); flex: 1; min-width: 70px; }
.mono { font-family: var(--f-num); font-size: 17px; }
.frm.row { flex-direction: row; justify-content: space-between; align-items: center; gap: 14px; } .frm.row .field { max-width: 240px; }
.frm.row > span { flex: 1; }
.menu-list { display: flex; flex-direction: column; gap: 8px; }
.callout .code, .callout pre { margin-top: 6px; }
.face { position: relative; width: 22px; height: 22px; border-radius: 50%; background: #fbeaa5; border: 2px solid #14142b; }
.face::before { content: ''; position: absolute; left: 4px; top: 5px; width: 3px; height: 5px; background: #14142b; box-shadow: 7px 0 0 #14142b; }
.face::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 3px; height: 5px; border: 2px solid #14142b; border-top: 0; border-radius: 0 0 8px 8px; }

/* ---- tasks ---- */
.task { border: 2px solid var(--line); padding: 10px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; animation: reveal 0.35s steps(6) both; }
.task .th { display: flex; gap: 10px; align-items: center; } .task .th b { flex: 1; font: 11px var(--f-title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task .tm { display: flex; gap: 16px; font: 16px var(--f-num); flex-wrap: wrap; } .task .tm .dim { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tlog summary { font: 10px var(--f-title); cursor: pointer; color: var(--panel-dim); } .tlog pre { margin: 6px 0 0; max-height: 220px; overflow: auto; background: #000; color: #8dffc1; font: 15px var(--f-num); padding: 8px; white-space: pre-wrap; word-break: break-all; box-shadow: var(--bevel-in); }
.task.mini { padding: 6px; border-width: 1px; } .task.mini b { font: 10px var(--f-title); }
.seg.indet > i { width: 30% !important; animation: indet 1.1s steps(10) infinite alternate; }
@keyframes indet { from { transform: translateX(0); } to { transform: translateX(233%); } }
.badge { font-style: normal; background: var(--hot); color: #fff; margin-left: 6px; padding: 0 5px; } .badge:empty { display: none; }

/* ---- chat ---- */
.chatpage { height: 100%; background: var(--chrome); border: 2px solid var(--ink-line); box-shadow: var(--bevel-out), 5px 5px 0 var(--shadow); padding: 3px; }
.chat { display: flex; height: 100%; gap: 3px; min-height: 0; position: relative; container-type: inline-size; color: var(--panel-ink); font-family: var(--f-ui); }
.chat-side { width: 250px; flex: none; display: flex; flex-direction: column; gap: 8px; background: var(--panel); box-shadow: var(--bevel-in); padding: 10px; min-height: 0; }
.chat.compact .chat-side { display: none; }
.side-head .btn { width: 100%; }
.conv-list { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.conv { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; padding: 7px 8px; cursor: pointer; border-left: 4px solid transparent; font-size: 15px; }
.conv:hover { background: color-mix(in srgb, var(--acc) 14%, transparent); } .conv.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 24%, transparent); }
.conv .ct { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .conv em { font: normal 9px var(--f-title); color: var(--panel-dim); }
.conv .x { opacity: 0; background: none; border: 0; color: var(--hot); padding: 2px; } .conv:hover .x { opacity: 1; }
.chat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--panel); box-shadow: var(--bevel-in); position: relative; }
.chat-head { flex: none; display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.chat-head .who { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 150px; } .chat-head .who .field { max-width: 380px; padding: 4px 8px; }
.conv-pick { max-width: 170px; padding: 4px 8px; } .chat:not(.compact) .conv-pick, .chat .side-toggle { display: none; }
.chat.compact .conv-pick { display: block; }
.ctxmeter { display: flex; flex-direction: column; gap: 2px; min-width: 130px; font: 15px var(--f-num); color: var(--panel-dim); } .ctxmeter .seg { height: 8px; padding: 1px; }
.chat-scroll { flex: 1; overflow: auto; position: relative; scroll-behavior: auto; }
.msgs { display: flex; flex-direction: column; gap: 18px; padding: 18px 16px 8px; max-width: 920px; margin: 0 auto; width: 100%; }
.msg { display: flex; gap: 10px; align-items: flex-start; animation: msgin 0.25s steps(5) both; } .msg.user { flex-direction: row-reverse; }
@keyframes msgin { from { opacity: 0; transform: translateY(8px); } }
.avatar { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: var(--chrome); border: 2px solid var(--ink-line); box-shadow: var(--bevel-out); color: var(--ink); } [data-theme='phosphor'] .avatar, [data-theme='amber'] .avatar { color: var(--panel-ink); }
.msg.assistant .avatar { background: var(--acc); color: #14142b; }
.mbody { min-width: 0; max-width: min(100%, 760px); display: flex; flex-direction: column; gap: 4px; } .msg.user .mbody { align-items: flex-end; }
.bubble { padding: 10px 14px; border: 2px solid var(--ink-line); font: 17px / 1.45 var(--f-ui); overflow-wrap: anywhere; box-shadow: 3px 3px 0 var(--shadow); max-width: 100%; }
.msg.user .bubble { background: var(--acc2); color: #14142b; border-radius: 18px 18px 2px 18px; }
.msg.assistant .bubble { background: var(--seg-bg); color: var(--panel-ink); border-radius: 18px 18px 18px 2px; width: 100%; }
[data-theme='mint'] .msg.assistant .bubble { background: #f4f1ff; }
.md.plain { white-space: pre-wrap; }
.md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; }
.md p { margin: 0.5em 0; } .md h2, .md h3, .md h4 { font: 700 13px var(--f-title); margin: 1em 0 0.4em; color: var(--acc); } .md ul, .md ol { margin: 0.4em 0; padding-left: 1.4em; } .md li { margin: 0.15em 0; }
.md code { background: rgba(128, 128, 160, 0.22); padding: 0 4px; } .md a { color: var(--c2); } .md blockquote { margin: 0.5em 0; padding: 0 0 0 10px; border-left: 4px solid var(--acc); color: var(--panel-dim); } .md hr { border: 0; border-top: 2px dashed var(--line); }
.md .tbl { overflow: auto; } .md table { border-collapse: collapse; } .md th, .md td { border: 1px solid var(--line); padding: 3px 8px; } .md th { background: color-mix(in srgb, var(--acc) 22%, transparent); font-size: 14px; }
.code-block { margin: 0.7em 0; border: 2px solid var(--ink-line); background: #0b0b12; color: #d9f3e4; } .code-block .cb-head { display: flex; justify-content: space-between; align-items: center; background: #1d1d2b; padding: 3px 8px; font: 10px var(--f-title); color: #9aa; text-transform: uppercase; }
.code-block pre { margin: 0; padding: 8px 12px; overflow: auto; font: 17px / 1.25 var(--f-num); white-space: pre; } .code-block code { background: none; padding: 0; }
.cursor { color: var(--acc); animation: blink 0.7s steps(2) infinite; }
.think { margin-bottom: 8px; border-left: 4px solid var(--c4); padding-left: 10px; color: var(--panel-dim); } .think summary { font: 10px var(--f-title); cursor: pointer; letter-spacing: 1px; } .think-body { white-space: pre-wrap; font-size: 15px; max-height: 260px; overflow: auto; margin-top: 6px; }
.stats { display: flex; gap: 14px; flex-wrap: wrap; font: 16px var(--f-num); color: var(--panel-dim); margin-top: 6px; } .stats b { color: var(--acc); font-weight: 400; }
.imgs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; } .imgs img { max-width: 220px; max-height: 180px; border: 2px solid var(--ink-line); }
.mact { display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s steps(3); } .msg:hover .mact, .msg:focus-within .mact { opacity: 1; }
.mact button { font: 9px var(--f-title); padding: 3px 7px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); } .mact button:hover { background: var(--acc2); }
.editrow { display: flex; flex-direction: column; gap: 6px; min-width: min(560px, 80vw); } .editrow .btn { align-self: flex-start; }
.jump { position: absolute; right: 22px; bottom: 120px; z-index: 5; }
.chat-input { flex: none; padding: 8px 12px 10px; border-top: 2px solid var(--line); } .chat-input .inrow { display: flex; gap: 8px; align-items: flex-end; max-width: 920px; margin: 0 auto; }
.chat-input textarea { flex: 1; resize: none; min-height: 44px; max-height: 220px; padding: 10px 12px; font: 17px / 1.35 var(--f-ui); background: var(--panel); color: var(--panel-ink); border: 0; box-shadow: var(--bevel-in); outline: none; } .chat-input textarea:focus { box-shadow: var(--bevel-in), 0 0 0 2px var(--acc); }
.chat-input .btn { height: 44px; } .send { min-width: 86px; }
.hintline { max-width: 920px; margin: 4px auto 0; font: 9px var(--f-title); color: var(--panel-dim); letter-spacing: 0.5px; }
.atts { display: flex; gap: 8px; flex-wrap: wrap; max-width: 920px; margin: 0 auto 6px; } .atts:empty { display: none; }
.att { display: flex; gap: 6px; align-items: center; padding: 3px 6px; background: var(--chrome); box-shadow: var(--bevel-out); font-size: 13px; color: var(--ink); } .att img { width: 28px; height: 28px; object-fit: cover; } .att .ft { font: 9px var(--f-title); background: var(--acc); color: #14142b; padding: 3px; } .att button { border: 0; background: none; color: var(--hot); font-size: 16px; }
.empty-chat { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; } .empty-chat > * { pointer-events: auto; }
.welcome { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px; max-width: 640px; } .welcome h3 { margin: 0; font: 700 16px var(--f-title); letter-spacing: 2px; } .welcome p { margin: 0; color: var(--panel-dim); }
.welcome.big { margin: 40px auto; } .welcome .btnrow { justify-content: center; }
.bubble-art { background: #fff; color: #14142b; font: 700 24px var(--f-title); padding: 12px 22px; border: 3px solid #14142b; border-radius: 26px 26px 26px 3px; box-shadow: 5px 5px 0 var(--shadow); animation: bob 3s steps(2) infinite; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; } .suggest .chip { font: 14px var(--f-ui); text-transform: none; padding: 7px 12px; max-width: 280px; text-align: left; }
.chat.busy .send { animation: none; }
.chat.compact .msgs { padding: 10px 8px; gap: 12px; } .chat.compact .bubble { font-size: 15px; } .chat.compact .avatar { width: 26px; height: 26px; } .chat.compact .chat-head { padding: 6px; } .chat.compact .ctxmeter { display: none; } .chat.compact .hintline { display: none; }
.wwin[data-type='chat'] .wbody { padding: 0; }
@container (max-width: 720px) {
  .chat:not(.compact) .chat-side { position: absolute; z-index: 20; left: 0; top: 0; bottom: 0; transform: translateX(-105%); transition: transform 0.2s steps(5); box-shadow: var(--bevel-in), 6px 0 0 var(--shadow); }
  .chat.side-open .chat-side { transform: none; } .chat:not(.compact) .side-toggle { display: inline-block; }
  .ctxmeter { display: none; } .msg .mact { opacity: 1; }
}

/* ---- launcher ---- */
.launchpage { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.lp-left { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; }
.editor { display: flex; flex-direction: column; gap: 16px; min-width: 0; } .forms { display: flex; flex-direction: column; gap: 12px; }
.plist2 { display: flex; flex-direction: column; gap: 4px; } .plist2 h4 { margin: 10px 0 2px; font: 10px var(--f-title); color: var(--acc); }
.prow { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border: 2px solid transparent; cursor: pointer; } .prow:hover { background: color-mix(in srgb, var(--acc) 14%, transparent); } .prow.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 22%, transparent); }
.prow .pn { flex: 1; min-width: 0; display: flex; flex-direction: column; } .prow .pn b { font: 15px var(--f-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .prow .pn span { font: 14px var(--f-num); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 8px; align-items: center; padding: 6px 0; border-bottom: 1px dotted var(--line); } .dev .dn { grid-column: 1 / -1; font-size: 13px; color: var(--panel-dim); order: 5; } .dev .seg { grid-column: 1 / -1; height: 8px; padding: 1px; } .dev > .dim { grid-column: 1 / -1; font: 15px var(--f-num); }
.ehead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .namefield { flex: 1; min-width: 200px; font: 700 20px var(--f-ui); }
.eopts { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; } .auto { display: flex; gap: 6px; align-items: center; cursor: pointer; } .auto input { accent-color: var(--acc); }
.msgs2:empty { display: none; }
.cmdwrap .lbl, .estimate .lbl { font: 10px var(--f-title); color: var(--acc); } .cmdline { max-height: 150px; overflow: auto; white-space: pre-wrap; word-break: break-all; margin: 4px 0; }
.estimate { display: flex; flex-direction: column; gap: 4px; } .erow { display: grid; grid-template-columns: minmax(130px, 230px) 1fr minmax(150px, auto); gap: 10px; align-items: center; font-size: 14px; } .erow .seg { height: 12px; padding: 2px; } .erow b { font: 400 17px var(--f-num); text-align: right; } .erow b.warn { color: var(--warn); } .erow b.hot { color: var(--hot); }
.sect summary { cursor: pointer; display: flex; gap: 14px; align-items: baseline; padding: 4px 0; list-style: none; } .sect summary::-webkit-details-marker { display: none; } .sect summary::before { content: '▸'; color: var(--acc); width: 12px; transition: transform 0.15s steps(3); } .sect[open] > summary::before { transform: rotate(90deg); }
.sect summary b { font: 700 12px var(--f-title); letter-spacing: 1px; } .sect summary .dim { font-size: 13px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px 22px; margin: 10px 0 6px; } .fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .fld.wide { grid-column: 1 / -1; } .fld.unsupported { opacity: 0.45; }
.fl { display: flex; gap: 8px; align-items: center; font: 10px var(--f-title); letter-spacing: 0.5px; } .fl code { margin-left: auto; font: 15px var(--f-num); color: var(--panel-dim); background: none; } .fl .x { background: none; border: 0; color: var(--hot); font-size: 15px; padding: 0 4px; }
.fh { font-size: 12px; color: var(--panel-dim); line-height: 1.25; }
.swrow { display: flex; gap: 10px; align-items: center; }
.seg-btns { display: inline-flex; margin-bottom: 6px; } .seg-btns button:not(:first-child) { margin-left: 2px; }
.devctl { display: flex; flex-direction: column; gap: 6px; }
.drow2 { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border: 2px solid var(--line); cursor: pointer; } .drow2.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); } .drow2 input { accent-color: var(--acc); } .drow2 .dn { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.splits { display: flex; flex-direction: column; gap: 6px; } .srow3 { display: grid; grid-template-columns: 80px 1fr 50px; gap: 10px; align-items: center; } .srow3 b { font: 400 18px var(--f-num); text-align: right; }
.logbox { height: 280px; overflow: auto; white-space: pre-wrap; font-size: 15px; margin: 0; }
.btnrow.wrap { flex-wrap: wrap; }

/* ---- models ---- */
.modelspage { display: block; } .hfstat { font: 10px var(--f-title); opacity: 0.8; margin-left: auto; }
.tabs.big { margin-bottom: 14px; } .tabs.big .tab { padding: 8px 18px; font-size: 11px; }
.toolrow.wrap { flex-wrap: wrap; justify-content: flex-start; margin-bottom: 12px; } .toolrow.wrap .field { max-width: 260px; }
.mlist { display: flex; flex-direction: column; }
.mrow2 { display: grid; grid-template-columns: minmax(0, 1fr) 190px 150px auto; gap: 16px; align-items: center; padding: 10px 6px; border-bottom: 1px dotted var(--line); animation: reveal 0.3s steps(5) both; } .mrow2:hover { background: color-mix(in srgb, var(--acc) 10%, transparent); }
.mn { min-width: 0; display: flex; flex-direction: column; gap: 3px; } .mn em { font: normal 9px var(--f-title); color: var(--panel-dim); } .mn b { font: 17px var(--f-ui); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; } .ms { display: flex; flex-direction: column; } .ms b { font: 400 22px var(--f-num); } .ms span { font-size: 13px; }
.ma { display: flex; gap: 6px; }
.fit { font: 9px var(--f-title); padding: 3px 7px; border: 2px solid currentColor; white-space: nowrap; } .fit.ok { color: var(--ok); } .fit.warn { color: var(--warn); } .fit.hot { color: var(--hot); }
.searchrow { display: flex; gap: 8px; margin-bottom: 8px; } .searchrow .field.big { flex: 1; } .searchrow .field.sm { width: 130px; }
.split2 { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); gap: 16px; margin-top: 12px; align-items: start; }
.results { display: flex; flex-direction: column; gap: 6px; max-height: 62vh; overflow: auto; }
.repo { text-align: left; padding: 9px 10px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); display: flex; flex-direction: column; gap: 3px; } [data-theme='phosphor'] .repo, [data-theme='amber'] .repo { color: var(--panel-ink); } .repo:hover { background: var(--acc2); color: #14142b; } .repo .dim { font-size: 13px; color: inherit; opacity: 0.7; } .repo b { font: 15px var(--f-ui); font-weight: 400; overflow-wrap: anywhere; }
.repo-detail { min-width: 0; } .rd-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; } .rd-head b { font: 700 16px var(--f-ui); }
.grps { display: flex; flex-direction: column; margin: 8px 0; } .grp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto auto; gap: 10px; align-items: center; padding: 6px 8px; border-bottom: 1px dotted var(--line); cursor: pointer; } .grp.on { background: color-mix(in srgb, var(--acc) 20%, transparent); } .grp .gn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; } .grp b { font: 400 18px var(--f-num); } .grp input { accent-color: var(--acc); }
.dlbar { position: sticky; bottom: 0; display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 10px; background: var(--panel); border-top: 2px solid var(--acc); }
.repo-detail h4, .tabbody h4 { margin: 14px 0 6px; font: 10px var(--f-title); color: var(--acc); border-bottom: 2px solid var(--line); padding-bottom: 3px; }
.chks { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; } .chk { font: 14px var(--f-ui); } .chk.ok { color: var(--ok); } .chk.no { color: var(--hot); }
.checks { display: flex; gap: 18px; flex-wrap: wrap; } .checks label { display: flex; gap: 6px; align-items: center; cursor: pointer; } .checks input { accent-color: var(--acc); }
.tok { font-family: var(--f-num); letter-spacing: 1px; word-break: break-all; }
.ctlw { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 1000px) { .launchpage { grid-template-columns: 1fr; } .lp-left { position: static; } .mrow2 { grid-template-columns: 1fr auto; } .mrow2 .ms, .mrow2 .mf { display: none; } .split2 { grid-template-columns: 1fr; } .erow { grid-template-columns: 1fr; } .grp { grid-template-columns: auto 1fr auto; } .grp .chip, .grp .fit { display: none; } }


/* =====================================================================
   Desktop: taskbar, start menu, icons, window layouts
   ===================================================================== */
#taskbar { position: fixed; z-index: 200; left: 0; right: 0; bottom: 0; height: 42px; display: flex; align-items: center; gap: 8px; padding: 5px 8px; background: var(--chrome); border-top: 2px solid var(--ink-line); box-shadow: inset 0 2px 0 var(--chrome-hi), 0 -3px 0 var(--shadow); }
.start { height: 32px; display: flex; align-items: center; gap: 9px; padding: 0 14px 0 10px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); font: 700 12px var(--f-title); color: var(--ink); letter-spacing: 1px; }
[data-theme='phosphor'] .start, [data-theme='amber'] .start { color: var(--panel-ink); }
.start:active { box-shadow: var(--bevel-in); }
.slogo { display: grid; place-items: center; } .start:hover .slogo { animation: logo-pop 0.5s steps(5); } @keyframes logo-pop { 40% { transform: translateY(-3px) scale(1.12); } }
.mklogo { display: block; overflow: visible; }
.tasks { flex: 1; display: flex; gap: 6px; min-width: 0; }
.tbtask { height: 32px; min-width: 140px; max-width: 230px; flex: 0 1 200px; display: flex; align-items: center; gap: 9px; padding: 0 12px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); font: 11px var(--f-title); color: var(--ink); letter-spacing: 0.5px; overflow: hidden; white-space: nowrap; }
[data-theme='phosphor'] .tbtask, [data-theme='amber'] .tbtask { color: var(--panel-ink); }
.tbtask .tg { display: grid; flex: none; } .tbtask:not(.vis) { opacity: 0.7; } .tbtask.vis { background: var(--chrome-hi2); } .tbtask.on { box-shadow: var(--bevel-in); background: var(--acc2); color: #14142b; font-weight: 700; }
.tbtask:hover { background: var(--acc2); color: #14142b; } .tbtask:active { box-shadow: var(--bevel-in); }
.tray { display: flex; align-items: center; gap: 12px; height: 32px; padding: 0 10px; box-shadow: var(--bevel-in); flex: none; }
.tray .swatches { display: flex; gap: 2px; } .tray .clock { font: 19px var(--f-num); min-width: 78px; text-align: right; }
.layouts { display: flex; gap: 3px; } .lay { width: 32px; height: 22px; padding: 3px; display: flex; gap: 2px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); }
[data-theme='phosphor'] .lay, [data-theme='amber'] .lay { color: var(--panel-ink); }
.lay i { display: block; background: currentColor; opacity: 0.6; } .lay.one i { width: 68%; } .lay.one.r { justify-content: flex-end; } .lay.two i { flex: 1; }
.lay:hover { background: var(--acc2); } .lay.on { box-shadow: var(--bevel-in); background: var(--acc); } .lay.on i { opacity: 1; color: #14142b; }
/* (desktop icons no longer bob: an animation overrides the transform used while dragging) */
#icons { position: fixed; z-index: 5; left: 16px; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.dicon { width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 4px; font: 10px var(--f-title); color: var(--ink); text-align: center; letter-spacing: 0.5px; cursor: default; }
[data-theme='phosphor'] .dicon, [data-theme='amber'] .dicon { color: var(--panel-ink); }
.dicon .dg { width: 54px; height: 54px; display: grid; place-items: center; background: var(--chrome); border: 2px solid var(--ink-line); box-shadow: var(--bevel-out), 3px 3px 0 var(--shadow); color: var(--ink); }
[data-theme='phosphor'] .dicon .dg, [data-theme='amber'] .dicon .dg { color: var(--panel-ink); }
.dicon .dl { padding: 2px 5px; line-height: 1.3; } .dicon.sel .dl, .dicon:focus-visible .dl { background: var(--menu-hover); color: var(--menu-hover-ink); }
.deco.floppy, .deco.bubble, .deco.tag { z-index: 4; }
.appwin .wlab { color: var(--acc); }
@media (max-width: 760px) {
  #icons { display: none; } .tbtask { min-width: 0; flex: 1; } .tray .swatches, .layouts, .tray .clock { display: none; } .start b { display: none; }
  .appwin { border-width: 0; box-shadow: none; }
}


/* ---- start menu (logo strip) ---- */
.menu-pop.startmenu { display: flex; padding: 3px; min-width: 300px; animation: menuup 0.18s steps(5); transform-origin: bottom left; }
@keyframes menuup { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
.sm-strip { width: 46px; flex: none; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 12px; padding: 8px 0 10px; background: var(--title-grad-v); box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25); }
.sm-logo .mklogo { filter: none; }
.sm-strip b { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 15px var(--f-title); letter-spacing: 4px; color: var(--title-ink); white-space: nowrap; text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.35); }
[data-theme='phosphor'] .sm-strip b, [data-theme='amber'] .sm-strip b { text-shadow: 0 0 6px currentColor; }
.sm-items { flex: 1; min-width: 0; padding-left: 2px; }
.mi.big { grid-template-columns: 28px 1fr auto; align-items: center; padding: 6px 12px 6px 6px; font-size: 16px; } .mi.big i { display: grid; place-items: center; }
.mi.big em { color: inherit; opacity: 0.7; }
.about-logo { display: grid; place-items: center; margin: 4px 0 12px; animation: bob 3s steps(2) infinite; }
.bootlogo { display: flex; align-items: center; gap: 22px; margin-bottom: 4px; } .bootlogo span { font: 700 26px var(--f-title); letter-spacing: 8px; color: #d7ecff; text-shadow: 0 0 8px rgba(160, 255, 200, 0.5); }
#boot .mklogo { --ink-line: #e6f3ff; --logo-shadow: rgba(140, 255, 200, 0.28); filter: drop-shadow(0 0 8px rgba(160, 255, 220, 0.35)); }


/* =====================================================================
   Monitor: deeper insight
   ===================================================================== */
.chead { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex: none; flex-wrap: wrap; } .chead .legend { flex: 1; min-width: 0; }
.legend small { display: block; font: 15px var(--f-num); color: var(--panel-dim); margin-left: 16px; }
.rtabs { display: flex; gap: 2px; flex: none; } .rt { padding: 2px 7px; font: 9px var(--f-title); background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); }
[data-theme='phosphor'] .rt, [data-theme='amber'] .rt { color: var(--panel-ink); } .rt.on { box-shadow: var(--bevel-in); background: var(--acc); color: #14142b; } .rt:hover:not(.on) { background: var(--acc2); color: #14142b; }
.pact { width: 24px; height: 20px; padding: 0; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); font: 700 14px var(--f-ui); line-height: 1; } [data-theme='phosphor'] .pact, [data-theme='amber'] .pact { color: var(--panel-ink); } .pact:hover { background: var(--acc2); color: #14142b; }
.pr .on { color: var(--acc); }
.pr.tk, .ph.tk { grid-template-columns: minmax(120px, 2fr) 60px minmax(80px, 1fr) minmax(80px, 1fr) minmax(90px, 1fr); }
.pr.lan, .ph.lan { grid-template-columns: 120px minmax(120px, 1.4fr) 150px minmax(120px, 1.2fr); } .edit { cursor: text; border-bottom: 1px dashed var(--line); } .edit.on { color: var(--acc); }
.pr.jr, .ph.jr { grid-template-columns: minmax(120px, 1fr) 60px 60px 150px minmax(200px, 3fr); } .msgcell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--panel-dim); }
.pr.ct, .ph.ct { grid-template-columns: minmax(100px, 1fr) minmax(100px, 1.2fr) 100px 70px 90px minmax(100px, 1fr) 150px; } .cact { display: flex; gap: 4px; }

.powerw, .effw, .thw, .pciew, .gpw, .smw, .latw, .spw, .lanw, .tkw, .evw, .gcw { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.mixbar { display: flex; height: 14px; box-shadow: var(--bevel-in); background: var(--seg-bg); padding: 2px; gap: 1px; } .mixbar i { display: block; height: 100%; transition: width 0.6s steps(8); } .mixbar .a, .mixleg .a { background: var(--c1); } .mixbar .g, .mixleg .g { background: var(--c2); } .mixbar .b, .mixleg .b { background: var(--c3); }
.mixleg { display: flex; gap: 14px; flex-wrap: wrap; font: 14px var(--f-ui); margin-top: 4px; } .mixleg i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; } .mixleg b { font: 400 18px var(--f-num); margin-left: 3px; }
.trow, .prow3 { display: grid; grid-template-columns: minmax(70px, 1fr) auto minmax(120px, 2fr) auto; gap: 10px; align-items: center; padding: 5px 4px; border-bottom: 1px dotted var(--line); }
.trow .tn, .prow3 .gi { display: flex; flex-direction: column; min-width: 0; } .trow .tn b, .prow3 .gi b { font: 20px var(--f-num); color: var(--acc); } .trow .td { display: flex; flex-direction: column; font: 15px var(--f-ui); min-width: 0; } .trow .td span:first-child { font: 20px var(--f-num); } .trow .td [data-lvl='warn'] { color: var(--warn); } .trow .td [data-lvl='hot'] { color: var(--hot); } .tp { font: 16px var(--f-num); color: var(--panel-dim); text-align: right; }
.prow3 { grid-template-columns: minmax(70px, 1fr) 100px minmax(60px, 1fr) auto auto; } .prow3 .lk { display: flex; flex-direction: column; } .prow3 .lk b { font: 22px var(--f-num); font-weight: 400; } .prow3 .seg { height: 10px; padding: 1px; }
.eps2 { display: flex; flex-direction: column; gap: 2px; font: 14px var(--f-ui); overflow: auto; max-height: 150px; } .eps2 div { border-bottom: 1px dotted var(--line); padding: 2px 0; } .eps2 time { font: 15px var(--f-num); color: var(--panel-dim); margin-right: 8px; }
.gpw canvas, .smw canvas, .latw canvas, .pciew canvas { min-height: 90px; }
.gcard, .dcard, .chcard { border: 2px solid var(--line); padding: 10px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; animation: reveal 0.35s steps(6) both; }
.gh { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .gh b { font: 700 12px var(--f-title); } .gsec { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; border-top: 1px dotted var(--line); }
.curve { display: flex; flex-direction: column; gap: 4px; } .cp { display: flex; gap: 6px; align-items: center; } .cp .field { width: 74px; } .fanbody { display: flex; flex-direction: column; gap: 6px; }
.life { display: grid; grid-template-columns: 90px 1fr 60px auto; gap: 10px; align-items: center; font: 10px var(--f-title); color: var(--panel-dim); } .life b { font: 400 20px var(--f-num); color: var(--panel-ink); } .life .dim { font: 14px var(--f-ui); }
.lat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .lt { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; box-shadow: var(--bevel-in); } .lt b { font: 400 30px var(--f-num); } .lt .chip { align-self: flex-start; }
.spw .row { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-end; } .spw .bignum b { font-size: clamp(30px, 14cqmin, 70px); }

.split3 { display: grid; grid-template-columns: minmax(280px, 2fr) minmax(300px, 3fr); gap: 16px; align-items: start; }
.svclist { display: flex; flex-direction: column; max-height: 66vh; overflow: auto; box-shadow: var(--bevel-in); background: var(--panel); }
.svc { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 5px 8px; cursor: pointer; border-bottom: 1px dotted var(--line); } .svc:hover { background: color-mix(in srgb, var(--acc) 14%, transparent); } .svc.on { background: color-mix(in srgb, var(--acc) 26%, transparent); }
.svc .sn { display: flex; flex-direction: column; min-width: 0; } .svc .sn b { font: 15px var(--f-ui); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .svc .sn span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svcdetail { display: flex; flex-direction: column; gap: 10px; min-width: 0; } .svcdetail .big { font: 700 15px var(--f-title); overflow-wrap: anywhere; } .logbox.sm { height: 300px; font-size: 14px; }
.activebox:empty { display: none; } .callout.hot { background: color-mix(in srgb, var(--hot) 22%, transparent); border-color: var(--hot); margin-bottom: 10px; }
.rules { display: flex; flex-direction: column; gap: 10px; } .rule { border: 2px solid var(--line); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; } .rule.off { opacity: 0.55; }
.rl1, .rl2 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .rl1 .field:not(.sm) { flex: 1; min-width: 140px; } .rlabel { font: 15px var(--f-ui); font-weight: 400; flex: 1; min-width: 200px; }
.chforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; align-items: start; } .chcard .fgrid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin: 4px 0; }
@media (max-width: 1000px) { .split3 { grid-template-columns: 1fr; } .chforms { grid-template-columns: 1fr; } .pr.ct, .ph.ct { grid-template-columns: 1fr 90px 120px; } .pr.ct > :nth-child(2), .pr.ct > :nth-child(4), .pr.ct > :nth-child(5), .pr.ct > :nth-child(6), .ph.ct > :nth-child(2), .ph.ct > :nth-child(4), .ph.ct > :nth-child(5), .ph.ct > :nth-child(6) { display: none; } .pr.jr, .ph.jr { grid-template-columns: 1fr 50px; } .pr.jr > :nth-child(n+3), .ph.jr > :nth-child(n+3) { display: none; } .lat3 { grid-template-columns: 1fr; } }

@container (max-width: 560px) { .trow { grid-template-columns: 1fr auto; } .trow .td { grid-column: 1 / -1; } .trow .tp { display: none; } .prow3 { grid-template-columns: 1fr auto; } .prow3 .seg, .prow3 > .dim { grid-column: 1 / -1; } }


/* =====================================================================
   Tool windows, Terminal, Files
   ===================================================================== */
.appwin.toolwin .palette, .appwin.toolwin [data-k='back'], .appwin.toolwin [data-k='fwd'], .appwin.toolwin [data-k='add'], .appwin.toolwin [data-k='edit'] { display: none; }
.appwin.toolwin .screen { padding: 6px; }
.appwin.toolwin .addr { font-size: 15px; }

/* ---- terminal ---- */
.termpage { display: flex; flex-direction: column; height: 100%; gap: 6px; min-height: 0; }
.termbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.termtabs { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; align-items: stretch; padding-bottom: 2px; }
.ttab { display: flex; gap: 8px; align-items: center; padding: 4px 6px 4px 10px; background: var(--chrome); box-shadow: var(--bevel-out); cursor: pointer; font: 14px var(--f-ui); white-space: nowrap; color: var(--ink); }
[data-theme='phosphor'] .ttab, [data-theme='amber'] .ttab { color: var(--panel-ink); }
.ttab.on { box-shadow: var(--bevel-in); background: var(--acc2); color: #14142b; } .ttab.dead span { opacity: 0.6; text-decoration: line-through; }
.ttab .x { background: none; border: 0; color: inherit; padding: 2px; opacity: 0.6; } .ttab .x:hover { opacity: 1; color: var(--hot); }
.termtools { display: flex; gap: 4px; flex-wrap: wrap; }
.termstage { flex: 1; min-height: 0; position: relative; background: #000; box-shadow: var(--bevel-in); padding: 6px; overflow: hidden; }
.termview { position: absolute; inset: 6px; display: none; } .termview.on { display: block; }
.termview .xterm { height: 100%; } .termview .xterm-viewport { overflow-y: auto; }
.keybar { display: none; gap: 4px; flex-wrap: wrap; } .keybar.on { display: flex; } .keybar .btn { min-width: 44px; padding: 8px 8px; } .keybar .btn.on { background: var(--acc); color: #14142b; box-shadow: var(--bevel-in); }

/* ---- file manager ---- */
.fm { display: flex; flex-direction: column; height: 100%; gap: 6px; outline: none; min-height: 0; container-type: inline-size; color: var(--panel-ink); }
.fm-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; flex: none; } .fm-tools .auto { font-size: 13px; margin-left: 4px; }
.sepv { width: 2px; align-self: stretch; background: var(--line); margin: 0 2px; }
.fm-main { flex: 1; display: flex; gap: 6px; min-height: 0; }
.fm-places { width: 172px; flex: none; overflow: auto; background: var(--panel); box-shadow: var(--bevel-in); display: flex; flex-direction: column; padding: 4px; }
.place { display: flex; gap: 8px; align-items: center; padding: 5px 8px; background: none; border: 0; text-align: left; font: 14px var(--f-ui); color: var(--panel-ink); overflow: hidden; } .place span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .place span:first-child { color: var(--acc); flex: none; }
.place:hover { background: color-mix(in srgb, var(--acc) 16%, transparent); } .place.on { background: color-mix(in srgb, var(--acc) 30%, transparent); } .place.trash { margin-top: auto; border-top: 1px dotted var(--line); }
.fm-panes { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 0; min-height: 0; }
.fm-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--panel); box-shadow: var(--bevel-in); outline: 2px solid transparent; outline-offset: -2px; } .fm-pane.active { outline-color: var(--acc); } .fm-pane.dropzone { outline: 3px dashed var(--acc); background: color-mix(in srgb, var(--acc) 8%, var(--panel)); }
.fm-pathbar { display: flex; gap: 4px; align-items: center; padding: 4px; border-bottom: 1px solid var(--line); flex: none; } .fm-pathbar .btn { padding: 3px 7px; }
.fm-crumbs { flex: 1; display: flex; overflow-x: auto; white-space: nowrap; align-items: center; scrollbar-width: none; min-width: 0; } .fm-crumbs::-webkit-scrollbar { display: none; }
.cr { background: none; border: 0; padding: 2px 4px; font: 15px var(--f-ui); color: var(--panel-ink); } .cr:hover { background: color-mix(in srgb, var(--acc) 25%, transparent); } .fm-crumbs .sep { color: var(--panel-dim); }
.fm-filter { width: 84px; padding: 2px 6px !important; font-size: 13px !important; } .pl { display: none; }
.fm-head, .fr { display: grid; grid-template-columns: 22px minmax(0, 1fr) 82px 88px 86px; gap: 6px; align-items: center; padding: 2px 8px; }
.fm-head { flex: none; font: 9px var(--f-title); color: var(--panel-dim); border-bottom: 2px solid var(--line); padding-top: 4px; padding-bottom: 4px; } .hs { cursor: pointer; white-space: nowrap; } .hs:hover { color: var(--acc); } .hs.n { grid-column: 2; } .hs.s { text-align: right; }
.fm-list { flex: 1; overflow: auto; min-height: 0; }
.fr { font: 15px var(--f-ui); cursor: default; user-select: none; border-bottom: 1px solid transparent; } .fr:hover { background: color-mix(in srgb, var(--acc) 12%, transparent); } .fr.sel { background: color-mix(in srgb, var(--acc) 30%, transparent); } .fr.cur { outline: 1px dotted var(--panel-ink); outline-offset: -2px; } .fr.drop { background: color-mix(in srgb, var(--c2) 40%, transparent); } .fr.hid { opacity: 0.65; } .fr.broken .fn { color: var(--hot); }
.fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fn em { color: var(--panel-dim); font-style: normal; font-size: 13px; } .fs { text-align: right; font: 17px var(--f-num); } .fd, .fp { font: 16px var(--f-num); color: var(--panel-dim); }
.fi { display: grid; place-items: center; color: var(--panel-dim); } .fi.k-dir { color: var(--c3); } .fi.k-gguf { color: var(--c1); } .fi.k-img { color: var(--c2); } .fi.k-code { color: var(--c6); } .fi.k-arc { color: var(--c5); } .fi.k-vid, .fi.k-aud { color: var(--c4); }
.fm-foot { display: flex; gap: 14px; font: 14px var(--f-ui); padding: 3px 8px; border-top: 1px solid var(--line); flex: none; align-items: center; } .fm-foot .on { color: var(--acc); }
.fm-jobs { display: flex; flex-direction: column; gap: 3px; flex: none; max-height: 130px; overflow: auto; } .fm-jobs[hidden] { display: none; }
.fjob { display: grid; grid-template-columns: minmax(140px, 1.2fr) 80px 2fr 70px; gap: 10px; align-items: center; font: 14px var(--f-ui); } .fjob b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fjob .seg { height: 10px; padding: 1px; } .fjob.done { opacity: 0.6; }
.fm-fkeys { display: flex; gap: 4px; flex: none; } .fk { flex: 1; display: flex; gap: 6px; justify-content: center; align-items: center; padding: 4px 2px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); font: 9px var(--f-title); color: var(--ink); white-space: nowrap; } [data-theme='phosphor'] .fk, [data-theme='amber'] .fk { color: var(--panel-ink); }
.fk b { background: var(--ink-line); color: #fff; padding: 1px 4px; font: 700 9px var(--f-title); } .fk:hover { background: var(--acc2); color: #14142b; }
.fm-tools .multi.on { background: var(--acc); color: #14142b; box-shadow: var(--bevel-in); }
.fm:not(.narrow) .swap, .fm:not(.narrow) .multi { display: none; }
.fm.narrow .fm-places { display: none; } .fm.narrow .fm-panes { grid-template-columns: 1fr; } .fm.narrow .fm-pane:not(.active) { display: none; } .fm.narrow .pl { display: inline-block; }
.fm.narrow .fm-head, .fm.narrow .fr { grid-template-columns: 22px minmax(0, 1fr) 70px; } .fm.narrow .fd, .fm.narrow .fp, .fm.narrow .hs.d, .fm.narrow .hs.p { display: none; } .fm.narrow .fm-fkeys .fk { font-size: 8px; } .fm.narrow .fm-fkeys b { display: none; }
.fm.narrow .fr { padding: 7px 8px; }
@container (max-width: 1050px) { .fm .fd { display: none; } .fm .hs.d { display: none; } .fm-head, .fr { grid-template-columns: 22px minmax(0, 1fr) 82px 86px; } }
.viewimg { max-width: 100%; max-height: 68vh; display: block; margin: 0 auto; } .viewpdf { width: 100%; height: 68vh; border: 0; background: #fff; } .viewtext { max-height: 62vh; overflow: auto; white-space: pre; margin: 0; font-size: 16px; }
.trashbox { max-height: 55vh; overflow: auto; } .trow2 { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(100px, 1.4fr) 70px 70px auto; gap: 10px; align-items: center; padding: 4px 0; border-bottom: 1px dotted var(--line); font: 14px var(--f-ui); } .trow2 b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ======================================================================================================
   Productivity apps, accessories, sign-in, security
   ====================================================================================================== */
.toolwin .row { display: flex; gap: 8px; align-items: center; } .toolwin .row.wrap { flex-wrap: wrap; } .toolwin .row.center { justify-content: center; }
.toolwin .grow { flex: 1; } .toolwin .center { text-align: center; }
.toolwin .chk { display: inline-flex; align-items: center; gap: 6px; font: 14px var(--f-ui); cursor: pointer; } .toolwin .chk input { accent-color: var(--acc); }
.toolwin .tbl { width: 100%; border-collapse: collapse; font: 14px var(--f-ui); }
.toolwin .tbl th { text-align: left; font: 10px var(--f-title); letter-spacing: 1px; padding: 5px 8px; background: var(--seg-bg); position: sticky; top: 0; z-index: 1; }
.toolwin .tbl td { padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; } .toolwin .tbl tr.off { opacity: 0.5; }
.toolwin .tbl td.acts { white-space: nowrap; text-align: right; } .toolwin .tbl td.msg { word-break: break-word; max-width: 420px; font-size: 13px; }
.toolwin .tbl tr.st-error td { color: var(--hot); } .toolwin .tbl tr.st-skipped td { color: var(--panel-dim); }
.ctabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 6px; border-bottom: 2px solid var(--line); flex: none; }
.toolwin .page { display: flex; flex-direction: column; min-height: 0; }
.sm-head { font: 9px var(--f-title); letter-spacing: 2px; padding: 6px 10px 2px; color: var(--panel-dim); opacity: 0.9; }
[data-theme='mint'] .sm-head, [data-theme='midnight'] .sm-head { color: #55556f; }
.role { padding: 1px 6px; font: 10px var(--f-title); background: var(--chrome); color: var(--ink); box-shadow: var(--bevel-out); } .role.r-admin { background: var(--hot); color: #fff; } .role.r-operator { background: var(--acc); color: #14142b; }

/* taskbar user chip + desktop icons that wrap into columns */
.userchip { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); font: 10px var(--f-title); color: var(--ink); max-width: 150px; }
.userchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .userchip[data-role='admin'] { box-shadow: var(--bevel-out), inset 0 -3px 0 var(--hot); } .userchip[data-role='operator'] { box-shadow: var(--bevel-out), inset 0 -3px 0 var(--acc); }
[data-theme='phosphor'] .userchip, [data-theme='amber'] .userchip { color: var(--panel-ink); }
@media (max-width: 760px) { .userchip span { display: none; } }
#desk.wp { background-size: cover; background-position: center; image-rendering: pixelated; background-repeat: no-repeat; } #desk.wp .band, #desk.wp .deco { display: none; }

/* ---- sign-in ---- */
.login-back { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; background: var(--desk); background-image: radial-gradient(var(--desk-dot) 1.5px, transparent 1.5px); background-size: 16px 16px; }
.login { width: min(400px, 94vw); } .login-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; background: var(--screen); color: var(--panel-ink); }
.login-logo { align-self: center; } .login .big { text-align: center; font: 700 22px var(--f-title); letter-spacing: 3px; } .login p { margin: 0; text-align: center; font: 14px var(--f-ui); }
.login-form { display: flex; flex-direction: column; gap: 10px; } .login-msg { min-height: 20px; color: var(--hot); font: 14px var(--f-ui); text-align: center; } .btn.big { padding: 12px; font-size: 13px; }

/* ---- calculator ---- */
.calc { display: flex; flex-direction: column; height: 100%; min-height: 0; } .calc-body { display: flex; gap: 10px; flex: 1; min-height: 0; padding: 8px; overflow: auto; } .calc-main { flex: 1; min-width: 250px; display: flex; flex-direction: column; gap: 6px; }
.cscreen { position: relative; background: var(--panel); color: var(--panel-ink); box-shadow: var(--bevel-in); padding: 8px 10px; text-align: right; min-height: 78px; display: flex; flex-direction: column; justify-content: flex-end; }
.cdisp { font: 34px var(--f-num); overflow-x: auto; white-space: nowrap; } .csub { font: 18px var(--f-num); color: var(--panel-dim); min-height: 22px; } .csub.err { color: var(--hot); } .memi { position: absolute; left: 8px; top: 6px; font: 10px var(--f-title); color: var(--acc); }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; } .keys.sci { grid-template-columns: repeat(5, 1fr); }
.key { padding: 11px 0; font: 700 14px var(--f-ui); background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); cursor: pointer; } .key:active { box-shadow: var(--bevel-in); transform: translate(1px, 1px); }
.key.num { background: var(--chrome-hi2); } .key.op { background: var(--acc2); color: #14142b; } .key.eq { background: var(--acc); color: #14142b; } .key.on { background: var(--acc); }
[data-theme='phosphor'] .key, [data-theme='amber'] .key { color: var(--panel-ink); } [data-theme='phosphor'] .key.op, [data-theme='phosphor'] .key.eq, [data-theme='amber'] .key.op, [data-theme='amber'] .key.eq { color: #02140a; }
.chist { width: 190px; flex: none; border-left: 2px solid var(--line); padding-left: 8px; overflow: auto; } .chist-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font: 10px var(--f-title); }
.chist .hl { display: block; width: 100%; text-align: right; background: none; border: 0; border-bottom: 1px dashed var(--line); padding: 4px 2px; color: var(--panel-ink); font: 14px var(--f-ui); cursor: pointer; } .chist .hl span { display: block; color: var(--panel-dim); font-size: 12px; } .chist .hl:hover { background: var(--seg-bg); }
[data-calc-mode='conv'] .chist { display: none; }
.conv-wrap { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 460px; margin: 0 auto; padding: 10px; } .conv { display: flex; flex-direction: column; gap: 8px; } .conv-row { display: grid; grid-template-columns: 1fr 120px; gap: 8px; } .conv-eq { text-align: center; font: 18px var(--f-num); } .field.bad { box-shadow: var(--bevel-in), 0 0 0 2px var(--hot); }
@media (max-width: 560px) { .chist { display: none; } }

/* ---- notes + stickies ---- */
.notes { display: flex; height: 100%; min-height: 0; } .n-side { width: 250px; flex: none; display: flex; flex-direction: column; border-right: 2px solid var(--line); min-height: 0; } .n-top { display: flex; gap: 6px; padding: 6px; }
.n-tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 6px 6px; } .chip { cursor: pointer; border: 0; } .chip:not(.on) { background: var(--chrome); color: var(--ink); } .chip.on { background: var(--acc); }
.n-list { overflow: auto; flex: 1; } .n-item { display: block; width: 100%; text-align: left; border: 0; border-left: 8px solid var(--nc); background: none; padding: 7px 8px; border-bottom: 1px solid var(--line); color: var(--panel-ink); cursor: pointer; }
.n-item b { display: block; font: 15px var(--f-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .n-item span { display: block; font: 13px var(--f-ui); color: var(--panel-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .n-item em { font: 9px var(--f-title); color: var(--panel-dim); font-style: normal; }
.n-item.on, .n-item:hover { background: var(--seg-bg); }
.n-edit { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 8px; min-width: 0; } .n-title { font-weight: 700; } .n-text { flex: 1; min-height: 120px; resize: none; padding: 10px; font: 17px/1.4 var(--f-ui); background: var(--panel); color: var(--panel-ink); border: 0; box-shadow: var(--bevel-in); }
.n-foot { display: flex; flex-direction: column; gap: 8px; } .n-colors { display: flex; gap: 6px; } .nc { width: 22px; height: 22px; border: 2px solid var(--ink-line); cursor: pointer; padding: 0; } .nc.on { outline: 3px solid var(--acc); outline-offset: 1px; } .n-acts { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 700px) { .notes { flex-direction: column; } .n-side { width: auto; height: 38%; border-right: 0; border-bottom: 2px solid var(--line); } }
#stickies { position: fixed; inset: 0 0 40px 0; z-index: 6; pointer-events: none; }
.sticky { position: absolute; pointer-events: auto; display: flex; flex-direction: column; background: var(--nc, #fff3a3); color: #2a2a3a; border: 2px solid var(--ink-line); box-shadow: 4px 4px 0 var(--shadow); min-width: 160px; }
.st-bar { display: flex; align-items: center; gap: 2px; padding: 2px 4px; background: rgba(0, 0, 0, 0.12); cursor: move; font: 9px var(--f-title); letter-spacing: 1px; flex: none; touch-action: none; } .st-t { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-bar button { width: 18px; height: 18px; background: rgba(255, 255, 255, 0.5); border: 1px solid #14142b; padding: 0; font: 12px var(--f-ui); line-height: 1; cursor: pointer; color: #14142b; }
.st-text { flex: 1; resize: none; background: transparent; border: 0; padding: 6px 8px; font: 17px/1.25 var(--f-ui); color: #2a2a3a; outline: none; min-height: 0; } .st-rz { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.35) 50%); touch-action: none; }
.sticky.collapsed .st-text, .sticky.collapsed .st-rz { display: none; }
body.no-windows #stickies { z-index: 6; }

/* ---- calendar ---- */
.cal { display: flex; height: 100%; min-height: 0; } .cal-main { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 6px; } .cal-head { display: flex; gap: 8px; align-items: center; padding-bottom: 6px; } .cal-head h2 { margin: 0; font: 700 16px var(--f-title); min-width: 190px; text-align: center; letter-spacing: 1px; } .cal-head .grow { flex: 1; }
.cal-grid { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: auto repeat(6, 1fr); gap: 2px; min-height: 0; } .cal-dow { font: 9px var(--f-title); text-align: center; padding: 3px; background: var(--seg-bg); }
.cal-day { text-align: left; background: var(--panel); color: var(--panel-ink); border: 0; box-shadow: inset 0 0 0 1px var(--line); padding: 3px 4px; overflow: hidden; display: flex; flex-direction: column; gap: 1px; min-height: 0; cursor: pointer; } .cal-day b { font: 13px var(--f-ui); }
.cal-day.other { opacity: 0.45; } .cal-day.today b { background: var(--acc); color: #14142b; padding: 0 5px; align-self: flex-start; } .cal-day.sel { box-shadow: inset 0 0 0 2px var(--acc); } .cal-day em { font: 10px var(--f-ui); font-style: normal; color: var(--panel-dim); }
.cal-day .ev { display: block; font: 11px var(--f-ui); font-style: normal; background: var(--c, #7fb4ff); color: #14142b; padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cal-day .ev.job { background: var(--seg-bg); color: var(--panel-ink); border: 1px dashed var(--line); }
.cal-side { width: 250px; flex: none; border-left: 2px solid var(--line); padding: 8px; overflow: auto; display: flex; flex-direction: column; gap: 8px; } .cal-side h3 { margin: 0; font: 12px var(--f-title); letter-spacing: 1px; }
.cal-ev { border-left: 6px solid var(--c, var(--acc)); background: var(--panel); color: var(--panel-ink); padding: 6px 8px; box-shadow: var(--bevel-in); display: flex; flex-direction: column; gap: 4px; } .cal-ev.job { --c: var(--line); } .cal-ev b { font: 14px var(--f-ui); } .cal-ev p { margin: 0; font: 14px var(--f-ui); white-space: pre-wrap; } .cal-ev small { color: var(--panel-dim); font: 12px var(--f-ui); }
@media (max-width: 760px) { .cal { flex-direction: column; overflow: auto; } .cal-side { width: auto; border-left: 0; border-top: 2px solid var(--line); } .cal-grid { min-height: 340px; } }

/* ---- clock ---- */
.clk { display: flex; flex-direction: column; height: 100%; min-height: 0; } .clk-body { flex: 1; overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 12px; }
.wclocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; } .wc { display: flex; align-items: center; gap: 12px; padding: 8px; background: var(--panel); color: var(--panel-ink); box-shadow: var(--bevel-in); } .wc canvas { width: 76px; height: 76px; image-rendering: pixelated; flex: none; }
.wc > div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .wc .z { font: 10px var(--f-title); letter-spacing: 1px; color: var(--panel-dim); } .wc b { font: 34px/1 var(--f-num); } .wc span:last-child { font: 14px var(--f-ui); color: var(--panel-dim); } .wc em { font: 9px var(--f-title); font-style: normal; background: var(--acc); color: #14142b; padding: 2px 5px; align-self: flex-start; }
.bigtime { font: 76px/1 var(--f-num); text-align: center; padding: 14px 0 6px; color: var(--panel-ink); text-shadow: 3px 3px 0 var(--shadow); } .clk .bar { height: 10px; background: var(--seg-bg); box-shadow: var(--bevel-in); } .clk .bar i { display: block; height: 100%; background: var(--acc); }
.laps { max-width: 420px; width: 100%; margin: 0 auto; font: 18px var(--f-num); } .laps div { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 2px 6px; border-bottom: 1px dashed var(--line); } .laps em { color: var(--panel-dim); font-style: normal; }
.frm.tiny { width: 90px; } .alarms { display: flex; flex-direction: column; gap: 6px; } .alarm { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: var(--panel); color: var(--panel-ink); box-shadow: var(--bevel-in); } .alarm.off { opacity: 0.5; } .alarm b { font: 38px/1 var(--f-num); } .alarm > div { flex: 1; display: flex; flex-direction: column; } .alarm small { color: var(--panel-dim); font: 12px var(--f-ui); }

/* ---- scheduler ---- */
.sched { display: flex; flex-direction: column; height: 100%; min-height: 0; } .sched-body { flex: 1; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.job { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 8px 10px; background: var(--panel); color: var(--panel-ink); box-shadow: var(--bevel-in); } .job.off { opacity: 0.55; } .job.running { box-shadow: var(--bevel-in), inset 4px 0 0 var(--acc); }
.job .jm { display: flex; flex-direction: column; min-width: 0; } .job .jm b { font: 16px var(--f-ui); } .job .jm span, .job .jm em { font: 13px var(--f-ui); font-style: normal; color: var(--panel-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job .jn { display: flex; flex-direction: column; text-align: right; font: 14px var(--f-ui); min-width: 150px; } .job .jn small { color: var(--panel-dim); font: 12px var(--f-ui); } .job small.st-error { color: var(--hot); } .job small.st-ok { color: var(--ok); } .job .ja { display: flex; gap: 6px; }
@media (max-width: 760px) { .job { grid-template-columns: auto 1fr; } .job .jn { text-align: left; } .job .ja { grid-column: 1 / -1; } }
.jobform { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } @media (max-width: 640px) { .jobform { grid-template-columns: 1fr; } }
.cron-prev { background: var(--seg-bg); padding: 6px 10px; font: 14px var(--f-ui); } .cron-prev ol { margin: 4px 0 0; padding-left: 20px; } .cron-prev.bad { color: var(--hot); }
.tplmenu { display: flex; flex-direction: column; } .tplmenu .mi { text-align: left; padding: 9px 10px; background: none; border: 0; border-bottom: 1px solid var(--line); font: 15px var(--f-ui); cursor: pointer; color: var(--panel-ink); } .tplmenu .mi:hover { background: var(--menu-hover); color: var(--menu-hover-ink); }

/* ---- editor ---- */
.editor { display: flex; flex-direction: column; height: 100%; min-height: 0; } .ed-tabs { display: flex; gap: 2px; overflow-x: auto; flex: none; background: var(--seg-bg); padding: 4px 4px 0; }
.ed-tab { display: flex; align-items: center; gap: 8px; padding: 5px 4px 5px 10px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); font: 13px var(--f-ui); color: var(--ink); cursor: pointer; white-space: nowrap; } .ed-tab.on { background: var(--panel); color: var(--panel-ink); box-shadow: inset 0 3px 0 var(--acc); } .ed-tab i { font-style: normal; padding: 0 5px; } .ed-tab i:hover { background: var(--hot); color: #fff; } .ed-tab.add { padding: 5px 12px; }
.ed-tab.dirty span { font-style: italic; } [data-theme='phosphor'] .ed-tab:not(.on), [data-theme='amber'] .ed-tab:not(.on) { color: var(--panel-ink); }
.ed-stage { flex: 1; min-height: 0; position: relative; background: var(--panel); } .ed-stage .CodeMirror { position: absolute; inset: 0; height: auto; font: 16px/1.35 var(--f-num); background: var(--panel); color: var(--panel-ink); } .ed-stage.empty .CodeMirror { opacity: 0.4; }
.ed-info { padding: 4px 8px; font: 13px var(--f-ui); color: var(--panel-dim); } .ed-info:empty { display: none; }
.CodeMirror-gutters { background: var(--seg-bg) !important; border-right: 1px solid var(--line) !important; } .CodeMirror-linenumber { color: var(--panel-dim) !important; } .CodeMirror-cursor { border-left: 2px solid var(--acc) !important; } .CodeMirror-activeline-background { background: var(--seg-bg) !important; } .CodeMirror-selected { background: color-mix(in srgb, var(--acc) 35%, transparent) !important; }
.cm-s-default .cm-keyword { color: var(--c4); font-weight: 700; } .cm-s-default .cm-string, .cm-s-default .cm-string-2 { color: var(--c6); } .cm-s-default .cm-comment { color: var(--panel-dim); font-style: italic; } .cm-s-default .cm-number, .cm-s-default .cm-atom { color: var(--c5); } .cm-s-default .cm-def, .cm-s-default .cm-variable-2 { color: var(--c2); } .cm-s-default .cm-property, .cm-s-default .cm-attribute { color: var(--c3); } .cm-s-default .cm-tag { color: var(--c1); } .cm-s-default .cm-builtin, .cm-s-default .cm-type { color: var(--c2); } .cm-s-default .cm-header, .cm-s-default .cm-strong { color: var(--c1); font-weight: 700; } .cm-s-default .cm-link { color: var(--c2); } .cm-s-default .cm-operator, .cm-s-default .cm-variable, .cm-s-default .cm-punctuation { color: var(--panel-ink); }
.CodeMirror-dialog { background: var(--chrome) !important; color: var(--ink) !important; font: 14px var(--f-ui); } .CodeMirror-dialog input { background: var(--panel); color: var(--panel-ink); border: 0; box-shadow: var(--bevel-in); font: 14px var(--f-ui); }

/* ---- paint ---- */
.paint { display: flex; height: 100%; min-height: 0; } .pt-tools { width: 52px; flex: none; display: flex; flex-direction: column; gap: 3px; padding: 5px; border-right: 2px solid var(--line); align-items: stretch; overflow: auto; } .pt-tools hr { border: 0; border-top: 2px solid var(--line); width: 100%; margin: 3px 0; }
.pt-tool { padding: 5px 0; font: 18px var(--f-ui); background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); cursor: pointer; } .pt-tool.on { box-shadow: var(--bevel-in); background: var(--acc2); color: #14142b; } [data-theme='phosphor'] .pt-tool:not(.on), [data-theme='amber'] .pt-tool:not(.on) { color: var(--panel-ink); }
.pt-size { display: flex; flex-direction: column; font: 9px var(--f-title); gap: 2px; } .pt-size input { width: 100%; min-width: 0; }
.pt-mid { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; } .pt-pal { display: flex; flex-wrap: wrap; gap: 3px; padding: 5px; align-items: center; border-bottom: 2px solid var(--line); flex: none; }
.pt-cur { width: 30px; height: 30px; border: 2px solid var(--ink-line); margin-right: 6px; background-image: conic-gradient(#ccc 25%, #fff 0 50%, #ccc 0 75%, #fff 0); background-size: 10px 10px; } .pt-sw { width: 22px; height: 22px; border: 2px solid var(--ink-line); padding: 0; cursor: pointer; } .pt-sw.on { outline: 3px solid var(--acc); outline-offset: 1px; } .pt-sw.none { background-image: conic-gradient(#ccc 25%, #fff 0 50%, #ccc 0 75%, #fff 0); background-size: 8px 8px; } .pt-custom { width: 30px; height: 26px; padding: 0; border: 0; background: none; }
.pt-stage { flex: 1; overflow: auto; background: #7a7a8c repeating-conic-gradient(#8b8b9c 0% 25%, #7a7a8c 0% 50%) 0 0 / 16px 16px; display: flex; min-height: 0; } .pt-wrap { position: relative; margin: auto; flex: none; line-height: 0; background-image: conic-gradient(#e4e4ec 25%, #fff 0 50%, #e4e4ec 0 75%, #fff 0); background-size: 16px 16px; box-shadow: 0 0 0 2px var(--ink-line), 6px 6px 0 var(--shadow); }
.pt-cv, .pt-over { image-rendering: pixelated; display: block; } .pt-over { position: absolute; left: 0; top: 0; cursor: crosshair; touch-action: none; } .pt-wrap.grid::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, rgba(0, 0, 0, 0.18) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 1px, transparent 1px); background-size: var(--z) var(--z); }
.pt-side { width: 170px; flex: none; border-left: 2px solid var(--line); padding: 6px; overflow: auto; display: flex; flex-direction: column; gap: 8px; } .pt-side h4 { margin: 0; font: 10px var(--f-title); letter-spacing: 1px; } .art { display: flex; flex-direction: column; gap: 3px; padding: 4px; background: var(--panel); color: var(--panel-ink); box-shadow: var(--bevel-in); font: 13px var(--f-ui); } .art.on { outline: 2px solid var(--acc); } .art img { width: 100%; max-height: 90px; object-fit: contain; image-rendering: pixelated; cursor: pointer; background: var(--seg-bg); }
.art .row { flex-wrap: wrap; } @media (max-width: 700px) { .pt-side { display: none; } }

/* ---- security ---- */
.sec { display: flex; flex-direction: column; height: 100%; min-height: 0; } .sec-body { flex: 1; overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; max-width: 900px; } .sec h4 { margin: 8px 0 0; font: 11px var(--f-title); letter-spacing: 1px; } .kv.hl { background: var(--acc2); color: #14142b; }
.tbtask { min-width: 84px !important; } .tasks { overflow: hidden; } .tray { flex: none; }

/* ---------- extra themes ---------- */
[data-theme='win98'] {
  --desk: #008080; --desk-dot: #007070; --band1: #00a0a0; --band2: #006868;
  --chrome: #c0c0c0; --chrome-hi: #ffffff; --chrome-hi2: #dfdfdf; --chrome-lo: #808080;
  --screen: #ffffff; --screen-dot: #e8e8e8; --panel: #ffffff; --panel-ink: #000000; --panel-dim: #5a5a5a; --ink: #000000;
  --line: #a0a0a0; --seg-bg: #e4e4e4; --shadow: rgba(0, 0, 0, 0.35);
  --title-grad: linear-gradient(90deg, #000080 0%, #1084d0 100%); --title-grad-v: linear-gradient(0deg, #000080 0%, #1084d0 100%); --title-ink: #ffffff; --menu-hover: #000080; --menu-hover-ink: #ffffff;
  --c1: #c00000; --c2: #008080; --c3: #c0a000; --c4: #000080; --c5: #e07000; --c6: #008000;
  --chart-ink: #404040; --chart-grid: #d0d0d0; --tip-bg: #ffffe1; --tip-ink: #000; --scan: 0;
}
[data-theme='system7'] {
  --desk: #9a9a9a; --desk-dot: #888888; --band1: #b0b0b0; --band2: #808080;
  --chrome: #ffffff; --chrome-hi: #ffffff; --chrome-hi2: #f0f0f0; --chrome-lo: #6a6a6a;
  --screen: #ffffff; --screen-dot: #e0e0e0; --panel: #ffffff; --panel-ink: #000000; --panel-dim: #555555; --ink: #000000;
  --line: #000000; --seg-bg: #ececec; --shadow: rgba(0, 0, 0, 0.5);
  --title-grad: repeating-linear-gradient(0deg, #000 0 1px, #fff 1px 3px); --title-grad-v: repeating-linear-gradient(90deg, #000 0 1px, #fff 1px 3px); --title-ink: #000000; --menu-hover: #000000; --menu-hover-ink: #ffffff;
  --c1: #000000; --c2: #444444; --c3: #777777; --c4: #222222; --c5: #666666; --c6: #333333;
  --chart-ink: #000000; --chart-grid: #cccccc; --tip-bg: #ffffff; --tip-ink: #000; --scan: 0;
  --ok: #222; --warn: #666; --hot: #000;
}
[data-theme='commodore'] {
  --desk: #3a3a9c; --desk-dot: #3030a0; --band1: #4a4ac0; --band2: #2c2c80;
  --chrome: #6c6cd8; --chrome-hi: #a8a8ff; --chrome-hi2: #8888f0; --chrome-lo: #2c2c80;
  --screen: #3030a8; --screen-dot: #3a3ac0; --panel: #4040e0; --panel-ink: #c0c0ff; --panel-dim: #9090e8; --ink: #e0e0ff;
  --line: #5858e8; --seg-bg: #3434b8; --shadow: rgba(0, 0, 40, 0.5);
  --title-grad: linear-gradient(90deg, #4040e0, #7878ff); --title-grad-v: linear-gradient(0deg, #4040e0, #7878ff); --title-ink: #ffffff; --menu-hover: #c0c0ff; --menu-hover-ink: #20207a;
  --c1: #ffff80; --c2: #80ffff; --c3: #ff9090; --c4: #c8c8ff; --c5: #ffc080; --c6: #90ff90;
  --chart-ink: #b0b0ff; --chart-grid: #5050d0; --tip-bg: #20207a; --tip-ink: #c0c0ff; --scan: 0.25;
  --ok: #90ff90; --warn: #ffff80; --hot: #ff7070;
}
[data-theme='vaporwave'] {
  --desk: #2b1055; --desk-dot: #3a1a70; --band1: #ff71ce; --band2: #01cdfe;
  --chrome: #4a2a8a; --chrome-hi: #9d6bff; --chrome-hi2: #6a3cc0; --chrome-lo: #1c0a40;
  --screen: #150833; --screen-dot: #26104f; --panel: #0d0524; --panel-ink: #f6e6ff; --panel-dim: #b79cff; --ink: #f6e6ff;
  --line: #4b2a8f; --seg-bg: #1d0e45; --shadow: rgba(255, 113, 206, 0.35);
  --title-grad: linear-gradient(90deg, #ff71ce, #b967ff 50%, #01cdfe); --title-grad-v: linear-gradient(0deg, #ff71ce, #b967ff 50%, #01cdfe); --title-ink: #1a0840; --menu-hover: #ff71ce; --menu-hover-ink: #1a0840;
  --c1: #ff71ce; --c2: #01cdfe; --c3: #fffb96; --c4: #b967ff; --c5: #ff9e6e; --c6: #05ffa1;
  --chart-ink: #c9b3ff; --chart-grid: #3a1f78; --tip-bg: #150833; --tip-ink: #f6e6ff; --scan: 0.3;
  --ok: #05ffa1; --warn: #fffb96; --hot: #ff4d8d;
}
[data-theme='system7'] .titlebar, [data-theme='system7'] .modal-back .titlebar { border-bottom: 2px solid #000; }
[data-theme='commodore'] .tbtask, [data-theme='commodore'] .btn, [data-theme='vaporwave'] .btn, [data-theme='vaporwave'] .tbtask { color: var(--ink); }

/* ======================================================================================================
   OS feel: desktop icons, widgets, wallpapers, screensavers, notification centre, easter eggs
   ====================================================================================================== */
#icons { position: fixed; z-index: 5; inset: 0 0 42px 0; display: block; max-height: none; pointer-events: auto; overflow: hidden; }
#icons .dicon { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 4px 2px; border: 1px solid transparent; background: none; font: 10px var(--f-title); color: var(--ink); text-align: center; cursor: default; user-select: none; touch-action: none; }
#icons[data-size='s'] .dicon { font-size: 8px; } #icons[data-size='l'] .dicon { font-size: 11px; }
#icons .dicon .dg { width: 54px; height: 54px; display: grid; place-items: center; background: var(--chrome); border: 2px solid var(--ink-line); box-shadow: var(--bevel-out), 3px 3px 0 var(--shadow); color: var(--ink); }
#icons[data-size='s'] .dicon .dg { width: 42px; height: 42px; } #icons[data-size='l'] .dicon .dg { width: 76px; height: 76px; }
#icons .dicon .dg img { max-width: 100%; max-height: 100%; }
#icons .dicon .dl { padding: 2px 5px; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
#icons .dicon.sel { background: rgba(255, 255, 255, 0.22); border: 1px dashed var(--ink-line); } #icons .dicon.sel .dl { background: var(--menu-hover); color: var(--menu-hover-ink); }
#icons .dicon.drag { opacity: 0.8; z-index: 50; pointer-events: none; transition: none; }
#icons .band-sel { position: absolute; border: 1px dashed var(--ink-line); background: rgba(255, 255, 255, 0.25); pointer-events: none; }
[data-theme='phosphor'] #icons .dicon, [data-theme='amber'] #icons .dicon, [data-theme='commodore'] #icons .dicon, [data-theme='vaporwave'] #icons .dicon { color: var(--panel-ink); }
.dtrash { position: fixed; right: 18px; bottom: 58px; z-index: 300; width: 120px; height: 90px; display: grid; place-items: center; align-content: center; gap: 4px; border: 3px dashed var(--hot); background: rgba(239, 90, 122, 0.18); color: var(--hot); font: 11px var(--f-title); pointer-events: none; } .dtrash.hot { background: var(--hot); color: #fff; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; max-height: 340px; overflow: auto; } .ig { padding: 8px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); cursor: pointer; display: grid; place-items: center; } .ig.on { box-shadow: var(--bevel-in); background: var(--acc2); color: #14142b; } .ig img { max-width: 28px; max-height: 28px; image-rendering: pixelated; }
@media (max-width: 760px) { #icons { display: none; } }

#dwidgets { position: fixed; z-index: 6; inset: 0 0 42px 0; pointer-events: none; }
.dwidget { position: absolute; pointer-events: auto; display: flex; flex-direction: column; min-width: 180px; min-height: 110px; background: var(--panel); border: 2px solid var(--ink-line); box-shadow: 5px 5px 0 var(--shadow); container-type: size; }
.dwidget .wbar { cursor: move; touch-action: none; flex: none; } .dwidget .wbody { flex: 1; min-height: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.dwidget .wact { display: flex; } .dw-rz { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, var(--ink-line) 50%); touch-action: none; z-index: 3; }
body.no-windows .dwidget { opacity: 1; }
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; max-height: 320px; overflow: auto; } .wp-card { display: flex; flex-direction: column; gap: 4px; padding: 4px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); font: 12px var(--f-ui); color: var(--ink); cursor: pointer; } .wp-card i { display: block; height: 62px; border: 1px solid var(--ink-line); } .wp-card.on { box-shadow: var(--bevel-in); background: var(--acc2); color: #14142b; }
.colorgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; } .cpick { display: flex; align-items: center; gap: 8px; font: 13px var(--f-ui); } .cpick input { width: 34px; height: 26px; padding: 0; border: 2px solid var(--ink-line); background: none; cursor: pointer; }

/* screensavers */
.saver { position: fixed; inset: 0; z-index: 9500; background: #080620; cursor: none; } .saver canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.dvd-logo { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; will-change: transform; } .dvd-stat { font: 18px var(--f-num); color: #dcd8ff; white-space: nowrap; }
.wall { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #f1ecff; text-align: center; } .wall-clock { font: clamp(80px, 22vw, 320px)/1 var(--f-num); text-shadow: 6px 6px 0 rgba(245, 139, 189, 0.5); } .wall-date { font: clamp(16px, 3vw, 36px) var(--f-title); letter-spacing: 3px; color: #b8b0ff; }
.wall-tiles { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 3vh; } .wall-tiles div { min-width: 150px; padding: 12px 18px; border: 2px solid #4b3f9a; background: rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; } .wall-tiles span { font: 11px var(--f-title); color: #9a90e8; } .wall-tiles b { font: 48px/1.1 var(--f-num); } .wall-tiles em { font: 22px var(--f-num); font-style: normal; color: #f9a8cb; }

/* notification centre */
.bellbtn { position: relative; width: 28px; height: 26px; display: grid; place-items: center; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); cursor: pointer; } .bellbtn b { position: absolute; top: -5px; right: -5px; min-width: 16px; padding: 1px 3px; background: var(--hot); color: #fff; font: 9px var(--f-title); text-align: center; } .bellbtn.dnd { opacity: 0.6; }
[data-theme='phosphor'] .bellbtn, [data-theme='amber'] .bellbtn { color: var(--panel-ink); }
.ncpanel { position: fixed; z-index: 400; bottom: 46px; width: min(380px, 96vw); max-height: min(560px, 76vh); display: flex; flex-direction: column; background: var(--chrome); border: 2px solid var(--ink-line); box-shadow: var(--bevel-out), 6px 6px 0 var(--shadow); color: var(--ink); }
.nc-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--title-grad); color: var(--title-ink); } .nc-head b { flex: 1; font: 11px var(--f-title); letter-spacing: 2px; } .nc-head .chk { color: var(--title-ink); }
.nc-list { overflow: auto; background: var(--panel); color: var(--panel-ink); flex: 1; min-height: 80px; } .nc-foot { padding: 6px; text-align: center; }
.nc-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; width: 100%; text-align: left; padding: 8px 10px; background: none; border: 0; border-bottom: 1px solid var(--line); border-left: 5px solid var(--ok); color: var(--panel-ink); cursor: pointer; } .nc-item:hover { background: var(--seg-bg); } .nc-item.sev-warn { border-left-color: var(--warn); } .nc-item.sev-crit { border-left-color: var(--hot); }
.nc-item b { display: block; font: 14px var(--f-ui); } .nc-item span:not(.nci) { display: block; font: 13px var(--f-ui); color: var(--panel-dim); } .nc-item em { font: 9px var(--f-title); font-style: normal; color: var(--panel-dim); white-space: nowrap; }

/* easter eggs */
#eggs { position: fixed; inset: 0; z-index: 8000; pointer-events: none; overflow: hidden; } .egg { position: absolute; pointer-events: auto; image-rendering: pixelated; } .egg canvas { display: block; image-rendering: pixelated; }
.egg-bubble { position: absolute; bottom: 100%; left: 50%; transform: translateX(-30%); margin-bottom: 8px; padding: 8px 12px; min-width: 120px; max-width: 280px; width: max-content; background: #fff; color: #14142b; border: 3px solid #14142b; border-radius: 12px; font: 15px var(--f-ui); box-shadow: 3px 3px 0 var(--shadow); }
.doraemon { bottom: 56px; right: -120px; animation: dora-in 0.9s steps(10) forwards; } .doraemon.out { animation: dora-out 0.7s steps(8) forwards; }
@keyframes dora-in { to { right: 40px; } } @keyframes dora-out { from { right: 40px; } to { right: -140px; } }
.tro { bottom: 48px; left: -120px; animation: tro-run 8s linear forwards; } .tro.jump { margin-bottom: 40px; } @keyframes tro-run { to { left: calc(100vw + 40px); } }
.tallman { bottom: 42px; left: -60px; animation: tall-walk 15s linear forwards; transform-origin: bottom center; } .tallman canvas { animation: sway 1.2s ease-in-out infinite alternate; transform-origin: bottom center; } @keyframes tall-walk { to { left: calc(100vw + 20px); } } @keyframes sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }
.hop { animation: hop 0.9s ease-out; } @keyframes hop { 30% { transform: translateY(-34px); } 60% { transform: translateY(0); } 80% { transform: translateY(-10px); } }
body.shrink #windows, body.shrink #icons { transform: scale(0.55); transform-origin: top left; transition: transform 0.4s steps(6); }
body.party { animation: party-hue 1.2s linear infinite; } @keyframes party-hue { to { filter: hue-rotate(360deg); } } .confetti { position: fixed; inset: 0; z-index: 9400; pointer-events: none; }
.bsod { position: fixed; inset: 0; z-index: 9800; background: #0000aa; color: #fff; display: grid; place-items: center; padding: 6vmin; font: 22px/1.35 var(--f-num); cursor: pointer; } .bsod > div { max-width: 760px; } .bsod p { margin: 0 0 1.1em; } .bs-t { display: inline-block; background: #aaa; color: #0000aa; padding: 0 8px; } .bsod .dim { color: #b8b8ff; }
.flop { position: fixed; right: 18px; bottom: 56px; z-index: 450; display: flex; align-items: flex-end; gap: 6px; } .flop .fb { max-width: 250px; padding: 10px 12px; background: #fffbe0; color: #14142b; border: 2px solid #14142b; box-shadow: 4px 4px 0 var(--shadow); font: 14px var(--f-ui); display: flex; flex-direction: column; gap: 4px; } .flop .fb b { font: 10px var(--f-title); } .flop .fb a { color: #5c7cfa; font-size: 12px; } .flop canvas { image-rendering: pixelated; animation: bob 1.6s steps(2) infinite; } .flop .x { position: absolute; top: -8px; left: 0; width: 18px; height: 18px; border: 1px solid #14142b; background: #fff; cursor: pointer; padding: 0; line-height: 1; }
.chks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.doraemon .egg-bubble { left: auto; right: 0; transform: none; }

/* ======================================================================================================
   LLM Lab pages: bench, playground, documents, prompts, router, catalog, quantize, draft model, usage
   ====================================================================================================== */
:is(.lab, .pg, .sched, .notes) .row { display: flex; gap: 8px; align-items: center; } :is(.lab, .pg, .sched, .notes) .row.wrap { flex-wrap: wrap; } :is(.lab, .pg, .sched) .grow { flex: 1; }
:is(.lab, .pg, .sched, .notes) .chk { display: inline-flex; align-items: center; gap: 6px; font: 14px var(--f-ui); cursor: pointer; } :is(.lab, .pg, .sched) .chk input { accent-color: var(--acc); }
:is(.lab, .pg, .sched, .notes) .tbl { width: 100%; border-collapse: collapse; font: 14px var(--f-ui); } :is(.lab, .sched) .tbl th { text-align: left; font: 10px var(--f-title); letter-spacing: 1px; padding: 5px 8px; background: var(--seg-bg); position: sticky; top: 0; z-index: 1; } :is(.lab, .sched) .tbl td { padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
:is(.lab, .sched) .tbl td.acts { text-align: right; white-space: nowrap; } .lab .tbl tr.sel td { background: var(--seg-bg); } .lab .tbl td.best { color: var(--ok); font-weight: 700; } .lab .st-error { color: var(--hot); } .lab .st-ok { color: var(--ok); }
.lab { display: flex; gap: 18px; height: 100%; min-height: 0; padding: 12px; overflow: auto; } .lab.one { flex-direction: column; max-width: 980px; } .lab-col { flex: 0 0 340px; min-width: 260px; display: flex; flex-direction: column; gap: 8px; } .lab-col.wide { flex: 1 1 0; min-width: 0; }
.lab h3 { margin: 0; font: 700 13px var(--f-title); letter-spacing: 2px; } .lab h4 { margin: 10px 0 2px; font: 10px var(--f-title); letter-spacing: 1px; color: var(--panel-dim); } .lab hr { border: 0; border-top: 2px dashed var(--line); width: 100%; margin: 14px 0 4px; }
.lab .chks.col { flex-direction: column; flex-wrap: nowrap; gap: 3px; } .lab .chks.scroll { max-height: 170px; overflow: auto; border: 1px solid var(--line); padding: 4px 6px; } .lab .frm.tiny { width: 86px; } .lab .field.sm { width: 92px; }
.lab .callout { background: var(--seg-bg); border-left: 5px solid var(--warn); padding: 8px 10px; font: 14px var(--f-ui); } .lab .code, .lab pre.code { background: var(--panel); color: var(--panel-ink); padding: 8px 10px; box-shadow: var(--bevel-in); font: 15px var(--f-num); white-space: pre-wrap; word-break: break-all; margin: 6px 0; }
.lbar { position: relative; height: 14px; background: var(--seg-bg); box-shadow: var(--bevel-in); margin: 2px 0; } .lbar i { display: block; height: 100%; background: var(--acc); } .lbar b { position: absolute; left: 6px; top: -1px; font: 11px var(--f-title); color: #14142b; mix-blend-mode: normal; } .lbar.tg i { background: var(--c2); } .lbar.pp i { background: var(--c1); }
.job-card { background: var(--panel); color: var(--panel-ink); box-shadow: var(--bevel-in); padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; } .job-card.running { box-shadow: var(--bevel-in), inset 4px 0 0 var(--acc); } .mini-log { margin: 0; font: 14px var(--f-num); color: var(--panel-dim); white-space: pre-wrap; max-height: 110px; overflow: auto; }
.cmp { background: var(--panel); color: var(--panel-ink); padding: 8px 10px; box-shadow: var(--bevel-in); display: flex; flex-direction: column; gap: 6px; } .cmp-row { display: grid; grid-template-columns: minmax(120px, 0.7fr) 1.3fr; gap: 10px; align-items: center; font: 13px var(--f-ui); }
.pg { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0; padding: 12px; overflow: auto; } .pg-prompt { width: 100%; font: 17px/1.35 var(--f-ui); resize: vertical; } .pg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; min-height: 240px; } @media (max-width: 800px) { .pg-cols { grid-template-columns: 1fr; } }
.pg-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .pg-head { display: flex; gap: 8px; align-items: center; } .pg-head b { font: 700 22px var(--f-title); color: var(--acc); } .pg-out { flex: 1; min-height: 160px; overflow: auto; white-space: pre-wrap; background: var(--panel); color: var(--panel-ink); padding: 10px; box-shadow: var(--bevel-in); font: 17px/1.35 var(--f-ui); }
.pg-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 13px var(--f-ui); color: var(--panel-dim); } .pg-stats b { color: var(--panel-ink); }
.dropbox { border: 3px dashed var(--line); padding: 22px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; font: 14px var(--f-ui); } .dropbox b { font: 13px var(--f-title); letter-spacing: 2px; } .dropbox.over { border-color: var(--acc); background: var(--seg-bg); }
.rag-hits .hit { background: var(--panel); color: var(--panel-ink); padding: 6px 10px; margin-top: 6px; box-shadow: var(--bevel-in); } .hit b { font: 13px var(--f-ui); } .hit em { margin-left: 8px; font: 10px var(--f-title); font-style: normal; color: var(--panel-dim); } .hit p { margin: 4px 0 0; font: 14px var(--f-ui); white-space: pre-wrap; }
.pp-list { max-height: 360px; overflow: auto; margin-top: 8px; } .pp-item { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--panel-ink); cursor: pointer; } .pp-item b { display: block; font: 15px var(--f-ui); } .pp-item span { font: 13px var(--f-ui); color: var(--panel-dim); } .pp-item:hover { background: var(--seg-bg); }
.cat-card { display: flex; gap: 12px; align-items: center; padding: 8px 10px; background: var(--panel); color: var(--panel-ink); box-shadow: var(--bevel-in); margin-bottom: 6px; } .cat-card .cm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .cat-card .cm b { font: 16px var(--f-ui); } .cat-card .cm span { font: 13px var(--f-ui); word-break: break-all; } .cat-card .ca { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mdcard { max-height: 66vh; overflow: auto; font: 15px/1.4 var(--f-ui); }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; } .stat-tiles .tile { background: var(--panel); color: var(--panel-ink); padding: 10px 12px; box-shadow: var(--bevel-in); display: flex; flex-direction: column; } .tile span { font: 10px var(--f-title); letter-spacing: 1px; color: var(--panel-dim); } .tile b { font: 34px/1.1 var(--f-num); } .tile em { font: 12px var(--f-ui); font-style: normal; color: var(--panel-dim); }
.daybars { display: flex; gap: 3px; align-items: flex-end; height: 150px; background: var(--panel); padding: 8px 8px 0; box-shadow: var(--bevel-in); overflow-x: auto; } .day { flex: 1 0 22px; max-width: 46px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; } .day .st { width: 100%; flex: 1; display: flex; flex-direction: column-reverse; } .day i { display: block; width: 100%; } .day i.g, .legend i.g { background: var(--c1); } .day i.p, .legend i.p { background: var(--c2); } .day span { font: 9px var(--f-title); color: var(--panel-dim); padding: 3px 0; }
.legend { font: 13px var(--f-ui); color: var(--panel-dim); } .legend i { display: inline-block; width: 12px; height: 12px; vertical-align: middle; margin-left: 8px; }
.events { max-height: 220px; overflow: auto; font: 14px var(--f-ui); } .tasks-col { display: flex; flex-direction: column; gap: 8px; }
.toolcalls { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; } .toolcall { border: 2px solid var(--line); background: var(--seg-bg); color: var(--panel-ink); padding: 6px 8px; font: 14px var(--f-ui); } .toolcall.st-await { border-color: var(--warn); } .toolcall.st-error, .toolcall.st-denied { border-color: var(--hot); } .toolcall.st-done { border-color: var(--ok); }
.tc-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; } .tc-h code { font: 15px var(--f-num); word-break: break-all; color: var(--panel-dim); } .tc-h em { margin-left: auto; font: 9px var(--f-title); font-style: normal; } .tc-ask { display: flex; gap: 8px; align-items: center; margin-top: 6px; } .toolcall pre { margin: 4px 0 0; max-height: 220px; overflow: auto; font: 14px var(--f-num); white-space: pre-wrap; }
.srcs { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font: 13px var(--f-ui); }

/* page help pop-up */
.helpbox { font: 15px/1.4 var(--f-ui); display: flex; flex-direction: column; gap: 4px; } .helpbox .hl { margin: 0 0 6px; font-size: 17px; } .helpbox h5 { margin: 10px 0 2px; font: 10px var(--f-title); letter-spacing: 2px; color: var(--panel-dim); }
.helpbox ol, .helpbox ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; } .helpbox li::marker { color: var(--acc); font-weight: 700; }
.appwin.toolwin [data-k='help'] { display: inline-flex; } [data-k='help'][hidden] { display: none !important; }

/* ======================================================================================================
   Labelled side bar, Start menu with Programs flyout, clock pop-up
   ====================================================================================================== */
.palette { width: 176px; gap: 3px; }
.palette .pal-toggle { align-self: flex-end; width: 26px; height: 20px; padding: 0; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); font: 700 13px var(--f-ui); line-height: 1; cursor: pointer; margin-bottom: 2px; }
.palette .pal-group { margin: 8px 4px 2px; font: 9px var(--f-title); letter-spacing: 2px; color: var(--panel-dim); opacity: 0.9; white-space: nowrap; }
[data-theme='mint'] .palette .pal-group, [data-theme='midnight'] .palette .pal-group { color: #55556f; }
.palette .tool { width: 100%; height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 8px; justify-content: flex-start; text-align: left; }
.palette .tool .plabel { font: 14px var(--f-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.palette .tool svg { flex: none; } .palette .tool kbd { position: static; opacity: 0.5; }
.palette:not(.compact) .tool::after { display: none; }
.palette.compact { width: 56px; gap: 5px; } .palette.compact .pal-toggle { align-self: center; } .palette.compact .pal-toggle span { display: inline-block; transform: scaleX(-1); }
.palette.compact .pal-group, .palette.compact .tool .plabel { display: none; } .palette.compact .tool { width: 40px; height: 40px; justify-content: center; padding: 0; } .palette.compact .tool kbd { position: absolute; right: 2px; bottom: 0; }
@media (max-width: 760px) { .palette, .palette.compact { width: auto; flex-direction: row; } .palette .pal-group, .palette .tool .plabel, .palette .pal-toggle { display: none; } .palette .tool { width: 40px; height: 40px; justify-content: center; padding: 0; } }

/* Start menu (classic: strip on the left, Programs flies out to the right) */
.sm2 { position: fixed; z-index: 700; left: 4px; bottom: 44px; display: flex; background: var(--chrome); border: 2px solid var(--ink-line); box-shadow: var(--bevel-out), 5px 5px 0 var(--shadow); color: var(--ink); max-height: calc(100vh - 52px); }
.sm2 .strip { width: 42px; flex: none; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px; padding: 8px 0 10px; background: var(--title-grad-v); }
.sm2 .strip b { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 15px var(--f-title); letter-spacing: 4px; color: var(--title-ink); white-space: nowrap; text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.35); }
.sm2 .items { min-width: 230px; padding: 3px; overflow-y: auto; display: flex; flex-direction: column; }
.sm2 .it { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; background: none; border: 0; color: var(--ink); font: 16px var(--f-ui); text-align: left; cursor: default; }
.sm2 .it:hover, .sm2 .it.open, .sm2 .it:focus-visible { background: var(--menu-hover); color: var(--menu-hover-ink); outline: 0; }
.sm2 .it i { display: grid; place-items: center; width: 28px; flex: none; } .sm2 .it span { flex: 1; } .sm2 .it em { font: 10px var(--f-title); font-style: normal; opacity: 0.7; } .sm2 .it .arr { width: auto; font-size: 12px; }
.sm2 hr { border: 0; border-top: 2px solid var(--chrome-lo); border-bottom: 2px solid var(--chrome-hi); margin: 3px 2px; }
.sm2 .fly { position: fixed; z-index: 710; min-width: 250px; background: var(--chrome); border: 2px solid var(--ink-line); box-shadow: var(--bevel-out), 5px 5px 0 var(--shadow); padding: 3px; overflow-y: auto; display: flex; flex-direction: column; }
[data-theme='phosphor'] .sm2, [data-theme='amber'] .sm2, [data-theme='phosphor'] .sm2 .it, [data-theme='amber'] .sm2 .it { color: var(--panel-ink); }
[data-theme='phosphor'] .sm2 .it:hover, [data-theme='amber'] .sm2 .it:hover { color: var(--menu-hover-ink); }

/* clock pop-up */
.clockpop { position: fixed; z-index: 450; right: 6px; bottom: 46px; display: flex; gap: 14px; padding: 12px; background: var(--chrome); border: 2px solid var(--ink-line); box-shadow: var(--bevel-out), 5px 5px 0 var(--shadow); color: var(--ink); max-width: 96vw; flex-wrap: wrap; justify-content: center; }
.clockpop .cp-cal { width: 238px; background: var(--panel); color: var(--panel-ink); box-shadow: var(--bevel-in); padding: 8px; }
.cp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; } .cp-head b { font: 11px var(--f-title); letter-spacing: 1px; } .cp-head button { width: 24px; height: 22px; padding: 0; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); cursor: pointer; }
.cp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font: 14px var(--f-ui); } .cp-grid .dw { font: 9px var(--f-title); color: var(--panel-dim); padding: 2px 0; } .cp-grid .d { padding: 3px 0; cursor: default; } .cp-grid .d.o { color: var(--panel-dim); opacity: 0.5; } .cp-grid .d.t { background: var(--menu-hover); color: var(--menu-hover-ink); font-weight: 700; } .cp-grid .d.ev::after { content: ''; display: block; width: 4px; height: 4px; margin: 0 auto; background: var(--acc); }
.clockpop .cp-side { width: 170px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cp-side canvas { width: 130px; height: 130px; image-rendering: pixelated; background: var(--panel); box-shadow: var(--bevel-in); } .cp-side .cp-time { font: 30px/1 var(--f-num); } .cp-side .cp-date { font: 14px var(--f-ui); text-align: center; } .cp-side .cp-tz { font: 10px var(--f-title); color: var(--panel-dim); }
.cp-side .btn { width: 100%; }
.tray .clock { cursor: default; } .tray .clock:hover { background: var(--chrome-hi2); }
.tray button.clock { background: none; border: 0; color: inherit; padding: 2px 6px; } .start.pressed { box-shadow: var(--bevel-in); }
.tbtn[hidden] { display: none !important; }

/* presence + collaboration */
.avatar-chip { display: inline-grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink-line); color: #14142b; font-family: var(--f-title); font-weight: 700; flex: none; } .avatar-chip.idle { opacity: 0.45; filter: grayscale(0.6); }
.presence { display: flex; align-items: center; height: 26px; padding: 0 6px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); cursor: pointer; } .presence .avatar-chip + .avatar-chip { margin-left: -7px; } .presence em { font: 10px var(--f-title); font-style: normal; margin-left: 4px; } .presence.following { box-shadow: var(--bevel-in), 0 0 0 2px var(--acc); }
[data-theme='phosphor'] .presence, [data-theme='amber'] .presence { color: var(--panel-ink); }
.whopop { position: fixed; z-index: 450; right: 130px; bottom: 46px; width: min(360px, 96vw); background: var(--chrome); border: 2px solid var(--ink-line); box-shadow: var(--bevel-out), 5px 5px 0 var(--shadow); color: var(--ink); }
.wp-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--title-grad); color: var(--title-ink); } .wp-head b { flex: 1; font: 11px var(--f-title); letter-spacing: 2px; }
.wp-list { max-height: 360px; overflow: auto; background: var(--panel); color: var(--panel-ink); } .wp-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); } .wp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; } .wp-info b { font: 15px var(--f-ui); } .wp-info span { font: 13px var(--f-ui); color: var(--panel-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wp-info em { font: 9px var(--f-title); font-style: normal; color: var(--panel-dim); } .wp-act { display: flex; gap: 4px; }
.whopop .callout { margin: 6px; padding: 6px 8px; background: var(--seg-bg); border-left: 5px solid var(--acc); font: 14px var(--f-ui); display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.lockbar { background: var(--warn); color: #14142b; padding: 5px 10px; font: 14px var(--f-ui); display: flex; gap: 8px; align-items: center; } .lockbar b { font-weight: 700; }
.team { display: flex; height: 100%; min-height: 0; } .t-side { width: 210px; flex: none; border-right: 2px solid var(--line); padding: 8px; overflow: auto; display: flex; flex-direction: column; gap: 3px; } .t-side h4 { margin: 2px 0 4px; font: 10px var(--f-title); letter-spacing: 1px; color: var(--panel-dim); }
.tch { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 6px; background: none; border: 0; color: var(--panel-ink); font: 15px var(--f-ui); text-align: left; cursor: pointer; position: relative; } .tch span:not(.hash):not(.avatar-chip) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tch:hover, .tch.on { background: var(--seg-bg); } .tch.on { box-shadow: inset 4px 0 0 var(--acc); } .tch .hash { width: 20px; text-align: center; color: var(--acc); font-weight: 700; } .tch .bad { background: var(--hot); color: #fff; font: 10px var(--f-title); padding: 1px 5px; } .on-dot { width: 8px; height: 8px; background: var(--ok); border-radius: 50%; }
.t-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .t-head { padding: 8px 12px; border-bottom: 2px solid var(--line); font: 15px var(--f-ui); } .t-msgs { flex: 1; overflow: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.t-msg { display: flex; gap: 10px; align-items: flex-start; } .t-meta { display: flex; gap: 8px; align-items: baseline; } .t-meta b { font: 15px var(--f-ui); } .t-meta em { font: 9px var(--f-title); font-style: normal; color: var(--panel-dim); } .t-text { font: 16px/1.35 var(--f-ui); white-space: pre-wrap; word-break: break-word; } .t-text.sys { color: var(--panel-dim); font-style: italic; }
.t-invite { display: flex; gap: 10px; align-items: center; padding: 6px 10px; background: var(--seg-bg); border-left: 5px solid var(--acc); font: 15px var(--f-ui); } .t-input { display: flex; gap: 8px; padding: 8px; border-top: 2px solid var(--line); } .t-input textarea { resize: none; flex: 1; }
@media (max-width: 700px) { .team { flex-direction: column; } .t-side { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 2px solid var(--line); } .t-side h4 { display: none; } }

/* arcade */
.arc { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 8px; gap: 8px; overflow: auto; }
.arc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-content: start; }
.arc-card { background: var(--panel); color: var(--panel-ink); box-shadow: var(--bevel-in); display: flex; flex-direction: column; } .arc-card .cover { height: 96px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; background: repeating-linear-gradient(135deg, var(--sc) 0 10px, color-mix(in srgb, var(--sc) 78%, #000) 10px 20px); color: #fff; cursor: pointer; } .cover b { font: 700 28px var(--f-title); text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4); } .cover span { font: 9px var(--f-title); letter-spacing: 1px; background: rgba(0, 0, 0, 0.45); padding: 2px 6px; }
.arc-card .ci { padding: 6px 8px 0; display: flex; flex-direction: column; } .arc-card .ci b { font: 15px var(--f-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .arc-card .ci em { font: 11px var(--f-ui); font-style: normal; color: var(--panel-dim); } .arc-card .ca { display: flex; gap: 4px; padding: 6px 8px 8px; }
.lobby { display: flex; flex-direction: column; gap: 8px; max-width: 760px; } .lobby h3 { margin: 0; font: 700 13px var(--f-title); letter-spacing: 2px; } .room { display: flex; gap: 12px; align-items: center; padding: 8px 12px; background: var(--panel); color: var(--panel-ink); box-shadow: var(--bevel-in); } .room .rm { flex: 1; display: flex; flex-direction: column; gap: 3px; } .room .rm b { font: 17px var(--f-ui); } .room .rm span { font: 13px var(--f-ui); color: var(--panel-dim); } .rp { display: flex; gap: 4px; align-items: center; } .avatar-chip.empty { background: none; border-style: dashed; color: var(--panel-dim); } .room .ra { display: flex; gap: 6px; }
.arc-play { flex: 1; min-height: 0; display: flex; gap: 10px; } .arc-stage { position: relative; flex: 1; min-width: 0; background: #000; box-shadow: var(--bevel-in); outline: 0; } .arc-frame, .arc-video { width: 100%; height: 100%; border: 0; display: block; background: #000; object-fit: contain; } .arc-wait { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 16px var(--f-title); background: rgba(0, 0, 0, 0.6); }
.arc-side { width: 250px; flex: none; display: flex; flex-direction: column; gap: 6px; overflow: auto; } .arc-side h4 { margin: 8px 0 0; font: 10px var(--f-title); letter-spacing: 1px; color: var(--panel-dim); } .seat { display: flex; gap: 8px; align-items: center; font: 14px var(--f-ui); } .seat span:not(.avatar-chip) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .seat.empty { opacity: 0.6; }
.gchat { display: flex; flex-direction: column; gap: 4px; } .gchat-log { max-height: 160px; overflow: auto; font: 14px var(--f-ui); background: var(--panel); color: var(--panel-ink); padding: 6px; box-shadow: var(--bevel-in); min-height: 60px; }
.invite-card { position: fixed; right: 18px; top: 70px; z-index: 1200; width: 290px; background: #fffbe0; color: #14142b; border: 3px solid #14142b; box-shadow: 5px 5px 0 var(--shadow); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; font: 15px var(--f-ui); } .invite-card .row { display: flex; gap: 8px; }
@media (max-width: 800px) { .arc-play { flex-direction: column; } .arc-side { width: auto; } .arc-stage { min-height: 260px; } }

#icons .dicon { animation: none !important; transition: none; } #icons .dicon.drag { will-change: transform; }
body.dragging-icons #desk *, body.dragging-icons .deco { animation-play-state: paused !important; }

/* arcade: touch pad, controller dialog, shelf */
.touchpad { position: absolute; inset: 0; pointer-events: none; z-index: 5; touch-action: none; }
.touchpad .tp { pointer-events: auto; position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.7); background: rgba(20, 20, 43, 0.5); color: #fff; font: 700 18px var(--f-title); touch-action: none; user-select: none; }
.touchpad .tp.on { background: var(--acc); color: #14142b; }
.tp-dpad { position: absolute; left: 14px; bottom: 18px; width: 170px; height: 170px; } .tp-dpad .tp { width: 56px; height: 56px; border-radius: 12px; } .tp-dpad .u { left: 57px; top: 0; } .tp-dpad .d { left: 57px; bottom: 0; } .tp-dpad .l { left: 0; top: 57px; } .tp-dpad .r { right: 0; top: 57px; }
.tp-face { position: absolute; right: 14px; bottom: 22px; width: 160px; height: 150px; } .tp-face .fa { right: 0; top: 24px; } .tp-face .fb { right: 70px; top: 62px; } .tp-face .fx { right: 70px; top: -14px; } .tp-face .fy { right: 140px; top: 24px; width: 50px; height: 50px; }
.tp-shoulders .tp { width: 70px; height: 38px; border-radius: 10px; top: 8px; } .tp-shoulders .tp:first-child { left: 10px; } .tp-shoulders .tp:last-child { right: 10px; }
.tp-mid { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 14px; pointer-events: none; } .tp-mid .tp { position: static; width: 78px; height: 30px; border-radius: 14px; font-size: 10px; pointer-events: auto; }
.padrows { display: grid; gap: 4px; } .padrow { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; align-items: center; padding: 3px 6px; font: 15px var(--f-ui); } .padrow.learning { background: var(--seg-bg); outline: 2px solid var(--acc); } .padstate { font: 14px var(--f-ui); min-height: 22px; word-break: break-word; }
.arc-link { display: flex; flex-wrap: wrap; gap: 2px 10px; font: 12px var(--f-ui); color: var(--panel-dim); } .arc-link b { color: var(--panel-ink); } .arc-link .good { color: var(--ok); } .arc-link .warn { color: var(--warn); } .arc-link .bad { color: var(--hot); }
.arc-relay { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; image-rendering: pixelated; }
.shelf-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; } .shelf-row .arc-card { flex: 0 0 150px; } .arc-sec { margin: 6px 0 -2px; font: 11px var(--f-title); letter-spacing: 2px; color: var(--panel-dim); display: flex; gap: 10px; align-items: center; }
.arc-card .cover.img { background-size: cover; background-position: center; } .arc-card .cover.img b, .arc-card .cover.img span { display: none; } .arc-card .cover { position: relative; } .arc-card .badge { position: absolute; top: 4px; right: 4px; font: 9px var(--f-title); background: rgba(0, 0, 0, 0.6); color: #fff; padding: 2px 5px; } .arc-card .cover .sysb { position: absolute; left: 4px; bottom: 4px; font: 9px var(--f-title); background: rgba(0, 0, 0, 0.6); color: #fff; padding: 2px 5px; }
.arc-card .cover.img .sysb { display: block; } .arc-card .tags { font: 11px var(--f-ui); color: var(--panel-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sysrow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); font: 15px var(--f-ui); } .sysrow em { font: 11px var(--f-ui); color: var(--panel-dim); font-style: normal; }
.arc-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(0, 0, 0, 0.7); color: #fff; padding: 6px 12px; font: 14px var(--f-ui); z-index: 6; cursor: pointer; } .seat-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ===== Vault ===== */
.vlt { display: grid; grid-template-columns: 250px minmax(0, 1fr) 270px; height: 100%; min-height: 0; } .v-left, .v-right { display: flex; flex-direction: column; min-height: 0; border-right: 2px solid var(--line); padding: 6px; gap: 6px; overflow: hidden; } .v-right { border-right: 0; border-left: 2px solid var(--line); }
.v-mid { display: flex; flex-direction: column; min-width: 0; min-height: 0; } .v-top, .v-tools { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; } .v-top select { flex: 1; min-width: 0; }
.v-tree { flex: 1; overflow: auto; } .v-row { display: flex; gap: 6px; align-items: center; padding: 3px 6px; font: 15px var(--f-ui); color: var(--panel-ink); cursor: default; white-space: nowrap; } .v-row span { overflow: hidden; text-overflow: ellipsis; flex: 1; } .v-row i { width: 12px; font-style: normal; color: var(--acc); } .v-row.dir { font-weight: 700; } .v-row:hover { background: var(--seg-bg); } .v-row.on { background: var(--seg-bg); box-shadow: inset 4px 0 0 var(--acc); } .v-row.drop { outline: 2px dashed var(--acc); } .v-row.att { color: var(--panel-dim); } .v-row em { color: var(--warn); font-style: normal; }
.v-hit { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 5px 6px; color: var(--panel-ink); cursor: pointer; } .v-hit b { display: block; font: 14px var(--f-ui); } .v-hit span { display: block; font: 12px var(--f-ui); color: var(--panel-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .v-hit:hover { background: var(--seg-bg); } .v-hit.missing b { color: var(--panel-dim); text-decoration: line-through; } .v-hit.o { font: 14px var(--f-ui); }
.v-tags { display: flex; flex-wrap: wrap; gap: 4px; max-height: 90px; overflow: auto; align-items: center; } .v-tags b { font: 9px var(--f-title); letter-spacing: 1px; color: var(--panel-dim); } .vtag { background: none; border: 0; color: var(--acc); font: 13px var(--f-ui); cursor: pointer; padding: 0 4px; text-decoration: none; }
.v-bar { display: flex; gap: 8px; align-items: center; background: var(--seg-bg); padding-right: 6px; } .v-bar .v-tabs { flex: 1; min-width: 0; }
.v-body { flex: 1; min-height: 0; display: grid; } .v-body.split { grid-template-columns: 1fr 1fr; } .v-body.edit, .v-body.view { grid-template-columns: 1fr; } .v-ed { min-width: 0; min-height: 0; position: relative; border-right: 2px solid var(--line); } .v-ed .CodeMirror { position: absolute; inset: 0; height: auto; font: 17px/1.5 var(--f-ui); background: var(--panel); color: var(--panel-ink); padding: 6px; }
.v-prev { overflow: auto; padding: 14px 20px; background: var(--panel); color: var(--panel-ink); font: 17px/1.5 var(--f-ui); } .v-prev h2 { font-size: 26px; } .v-prev h3 { font-size: 21px; }
a.wikilink { color: var(--acc); text-decoration: underline; cursor: pointer; } a.wikilink.missing { color: var(--panel-dim); text-decoration: underline dotted; } .cm-wikilink { color: var(--acc); } .cm-vtag { color: var(--c2); } .cm-vmention { color: var(--c5); }
.embed { border-left: 4px solid var(--acc); margin: 8px 0; padding: 4px 12px; background: var(--seg-bg); } .embed-t { font: 10px var(--f-title); letter-spacing: 1px; color: var(--panel-dim); } img.vimg { max-width: 100%; } mark { background: var(--warn); color: #14142b; } input.vtask { accent-color: var(--acc); width: 16px; height: 16px; vertical-align: middle; }
blockquote.callout { border-left: 5px solid var(--c2); background: var(--seg-bg); } blockquote.c-warning, blockquote.c-danger { border-left-color: var(--hot); } blockquote.c-tip, blockquote.c-success { border-left-color: var(--ok); } .props { font: 14px var(--f-ui); border-collapse: collapse; margin-bottom: 12px; } .props th { text-align: left; color: var(--panel-dim); padding: 1px 12px 1px 0; }
.v-rbox { overflow: auto; flex: 1; } .v-rbox h4 { margin: 8px 0 3px; font: 10px var(--f-title); letter-spacing: 1px; color: var(--panel-dim); } .v-comment { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--line); font: 14px var(--f-ui); } .v-comment div { flex: 1; } .v-comment em { margin-left: 6px; font: 9px var(--f-title); font-style: normal; color: var(--panel-dim); } .v-comment p { margin: 2px 0 0; white-space: pre-wrap; } .v-comment blockquote { margin: 3px 0; font-size: 13px; color: var(--panel-dim); }
.v-ver { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font: 14px var(--f-ui); } .v-old { max-height: 60vh; overflow: auto; white-space: pre-wrap; font: 15px var(--f-num); }
.v-graph { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--panel); } .v-gbar { display: flex; gap: 10px; align-items: center; padding: 6px 10px; height: 24px; } .v-graph canvas { flex: 1; width: 100%; }
.v-ask { border-top: 2px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 6px; max-height: 42%; overflow: auto; } .v-answer { background: var(--seg-bg); padding: 8px 10px; min-height: 40px; font: 15px var(--f-ui); }
.v-link { font: 14px var(--f-num); word-break: break-all; flex: 1; } .lockbar.ro { background: var(--seg-bg); color: var(--panel-ink); }
@media (max-width: 1000px) { .vlt { grid-template-columns: 200px minmax(0, 1fr); } .v-right { display: none; } } @media (max-width: 700px) { .vlt { grid-template-columns: 1fr; } .v-left { display: none; } }
.cm-s-default .cm-header { color: var(--c1) !important; font-weight: 700; } .v-ed .cm-link, .v-ed .cm-url { color: var(--c2); }

.share .share-h { margin: 12px 0 2px; font: 10px var(--f-title); letter-spacing: 1px; color: var(--panel-dim); } .scopes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; } .scope { text-align: left; padding: 8px 10px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 2px; } .scope b { font: 15px var(--f-ui); } .scope span { font: 13px var(--f-ui); opacity: 0.8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .scope.on { box-shadow: var(--bevel-in); background: var(--acc2); color: #14142b; }
.share .who { display: flex; gap: 8px; align-items: center; margin-top: 6px; } .share .who-row { padding-left: 32px; } .share .who-row.cur { background: var(--seg-bg); } .share .who-row span { flex: 1; font: 14px var(--f-ui); } .v-row em.shared { font-style: normal; font-size: 11px; opacity: 0.8; }
.share .field.sm { min-width: 120px; width: auto; }
.cmd-i.vq { grid-template-columns: minmax(0, 1fr) auto; } .cmd-i.vq b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cmd-i.vq em { font-style: normal; opacity: 0.7; font-size: 13px; white-space: nowrap; }
.addr.pbar { cursor: text; } .addr.pbar .seg { cursor: pointer; padding: 0 1px; } .addr.pbar a.seg:hover { background: var(--acc); color: #14142b; text-decoration: none; } .addr.pbar b.seg { cursor: default; } .addr.pbar a.sep { cursor: pointer; padding: 0 3px; color: var(--panel-dim); } .addr.pbar a.sep:hover { background: var(--acc); color: #14142b; text-decoration: none; } .addr .pfill { flex: 1; align-self: stretch; display: flex; align-items: center; min-width: 20px; }
.addr.editing { overflow: visible; } .addr-in { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--acc); font: inherit; padding: 0 2px; }
.addr-sug { position: fixed; z-index: 9000; max-height: 320px; overflow: auto; background: var(--chrome, #d4d4d4); border: 2px solid var(--ink, #000); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35); } .addr-sug[hidden] { display: none; }
.asug { display: flex; justify-content: space-between; gap: 18px; width: 100%; padding: 4px 10px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink, #000); font: 15px var(--f-ui); } .asug em { font-style: normal; opacity: 0.6; font-size: 13px; } .asug.on, .asug:hover { background: var(--acc); color: #14142b; }
.v-row.dir.loc { background: var(--seg-bg); box-shadow: inset 4px 0 0 var(--acc2, var(--acc)); }
/* virtual desktops */
.desks { display: flex; gap: 2px; align-items: center; margin: 0 6px; flex: none; } .desks[hidden] { display: none; }
.dk { position: relative; min-width: 24px; height: 26px; padding: 0 6px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); font: 14px var(--f-num); cursor: pointer; } .dk:hover { background: var(--seg-bg); } .dk.on { box-shadow: var(--bevel-in); background: var(--acc); color: #14142b; } .dk sup { font-size: 9px; margin-left: 1px; opacity: 0.8; } .dk.add { opacity: 0.75; }
#windows.deskswap { animation: deskswap 0.22s ease-out; } #windows.deskswap[data-swap="r"] { animation-name: deskswapr; }
@keyframes deskswap { from { transform: translateX(36px); opacity: 0.2; } to { transform: none; opacity: 1; } } @keyframes deskswapr { from { transform: translateX(-36px); opacity: 0.2; } to { transform: none; opacity: 1; } }
.dkov { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; } .dkmini { background: var(--chrome); border: 0; box-shadow: var(--bevel-out); padding: 8px; cursor: pointer; text-align: left; color: var(--ink); } .dkmini.on { box-shadow: var(--bevel-in), 0 0 0 3px var(--acc); } .dkmini:hover { background: var(--seg-bg); }
.dkscreen { position: relative; aspect-ratio: 16 / 10; background: var(--desk); box-shadow: var(--bevel-in); overflow: hidden; } .dkwin { position: absolute; background: var(--panel); border: 2px solid var(--ink); box-sizing: border-box; overflow: hidden; } .dkwin b { display: block; background: var(--acc); color: #14142b; font: 10px var(--f-title); padding: 1px 3px; white-space: nowrap; overflow: hidden; }
.dkcap { margin-top: 6px; display: flex; flex-direction: column; } .dkcap b { font: 15px var(--f-ui); } .dkcap em { font: 13px var(--f-ui); font-style: normal; opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dkmini.new { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 140px; } .dkmini.new b { font: 40px var(--f-title); color: var(--acc); }
/* spotlight */
.spotback { align-items: flex-start !important; padding-top: 9vh; } .spotlist { margin-top: 8px; max-height: 56vh; overflow: auto; }
.spothead { display: flex; justify-content: space-between; padding: 8px 8px 2px; font: 10px var(--f-title); letter-spacing: 1px; color: var(--panel-dim); } .spothead em { font-style: normal; }
.spotit { display: flex; align-items: center; gap: 10px; width: 100%; padding: 5px 8px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--panel-ink, var(--ink)); font: 16px var(--f-ui); } .spotit i { flex: none; width: 20px; display: flex; color: var(--acc); }
.spotit .sp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .spotit .sp-t b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .spotit .sp-t small { font: 13px var(--f-ui); opacity: 0.65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spotit > em { font-style: normal; font-size: 13px; opacity: 0.6; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spotit.on { background: var(--acc); color: #14142b; } .spotit.on i, .spotit.on em, .spotit.on small { color: #14142b; opacity: 0.9; }
.spotfoot { display: flex; gap: 14px; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line, rgba(0,0,0,.15)); font: 12px var(--f-ui); opacity: 0.65; }
.spotbtn { height: 24px; min-width: 26px; padding: 0 6px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); font: 16px var(--f-ui); cursor: pointer; margin-right: 4px; } .spotbtn:hover { background: var(--seg-bg); }
/* settings history */
.chist .ch-cols { display: grid; grid-template-columns: minmax(220px, 2fr) 3fr; gap: 12px; min-height: 0; } .ch-list { max-height: 62vh; overflow: auto; background: var(--panel); box-shadow: var(--bevel-in); } .ch-item { display: flex; flex-direction: column; width: 100%; text-align: left; padding: 6px 10px; background: none; border: 0; border-bottom: 1px dotted var(--panel-dim); color: var(--panel-ink); cursor: pointer; font: 15px var(--f-ui); } .ch-item em { font: 12px var(--f-ui); font-style: normal; opacity: 0.65; } .ch-item.on, .ch-item:hover { background: var(--seg-bg); box-shadow: inset 4px 0 0 var(--acc); }
.ch-view { min-width: 0; } .ch-diff { max-height: 46vh; overflow: auto; background: var(--panel); box-shadow: var(--bevel-in); padding: 8px; font: 13px/1.35 monospace; white-space: pre; color: var(--panel-ink); } .ch-diff .add { color: #1c8f4a; background: rgba(40, 200, 100, 0.12); } .ch-diff .del { color: #c0392b; background: rgba(220, 60, 60, 0.12); } .ch-diff .hunk { color: var(--acc); }
.chist { box-sizing: border-box; width: 100%; height: 100%; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; } .chist h3 { margin: 0; font: 700 13px var(--f-title); letter-spacing: 2px; } .chist > p { margin: 0; } .chist .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .chist .grow { flex: 1; }
.chist .ch-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(230px, 2fr) minmax(0, 3fr); gap: 12px; } .chist .ch-list { max-height: none; min-height: 0; overflow: auto; } .chist .ch-view { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 6px; } .chist .ch-view h4 { margin: 0; font: 16px var(--f-ui); color: var(--panel-ink); letter-spacing: 0; } .chist .ch-diff { max-height: none; flex: 1; min-height: 120px; }
@media (max-width: 760px) { .chist .ch-cols { grid-template-columns: 1fr; grid-auto-rows: minmax(160px, 1fr); } }
.pushstat { margin: 8px 0 4px; display: flex; flex-direction: column; gap: 6px; } .pushdev h4 { margin: 8px 0 2px; } .pushrow { display: flex; gap: 10px; align-items: center; padding: 3px 0; border-bottom: 1px dotted var(--panel-dim); } .pushrow b { flex: none; font-weight: 400; } .pushrow span { flex: 1; }
/* backups */
.bkp { box-sizing: border-box; width: 100%; height: 100%; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; overflow: auto; } .bkp h3 { margin: 0; font: 700 13px var(--f-title); letter-spacing: 2px; } .bkp h4 { margin: 8px 0 0; font: 10px var(--f-title); letter-spacing: 1px; color: var(--panel-dim); } .bkp .row { display: flex; gap: 8px; align-items: center; } .bkp .row.wrap { flex-wrap: wrap; } .bkp .grow { flex: 1; min-width: 0; } .bkp .pair { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0; } .bkp .pair > span:first-child { min-width: 150px; }
.bkrow { display: flex; gap: 6px; align-items: center; padding: 6px 8px; background: var(--panel); box-shadow: var(--bevel-in); } .bkrow b { display: block; font: 16px var(--f-ui); font-weight: 400; } .bkrow em { font: 12px var(--f-ui); font-style: normal; opacity: 0.65; word-break: break-all; }
.bkfiles { max-height: 46vh; overflow: auto; background: var(--panel); box-shadow: var(--bevel-in); padding: 6px; } .bkgroup { padding: 4px 0 0; } .bkgroupfiles { padding-left: 22px; } .bkfile { display: flex; gap: 4px; font: 14px var(--f-ui); padding: 1px 0; } .bkfile em { margin-left: auto; font-style: normal; opacity: 0.6; } .bkfile.off { opacity: 0.5; }
.bkp .field { min-width: 220px; max-width: 460px; flex: 1; } .bkp .field.sm { min-width: 120px; width: 120px; flex: none; } .bkp input[type=number].field.sm { width: 90px; min-width: 90px; }
.qrbox { display: flex; justify-content: center; } .qrbox svg { width: 190px; height: 190px; background: #fff; padding: 6px; box-shadow: var(--bevel-in); }
body.readonly::after { content: 'DEMO · READ-ONLY'; position: fixed; right: 0; top: 0; z-index: 99990; background: var(--warn, #f5a623); color: #14142b; font: 10px var(--f-title); letter-spacing: 1px; padding: 2px 8px; pointer-events: none; }
.bkp .blk { font: 15px var(--f-ui); padding: 1px 0; } .bkp .pill { font: 10px var(--f-title); padding: 2px 8px; background: var(--seg-bg); box-shadow: var(--bevel-in); } .bkp .pill.ok { background: #bfe9c8; color: #14142b; }
.srcread { font: 15px var(--f-num); margin-top: 2px; color: var(--panel-ink); } .srcread.bad { color: #c0392b; }
.urlrow { display: flex; gap: 8px; align-items: center; margin: 3px 0; } .urlrow code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: var(--panel); box-shadow: var(--bevel-in); padding: 4px 8px; font: 15px var(--f-num); }
.chk-row { display: flex; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px dotted var(--panel-dim); } .chk-row .grow b { display: block; font: 16px var(--f-ui); font-weight: 400; } .chk-row small { opacity: 0.7; font: 13px var(--f-ui); } .tick { width: 22px; height: 22px; display: grid; place-items: center; font: 700 14px var(--f-ui); flex: none; box-shadow: var(--bevel-out); } .tick.ok { background: #bfe9c8; color: #14142b; } .tick.no { background: #ffd9a8; color: #14142b; }
/* alert center */
.acp { box-sizing: border-box; width: 100%; height: 100%; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; overflow: auto; } .acp h3 { margin: 0; font: 700 13px var(--f-title); letter-spacing: 2px; } .acp h4 { margin: 8px 0 0; font: 10px var(--f-title); letter-spacing: 1px; color: var(--panel-dim); } .acp .row { display: flex; gap: 8px; align-items: center; } .acp .row.wrap { flex-wrap: wrap; } .acp .grow { flex: 1; min-width: 0; } .acp > p { margin: 0; }
.acp .pair { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0; } .acp .pair > span:first-child { min-width: 90px; } .acp .field { min-width: 120px; flex: 0 1 auto; } .acp .field.sm { min-width: 90px; width: auto; }
.ac-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; } .ac-tile { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); text-align: left; color: var(--ink); } .ac-tile b { font: 26px var(--f-num); line-height: 1; } .ac-tile span { font: 10px var(--f-title); letter-spacing: 1px; opacity: 0.75; }
.ac-tile.crit b { color: var(--hot); } .ac-tile.warn b { color: var(--warn); } .ac-tile.ok b { color: var(--ok); } .ac-tile.dnd { cursor: default; } .ac-tile.dnd b { font: 700 12px var(--f-title); letter-spacing: 1px; } .ac-tile.dnd.on { background: var(--hot); color: #fff; } .ac-tile.dnd .btn { margin-top: 4px; align-self: flex-start; }
.ac-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .ac-filters > .field:first-child { flex: 1 1 200px; } .chip.sev-crit.on { background: var(--hot); color: #fff; } .chip.sev-warn.on { background: var(--warn); color: #111; } .chip.sev-info.on { background: var(--acc2); color: #111; }
.ac-bulk { display: flex; gap: 8px; align-items: center; } .ac-active { margin: 0; }
.ac-list { display: flex; flex-direction: column; gap: 6px; } .ac-card { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; background: var(--panel); box-shadow: var(--bevel-in); border-left: 5px solid var(--acc2); } .ac-card.sev-crit { border-left-color: var(--hot); } .ac-card.sev-warn { border-left-color: var(--warn); } .ac-card.sev-info { border-left-color: var(--acc2); }
.ac-card.done { opacity: 0.6; } .ac-card.muted { background: repeating-linear-gradient(135deg, var(--panel) 0 8px, var(--seg-bg) 8px 16px); } .ac-ic { flex: none; color: var(--panel-dim); margin-top: 2px; } .ac-body { flex: 1; min-width: 0; } .ac-title { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; } .ac-title b { font: 17px var(--f-ui); font-weight: 600; } .ac-msg { font: 15px var(--f-ui); margin-top: 1px; word-break: break-word; } .ac-meta { font: 12px var(--f-ui); color: var(--panel-dim); margin-top: 2px; }
.ac-sev { font: 700 9px var(--f-title); letter-spacing: 1px; padding: 1px 5px; color: #14142b; background: var(--acc2); } .ac-sev.crit { background: var(--hot); color: #fff; } .ac-sev.warn { background: var(--warn); } .ac-state { font: 10px var(--f-title); letter-spacing: 1px; color: var(--panel-dim); border: 1px solid var(--line); padding: 0 5px; }
.ac-acts { display: flex; gap: 4px; flex: none; } .ac-empty { text-align: center; padding: 40px 10px; } .ac-big { font: 700 22px var(--f-title); letter-spacing: 3px; margin-bottom: 6px; color: var(--ok); }
.ac-table { width: 100%; } .ac-row { cursor: pointer; } .ac-row.sev-crit td:first-child { box-shadow: inset 4px 0 0 var(--hot); } .ac-row.sev-warn td:first-child { box-shadow: inset 4px 0 0 var(--warn); } .ac-row:hover { background: var(--seg-bg); } .ac-detail td { background: var(--seg-bg); padding: 6px 10px; }
.ac-group { display: flex; gap: 6px; align-items: center; margin: 10px 0 2px; font: 700 11px var(--f-title); letter-spacing: 1px; color: var(--panel-dim); } .ac-type { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 6px 8px; background: var(--panel); box-shadow: var(--bevel-in); } .ac-type.off { opacity: 0.55; } .ac-type > .grow { flex: 1 1 260px; } .ac-type b { font: 16px var(--f-ui); font-weight: 600; }
.ac-type-ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; flex: 1 1 360px; } .ac-type-ctl .chips { display: flex; gap: 3px; flex-wrap: wrap; }
body.has-alerts .tray .alertchip { cursor: pointer; }
/* pop-out windows (ROADMAP 10.23) */
.g-pop { width: 9px; height: 8px; border: 2px solid currentColor; border-top-width: 3px; position: relative; } .g-pop::after { content: ''; position: absolute; right: -6px; top: -6px; width: 5px; height: 5px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.tb[data-k='b-pop'] { opacity: 0.85; } @media (max-width: 760px) { .tb[data-k='b-pop'] { display: none; } }
.tbtask.popped::after { content: '⧉'; margin-left: 6px; font-size: 12px; opacity: 0.85; }
html[data-detached] #taskbar, html[data-detached] #icons, html[data-detached] .deco, html[data-detached] .titlebar, html[data-detached] .rz, html[data-detached] .snap-preview, html[data-detached] .flop, html[data-detached] #desk, html[data-detached] .spotbtn { display: none !important; }
html[data-detached] #windows { inset: 0 !important; } html[data-detached] .appwin.maxed { padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: var(--chrome) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.popbar { position: fixed; z-index: 920; left: 50%; bottom: 52px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; padding: 8px 14px; background: var(--chrome); border: 2px solid var(--ink-line); box-shadow: var(--bevel-out), 4px 4px 0 var(--shadow); color: var(--ink); font: 14px var(--f-ui); }
.pip-holder { min-height: 40px; }
.popcard .monrow { display: flex; gap: 10px; align-items: center; padding: 3px 0; border-bottom: 1px dotted var(--panel-dim); } .popcard .monrow code { margin-left: auto; }
.wbar .pipb { display: none; } .wbar:hover .pipb { display: grid; } .wbar .pipb { margin-right: 2px; }

/* =====================================================================================================================================
   PHONE SHELL (ROADMAP 10.22) - everything below only applies when <html data-form="phone"> (phone.js decides). Desktop is untouched.
   ===================================================================================================================================== */
.phonebar, .sheet-back, .phome { display: none; }
html[data-form='phone'] body { overflow: hidden; background: var(--desk); -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
html[data-form='phone'] #taskbar, html[data-form='phone'] #icons, html[data-form='phone'] .deco, html[data-form='phone'] #desk, html[data-form='phone'] .flop, html[data-form='phone'] .dtrash, html[data-form='phone'] .spotbtn, html[data-form='phone'] .snap-preview { display: none !important; }
html[data-form='phone'] #windows { inset: 0 !important; }
html[data-form='phone'] .appwin { position: fixed !important; inset: 0 !important; left: 0 !important; top: 0 !important; width: 100% !important; height: 100dvh !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: var(--chrome) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; animation: none !important; transform: none !important; }
html[data-form='phone'] .appwin .titlebar, html[data-form='phone'] .appwin .menubar, html[data-form='phone'] .appwin .toolbar, html[data-form='phone'] .appwin .statusbar, html[data-form='phone'] .appwin .rz { display: none !important; }
html[data-form='phone'] .phonebar { display: flex; position: relative; z-index: 66; flex: none; align-items: center; gap: 2px; min-height: calc(54px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 4px 0 4px; background: var(--title-grad); color: var(--title-ink); }
html[data-form='phone'] .phonebar .pb-btn { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: none; border: 0; color: inherit; border-radius: 50%; } html[data-form='phone'] .phonebar .pb-btn:active { background: rgba(0, 0, 0, 0.18); } html[data-form='phone'] .phonebar .pb-btn[hidden] { display: none; }
html[data-form='phone'] .phonebar .dots { font: 700 26px/1 var(--f-ui); }
html[data-form='phone'] .phonebar .pb-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; } html[data-form='phone'] .phonebar .pb-title b { font: 700 16px var(--f-title); letter-spacing: 0.5px; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } html[data-form='phone'] .phonebar .pb-title span { font: 13px var(--f-ui); opacity: 0.8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-form='phone'] .client { flex: 1; min-height: 0; padding: 0; gap: 0; flex-direction: column; background: var(--chrome); }
html[data-form='phone'] .screen { flex: 1; min-height: 0; padding: 10px; box-shadow: none; border: 0; scroll-behavior: auto; -webkit-overflow-scrolling: touch; }
html[data-form='phone'] .screen.fill { padding: 0; }
html[data-form='phone'] .page { min-height: 100%; }

/* pages: a bottom sheet (many pages) or a bottom tab bar (five or fewer) */
html[data-form='phone'] .palette { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; width: auto; max-height: 74dvh; flex-direction: column; gap: 4px; overflow-y: auto; overflow-x: hidden; padding: 12px 12px calc(14px + env(safe-area-inset-bottom)); background: var(--chrome); border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45) !important; transform: translateY(108%); transition: transform 0.22s ease; border: 0; }
html[data-form='phone'] .appwin.sheet-open .palette { transform: none; }
html[data-form='phone'] .sheet-back { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.2s; } html[data-form='phone'] .appwin.sheet-open .sheet-back { opacity: 1; pointer-events: auto; }
html[data-form='phone'] .palette .pal-toggle, html[data-form='phone'] .palette .tool kbd, html[data-form='phone'] .palette .tool::after { display: none !important; }
html[data-form='phone'] .palette .pal-group, html[data-form='phone'] .palette.compact .pal-group { display: block; margin: 10px 4px 2px; }
html[data-form='phone'] .palette .tool, html[data-form='phone'] .palette.compact .tool { width: 100%; height: 50px; flex: none; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 0 14px; text-align: left; }
html[data-form='phone'] .palette .tool .plabel, html[data-form='phone'] .palette.compact .tool .plabel { display: block; font: 16px var(--f-ui); }
html[data-form='phone'] .appwin.few-pages .palette { position: static; transform: none; flex-direction: row; justify-content: space-around; max-height: none; overflow: visible; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-radius: 0; box-shadow: 0 -2px 0 var(--line) !important; z-index: auto; }
html[data-form='phone'] .appwin.few-pages .palette .pal-group { display: none; }
html[data-form='phone'] .appwin.few-pages .palette .tool, html[data-form='phone'] .appwin.few-pages .palette.compact .tool { flex: 1; width: auto; height: 54px; flex-direction: column; justify-content: center; gap: 2px; padding: 0 2px; }
html[data-form='phone'] .appwin.few-pages .palette .tool .plabel, html[data-form='phone'] .appwin.few-pages .palette.compact .tool .plabel { font: 11px var(--f-ui); }
html[data-form='phone'] .appwin.few-pages .palette .tool.add { display: none; }

/* touch targets, text inputs that do not make the browser zoom, no hover-only things */
html[data-form='phone'] .btn, html[data-form='phone'] .tbtn, html[data-form='phone'] .tab, html[data-form='phone'] .seg-btns button, html[data-form='phone'] button.chip, html[data-form='phone'] .mi, html[data-form='phone'] .tool, html[data-form='phone'] .bkrow .btn { min-height: 44px; }
html[data-form='phone'] .btn.sm { min-height: 40px; padding: 8px 12px; }
html[data-form='phone'] .btn, html[data-form='phone'] .tab, html[data-form='phone'] .chip { font-size: 12px; }
html[data-form='phone'] .field, html[data-form='phone'] select.field, html[data-form='phone'] textarea.field, html[data-form='phone'] input { font-size: 16px; }
html[data-form='phone'] .field { min-height: 44px; } html[data-form='phone'] .field.sm { width: auto; min-width: 90px; }
html[data-form='phone'] .v-row, html[data-form='phone'] .n-item, html[data-form='phone'] .cmd-i, html[data-form='phone'] .spotit, html[data-form='phone'] .ch-item, html[data-form='phone'] .asug { min-height: 44px; }
html[data-form='phone'] .switch { width: 54px; height: 30px; } html[data-form='phone'] .switch i { width: 24px; height: 24px; } html[data-form='phone'] .switch.on i { transform: translateX(24px); }
html[data-form='phone'] .menu-pop { min-width: min(280px, 90vw); max-height: 80dvh; overflow-y: auto; } html[data-form='phone'] .mi { padding: 10px 12px; font-size: 16px; }
html[data-form='phone'] .modal-back { padding: 8px; align-items: end; } html[data-form='phone'] .dlg { width: 100% !important; max-height: 88dvh; border-radius: 14px 14px 0 0; }
html[data-form='phone'] #toasts { top: calc(8px + env(safe-area-inset-top)); right: 8px; left: 8px; } html[data-form='phone'] .toast { max-width: none; }
html[data-form='phone'] .popbar { bottom: 12px; max-width: 94vw; flex-wrap: wrap; }
html[data-form='phone'] .tb[data-k='b-pop'] { display: none; }

/* the home screen */
html[data-form='phone'] body.no-windows .phome { display: block; position: fixed; inset: 0; z-index: 30; overflow-y: auto; padding: calc(14px + env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom)); background: var(--desk); background-image: radial-gradient(var(--desk-dot) 1.5px, transparent 1.6px); background-size: 22px 22px; color: var(--ink); }
.phome .ph-head { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; } .phome .grow { flex: 1; }
.phome .ph-title { display: block; font: 700 20px var(--f-title); letter-spacing: 2px; } .phome .ph-clock { font: 15px var(--f-ui); opacity: 0.75; }
.phome .ph-ic { position: relative; width: 46px; height: 46px; display: grid; place-items: center; background: var(--chrome); border: 0; box-shadow: var(--bevel-out); color: var(--ink); } .phome .ph-ic b { position: absolute; top: -4px; right: -4px; min-width: 18px; padding: 1px 4px; background: var(--hot); color: #fff; font: 700 11px var(--f-ui); text-align: center; border-radius: 9px; }
.phome .ph-search { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; background: var(--panel); color: var(--panel-dim); border: 0; box-shadow: var(--bevel-in); font: 16px var(--f-ui); text-align: left; }
.phome .ph-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; } .phome .ph-tile { display: flex; flex-direction: column; padding: 8px 10px; background: var(--chrome); box-shadow: var(--bevel-out); } .phome .ph-tile b { font: 24px/1.1 var(--f-num); color: var(--ink); font-weight: 400; } .phome .ph-tile span { font: 10px var(--f-title); letter-spacing: 1px; opacity: 0.7; }
.phome .ph-group { margin: 16px 2px 6px; font: 11px var(--f-title); letter-spacing: 2px; opacity: 0.7; }
.phome .ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; } .phome .ph-app { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 2px; background: none; border: 0; color: var(--ink); min-width: 0; } .phome .ph-app:active .ph-ico { transform: scale(0.94); }
.phome .ph-ico { width: 58px; height: 58px; display: grid; place-items: center; background: var(--chrome); border: 2px solid var(--ink-line); box-shadow: var(--bevel-out), 2px 2px 0 var(--shadow); color: var(--ink); transition: transform 0.1s; } .phome .ph-name { font: 13px/1.15 var(--f-ui); text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.phome .ph-foot { margin-top: 20px; text-align: center; opacity: 0.8; }
@media (max-width: 340px) { .phome .ph-grid { grid-template-columns: repeat(3, 1fr); } }

/* phone: dense apps show one pane at a time */
.v-panes { display: none; }
html[data-form='phone'] .vlt { display: flex !important; flex-direction: column; grid-template-columns: none; height: 100%; }
html[data-form='phone'] .vlt > .v-left, html[data-form='phone'] .vlt > .v-mid, html[data-form='phone'] .vlt > .v-right { display: none !important; flex: 1; min-height: 0; width: auto; max-width: none; border: 0; }
html[data-form='phone'] .vlt[data-pane='files'] > .v-left, html[data-form='phone'] .vlt[data-pane='page'] > .v-mid, html[data-form='phone'] .vlt[data-pane='info'] > .v-right { display: flex !important; flex-direction: column; }
html[data-form='phone'] .vlt > .v-panes { display: flex; flex: none; border-top: 1px solid var(--line); background: var(--chrome); padding-bottom: env(safe-area-inset-bottom); }
html[data-form='phone'] .v-panes button { flex: 1; min-height: 50px; border: 0; background: none; color: var(--ink); font: 11px var(--f-title); letter-spacing: 1px; } html[data-form='phone'] .v-panes button.on { background: var(--acc); color: #14142b; }
html[data-form='phone'] .v-mid .seg-btns button:nth-child(2) { display: none; }
html[data-form='phone'] .v-tabs { overflow-x: auto; flex-wrap: nowrap; }
html[data-form='phone'] .notes { flex-direction: column; height: 100%; }
html[data-form='phone'] .notes .n-side { width: auto; height: auto; flex: 1; min-height: 0; border: 0; } html[data-form='phone'] .notes .n-edit { flex: 1; min-height: 0; overflow-y: auto; }
html[data-form='phone'] .notes[data-pane='list'] .n-edit, html[data-form='phone'] .notes[data-pane='edit'] .n-side { display: none; }
html[data-form='phone'] .notes .n-back { margin: 0 0 8px; }
html[data-form='phone'] .grid.stacked .gitem { height: calc(var(--h) * 0.7) !important; }

/* ---- API keys, usage and audit log (ROADMAP 11.2 / 5.2) */
.keycards { display: grid; gap: 10px; margin-top: 10px; } .keycard.dead { opacity: 0.6; }
.keycard .gh { flex-wrap: wrap; gap: 8px; } .keycard .grow { flex: 1 1 200px; }
.qbars { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 6px 0; }
.qbar { position: relative; height: 18px; border: 1px solid var(--line); background: var(--bg2, rgba(0,0,0,0.2)); } .qbar i { position: absolute; inset: 0 auto 0 0; background: var(--acc); opacity: 0.6; } .qbar i.warn { background: var(--warn, #e0b000); } .qbar i.full { background: var(--hot, #e03030); }
.qbar span { position: relative; font-size: 11px; line-height: 16px; padding: 0 4px; }
.daybars { display: flex; align-items: flex-end; gap: 4px; height: 110px; margin: 12px 0; } .daybars .db { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; min-width: 0; }
.daybars .db i { display: block; background: var(--acc); opacity: 0.75; } .daybars .db small { text-align: center; font-size: 10px; opacity: 0.7; overflow: hidden; }
.tbl.audit tr.hot td { color: var(--hot, #e05050); } .tbl.audit tr.warn td { color: var(--warn, #d0a020); } .tbl.audit td code { font-size: 12px; }
.tbl.audit td.msg { word-break: break-all; max-width: 420px; }
.kvgrid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } @media (max-width: 600px) { .kvgrid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.codebox { position: relative; margin: 6px 0; } .codebox pre { margin: 0; padding: 8px 10px; padding-right: 64px; overflow-x: auto; background: rgba(0,0,0,0.25); border: 1px solid var(--line); font: 12px/1.45 var(--mono, monospace); white-space: pre; } .codebox .btn { position: absolute; top: 6px; right: 6px; }
.chcard.dead { opacity: 0.6; } .metricpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 10px; max-height: 190px; overflow: auto; padding: 4px; border: 1px solid var(--line); }

/* ---- pop-outs inside the desktop app have no operating-system frame: the skin's own title bar is shown and is the drag handle */
html[data-detached][data-frame='custom'] .titlebar { display: flex !important; -webkit-app-region: drag; user-select: none; }
html[data-detached][data-frame='custom'] .titlebar .tb, html[data-detached][data-frame='custom'] .titlebar .tbtns, html[data-detached][data-frame='custom'] .titlebar button { -webkit-app-region: no-drag; }
html[data-detached][data-frame='custom'] .titlebar [data-k='b-pop'] { display: grid !important; }
html[data-detached][data-frame='custom'] #windows::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--ink-line); pointer-events: none; z-index: 999; }
html[data-detached][data-frame='custom'] .appwin.maxed .titlebar { margin: 0; border-radius: 0; }

/* ---- OpenRouter page (8.19) */
.orp .omods { display: grid; gap: 6px; margin-top: 8px; } .omod { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); } .omod.blocked { opacity: 0.5; }
.omod .om-main { flex: 1; min-width: 0; } .omod .om-main code { display: block; cursor: copy; overflow: hidden; text-overflow: ellipsis; } .omod .om-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.omod .om-nums { text-align: right; white-space: nowrap; } .orp td .hot, .orp .hot { color: var(--hot, #e05050); }
@media (max-width: 600px) { .omod { flex-wrap: wrap; } .omod .om-nums { text-align: left; } }
.msg .stats .cost { color: var(--acc); }

/* ---- Public address page (5.6) */
.pub .callout.bad { background: color-mix(in srgb, var(--hot) 22%, transparent); border-color: var(--hot); } .pub .callout.good { background: color-mix(in srgb, var(--ok, #3a3) 22%, transparent); border-color: var(--ok, #3a3); }
.pub .steps ol { margin: 6px 0 8px 18px; padding: 0; font-size: 13px; } .pub .steps li { margin-bottom: 4px; } .pub .urlrow a { color: inherit; }

/* ---- Tune & Guard page (9.9 / 8.4 / 9.10) */
.tunepg .perfchart { padding: 4px 0; } .tunepg .perfchart svg { height: 110px; display: block; } .tunepg tr.best td { background: color-mix(in srgb, var(--ok, #3a3) 18%, transparent); } .tunepg tr.hot td, .tunepg td.hot { color: var(--hot, #e05050); } .tunepg td.good { color: var(--ok, #3a3); }
.tunepg .wraptext { white-space: pre-wrap; word-break: break-word; margin: 4px 0; font: inherit; } .tunepg details { margin: 4px 0; } .tunepg .chks { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* =====================================================================================================================================
   PHONE POLISH (second pass): one column, nothing wider than the screen, no sideways scrolling, compact controls, cards instead of tables.
   ===================================================================================================================================== */
html[data-form='phone'] body { overflow-x: hidden; }
html[data-form='phone'] .appwin, html[data-form='phone'] .screen, html[data-form='phone'] .page { max-width: 100vw; overflow-x: hidden; }
html[data-form='phone'] .screen * { max-width: 100%; box-sizing: border-box; }
html[data-form='phone'] .screen :is(p, span, small, b, h3, h4, li, div, td, label) { overflow-wrap: anywhere; }
html[data-form='phone'] .screen :is(pre, code, .code, .mono) { white-space: pre-wrap; word-break: break-all; overflow-x: hidden; max-width: 100%; }
html[data-form='phone'] .screen :is(img, svg, canvas, video) { max-width: 100%; height: auto; }

/* controls: compact, readable, still easy to hit */
html[data-form='phone'] .btn { min-height: 40px; padding: 8px 12px; font-size: 12px; letter-spacing: 0.4px; white-space: normal; line-height: 1.15; }
html[data-form='phone'] .btn.sm { min-height: 36px; padding: 6px 10px; font-size: 11px; }
html[data-form='phone'] .btn.big { min-height: 48px; }
html[data-form='phone'] .field { font-size: 16px; padding: 8px 10px; width: 100%; min-width: 0; }
html[data-form='phone'] .field.sm { width: 100%; min-width: 0; }
html[data-form='phone'] select.field { padding-right: 24px; }
html[data-form='phone'] .btnrow, html[data-form='phone'] .row, html[data-form='phone'] .row.wrap, html[data-form='phone'] .fm-tools, html[data-form='phone'] .chks { flex-wrap: wrap; gap: 6px; }
html[data-form='phone'] .btnrow .btn, html[data-form='phone'] .fm-tools .btn { flex: 1 1 calc(33% - 6px); min-width: 0; }
html[data-form='phone'] .btnrow.tight .btn { flex: 1 1 auto; }
html[data-form='phone'] .pair { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
html[data-form='phone'] .pair > span:first-child { font-size: 11px; opacity: 0.8; }
html[data-form='phone'] .pair .field, html[data-form='phone'] .pair input, html[data-form='phone'] .pair select, html[data-form='phone'] .pair textarea { width: 100% !important; min-width: 0 !important; }
html[data-form='phone'] .frm.row { flex-direction: column; align-items: stretch; }
html[data-form='phone'] .chcard { padding: 10px; }
html[data-form='phone'] .chcard .gh { flex-wrap: wrap; gap: 6px; }
html[data-form='phone'] .chk-row { gap: 8px; align-items: flex-start; } html[data-form='phone'] .chk-row .btn { flex: none; }
html[data-form='phone'] .kvgrid, html[data-form='phone'] .kvgrid.c2, html[data-form='phone'] .kvgrid.c3, html[data-form='phone'] .kvgrid.c4 { grid-template-columns: 1fr 1fr; }
html[data-form='phone'] .kvgrid.c1 { grid-template-columns: 1fr; }
html[data-form='phone'] .qbars { grid-template-columns: 1fr; }
html[data-form='phone'] .metricpick { grid-template-columns: 1fr; max-height: 220px; }
html[data-form='phone'] .lab, html[data-form='phone'] .lab.two, html[data-form='phone'] .cols, html[data-form='phone'] .two { display: flex; flex-direction: column; grid-template-columns: 1fr; }
html[data-form='phone'] .ctabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 4px; overflow: visible; flex-wrap: wrap; }
html[data-form='phone'] .ctabs .btn { min-height: 38px; }
html[data-form='phone'] .rt { min-height: 30px; min-width: 40px; font-size: 11px; padding: 4px 8px; }
html[data-form='phone'] .chip { display: inline-flex; min-height: 0; height: auto; padding: 2px 8px; align-self: flex-start; }
html[data-form='phone'] .pill { display: inline-block; min-height: 0; }
html[data-form='phone'] .switch { flex: none; }
html[data-form='phone'] .tool, html[data-form='phone'] .mi { padding-top: 10px; padding-bottom: 10px; }

/* dashboard cards: as tall as their content, nothing scrolls inside a card */
html[data-form='phone'] .grid.stacked .gitem { height: auto !important; min-height: 120px; margin-bottom: 10px; }
html[data-form='phone'] .grid.stacked .gitem > * { min-height: 0; }
html[data-form='phone'] .grid.stacked .wbody, html[data-form='phone'] .wbody { overflow: visible !important; height: auto; padding-bottom: 8px; }
html[data-form='phone'] .wbody .badges, html[data-form='phone'] .wbody .tags { display: flex; flex-wrap: wrap; gap: 4px; }
html[data-form='phone'] .wbody .tag, html[data-form='phone'] .wbody .badge, html[data-form='phone'] .wbody .chip { min-height: 0 !important; height: auto !important; align-self: auto; }
html[data-form='phone'] .wbody canvas { min-height: 70px; width: 100% !important; }

/* tables: every row is a card; the column name sits next to each value */
html[data-form='phone'] table.tbl, html[data-form='phone'] table.tbl tbody, html[data-form='phone'] table.tbl tr, html[data-form='phone'] table.tbl td { display: block; width: 100%; }
html[data-form='phone'] table.tbl thead { display: none; }
html[data-form='phone'] table.tbl tr { border: 2px solid var(--line); margin: 0 0 8px; padding: 6px 8px; background: var(--panel); }
html[data-form='phone'] table.tbl td { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 0; padding: 3px 0; text-align: right; min-height: 0; }
html[data-form='phone'] table.tbl td::before { content: attr(data-label); flex: none; max-width: 40%; text-align: left; font: 10px var(--f-title); letter-spacing: 0.5px; color: var(--panel-dim); }
html[data-form='phone'] table.tbl td:not([data-label])::before { content: none; }
html[data-form='phone'] table.tbl td:empty { display: none; }
html[data-form='phone'] table.tbl td.acts { justify-content: flex-end; }
html[data-form='phone'] .ptable { overflow-x: hidden; }

/* file manager: a short, tidy toolbar and a single pane */
html[data-form='phone'] .fm-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
html[data-form='phone'] .fm-tools .btn { min-height: 36px; padding: 4px 2px; font-size: 10px; letter-spacing: 0; flex: none; }
html[data-form='phone'] .fm-tools .auto, html[data-form='phone'] .fm-tools label { grid-column: span 2; font-size: 12px; }
html[data-form='phone'] .fm-main { flex-direction: column; } html[data-form='phone'] .fm-places { width: 100%; max-height: 90px; flex-direction: row; flex-wrap: wrap; overflow: hidden auto; }
html[data-form='phone'] .fm-panes { grid-template-columns: 1fr; }
html[data-form='phone'] .fm-fkeys { display: grid; grid-template-columns: repeat(4, 1fr); } html[data-form='phone'] .fk { min-height: 38px; font-size: 10px; }
html[data-form='phone'] .fm-pathbar { flex-wrap: wrap; } html[data-form='phone'] .fm-filter { width: 100% !important; }
html[data-form='phone'] .fm-crumbs { overflow-x: hidden; flex-wrap: wrap; white-space: normal; }

/* other known wide things */
html[data-form='phone'] .termtabs { flex-wrap: wrap; overflow: visible; }
html[data-form='phone'] .calc-body { flex-direction: column; overflow-x: hidden; } html[data-form='phone'] .calc-main { min-width: 0; }
html[data-form='phone'] .cal { flex-direction: column; overflow-x: hidden; } html[data-form='phone'] .cal-grid { min-width: 0; min-height: 300px; }
html[data-form='phone'] .ed-tabs, html[data-form='phone'] .v-tabs { flex-wrap: wrap; overflow: visible; } html[data-form='phone'] .ed-tab { min-height: 36px; }
html[data-form='phone'] .editor textarea, html[data-form='phone'] .ed-area textarea { width: 100% !important; white-space: pre-wrap; }
html[data-form='phone'] .themes { grid-template-columns: 1fr; }
html[data-form='phone'] .arc-games, html[data-form='phone'] .arcgrid { grid-template-columns: repeat(2, 1fr); }
html[data-form='phone'] .modal, html[data-form='phone'] .win.dlg { width: calc(100vw - 16px) !important; max-width: none !important; max-height: 92dvh; overflow-y: auto; }
html[data-form='phone'] .menu-pop { max-width: calc(100vw - 8px); }
html[data-form='phone'] .toast { font-size: 13px; padding: 8px 12px; border-width: 2px; }
html[data-form='phone'] #toasts { top: calc(62px + env(safe-area-inset-top)); }
html[data-form='phone'] .grid.stacked .wbody { flex: 0 0 auto !important; }
html[data-form='phone'] .grid.stacked .gitem { min-height: 0; }
html[data-form='phone'] .grid.stacked .gitem .chartw { height: 230px; }
html[data-form='phone'] .wbody { container-type: inline-size; } html[data-form='phone'] .wbody > div:first-child { height: auto; }
html[data-form='phone'] .wbody canvas.grow, html[data-form='phone'] canvas.grow { flex: none; height: 72px; min-height: 72px; width: 100%; } html[data-form='phone'] .chartw canvas.grow { height: 170px; min-height: 170px; }
html[data-form='phone'] .btn, html[data-form='phone'] button, html[data-form='phone'] .tab, html[data-form='phone'] .tool { overflow-wrap: normal; word-break: normal; }
html[data-form='phone'] .screen .xterm, html[data-form='phone'] .screen .xterm * { max-width: none; overflow-wrap: normal; word-break: normal; }
html[data-form='phone'] .chartw .chead { flex-direction: column; align-items: stretch; } html[data-form='phone'] .chartw .legend { flex-wrap: wrap; min-width: 0; width: 100%; }
html[data-form='phone'] .rtabs { display: flex; flex-wrap: wrap; gap: 4px; }
html[data-form='phone'] .cal-head { flex-wrap: wrap; } html[data-form='phone'] .cal-head .btn { white-space: nowrap; flex: none; }
html[data-form='phone'] :is(.ph, .pr):not(.x):is(.tk, .lan, .jr, .ct) { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; font-size: 12px; }
html[data-form='phone'] :is(.ph, .pr):is(.tk, .lan, .jr, .ct) > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* phone text: smaller than the desktop's, so more fits without scrolling */
html[data-form='phone'] .screen :is(p, li, .dim, .small, label, .msg, .sub, .kv span, td, .chk small, .frm small) { font-size: 14px; line-height: 1.35; }
html[data-form='phone'] .screen :is(.dim.small, small, .small) { font-size: 12.5px; }
html[data-form='phone'] .screen h3 { font-size: 16px; } html[data-form='phone'] .screen h4 { font-size: 13px; }
html[data-form='phone'] button.chip { display: inline-flex; align-items: center; justify-content: center; padding: 4px 12px; }
html[data-form='phone'] .fm-fkeys { display: none; }
html[data-form='phone'] .fm-tools .sepv, html[data-form='phone'] .fm-tools .sep, html[data-form='phone'] .fm-tools hr, html[data-form='phone'] .fm-tools > span.vsep { display: none; }
html[data-form='phone'] .fm-tools .btn { min-height: 34px; }
html[data-form='phone'] .fm-tools label { grid-column: span 2; }

/* private / shared switch (share.js) */
.btn.share { font-size: 10px; padding: 2px 8px; min-height: 0; } .btn.share.on { background: var(--acc); color: #14142b; } .pill.share { font-size: 10px; opacity: 0.8; }
