/* FINANCE 98 - a Windows 98 shell whose every window is a Bloomberg-style terminal panel.
   Palette: clients/finance-rh/PALETTE.md. Lime is the only saturated colour; the chrome is grey; the desk is black.
   Metrics are Windows 98's own: 18px title bar, 2px bevels, 28px taskbar, 16x14 caption buttons, 11px UI text. */
@font-face { font-family: "Jersey 15"; src: url(/vendor/fonts/Jersey15-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "VT323"; src: url(/vendor/fonts/VT323-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/vendor/fonts/JetBrainsMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/vendor/fonts/JetBrainsMono-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --lime: #CDF403; --lime-hi: #DDFF33; --lime-dim: #8FB000; --lime-soft: #1B2400; --lime-mid: #2A3A00;
  --black: #050605; --card: #0B0D0A; --elev: #121510; --panel: #1A1E17;
  --c0: #3A3E3C; --c1: #5A605D; --c2: #7C8380; --c3: #9AA19E; --c4: #B4BAB7; --c5: #CDD2CF; --c6: #E2E6E4; --c7: #F2F4F3;
  --text: #F2F4F3; --down: #FF3B30; --down-soft: #2A0A08;
  --ui: "Jersey 15", "Tahoma", "MS Sans Serif", sans-serif;
  --crt: "VT323", "JetBrains Mono", monospace;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  --tb: 28px; --title: 18px;
  /* the two Windows bevels, as box-shadows so any box can wear them */
  --raised: inset -1px -1px var(--c0), inset 1px 1px var(--c7), inset -2px -2px var(--c1), inset 2px 2px var(--c5);
  --sunken: inset -1px -1px var(--c7), inset 1px 1px var(--c0), inset -2px -2px var(--c5), inset 2px 2px var(--c1);
  --pressed: inset 1px 1px var(--c0), inset -1px -1px var(--c7), inset 2px 2px var(--c1);
  --well: inset 1px 1px var(--c1), inset -1px -1px var(--c7);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--black); color: var(--text); font: 15px/1.2 var(--ui); overflow: hidden; -webkit-font-smoothing: none; -moz-osx-font-smoothing: grayscale; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--lime); }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.crt { font-family: var(--crt); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: #000; }

/* ---------------------------------------------------------------- boot */
.boot { position: fixed; inset: 0; z-index: 900; background: #000; color: var(--c6); font: 20px/1.3 var(--crt); padding: 28px 34px; white-space: pre-wrap; }
.boot .line { opacity: 0; }
.boot .line.on { opacity: 1; }
.boot .ok { color: var(--lime); }
.boot .bad { color: var(--down); }
.splash { position: fixed; inset: 0; z-index: 901; background: #000; display: grid; place-items: center; }
.splash .mark { width: min(56vw, 560px); image-rendering: auto; }
.splash .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: #000; overflow: hidden; border-top: 2px solid var(--c1); }
.splash .bar i { position: absolute; top: 4px; bottom: 4px; width: 26%; background: repeating-linear-gradient(90deg, var(--lime) 0 14px, transparent 14px 18px); animation: slide 1.1s linear infinite; }
@keyframes slide { from { left: -30%; } to { left: 100%; } }
.splash .v { position: absolute; right: 26px; bottom: 34px; font-family: var(--crt); font-size: 22px; color: var(--c4); }
.off { position: fixed; inset: 0; z-index: 902; background: #000; color: var(--lime); font: 26px/1.4 var(--crt); display: grid; place-items: center; text-align: center; padding: 20px; cursor: pointer; }

/* ---------------------------------------------------------------- desktop */
.desk { position: fixed; inset: 0; display: flex; flex-direction: column; }
.wall { position: absolute; inset: 0 0 var(--tb) 0; background: var(--black) url(/brand/wall.png) center 46% / min(46vw, 520px) no-repeat; opacity: 1; }
.tape { position: relative; height: 24px; background: #000; border-bottom: 1px solid var(--lime-mid); overflow: hidden; font: 18px/24px var(--crt); color: var(--lime); white-space: nowrap; }
.tape .run { display: inline-block; padding-left: 100%; animation: tape 42s linear infinite; }
.tape .run b { color: var(--c7); font-weight: 400; }
.tape .run .dn { color: var(--down); }
.tape .run .sep { color: var(--c2); margin: 0 14px; }
@keyframes tape { to { transform: translateX(-100%); } }
.area { position: relative; flex: 1; min-height: 0; }
.icons { position: absolute; left: 6px; top: 8px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 76px); gap: 4px 6px; height: calc(100% - 16px); }
.ic { width: 76px; height: 72px; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 4px 2px; color: var(--c7); text-shadow: 1px 1px 0 #000; }
.ic img { width: 32px; height: 32px; image-rendering: pixelated; }
.ic span { padding: 1px 3px; line-height: 1.15; text-align: center; max-width: 76px; }
.ic:focus-visible, .ic.sel { outline: none; }
.ic:focus-visible span, .ic.sel span { background: var(--lime); color: #000; text-shadow: none; outline: 1px dotted #000; outline-offset: -1px; }

/* ---------------------------------------------------------------- taskbar */
.taskbar { position: relative; z-index: 500; height: var(--tb); background: var(--c4); box-shadow: inset 0 1px var(--c7), inset 0 2px var(--c5); display: flex; align-items: center; gap: 4px; padding: 3px 3px 2px; color: #000; }
.tbtn { height: 22px; padding: 0 6px 0 4px; background: var(--c4); border: 0; box-shadow: var(--raised); display: inline-flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; }
.tbtn:active, .tbtn.down { box-shadow: var(--pressed); }
.tbtn img { width: 16px; height: 16px; image-rendering: pixelated; }
.tsep { width: 2px; height: 22px; box-shadow: inset 1px 0 var(--c1), inset -1px 0 var(--c7); margin: 0 2px; }
.tasks { flex: 1; display: flex; gap: 3px; min-width: 0; overflow: hidden; }
.tasks .tbtn { font-weight: 400; max-width: 180px; min-width: 60px; flex: 1 1 auto; }
.tasks .tbtn.down { font-weight: 700; background: repeating-conic-gradient(var(--c4) 0 25%, var(--c6) 0 50%) 0 0 / 2px 2px; }
.tasks .tbtn span { overflow: hidden; text-overflow: ellipsis; }
.tray { height: 22px; box-shadow: var(--well); display: flex; align-items: center; gap: 8px; padding: 0 8px; white-space: nowrap; }
.tray .pill { display: inline-flex; align-items: center; gap: 5px; }
.tray .pill i { width: 8px; height: 8px; background: var(--lime); box-shadow: inset 1px 1px var(--lime-hi), inset -1px -1px var(--lime-dim); }
.tray .pill.bad i { background: var(--down); box-shadow: none; }
.tray .clock { font-family: var(--mono); font-size: 11px; }

/* start menu */
.start { position: absolute; left: 2px; bottom: calc(var(--tb) - 1px); z-index: 600; width: 190px; background: var(--c4); box-shadow: var(--raised); padding: 3px 3px 3px 26px; color: #000; }
.start .band { position: absolute; left: 3px; top: 3px; bottom: 3px; width: 21px; background: linear-gradient(180deg, var(--c0), var(--lime)); }
.start .band b { position: absolute; left: 0; bottom: 6px; width: 21px; transform: rotate(-90deg); transform-origin: 10px 10px; white-space: nowrap; color: #000; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.start ul { list-style: none; margin: 0; padding: 0; }
.start li { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; }
.start li img { width: 20px; height: 20px; image-rendering: pixelated; }
.start li:hover, .start li:focus-visible { background: var(--lime); outline: none; }
.start li.sep { height: 2px; padding: 0; margin: 3px 0; box-shadow: inset 0 1px var(--c1), inset 0 -1px var(--c7); }
.start li .k { margin-left: auto; color: var(--c1); font-size: 12px; }
.start li:hover .k { color: #000; }

/* ---------------------------------------------------------------- windows */
.win { position: absolute; min-width: 320px; min-height: 200px; background: var(--c4); box-shadow: var(--raised); padding: 3px; display: flex; flex-direction: column; color: #000; outline: none; }
.win.min { display: none; }
.win .cap { height: var(--title); background: var(--c2); color: var(--c6); display: flex; align-items: center; gap: 3px; padding: 0 2px 0 3px; user-select: none; touch-action: none; }
.win.focus .cap { background: var(--lime); color: #000; }
.win .cap img { width: 16px; height: 16px; image-rendering: pixelated; }
.win .cap .t { flex: 1; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 2px; }
.win .cap button { width: 16px; height: 14px; padding: 0; background: var(--c4); border: 0; box-shadow: var(--raised); color: #000; font: 700 12px/1 var(--mono); display: grid; place-items: center; }
.win .cap button:active { box-shadow: var(--pressed); }
.win .cap button.x { margin-left: 2px; }
.win .cap button svg { width: 10px; height: 8px; display: block; }
.win .menu { display: flex; height: 20px; align-items: center; gap: 2px; padding: 0 2px; }
.win .menu button { background: none; border: 0; padding: 1px 6px; }
.win .menu button:hover, .win .menu button.open { background: var(--lime); }
.win .menu button u { text-decoration: underline; }
.win .toolbar { display: flex; align-items: center; gap: 3px; padding: 2px 2px 3px; box-shadow: inset 0 1px var(--c7), inset 0 -1px var(--c1); min-height: 30px; flex-wrap: wrap; }
.win .toolbar .sp { flex: 1; }
.body { flex: 1; min-height: 0; background: #000; box-shadow: var(--sunken); margin: 0 0 2px; overflow: auto; color: var(--c6); font-family: var(--mono); font-size: 12px; padding: 4px; position: relative; display: flex; flex-direction: column; }
.body > * { flex-shrink: 0; }
.body > .split, .body > .term, .body > .viewer { flex: 1 1 auto; min-height: 0; }
.body.plain { background: var(--c4); color: #000; font-family: var(--ui); font-size: 13px; }
.win .status { display: flex; gap: 2px; height: 22px; align-items: stretch; }
.win .status span { box-shadow: var(--well); padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; line-height: 16px; }
.win .status span:first-child { flex: 1; }
.win .grip { position: absolute; right: 3px; bottom: 3px; width: 14px; height: 14px; cursor: nwse-resize; background: repeating-linear-gradient(135deg, transparent 0 3px, var(--c1) 3px 4px, var(--c7) 4px 5px); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.win.zoomed .grip { display: none; }
/* Windows buttons */
.btn { height: 23px; min-width: 75px; padding: 0 10px; background: var(--c4); border: 0; box-shadow: var(--raised); color: #000; font-weight: 700; white-space: nowrap; }
.btn:active { box-shadow: var(--pressed); }
.btn:disabled { color: var(--c1); text-shadow: 1px 1px var(--c7); cursor: default; }
.btn.lime { background: var(--lime); }
.btn.lime:disabled { background: var(--c4); }
.btn:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.btn.sm { height: 21px; min-width: 0; padding: 0 8px; }
.field { height: 21px; background: #000; color: var(--lime); box-shadow: var(--sunken); border: 0; padding: 0 5px; font-family: var(--mono); font-size: 12px; min-width: 0; }
.field:focus { outline: 1px dotted var(--lime); outline-offset: -3px; }
select.field { color: var(--lime); }
.check { display: inline-flex; align-items: center; gap: 6px; }
.check i { width: 13px; height: 13px; background: #000; box-shadow: var(--sunken); display: grid; place-items: center; }
.check.on i::after { content: ""; width: 7px; height: 7px; background: var(--lime); }

/* ---------------------------------------------------------------- terminal panels (inside the black body) */
.panel { border: 1px solid var(--c0); margin: 2px; background: #000; }
.panel > h3 { margin: 0; background: var(--lime); color: #000; font: 700 12px/18px var(--mono); padding: 0 6px; letter-spacing: .04em; display: flex; gap: 8px; }
.panel > h3 small { font-weight: 400; margin-left: auto; opacity: .8; }
.panel .in { padding: 6px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; border-bottom: 1px dotted var(--c0); }
.kv span { color: var(--c3); }
.kv b { font-weight: 400; color: var(--lime); font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.kv b.w { color: var(--c7); }
.kv b.dn { color: var(--down); }
.big { font-family: var(--crt); font-size: 46px; line-height: 1; color: var(--lime); }
.big small { font-size: 20px; color: var(--c3); }
.k { color: var(--c3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.seg { display: flex; gap: 2px; height: 10px; margin: 6px 0; }
.seg i { flex: 1; background: var(--lime-soft); }
.seg i.on { background: var(--lime); }
.fkeys { display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; padding: 4px 2px 2px; background: #000; border-top: 1px solid var(--c0); font-family: var(--mono); font-size: 10px; margin-top: auto; position: sticky; bottom: -4px; z-index: 2; }
.fkeys button { background: var(--elev); border: 0; color: var(--c5); padding: 3px 2px; box-shadow: inset 0 -2px var(--lime-dim); text-align: left; overflow: hidden; white-space: nowrap; }
.fkeys button b { color: var(--lime); margin-right: 3px; }
.fkeys button:hover { background: var(--lime-soft); }
.fkeys button.on { box-shadow: inset 0 -2px var(--lime); color: var(--lime); }
.cmd { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-bottom: 1px solid var(--c0); font-family: var(--mono); color: var(--lime); }
.cmd input { flex: 1; background: none; border: 0; color: var(--lime); font-family: var(--mono); font-size: 12px; outline: none; }
.cmd .go { background: var(--lime); color: #000; font-weight: 700; padding: 0 6px; }
.soon { padding: 22px; color: var(--c5); font-family: var(--mono); }
.soon b { display: block; color: var(--lime); font-family: var(--crt); font-size: 26px; margin-bottom: 6px; }
.empty { padding: 26px 16px; text-align: center; color: var(--c4); display: grid; gap: 10px; justify-items: center; }
table.tt { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11.5px; font-variant-numeric: tabular-nums; }
table.tt th { text-align: left; color: #000; background: var(--lime); padding: 2px 6px; font-weight: 700; white-space: nowrap; }
table.tt td { padding: 3px 6px; border-bottom: 1px solid var(--c0); color: var(--c6); vertical-align: top; }
table.tt td.n, table.tt th.n { text-align: right; }
table.tt tr.me td { background: var(--lime-soft); color: var(--lime); }
table.tt .lime { color: var(--lime); }
table.tt .dn { color: var(--down); }
.doc { padding: 8px 12px 20px; max-width: 760px; color: var(--c6); font-family: var(--mono); font-size: 12px; line-height: 1.55; }
.doc h2 { font: 400 34px/1 var(--crt); color: var(--lime); margin: 8px 0 12px; }
.doc h3 { font: 700 12px/18px var(--mono); background: var(--lime); color: #000; display: inline-block; padding: 0 6px; margin: 18px 0 6px; letter-spacing: .04em; }
.doc p { margin: 0 0 8px; }
.doc b { color: var(--lime); font-weight: 400; }
.doc code { color: var(--c7); }
.doc .fine { color: var(--c3); border-top: 1px dotted var(--c0); padding-top: 8px; margin-top: 16px; font-size: 11px; }
.doc .warn { border: 1px solid var(--down); padding: 6px 8px; margin: 6px 0; color: var(--c6); }
.doc .warn b { color: var(--down); }
.split { display: grid; grid-template-columns: 250px 1fr; gap: 4px; min-height: 0; }
.side { border-right: 1px solid var(--c0); padding-right: 4px; overflow: auto; }
.content { min-width: 0; overflow: auto; }
.tier { color: var(--c3); }
.tier.GRAIL { color: var(--lime); } .tier.LEGENDARY { color: var(--c7); } .tier.EPIC { color: var(--c5); } .tier.RARE { color: var(--c4); } .tier.UNCOMMON { color: var(--c3); } .tier.COMMON { color: var(--c2); }

/* broker tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; padding: 4px; }
.tile { position: relative; background: var(--card); border: 1px solid var(--c0); padding: 4px; text-align: center; cursor: default; color: var(--c5); font-family: var(--mono); font-size: 11px; }
.tile img { width: 100%; aspect-ratio: 1; image-rendering: pixelated; background: var(--elev); }
.tile .n { color: var(--c7); margin-top: 3px; }
.tile .s { color: var(--c3); font-size: 10px; }
.tile.sel { outline: 2px solid var(--lime); outline-offset: -2px; background: var(--lime-soft); }
.tile.in::after { content: "IN"; position: absolute; top: 4px; right: 4px; background: var(--lime); color: #000; font-weight: 700; font-size: 9px; padding: 1px 4px; }
.tile .lock { aspect-ratio: 1; display: grid; place-items: center; color: var(--c1); background: var(--elev); font-family: var(--crt); font-size: 22px; }
.floor { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; padding: 4px; }
.floor i { aspect-ratio: 1; background: var(--lime-soft); border: 1px solid var(--c0); cursor: pointer; }
.floor i.in { background: var(--lime); border-color: var(--lime); }
.floor i.me { outline: 2px solid var(--c7); outline-offset: -2px; }
.floor i.grail { border-color: var(--c7); }
.legend { display: flex; gap: 14px; padding: 6px; color: var(--c3); font-family: var(--mono); font-size: 11px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; background: var(--lime-soft); border: 1px solid var(--c0); vertical-align: -1px; margin-right: 4px; }
.legend i.in { background: var(--lime); } .legend i.me { outline: 2px solid var(--c7); outline-offset: -2px; }
.viewer { display: grid; grid-template-columns: minmax(200px, 46%) 1fr; gap: 8px; padding: 4px; align-content: start; }
.viewer img { width: 100%; image-rendering: pixelated; border: 1px solid var(--c0); }
.viewer .vt { font: 400 30px/1 var(--crt); color: var(--lime); margin: 0 0 6px; }
.buy { display: grid; place-items: center; padding: 14px; gap: 10px; }
.buy button.big { width: 200px; height: 200px; border-radius: 50%; border: 0; background: radial-gradient(circle at 40% 35%, var(--lime-hi), var(--lime) 55%, var(--lime-dim)); color: #000; font: 700 44px/1 var(--crt); box-shadow: 0 0 0 6px var(--c1), 0 0 0 10px var(--c4), 0 0 0 12px var(--c0), 0 10px 0 12px #000, 0 0 40px var(--lime-mid); letter-spacing: .06em; transition: transform .06s; }
.buy button.big:active { transform: translateY(6px); }
.buy button.big:disabled { background: radial-gradient(circle at 40% 35%, var(--c5), var(--c3) 55%, var(--c1)); color: var(--c0); cursor: default; }
.buy .halt { opacity: .55; cursor: not-allowed; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty input { width: 48px; text-align: center; }
.term { overflow: auto; padding: 4px 6px; font-family: var(--mono); font-size: 12px; color: var(--c6); }
.term div { white-space: pre-wrap; word-break: break-word; }
.term .p { color: var(--lime); } .term .d { color: var(--c3); } .term .g { color: var(--lime); font-weight: 700; } .term .e { color: var(--down); }
.term .line { display: flex; gap: 6px; }
.term .line input { flex: 1; background: none; border: 0; color: var(--lime); font-family: var(--mono); font-size: 12px; outline: none; }

/* ---------------------------------------------------------------- dialogs + notes */
.dlgback { position: fixed; inset: 0; z-index: 800; display: grid; place-items: center; background: rgba(0,0,0,.35); }
.dlg { width: min(420px, 92vw); background: var(--c4); box-shadow: var(--raised); padding: 3px; color: #000; }
.dlg .cap { height: var(--title); background: var(--lime); display: flex; align-items: center; padding: 0 3px; font-weight: 700; gap: 4px; }
.dlg .cap img { width: 16px; height: 16px; image-rendering: pixelated; }
.dlg .cap .t { flex: 1; }
.dlg .in { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 12px 8px; align-items: start; font-size: 15px; }
.dlg .in img { width: 32px; height: 32px; image-rendering: pixelated; }
.dlg .in p { margin: 0 0 6px; }
.dlg .acts { display: flex; justify-content: center; gap: 6px; padding: 8px 12px 10px; }
.dlg .typed { width: 100%; margin-top: 6px; }
.login .in { grid-template-columns: 64px 1fr; }
.login .in img { width: 64px; height: 64px; }
.login .row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; margin: 4px 0; }
.notes { position: fixed; right: 6px; bottom: calc(var(--tb) + 6px); z-index: 700; display: grid; gap: 6px; width: min(320px, 92vw); }
.note { background: var(--c4); box-shadow: var(--raised); padding: 3px; color: #000; cursor: pointer; transition: opacity .2s, transform .2s; }
.note .cap { height: var(--title); background: var(--lime); font-weight: 700; padding: 0 4px; display: flex; align-items: center; gap: 4px; }
.note .cap i { width: 10px; height: 10px; background: #000; }
.note.wait .cap { background: var(--c2); color: var(--c7); }
.note.err .cap { background: var(--down); color: #fff; }
.note p { margin: 0; padding: 8px 6px; font-family: var(--mono); font-size: 11.5px; }
.note a { display: block; padding: 0 6px 6px; }

/* ---------------------------------------------------------------- NOKIA (phones): a monochrome lime LCD.
   The classic Nokia green screen IS the palette: everything lime on black, pixel type, inverted selection,
   soft keys. No grey chrome on a phone; the Win98 desktop stays a desktop thing. */
.ppc { display: none; }
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  .icons, .taskbar, .start, .win, .wall, .tape { display: none !important; }
  .desk { display: block; }
  .ppc { display: flex; flex-direction: column; position: fixed; inset: 0; background: #000; color: var(--lime); font-family: var(--crt); }
  .ppc::after { content: ""; position: fixed; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.16) 2px 3px), repeating-linear-gradient(90deg, transparent 0 2px, rgba(0,0,0,.10) 2px 3px); }
  .ppc .top { height: 26px; display: flex; align-items: center; gap: 8px; padding: 2px 8px 0; font-size: 17px; border-bottom: 2px solid var(--lime); }
  .ppc .top .sig, .ppc .top .bat { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 13px; }
  .ppc .top .sig i, .ppc .top .bat i { width: 3.5px; background: var(--lime); }
  .ppc .top .sig i:nth-child(1){height:4px} .ppc .top .sig i:nth-child(2){height:6px} .ppc .top .sig i:nth-child(3){height:8px} .ppc .top .sig i:nth-child(4){height:10px} .ppc .top .sig i:nth-child(5){height:13px}
  .ppc .top .bat i { height: 13px; } .ppc .top .bat i:nth-child(3){opacity:.35}
  .ppc .top .op { flex: 1; text-align: center; letter-spacing: .1em; }
  .ppc .title { min-height: 34px; display: none; align-items: center; justify-content: center; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ppc.inapp .title { display: flex; }
  .ppc .screen { flex: 1; min-height: 0; overflow: auto; position: relative; font-family: var(--mono); font-size: 12.5px; color: var(--c6); }
  .ppc .acts { display: none; flex-wrap: wrap; gap: 4px; padding: 4px 6px; border-top: 2px solid var(--lime); }
  .ppc .acts:has(.btn) { display: flex; }
  .ppc .softkeys { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 2px solid var(--lime); padding-bottom: env(safe-area-inset-bottom); }
  .ppc .softkeys button { height: 46px; background: #000; border: 0; color: var(--lime); font-family: var(--crt); font-size: 21px; letter-spacing: .05em; text-transform: uppercase; }
  .ppc .softkeys button:active { background: var(--lime); color: #000; }
  .ppc .softkeys button:nth-child(2) { border-left: 2px solid var(--lime); border-right: 2px solid var(--lime); }
  /* home: big clock + numbered menu, selection inverted */
  .nhome { padding: 6px 0 10px; font-family: var(--crt); color: var(--lime); }
  .nhome .clock { text-align: center; padding: 14px 0 2px; }
  .nhome .clock .t { font-size: 64px; line-height: 1; }
  .nhome .clock .d { font-size: 17px; color: var(--lime-dim); }
  .nhome .stat { text-align: center; font-size: 16px; color: var(--lime-dim); padding: 2px 14px 10px; }
  .nhome .who { text-align: center; font-size: 18px; padding-bottom: 8px; }
  .nmenu { border-top: 2px solid var(--lime); }
  .nmenu button { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--lime-mid); padding: 11px 12px; color: var(--lime); font-family: var(--crt); font-size: 21px; text-align: left; text-transform: uppercase; letter-spacing: .02em; }
  .nmenu button .n { width: 22px; color: var(--lime-dim); }
  .nmenu button small { margin-left: auto; font-size: 14px; color: var(--lime-dim); text-transform: none; }
  .nmenu button:active, .nmenu button.sel { background: var(--lime); color: #000; }
  .nmenu button:active .n, .nmenu button:active small, .nmenu button.sel .n, .nmenu button.sel small { color: #000; }
  /* app content: the terminal panels go monochrome LCD */
  .ppc .panel { border: 2px solid var(--lime); margin: 6px; }
  .ppc .panel > h3 { font-family: var(--crt); font-size: 18px; line-height: 24px; }
  .ppc .cmd { border-bottom: 2px solid var(--lime); font-family: var(--crt); font-size: 17px; }
  .ppc .kv { border-bottom: 1px dotted var(--lime-mid); font-size: 13px; padding: 4px 0; }
  .ppc .kv span { color: var(--lime-dim); }
  .ppc .kv b, .ppc .kv b.w { color: var(--lime); }
  .ppc .big { font-size: 40px; }
  .ppc .k { color: var(--lime-dim); }
  .ppc .doc { color: var(--lime); font-size: 13px; }
  .ppc .doc b { color: #fff; }
  .ppc .doc h3 { font-family: var(--crt); font-size: 17px; }
  .ppc .doc .warn { border-color: var(--down); }
  .ppc table.tt td { color: var(--lime); border-bottom: 1px solid var(--lime-mid); }
  .ppc .tile { background: #000; border: 2px solid var(--lime-mid); color: var(--lime); }
  .ppc .tile.sel { outline-color: var(--lime); background: var(--lime-soft); }
  .ppc .fkeys { display: none; }
  .ppc .btn { background: #000; box-shadow: none; border: 2px solid var(--lime); color: var(--lime); font-family: var(--crt); font-size: 17px; text-transform: uppercase; height: 34px; }
  .ppc .btn:active { background: var(--lime); color: #000; }
  .ppc .btn:disabled { border-color: var(--lime-mid); color: var(--lime-dim); }
  .ppc .btn.lime { background: var(--lime); color: #000; }
  .ppc .field { border: 2px solid var(--lime); box-shadow: none; height: 30px; font-size: 14px; }
  .ppc .empty { color: var(--lime-dim); }
  .ppc .soon { color: var(--lime-dim); font-family: var(--crt); font-size: 17px; }
  .ppc .soon b { color: var(--lime); font-size: 24px; }
  .ppc .buy button.big { box-shadow: 0 0 0 4px #000, 0 0 0 6px var(--lime); }
  .split { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--lime-mid); padding: 0 0 4px; }
  .viewer { grid-template-columns: 1fr; }
  .floor { grid-template-columns: repeat(16, 1fr); }
  .floor i { border-color: var(--lime-mid); }
  .buy button.big { width: 160px; height: 160px; font-size: 36px; }
  .notes { bottom: calc(52px + env(safe-area-inset-bottom)); }
  .note { background: #000; border: 2px solid var(--lime); color: var(--lime); box-shadow: none; }
  .note .cap { background: var(--lime); color: #000; font-family: var(--crt); }
  .note.err { border-color: var(--down); } .note.err .cap { background: var(--down); color: #fff; }
  .note p { font-family: var(--crt); font-size: 15px; }
  .dlgback { align-items: end; padding-bottom: 60px; }
  .dlg { background: #000; border: 2px solid var(--lime); box-shadow: none; color: var(--lime); font-family: var(--crt); font-size: 17px; }
  .dlg .cap { background: var(--lime); color: #000; font-family: var(--crt); }
  .dlg .in img { display: none; }
  .dlg .in { grid-template-columns: 1fr; }
  .dlg .btn { background: #000; box-shadow: none; border: 2px solid var(--lime); color: var(--lime); font-family: var(--crt); text-transform: uppercase; }
  .dlg .btn.lime { background: var(--lime); color: #000; }
  .dlg .field { background: #000; border: 2px solid var(--lime); box-shadow: none; color: var(--lime); }
}
@media (prefers-reduced-motion: reduce) { .tape .run, .splash .bar i { animation: none; } .boot .line { opacity: 1; } }
body.reduce .tape .run { animation: none; }
