/* Veiled Pixels — hard-coded PC palettes (CGA / EGA era). No soft gradients. */

/* --- base structure (palette comes from [data-theme]) --- */
body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--bg-tile, none);
  color: var(--fg);
  font-family: "MS Sans Serif", "Courier New", Geneva, Arial, sans-serif;
  font-size: 14px;
  image-rendering: pixelated;
}
a { color: var(--link); }
a:visited { color: var(--link-visited); }
.wrap { max-width: 920px; margin: 0 auto; }
.layout { display: table; width: 100%; border-collapse: collapse; }
.sidebar, .main { display: table-cell; vertical-align: top; padding: 12px; }
.sidebar {
  width: 200px;
  background: var(--sidebar-bg);
  border-right: 4px solid var(--border);
  color: var(--sidebar-fg);
}
.brand {
  font-family: "Courier New", monospace;
  font-size: 20px;
  font-weight: bold;
  color: var(--brand);
  text-shadow: 2px 2px 0 var(--brand-shadow);
  margin: 0 0 8px;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tag { color: var(--tag); font-style: italic; font-size: 12px; }
.nav a {
  display: block;
  padding: 4px 0;
  text-decoration: none;
  font-weight: bold;
  font-family: "Courier New", monospace;
}
.blink { animation: blink 1s step-start infinite; color: var(--blink); font-weight: bold; }
@keyframes blink { 50% { opacity: 0; } }
.rainbow {
  height: 8px;
  border: 0;
  /* hard stripes, not soft gradient — period look */
  background: repeating-linear-gradient(
    90deg,
    var(--stripe-1) 0 12.5%,
    var(--stripe-2) 12.5% 25%,
    var(--stripe-3) 25% 37.5%,
    var(--stripe-4) 37.5% 50%,
    var(--stripe-5) 50% 62.5%,
    var(--stripe-6) 62.5% 75%,
    var(--stripe-7) 75% 87.5%,
    var(--stripe-8) 87.5% 100%
  );
  margin: 12px 0;
}
h1, h2 { color: var(--heading); text-shadow: 1px 1px 0 var(--heading-shadow); font-family: "Courier New", monospace; }
.card {
  background: var(--card-bg);
  border: 3px solid var(--border);
  padding: 12px;
  margin-bottom: 16px;
  box-shadow: 4px 4px 0 var(--card-shadow);
}
.art {
  max-width: 100%;
  border: 4px solid var(--border);
  background: var(--art-bg);
  image-rendering: pixelated;
}
.meta { font-family: "Courier New", monospace; font-size: 12px; color: var(--meta); }
.construction {
  border: 3px dashed var(--blink);
  background: var(--warn-bg);
  padding: 10px;
  text-align: center;
  margin: 16px 0;
  color: var(--blink);
}
.footer {
  clear: both;
  text-align: center;
  font-size: 11px;
  color: var(--meta);
  padding: 16px;
  border-top: 2px solid var(--border-dim);
  font-family: "Courier New", monospace;
}
.guestbook-entry {
  border-bottom: 1px dotted var(--border-dim);
  padding: 8px 0;
  font-size: 13px;
}
input, textarea {
  font-family: "Courier New", monospace;
  background: var(--input-bg);
  color: var(--input-fg);
  border: 2px inset var(--border-dim);
  width: 95%;
}
button, .btn {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px outset var(--btn-outset);
  font-family: "MS Sans Serif", sans-serif;
  cursor: pointer;
  padding: 4px 10px;
}
ul.process { color: var(--process); }

/* ========== THEME: cga4 — classic CGA Mode 4 (black / cyan / magenta / white) ========== */
[data-theme="cga4"] {
  --bg: #000000;
  --fg: #ffffff;
  --sidebar-bg: #000000;
  --sidebar-fg: #55ffff;
  --brand: #ff55ff;
  --brand-shadow: #aa00aa;
  --tag: #55ffff;
  --link: #55ffff;
  --link-visited: #ff55ff;
  --border: #aa00aa;
  --border-dim: #555555;
  --heading: #ffffff;
  --heading-shadow: #00aaaa;
  --card-bg: #000000;
  --card-shadow: #00aaaa;
  --art-bg: #000000;
  --meta: #aaaaaa;
  --counter-bg: #000000;
  --counter-fg: #55ffff;
  --blink: #ffff55;
  --warn-bg: #000000;
  --input-bg: #000000;
  --input-fg: #55ffff;
  --btn-bg: #aaaaaa;
  --btn-fg: #000000;
  --btn-outset: #ffffff;
  --process: #55ffff;
  --stripe-1: #000000;
  --stripe-2: #00aaaa;
  --stripe-3: #aa00aa;
  --stripe-4: #ffffff;
  --stripe-5: #000000;
  --stripe-6: #00aaaa;
  --stripe-7: #aa00aa;
  --stripe-8: #ffffff;
  --bg-tile: repeating-linear-gradient(0deg, #000 0 2px, #000011 2px 4px);
}

/* ========== THEME: cga-rgb — CGA RGBI primaries (black / red / green / yellow / blue accents) ========== */
[data-theme="cga-rgb"] {
  --bg: #000000;
  --fg: #ffff55;
  --sidebar-bg: #0000aa;
  --sidebar-fg: #ffffff;
  --brand: #ffff55;
  --brand-shadow: #aa5500;
  --tag: #55ff55;
  --link: #55ff55;
  --link-visited: #ff5555;
  --border: #ffff55;
  --border-dim: #555555;
  --heading: #ffff55;
  --heading-shadow: #aa0000;
  --card-bg: #000000;
  --card-shadow: #aa0000;
  --art-bg: #000055;
  --meta: #aaaaaa;
  --counter-bg: #000000;
  --counter-fg: #55ff55;
  --blink: #ff5555;
  --warn-bg: #550000;
  --input-bg: #000000;
  --input-fg: #55ff55;
  --btn-bg: #aaaaaa;
  --btn-fg: #000000;
  --btn-outset: #ffffff;
  --process: #55ff55;
  --stripe-1: #aa0000;
  --stripe-2: #00aa00;
  --stripe-3: #0000aa;
  --stripe-4: #aa5500;
  --stripe-5: #ff5555;
  --stripe-6: #55ff55;
  --stripe-7: #5555ff;
  --stripe-8: #ffff55;
}

/* ========== THEME: ega16 — full EGA 16-color desktop ========== */
[data-theme="ega16"] {
  --bg: #000055;
  --fg: #aaaaaa;
  --sidebar-bg: #0000aa;
  --sidebar-fg: #ffffff;
  --brand: #55ffff;
  --brand-shadow: #000000;
  --tag: #ffff55;
  --link: #55ff55;
  --link-visited: #ff55ff;
  --border: #ffffff;
  --border-dim: #555555;
  --heading: #ffffff;
  --heading-shadow: #000000;
  --card-bg: #000000;
  --card-shadow: #555555;
  --art-bg: #000000;
  --meta: #aaaaaa;
  --counter-bg: #000000;
  --counter-fg: #55ff55;
  --blink: #ffff55;
  --warn-bg: #aa5500;
  --input-bg: #000000;
  --input-fg: #55ff55;
  --btn-bg: #aaaaaa;
  --btn-fg: #000000;
  --btn-outset: #ffffff;
  --process: #55ffff;
  --stripe-1: #000000;
  --stripe-2: #0000aa;
  --stripe-3: #00aa00;
  --stripe-4: #00aaaa;
  --stripe-5: #aa0000;
  --stripe-6: #aa00aa;
  --stripe-7: #aa5500;
  --stripe-8: #aaaaaa;
}

/* ========== THEME: ega-amber — amber CRT + EGA chrome ========== */
[data-theme="ega-amber"] {
  --bg: #000000;
  --fg: #ffb000;
  --sidebar-bg: #1a0a00;
  --sidebar-fg: #ffb000;
  --brand: #ffcc33;
  --brand-shadow: #aa5500;
  --tag: #aa5500;
  --link: #ffcc33;
  --link-visited: #aa5500;
  --border: #aa5500;
  --border-dim: #553300;
  --heading: #ffcc33;
  --heading-shadow: #000000;
  --card-bg: #110800;
  --card-shadow: #553300;
  --art-bg: #000000;
  --meta: #aa5500;
  --counter-bg: #000000;
  --counter-fg: #ffb000;
  --blink: #ffff55;
  --warn-bg: #331100;
  --input-bg: #000000;
  --input-fg: #ffb000;
  --btn-bg: #aa5500;
  --btn-fg: #000000;
  --btn-outset: #ffcc33;
  --process: #ffb000;
  --stripe-1: #000000;
  --stripe-2: #aa5500;
  --stripe-3: #ffb000;
  --stripe-4: #ffff55;
  --stripe-5: #000000;
  --stripe-6: #aa5500;
  --stripe-7: #ffb000;
  --stripe-8: #ffff55;
  --bg-tile: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,176,0,0.06) 3px 4px);
}

