:root {
  --bg: #008080;
  --panel: #c0c0c0;
  --panel-alt: #dadada;
  --text: #111;
  --muted: #4b4b4b;
  --title: #000080;
  --title-text: #fff;
  --accent: #000080;
  --accent-2: #008080;
  --light: #fff;
  --dark: #202020;
  --shadow: #808080;
  --font-ui: "MS Sans Serif", Tahoma, Arial, sans-serif;
  --font-display: "Arial Black", Impact, sans-serif;
  --font-mono: "Lucida Console", "Courier New", monospace;
  --radius: 0;
  --edge: inset -2px -2px var(--dark), inset 2px 2px var(--light), inset -4px -4px var(--shadow);
  --button-edge: inset -2px -2px var(--dark), inset 2px 2px var(--light);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  transition: background .2s, color .2s;
}
a { color: inherit; }
button, select { font: inherit; }
button, a, select, input, textarea { transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.nav-item:hover, .button:hover:not(:disabled), .icon-button:hover, .mobile-menu:hover { filter: brightness(1.06); transform: translateY(-1px); }
.project-card, .window, .product-card { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.project-card:hover { transform: translateY(-3px); }
::selection { color: var(--title-text); background: var(--accent); }
.global-theme-button {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  min-height: 44px;
  padding: 10px 15px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #151823;
  box-shadow: 0 8px 24px rgb(0 0 0 / .36);
  font: 700 12px/1 var(--font-mono);
  cursor: pointer;
}
.global-theme-button:hover { transform: translateY(-2px); background: #262b3b; }
.theme-dialog {
  width: min(980px, calc(100% - 28px));
  max-height: min(780px, calc(100vh - 28px));
  padding: 0;
  overflow: auto;
  border: 2px solid #252936;
  border-radius: 14px;
  color: #161922;
  background: #f2f3f7;
  box-shadow: 0 24px 80px rgb(0 0 0 / .55);
  font-family: Arial, sans-serif;
}
.theme-dialog::backdrop { background: rgb(5 7 12 / .72); backdrop-filter: blur(5px); }
.theme-dialog-header {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #ccd0dc;
  background: rgb(242 243 247 / .96);
  backdrop-filter: blur(12px);
}
.theme-dialog-header h2 { margin: 0; font: 800 24px/1.1 Arial, sans-serif; }
.theme-dialog-header .kicker { color: #5d6270; }
.theme-dialog-header .button { color: #161922; background: #fff; box-shadow: 0 0 0 1px #aeb4c3, 0 3px 8px rgb(0 0 0 / .12); }
.theme-dialog-grid { padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.theme-choice {
  min-height: 150px;
  padding: 12px;
  display: grid;
  grid-template-rows: 62px auto 1fr;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: 10px;
  color: #161922;
  background: #fff;
  box-shadow: 0 3px 12px rgb(0 0 0 / .1);
  text-align: left;
  cursor: pointer;
}
.theme-choice:hover { transform: translateY(-2px); border-color: #69738d; }
.theme-choice.active { border-color: #4059ad; box-shadow: 0 0 0 3px rgb(64 89 173 / .18); }
.theme-choice strong { font-size: 14px; }
.theme-choice small { color: #626978; line-height: 1.35; }
.theme-choice-preview {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #596174;
  border-radius: 5px;
  background: linear-gradient(135deg, #008080 0 45%, #c0c0c0 45%);
}
.theme-choice-preview::before { content: ""; position: absolute; inset: 7px 8px 24px; border: 2px solid #111; background: #eee; }
.theme-choice-preview::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 7px; height: 11px; background: #000080; }
.theme-choice-preview[data-preview="terminal"], .theme-choice-preview[data-preview="freebsd"] { background: #07130a; }
.theme-choice-preview[data-preview="terminal"]::before, .theme-choice-preview[data-preview="freebsd"]::before { background: repeating-linear-gradient(0deg, #07130a 0 5px, #245b31 6px); border-color: #65d77c; }
.theme-choice-preview[data-preview="terminal"]::after, .theme-choice-preview[data-preview="freebsd"]::after { background: #65d77c; }
.theme-choice-preview[data-preview="bbs"] { background: #000080; }
.theme-choice-preview[data-preview="gameboy"] { background: #8b8f81; border-radius: 12px 12px 22px 12px; }
.theme-choice-preview[data-preview="gameboy"]::before { background: #9bbc0f; border-color: #0f380f; }
.theme-choice-preview[data-preview="gameboy"]::after { background: #0f380f; }
.theme-choice-preview[data-preview="unity"] { background: linear-gradient(135deg, #2c102b, #772953); }
.theme-choice-preview[data-preview="unity"]::before { left: 20px; background: rgb(255 255 255 / .18); border: 0; border-radius: 5px; }
.theme-choice-preview[data-preview="unity"]::after { top: 7px; bottom: 7px; left: 7px; right: auto; width: 8px; height: auto; background: #e95420; }
.theme-choice-preview[data-preview="macclassic"], .theme-choice-preview[data-preview="atari"] { background: #999; filter: grayscale(1); }
.theme-choice-preview[data-preview="amiga"] { background: #0055aa; }
.theme-choice-preview[data-preview="amiga"]::after { background: #ff8800; }
.theme-choice-preview[data-preview="beos"] { background: #607a83; }
.theme-choice-preview[data-preview="beos"]::after { width: 55%; background: #f0c72d; }
.theme-choice-preview[data-preview="ticker"] { background: #171716; }
.theme-choice-preview[data-preview="ticker"]::before { background: repeating-linear-gradient(90deg, #262624 0 18px, #080808 19px 20px); border-color: #d8a83a; }
.theme-choice-preview[data-preview="ticker"]::after { background: #d8a83a; }
.theme-choice-preview[data-preview="tradingview"] { background: #131722; }
.theme-choice-preview[data-preview="tradingview"]::before { background: linear-gradient(150deg, transparent 35%, #2962ff 36% 39%, transparent 40%), repeating-linear-gradient(0deg, #131722 0 12px, #2a2e39 13px); border-color: #363a45; }
.theme-choice-preview[data-preview="notepad"] { background: #f3f3f3; }
.theme-choice-preview[data-preview="notepad"]::before { background: repeating-linear-gradient(#fff 0 9px, #e8e8e8 10px); border-color: #aaa; }
.theme-choice-preview[data-preview="notepad"]::after { background: #e5e5e5; }
.theme-choice-preview[data-preview="gnucash"] { background: #dfe8f2; }
.theme-choice-preview[data-preview="gnucash"]::before { background: repeating-linear-gradient(0deg, #fff 0 10px, #cddced 11px); border-color: #51789e; }
.theme-choice-preview[data-preview="gnucash"]::after { background: #2f694f; }
.theme-choice-preview[data-preview="moleskine"] { background: #2b2119; }
.theme-choice-preview[data-preview="moleskine"]::before { background: repeating-linear-gradient(#efe4c5 0 10px, #cbbf9f 11px); border-color: #17110d; border-radius: 2px 7px 7px 2px; }
.theme-choice-preview[data-preview="moleskine"]::after { width: 7px; left: auto; right: 18px; height: 55px; bottom: 0; background: #9d2e29; }
.desktop-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image: radial-gradient(var(--light) 1px, transparent 1px);
  background-size: 4px 4px;
}
.app-shell {
  position: relative;
  width: min(1440px, calc(100% - 32px));
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  background: var(--panel);
  box-shadow: var(--edge), 12px 14px 0 rgb(0 0 0 / .28);
}
.site-header {
  min-height: 78px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid var(--shadow);
  background: var(--panel-alt);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand { color: inherit; text-decoration: none; }
.brand-mark {
  width: 76px;
  min-height: 34px;
  padding: 5px 7px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px solid currentColor;
  background: linear-gradient(135deg, var(--accent, #0757a6) 0 46%, var(--panel, #ddd) 46% 100%);
  box-shadow: 3px 3px 0 var(--shadow, #555);
  font: 800 8px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}
.brand-mark strong { align-self: flex-end; font-size: 12px; letter-spacing: .04em; }
.eyebrow, .kicker, .nav-label { margin: 0 0 5px; font: 700 11px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brand h1 { margin: 0; font: 700 19px/1.1 var(--font-mono); }
.brand h1 span { color: var(--muted); font-size: .75em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .mobile-menu {
  min-width: 40px;
  min-height: 38px;
  border: 0;
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--button-edge);
  cursor: pointer;
}
.icon-button:active, .button:active { box-shadow: inset 2px 2px var(--dark), inset -2px -2px var(--light); transform: translate(1px, 1px); }
.moon { display: none; }
[data-mode="dark"] .moon { display: inline; }
[data-mode="dark"] .sun { display: none; }
.mobile-menu { display: none; padding: 0 12px; }
.workspace { display: grid; grid-template-columns: 224px 1fr; min-height: 900px; }
.sidebar {
  padding: 22px 15px;
  border-right: 2px solid var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--panel-alt);
}
.sidebar nav { display: grid; gap: 5px; }
.nav-item {
  padding: 10px 11px;
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  border: 1px solid transparent;
}
.nav-item:hover { border-color: var(--shadow); }
.nav-item.active { color: var(--title-text); background: var(--accent); box-shadow: var(--button-edge); }
.nav-item.disabled { display: none; }
.nav-item > span:first-child { font-family: var(--font-mono); }
.theme-picker {
  margin-top: auto;
  padding: 13px;
  background: var(--panel);
  box-shadow: var(--edge);
}
.theme-picker label { display: block; margin-bottom: 8px; font-weight: 700; }
.theme-picker select { width: 100%; padding: 7px; color: var(--text); background: var(--light); border: 2px inset var(--panel); }
.theme-picker p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.system-status { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.system-status small { display: block; color: var(--muted); margin-top: 3px; }
.status-light { width: 10px; height: 10px; background: #29b34a; border-radius: 50%; box-shadow: 0 0 7px #29b34a; }
main { padding: 24px; min-width: 0; }
.window { background: var(--panel); box-shadow: var(--edge); border-radius: var(--radius); }
.titlebar {
  height: 30px;
  padding: 3px 4px 3px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--title);
  color: var(--title-text);
  font: 700 12px/1 var(--font-mono);
}
.window-buttons { display: flex; gap: 3px; color: var(--text); }
.window-buttons i { width: 21px; height: 21px; display: grid; place-items: center; font-style: normal; background: var(--panel); box-shadow: var(--button-edge); }
.hero-content { min-height: 440px; padding: 52px clamp(24px, 5vw, 70px); display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero h2 { max-width: 700px; margin: 12px 0 18px; font: 900 clamp(38px, 5.2vw, 72px)/.95 var(--font-display); letter-spacing: -.035em; text-transform: uppercase; }
.hero h2 em { color: var(--accent-2); font-style: normal; text-shadow: 2px 2px 0 var(--dark); }
.lead { max-width: 620px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.button-row, .support-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button {
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--button-edge);
  font-weight: 700;
  text-decoration: none;
}
.button.primary { color: var(--title-text); background: var(--accent); }
.statusbar { display: grid; grid-template-columns: 1fr 1fr auto; gap: 4px; padding: 4px; font: 11px var(--font-mono); }
.statusbar span { padding: 4px 7px; border: 1px inset var(--panel); }
.lab-graphic { position: relative; width: min(100%, 340px); margin: auto; filter: drop-shadow(12px 14px 0 rgb(0 0 0 / .16)); }
.monitor { padding: 18px 18px 28px; background: #d5d1bd; border-radius: 8px 8px 4px 4px; box-shadow: inset 5px 5px #f7f4df, inset -5px -5px #7c796d; }
.screen { position: relative; min-height: 190px; padding: 25px; overflow: hidden; color: #50ff72; background: #07170c; border: 8px solid #373a34; border-radius: 42% / 12%; font: 14px/1.7 var(--font-mono); box-shadow: inset 0 0 24px #0b7528; }
.screen strong { display: block; margin-top: 24px; font-size: 21px; }
.pixel-grid { position: absolute; inset: 0; opacity: .18; background: repeating-linear-gradient(0deg, transparent 0 3px, #7bff94 4px); }
.computer-base { width: 80%; height: 42px; margin: 0 auto; background: #c6c2af; clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); box-shadow: inset 0 -7px #777468; }
.floppy { position: absolute; right: -12px; bottom: -8px; width: 62px; height: 68px; padding: 8px; color: #fff; background: #222; border-left: 8px solid #333; font: 10px var(--font-mono); box-shadow: 5px 5px 0 rgb(0 0 0 / .25); }
.section { padding: 58px 0 24px; }
.section-heading { margin-bottom: 20px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.section-heading h2, .split-section h2, .support-panel h2 { margin: 3px 0 0; font: 900 clamp(25px, 3vw, 38px)/1 var(--font-display); text-transform: uppercase; }
.text-link { font: 700 12px var(--font-mono); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.project-card { padding: 7px; background: var(--panel); box-shadow: var(--edge); }
.project-card-inner { min-height: 238px; padding: 20px; display: flex; flex-direction: column; border: 1px solid var(--shadow); background: var(--panel-alt); }
.project-icon { width: 47px; height: 47px; display: grid; place-items: center; color: var(--title-text); background: var(--accent); box-shadow: 4px 4px 0 var(--shadow); font: 24px var(--font-mono); }
.project-card h3 { margin: 21px 0 8px; font: 800 20px var(--font-mono); }
.project-card h3 a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.project-card p { color: var(--muted); line-height: 1.5; flex: 1; }
.card-labels { margin: 16px 0 -8px; display: flex; align-items: center; gap: 8px; color: var(--muted); font: 10px var(--font-mono); }
.validation-hint { margin-bottom: 12px; color: #986000; font: 10px var(--font-mono); }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 11px var(--font-mono); }
.badge { padding: 5px 7px; color: var(--title-text); background: var(--accent-2); }
.progress { height: 14px; margin-top: 12px; padding: 2px; border: 2px inset var(--panel); }
.progress i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--accent) 0 9px, transparent 9px 11px); }
.split-section { padding: 34px 0 58px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split-section.module-single { grid-template-columns: 1fr; }
.window-content { padding: 28px; }
.idea-list { margin-top: 22px; display: grid; gap: 8px; }
.idea-item { padding: 13px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; border: 1px solid var(--shadow); background: var(--panel-alt); }
.idea-item span:first-child { font: 700 15px var(--font-mono); color: var(--accent); }
.idea-item small { color: var(--muted); }
.terminal-window { background: #050b07; }
.terminal { min-height: 330px; padding: 28px; color: #4cff71; background: #050b07; font: 13px/1.65 var(--font-mono); text-shadow: 0 0 6px #21b942; }
.news-item { margin: 19px 0; padding-left: 14px; border-left: 2px solid #1f8a38; }
.news-item time { color: #d9c85d; }
.news-item strong { display: block; color: #7dff98; }
.news-item a { color: inherit; }
.news-item small { display: block; margin-top: 4px; opacity: .72; }
.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.support-panel { margin-bottom: 30px; padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 25px; color: var(--title-text); background: var(--accent); box-shadow: var(--edge); }
.support-panel p:not(.kicker) { margin-bottom: 0; opacity: .8; }
.support-panel .kicker { color: inherit; opacity: .7; }
.support-actions { margin-top: 0; justify-content: flex-end; }
.coffee { background: #ffdd64; color: #181818; }
footer { padding: 10px 15px; display: flex; justify-content: space-between; border-top: 2px solid var(--shadow); font: 11px var(--font-mono); background: var(--panel-alt); }

.filter-bar {
  margin-bottom: 18px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px auto auto;
  align-items: end;
  gap: 10px;
}
.filter-bar label, .editor-pane label { display: grid; gap: 5px; font: 700 11px var(--font-mono); }
.filter-bar input, .filter-bar select, .editor-pane textarea {
  min-height: 38px;
  padding: 8px;
  border: 2px inset var(--panel);
  border-radius: 0;
  color: var(--text);
  background: var(--panel-alt);
  font: 13px var(--font-mono);
}
.filter-bar output { padding-bottom: 10px; color: var(--muted); font: 11px var(--font-mono); text-align: right; }
.empty-state { grid-column: 1 / -1; padding: 30px; border: 2px dashed var(--shadow); text-align: center; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.editor-pane, .preview-pane { min-height: 450px; padding: 20px; }
.editor-pane textarea { width: 100%; min-height: 340px; margin: 8px 0 14px; resize: vertical; line-height: 1.5; }
.preview-pane { overflow-wrap: anywhere; }
.validation-summary { margin-bottom: 22px; padding: 13px; border: 2px solid; font: 12px var(--font-mono); }
.validation-summary.valid { border-color: #168238; background: rgb(22 130 56 / .12); }
.validation-summary.invalid { border-color: #b22a2a; background: rgb(178 42 42 / .12); }
.validation-summary p { margin: 7px 0 0; }
.preview-document h2 { font: 800 26px var(--font-mono); }
.markdown-body { line-height: 1.7; }
.markdown-body h1, .markdown-body h2, .markdown-body h3 { margin: 1.4em 0 .45em; font-family: var(--font-mono); }
.markdown-body code { padding: 2px 5px; background: var(--panel-alt); border: 1px solid var(--shadow); }
.markdown-body blockquote { margin-left: 0; padding-left: 16px; border-left: 4px solid var(--accent); color: var(--muted); }
.compact { padding: 8px 11px; }
.detail-shell { min-height: calc(100vh - 32px); }
.detail-main { max-width: 960px; min-height: 720px; margin: 0 auto; padding: 38px 24px 70px; }
.back-button { margin-bottom: 18px; }
.detail-window { width: 100%; }
.detail-content { padding: clamp(28px, 6vw, 74px); }
.detail-content > h1 { max-width: 760px; margin: 10px 0 24px; font: 900 clamp(38px, 7vw, 72px)/.98 var(--font-display); text-transform: uppercase; }
.detail-content .markdown-body { max-width: 720px; font-size: 17px; }
.detail-progress { max-width: 480px; margin: 0 0 30px; font: 12px var(--font-mono); }
.detail-footer { margin-top: 50px; padding-top: 15px; display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--shadow); color: var(--muted); font: 11px var(--font-mono); }
.commerce-main { max-width: 1180px; margin: auto; padding: 54px 28px 70px; }
.shop-intro { max-width: 850px; margin-bottom: 60px; }
.shop-intro h1 { margin: 8px 0 20px; font: 900 clamp(42px, 7vw, 82px)/.92 var(--font-display); text-transform: uppercase; }
.shop-intro > p:last-child { max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { scroll-margin-top: 20px; }
.product-body { min-height: 390px; padding: 25px; display: flex; flex-direction: column; }
.product-icon { width: 60px; height: 60px; margin-bottom: 22px; display: grid; place-items: center; color: var(--title-text); background: var(--accent); box-shadow: 5px 5px 0 var(--shadow); font: 30px var(--font-mono); }
.product-body h2 { margin: 4px 0 12px; font: 800 24px/1.1 var(--font-mono); }
.product-body > p:not(.kicker) { color: var(--muted); line-height: 1.55; flex: 1; }
.product-body > small { margin-top: 10px; color: var(--muted); line-height: 1.4; }
.product-meta { margin: 20px 0 16px; padding-block: 12px; display: flex; justify-content: space-between; border-block: 1px solid var(--shadow); font: 12px var(--font-mono); }
.product-meta strong { font-size: 16px; color: var(--accent-2); }
.support-grid { margin-top: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.support-box { min-height: 360px; padding: 28px; }
.support-box h2, .receipt-content h2 { font: 800 28px var(--font-mono); }
.risk-notice { margin: 18px 0; padding: 14px; border: 2px solid #b36b00; background: rgb(255 174 0 / .12); line-height: 1.5; }
.wallet { margin: 12px 0; padding: 12px; border: 1px solid var(--shadow); background: var(--panel-alt); }
.wallet small, .wallet code { display: block; margin-top: 6px; overflow-wrap: anywhere; }
.configuration-note { padding: 14px; border: 1px dashed var(--shadow); color: var(--muted); }
.receipt-panel { margin-top: 28px; }
.receipt-content { padding: 30px; }
.receipt-content dl { max-width: 620px; display: grid; grid-template-columns: 150px 1fr; gap: 8px; font: 12px var(--font-mono); }
.receipt-content dt { color: var(--muted); }
.receipt-content dd { margin: 0; }
.legal-page { max-width: 850px; margin: 40px auto; }
.legal-page article { padding: clamp(28px, 6vw, 70px); font-size: 16px; }
.legal-page h1 { font: 900 clamp(35px, 6vw, 58px)/1 var(--font-display); text-transform: uppercase; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.admin-main { max-width: 1400px; min-height: 820px; margin: auto; padding: 28px; }
.login-panel { max-width: 460px; margin: 80px auto; }
.admin-form { padding: 30px; display: grid; gap: 16px; }
.admin-form label, .admin-editor label { display: grid; gap: 6px; font: 700 11px var(--font-mono); }
.admin-form input, .admin-editor input, .admin-editor textarea { padding: 9px; border: 2px inset var(--panel); color: var(--text); background: var(--panel-alt); font: 13px var(--font-mono); }
.admin-tabs { margin-bottom: 12px; display: flex; gap: 8px; }
.admin-workspace { display: grid; grid-template-columns: 310px 1fr; gap: 15px; }
.admin-list-actions { padding: 10px; }
.admin-document-list { max-height: 760px; overflow: auto; padding: 6px; }
.admin-document-list button { width: 100%; padding: 11px; display: grid; gap: 4px; border: 1px solid var(--shadow); background: var(--panel-alt); color: var(--text); text-align: left; cursor: pointer; }
.admin-document-list small { color: var(--muted); font: 10px var(--font-mono); }
.admin-editor { padding: 18px; display: grid; gap: 14px; }
.admin-editor textarea { min-height: 500px; resize: vertical; line-height: 1.5; }
.editor-actions { display: flex; align-items: center; gap: 14px; }
.form-message { min-height: 18px; color: var(--accent-2); font: 11px var(--font-mono); }
.revision-panel { padding: 0 18px 20px; }
.revision-panel h2 { font: 700 15px var(--font-mono); }
.revision-panel code { display: block; padding: 5px; border-bottom: 1px solid var(--shadow); }
.revision-button { width: 100%; padding: 7px; border: 0; border-bottom: 1px solid var(--shadow); background: transparent; color: var(--text); font: 10px var(--font-mono); text-align: left; cursor: pointer; }
.admin-media { display: grid; grid-template-columns: 380px 1fr; gap: 16px; }
.media-library { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-content: start; }
.media-item { margin: 0; padding: 8px; background: var(--panel); box-shadow: var(--edge); }
.media-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--panel-alt); }
.media-item figcaption { padding: 10px 5px 5px; display: grid; gap: 7px; overflow-wrap: anywhere; }
.media-item code, .media-item small { color: var(--muted); font-size: 10px; }
.markdown-body img { max-width: 100%; height: auto; }
.orders-toolbar { padding: 14px; }
.orders-table-wrap { overflow: auto; padding: 0 14px 20px; }
.orders-table { width: 100%; border-collapse: collapse; font: 11px var(--font-mono); }
.orders-table th, .orders-table td { padding: 10px; border: 1px solid var(--shadow); text-align: left; white-space: nowrap; }
.orders-table th { color: var(--title-text); background: var(--accent); }
.receipt-page .receipt-content { min-height: 500px; }

/* Windows 3.11 */
[data-theme="win311"] {
  --bg: #008080;
  --panel: #c0c0c0;
  --panel-alt: #fff;
  --text: #000;
  --muted: #333;
  --title: #000080;
  --accent: #000080;
  --accent-2: #800080;
  --light: #fff;
  --dark: #000;
  --shadow: #808080;
  --font-ui: "MS Sans Serif", Arial, sans-serif;
}
[data-theme="win311"] .site-header { border-bottom: 4px double var(--dark); }
[data-theme="win311"] .titlebar { outline: 1px solid var(--light); outline-offset: -3px; }
[data-theme="win311"] .nav-item.active { outline: 1px dotted var(--title-text); outline-offset: -4px; }
[data-theme="win311"] .window-buttons i { font-family: serif; }
[data-theme="win311"] .site-header { min-height: 58px; padding-block: 7px; }
[data-theme="win311"] .workspace { grid-template-columns: 270px 1fr; }
[data-theme="win311"] .sidebar nav { grid-template-columns: 1fr 1fr; gap: 12px 8px; }
[data-theme="win311"] .nav-label { grid-column: 1 / -1; padding: 5px; color: #fff; background: #000080; text-align: center; }
[data-theme="win311"] .nav-item {
  min-height: 72px;
  padding: 8px 4px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid transparent;
  text-align: center;
}
[data-theme="win311"] .nav-item > span:first-child { font-size: 24px; }
[data-theme="win311"] .hero-content { grid-template-columns: 1fr; min-height: 390px; }
[data-theme="win311"] .hero h2 { max-width: 900px; font-family: "Times New Roman", serif; letter-spacing: 0; text-transform: none; }
[data-theme="win311"] .lab-graphic { display: none; }
[data-theme="win311"] .project-grid { grid-template-columns: repeat(2, 1fr); }
[data-theme="win311"] .project-card-inner { border: 2px solid #000; }

/* Windows 98 */
[data-theme="win98"] {
  --bg: #5b9bd5;
  --panel: #c6c6c6;
  --panel-alt: #e8e8e8;
  --text: #111;
  --muted: #4f4f4f;
  --title: linear-gradient(90deg, #000080, #1084d0);
  --accent: #000080;
  --accent-2: #008a8a;
  --light: #fff;
  --dark: #222;
  --shadow: #818181;
}
[data-theme="win98"] .titlebar { background: var(--title); }
[data-theme="win98"] .site-header { background: linear-gradient(#fafafa, #d5d5d5); }
[data-theme="win98"] .sidebar { background: linear-gradient(90deg, #d7d7d7, #f1f1f1); }
[data-theme="win98"] .hero-content { background-image: radial-gradient(circle at 86% 20%, rgb(16 132 208 / .12), transparent 32%); }
[data-theme="win98"] .workspace { display: block; }
[data-theme="win98"] .sidebar {
  position: relative;
  padding: 6px 12px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  border-right: 0;
  border-bottom: 2px solid var(--shadow);
}
[data-theme="win98"] .sidebar nav { display: flex; align-items: center; gap: 2px; }
[data-theme="win98"] .nav-label { display: none; }
[data-theme="win98"] .nav-item { padding: 8px 10px; border-right: 1px solid var(--shadow); }
[data-theme="win98"] .nav-item.active { color: var(--text); background: transparent; box-shadow: inset 0 -3px var(--accent); }
[data-theme="win98"] .theme-picker { margin: 0; padding: 4px; display: flex; align-items: center; gap: 7px; box-shadow: none; background: transparent; }
[data-theme="win98"] .theme-picker label, [data-theme="win98"] .theme-picker p { display: none; }
[data-theme="win98"] .theme-picker select { width: 155px; }
[data-theme="win98"] .hero { border-radius: 10px 10px 0 0; overflow: hidden; }
[data-theme="win98"] .project-card { border-radius: 8px; overflow: hidden; }
[data-theme="win98"] .project-icon { border-radius: 50%; }

/* OS/2 */
[data-theme="os2"] {
  --bg: #4f6f8f;
  --panel: #b8bcc0;
  --panel-alt: #d7d9db;
  --text: #101820;
  --muted: #48545d;
  --title: #324f68;
  --title-text: #fff;
  --accent: #324f68;
  --accent-2: #8a4b18;
  --light: #f7f8f8;
  --dark: #1f282e;
  --shadow: #69747b;
  --radius: 0;
}
[data-theme="os2"] .app-shell { border: 3px solid #20282e; box-shadow: inset 0 0 0 2px #eef0f0, 12px 14px 0 rgb(0 0 0 / .3); }
[data-theme="os2"] .titlebar { background: repeating-linear-gradient(0deg, #324f68 0 2px, #3f617c 2px 4px); }
[data-theme="os2"] .window-buttons { flex-direction: row-reverse; }
[data-theme="os2"] .window-buttons i { border-radius: 50%; }
[data-theme="os2"] .nav-item.active { border-left: 6px solid #e1a326; background: #324f68; }
[data-theme="os2"] .workspace { grid-template-columns: 1fr 245px; }
[data-theme="os2"] .sidebar {
  grid-column: 2;
  grid-row: 1;
  border-right: 0;
  border-left: 3px double var(--dark);
}
[data-theme="os2"] main { grid-column: 1; grid-row: 1; }
[data-theme="os2"] .sidebar nav { gap: 0; border: 2px inset var(--panel); }
[data-theme="os2"] .nav-label { padding: 8px; margin: 0; background: var(--accent); color: #fff; }
[data-theme="os2"] .nav-item { border-bottom: 1px solid var(--shadow); }
[data-theme="os2"] .hero-content { grid-template-columns: .8fr 1.2fr; }
[data-theme="os2"] .hero h2 { font-family: Georgia, serif; text-transform: none; letter-spacing: 0; }
[data-theme="os2"] .lab-graphic { transform: rotate(-2deg); }
[data-theme="os2"] .project-grid { grid-template-columns: 1fr; }
[data-theme="os2"] .project-card-inner { min-height: 170px; display: grid; grid-template-columns: 60px 1fr; column-gap: 18px; }
[data-theme="os2"] .project-card-inner > *:not(.project-icon) { grid-column: 2; }

/* Stronger structural identities for the existing systems */
[data-theme="win95"] .sidebar { background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgb(0 0 0 / .025) 28px); }
[data-theme="win95"] .nav-item > span:first-child { width: 20px; text-align: center; }
[data-theme="win95"] .project-card:nth-child(2) { transform: translateY(10px); }
[data-theme="win95"] .project-card:nth-child(3) { transform: translateY(20px); }

[data-theme="win2000"] .workspace { grid-template-columns: 176px 1fr; }
[data-theme="win2000"] .sidebar { padding-inline: 8px; }
[data-theme="win2000"] .nav-item { padding: 7px 6px; font-size: 12px; }
[data-theme="win2000"] .nav-item > span:first-child { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 4px; background: rgb(255 255 255 / .45); }
[data-theme="win2000"] .hero-content { min-height: 380px; grid-template-columns: 1.35fr .65fr; }
[data-theme="win2000"] .hero h2 { font-family: Tahoma, Arial, sans-serif; font-weight: 700; text-transform: none; letter-spacing: -.04em; }
[data-theme="win2000"] .window { border-radius: 7px 7px 2px 2px; overflow: hidden; }
[data-theme="win2000"] .titlebar { height: 34px; }

[data-theme="dos"] .site-header { min-height: 54px; border-bottom: 2px dashed var(--light); }
[data-theme="dos"] .workspace { display: block; }
[data-theme="dos"] .sidebar {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  border-right: 0;
  border-bottom: 2px solid var(--light);
}
[data-theme="dos"] .sidebar nav { display: flex; }
[data-theme="dos"] .nav-label, [data-theme="dos"] .theme-picker p, [data-theme="dos"] .system-status { display: none; }
[data-theme="dos"] .nav-item { padding: 10px 16px; border-right: 1px solid var(--light); }
[data-theme="dos"] .nav-item.active { color: var(--panel-alt); background: var(--accent-2); box-shadow: none; }
[data-theme="dos"] .theme-picker { margin: 0; padding: 5px; box-shadow: none; }
[data-theme="dos"] .theme-picker label { display: none; }
[data-theme="dos"] .hero-content { grid-template-columns: 1fr 1fr; }
[data-theme="dos"] .hero h2 { font-size: clamp(34px, 4.5vw, 62px); }
[data-theme="dos"] .project-grid { gap: 24px; }
[data-theme="dos"] .project-card { transform: skew(-1deg); }
[data-theme="dos"] .project-card-inner { transform: skew(1deg); }

/* FreeBSD workstation — top panel, handbook-like content, tiled terminals */
[data-theme="freebsd"] {
  --bg: #3b4248;
  --panel: #d8d5cc;
  --panel-alt: #f3f0e8;
  --text: #151515;
  --muted: #55534e;
  --title: #8b1a1a;
  --title-text: #fff;
  --accent: #8b1a1a;
  --accent-2: #d35400;
  --light: #fff;
  --dark: #171717;
  --shadow: #77736c;
  --font-ui: Arial, Helvetica, sans-serif;
  --font-display: Georgia, serif;
}
[data-theme="freebsd"] .app-shell { border: 1px solid #111; box-shadow: 10px 10px 0 rgb(0 0 0 / .35); }
[data-theme="freebsd"] .site-header { min-height: 42px; padding: 5px 12px; color: #fff; background: #252a2e; border-bottom: 3px solid #a52920; }
[data-theme="freebsd"] .site-header::after { content: "ttyv0  |  load 0.12  |  shell: /bin/sh"; margin-left: auto; font: 11px var(--font-mono); color: #ddd; }
[data-theme="freebsd"] .eyebrow { color: #e58f86; }
[data-theme="freebsd"] .workspace { display: block; }
[data-theme="freebsd"] .sidebar { padding: 0 14px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; border: 0; border-bottom: 1px solid #777; background: #b8b5ad; }
[data-theme="freebsd"] .sidebar nav { display: flex; gap: 0; }
[data-theme="freebsd"] .nav-label, [data-theme="freebsd"] .theme-picker p { display: none; }
[data-theme="freebsd"] .nav-item { padding: 8px 12px; border-right: 1px solid #777; }
[data-theme="freebsd"] .nav-item.active { background: #8b1a1a; box-shadow: none; }
[data-theme="freebsd"] .theme-picker { margin: 0; padding: 4px; display: flex; box-shadow: none; background: transparent; }
[data-theme="freebsd"] .theme-picker label { display: none; }
[data-theme="freebsd"] main { display: grid; grid-template-columns: 1.45fr .55fr; gap: 22px; }
[data-theme="freebsd"] main > * { grid-column: 1; }
[data-theme="freebsd"] .hero { grid-column: 1 / -1; }
[data-theme="freebsd"] .hero-content { min-height: 360px; grid-template-columns: 1.2fr .8fr; }
[data-theme="freebsd"] .hero h2 { text-transform: none; letter-spacing: -.03em; }
[data-theme="freebsd"] .split-section { grid-column: 2; grid-row: 2 / span 2; padding-top: 58px; display: flex; flex-direction: column; }
[data-theme="freebsd"] .project-grid { grid-template-columns: 1fr; }
[data-theme="freebsd"] .project-card-inner { min-height: 180px; }
[data-theme="freebsd"] .titlebar { background: #252a2e; border-left: 6px solid #a52920; }
[data-theme="freebsd"] .terminal-window { order: -1; }
[data-theme="freebsd"] .support-panel, [data-theme="freebsd"] .publishing-lab { grid-column: 1 / -1; }

/* Solaris CDE — right control panel, workspace tiles, raised CDE geometry */
[data-theme="solaris"] {
  --bg: #5d4777;
  --panel: #b6aaa1;
  --panel-alt: #d8cec5;
  --text: #201c22;
  --muted: #5c505d;
  --title: #4c355e;
  --title-text: #fff;
  --accent: #4c355e;
  --accent-2: #006d71;
  --light: #f8eee8;
  --dark: #2a222b;
  --shadow: #756b69;
  --font-ui: "Helvetica Neue", Arial, sans-serif;
  --radius: 0;
}
[data-theme="solaris"] .app-shell { border: 5px ridge #b6aaa1; }
[data-theme="solaris"] .site-header { min-height: 52px; background: #85758e; }
[data-theme="solaris"] .site-header::before { content: "Workspace 1"; padding: 8px 18px; color: #fff; background: #4c355e; box-shadow: var(--button-edge); font: 12px var(--font-mono); }
[data-theme="solaris"] .brand { order: 2; }
[data-theme="solaris"] .header-actions { order: 3; }
[data-theme="solaris"] .workspace { grid-template-columns: 1fr 180px; }
[data-theme="solaris"] main { grid-column: 1; grid-row: 1; }
[data-theme="solaris"] .sidebar { grid-column: 2; grid-row: 1; padding: 10px; border: 0; border-left: 4px ridge #d8cec5; background: #85758e; }
[data-theme="solaris"] .sidebar nav { gap: 9px; }
[data-theme="solaris"] .nav-label { padding: 8px; color: #fff; background: #4c355e; text-align: center; }
[data-theme="solaris"] .nav-item { min-height: 58px; padding: 7px; flex-direction: column; justify-content: center; color: #111; background: #b6aaa1; box-shadow: var(--button-edge); text-align: center; }
[data-theme="solaris"] .nav-item.active { color: #fff; background: #006d71; }
[data-theme="solaris"] .theme-picker { margin: 0; }
[data-theme="solaris"] .hero-content { min-height: 380px; grid-template-columns: .9fr 1.1fr; }
[data-theme="solaris"] .hero h2 { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 300; letter-spacing: -.055em; }
[data-theme="solaris"] .project-grid { grid-template-columns: repeat(2, 1fr); }
[data-theme="solaris"] .project-card:last-child { grid-column: 1 / -1; }
[data-theme="solaris"] .titlebar { height: 36px; justify-content: center; border: 3px ridge #d8cec5; }
[data-theme="solaris"] .titlebar > span { margin-left: auto; }
[data-theme="solaris"] .window-buttons { margin-left: auto; }

/* RISC OS — filer-style desktop with bottom iconbar */
[data-theme="riscos"] {
  --bg: #708c82;
  --panel: #d9d2c4;
  --panel-alt: #fffdf3;
  --text: #18201d;
  --muted: #53625d;
  --title: #f4efe2;
  --title-text: #19251f;
  --accent: #325b51;
  --accent-2: #b24b34;
  --light: #fff;
  --dark: #26312d;
  --shadow: #8d8a80;
  --font-ui: "Trebuchet MS", Arial, sans-serif;
  --font-display: "Trebuchet MS", Arial, sans-serif;
  --radius: 3px;
}
[data-theme="riscos"] .app-shell { margin-bottom: 88px; border: 2px solid #293a34; }
[data-theme="riscos"] .site-header { min-height: 46px; background: #d9d2c4; }
[data-theme="riscos"] .workspace { display: block; }
[data-theme="riscos"] .sidebar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: 72px; padding: 6px 14px; display: flex; flex-direction: row; align-items: center; border: 4px ridge #eee6d6; background: #c8c0b0; }
[data-theme="riscos"] .sidebar nav { display: flex; flex: 1; justify-content: center; gap: 12px; }
[data-theme="riscos"] .nav-label, [data-theme="riscos"] .theme-picker p, [data-theme="riscos"] .system-status { display: none; }
[data-theme="riscos"] .nav-item { min-width: 78px; padding: 5px 8px; flex-direction: column; gap: 2px; border: 0; text-align: center; font-size: 11px; }
[data-theme="riscos"] .nav-item > span:first-child { font-size: 24px; }
[data-theme="riscos"] .nav-item.active { color: var(--text); background: #eee7d7; box-shadow: var(--button-edge); }
[data-theme="riscos"] .theme-picker { width: 180px; margin: 0; padding: 5px; box-shadow: none; }
[data-theme="riscos"] .theme-picker label { display: none; }
[data-theme="riscos"] .window { border: 2px solid #273a34; box-shadow: 8px 8px 0 rgb(0 0 0 / .24); }
[data-theme="riscos"] .titlebar { color: #1b2924; background: #f4efe2; border-bottom: 2px solid #273a34; justify-content: center; }
[data-theme="riscos"] .hero-content { min-height: 370px; }
[data-theme="riscos"] .hero h2 { text-transform: none; }
[data-theme="riscos"] .project-grid { grid-template-columns: repeat(3, 1fr); }
[data-theme="riscos"] .project-card { padding: 14px; background: #fffdf3; }
[data-theme="riscos"] .project-card-inner { align-items: center; border: 0; background: transparent; text-align: center; }
[data-theme="riscos"] .project-icon { width: 72px; height: 58px; color: #1d3b32; background: #e5c455; clip-path: polygon(0 18%, 42% 18%, 50% 0, 100% 0, 100% 100%, 0 100%); }

/* Terminal — one continuous shell session, no ornamental windows */
[data-theme="terminal"] {
  --bg: #020704;
  --panel: #020704;
  --panel-alt: #07140b;
  --text: #70ff8d;
  --muted: #3eb45a;
  --title: #020704;
  --title-text: #70ff8d;
  --accent: #70ff8d;
  --accent-2: #e7e86b;
  --light: #70ff8d;
  --dark: #000;
  --shadow: #174a24;
  --font-ui: "Courier New", monospace;
  --font-display: "Courier New", monospace;
  --edge: none;
  --button-edge: 0 0 0 1px #70ff8d;
}
[data-theme="terminal"] .desktop-pattern { opacity: .18; background: repeating-linear-gradient(0deg, transparent 0 3px, #0c2513 4px); }
[data-theme="terminal"] .app-shell { width: min(1100px, 100%); margin-block: 0; box-shadow: none; border-inline: 1px solid #174a24; }
[data-theme="terminal"] .site-header { min-height: 38px; padding: 5px 12px; border-bottom: 1px dashed #70ff8d; background: #020704; }
[data-theme="terminal"] .eyebrow, [data-theme="terminal"] .window-buttons, [data-theme="terminal"] .lab-graphic { display: none; }
[data-theme="terminal"] .brand h1::before { content: "root@turbotopia:~$ "; color: #e7e86b; }
[data-theme="terminal"] .workspace { display: block; }
[data-theme="terminal"] .sidebar { padding: 7px 12px; display: block; border: 0; border-bottom: 1px dashed #174a24; background: #020704; }
[data-theme="terminal"] .sidebar nav { display: flex; flex-wrap: wrap; gap: 14px; }
[data-theme="terminal"] .nav-label { margin: 0; }
[data-theme="terminal"] .nav-label::after { content: ":"; }
[data-theme="terminal"] .nav-item { padding: 0; color: #70ff8d; background: transparent; box-shadow: none; }
[data-theme="terminal"] .nav-item::before { content: "["; }
[data-theme="terminal"] .nav-item::after { content: "]"; }
[data-theme="terminal"] .nav-item > span:first-child, [data-theme="terminal"] .system-status { display: none; }
[data-theme="terminal"] .theme-picker { margin: 8px 0 0; padding: 4px; display: flex; align-items: center; gap: 8px; box-shadow: none; background: transparent; }
[data-theme="terminal"] .theme-picker label { color: #e7e86b; }
[data-theme="terminal"] .theme-picker p { display: none; }
[data-theme="terminal"] main { padding: 16px 24px; }
[data-theme="terminal"] main > * { margin: 0; padding-block: 25px; border-bottom: 1px dashed #174a24; }
[data-theme="terminal"] .window, [data-theme="terminal"] .project-card { box-shadow: none; border: 0; background: transparent; }
[data-theme="terminal"] .titlebar { height: auto; padding: 0 0 14px; background: transparent; }
[data-theme="terminal"] .titlebar span::before { content: "$ cat "; color: #e7e86b; }
[data-theme="terminal"] .hero-content { min-height: 0; padding: 10px 0; display: block; }
[data-theme="terminal"] .hero h2 { font-size: clamp(30px, 5vw, 56px); line-height: 1.08; text-transform: none; letter-spacing: 0; }
[data-theme="terminal"] .hero h2 br { display: none; }
[data-theme="terminal"] .hero h2 em { color: #70ff8d; text-shadow: none; }
[data-theme="terminal"] .button { color: #020704; background: #70ff8d; }
[data-theme="terminal"] .project-grid, [data-theme="terminal"] .split-section, [data-theme="terminal"] .editor-grid { display: block; }
[data-theme="terminal"] .project-card { margin: 16px 0; padding: 0; }
[data-theme="terminal"] .project-card-inner { min-height: 0; padding: 10px 0 10px 22px; border: 0; border-left: 2px solid #174a24; background: transparent; }
[data-theme="terminal"] .project-icon { display: none; }
[data-theme="terminal"] .support-panel { color: #70ff8d; background: transparent; }

/* BBS — fixed 80-column ANSI board with numbered menus and message lists */
[data-theme="bbs"] {
  --bg: #000;
  --panel: #000080;
  --panel-alt: #000;
  --text: #aaaaff;
  --muted: #7f7f7f;
  --title: #0000aa;
  --title-text: #ffff55;
  --accent: #aa0000;
  --accent-2: #55ffff;
  --light: #fff;
  --dark: #000;
  --shadow: #5555ff;
  --font-ui: "Courier New", monospace;
  --font-display: "Courier New", monospace;
  --edge: 0 0 0 2px #5555ff;
  --button-edge: 0 0 0 1px #55ffff;
}
[data-theme="bbs"] .desktop-pattern { display: none; }
[data-theme="bbs"] .app-shell { width: min(960px, 100%); margin: 0 auto; box-shadow: none; border-inline: 2px solid #0000aa; }
[data-theme="bbs"] .site-header { min-height: 84px; display: block; text-align: center; border: 0; border-bottom: 3px double #ffff55; background: #000; }
[data-theme="bbs"] .brand { justify-content: center; }
[data-theme="bbs"] .brand-mark { color: #55ffff; border-color: #ffff55; background: #000080; box-shadow: 3px 3px 0 #aa0000; }
[data-theme="bbs"] .site-header { position: relative; }
[data-theme="bbs"] .header-actions { position: absolute; top: 10px; right: 10px; display: flex; }
[data-theme="bbs"] .eyebrow { color: #ff55ff; }
[data-theme="bbs"] .brand h1 { font-size: 25px; color: #ffff55; }
[data-theme="bbs"] .workspace { display: block; }
[data-theme="bbs"] .sidebar { padding: 8px; display: block; border: 0; background: #000080; }
[data-theme="bbs"] .sidebar nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
[data-theme="bbs"] .nav-label { grid-column: 1 / -1; padding: 5px; color: #fff; text-align: center; }
[data-theme="bbs"] .nav-item { padding: 5px; color: #55ffff; justify-content: center; }
[data-theme="bbs"] .nav-item:nth-of-type(1)::before { content: "[1] "; }
[data-theme="bbs"] .nav-item:nth-of-type(2)::before { content: "[2] "; }
[data-theme="bbs"] .nav-item:nth-of-type(3)::before { content: "[3] "; }
[data-theme="bbs"] .nav-item:nth-of-type(4)::before { content: "[4] "; }
[data-theme="bbs"] .nav-item:nth-of-type(5)::before { content: "[5] "; }
[data-theme="bbs"] .nav-item:nth-of-type(6)::before { content: "[6] "; }
[data-theme="bbs"] .nav-item.active { color: #ffff55; background: #aa0000; box-shadow: none; }
[data-theme="bbs"] .nav-item > span:first-child, [data-theme="bbs"] .system-status { display: none; }
[data-theme="bbs"] .theme-picker { width: 250px; margin: 8px auto 0; padding: 5px; box-shadow: none; background: #000; }
[data-theme="bbs"] .theme-picker label { color: #ffff55; }
[data-theme="bbs"] .theme-picker p { display: none; }
[data-theme="bbs"] main { padding: 12px; }
[data-theme="bbs"] .window, [data-theme="bbs"] .project-card { border: 1px solid #5555ff; box-shadow: none; }
[data-theme="bbs"] .hero-content { min-height: 0; padding: 30px; display: block; text-align: center; }
[data-theme="bbs"] .hero h2 { font-size: clamp(30px, 6vw, 58px); line-height: 1; color: #ffff55; text-transform: uppercase; letter-spacing: 0; }
[data-theme="bbs"] .lab-graphic { display: none; }
[data-theme="bbs"] .project-grid { display: block; }
[data-theme="bbs"] .project-card { margin-top: -1px; padding: 0; }
[data-theme="bbs"] .project-card-inner { min-height: 0; padding: 10px; display: grid; grid-template-columns: 44px 1fr 90px; gap: 10px; border: 0; background: #000; }
[data-theme="bbs"] .project-icon { width: 38px; height: 38px; box-shadow: none; }
[data-theme="bbs"] .project-card-inner > *:not(.project-icon) { grid-column: 2; }
[data-theme="bbs"] .project-card .meta, [data-theme="bbs"] .project-card .progress { grid-column: 3; }
[data-theme="bbs"] .split-section { grid-template-columns: 1fr; }
[data-theme="bbs"] .support-panel { color: #ffff55; background: #000080; }

/* Atari TOS/GEM — menu strip, monochrome desktop, folder workspace */
[data-theme="atari"] {
  --bg: #008f8f;
  --panel: #ededed;
  --panel-alt: #fff;
  --text: #000;
  --muted: #444;
  --title: #fff;
  --title-text: #000;
  --accent: #000;
  --accent-2: #008f8f;
  --light: #fff;
  --dark: #000;
  --shadow: #777;
  --font-ui: Geneva, Arial, sans-serif;
  --font-display: Geneva, Arial, sans-serif;
  --edge: 0 0 0 2px #000;
  --button-edge: 0 0 0 1px #000;
}
[data-theme="atari"] .desktop-pattern { opacity: .1; background-image: repeating-linear-gradient(45deg, #000 0 1px, transparent 1px 3px); }
[data-theme="atari"] .app-shell { width: min(1280px, 100%); margin-top: 0; border: 2px solid #000; box-shadow: none; }
[data-theme="atari"] .site-header { min-height: 28px; padding: 3px 10px; background: #fff; border-bottom: 2px solid #000; }
[data-theme="atari"] .site-header::before { content: "Desk   File   View   Options"; margin-right: auto; font: 13px var(--font-ui); word-spacing: 12px; }
[data-theme="atari"] .brand { position: absolute; left: 50%; transform: translateX(-50%); }
[data-theme="atari"] .eyebrow { display: none; }
[data-theme="atari"] .header-actions { margin-left: auto; display: flex; }
[data-theme="atari"] .brand h1 { font-size: 13px; }
[data-theme="atari"] .workspace { display: block; }
[data-theme="atari"] .sidebar { padding: 16px; display: block; border: 0; background: transparent; }
[data-theme="atari"] .sidebar nav { display: flex; justify-content: flex-end; gap: 20px; }
[data-theme="atari"] .nav-label, [data-theme="atari"] .system-status { display: none; }
[data-theme="atari"] .sidebar { position: relative; }
[data-theme="atari"] .theme-picker { position: absolute; left: 16px; top: 14px; width: 190px; margin: 0; padding: 5px; }
[data-theme="atari"] .theme-picker label, [data-theme="atari"] .theme-picker p { display: none; }
[data-theme="atari"] .nav-item { width: 72px; padding: 4px; flex-direction: column; color: #000; background: transparent; text-align: center; }
[data-theme="atari"] .nav-item > span:first-child { width: 42px; height: 32px; display: grid; place-items: center; border: 2px solid #000; background: #fff; font-size: 20px; }
[data-theme="atari"] .nav-item.active { color: #fff; background: #000; box-shadow: none; }
[data-theme="atari"] main { padding-top: 0; }
[data-theme="atari"] .window { border: 2px solid #000; box-shadow: 7px 7px 0 rgb(0 0 0 / .4); }
[data-theme="atari"] .titlebar { height: 27px; color: #000; background: #fff; border-bottom: 2px solid #000; background-image: repeating-linear-gradient(0deg, transparent 0 2px, #000 2px 3px); }
[data-theme="atari"] .titlebar > span { padding-inline: 10px; background: #fff; }
[data-theme="atari"] .hero-content { min-height: 340px; }
[data-theme="atari"] .hero h2 { font-weight: 500; text-transform: none; letter-spacing: -.04em; }
[data-theme="atari"] .project-grid { grid-template-columns: repeat(4, 1fr); }
[data-theme="atari"] .project-card-inner { min-height: 250px; align-items: center; text-align: center; }
[data-theme="atari"] .project-icon { color: #000; background: #fff; border: 2px solid #000; box-shadow: none; }

/* Game Boy — handheld device, four-tone screen, single-column cartridge UI */
[data-theme="gameboy"] {
  --bg: #575b52;
  --panel: #8b8f81;
  --panel-alt: #9bbc0f;
  --text: #0f380f;
  --muted: #306230;
  --title: #0f380f;
  --title-text: #9bbc0f;
  --accent: #0f380f;
  --accent-2: #306230;
  --light: #c5c9ba;
  --dark: #20251f;
  --shadow: #4b5147;
  --font-ui: "Courier New", monospace;
  --font-display: "Courier New", monospace;
  --radius: 8px;
  --edge: 0 0 0 3px #20251f;
  --button-edge: 0 4px 0 #20251f;
}
[data-theme="gameboy"] .desktop-pattern { opacity: .25; background: radial-gradient(#30352f 1px, transparent 1px); background-size: 5px 5px; }
[data-theme="gameboy"] .app-shell { width: min(620px, calc(100% - 24px)); margin: 18px auto 80px; border: 12px solid #8b8f81; border-radius: 24px 24px 70px 24px; box-shadow: inset 0 0 0 3px #c5c9ba, 14px 18px 0 rgb(0 0 0 / .35); overflow: hidden; }
[data-theme="gameboy"] .site-header { min-height: 64px; background: #8b8f81; border-bottom: 4px solid #20251f; }
[data-theme="gameboy"] .eyebrow { display: none; }
[data-theme="gameboy"] .brand h1 { font-size: 14px; text-transform: uppercase; }
[data-theme="gameboy"] .workspace { display: flex; flex-direction: column; }
[data-theme="gameboy"] .sidebar { order: 2; padding: 16px; border: 0; background: #8b8f81; }
[data-theme="gameboy"] .sidebar nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
[data-theme="gameboy"] .nav-label { grid-column: 1 / -1; color: #20251f; text-align: center; }
[data-theme="gameboy"] .nav-item { min-height: 56px; padding: 5px; flex-direction: column; justify-content: center; border-radius: 50%; color: #c5c9ba; background: #4d234f; box-shadow: 0 4px 0 #20251f; text-align: center; font-size: 9px; }
[data-theme="gameboy"] .nav-item.active { background: #742a75; }
[data-theme="gameboy"] .theme-picker { margin: 8px 0 0; background: #8b8f81; }
[data-theme="gameboy"] .system-status { display: none; }
[data-theme="gameboy"] main { order: 1; padding: 12px; background: #9bbc0f; }
[data-theme="gameboy"] main > * { margin-bottom: 16px; }
[data-theme="gameboy"] .window, [data-theme="gameboy"] .project-card { border-radius: 3px; box-shadow: 0 0 0 3px #0f380f; }
[data-theme="gameboy"] .titlebar { height: 24px; background: #0f380f; }
[data-theme="gameboy"] .window-buttons, [data-theme="gameboy"] .lab-graphic { display: none; }
[data-theme="gameboy"] .hero-content { min-height: 0; padding: 26px 18px; display: block; }
[data-theme="gameboy"] .hero h2 { font-size: clamp(27px, 8vw, 42px); line-height: 1.08; text-transform: uppercase; letter-spacing: -.06em; }
[data-theme="gameboy"] .hero h2 em { color: #306230; text-shadow: none; }
[data-theme="gameboy"] .button { padding: 9px 12px; border-radius: 16px; }
[data-theme="gameboy"] .statusbar { display: none; }
[data-theme="gameboy"] .section { padding-block: 22px; }
[data-theme="gameboy"] .project-grid, [data-theme="gameboy"] .split-section, [data-theme="gameboy"] .editor-grid { grid-template-columns: 1fr; }
[data-theme="gameboy"] .project-card-inner { min-height: 0; background: #9bbc0f; }
[data-theme="gameboy"] .project-icon { color: #9bbc0f; background: #0f380f; box-shadow: 3px 3px 0 #306230; }
[data-theme="gameboy"] .support-panel { color: #9bbc0f; background: #0f380f; }
[data-theme="gameboy"] footer { background: #8b8f81; }

/* Amiga Workbench — screen title, drive desktop and layered windows */
[data-theme="amiga"] {
  --bg: #0055aa;
  --panel: #aaaaaa;
  --panel-alt: #eeeeee;
  --text: #111;
  --muted: #444;
  --title: #0055aa;
  --title-text: #fff;
  --accent: #0055aa;
  --accent-2: #ff8800;
  --light: #fff;
  --dark: #111;
  --shadow: #555;
  --font-ui: Arial, sans-serif;
  --font-display: Arial, sans-serif;
  --radius: 0;
  --edge: 2px solid #111;
  --button-edge: inset -2px -2px #555, inset 2px 2px #fff;
}
[data-theme="amiga"] .app-shell { width: min(1320px, 100%); margin-top: 0; border: 2px solid #111; box-shadow: none; }
[data-theme="amiga"] .site-header { min-height: 32px; padding: 3px 10px; color: #111; background: #fff; border-bottom: 2px solid #111; }
[data-theme="amiga"] .site-header::after { content: "Workbench Screen   2048K graphics mem   4096K other mem"; margin-left: auto; font: 12px var(--font-mono); }
[data-theme="amiga"] .eyebrow, [data-theme="amiga"] .header-actions { display: none; }
[data-theme="amiga"] .brand h1 { font-size: 13px; }
[data-theme="amiga"] .workspace { display: block; }
[data-theme="amiga"] .sidebar { padding: 18px; display: block; border: 0; background: transparent; }
[data-theme="amiga"] .sidebar nav { display: grid; grid-template-columns: repeat(6, 86px); justify-content: end; gap: 14px; }
[data-theme="amiga"] .nav-label, [data-theme="amiga"] .system-status { display: none; }
[data-theme="amiga"] .nav-item { padding: 5px; flex-direction: column; color: #fff; background: transparent; text-align: center; text-shadow: 1px 1px #000; }
[data-theme="amiga"] .nav-item > span:first-child { width: 54px; height: 38px; display: grid; place-items: center; color: #111; background: #ff8800; border: 2px solid #111; text-shadow: none; font-size: 22px; }
[data-theme="amiga"] .nav-item.active { background: #ff8800; box-shadow: none; color: #111; text-shadow: none; }
[data-theme="amiga"] .theme-picker { position: absolute; left: 18px; top: 48px; width: 190px; margin: 0; }
[data-theme="amiga"] main { padding-top: 0; }
[data-theme="amiga"] .window { border: 2px solid #111; box-shadow: 9px 9px 0 rgb(0 0 0 / .35); }
[data-theme="amiga"] .titlebar { height: 28px; color: #111; background: #eee; border-bottom: 2px solid #111; background-image: repeating-linear-gradient(0deg, transparent 0 2px, #777 2px 3px); }
[data-theme="amiga"] .titlebar > span { padding-inline: 8px; background: #eee; }
[data-theme="amiga"] .hero-content { min-height: 360px; }
[data-theme="amiga"] .hero h2 { font-weight: 700; text-transform: none; }
[data-theme="amiga"] .project-grid { grid-template-columns: repeat(2, 1fr); }
[data-theme="amiga"] .project-card:nth-child(2) { transform: translate(18px, 12px); }
[data-theme="amiga"] .project-card:nth-child(3) { transform: translate(36px, 24px); }

/* NeXTSTEP — vertical dock, charcoal menus and document panels */
[data-theme="nextstep"] {
  --bg: #656565;
  --panel: #bdbdbd;
  --panel-alt: #e4e4e4;
  --text: #111;
  --muted: #4a4a4a;
  --title: #242424;
  --title-text: #fff;
  --accent: #242424;
  --accent-2: #7b2d2d;
  --light: #fff;
  --dark: #111;
  --shadow: #555;
  --font-ui: Helvetica, Arial, sans-serif;
  --font-display: Georgia, serif;
  --radius: 1px;
}
[data-theme="nextstep"] .app-shell { width: min(1240px, calc(100% - 40px)); border: 2px solid #111; box-shadow: 14px 14px 0 rgb(0 0 0 / .35); }
[data-theme="nextstep"] .site-header { min-height: 44px; padding-left: 96px; color: #fff; background: #242424; }
[data-theme="nextstep"] .brand-mark { filter: grayscale(1); }
[data-theme="nextstep"] .workspace { grid-template-columns: 72px 1fr; }
[data-theme="nextstep"] .sidebar { padding: 8px; gap: 16px; color: #fff; background: #242424; border-right: 2px solid #000; }
[data-theme="nextstep"] .sidebar nav { display: flex; flex-direction: column; gap: 8px; }
[data-theme="nextstep"] .nav-label, [data-theme="nextstep"] .theme-picker label, [data-theme="nextstep"] .theme-picker p, [data-theme="nextstep"] .system-status { display: none; }
[data-theme="nextstep"] .nav-item { width: 54px; min-height: 54px; padding: 5px; flex-direction: column; justify-content: center; color: #fff; border: 1px solid #888; background: linear-gradient(#555, #222); text-align: center; font-size: 8px; }
[data-theme="nextstep"] .nav-item > span:first-child { font-size: 20px; }
[data-theme="nextstep"] .nav-item.active { background: linear-gradient(#9a4444, #4c1818); }
[data-theme="nextstep"] .theme-picker { width: 54px; margin: auto 0 0; padding: 3px; box-shadow: none; background: #333; }
[data-theme="nextstep"] .theme-picker select { width: 48px; padding: 3px; font-size: 0; }
[data-theme="nextstep"] .hero-content { min-height: 400px; grid-template-columns: 1.4fr .6fr; }
[data-theme="nextstep"] .hero h2 { text-transform: none; font-weight: 400; }
[data-theme="nextstep"] .window { border: 1px solid #111; box-shadow: 6px 7px 0 rgb(0 0 0 / .32); }
[data-theme="nextstep"] .titlebar { height: 28px; justify-content: center; background: #242424; }
[data-theme="nextstep"] .project-grid { grid-template-columns: 1.4fr .8fr; }
[data-theme="nextstep"] .project-card:first-child { grid-row: span 2; }
[data-theme="nextstep"] .project-card-inner { min-height: 190px; }

/* Classic Mac System 7 — global menu bar and monochrome Finder windows */
[data-theme="macclassic"] {
  --bg: #777;
  --panel: #ddd;
  --panel-alt: #fff;
  --text: #000;
  --muted: #444;
  --title: #fff;
  --title-text: #000;
  --accent: #000;
  --accent-2: #555;
  --light: #fff;
  --dark: #000;
  --shadow: #777;
  --font-ui: Geneva, Chicago, Arial, sans-serif;
  --font-display: Geneva, Chicago, Arial, sans-serif;
  --radius: 0;
  --edge: 0 0 0 2px #000;
  --button-edge: 0 0 0 1px #000;
}
[data-theme="macclassic"] .desktop-pattern { opacity: .15; background-image: radial-gradient(#000 1px, transparent 1px); background-size: 3px 3px; }
[data-theme="macclassic"] .app-shell { width: min(1260px, 100%); margin-top: 0; border: 2px solid #000; box-shadow: none; }
[data-theme="macclassic"] .site-header { min-height: 30px; padding: 3px 12px; background: #fff; border-bottom: 2px solid #000; }
[data-theme="macclassic"] .site-header::before { content: "◆  File  Edit  View  Special  Help"; margin-right: auto; font: 13px var(--font-ui); word-spacing: 8px; }
[data-theme="macclassic"] .brand { position: absolute; left: 50%; transform: translateX(-50%); }
[data-theme="macclassic"] .eyebrow { display: none; }
[data-theme="macclassic"] .brand h1 { font-size: 13px; }
[data-theme="macclassic"] .workspace { display: block; }
[data-theme="macclassic"] .sidebar { padding: 10px; display: grid; grid-template-columns: 1fr auto; border: 0; border-bottom: 1px solid #000; background: #ddd; }
[data-theme="macclassic"] .sidebar nav { display: flex; }
[data-theme="macclassic"] .nav-label, [data-theme="macclassic"] .theme-picker p, [data-theme="macclassic"] .system-status { display: none; }
[data-theme="macclassic"] .nav-item { padding: 6px 10px; border-right: 1px solid #777; }
[data-theme="macclassic"] .nav-item.active { color: #fff; background: #000; box-shadow: none; }
[data-theme="macclassic"] .theme-picker { margin: 0; padding: 2px; display: flex; box-shadow: none; }
[data-theme="macclassic"] .theme-picker label { display: none; }
[data-theme="macclassic"] .window { border: 2px solid #000; box-shadow: 6px 6px 0 #000; }
[data-theme="macclassic"] .titlebar { height: 28px; color: #000; background: repeating-linear-gradient(0deg, #fff 0 2px, #000 2px 3px); border-bottom: 2px solid #000; justify-content: center; }
[data-theme="macclassic"] .titlebar > span { padding-inline: 10px; background: #fff; }
[data-theme="macclassic"] .window-buttons { display: none; }
[data-theme="macclassic"] .hero-content { min-height: 360px; }
[data-theme="macclassic"] .hero h2 { font-weight: 500; text-transform: none; letter-spacing: -.04em; }
[data-theme="macclassic"] .project-grid { grid-template-columns: 1fr 1fr; }
[data-theme="macclassic"] .project-card:last-child { grid-column: 1 / -1; }
[data-theme="macclassic"] .project-icon { color: #000; background: #fff; border: 2px solid #000; box-shadow: none; }

/* BeOS — yellow tabs, Deskbar and responsive column layout */
[data-theme="beos"] {
  --bg: #607a83;
  --panel: #d6d2c8;
  --panel-alt: #f4f1e8;
  --text: #181818;
  --muted: #56534e;
  --title: #f0c72d;
  --title-text: #111;
  --accent: #e0b61f;
  --accent-2: #327d89;
  --light: #fff;
  --dark: #202020;
  --shadow: #77736c;
  --font-ui: "Trebuchet MS", Arial, sans-serif;
  --font-display: "Trebuchet MS", Arial, sans-serif;
  --radius: 4px;
}
[data-theme="beos"] .app-shell { width: min(1320px, calc(100% - 24px)); background: transparent; box-shadow: none; }
[data-theme="beos"] .site-header { width: 280px; min-height: 70px; margin-left: auto; color: #111; background: #f0c72d; border: 2px solid #222; box-shadow: 5px 5px 0 rgb(0 0 0 / .25); }
[data-theme="beos"] .workspace { display: block; }
[data-theme="beos"] .sidebar { margin: 14px 0; padding: 8px; display: grid; grid-template-columns: 1fr auto; border: 2px solid #222; background: #d6d2c8; }
[data-theme="beos"] .sidebar nav { display: flex; gap: 5px; }
[data-theme="beos"] .nav-label, [data-theme="beos"] .theme-picker p, [data-theme="beos"] .system-status { display: none; }
[data-theme="beos"] .nav-item { padding: 7px 10px; border-radius: 4px; }
[data-theme="beos"] .nav-item.active { color: #111; background: #f0c72d; box-shadow: inset 0 -3px #8b6d00; }
[data-theme="beos"] .theme-picker { margin: 0; padding: 3px; box-shadow: none; }
[data-theme="beos"] .theme-picker label { display: none; }
[data-theme="beos"] main { padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
[data-theme="beos"] main > * { grid-column: 1 / -1; }
[data-theme="beos"] .section { grid-column: 1 / span 8; }
[data-theme="beos"] .split-section { grid-column: 9 / -1; padding-top: 58px; grid-template-columns: 1fr; }
[data-theme="beos"] .window { overflow: visible; border: 2px solid #222; box-shadow: 7px 7px 0 rgb(0 0 0 / .28); }
[data-theme="beos"] .titlebar { width: max-content; min-width: 180px; height: 30px; margin-top: -2px; color: #111; background: #f0c72d; border: 2px solid #222; transform: translateX(16px); }
[data-theme="beos"] .hero-content { min-height: 370px; }
[data-theme="beos"] .hero h2 { text-transform: none; }
[data-theme="beos"] .project-grid { grid-template-columns: 1fr; }

/* SGI IRIX — toolchest, Motif bevels and visual workstation canvas */
[data-theme="irix"] {
  --bg: #4f7f82;
  --panel: #9da7a5;
  --panel-alt: #cad1cf;
  --text: #101414;
  --muted: #4d5957;
  --title: #355f61;
  --title-text: #fff;
  --accent: #355f61;
  --accent-2: #b05d24;
  --light: #e9f0ee;
  --dark: #1d2928;
  --shadow: #596866;
  --font-ui: Helvetica, Arial, sans-serif;
  --font-display: Helvetica, Arial, sans-serif;
  --radius: 0;
}
[data-theme="irix"] .app-shell { border: 4px ridge #cad1cf; box-shadow: 12px 14px 0 rgb(0 0 0 / .28); }
[data-theme="irix"] .site-header { min-height: 46px; background: linear-gradient(90deg, #355f61, #6d9b9c); }
[data-theme="irix"] .brand h1, [data-theme="irix"] .eyebrow { color: #fff; }
[data-theme="irix"] .workspace { grid-template-columns: 205px 1fr; }
[data-theme="irix"] .sidebar { padding: 8px; border-right: 4px ridge #cad1cf; background: #7f8e8c; }
[data-theme="irix"] .nav-label { padding: 9px; color: #fff; background: #355f61; text-align: center; }
[data-theme="irix"] .nav-item { margin-bottom: 2px; padding: 9px; border: 2px outset #cad1cf; background: #9da7a5; }
[data-theme="irix"] .nav-item.active { background: #b05d24; }
[data-theme="irix"] .hero-content { min-height: 430px; grid-template-columns: .8fr 1.2fr; }
[data-theme="irix"] .hero h2 { font-weight: 300; text-transform: none; letter-spacing: -.055em; }
[data-theme="irix"] .lab-graphic { transform: perspective(600px) rotateY(-7deg); }
[data-theme="irix"] .window { border: 3px outset #cad1cf; box-shadow: 7px 8px 0 rgb(0 0 0 / .25); }
[data-theme="irix"] .titlebar { height: 34px; background: linear-gradient(#557f80, #355f61); border: 2px outset #9db9b7; }
[data-theme="irix"] .project-grid { grid-template-columns: 1fr 1fr; }
[data-theme="irix"] .project-card:first-child { grid-column: 1 / -1; }

/* Palm OS — PDA shell, app launcher and card-based records */
[data-theme="palmos"] {
  --bg: #3e4141;
  --panel: #b8baa9;
  --panel-alt: #d9dbc7;
  --text: #1c201b;
  --muted: #596052;
  --title: #383d35;
  --title-text: #edf0dc;
  --accent: #383d35;
  --accent-2: #6c2f55;
  --light: #f4f5e7;
  --dark: #22251f;
  --shadow: #747768;
  --font-ui: Arial, sans-serif;
  --font-display: Arial, sans-serif;
  --radius: 8px;
}
[data-theme="palmos"] .app-shell { width: min(700px, calc(100% - 24px)); margin: 18px auto 70px; border: 14px solid #707573; border-radius: 32px 32px 54px 54px; box-shadow: inset 0 0 0 3px #aeb1ad, 15px 18px 0 rgb(0 0 0 / .35); overflow: hidden; }
[data-theme="palmos"] .site-header { min-height: 54px; background: #b8baa9; border-bottom: 2px solid #383d35; }
[data-theme="palmos"] .eyebrow { display: none; }
[data-theme="palmos"] .workspace { display: flex; flex-direction: column; }
[data-theme="palmos"] main { order: 1; padding: 12px; }
[data-theme="palmos"] .sidebar { order: 2; padding: 12px; border: 0; border-top: 2px solid #383d35; background: #b8baa9; }
[data-theme="palmos"] .sidebar nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
[data-theme="palmos"] .nav-label { grid-column: 1 / -1; text-align: center; }
[data-theme="palmos"] .nav-item { padding: 7px; flex-direction: column; border: 1px solid #747768; border-radius: 8px; text-align: center; }
[data-theme="palmos"] .nav-item > span:first-child { font-size: 21px; }
[data-theme="palmos"] .nav-item.active { color: #edf0dc; background: #383d35; box-shadow: none; }
[data-theme="palmos"] .theme-picker { margin: 8px 0 0; }
[data-theme="palmos"] .system-status, [data-theme="palmos"] .lab-graphic { display: none; }
[data-theme="palmos"] .hero-content { min-height: 0; padding: 28px 20px; display: block; }
[data-theme="palmos"] .hero h2 { font-size: clamp(32px, 8vw, 52px); text-transform: none; }
[data-theme="palmos"] .project-grid, [data-theme="palmos"] .split-section, [data-theme="palmos"] .editor-grid { grid-template-columns: 1fr; }
[data-theme="palmos"] .project-card { border-radius: 10px; overflow: hidden; }
[data-theme="palmos"] .project-card-inner { min-height: 0; }
[data-theme="palmos"] .window { box-shadow: 0 3px 10px rgb(0 0 0 / .22); }
[data-theme="palmos"] .titlebar { height: 28px; }

/* Ubuntu Unity — global top bar, left launcher and translucent Dash cards */
[data-theme="unity"] {
  --bg: #2c102b;
  --panel: rgb(54 35 54 / .92);
  --panel-alt: rgb(250 247 250 / .92);
  --text: #f5f2f5;
  --muted: #d1c5d0;
  --title: linear-gradient(90deg, #4b2748, #772953);
  --title-text: #fff;
  --accent: #e95420;
  --accent-2: #dd4814;
  --light: #fff;
  --dark: #170817;
  --shadow: #1d0c1c;
  --font-ui: Ubuntu, "Segoe UI", Arial, sans-serif;
  --font-display: Ubuntu, "Segoe UI", Arial, sans-serif;
  --radius: 8px;
  --edge: 0 8px 28px rgb(0 0 0 / .28);
  --button-edge: 0 2px 8px rgb(0 0 0 / .28);
}
[data-theme="unity"] .desktop-pattern { opacity: .65; background: radial-gradient(circle at 70% 20%, #772953, transparent 35%), linear-gradient(135deg, #2c102b, #41113f); }
[data-theme="unity"] .app-shell { width: min(1440px, 100%); margin: 0 auto; background: transparent; box-shadow: none; }
[data-theme="unity"] .site-header { min-height: 34px; padding: 3px 14px 3px 86px; color: #fff; background: rgb(25 15 25 / .92); border: 0; backdrop-filter: blur(12px); }
[data-theme="unity"] .workspace { grid-template-columns: 68px 1fr; }
[data-theme="unity"] .sidebar { padding: 8px; gap: 12px; color: #fff; background: rgb(35 20 35 / .82); border: 0; backdrop-filter: blur(14px); }
[data-theme="unity"] .sidebar nav { display: flex; flex-direction: column; gap: 8px; }
[data-theme="unity"] .nav-label, [data-theme="unity"] .theme-picker label, [data-theme="unity"] .theme-picker p, [data-theme="unity"] .system-status { display: none; }
[data-theme="unity"] .nav-item { width: 50px; min-height: 50px; padding: 5px; flex-direction: column; justify-content: center; color: #fff; border-radius: 8px; background: rgb(255 255 255 / .09); text-align: center; font-size: 8px; }
[data-theme="unity"] .nav-item > span:first-child { font-size: 20px; }
[data-theme="unity"] .nav-item.active { background: #e95420; box-shadow: inset 4px 0 #fff; }
[data-theme="unity"] .theme-picker { width: 50px; margin: auto 0 0; padding: 2px; box-shadow: none; background: transparent; }
[data-theme="unity"] .theme-picker select { width: 46px; padding: 3px; font-size: 0; }
[data-theme="unity"] main { padding: 26px; }
[data-theme="unity"] .window, [data-theme="unity"] .project-card { border: 1px solid rgb(255 255 255 / .14); background: rgb(47 27 47 / .88); box-shadow: 0 12px 32px rgb(0 0 0 / .3); backdrop-filter: blur(16px); }
[data-theme="unity"] .titlebar { background: var(--title); border-radius: 8px 8px 0 0; }
[data-theme="unity"] .hero-content { min-height: 410px; }
[data-theme="unity"] .hero h2 { font-weight: 300; text-transform: none; letter-spacing: -.055em; }
[data-theme="unity"] .project-grid { grid-template-columns: repeat(3, 1fr); }
[data-theme="unity"] .project-card-inner { background: transparent; border: 0; }
[data-theme="unity"] .project-card p, [data-theme="unity"] .card-labels { color: #d1c5d0; }
[data-theme="unity"] .filter-bar input, [data-theme="unity"] .filter-bar select, [data-theme="unity"] .editor-pane textarea { color: #fff; background: rgb(0 0 0 / .22); border: 1px solid rgb(255 255 255 / .2); }
[data-theme="unity"] .support-panel { background: linear-gradient(120deg, #e95420, #772953); }

/* Mechanical ticker board — split-flap station display */
[data-theme="ticker"] {
  --bg: #24231f;
  --panel: #171716;
  --panel-alt: #282724;
  --text: #f2d77e;
  --muted: #a9a28d;
  --title: #070707;
  --title-text: #f3b83f;
  --accent: #d8a83a;
  --accent-2: #f7d873;
  --light: #555149;
  --dark: #050505;
  --shadow: #080808;
  --font-ui: "Arial Narrow", Impact, sans-serif;
  --font-display: Impact, "Arial Black", sans-serif;
  --font-mono: "Courier New", monospace;
  --radius: 3px;
  --edge: 0 0 0 5px #080808, 0 16px 34px rgb(0 0 0 / .55);
  --button-edge: inset 0 -3px #050505, 0 0 0 1px #4a473f;
}
[data-theme="ticker"] .desktop-pattern { opacity: .7; background: radial-gradient(circle at 30% 20%, #4a463b, #171714 58%); }
[data-theme="ticker"] .app-shell { width: min(1280px, calc(100% - 36px)); border: 8px solid #111; border-radius: 10px; }
[data-theme="ticker"] .site-header { min-height: 66px; color: #f3b83f; background: #080808; border-bottom: 5px solid #3d3a32; }
[data-theme="ticker"] .brand-mark { background: #171716; border-color: #d8a83a; box-shadow: 3px 3px #000; }
[data-theme="ticker"] .workspace { grid-template-columns: 1fr; }
[data-theme="ticker"] .sidebar { padding: 8px 18px; display: block; border: 0; border-bottom: 4px solid #080808; background: #34322d; }
[data-theme="ticker"] .sidebar nav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
[data-theme="ticker"] .nav-label { grid-column: 1 / -1; color: #f3b83f; }
[data-theme="ticker"] .nav-item { justify-content: center; color: #f5e8bd; background: #111; border: 1px solid #4c4940; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
[data-theme="ticker"] .nav-item.active { color: #111; background: #d8a83a; box-shadow: inset 0 -3px rgb(0 0 0 / .25); }
[data-theme="ticker"] .theme-picker, [data-theme="ticker"] .system-status { display: none; }
[data-theme="ticker"] main { padding: 22px; }
[data-theme="ticker"] .window, [data-theme="ticker"] .project-card {
  border: 4px solid #080808;
  background: repeating-linear-gradient(0deg, #1d1d1b 0 34px, #090909 35px 37px);
  box-shadow: inset 0 0 0 1px #4e4b43, 8px 10px 0 rgb(0 0 0 / .35);
}
[data-theme="ticker"] .titlebar { height: 34px; color: #111; background: #d8a83a; letter-spacing: .12em; text-transform: uppercase; }
[data-theme="ticker"] .hero-content { min-height: 340px; grid-template-columns: 1.3fr .7fr; }
[data-theme="ticker"] .hero h2 { color: #f6e7b0; text-transform: uppercase; letter-spacing: .035em; text-shadow: 0 3px #000; }
[data-theme="ticker"] .project-grid { grid-template-columns: 1fr; }
[data-theme="ticker"] .project-card-inner { min-height: 120px; display: grid; grid-template-columns: 100px 1fr auto; align-items: center; border: 0; }
[data-theme="ticker"] .project-card h3, [data-theme="ticker"] .idea-list strong { color: #f6e7b0; text-transform: uppercase; letter-spacing: .08em; }
[data-theme="ticker"] .progress-track { background: #080808; }
[data-theme="ticker"] .progress-fill { background: repeating-linear-gradient(90deg, #d8a83a 0 18px, #171716 19px 21px); }

/* TradingView-inspired analytical workspace */
[data-theme="tradingview"] {
  --bg: #0f1118;
  --panel: #131722;
  --panel-alt: #1e222d;
  --text: #d1d4dc;
  --muted: #787b86;
  --title: #1e222d;
  --title-text: #d1d4dc;
  --accent: #2962ff;
  --accent-2: #26a69a;
  --light: #363a45;
  --dark: #090b10;
  --shadow: #0b0d12;
  --font-ui: Inter, "Segoe UI", Arial, sans-serif;
  --font-display: Inter, "Segoe UI", Arial, sans-serif;
  --radius: 6px;
  --edge: 0 0 0 1px #2a2e39;
  --button-edge: 0 0 0 1px #434651;
}
[data-theme="tradingview"] .desktop-pattern { opacity: 1; background: linear-gradient(#131722cc, #131722cc), repeating-linear-gradient(0deg, transparent 0 39px, #2a2e39 40px), repeating-linear-gradient(90deg, transparent 0 59px, #2a2e39 60px); }
[data-theme="tradingview"] .app-shell { width: 100%; min-height: 100vh; margin: 0; background: #131722; box-shadow: none; }
[data-theme="tradingview"] .site-header { min-height: 54px; border-bottom: 1px solid #2a2e39; background: #131722; }
[data-theme="tradingview"] .brand-mark { color: #fff; border: 0; border-radius: 7px; background: #2962ff; box-shadow: none; transform: none; }
[data-theme="tradingview"] .workspace { grid-template-columns: 64px 1fr 250px; }
[data-theme="tradingview"] .sidebar { padding: 8px; border-right: 1px solid #2a2e39; background: #131722; }
[data-theme="tradingview"] .sidebar nav { gap: 6px; }
[data-theme="tradingview"] .nav-label, [data-theme="tradingview"] .nav-text, [data-theme="tradingview"] .theme-picker label, [data-theme="tradingview"] .theme-picker p, [data-theme="tradingview"] .system-status { display: none; }
[data-theme="tradingview"] .nav-item { width: 46px; min-height: 46px; padding: 6px; justify-content: center; border-radius: 6px; }
[data-theme="tradingview"] .nav-item > span:first-child { font-size: 21px; }
[data-theme="tradingview"] .nav-item.active { background: #2962ff; box-shadow: none; }
[data-theme="tradingview"] .theme-picker { width: 46px; margin-top: auto; padding: 2px; background: #1e222d; box-shadow: none; }
[data-theme="tradingview"] .theme-picker select { width: 42px; font-size: 0; }
[data-theme="tradingview"] main { grid-column: 2 / 4; padding: 12px; }
[data-theme="tradingview"] .window, [data-theme="tradingview"] .project-card { border: 1px solid #2a2e39; background: #131722; box-shadow: none; }
[data-theme="tradingview"] .titlebar { height: 30px; border-bottom: 1px solid #2a2e39; background: #1e222d; }
[data-theme="tradingview"] .hero-content { min-height: 430px; background: linear-gradient(160deg, transparent 35%, rgb(41 98 255 / .15) 36% 37%, transparent 38%), repeating-linear-gradient(0deg, transparent 0 49px, #20242e 50px); }
[data-theme="tradingview"] .hero h2 { font-weight: 500; text-transform: none; }
[data-theme="tradingview"] .project-grid { grid-template-columns: repeat(3, 1fr); }
[data-theme="tradingview"] .project-card:first-child { grid-column: span 2; }
[data-theme="tradingview"] .project-card-inner { background: linear-gradient(150deg, transparent 55%, rgb(38 166 154 / .12)); }
[data-theme="tradingview"] .progress-fill { background: #26a69a; }
[data-theme="tradingview"] .status-pill { border-radius: 3px; color: #fff; background: #089981; }

/* Notepad — one plain document window */
[data-theme="notepad"] {
  --bg: #d7d7d7;
  --panel: #fff;
  --panel-alt: #f3f3f3;
  --text: #111;
  --muted: #666;
  --title: #fff;
  --title-text: #111;
  --accent: #0067c0;
  --accent-2: #0078d4;
  --light: #fff;
  --dark: #444;
  --shadow: #aaa;
  --font-ui: "Segoe UI", Arial, sans-serif;
  --font-display: Consolas, "Courier New", monospace;
  --radius: 0;
  --edge: 0 12px 35px rgb(0 0 0 / .22);
  --button-edge: 0 0 0 1px #aaa;
}
[data-theme="notepad"] .desktop-pattern { display: none; }
[data-theme="notepad"] .app-shell { width: min(1180px, calc(100% - 40px)); margin: 20px auto; border: 1px solid #777; background: #fff; }
[data-theme="notepad"] .site-header { min-height: 42px; padding: 5px 10px; border-bottom: 1px solid #ddd; background: #fff; }
[data-theme="notepad"] .brand-mark { width: auto; min-height: 24px; padding: 2px 5px; border: 0; background: transparent; box-shadow: none; transform: none; font-size: 9px; }
[data-theme="notepad"] .workspace { display: block; }
[data-theme="notepad"] .sidebar { padding: 0 8px; display: block; border: 0; border-bottom: 1px solid #ddd; background: #fff; }
[data-theme="notepad"] .sidebar nav { display: flex; gap: 0; }
[data-theme="notepad"] .nav-label, [data-theme="notepad"] .nav-item > span:first-child, [data-theme="notepad"] .system-status { display: none; }
[data-theme="notepad"] .nav-item { min-height: 28px; padding: 5px 9px; background: transparent; box-shadow: none; }
[data-theme="notepad"] .nav-item.active { color: inherit; background: #e5f1fb; }
[data-theme="notepad"] .theme-picker { margin: 0 0 0 auto; padding: 2px; display: flex; align-items: center; box-shadow: none; background: transparent; }
[data-theme="notepad"] .theme-picker label, [data-theme="notepad"] .theme-picker p { display: none; }
[data-theme="notepad"] main { padding: 30px 38px; }
[data-theme="notepad"] main > * { margin-bottom: 44px; }
[data-theme="notepad"] .window, [data-theme="notepad"] .project-card { border: 0; background: #fff; box-shadow: none; }
[data-theme="notepad"] .titlebar { height: 26px; padding: 0; color: #666; background: #fff; border-bottom: 1px dotted #ccc; }
[data-theme="notepad"] .window-buttons { display: none; }
[data-theme="notepad"] .hero-content { min-height: 330px; padding: 24px 0; display: block; }
[data-theme="notepad"] .hero h2 { font-family: Consolas, "Courier New", monospace; font-weight: 400; text-transform: none; letter-spacing: -.04em; }
[data-theme="notepad"] .project-grid { grid-template-columns: 1fr; }
[data-theme="notepad"] .project-card-inner { min-height: 0; padding: 18px 0; border-bottom: 1px solid #ddd; }
[data-theme="notepad"] .project-icon { display: none; }
[data-theme="notepad"] footer { border-top: 1px solid #ddd; background: #f3f3f3; }

/* GnuCash — accounts tree and transaction register */
[data-theme="gnucash"] {
  --bg: #c8d3df;
  --panel: #f7f8fa;
  --panel-alt: #e8edf2;
  --text: #20272d;
  --muted: #63717d;
  --title: linear-gradient(#446d91, #2e526f);
  --title-text: #fff;
  --accent: #2f694f;
  --accent-2: #4a8a69;
  --light: #fff;
  --dark: #34424e;
  --shadow: #8e9ba5;
  --font-ui: "Segoe UI", Arial, sans-serif;
  --font-display: Georgia, serif;
  --radius: 2px;
  --edge: 0 0 0 1px #657786, 7px 9px 24px rgb(0 0 0 / .25);
  --button-edge: inset 0 1px #fff, 0 0 0 1px #73828e;
}
[data-theme="gnucash"] .desktop-pattern { opacity: .35; background: linear-gradient(135deg, #dce5ed, #aebdca); }
[data-theme="gnucash"] .app-shell { width: min(1380px, calc(100% - 24px)); }
[data-theme="gnucash"] .site-header { min-height: 56px; background: linear-gradient(#f8fafb, #dce3e8); }
[data-theme="gnucash"] .brand-mark { color: #fff; border-color: #244c39; background: #2f694f; box-shadow: 3px 3px #9aa7af; transform: none; }
[data-theme="gnucash"] .workspace { grid-template-columns: 250px 1fr; }
[data-theme="gnucash"] .sidebar { padding: 8px; border-right: 1px solid #8795a0; background: #edf1f4; }
[data-theme="gnucash"] .nav-label { padding: 8px; color: #fff; background: #2e526f; }
[data-theme="gnucash"] .nav-item { position: relative; padding: 7px 8px 7px 24px; background: transparent; box-shadow: none; }
[data-theme="gnucash"] .nav-item::before { content: "▸"; position: absolute; left: 8px; color: #2f694f; }
[data-theme="gnucash"] .nav-item.active { color: #fff; background: #4a789d; }
[data-theme="gnucash"] .theme-picker { margin-top: auto; }
[data-theme="gnucash"] main { padding: 16px; }
[data-theme="gnucash"] .window, [data-theme="gnucash"] .project-card { border: 1px solid #71818e; box-shadow: 3px 4px 10px rgb(0 0 0 / .15); }
[data-theme="gnucash"] .titlebar { height: 31px; background: var(--title); }
[data-theme="gnucash"] .hero-content { min-height: 330px; grid-template-columns: .8fr 1.2fr; background: repeating-linear-gradient(0deg, #fff 0 34px, #d7e1e9 35px); }
[data-theme="gnucash"] .hero h2 { color: #244c39; font-family: Georgia, serif; text-transform: none; }
[data-theme="gnucash"] .project-grid { grid-template-columns: 1fr; }
[data-theme="gnucash"] .project-card-inner { min-height: 112px; display: grid; grid-template-columns: 70px 1fr 180px; align-items: center; border: 0; border-bottom: 1px solid #aab5bd; }
[data-theme="gnucash"] .project-card:nth-child(even) .project-card-inner { background: #eaf1f6; }
[data-theme="gnucash"] .progress-fill { background: #2f694f; }

/* Moleskine notebook — tactile paper, tabs and handwriting */
[data-theme="moleskine"] {
  --bg: #352a21;
  --panel: #eee2c2;
  --panel-alt: #e4d6b3;
  --text: #28231d;
  --muted: #746956;
  --title: #28231d;
  --title-text: #f4e8c8;
  --accent: #8d302b;
  --accent-2: #b4473f;
  --light: #fff8e8;
  --dark: #241b15;
  --shadow: #9c8d70;
  --font-ui: Georgia, "Times New Roman", serif;
  --font-display: "Segoe Print", "Comic Sans MS", cursive;
  --font-mono: "Courier New", monospace;
  --radius: 4px;
  --edge: inset 18px 0 20px rgb(64 46 31 / .12), 14px 18px 0 rgb(0 0 0 / .28);
  --button-edge: 0 2px 0 #6f281f;
}
[data-theme="moleskine"] .desktop-pattern { opacity: .8; background: radial-gradient(circle at 25% 15%, #574638, #211914 65%); }
[data-theme="moleskine"] .app-shell { width: min(1120px, calc(100% - 42px)); margin: 28px auto 60px; border: 14px solid #19130f; border-left-width: 30px; border-radius: 5px 20px 20px 5px; background: #eee2c2; overflow: hidden; }
[data-theme="moleskine"] .site-header { min-height: 74px; border-bottom: 1px solid #b9a987; background: #e9dcbb; }
[data-theme="moleskine"] .brand-mark { color: #eee2c2; border-color: #28231d; border-radius: 2px; background: #28231d; box-shadow: 3px 3px #b9a987; transform: rotate(-3deg); }
[data-theme="moleskine"] .workspace { display: block; }
[data-theme="moleskine"] .sidebar { padding: 0 20px; display: block; border: 0; border-bottom: 1px solid #baaa87; background: #e9dcbb; }
[data-theme="moleskine"] .sidebar nav { display: flex; align-items: end; gap: 5px; }
[data-theme="moleskine"] .nav-label, [data-theme="moleskine"] .nav-item > span:first-child, [data-theme="moleskine"] .system-status { display: none; }
[data-theme="moleskine"] .nav-item { padding: 10px 13px; border-radius: 7px 7px 0 0; background: #d1c29f; box-shadow: none; transform: rotate(-1deg); }
[data-theme="moleskine"] .nav-item:nth-child(even) { transform: rotate(1deg); }
[data-theme="moleskine"] .nav-item.active { color: #fff4da; background: #8d302b; }
[data-theme="moleskine"] .theme-picker { margin-left: auto; padding: 5px; box-shadow: none; background: transparent; }
[data-theme="moleskine"] .theme-picker label, [data-theme="moleskine"] .theme-picker p { display: none; }
[data-theme="moleskine"] main { padding: 38px 54px; background: repeating-linear-gradient(0deg, transparent 0 31px, rgb(94 130 150 / .22) 32px), linear-gradient(90deg, transparent 0 50px, rgb(180 71 63 / .25) 51px 52px, transparent 53px); }
[data-theme="moleskine"] .window, [data-theme="moleskine"] .project-card { border: 0; background: rgb(238 226 194 / .76); box-shadow: none; }
[data-theme="moleskine"] .titlebar { height: auto; padding: 7px 0; color: #8d302b; background: transparent; border-bottom: 2px solid currentColor; font-family: var(--font-display); }
[data-theme="moleskine"] .window-buttons { display: none; }
[data-theme="moleskine"] .hero-content { min-height: 380px; padding: 34px 20px; display: block; }
[data-theme="moleskine"] .hero h2 { font-weight: 600; text-transform: none; transform: rotate(-1deg); }
[data-theme="moleskine"] .project-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
[data-theme="moleskine"] .project-card { transform: rotate(-.6deg); }
[data-theme="moleskine"] .project-card:nth-child(even) { transform: rotate(.8deg); }
[data-theme="moleskine"] .project-card-inner { min-height: 240px; border: 0; border-bottom: 2px solid #8d302b; }
[data-theme="moleskine"] .project-icon { color: #8d302b; background: transparent; border: 2px solid currentColor; border-radius: 50%; box-shadow: none; }

/* Windows 2000 / NT */
[data-theme="win2000"] {
  --bg: #3a6ea5;
  --panel: #d4d0c8;
  --panel-alt: #ece9d8;
  --title: linear-gradient(90deg, #0a246a, #a6caf0);
  --accent: #0a246a;
  --accent-2: #245edb;
  --shadow: #808080;
  --radius: 2px;
}
[data-theme="win2000"] .titlebar { background: var(--title); }
[data-theme="win2000"] .hero-content { background: linear-gradient(135deg, transparent 70%, rgb(10 36 106 / .09) 70%); }
[data-theme="win2000"] .nav-item.active { background: linear-gradient(90deg, #0a246a, #3a6ea5); }

/* DOS graphical */
[data-theme="dos"] {
  --bg: #090b18;
  --panel: #111b4c;
  --panel-alt: #0b1234;
  --text: #fff;
  --muted: #a8b5ff;
  --title: #2b4cff;
  --title-text: #fff;
  --accent: #3152ff;
  --accent-2: #ff3fc7;
  --light: #7487ff;
  --dark: #03061a;
  --shadow: #1a2a78;
  --font-ui: "Courier New", monospace;
  --font-display: "Courier New", monospace;
  --radius: 0;
  --edge: 0 0 0 2px var(--light), 5px 5px 0 #03061a;
  --button-edge: 0 0 0 2px var(--light), 3px 3px 0 #03061a;
}
[data-theme="dos"] .desktop-pattern { opacity: .2; background-image: linear-gradient(rgb(49 82 255 / .2) 1px, transparent 1px), linear-gradient(90deg, rgb(49 82 255 / .2) 1px, transparent 1px); background-size: 16px 16px; }
[data-theme="dos"] .app-shell { box-shadow: 0 0 0 2px #7487ff, 14px 14px 0 #000; }
[data-theme="dos"] .brand-mark { color: #fff; border-color: #38e1ff; background: #172358; box-shadow: 3px 3px 0 #ff3fc7; }
[data-theme="dos"] .monitor { background: #101632; box-shadow: inset 5px 5px #5368d7, inset -5px -5px #030616; }
[data-theme="dos"] .computer-base { background: #172358; box-shadow: inset 0 -7px #05091d; }

/* Dark mode variants */
[data-mode="dark"]:is([data-theme="win311"], [data-theme="win95"], [data-theme="win98"], [data-theme="win2000"], [data-theme="os2"]) {
  --bg: #111827;
  --panel: #30343b;
  --panel-alt: #23272e;
  --text: #f1f1f1;
  --muted: #b6bbc4;
  --light: #666c75;
  --dark: #07090b;
  --shadow: #15181d;
}
[data-theme="win95"][data-mode="dark"] { --title: #492579; --accent: #492579; --accent-2: #1b8d89; }
[data-theme="win98"][data-mode="dark"] {
  --bg: #173b46;
  --panel: #30343a;
  --panel-alt: #24282f;
  --text: #f3f6fb;
  --muted: #c4ccd8;
  --title: linear-gradient(90deg, #123b76, #2e6fb7);
  --title-text: #fff;
  --accent: #1f5f9f;
  --accent-2: #55c7d6;
  --light: #6f7782;
  --dark: #07090c;
  --shadow: #171b20;
}
[data-theme="win98"][data-mode="dark"] .app-shell,
[data-theme="win98"][data-mode="dark"] .site-header,
[data-theme="win98"][data-mode="dark"] .sidebar,
[data-theme="win98"][data-mode="dark"] footer {
  background: var(--panel);
}
[data-theme="win98"][data-mode="dark"] .window,
[data-theme="win98"][data-mode="dark"] .project-card,
[data-theme="win98"][data-mode="dark"] .theme-picker,
[data-theme="win98"][data-mode="dark"] .filter-bar {
  background: var(--panel-alt);
}
[data-theme="win98"][data-mode="dark"] .project-card-inner,
[data-theme="win98"][data-mode="dark"] .idea-item,
[data-theme="win98"][data-mode="dark"] .preview-pane,
[data-theme="win98"][data-mode="dark"] .editor-pane {
  color: var(--text);
  background: #2c3139;
}
[data-theme="win98"][data-mode="dark"] .filter-bar input,
[data-theme="win98"][data-mode="dark"] .filter-bar select,
[data-theme="win98"][data-mode="dark"] .editor-pane textarea,
[data-theme="win98"][data-mode="dark"] .theme-picker select {
  color: #f7f9fc;
  background: #111820;
  border-color: #30343a;
}
[data-theme="win98"][data-mode="dark"] .button:not(.coffee),
[data-theme="win98"][data-mode="dark"] .icon-button,
[data-theme="win98"][data-mode="dark"] .mobile-menu,
[data-theme="win98"][data-mode="dark"] .window-buttons i {
  color: var(--text);
  background: #3a4049;
}
[data-theme="win98"][data-mode="dark"] .button.primary,
[data-theme="win98"][data-mode="dark"] .nav-item.active,
[data-theme="win98"][data-mode="dark"] .badge {
  color: #fff;
  background: #1f5f9f;
}
[data-theme="win98"][data-mode="dark"] .terminal-window,
[data-theme="win98"][data-mode="dark"] .terminal {
  color: #8df7a3;
  background: #061109;
}
[data-theme="win98"][data-mode="dark"] .news-item time { color: #ffe47a; }
[data-theme="win98"][data-mode="dark"] .news-item strong { color: #a5ffb4; }
[data-theme="win98"][data-mode="dark"] .hero h2 em { color: #74d7e4; text-shadow: 2px 2px 0 #061109; }
[data-theme="win98"][data-mode="dark"] .screen { color: #8df7a3; background: #061109; border-color: #20242a; }
[data-theme="win2000"][data-mode="dark"] { --title: linear-gradient(90deg, #132b54, #435b78); --accent: #234d88; --accent-2: #4285d4; }
[data-theme="freebsd"][data-mode="dark"] { --bg: #171b1e; --panel: #343a3e; --panel-alt: #20262a; --text: #f0ece5; --muted: #b8b1a7; --light: #657078; --shadow: #181b1d; }
[data-theme="solaris"][data-mode="dark"] { --bg: #271c32; --panel: #4b424d; --panel-alt: #332b37; --text: #f4eaf4; --muted: #c1b4c1; --light: #766a79; --shadow: #201b22; }
[data-theme="riscos"][data-mode="dark"] { --bg: #263b35; --panel: #444b47; --panel-alt: #29312e; --text: #f3efe6; --muted: #c4c0b6; --title: #57625d; --title-text: #fff; --light: #747d78; --shadow: #202522; }
[data-theme="atari"][data-mode="dark"] { --bg: #123e3e; --panel: #2e3131; --panel-alt: #171919; --text: #f0f0f0; --muted: #b8b8b8; --title: #151515; --title-text: #fff; --light: #777; --shadow: #111; }
[data-theme="gameboy"][data-mode="dark"] { --bg: #20251f; --panel: #4b5147; --panel-alt: #306230; --text: #9bbc0f; --muted: #8bac0f; --title: #9bbc0f; --title-text: #0f380f; --light: #68705f; --shadow: #151914; }
[data-theme="terminal"][data-mode="light"] { --bg: #e8e6d8; --panel: #e8e6d8; --panel-alt: #f8f5e7; --text: #173d20; --muted: #3c7048; --title: #e8e6d8; --title-text: #173d20; --accent: #173d20; --accent-2: #7b4b00; --light: #173d20; --dark: #fff; --shadow: #9cb3a0; }
[data-theme="bbs"][data-mode="light"] { --bg: #d6d6d6; --panel: #aaaaff; --panel-alt: #fff; --text: #000080; --muted: #555; --title: #5555ff; --title-text: #000; --accent: #aa0000; --accent-2: #005f77; --light: #fff; --dark: #000080; --shadow: #777; }
[data-theme="amiga"][data-mode="dark"] { --bg: #002d59; --panel: #444; --panel-alt: #202020; --text: #f2f2f2; --muted: #bbb; --title: #002d59; --title-text: #fff; --light: #777; --shadow: #111; }
[data-theme="nextstep"][data-mode="dark"] { --bg: #222; --panel: #3c3c3c; --panel-alt: #202020; --text: #f0f0f0; --muted: #bbb; --title: #080808; --title-text: #fff; --light: #666; --shadow: #111; }
[data-theme="macclassic"][data-mode="dark"] { --bg: #222; --panel: #353535; --panel-alt: #111; --text: #f5f5f5; --muted: #bbb; --title: #111; --title-text: #fff; --light: #777; --shadow: #000; }
[data-theme="beos"][data-mode="dark"] { --bg: #263b42; --panel: #3f413e; --panel-alt: #222421; --text: #f5f2e9; --muted: #c8c3b9; --title: #b58d00; --title-text: #fff; --light: #72746f; --shadow: #161716; }
[data-theme="irix"][data-mode="dark"] { --bg: #1c3e40; --panel: #394746; --panel-alt: #202a29; --text: #eef5f3; --muted: #bdc9c7; --title: #193e40; --title-text: #fff; --light: #6d807e; --shadow: #111918; }
[data-theme="palmos"][data-mode="dark"] { --bg: #1b1e1d; --panel: #454940; --panel-alt: #262b24; --text: #eef0df; --muted: #bcc2af; --title: #20251f; --title-text: #eef0df; --light: #6e7468; --shadow: #171a16; }
[data-theme="unity"][data-mode="light"] { --bg: #eee8ed; --panel: rgb(255 255 255 / .9); --panel-alt: rgb(255 255 255 / .95); --text: #2b1829; --muted: #705f6d; --title-text: #fff; --light: #fff; --dark: #34172f; --shadow: #c6b8c4; }
[data-theme="ticker"][data-mode="light"] { --bg: #a8a397; --panel: #e4dfd2; --panel-alt: #c8c2b5; --text: #201f1b; --muted: #655f54; --title: #423f37; --title-text: #fff4cd; --light: #fff; --dark: #292721; --shadow: #777064; }
[data-theme="ticker"][data-mode="light"] .window, [data-theme="ticker"][data-mode="light"] .project-card { color: #fff4cd; }
[data-theme="tradingview"][data-mode="light"] { --bg: #f0f3fa; --panel: #fff; --panel-alt: #f0f3fa; --text: #131722; --muted: #787b86; --title: #f0f3fa; --title-text: #131722; --light: #fff; --dark: #363a45; --shadow: #d1d4dc; }
[data-theme="tradingview"][data-mode="light"] .app-shell, [data-theme="tradingview"][data-mode="light"] .site-header, [data-theme="tradingview"][data-mode="light"] .sidebar, [data-theme="tradingview"][data-mode="light"] .window, [data-theme="tradingview"][data-mode="light"] .project-card { background: #fff; }
[data-theme="notepad"][data-mode="dark"] { --bg: #202020; --panel: #272727; --panel-alt: #333; --text: #f2f2f2; --muted: #aaa; --title: #272727; --title-text: #fff; --light: #555; --dark: #090909; --shadow: #111; }
[data-theme="notepad"][data-mode="dark"] .app-shell, [data-theme="notepad"][data-mode="dark"] .site-header, [data-theme="notepad"][data-mode="dark"] .sidebar, [data-theme="notepad"][data-mode="dark"] .window, [data-theme="notepad"][data-mode="dark"] .project-card { background: #272727; }
[data-theme="notepad"][data-mode="dark"] footer { background: #333; }
[data-theme="gnucash"][data-mode="dark"] { --bg: #25313a; --panel: #303b43; --panel-alt: #202a31; --text: #edf2f5; --muted: #b2bec6; --title: linear-gradient(#294760, #182f42); --title-text: #fff; --light: #5a6872; --dark: #11191f; --shadow: #182027; }
[data-theme="gnucash"][data-mode="dark"] .sidebar { background: #26333c; }
[data-theme="gnucash"][data-mode="dark"] .hero-content { background: repeating-linear-gradient(0deg, #303b43 0 34px, #3c4952 35px); }
[data-theme="gnucash"][data-mode="dark"] .project-card:nth-child(even) .project-card-inner { background: #26343e; }
[data-theme="moleskine"][data-mode="dark"] { --bg: #17120e; --panel: #393027; --panel-alt: #2c251f; --text: #eadfca; --muted: #b6a991; --title: #17120e; --title-text: #eadfca; --light: #65584a; --dark: #090705; --shadow: #17110d; }
[data-theme="moleskine"][data-mode="dark"] .app-shell, [data-theme="moleskine"][data-mode="dark"] .site-header, [data-theme="moleskine"][data-mode="dark"] .sidebar { background: #393027; }
[data-theme="moleskine"][data-mode="dark"] main { background: repeating-linear-gradient(0deg, transparent 0 31px, rgb(106 139 151 / .18) 32px), linear-gradient(90deg, transparent 0 50px, rgb(180 71 63 / .22) 51px 52px, transparent 53px); }
[data-theme="moleskine"][data-mode="dark"] .window, [data-theme="moleskine"][data-mode="dark"] .project-card { background: rgb(57 48 39 / .8); }
[data-theme="dos"][data-mode="light"] {
  --bg: #dad9c5;
  --panel: #f1f0d7;
  --panel-alt: #fffdeb;
  --text: #071b68;
  --muted: #46538d;
  --title-text: #fff;
  --light: #fff;
  --dark: #071b68;
  --shadow: #7882aa;
}

@media (max-width: 980px) {
  .workspace { grid-template-columns: 190px 1fr; }
  .hero-content { grid-template-columns: 1fr; }
  .lab-graphic { display: none; }
  .project-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .support-panel { align-items: flex-start; flex-direction: column; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar .search-field { grid-column: 1 / -1; }
  .editor-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .theme-dialog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .app-shell { width: 100%; min-height: 100vh; margin: 0; box-shadow: none; }
  .site-header { min-height: 68px; padding: 10px 12px; }
  .brand .eyebrow { display: none; }
  .brand h1 { font-size: 13px; }
  .brand-mark { width: 62px; min-height: 30px; transform: rotate(-2deg) scale(.9); }
  .mobile-menu { display: block; }
  .workspace { display: block; min-height: 0; }
  .sidebar { display: none; border-right: 0; border-bottom: 2px solid var(--shadow); }
  .sidebar.open { display: flex; }
  main { padding: 14px; }
  .hero-content { min-height: 430px; padding: 38px 22px; }
  .hero h2 { font-size: clamp(34px, 12vw, 52px); }
  .statusbar { grid-template-columns: 1fr auto; }
  .statusbar span:nth-child(2) { display: none; }
  .section { padding-top: 44px; }
  .section-heading { align-items: flex-start; }
  .text-link { display: none; }
  .split-section { padding-bottom: 42px; }
  .support-panel { padding: 25px; }
  .support-actions { justify-content: flex-start; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-bar .search-field { grid-column: auto; }
  .filter-bar output { text-align: left; }
  .editor-pane, .preview-pane { min-height: 360px; padding: 14px; }
  .editor-pane textarea { min-height: 280px; }
  .detail-main { padding: 22px 14px 50px; }
  .detail-content { padding: 28px 20px; }
  .detail-footer { flex-direction: column; }
  .commerce-main { padding: 35px 14px 50px; }
  .product-grid, .support-grid { grid-template-columns: 1fr; }
  .product-body { min-height: 0; }
  .receipt-content dl { grid-template-columns: 1fr; }
  .admin-main { padding: 14px; }
  .admin-workspace, .admin-media { grid-template-columns: 1fr; }
  .media-library { grid-template-columns: 1fr; }
  .global-theme-button { right: 10px; bottom: 10px; }
  .theme-dialog-grid { grid-template-columns: 1fr 1fr; padding: 10px; }
  .theme-dialog-header { padding: 14px; }
  .theme-choice { min-height: 135px; }
  footer { gap: 8px; flex-direction: column; }

  [data-theme] .workspace { display: block; }
  [data-theme] main { display: block; }
  [data-theme] .site-header { width: 100%; min-width: 0; padding: 10px 12px; }
  [data-theme] .brand { min-width: 0; }
  [data-theme] .brand h1 { overflow-wrap: anywhere; }
  [data-theme] .header-actions { flex: 0 0 auto; }
  [data-theme] .sidebar {
    position: static;
    width: auto;
    height: auto;
    display: none;
    padding: 16px;
    border: 0;
    border-bottom: 2px solid var(--shadow);
  }
  [data-theme] .sidebar.open { display: flex; }
  [data-theme] .sidebar nav { display: grid; grid-template-columns: 1fr; }
  [data-theme] .nav-label { display: block; grid-column: auto; }
  [data-theme] .nav-item { min-height: 0; padding: 10px; flex-direction: row; justify-content: flex-start; transform: none; }
  [data-theme] .theme-picker { margin-top: 10px; display: block; }
  [data-theme] .theme-picker label { display: block; }
  [data-theme] .system-status { display: flex; }
  [data-theme] .project-grid { grid-template-columns: 1fr; }
  [data-theme] .project-card { transform: none; }
  [data-theme] .project-card-inner { display: flex; transform: none; }
  [data-theme="atari"] .brand { position: static; transform: none; }
  [data-theme="macclassic"] .brand { position: static; transform: none; }
  [data-theme="freebsd"] .site-header::after, [data-theme="atari"] .site-header::before, [data-theme="solaris"] .site-header::before { display: none; }
  [data-theme="amiga"] .site-header::after, [data-theme="macclassic"] .site-header::before { display: none; }
  [data-theme="gameboy"] .app-shell { width: calc(100% - 16px); margin: 8px; border-width: 7px; border-radius: 18px 18px 38px 18px; }
  [data-theme="palmos"] .app-shell { width: calc(100% - 16px); margin: 8px; border-width: 7px; border-radius: 18px 18px 32px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.account-main {
  display: grid;
  gap: 2rem;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.account-auth,
.account-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.account-form-body {
  display: grid;
  gap: .9rem;
  padding: 1rem;
}

.account-form label,
.product-body label {
  display: grid;
  gap: .35rem;
}

.account-form input,
.product-body input {
  box-sizing: border-box;
  width: 100%;
  padding: .65rem;
  border: 1px solid var(--border, #555);
  background: var(--panel, #fff);
  color: inherit;
  font: inherit;
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: .6rem;
}

.check-row input {
  width: auto;
}

.account-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.account-settings {
  margin-bottom: 2rem;
}

.account-message {
  margin: 0;
  padding: .8rem 1rem;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.account-message.error,
.danger-zone h2 {
  color: #a21b1b;
}

.button.danger {
  color: #fff;
  background: #a21b1b;
  border-color: #6e0808;
}

@media (max-width: 720px) {
  .account-auth,
  .account-data-grid {
    grid-template-columns: 1fr;
  }
}