/* ========== THEME: herc-green — Hercules / green phosphor CRT ========== */
[data-theme="herc-green"] {
  --bg: #001100;
  --fg: #33ff33;
  --sidebar-bg: #002200;
  --sidebar-fg: #66ff66;
  --brand: #66ff66;
  --brand-shadow: #003300;
  --tag: #22aa22;
  --link: #55ff55;
  --link-visited: #33aa33;
  --border: #33ff33;
  --border-dim: #115511;
  --heading: #99ff99;
  --heading-shadow: #003300;
  --card-bg: #001800;
  --card-shadow: #003300;
  --art-bg: #000000;
  --meta: #2a882a;
  --counter-bg: #000000;
  --counter-fg: #33ff33;
  --blink: #ccffcc;
  --warn-bg: #003300;
  --input-bg: #000000;
  --input-fg: #33ff33;
  --btn-bg: #33ff33;
  --btn-fg: #001100;
  --btn-outset: #99ff99;
  --process: #66ff66;
  --stripe-1: #001100;
  --stripe-2: #003300;
  --stripe-3: #115511;
  --stripe-4: #22aa22;
  --stripe-5: #33ff33;
  --stripe-6: #66ff66;
  --stripe-7: #99ff99;
  --stripe-8: #ccffcc;
  --bg-tile: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,255,0,0.05) 2px 3px);
}

/* ========== THEME: win31-teal — Win 3.1 / teal desktop chrome ========== */
[data-theme="win31-teal"] {
  --bg: #008080;
  --fg: #000000;
  --sidebar-bg: #c0c0c0;
  --sidebar-fg: #000000;
  --brand: #000080;
  --brand-shadow: #808080;
  --tag: #000000;
  --link: #0000aa;
  --link-visited: #800080;
  --border: #000000;
  --border-dim: #808080;
  --heading: #000080;
  --heading-shadow: #ffffff;
  --card-bg: #ffffff;
  --card-shadow: #808080;
  --art-bg: #000000;
  --meta: #404040;
  --counter-bg: #000000;
  --counter-fg: #00ff00;
  --blink: #ff0000;
  --warn-bg: #ffff00;
  --input-bg: #ffffff;
  --input-fg: #000000;
  --btn-bg: #c0c0c0;
  --btn-fg: #000000;
  --btn-outset: #ffffff;
  --process: #000080;
  --stripe-1: #000080;
  --stripe-2: #008080;
  --stripe-3: #c0c0c0;
  --stripe-4: #ffffff;
  --stripe-5: #808080;
  --stripe-6: #000000;
  --stripe-7: #800000;
  --stripe-8: #808000;
}

/* ========== THEME: hot-magenta — hot magenta / black club flyer ========== */
[data-theme="hot-magenta"] {
  --bg: #0a0010;
  --fg: #ff66ff;
  --sidebar-bg: #1a0028;
  --sidebar-fg: #ff99ff;
  --brand: #ff00aa;
  --brand-shadow: #660033;
  --tag: #ffff66;
  --link: #66ffff;
  --link-visited: #ff66ff;
  --border: #ff00aa;
  --border-dim: #660066;
  --heading: #ffffff;
  --heading-shadow: #ff00aa;
  --card-bg: #120018;
  --card-shadow: #ff00aa;
  --art-bg: #000000;
  --meta: #cc88cc;
  --counter-bg: #000000;
  --counter-fg: #66ffff;
  --blink: #ffff00;
  --warn-bg: #330022;
  --input-bg: #000000;
  --input-fg: #66ffff;
  --btn-bg: #ff00aa;
  --btn-fg: #ffffff;
  --btn-outset: #ff99cc;
  --process: #66ffff;
  --stripe-1: #ff00aa;
  --stripe-2: #00ffff;
  --stripe-3: #ffff00;
  --stripe-4: #ff00ff;
  --stripe-5: #00ff00;
  --stripe-6: #ff6600;
  --stripe-7: #6666ff;
  --stripe-8: #ffffff;
}

/* ========== THEME: paper-dos — DOS editor paper (blue on white-ish) ========== */
[data-theme="paper-dos"] {
  --bg: #0000aa;
  --fg: #aaaaaa;
  --sidebar-bg: #0000aa;
  --sidebar-fg: #ffffff;
  --brand: #ffff55;
  --brand-shadow: #000000;
  --tag: #55ffff;
  --link: #55ffff;
  --link-visited: #ff55ff;
  --border: #ffffff;
  --border-dim: #5555aa;
  --heading: #ffffff;
  --heading-shadow: #000055;
  --card-bg: #000055;
  --card-shadow: #000000;
  --art-bg: #000000;
  --meta: #aaaaaa;
  --counter-bg: #000000;
  --counter-fg: #55ff55;
  --blink: #ffff55;
  --warn-bg: #aa0000;
  --input-bg: #000000;
  --input-fg: #55ff55;
  --btn-bg: #aaaaaa;
  --btn-fg: #000000;
  --btn-outset: #ffffff;
  --process: #55ffff;
  --stripe-1: #0000aa;
  --stripe-2: #0000ff;
  --stripe-3: #55ffff;
  --stripe-4: #ffffff;
  --stripe-5: #aaaaaa;
  --stripe-6: #5555ff;
  --stripe-7: #ffff55;
  --stripe-8: #55ff55;
}

/* ========== THEME: fog-2026-09-06-244b — invented 2026-09-06 ========== */
[data-theme="fog-2026-09-06-244b"] {
  --bg: #00aaaa;
  --fg: #aaaaaa;
  --sidebar-bg: #aaaaaa;
  --sidebar-fg: #ff55ff;
  --brand: #ff55ff;
  --brand-shadow: #ff5555;
  --tag: #5555ff;
  --link: #555555;
  --link-visited: #55ff55;
  --border: #aa0000;
  --border-dim: #00aa00;
  --heading: #ffffff;
  --heading-shadow: #5555ff;
  --card-bg: #aa00aa;
  --card-shadow: #aa0000;
  --art-bg: #000000;
  --meta: #ffff55;
  --counter-bg: #000000;
  --counter-fg: #55ffff;
  --blink: #ff5555;
  --warn-bg: #000000;
  --input-bg: #000000;
  --input-fg: #00aaaa;
  --btn-bg: #55ffff;
  --btn-fg: #000000;
  --btn-outset: #55ffff;
  --process: #00aaaa;
  --stripe-1: #aa5500;
  --stripe-2: #ffff55;
  --stripe-3: #aa0000;
  --stripe-4: #ffff55;
  --stripe-5: #55ffff;
  --stripe-6: #aa5500;
  --stripe-7: #55ffff;
  --stripe-8: #55ff55;
}

/* ========== THEME: fog-2026-09-06-cba7 — phosphor-amber (2026-09-06) ========== */
/* Invented per docs/theme-invention-guide.md */
[data-theme="fog-2026-09-06-cba7"] {
  --bg: #000000;
  --fg: #ffb000;
  --sidebar-bg: #1a0a00;
  --sidebar-fg: #ffcc66;
  --brand: #ffcc33;
  --brand-shadow: #663300;
  --tag: #aa5500;
  --link: #ffcc33;
  --link-visited: #cc8800;
  --border: #aa5500;
  --border-dim: #553300;
  --heading: #ffcc33;
  --heading-shadow: #000000;
  --card-bg: #140800;
  --card-shadow: #553300;
  --art-bg: #000000;
  --meta: #aa5500;
  --counter-bg: #000000;
  --counter-fg: #ffb000;
  --blink: #ffff55;
  --warn-bg: #331100;
  --input-bg: #000000;
  --input-fg: #ffb000;
  --btn-bg: #aa5500;
  --btn-fg: #000000;
  --btn-outset: #ffcc33;
  --process: #ffb000;
  --stripe-1: #000000;
  --stripe-2: #553300;
  --stripe-3: #aa5500;
  --stripe-4: #ffb000;
  --stripe-5: #000000;
  --stripe-6: #aa5500;
  --stripe-7: #ffb000;
  --stripe-8: #ffff55;
}

/* ========== THEME: mac-system7 — B&W System 7 / Chicago desk ========== */
[data-theme="mac-system7"] {
  --bg: #ffffff;
  --fg: #000000;
  --sidebar-bg: #dddddd;
  --sidebar-fg: #000000;
  --brand: #000000;
  --brand-shadow: #888888;
  --tag: #444444;
  --link: #0000ee;
  --link-visited: #551a8b;
  --border: #000000;
  --border-dim: #888888;
  --heading: #000000;
  --heading-shadow: #ffffff;
  --card-bg: #ffffff;
  --card-shadow: #888888;
  --art-bg: #000000;
  --meta: #555555;
  --counter-bg: #000000;
  --counter-fg: #ffffff;
  --blink: #000000;
  --warn-bg: #ffff99;
  --input-bg: #ffffff;
  --input-fg: #000000;
  --btn-bg: #dddddd;
  --btn-fg: #000000;
  --btn-outset: #ffffff;
  --process: #000000;
  --stripe-1: #000000;
  --stripe-2: #ffffff;
  --stripe-3: #888888;
  --stripe-4: #dddddd;
  --stripe-5: #000000;
  --stripe-6: #ffffff;
  --stripe-7: #888888;
  --stripe-8: #dddddd;
}

/* ========== THEME: mac-platinum — Mac OS 8/9 platinum ========== */
[data-theme="mac-platinum"] {
  --bg: #ececec;
  --fg: #000000;
  --sidebar-bg: #cccccc;
  --sidebar-fg: #000000;
  --brand: #222222;
  --brand-shadow: #999999;
  --tag: #555555;
  --link: #0000cc;
  --link-visited: #660099;
  --border: #666666;
  --border-dim: #999999;
  --heading: #000000;
  --heading-shadow: #ffffff;
  --card-bg: #ffffff;
  --card-shadow: #999999;
  --art-bg: #000000;
  --meta: #555555;
  --counter-bg: #333333;
  --counter-fg: #00ff00;
  --blink: #cc0000;
  --warn-bg: #ffff66;
  --input-bg: #ffffff;
  --input-fg: #000000;
  --btn-bg: #dddddd;
  --btn-fg: #000000;
  --btn-outset: #ffffff;
  --process: #333333;
  --stripe-1: #999999;
  --stripe-2: #bbbbbb;
  --stripe-3: #dddddd;
  --stripe-4: #ffffff;
  --stripe-5: #666666;
  --stripe-6: #888888;
  --stripe-7: #aaaaaa;
  --stripe-8: #cccccc;
}

/* ========== THEME: mac-finder — classic Finder blue/gray ========== */
[data-theme="mac-finder"] {
  --bg: #b0b0b0;
  --fg: #000000;
  --sidebar-bg: #6b8cae;
  --sidebar-fg: #ffffff;
  --brand: #ffffff;
  --brand-shadow: #334455;
  --tag: #e8eef5;
  --link: #003366;
  --link-visited: #442266;
  --border: #000000;
  --border-dim: #6688aa;
  --heading: #000000;
  --heading-shadow: #ffffff;
  --card-bg: #f5f5f5;
  --card-shadow: #555555;
  --art-bg: #000000;
  --meta: #333333;
  --counter-bg: #000000;
  --counter-fg: #66ff66;
  --blink: #ffff00;
  --warn-bg: #ffff99;
  --input-bg: #ffffff;
  --input-fg: #000000;
  --btn-bg: #dddddd;
  --btn-fg: #000000;
  --btn-outset: #ffffff;
  --process: #003366;
  --stripe-1: #6b8cae;
  --stripe-2: #99aacc;
  --stripe-3: #ccddee;
  --stripe-4: #ffffff;
  --stripe-5: #334455;
  --stripe-6: #b0b0b0;
  --stripe-7: #888888;
  --stripe-8: #000000;
}


/* ========== THEME: mac-graphite — late OS9 graphite ========== */
[data-theme="mac-graphite"] {
  --bg: #5a5a5a;
  --fg: #ffffff;
  --sidebar-bg: #3a3a3a;
  --sidebar-fg: #eeeeee;
  --brand: #ffffff;
  --brand-shadow: #222222;
  --tag: #cccccc;
  --link: #99ccff;
  --link-visited: #cc99ff;
  --border: #222222;
  --border-dim: #777777;
  --heading: #ffffff;
  --heading-shadow: #000000;
  --card-bg: #2a2a2a;
  --card-shadow: #111111;
  --art-bg: #000000;
  --meta: #bbbbbb;
  --counter-bg: #000000;
  --counter-fg: #66ff66;
  --blink: #ffcc66;
  --warn-bg: #664400;
  --input-bg: #111111;
  --input-fg: #66ff66;
  --btn-bg: #888888;
  --btn-fg: #000000;
  --btn-outset: #cccccc;
  --process: #99ccff;
  --stripe-1: #222222;
  --stripe-2: #444444;
  --stripe-3: #666666;
  --stripe-4: #888888;
  --stripe-5: #aaaaaa;
  --stripe-6: #cccccc;
  --stripe-7: #3a3a3a;
  --stripe-8: #000000;
}

/* ========== THEME: win-xp — Windows XP Luna blue ========== */
[data-theme="win-xp"] {
  --bg: #3a6ea5;
  --fg: #000000;
  --sidebar-bg: #ece9d8;
  --sidebar-fg: #000000;
  --brand: #003399;
  --brand-shadow: #ffffff;
  --tag: #333333;
  --link: #0066cc;
  --link-visited: #800080;
  --border: #0054e3;
  --border-dim: #7a96df;
  --heading: #003399;
  --heading-shadow: #ffffff;
  --card-bg: #ffffff;
  --card-shadow: #7f9db9;
  --art-bg: #000000;
  --meta: #555555;
  --counter-bg: #000000;
  --counter-fg: #00ff00;
  --blink: #ff6600;
  --warn-bg: #ffff99;
  --input-bg: #ffffff;
  --input-fg: #000000;
  --btn-bg: #ece9d8;
  --btn-fg: #000000;
  --btn-outset: #ffffff;
  --process: #003399;
  --stripe-1: #0054e3;
  --stripe-2: #3a6ea5;
  --stripe-3: #7a96df;
  --stripe-4: #ece9d8;
  --stripe-5: #ffffff;
  --stripe-6: #99bb55;
  --stripe-7: #f0c040;
  --stripe-8: #c05040;
}

.badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px;
  width: 180px;
}
.badges .badge {
  display: block;
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 0;
}


.counter {
  font-family: "Courier New", monospace;
  background: #000;
  color: #0f0;
  padding: 6px 8px;
  border: 2px inset #444;
  display: inline-block;
  margin: 10px 0;
}
.counter-label {
  font-size: 10px;
  color: #0f0;
  letter-spacing: 1px;
  text-transform: lowercase;
  margin-bottom: 3px;
}
.counter-digits {
  display: flex;
  gap: 1px;
  background: #000;
  padding: 2px;
  border: 1px solid #033;
}
.counter-digit {
  display: block;
  width: 14px;
  height: 24px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 0;
}

/* STAFF ONLY closet */
.staff-door {
  font-size: 10px;
  letter-spacing: 2px;
  color: inherit;
  opacity: 0.45;
  text-decoration: none;
}
.staff-door:hover { opacity: 0.9; }
.staff-page {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}
.staff-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.staff-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
  z-index: 0;
}
.staff-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(2px);
  font-family: "Courier New", monospace;
}
.staff-bar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.staff-plaque {
  font-weight: bold;
  letter-spacing: 4px;
  font-size: 14px;
  color: #e8e8e8;
  margin: 0;
}
.staff-out {
  color: #7dff9a;
  text-decoration: underline;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer;
}
.staff-out:hover { color: #c8ffd4; text-decoration: underline; }
.timesheet {
  display: none;
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 16px;
  font-family: "Courier New", monospace;
  background: rgba(244, 240, 224, 0.94);
  color: #111;
  border: 2px solid #222;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.6);
  padding: 12px 14px;
  max-width: min(360px, calc(100vw - 32px));
  transform: rotate(-1.2deg);
}
.timesheet-head {
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 1px;
  border-bottom: 2px solid #222;
  padding-bottom: 4px;
  margin-bottom: 8px;
}
.timesheet table { width: 100%; border-collapse: collapse; font-size: 13px; }
.timesheet th {
  text-align: left;
  font-weight: normal;
  color: #444;
  padding: 3px 8px 3px 0;
  width: 38%;
}
.timesheet td { padding: 3px 0; border-bottom: 1px dotted #999; }
.timesheet-emp { font-weight: bold; letter-spacing: 1px; }
.timesheet-stamp {
  margin: 10px 0 0;
  font-size: 11px;
  color: #666;
  font-style: italic;
}
@media (max-width: 520px) {
  .timesheet { transform: none; left: 10px; right: 10px; bottom: 10px; max-width: none; }
  .staff-plaque { letter-spacing: 2px; font-size: 12px; }
}

.staff-console {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  width: min(640px, calc(100vw - 24px));
  height: min(360px, calc(100vh - 96px));
  display: flex;
  flex-direction: column;
  background: rgba(0, 8, 0, 0.92);
  border: 2px solid #0f0;
  box-shadow: 0 0 0 1px #030, 0 12px 40px rgba(0,0,0,0.7), inset 0 0 40px rgba(0,40,0,0.35);
  font-family: "Courier New", monospace;
  color: #33ff66;
}
.staff-console[hidden] { display: none !important; }
.staff-console-chrome {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  border-bottom: 1px solid #0a0;
  background: rgba(0, 30, 0, 0.9);
  font-size: 12px;
  color: #6f6;
}
.staff-console-hint { color: #396; font-size: 11px; }
.staff-console-log {
  flex: 1;
  overflow: auto;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}
.staff-console-log .c-hi { color: #9f9; font-weight: bold; }
.staff-console-log .c-dim { color: #2a6; }
.staff-console-log .c-cmd { color: #8f8; }
.staff-console-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 8px;
  border-top: 1px solid #0a0;
  background: rgba(0, 20, 0, 0.95);
}
.staff-console-prompt { color: #0f0; font-weight: bold; }
.staff-console-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: #6f6;
  font: inherit;
  caret-color: #0f0;
}
body.staff-console-open .staff-cover { filter: brightness(0.55); }

body.staff-unlocked .staff-bar {
  border-bottom-color: rgba(80, 255, 120, 0.55);
}
body.staff-unlocked .staff-plaque::after {
  content: " · CLEARANCE";
  color: #7dff9a;
  letter-spacing: 2px;
  font-size: 11px;
}

.dl-wallpaper {
  font-family: "Courier New", monospace;
  font-weight: bold;
  text-decoration: none;
}
.dl-wallpaper:hover { text-decoration: underline; }
.gallery-toolbar {
  font-family: "Courier New", monospace;
  font-size: 13px;
  margin: 0 0 14px;
  line-height: 1.6;
}
