/* Layout: a CAD workspace (tree | viewport | properties) on top, then a drawing set of bordered sheets.
   Two themes: Vellum (light drafting film) and Blueprint (dark cyanotype). */
:root {
  --paper: #e6eaec;      /* vellum ground */
  --panel: #f2f4f5;      /* app chrome */
  --sheet: #f7f8f8;      /* drawing sheets */
  --ink: #142233;        /* navy drafting ink */
  --ink-2: #4c5a69;
  --ink-3: #7d8995;
  --rule: rgba(20, 34, 51, .16);
  --rule-2: rgba(20, 34, 51, .07);
  --accent: #e2531c;     /* international orange, selection */
  --accent-ink: #ffffff;
  --dim: #2464c4;        /* dimension blue */
  --ok: #2b8a57;
  --vp-top: #f4f6f7;
  --vp-bot: #d5dbdf;
  --part: #e9ecee;
  --edge: #1b2a3b;
  --shadow: rgba(20, 34, 51, .18);

  --f-display: "Tektur", "Bahnschrift", "DIN Alternate", "Arial Narrow", sans-serif;
  --f-body: "B612", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "B612 Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --s-1: 12px; --s0: 14px; --s1: 16px; --s2: 20px; --s3: 26px; --s4: 36px; --s5: 52px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c2341; --panel: #0f2a4c; --sheet: #0e2747;
    --ink: #e4edf7; --ink-2: #a3b8cf; --ink-3: #7591b0;
    --rule: rgba(228, 237, 247, .2); --rule-2: rgba(228, 237, 247, .08);
    --accent: #ff7b3a; --accent-ink: #0c2341; --dim: #8fd0ff; --ok: #59d29a;
    --vp-top: #123563; --vp-bot: #0a1f3b; --part: #164070; --edge: #d9ecff; --shadow: rgba(0, 8, 20, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c2341; --panel: #0f2a4c; --sheet: #0e2747;
  --ink: #e4edf7; --ink-2: #a3b8cf; --ink-3: #7591b0;
  --rule: rgba(228, 237, 247, .2); --rule-2: rgba(228, 237, 247, .08);
  --accent: #ff7b3a; --accent-ink: #0c2341; --dim: #8fd0ff; --ok: #59d29a;
  --vp-top: #123563; --vp-bot: #0a1f3b; --part: #164070; --edge: #d9ecff; --shadow: rgba(0, 8, 20, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--s0)/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
kbd {
  font: 400 11px/1 var(--f-mono); padding: 3px 5px; border: 1px solid var(--rule);
  border-bottom-width: 2px; border-radius: 3px; background: var(--sheet); color: var(--ink-2);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }

.btn-solid, .btn-line {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  font: 700 13px/1 var(--f-body); text-decoration: none; border-radius: 2px; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-solid { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-line { background: transparent; border: 1px solid var(--rule); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }

/* ================= WORKSPACE ================= */
.ws {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 312px;
  grid-template-rows: 48px minmax(0, 1fr) 28px;
  grid-template-areas: "bar bar bar" "tree vp props" "st st st";
  height: 100vh; height: 100svh; min-height: 640px; max-height: 1100px;
  background: var(--panel); border-bottom: 1px solid var(--rule);
}
.ws-bar {
  grid-area: bar; display: flex; align-items: center; gap: 20px; padding: 0 16px;
  border-bottom: 1px solid var(--rule); background: var(--panel); position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 28px; height: 28px; display: grid; place-items: center; border: 1.5px solid var(--ink);
  font: 700 12px/1 var(--f-display); letter-spacing: .04em;
}
.brand-file { font: 400 13px/1 var(--f-mono); white-space: nowrap; }
.brand-ext { color: var(--ink-3); }
.brand-rev { font: 400 11px/1 var(--f-mono); color: var(--ink-3); border: 1px solid var(--rule); padding: 3px 5px; }
.ws-nav { display: flex; gap: 2px; margin-left: 8px; }
.ws-nav a { text-decoration: none; padding: 6px 10px; font-size: 13px; color: var(--ink-2); border-radius: 2px; }
.ws-nav a:hover { color: var(--ink); background: var(--rule-2); }
.ws-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.kbtn {
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px 0 12px;
  border: 1px solid var(--rule); background: var(--sheet); border-radius: 2px; color: var(--ink-3); font-size: 13px;
}
.kbtn:hover { border-color: var(--ink-3); color: var(--ink-2); }
.theme-btn {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--rule);
  background: transparent; font: 400 12px/1 var(--f-mono); color: var(--ink-3); border-radius: 2px;
}
.tb-sw { width: 30px; height: 16px; border: 1px solid var(--ink-2); position: relative; border-radius: 1px; }
.tb-sw i { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; background: var(--accent); transition: transform .25s var(--ease); }
.is-dark .tb-sw i { transform: translateX(14px); }
.is-dark .tb-r, :root:not(.is-dark) .tb-l { color: var(--ink); }

/* feature tree */
.tree {
  grid-area: tree; display: flex; flex-direction: column; border-right: 1px solid var(--rule);
  background: var(--panel); min-height: 0;
}
.tree-head, .props-head {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 10px;
  font: 700 12px/1 var(--f-body); letter-spacing: .02em; color: var(--ink-2); border-bottom: 1px solid var(--rule-2);
}
.tree-count { font: 400 11px/1 var(--f-mono); color: var(--ink-3); }
.tree-list { list-style: none; margin: 0; padding: 6px 0; overflow-y: auto; flex: 1; }
.tree-root { padding: 6px 14px 6px; font: 400 12px/1.3 var(--f-mono); color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.tree-root svg { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; }
.ti {
  display: grid; grid-template-columns: 14px 22px minmax(0, 1fr) auto; align-items: center; gap: 6px;
  padding: 6px 12px 6px 22px; cursor: pointer; position: relative; border-left: 2px solid transparent;
  opacity: 1; transition: background .12s, opacity .3s;
}
.ti::before { content: ""; position: absolute; left: 13px; top: 0; bottom: 0; border-left: 1px dotted var(--rule); }
.ti:hover, .ti.hover { background: var(--rule-2); }
.ti[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 12%, transparent); border-left-color: var(--accent); }
.ti .ti-ic { width: 14px; height: 14px; stroke: var(--ink-2); fill: none; stroke-width: 1.4; }
.ti[aria-selected="true"] .ti-ic { stroke: var(--accent); }
.ti-n { font: 700 11px/1 var(--f-mono); color: var(--ink-3); text-align: right; }
.ti-t { font-size: 13px; line-height: 1.25; min-width: 0; }
.ti-t small { display: block; font: 400 11px/1.3 var(--f-mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-st { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.ti-st.live { background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
.ws[data-boot="1"] .ti.pending { opacity: .2; }
.tree-foot { border-top: 1px solid var(--rule-2); padding: 10px 14px; display: grid; gap: 4px; }
.tf-row { display: flex; justify-content: space-between; font: 400 11px/1.3 var(--f-mono); color: var(--ink-3); }
.tf-row span:last-child { color: var(--ink-2); }

/* viewport */
.vp {
  grid-area: vp; position: relative; overflow: hidden; min-height: 0;
  background: linear-gradient(180deg, var(--vp-top), var(--vp-bot));
  touch-action: none; cursor: grab;
}
.vp.dragging { cursor: grabbing; }
.vp.measuring { cursor: crosshair; }
.vp.hovering { cursor: pointer; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.balloons, .dims { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.balloons .bl { pointer-events: auto; cursor: pointer; }
.balloons line { stroke: var(--ink); stroke-width: 1; }
.balloons circle.bc { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.2; transition: fill .15s; }
.balloons circle.dot { fill: var(--ink); }
.balloons text { font: 700 12px var(--f-mono); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.balloons .bl.on circle.bc, .balloons .bl:hover circle.bc { fill: var(--accent); stroke: var(--accent); }
.balloons .bl.on text, .balloons .bl:hover text { fill: var(--accent-ink); }
.balloons .bl.on line, .balloons .bl:hover line { stroke: var(--accent); }
.balloons .bl.on circle.dot { fill: var(--accent); }
.dims line { stroke: var(--dim); stroke-width: 1.2; }
.dims .ext { stroke-dasharray: 3 3; opacity: .7; }
.dims circle { fill: var(--dim); }
.dims rect { fill: var(--sheet); stroke: var(--dim); }
.dims text { font: 700 12px var(--f-mono); fill: var(--dim); text-anchor: middle; dominant-baseline: central; }

.hero { position: absolute; left: 28px; top: 22px; max-width: min(460px, 60%); pointer-events: none; z-index: 2; }
.hero-name {
  margin: 0; font: 700 clamp(40px, 5.4vw, 76px)/.88 var(--f-display); letter-spacing: -.01em; text-transform: uppercase;
  color: var(--ink);
}
.hero-name span { display: inline-block; }
.hero-name span + span { color: transparent; -webkit-text-stroke: 1.4px var(--ink); }
.hero-sub { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 38ch; }
.hero-hint { margin: 10px 0 0; font: 400 12px/1.6 var(--f-mono); color: var(--ink-3); }
.vp.has-sel .hero { opacity: .0; transform: translateY(-6px); }
.hero { transition: opacity .35s, transform .35s; }

/* view cube (CSS 3D) */
.viewcube { position: absolute; right: 22px; top: 22px; width: 76px; height: 96px; perspective: 400px; z-index: 3; }
.vc-cube { position: absolute; left: 8px; top: 8px; width: 60px; height: 60px; transform-style: preserve-3d; }
.vc-face {
  position: absolute; inset: 0; width: 60px; height: 60px; border: 1px solid var(--ink-2); background: color-mix(in srgb, var(--sheet) 88%, transparent);
  font: 700 10px/1 var(--f-mono); letter-spacing: .04em; color: var(--ink-2); text-transform: uppercase; padding: 0;
  backface-visibility: hidden;
}
.vc-face:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.f-front { transform: translateZ(30px); }
.f-back { transform: rotateY(180deg) translateZ(30px); }
.f-right { transform: rotateY(90deg) translateZ(30px); }
.f-left { transform: rotateY(-90deg) translateZ(30px); }
.f-top { transform: rotateX(90deg) translateZ(30px); }
.f-bottom { transform: rotateX(-90deg) translateZ(30px); }
.vc-iso {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); border: 1px solid var(--rule); background: var(--sheet);
  font: 700 10px/1 var(--f-mono); padding: 4px 7px; color: var(--ink-2); border-radius: 2px;
}
.vc-iso:hover { border-color: var(--accent); color: var(--accent); }
.triad { position: absolute; left: 16px; bottom: 64px; width: 72px; height: 72px; overflow: visible; pointer-events: none; }
.triad line { stroke-width: 2; }
.triad text { font: 700 10px var(--f-mono); text-anchor: middle; dominant-baseline: central; }

.tip {
  position: absolute; z-index: 6; pointer-events: none; background: var(--ink); color: var(--paper);
  font: 400 12px/1.3 var(--f-mono); padding: 6px 8px; border-radius: 2px; white-space: nowrap; transform: translate(14px, 14px);
}
.tip b { font-weight: 700; color: var(--accent); margin-right: 6px; }

/* toolbar */
.toolbar {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 4;
  display: flex; align-items: center; gap: 2px; padding: 4px; background: var(--sheet);
  border: 1px solid var(--rule); box-shadow: 0 6px 24px var(--shadow); border-radius: 3px; max-width: calc(100% - 24px); overflow-x: auto;
  scrollbar-width: none;
}
.toolbar::-webkit-scrollbar { display: none; }
.tb {
  display: flex; flex-direction: column; align-items: center; gap: 3px; width: 56px; padding: 6px 0 5px; border: 0; background: transparent;
  border-radius: 2px; color: var(--ink-2); flex: none;
}
.tb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.tb svg .fill { fill: color-mix(in srgb, currentColor 18%, transparent); }
.tb svg .acc { stroke: var(--accent); stroke-width: 2; }
.tb svg text { font: 700 7px var(--f-mono); fill: currentColor; stroke: none; }
.tb span { font: 400 10px/1 var(--f-mono); }
.tb:hover { background: var(--rule-2); color: var(--ink); }
.tb.on { background: var(--ink); color: var(--paper); }
.tb.on svg .acc { stroke: var(--accent); }
.tb-drive.on { background: var(--accent); color: var(--accent-ink); }
.tb-sep { width: 1px; height: 32px; background: var(--rule); margin: 0 3px; flex: none; }

.slider-pop {
  position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 4;
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--sheet); border: 1px solid var(--rule);
  border-radius: 3px; box-shadow: 0 6px 24px var(--shadow); font: 400 12px/1 var(--f-mono);
}
.slider-pop label { color: var(--ink-2); }
.slider-pop output { min-width: 5ch; text-align: right; font-variant-numeric: tabular-nums; }
.sp-axis { display: flex; border: 1px solid var(--rule); }
.sp-axis button { border: 0; background: transparent; padding: 4px 8px; font: 700 11px/1 var(--f-mono); }
.sp-axis button.on { background: var(--ink); color: var(--paper); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 180px; height: 18px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--ink-2); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--ink-2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 16px; margin-top: -7px; background: var(--accent); border: 0; border-radius: 1px; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 16px; background: var(--accent); border: 0; border-radius: 1px; }

.drive-hud {
  position: absolute; left: 20px; top: 20px; z-index: 4; background: var(--sheet); border: 1px solid var(--rule); padding: 12px 14px;
  font: 400 12px/1.4 var(--f-mono); min-width: 210px; box-shadow: 0 6px 24px var(--shadow);
}
.dh-row { display: grid; grid-template-columns: 1fr auto 3ch; gap: 8px; align-items: baseline; color: var(--ink-3); }
.dh-row b { font: 700 18px/1.2 var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.dh-help { margin: 8px 0 0; color: var(--ink-3); font-size: 11px; }
.dpad { display: none; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(2, 44px); gap: 4px; margin-top: 10px; }
.dpad button { border: 1px solid var(--rule); background: var(--panel); font-size: 14px; border-radius: 2px; touch-action: none; user-select: none; -webkit-user-select: none; }
.dpad button.on { background: var(--accent); color: var(--accent-ink); }
.dpad [data-k="f"] { grid-column: 2; grid-row: 1; }
.dpad [data-k="l"] { grid-column: 1; grid-row: 2; }
.dpad [data-k="b"] { grid-column: 2; grid-row: 2; }
.dpad [data-k="r"] { grid-column: 3; grid-row: 2; }
@media (pointer: coarse) { .dpad { display: grid; } .dh-help { display: none; } }

.boot { position: absolute; inset: 0; display: grid; place-items: end start; padding: 24px; z-index: 7; pointer-events: none; }
.boot-card {
  pointer-events: auto; width: min(320px, 100%); background: var(--sheet); border: 1px solid var(--rule); padding: 14px 16px;
  box-shadow: 0 6px 24px var(--shadow); font: 400 12px/1.4 var(--f-mono); transition: opacity .4s, transform .4s;
  margin-bottom: 70px;
}
.boot.done .boot-card { opacity: 0; transform: translateY(8px); pointer-events: none; }
.boot-title { margin: 0 0 4px; font-weight: 700; color: var(--ink); }
.boot-line { margin: 0 0 10px; color: var(--ink-2); min-height: 1.4em; }
.boot-bar { height: 3px; background: var(--rule); }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.boot-skip { margin-top: 10px; border: 0; background: none; padding: 0; color: var(--ink-3); text-decoration: underline; font: inherit; }
.vp-fallback { position: absolute; left: 28px; right: 28px; bottom: 90px; margin: 0; padding: 12px 14px; background: var(--sheet); border: 1px solid var(--rule); color: var(--ink-2); }

/* properties panel */
.props { grid-area: props; border-left: 1px solid var(--rule); background: var(--panel); overflow-y: auto; min-height: 0; }
.pp { padding: 16px; display: grid; gap: 16px; }
.pp-eyebrow { display: flex; align-items: center; gap: 8px; font: 400 11px/1 var(--f-mono); color: var(--ink-3); }
.pp-eyebrow .pn { color: var(--accent); font-weight: 700; }
.pp h2 { margin: 0; font: 600 26px/1.02 var(--f-display); letter-spacing: -.005em; text-wrap: balance; }
.pp-part { margin: 6px 0 0; font: 400 12px/1.3 var(--f-mono); color: var(--ink-2); }
.pp p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.pp-table { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--rule); font-size: 12.5px; }
.pp-table > * { padding: 7px 0; border-bottom: 1px solid var(--rule-2); }
.pp-table dt { color: var(--ink-3); font: 400 11px/1.6 var(--f-mono); padding-right: 14px; }
.pp-table dd { margin: 0; }
.pp-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); }
.pp-stats > div { padding: 10px; border-right: 1px solid var(--rule); min-width: 0; }
.pp-stats > div:last-child { border-right: 0; }
.pp-stats b { display: block; font: 600 20px/1 var(--f-display); white-space: nowrap; }
.pp-stats span { display: block; font: 400 10.5px/1.3 var(--f-mono); color: var(--ink-3); margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font: 400 11px/1 var(--f-mono); padding: 5px 7px; border: 1px solid var(--rule); color: var(--ink-2); border-radius: 2px; }
.pp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-nav { display: flex; justify-content: space-between; gap: 8px; }
.pp-nav button { border: 0; background: none; padding: 4px 0; font: 400 12px/1 var(--f-mono); color: var(--ink-3); }
.pp-nav button:hover { color: var(--accent); }
.pp-sum { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); }
.pp-sum > div { padding: 12px; border-bottom: 1px solid var(--rule-2); border-right: 1px solid var(--rule-2); }
.pp-sum > div:nth-child(2n) { border-right: 0; }
.pp-sum b { display: block; font: 600 24px/1 var(--f-display); }
.pp-sum span { font: 400 11px/1.3 var(--f-mono); color: var(--ink-3); }
.pp-keys { margin: 0; display: grid; gap: 6px; font: 400 12px/1.4 var(--f-mono); color: var(--ink-3); }
.pp-keys > div { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 8px; }
.pp-keys dt { display: flex; gap: 3px; align-items: center; color: var(--ink-3); }
.pp-keys dd { margin: 0; color: var(--ink-2); }
@media (pointer: coarse) { .pp-keys { display: none; } }
.pp-media { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: var(--rule-2); border: 1px solid var(--rule); overflow: hidden; cursor: pointer; padding: 0; display: block; width: 100%; }
.pp-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.pp-media:hover img { transform: scale(1.03); }
.pp-media span { position: absolute; left: 8px; bottom: 8px; background: var(--ink); color: var(--paper); font: 400 11px/1 var(--f-mono); padding: 5px 7px; }

/* status bar */
.status {
  grid-area: st; display: flex; align-items: center; gap: 18px; padding: 0 14px; border-top: 1px solid var(--rule);
  font: 400 11px/1 var(--f-mono); color: var(--ink-3); background: var(--panel); white-space: nowrap; overflow: hidden;
}
.st-xyz { font-variant-numeric: tabular-nums; min-width: 22ch; }
.st-def { display: flex; align-items: center; gap: 6px; }
.st-def i { width: 7px; height: 7px; background: var(--ok); border-radius: 50%; }
.st-hint { margin-left: auto; overflow: hidden; text-overflow: ellipsis; }
.st-fps { min-width: 6ch; text-align: right; font-variant-numeric: tabular-nums; }

/* ================= DRAWING SET ================= */
.set { padding: 48px 24px 64px; display: grid; gap: 40px; max-width: 1280px; margin: 0 auto; }
.sheet {
  position: relative; background: var(--sheet); border: 1.5px solid var(--ink); padding: 40px clamp(18px, 4vw, 56px) 48px;
  outline: 1px solid var(--rule); outline-offset: 8px; scroll-margin-top: 24px; min-width: 0;
}
/* zone ticks along the sheet border, like a real drawing frame */
.sheet::before, .sheet::after {
  content: ""; position: absolute; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12.5%);
  left: 0; right: 0; height: 6px;
}
.sheet::before { top: 0; }
.sheet::after { bottom: 0; }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.sheet-head h2 { margin: 0; font: 700 clamp(34px, 5vw, 60px)/.95 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
.sheet-no { font: 400 12px/1 var(--f-mono); color: var(--ink-3); }
.sheet-intro { margin: -8px 0 24px; max-width: 62ch; color: var(--ink-2); font-size: 15px; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.detail { margin: 0; position: relative; }
.detail img { display: block; width: 100%; height: auto; border: 1px solid var(--ink); }
.detail-head img { aspect-ratio: 1; object-fit: cover; filter: grayscale(.15) contrast(1.02); }
.detail figcaption { margin-top: 8px; font: 400 11px/1.3 var(--f-mono); color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.callout { display: inline-block; border: 1px solid var(--ink); padding: 3px 6px; color: var(--ink); font-weight: 700; }
.about-copy { max-width: 64ch; }
.about-copy p { margin: 0 0 14px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.about-copy .lede { font: 500 clamp(20px, 2.3vw, 26px)/1.3 var(--f-display); color: var(--ink); margin-bottom: 20px; text-wrap: balance; }
.spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin: 24px 0 0; }
.spec > div { padding: 12px 12px 12px 0; border-right: 1px solid var(--rule); }
.spec > div + div { padding-left: 12px; }
.spec > div:last-child { border-right: 0; }
.spec dt { font: 400 11px/1 var(--f-mono); color: var(--ink-3); }
.spec dd { margin: 6px 0 0; font: 600 22px/1 var(--f-display); }

.tunnel { margin-top: 48px; border-top: 1px dashed var(--rule); padding-top: 32px; }
.tunnel-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: end; margin-bottom: 18px; }
.tunnel-head h3 { margin: 0; font: 600 clamp(24px, 3vw, 34px)/1 var(--f-display); text-transform: uppercase; }
.tunnel-head p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.tunnel-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
.tunnel-stage { position: relative; border: 1px solid var(--ink); background: var(--paper); min-width: 0; aspect-ratio: 16 / 8; max-width: 100%; }
#tunnelCanvas { display: block; width: 100%; height: 100%; }
.tunnel-read { position: absolute; left: 12px; top: 12px; display: flex; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.tunnel-read > div { background: var(--sheet); padding: 8px 10px; min-width: 80px; }
.tunnel-read span { display: block; font: 400 10.5px/1 var(--f-mono); color: var(--ink-3); }
.tunnel-read b { font: 700 18px/1.3 var(--f-mono); font-variant-numeric: tabular-nums; }
.tunnel-read em { font: 400 10px var(--f-mono); color: var(--ink-3); font-style: normal; margin-left: 3px; }
.tunnel-warn { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; background: var(--accent); color: var(--accent-ink); font: 400 12px/1.4 var(--f-mono); padding: 7px 10px; }
.tunnel-ctl { display: grid; gap: 6px; align-content: start; font: 400 12px/1 var(--f-mono); }
.tunnel-ctl label { display: flex; justify-content: space-between; color: var(--ink-2); margin-top: 6px; }
.tunnel-ctl output { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.tunnel-ctl input[type="range"] { width: 100%; }
.tunnel-btns { display: flex; gap: 6px; margin: 8px 0 10px; }
.tunnel-btns button { flex: 1; border: 1px solid var(--rule); background: transparent; padding: 8px 6px; font: 400 11px/1 var(--f-mono); border-radius: 2px; }
.tunnel-btns button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.detail-tunnel img { aspect-ratio: 4 / 3; object-fit: cover; }

/* BOM */
.bom-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.bom-filter button { border: 1px solid var(--rule); background: transparent; padding: 7px 10px; font: 400 12px/1 var(--f-mono); color: var(--ink-2); border-radius: 2px; }
.bom-filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bom-wrap { overflow-x: auto; border: 1px solid var(--ink); }
.bom { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.bom th { text-align: left; font: 700 11px/1 var(--f-mono); color: var(--ink-2); padding: 10px 12px; border-bottom: 1px solid var(--ink); background: var(--panel); }
.bom td { padding: 9px 12px; border-bottom: 1px solid var(--rule-2); vertical-align: middle; }
.bom tr:last-child td { border-bottom: 0; }
.bom td:first-child, .bom td:nth-child(4) { font: 400 12px var(--f-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; width: 1%; white-space: nowrap; }
.bom td:nth-child(2) { font-weight: 700; white-space: nowrap; }
.bom td:nth-child(3) { color: var(--ink-2); white-space: nowrap; }
.bom tbody tr { transition: background .12s; }
.bom tbody tr:hover { background: var(--rule-2); }
.bom tr[hidden] { display: none; }
.bom .uses { display: flex; flex-wrap: wrap; gap: 4px; }
.bom .uses button { border: 1px solid var(--rule); background: transparent; padding: 4px 6px; font: 400 11px/1 var(--f-mono); color: var(--ink-2); border-radius: 2px; }
.bom .uses button:hover { border-color: var(--accent); color: var(--accent); }
.bom .uses i { font: 400 11px var(--f-mono); color: var(--ink-3); font-style: normal; }

/* trajectory */
.traj { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.traj-plot { position: sticky; top: 24px; }
#trajSvg { width: 100%; height: auto; display: block; max-width: 620px; margin: 0 auto; }
#trajSvg .orb { fill: none; stroke: var(--ink-3); stroke-width: 1; }
#trajSvg .orb.on { stroke: var(--accent); stroke-width: 1.6; }
#trajSvg .orb.tgt { stroke-dasharray: 5 6; }
#trajSvg .xfer { fill: none; stroke: var(--dim); stroke-width: 1.4; stroke-dasharray: 3 4; }
#trajSvg .xfer-done { fill: none; stroke: var(--accent); stroke-width: 2; }
#trajSvg .grid line { stroke: var(--rule-2); }
#trajSvg .grid circle { fill: none; stroke: var(--rule-2); }
#trajSvg .node { cursor: pointer; }
#trajSvg .node circle { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.4; }
#trajSvg .node.on circle { fill: var(--accent); stroke: var(--accent); }
#trajSvg .node text { font: 700 11px var(--f-mono); fill: var(--ink); }
#trajSvg .node .yr { font-weight: 400; fill: var(--ink-3); }
#trajSvg .sun { fill: var(--ink); }
#trajSvg .craft { fill: var(--accent); }
#trajSvg .tick { font: 400 10px var(--f-mono); fill: var(--ink-3); }
.traj-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.traj-item { padding: 22px 0 22px 20px; border-left: 1px solid var(--rule); position: relative; cursor: pointer; transition: border-color .2s; min-height: 34vh; }
.traj-item:last-child { min-height: auto; }
.traj-item::before { content: ""; position: absolute; left: -5px; top: 30px; width: 9px; height: 9px; border: 1.4px solid var(--ink); background: var(--sheet); border-radius: 50%; }
.traj-item.on { border-left-color: var(--accent); }
.traj-item.on::before { background: var(--accent); border-color: var(--accent); }
.traj-item .ty { font: 400 12px/1 var(--f-mono); color: var(--ink-3); display: flex; gap: 12px; flex-wrap: wrap; }
.traj-item .ty .co { color: var(--dim); }
.traj-item h3 { margin: 8px 0 2px; font: 600 26px/1.05 var(--f-display); }
.traj-item .org { margin: 0 0 10px; font-weight: 700; color: var(--ink-2); }
.traj-item p { margin: 0; color: var(--ink-2); max-width: 54ch; }
.traj-item.tgt h3 { color: var(--accent); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.contact-big { margin: 0 0 14px; font: 700 clamp(40px, 6.4vw, 88px)/.9 var(--f-display); text-transform: uppercase; letter-spacing: -.015em; text-wrap: balance; }
.contact-copy { margin: 0 0 24px; color: var(--ink-2); font-size: 16px; max-width: 48ch; }
.contact-mail { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.cm-label { font: 400 11px/1 var(--f-mono); color: var(--ink-3); width: 100%; }
.cm-addr { font: 700 clamp(18px, 2.4vw, 26px)/1.2 var(--f-mono); margin-right: auto; user-select: all; word-break: break-all; }
.contact-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.titleblock { width: 100%; border-collapse: collapse; border: 1.5px solid var(--ink); font-size: 12.5px; }
.titleblock th, .titleblock td { border: 1px solid var(--ink); padding: 7px 9px; text-align: left; vertical-align: top; }
.titleblock th { font: 400 10.5px/1.3 var(--f-mono); color: var(--ink-3); width: 1%; white-space: nowrap; }
.titleblock td { font: 700 13px/1.3 var(--f-mono); }
.titleblock .tb-title { font: 600 18px/1.15 var(--f-display); text-transform: uppercase; }
.revs { margin-top: 32px; width: 100%; border-collapse: collapse; font: 400 12px/1.4 var(--f-mono); border: 1px solid var(--rule); }
.revs th, .revs td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--rule-2); }
.revs th { color: var(--ink-3); border-bottom-color: var(--rule); font-weight: 400; }
.revs td:first-child { font-weight: 700; width: 4ch; }
.revs td:last-child { width: 8ch; color: var(--ink-3); }
.colophon { margin: 24px 0 0; font: 400 11px/1.5 var(--f-mono); color: var(--ink-3); }

/* ================= PROJECT DRAWING SHEET ================= */
.dwg {
  position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  overflow-y: auto; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  animation: dwgIn .35s var(--ease);
}
@keyframes dwgIn { from { opacity: 0; } }
.dwg-paper {
  position: relative; max-width: 1240px; margin: 0 auto; background: var(--sheet); border: 1.5px solid var(--ink);
  box-shadow: 0 30px 80px var(--shadow); padding: 34px; animation: paperIn .5s var(--ease);
}
@keyframes paperIn { from { transform: translateY(24px) scale(.985); opacity: 0; } }
.dwg-frame { position: absolute; inset: 10px; border: 1px solid var(--ink); pointer-events: none; }
.zone-h, .zone-v { position: absolute; display: flex; font: 400 9px/1 var(--f-mono); color: var(--ink-3); pointer-events: none; }
.zone-h { left: 10px; right: 10px; justify-content: space-around; }
.zone-h.t { top: 0; height: 10px; align-items: center; }
.zone-h.b { bottom: 0; height: 10px; align-items: center; }
.zone-v { top: 10px; bottom: 10px; flex-direction: column; justify-content: space-around; width: 10px; align-items: center; }
.zone-v.l { left: 0; }
.zone-v.r { right: 0; }
.dwg-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.dwg-top .pn { font: 700 12px/1 var(--f-mono); color: var(--accent); }
.dwg-top .crumbs { font: 400 12px/1 var(--f-mono); color: var(--ink-3); }
.dwg-close { margin-left: auto; display: flex; gap: 6px; }
.dwg-close button { height: 34px; padding: 0 12px; border: 1px solid var(--rule); background: transparent; font: 400 12px/1 var(--f-mono); border-radius: 2px; }
.dwg-close button:hover { border-color: var(--ink); }
.dwg-title { margin: 0 0 6px; font: 700 clamp(36px, 6vw, 80px)/.9 var(--f-display); text-transform: uppercase; letter-spacing: -.015em; text-wrap: balance; }
.dwg-sub { margin: 0 0 26px; font: 400 13px/1.4 var(--f-mono); color: var(--ink-2); }
.dwg-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; }
.viewer { border: 1px solid var(--ink); position: relative; background: var(--paper); }
.viewer-main { position: relative; aspect-ratio: 16 / 10; max-width: 100%; display: grid; place-items: center; overflow: hidden; }
.viewer-main img, .viewer-main video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: var(--paper); }
.viewer-tag { position: absolute; left: 10px; top: 10px; z-index: 2; background: var(--sheet); border: 1px solid var(--ink); font: 700 11px/1 var(--f-mono); padding: 5px 7px; }
.viewer-cap { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--ink); font: 400 12px/1.3 var(--f-mono); color: var(--ink-2); }
.viewer-arrows { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; pointer-events: none; padding: 0 8px; }
.viewer-arrows button { pointer-events: auto; width: 36px; height: 36px; border: 1px solid var(--ink); background: var(--sheet); font: 700 14px/1 var(--f-mono); border-radius: 2px; }
.viewer-arrows button:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs button { position: relative; padding: 0; border: 1px solid var(--rule); background: var(--paper); aspect-ratio: 4 / 3; overflow: hidden; border-radius: 0; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs button[aria-current="true"] { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.thumbs .play { position: absolute; right: 4px; bottom: 4px; background: var(--ink); color: var(--paper); font: 700 9px/1 var(--f-mono); padding: 3px 4px; }
.thumbs .lbl { position: absolute; left: 4px; top: 4px; background: var(--sheet); font: 700 9px/1 var(--f-mono); padding: 2px 3px; border: 1px solid var(--rule); }
.notes h3 { margin: 0 0 10px; font: 700 12px/1 var(--f-mono); color: var(--ink-3); }
.notes ol { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 10px; }
.notes ol li { counter-increment: n; display: grid; grid-template-columns: 26px 1fr; gap: 6px; color: var(--ink-2); line-height: 1.5; }
.notes ol li::before { content: counter(n) "."; font: 700 12px/1.6 var(--f-mono); color: var(--ink); }
.contrib { border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 22px; }
.contrib h4 { margin: 0 0 8px; font: 600 18px/1.1 var(--f-display); }
.contrib ul { margin: 0 0 14px; padding-left: 18px; color: var(--ink-2); display: grid; gap: 6px; }
.dwg-tb { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px; align-items: end; }
.dwg-tb .titleblock td { font-size: 12px; }
.dwg-next { display: flex; gap: 8px; flex-wrap: wrap; }
.dwg-next button { border: 1px solid var(--rule); background: transparent; padding: 12px 14px; text-align: left; border-radius: 2px; min-width: 0; }
.dwg-next button:hover { border-color: var(--accent); }
.dwg-next small { display: block; font: 400 11px/1 var(--f-mono); color: var(--ink-3); margin-bottom: 6px; }
.dwg-next b { font: 600 18px/1.1 var(--f-display); }
.blog { display: grid; gap: 18px; margin: 8px 0 26px; }
.blog-post { border-top: 1px solid var(--ink); padding-top: 14px; display: grid; gap: 8px; }
.blog-post time { font: 400 12px/1 var(--f-mono); color: var(--accent); }
.blog-post h4 { margin: 0; font: 600 22px/1.1 var(--f-display); }
.blog-post p { margin: 0; color: var(--ink-2); white-space: pre-line; }
.blog-post img { max-width: 100%; border: 1px solid var(--rule); }
.blog-msg { border: 1px dashed var(--rule); padding: 14px; font: 400 12.5px/1.5 var(--f-mono); color: var(--ink-2); }
.signal { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--f-mono); color: var(--accent); }
.signal i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }

/* ================= COMMAND PALETTE ================= */
.cmd { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--paper) 60%, transparent); display: grid; place-items: start center; padding: 14vh 16px 16px; }
.cmd-box { width: min(560px, 100%); background: var(--sheet); border: 1.5px solid var(--ink); box-shadow: 0 30px 80px var(--shadow); }
.cmd-box input { width: 100%; border: 0; border-bottom: 1px solid var(--rule); background: transparent; padding: 16px; font: 400 16px/1 var(--f-mono); color: var(--ink); outline: none; }
.cmd-box ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.cmd-box li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px; cursor: pointer; border-radius: 2px; }
.cmd-box li[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.cmd-box li[aria-selected="true"] small, .cmd-box li[aria-selected="true"] kbd { color: var(--paper); border-color: var(--paper); background: transparent; }
.cmd-box li small { font: 400 11px/1 var(--f-mono); color: var(--ink-3); }
.cmd-foot { margin: 0; padding: 10px 14px; border-top: 1px solid var(--rule); font: 400 11px/1 var(--f-mono); color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.cmd-foot kbd + kbd { margin-left: -2px; }

.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 80;
  background: var(--ink); color: var(--paper); font: 400 13px/1 var(--f-mono); padding: 12px 16px; border-radius: 2px; box-shadow: 0 10px 30px var(--shadow);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1180px) {
  .ws { grid-template-columns: 220px minmax(0, 1fr) 280px; }
  .kbtn span { display: none; }
}
@media (max-width: 960px) {
  .ws {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 72svh auto auto auto;
    grid-template-areas: "bar" "vp" "tree" "props" "st";
    height: auto; max-height: none; min-height: 0;
  }
  .ws-nav { display: none; }
  .tree { border-right: 0; border-top: 1px solid var(--rule); }
  .tree-list { display: flex; overflow-x: auto; overflow-y: hidden; padding: 8px 10px; gap: 6px; scrollbar-width: thin; }
  .tree-root, .tree-foot, .ti::before { display: none; }
  .ti { grid-template-columns: 22px auto 8px; border: 1px solid var(--rule); border-radius: 2px; padding: 8px 10px; flex: none; }
  .ti .ti-ic { display: none; }
  .ti-t small { display: none; }
  .props { border-left: 0; border-top: 1px solid var(--rule); }
  .status .st-hint, .status .st-xyz { display: none; }
  .tunnel-body, .tunnel-head, .traj, .contact-grid, .dwg-grid, .dwg-tb { grid-template-columns: minmax(0, 1fr); }
  .traj-plot { position: relative; top: 0; }
  .traj-item { min-height: 0; }
  .tunnel-stage { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .ws { grid-template-rows: auto 64svh auto auto auto; }
  .ws-bar { gap: 8px; padding: 0 12px; height: 52px; }
  .brand-rev, .brand-ext, .kbtn, .theme-btn .tb-l, .theme-btn .tb-r { display: none; }
  .hero { left: 16px; top: 14px; max-width: calc(100% - 110px); }
  .hero-sub { font-size: 13px; }
  .hero-hint, .hs-b { display: none; }
  .viewcube { right: 8px; top: 10px; transform: scale(.8); transform-origin: top right; }
  .triad { display: none; }
  .tb { width: 46px; }
  .tb span { font-size: 9px; }
  .tb[data-tool="fit"], .tb[data-tool="balloons"], .tb-sep { display: none; }
  .slider-pop { width: calc(100% - 24px); flex-wrap: wrap; justify-content: center; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-head { max-width: 220px; }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec > div:nth-child(2) { border-right: 0; }
  .spec > div:nth-child(3) { padding-left: 0; }
  .spec > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .set { padding: 32px 16px 48px; gap: 32px; }
  .sheet { outline-offset: 4px; }
  .dwg { padding-left: 8px; padding-right: 8px; }
  .dwg-paper { padding: 26px 18px; }
  .tunnel-read > div { min-width: 0; padding: 6px 8px; }
  .tunnel-read b { font-size: 14px; }
  .drive-hud { left: 10px; top: 10px; min-width: 0; padding: 10px; }
  .boot { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (pointer: coarse) {
  .vp { touch-action: pan-y; }
  .vp.driving { touch-action: none; }
}
#trajSvg .node:focus { outline: none; }
#trajSvg .node:focus-visible circle { stroke: var(--accent); stroke-width: 3; }

/* drive HUD (cart) */
.dh-title { margin: 0 0 8px; font: 700 12px/1 var(--f-mono); color: var(--accent); }
.dh-meter { position: relative; height: 8px; background: var(--rule-2); border: 1px solid var(--rule); margin: 8px 0 4px; }
.dh-meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ok); transition: background .15s; }
.dh-meter i.bad { background: var(--accent); }
.dh-meter em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.dh-scale { position: relative; height: 14px; font: 400 10px/1 var(--f-mono); color: var(--ink-3); margin-bottom: 6px; }
.dh-scale span { position: absolute; top: 2px; white-space: nowrap; }
.dh-scale span:nth-child(2) { transform: translateX(-50%); }
.dh-odo { grid-template-columns: auto 1fr; }
.dh-odo b { font-size: 13px; }
.dh-status { margin: 8px 0 0; padding: 6px 8px; border: 1px solid var(--rule); font: 700 12px/1.35 var(--f-mono); color: var(--ok); max-width: 240px; }
.dh-status.bad { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.drive-hud .dh-help { max-width: 240px; line-height: 1.45; }
.dpad { grid-template-columns: repeat(4, 44px); }
.dpad [data-k="reset"] { grid-column: 4; grid-row: 2; font: 700 13px/1 var(--f-mono); }
/* truss member forces */
.forces { border: 1px solid var(--rule); padding: 10px 10px 8px; display: grid; gap: 3px; font: 400 11.5px/1.2 var(--f-mono); }
.forces-head { display: flex; justify-content: space-between; color: var(--ink-3); margin-bottom: 4px; }
.fr { display: grid; grid-template-columns: 18px 34px 1fr 46px; align-items: center; gap: 6px; padding: 2px 0; }
.fr .fn { color: var(--ink-3); text-align: right; }
.fr .fm { color: var(--ink-2); }
.fr .fb { height: 6px; background: var(--rule-2); position: relative; }
.fr .fb i { position: absolute; left: 0; top: 0; bottom: 0; }
.fr .fb i.t { background: var(--dim); }
.fr .fb i.c { background: var(--accent); }
.fr .fv { text-align: right; font-variant-numeric: tabular-nums; }
.fr.crit { background: color-mix(in srgb, var(--accent) 12%, transparent); outline: 1px solid var(--accent); }
.forces-note { margin: 6px 0 0 !important; font: 400 11px/1.45 var(--f-mono) !important; color: var(--ink-3) !important; }
.forces-note .t { color: var(--dim); } .forces-note .c { color: var(--accent); }
.pp-try { border: 1px solid var(--accent); padding: 12px; display: grid; gap: 10px; }
.pp-try p { margin: 0; font-size: 13px; }
.pp-try .btn-solid { justify-self: start; }

/* journal (senior design) */
.jl { border: 1px solid var(--rule); display: grid; gap: 0; }
.jl-head { display: flex; justify-content: space-between; padding: 10px 12px 0; font: 700 12px/1 var(--f-mono); color: var(--ink-2); }
.jl-head span:last-child { font-weight: 400; color: var(--ink-3); }
.jl-state { margin: 6px 12px 8px !important; font: 400 11px/1.4 var(--f-mono) !important; color: var(--ink-3) !important; }
.jl-item { display: grid; gap: 3px; text-align: left; border: 0; border-top: 1px solid var(--rule-2); background: transparent; padding: 10px 12px; }
.jl-item:hover { background: var(--rule-2); }
.jl-item time { font: 700 11px/1 var(--f-mono); color: var(--accent); }
.jl-item b { font: 600 15px/1.2 var(--f-display); }
.jl-item span { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.jl .btn-solid { margin: 10px 12px 12px; justify-self: start; }
.journal-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.journal-side { display: grid; gap: 22px; position: sticky; top: 0; }
#journalCover { width: 100%; max-width: 420px; height: auto; display: block; border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--rule); }
.bp-meta { display: flex; gap: 12px; align-items: baseline; }
.bp-meta span { font: 400 11px/1 var(--f-mono); color: var(--ink-3); }
.blog-post h4 { font-size: 26px; }
.blog-post p { font-size: 15px; line-height: 1.65; max-width: 64ch; }
.signal.off { color: var(--ink-3); }
.signal.off i { background: var(--ink-3); animation: none; }
@media (max-width: 960px) { .journal-grid { grid-template-columns: minmax(0, 1fr); } .journal-side { position: static; order: -1; } #journalCover { max-width: 260px; } }
.pp-media img[src*="senior-design-robot"] { object-fit: contain; background: #000; }

/* ================= JOURNAL ENTRIES (expand / collapse) ================= */
.jx { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 4px; }
.jx button { border: 1px solid var(--rule); background: transparent; padding: 6px 9px; font: 400 11px/1 var(--f-mono); color: var(--ink-2); border-radius: 2px; }
.jx button:hover { border-color: var(--ink); color: var(--ink); }
.je { border-top: 1px solid var(--ink); }
.je:last-child { border-bottom: 1px solid var(--rule); }
.je summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 24px; grid-template-rows: auto auto; column-gap: 12px; padding: 14px 2px; }
.je summary::-webkit-details-marker { display: none; }
.je summary:hover .je-title { color: var(--accent); }
.je-meta { display: flex; gap: 12px; align-items: baseline; font: 400 11px/1 var(--f-mono); color: var(--ink-3); }
.je-meta time { font-weight: 700; color: var(--accent); }
.je-badge { border: 1px solid var(--rule); padding: 2px 5px; color: var(--ink-2); }
.je-title { grid-column: 1; font: 600 24px/1.15 var(--f-display); margin-top: 6px; transition: color .15s; }
.je-chev { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .25s var(--ease); justify-self: center; }
.je[open] .je-chev { transform: rotate(-135deg); }
.je-body { padding: 0 2px 20px; display: grid; gap: 12px; animation: jeIn .3s var(--ease); }
@keyframes jeIn { from { opacity: 0; transform: translateY(-4px); } }
.je-body p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.65; max-width: 64ch; white-space: pre-line; }
.je-body img { max-width: 100%; border: 1px solid var(--rule); }
.je-empty { font: 400 12.5px/1.5 var(--f-mono) !important; color: var(--ink-3) !important; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* ================= STARTUP INTRO (late-90s desktop) ================= */
html.intro-on body { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 200; background: #000; display: none; font-family: Tahoma, Verdana, "Segoe UI", sans-serif; color: #000; }
html.intro-on .intro { display: block; }
.intro.out { animation: introOut .65s ease forwards; }
@keyframes introOut { to { opacity: 0; transform: scale(1.04); filter: brightness(1.6); } }
.intro-desk { position: absolute; inset: 0; background: #008080; overflow: hidden; clip-path: inset(50% 0 50% 0); }
.intro.power .intro-desk { animation: crtOn .6s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes crtOn { 0% { clip-path: inset(50% 50% 50% 50%); filter: brightness(4); } 40% { clip-path: inset(49.6% 0 49.6% 0); filter: brightness(3); } 100% { clip-path: inset(0 0 0 0); filter: brightness(1); } }
.intro-crt { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, .35)); }
.d-icons { position: absolute; left: 14px; top: 14px; bottom: 50px; display: flex; flex-direction: column; flex-wrap: wrap; gap: 16px 10px; align-content: flex-start; }
.d-icon { width: 84px; display: grid; justify-items: center; gap: 4px; opacity: 0; }
.intro.desk-on .d-icon { animation: iconIn .25s steps(3) forwards; }
.intro.desk-on .d-icon:nth-child(2) { animation-delay: .08s; } .intro.desk-on .d-icon:nth-child(3) { animation-delay: .16s; }
.intro.desk-on .d-icon:nth-child(4) { animation-delay: .24s; } .intro.desk-on .d-icon:nth-child(5) { animation-delay: .32s; } .intro.desk-on .d-icon:nth-child(6) { animation-delay: .4s; }
@keyframes iconIn { to { opacity: 1; } }
.d-icon svg { width: 40px; height: 40px; shape-rendering: crispEdges; image-rendering: pixelated; }
.d-icon span { font-size: 13px; line-height: 1.15; color: #fff; text-align: center; padding: 1px 3px; }
.d-sw.sel span { background: #000080; outline: 1px dotted #fff; }
.d-sw.sel svg { filter: sepia(1) hue-rotate(190deg) saturate(3) brightness(.7); }
.d-sw.flash svg { animation: flash .18s steps(2) 2; }
@keyframes flash { 50% { opacity: .4; } }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: #c0c0c0; border-top: 2px solid #fff; display: flex; align-items: center; gap: 4px; padding: 0 4px; opacity: 0; }
.intro.desk-on .taskbar { opacity: 1; transition: opacity .1s .1s; }
.w95-btn { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: #c0c0c0; color: #000; font: 600 13px/1 Tahoma, Verdana, "Segoe UI", sans-serif; border: 0; text-decoration: none; cursor: pointer;
  box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf; border-radius: 0; }
.w95-btn:active, .w95-btn.pressed { box-shadow: inset 1px 1px #000, inset -1px -1px #fff, inset 2px 2px #808080, inset -2px -2px #dfdfdf; }
.w95-btn:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }
.w95-btn svg { width: 16px; height: 16px; }
.start { font-weight: 600; }
.tb-div { width: 2px; height: 26px; border-left: 1px solid #808080; border-right: 1px solid #fff; margin: 0 2px; }
.task { min-width: 150px; justify-content: flex-start; box-shadow: inset 1px 1px #000, inset -1px -1px #fff, inset 2px 2px #808080, inset -2px -2px #dfdfdf; background: repeating-conic-gradient(#c0c0c0 0 25%, #d8d8d8 0 50%) 0 0 / 2px 2px; }
.tray { margin-left: auto; height: 26px; display: inline-flex; align-items: center; padding: 0 10px; font-size: 13px; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; }
.t-ico { display: inline-block; width: 14px; height: 14px; background: linear-gradient(135deg, #e05a3a 50%, #7a1f12 50%); border: 1px solid #000; }
.w95 { position: absolute; background: #c0c0c0; box-shadow: inset -1px -1px #000, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff, 6px 6px 0 rgba(0, 0, 0, .25); padding: 3px; }
.splash { left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(460px, 92vw); padding: 0; background: #1b1b1b; color: #fff; box-shadow: 0 0 0 1px #000, 8px 8px 0 rgba(0, 0, 0, .3); }
.splash-art { display: flex; align-items: center; gap: 16px; padding: 22px 22px 10px; background: linear-gradient(135deg, #2a2a2a, #111); }
.splash-art svg { width: 120px; height: 90px; shape-rendering: crispEdges; flex: none; }
.splash-name { margin: 0; font: 600 34px/1 Tahoma, Verdana, sans-serif; letter-spacing: .01em; }
.splash-ed { margin: 6px 0 0; font-size: 13px; color: #ffb199; }
.splash-line { margin: 0; padding: 8px 22px 6px; font-size: 13px; color: #ddd; min-height: 1.4em; }
.w95-progress { margin: 0 22px 20px; height: 18px; padding: 2px; background: #000; box-shadow: inset 1px 1px #808080; }
.w95-progress i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #e05a3a 0 10px, transparent 10px 12px); }
.app { left: 50%; top: calc(50% - 18px); width: min(980px, 94vw); height: min(640px, calc(100% - 90px)); display: flex; flex-direction: column; transform: translate(-50%, -50%) scale(.2); opacity: 0; transform-origin: 8% 80%; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.app.open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.w95-title { display: flex; justify-content: space-between; align-items: center; height: 24px; padding: 0 3px 0 6px; color: #fff; font-size: 13px; font-weight: 600; background: linear-gradient(90deg, #000080, #1084d0); }
.w95-title span:first-child { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w95-btns { display: flex; gap: 2px; }
.w95-btns i, .w95-btns button { width: 18px; height: 16px; display: grid; place-items: center; font: 700 11px/1 Tahoma, sans-serif; font-style: normal; color: #000; background: #c0c0c0; border: 0; padding: 0; box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080; }
.w95-btns button { margin-left: 2px; cursor: pointer; }
.w95-menu { display: flex; gap: 2px; padding: 3px 2px; font-size: 13px; }
.w95-menu span { padding: 2px 6px; }
.w95-menu span:first-letter { text-decoration: underline; }
.w95-tools { display: flex; gap: 2px; padding: 3px 4px; border-top: 1px solid #808080; border-bottom: 1px solid #fff; box-shadow: 0 1px #808080; }
.w95-tools i { width: 22px; height: 22px; background: #c0c0c0; box-shadow: inset -1px -1px #808080, inset 1px 1px #fff; position: relative; }
.w95-tools i::after { content: ""; position: absolute; inset: 6px; border: 1px solid #333; }
.w95-tools i:nth-child(3n)::after { border-radius: 50%; border-color: #a83220; }
.w95-tools i:nth-child(4n)::after { inset: 5px 8px; background: #000080; border: 0; }
.w95-tools b { width: 2px; margin: 0 4px; border-left: 1px solid #808080; border-right: 1px solid #fff; }
.app-body { flex: 1; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 3px; min-height: 0; margin-top: 4px; }
.app-tree { background: #fff; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff, inset 2px 2px #000; padding: 8px 6px; font-size: 13px; overflow: auto; }
.app-tree p { margin: 0 0 4px; }
.app-tree .t1 { padding-left: 14px; }
.app-tree .t2 { display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; padding: 2px 4px 2px 28px; cursor: pointer; color: #000; }
.app-tree .t2:hover, .app-tree .t2.on { background: #000080; color: #fff; }
.app-view { background: #808080; box-shadow: inset 1px 1px #000, inset -1px -1px #fff; overflow: auto; padding: 18px; }
.app-sheet { margin: 0 auto; width: 46%; background: #fff; border: 1px solid #000; outline: 6px solid #fff; box-shadow: 0 0 0 7px #000, 8px 8px 0 7px rgba(0, 0, 0, .35); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.app.zoom .app-sheet { width: 100%; max-width: 820px; }
.app-sheet img { display: block; width: 100%; height: auto; }
.app-actions { display: flex; align-items: center; gap: 8px; padding: 6px 2px 2px; }
.app-status { margin-right: auto; font-size: 12px; padding: 3px 8px; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.w95-btn.primary { box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf, 0 0 0 1px #000; }
.w95-btn.primary.hover { background: #d4d4d4; }
.i-cursor { position: absolute; left: 0; top: 0; width: 18px; height: 27px; z-index: 5; opacity: 0; pointer-events: none; filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, .3)); }
.i-cursor.show { opacity: 1; }
.i-cursor .glass { display: none; }
.i-cursor.busy .arrow { display: none; }
.i-cursor.busy .glass { display: inline; animation: spin 1.2s steps(8) infinite; transform-origin: 8px 12px; }
@keyframes spin { to { transform: rotate(180deg); } }
.i-cursor.press { transform-origin: 0 0; }
.intro-skip { position: absolute; right: 14px; top: max(14px, env(safe-area-inset-top, 0px)); z-index: 6; font: 600 13px/1 Tahoma, Verdana, "Segoe UI", sans-serif; color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .6); padding: 8px 12px; cursor: pointer; }
.intro-skip:hover { background: rgba(0, 0, 0, .6); }
@media (max-width: 700px) {
  .d-icon { width: 70px; } .d-icon svg { width: 32px; height: 32px; } .d-icon span { font-size: 11px; }
  .app { width: 96vw; height: calc(100% - 70px); top: calc(50% - 18px); }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-tree { display: none; }
  .w95-menu span:nth-child(n+5), .w95-tools { display: none; }
  .app-view { padding: 8px; }
  .app-status { display: none; }
  .task { min-width: 0; }
}

/* ================= RETRO WORKSPACE SKIN (late-90s CAD window) =================
   The chrome is a fixed silver look in both themes; the 3D viewport keeps the
   Vellum / Blueprint palette. */
.ws {
  --w-face: #c0c0c0; --w-lt: #dfdfdf; --w-sh: #808080; --w-ink: #000; --w-sel: #000080;
  --w-raised: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  --w-sunken: inset 1px 1px #808080, inset -1px -1px #fff, inset 2px 2px #000, inset -2px -2px #dfdfdf;
  --w-field: inset 1px 1px #808080, inset -1px -1px #fff;
  --w-ui: Tahoma, Verdana, "Segoe UI", sans-serif;
  --w-px: Tahoma, Verdana, "Segoe UI", sans-serif;
  background: var(--w-face); color: #000; padding: 3px; gap: 3px;
  box-shadow: var(--w-raised); border-bottom: 0;
}
.ws .ws-bar { flex-direction: column; align-items: stretch; gap: 0; padding: 0; background: var(--w-face); border: 0; }
.ws-title { display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 0 3px 0 6px; background: linear-gradient(90deg, #000080, #1084d0); color: #fff; }
.ws .brand { gap: 6px; color: #fff; min-width: 0; }
.ws .brand-file { font: 600 13px/1 var(--w-px); color: #fff; overflow: hidden; text-overflow: ellipsis; }
.ws .brand-ext { color: #fff; }
.ws .t-ico { display: inline-block; flex: none; width: 14px; height: 14px; background: linear-gradient(135deg, #e05a3a 50%, #7a1f12 50%); border: 1px solid #000; }
.ws .w95-btns { display: flex; gap: 2px; }
.ws .w95-btns i { width: 18px; height: 16px; display: grid; place-items: center; font: 700 11px/1 Tahoma, sans-serif; font-style: normal; color: #000; background: var(--w-face); box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080; }
.ws .w95-btns i:last-child { margin-left: 2px; }
.ws-menubar { display: flex; align-items: center; gap: 2px; padding: 3px 2px 2px; min-height: 32px; }
.ws-menu { display: flex; }
.ws-menu button, .ws .ws-nav a { border: 0; background: none; padding: 4px 8px; font: 400 13px/1 var(--w-px); color: #000; text-decoration: none; border-radius: 0; }
.ws-menu button:first-letter { text-decoration: underline; }
.ws-menu button:hover, .ws .ws-nav a:hover { background: var(--w-sel); color: #fff; }
.ws .tb-div { width: 2px; height: 22px; border-left: 1px solid #808080; border-right: 1px solid #fff; margin: 0 4px; flex: none; }
.ws .ws-nav { margin-left: 0; gap: 0; }
.ws .ws-actions { gap: 4px; }
.ws .kbtn, .ws .theme-btn, .ws .btn-solid, .ws .btn-line, .ws .tb, .ws .boot-skip, .ws .pp-nav button, .ws .sp-axis button, .ws .vc-iso, .ws .dpad button {
  background: var(--w-face); color: #000; border: 0; border-radius: 0; box-shadow: var(--w-raised); font-family: var(--w-px);
}
.ws .kbtn, .ws .theme-btn, .ws .btn-solid, .ws .btn-line { height: 26px; font-size: 13px; font-weight: 400; padding: 0 10px; }
.ws .kbtn:active, .ws .theme-btn:active, .ws .btn-solid:active, .ws .btn-line:active, .ws .tb:active, .ws .dpad button:active { box-shadow: var(--w-sunken); }
.ws .btn-solid:hover, .ws .btn-line:hover, .ws .kbtn:hover { background: #d4d4d4; color: #000; border: 0; }
.ws .btn-solid { font-weight: 600; box-shadow: var(--w-raised), 0 0 0 1px #000; }
.ws kbd { background: var(--w-face); color: #000; border: 0; box-shadow: var(--w-field); border-radius: 0; font-family: var(--w-px); }
.ws .kbtn { color: #000; }
.ws .theme-btn { color: #404040; }
.ws .tb-sw { border-color: #000; background: #fff; box-shadow: var(--w-field); }
.ws .tb-sw i { background: #000080; }
.is-dark .ws .tb-r, :root:not(.is-dark) .ws .tb-l { color: #000; font-weight: 600; }

/* panels */
.ws .tree, .ws .props { background: var(--w-face); border: 0; box-shadow: none; }
.ws .tree-head, .ws .props-head { border: 0; padding: 6px 6px 4px; font: 600 13px/1 var(--w-px); color: #000; }
.ws .tree-count { font: 400 12px/1 var(--w-px); color: #404040; }
.ws .tree-list { background: #fff; box-shadow: var(--w-sunken); margin: 0 3px; padding: 6px 2px; }
.ws .tree-root { font: 400 12px/1.3 var(--w-ui); color: #000; }
.ws .ti { padding: 3px 8px 3px 22px; border-left: 0; font-family: var(--w-ui); }
.ws .ti::before { border-left: 1px dotted #808080; }
.ws .ti-t { font-size: 12px; color: #000; }
.ws .ti-t small { font: 400 10.5px/1.3 var(--w-ui); color: #555; }
.ws .ti-n { font: 400 10.5px/1 var(--w-ui); color: #555; }
.ws .ti .ti-ic { stroke: #000; }
.ws .ti:hover, .ws .ti.hover { background: #e8e8f4; }
.ws .ti[aria-selected="true"] { background: #000080; border-left: 0; }
.ws .ti[aria-selected="true"] .ti-t, .ws .ti[aria-selected="true"] .ti-t small, .ws .ti[aria-selected="true"] .ti-n { color: #fff; }
.ws .ti[aria-selected="true"] .ti-ic { stroke: #fff; }
.ws .ti-st { border-radius: 0; width: 7px; height: 7px; box-shadow: 0 0 0 1px #000; background: #008000; }
.ws .ti-st.live { background: #e05a3a; }
.ws .tree-foot { border: 0; margin: 4px 3px 3px; padding: 6px 8px; box-shadow: var(--w-field); }
.ws .tf-row, .ws .tf-row span:last-child { font: 400 11px/1.4 var(--w-ui); color: #000; }
.ws .props { padding: 0 3px 3px; }
.ws .pp { background: var(--w-face); padding: 8px 6px; gap: 12px; color: #000; }
.ws .pp p, .ws .pp-part, .ws .pp-table dd { color: #000; font-family: var(--w-ui); font-size: 12.5px; }
.ws .pp h2 { font: 600 22px/1.05 var(--w-px); color: #000; }
.ws .pp-eyebrow { font: 400 11px/1 var(--w-ui); color: #404040; }
.ws .pp-eyebrow .pn { color: #000080; }
.ws .pp-sum, .ws .pp-stats, .ws .forces, .ws .jl, .ws .pp-try { border: 0; background: #fff; box-shadow: var(--w-sunken); }
.ws .pp-sum > div, .ws .pp-stats > div { border-color: #dfdfdf; }
.ws .pp-sum b, .ws .pp-stats b { font-family: var(--w-px); color: #000; }
.ws .pp-sum span, .ws .pp-stats span, .ws .pp-table dt { font-family: var(--w-ui); color: #404040; }
.ws .pp-table { border-color: #808080; }
.ws .pp-table > * { border-color: #dfdfdf; }
.ws .chip { border: 0; box-shadow: var(--w-field); background: var(--w-face); color: #000; font: 400 11px/1 var(--w-ui); border-radius: 0; }
.ws .pp-media { border: 0; box-shadow: var(--w-sunken); padding: 2px; background: #000; }
.ws .pp-media span { background: #000080; color: #fff; font-family: var(--w-px); }
.ws .pp-keys, .ws .pp-keys dt, .ws .pp-keys dd { font-family: var(--w-ui); color: #000; }
.ws .jl-head, .ws .jl-state { font-family: var(--w-ui) !important; color: #000 !important; }
.ws .jl-item { border-color: #dfdfdf; }
.ws .jl-item:hover { background: #000080; }
.ws .jl-item:hover time, .ws .jl-item:hover b { color: #fff; }
.ws .jl-item time { color: #000080; font-family: var(--w-ui); }
.ws .jl-item b { font-family: var(--w-px); color: #000; }
.ws .forces, .ws .fr .fm, .ws .fr .fv, .ws .forces-head, .ws .forces-note { font-family: var(--w-ui) !important; color: #000 !important; }
.ws .pp-try p { color: #000; }
.ws .pp-nav button { padding: 5px 8px; color: #000; font-size: 12px; }
.ws .signal { color: #a02000; }

/* viewport: sunken well */
.ws .vp { box-shadow: var(--w-sunken); }
.ws .vp::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: var(--w-sunken); z-index: 8; }
.ws .toolbar { background: var(--w-face); border: 0; border-radius: 0; box-shadow: var(--w-raised), 4px 4px 0 rgba(0, 0, 0, .25); padding: 3px; gap: 1px; }
.ws .tb { width: 54px; color: #000; }
.ws .tb span { font: 400 10px/1 var(--w-px); }
.ws .tb:hover { background: #d4d4d4; color: #000; }
.ws .tb.on { background: repeating-conic-gradient(#c0c0c0 0 25%, #e8e8e8 0 50%) 0 0 / 2px 2px; color: #000; box-shadow: var(--w-sunken); }
.ws .tb-drive.on { background: #e05a3a; color: #fff; }
.ws .tb-sep { background: none; border-left: 1px solid #808080; border-right: 1px solid #fff; width: 2px; }
.ws .slider-pop, .ws .drive-hud, .ws .boot-card { background: var(--w-face); color: #000; border: 0; border-radius: 0; box-shadow: var(--w-raised), 4px 4px 0 rgba(0, 0, 0, .25); font-family: var(--w-ui); }
.ws .slider-pop label, .ws .slider-pop output { color: #000; font-family: var(--w-px); }
.ws .sp-axis { border: 0; }
.ws .sp-axis button.on { box-shadow: var(--w-sunken); background: #e8e8e8; color: #000; }
.ws input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: #fff; box-shadow: var(--w-field); }
.ws input[type="range"]::-moz-range-track { height: 4px; background: #fff; }
.ws input[type="range"]::-webkit-slider-thumb { width: 11px; height: 20px; margin-top: -8px; background: var(--w-face); border-radius: 0; box-shadow: var(--w-raised); }
.ws input[type="range"]::-moz-range-thumb { width: 11px; height: 20px; background: var(--w-face); border-radius: 0; border: 0; box-shadow: var(--w-raised); }
.ws .boot-card { padding: 3px; width: min(330px, 100%); }
.ws .boot-title { display: flex; align-items: center; gap: 6px; height: 22px; margin: 0 0 8px; padding: 0 6px; background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font: 600 12px/1 var(--w-px); }
.ws .boot-file { margin: 0 8px 2px; font: 600 12px/1.3 var(--w-ui); }
.ws .boot-line { margin: 0 8px 8px; color: #000; font-family: var(--w-ui); }
.ws .boot-bar { margin: 0 8px; height: 18px; padding: 2px; background: #fff; box-shadow: var(--w-field); }
.ws .boot-bar i { background: repeating-linear-gradient(90deg, #000080 0 9px, transparent 9px 11px); }
.ws .boot-skip { margin: 10px 8px 6px; padding: 5px 14px; text-decoration: none; color: #000; }
.ws .drive-hud { padding: 10px 12px; }
.ws .dh-row, .ws .dh-row b, .ws .dh-help, .ws .dh-scale { color: #000; font-family: var(--w-ui); }
.ws .dh-row b { font-family: var(--w-px); }
.ws .dh-title { color: #000080; font-family: var(--w-px); }
.ws .dh-meter { background: #fff; border: 0; box-shadow: var(--w-field); }
.ws .dh-meter i { background: #008000; }
.ws .dh-meter i.bad { background: #e05a3a; }
.ws .dh-meter em { background: #000; }
.ws .dh-status { border: 0; box-shadow: var(--w-field); background: #fff; color: #006000; font-family: var(--w-ui); }
.ws .dh-status.bad { background: #e05a3a; color: #fff; }
.ws .tip { background: #ffffe1; color: #000; border: 1px solid #000; border-radius: 0; font: 400 12px/1.3 var(--w-ui); }
.ws .tip b { color: #000080; }
.ws .vc-face { border-color: #000; background: rgba(192, 192, 192, .92); color: #000; font-family: var(--w-px); }
.ws .vc-face:hover { background: #000080; color: #fff; border-color: #000080; }
.ws .vc-iso { color: #000; padding: 4px 7px; }

/* status bar: sunken fields */
.ws .status { background: var(--w-face); border: 0; gap: 3px; padding: 0; color: #000; font: 400 11px/1 var(--w-ui); }
.ws .status > span { height: 20px; display: inline-flex; align-items: center; padding: 0 8px; box-shadow: var(--w-field); }
.ws .st-def i { border-radius: 0; background: #008000; box-shadow: 0 0 0 1px #000; }
.ws .st-hint { flex: 1; min-width: 0; }
@media (max-width: 960px) {
  .ws { padding: 2px; }
  .ws-menu, .ws .tb-div { display: none; }
  .ws .ws-menubar { justify-content: flex-end; }
  .ws .tree-list { margin: 0; }
}
@media (max-width: 640px) {
  .ws .ws-bar { height: auto; }
  .ws .brand-file { font-size: 12px; }
  .ws .w95-btns i:nth-child(-n+2) { display: none; }
}

@media (min-width: 961px) { .ws { grid-template-rows: auto minmax(0, 1fr) 24px; } }
@media (max-width: 640px) { .ws .tb { width: 44px; } .ws .tb span { font-size: 9px; } }

/* ================= RETRO: WHOLE PAGE =================
   The page is a desktop (teal in Vellum, navy in Blueprint); every section is a window. */
:root { --desk: #008080; --desk-2: #006a6a; --teal: #007b7b; --navy: #000080; --dim: #007b7b;
  --f-body: Tahoma, Verdana, "Segoe UI", sans-serif;
  --w-raised: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  --w-sunken: inset 1px 1px #808080, inset -1px -1px #fff, inset 2px 2px #000, inset -2px -2px #dfdfdf;
  --w-field: inset 1px 1px #808080, inset -1px -1px #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --desk: #0b1f45; --desk-2: #081733; --teal: #5fd4d4; --dim: #6fe0e0; } }
:root[data-theme="dark"] { --desk: #0b1f45; --desk-2: #081733; --teal: #5fd4d4; --dim: #6fe0e0; }
body { background: var(--desk); }
.set { padding-top: 40px; }
.sheet { background: #c0c0c0; border: 0; outline: 0; padding: 3px; box-shadow: var(--w-raised), 6px 6px 0 rgba(0, 0, 0, .28); }
.sheet::before, .sheet::after { display: none; }
.win-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 26px; padding: 0 3px 0 6px; background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font: 600 13px/1 Tahoma, Verdana, sans-serif; }
.win-title > span:first-child { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-ico { display: inline-block; flex: none; width: 14px; height: 14px; background: linear-gradient(135deg, #e05a3a 50%, #7a1f12 50%); border: 1px solid #000; }
.w95-btns { display: flex; gap: 2px; flex: none; }
.w95-btns i, .w95-btns a { width: 18px; height: 16px; display: grid; place-items: center; font: 700 11px/1 Tahoma, sans-serif; font-style: normal; color: #000; text-decoration: none; background: #c0c0c0; box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080; }
.w95-btns i:last-child, .w95-btns a:last-child { margin-left: 2px; }
.win-paper { position: relative; margin-top: 3px; background: var(--sheet); box-shadow: var(--w-sunken); padding: 40px clamp(18px, 4vw, 56px) 48px; }
.win-paper::before, .win-paper::after { content: ""; position: absolute; left: 2px; right: 2px; height: 6px; pointer-events: none; background-image: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12.5%); opacity: .6; }
.win-paper::before { top: 2px; } .win-paper::after { bottom: 2px; }
.sheet-head { border-bottom-color: var(--navy); }
:root.is-dark .sheet-head { border-bottom-color: var(--ink); }
.sheet-head h2, .dwg-title, .contact-big { color: var(--ink); }
.sheet-no { font-family: Tahoma, Verdana, sans-serif; }

/* retro controls everywhere */
.btn-solid, .btn-line, .bom-filter button, .tunnel-btns button, .jx button, .bom .uses a, .dwg-next a, .link-chip, .viewer-arrows button, .proj-page .theme-btn, .cmd-foot kbd {
  background: #c0c0c0; color: #000; border: 0; border-radius: 0; box-shadow: var(--w-raised); font-family: Tahoma, Verdana, sans-serif; text-decoration: none;
}
.btn-solid, .btn-line { height: 28px; font-size: 13px; padding: 0 12px; }
.btn-solid { font-weight: 700; box-shadow: var(--w-raised), 0 0 0 1px #000; }
.btn-solid:hover, .btn-line:hover, .bom-filter button:hover, .tunnel-btns button:hover, .jx button:hover, .bom .uses a:hover, .dwg-next a:hover, .viewer-arrows button:hover { background: #d4d4d4; color: #000; border: 0; }
.btn-solid:active, .btn-line:active, .bom-filter button:active, .tunnel-btns button:active, .dwg-next a:active { box-shadow: var(--w-sunken); }
.bom-filter button[aria-pressed="true"], .tunnel-btns button.on { background: repeating-conic-gradient(#c0c0c0 0 25%, #e8e8e8 0 50%) 0 0 / 2px 2px; color: #000; box-shadow: var(--w-sunken); border: 0; }
.bom .uses a { display: inline-block; padding: 4px 7px; font-size: 11px; }
.bom .uses a:hover { color: var(--navy); }
.bom-wrap { border: 0; box-shadow: var(--w-sunken); padding: 2px; background: #fff; }
.bom { background: var(--sheet); }
.bom th { background: #c0c0c0; color: #000; box-shadow: var(--w-raised); border: 0; font-family: Tahoma, Verdana, sans-serif; }
.bom tbody tr:hover { background: color-mix(in srgb, var(--teal) 14%, transparent); }
.tunnel-stage, .detail img { box-shadow: var(--w-sunken); border: 0; padding: 2px; background: #c0c0c0; }
.tunnel-read { box-shadow: var(--w-raised); border: 0; background: #c0c0c0; gap: 2px; padding: 2px; }
.tunnel-read > div { box-shadow: var(--w-field); background: #fff; }
.tunnel-read span, .tunnel-read em { color: #404040; }
.tunnel-read b { color: #000; }
.callout { border: 0; background: var(--navy); color: #fff; }
.titleblock { border-color: var(--ink); }
.contact-mail { border-top-color: var(--navy); }
:root.is-dark .contact-mail { border-top-color: var(--ink); }
.spec { border-color: var(--navy); }
:root.is-dark .spec { border-color: var(--ink); }
.traj-item .ty .co { color: var(--teal); }
.colophon .link-btn, .link-btn { color: var(--teal); }

/* command search and toast as retro windows */
.cmd { background: color-mix(in srgb, var(--desk) 55%, transparent); }
.cmd-box { background: #c0c0c0; border: 0; box-shadow: var(--w-raised), 6px 6px 0 rgba(0, 0, 0, .3); padding: 3px; }
.cmd-box::before { content: "Command search"; display: block; height: 24px; padding: 0 8px; line-height: 24px; color: #fff; font: 600 13px/24px Tahoma, Verdana, sans-serif; background: linear-gradient(90deg, #000080, #1084d0); margin-bottom: 4px; }
.cmd-box input { background: #fff; color: #000; box-shadow: var(--w-sunken); border: 0; font-family: Tahoma, Verdana, sans-serif; font-size: 14px; }
.cmd-box ul { background: #fff; box-shadow: var(--w-sunken); margin-top: 4px; color: #000; }
.cmd-box li { border-radius: 0; font-family: Tahoma, Verdana, sans-serif; font-size: 13px; padding: 7px 10px; }
.cmd-box li small { color: #555; }
.cmd-box li[aria-selected="true"] { background: #000080; color: #fff; }
.cmd-foot { border: 0; color: #000; font-family: Tahoma, Verdana, sans-serif; }
.toast { background: #ffffe1; color: #000; border: 1px solid #000; border-radius: 0; box-shadow: 3px 3px 0 rgba(0, 0, 0, .3); font-family: Tahoma, Verdana, sans-serif; }
.skip:focus { background: #000080; color: #fff; }

/* ================= PROJECT PAGES ================= */
.proj-page { background: var(--desk); min-height: 100vh; }
.proj-desk { padding: 24px 16px 40px; }
.proj-win { max-width: 1260px; margin: 0 auto; background: #c0c0c0; padding: 3px; box-shadow: var(--w-raised), 8px 8px 0 rgba(0, 0, 0, .28); }
.win-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; padding: 4px 2px 3px; font: 400 13px/1 Tahoma, Verdana, sans-serif; }
.win-menu > a { color: #000; text-decoration: none; padding: 6px 8px; }
.win-menu > a:hover { background: #000080; color: #fff; }
.win-menu .tb-div { width: 2px; height: 22px; border-left: 1px solid #808080; border-right: 1px solid #fff; margin: 0 4px; }
.win-menu-r { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.proj-page .theme-btn { height: 28px; padding: 0 10px; color: #404040; font-size: 12px; }
.proj-page .tb-sw { border: 1px solid #000; background: #fff; }
.proj-page .tb-sw i { background: #000080; }
:root.is-dark .proj-page .tb-r, :root:not(.is-dark) .proj-page .tb-l { color: #000; font-weight: 700; }
.proj-page .dwg-paper { max-width: none; margin: 3px 0 0; border: 0; box-shadow: var(--w-sunken); animation: none; padding: 34px clamp(18px, 3.5vw, 44px) 40px; }
.proj-page .dwg-frame { inset: 12px; }
.proj-page .dwg-title { margin-top: 4px; }
.proj-page .brief { margin: 0 0 22px; color: var(--ink-2); line-height: 1.6; }
.dwg-next a { display: block; padding: 12px 14px; min-width: 0; color: #000; }
.dwg-next a small { display: block; font: 400 11px/1 Tahoma, sans-serif; color: #404040; margin-bottom: 6px; }
.dwg-next a b { font: 600 17px/1.1 var(--f-display); }
.viewer { border: 0; box-shadow: var(--w-sunken); padding: 2px; background: #c0c0c0; }
.viewer-tag { background: #000080; color: #fff; border: 0; }
.viewer-cap { border-top: 0; background: #c0c0c0; color: #000; font-family: Tahoma, sans-serif; }
.thumbs button { box-shadow: var(--w-raised); border: 0; padding: 3px; background: #c0c0c0; }
.thumbs button[aria-current="true"] { box-shadow: var(--w-sunken); outline: 2px solid var(--teal); outline-offset: 1px; }
.win-status { display: flex; gap: 3px; margin-top: 3px; font: 400 11px/1 Tahoma, Verdana, sans-serif; color: #000; }
.win-status > span { height: 20px; display: inline-flex; align-items: center; padding: 0 8px; box-shadow: var(--w-field); white-space: nowrap; }
.win-status .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .proj-desk { padding: 8px 6px 24px; }
  .win-menu-r { margin-left: 0; width: 100%; justify-content: flex-end; }
  .proj-page .theme-btn .tb-l, .proj-page .theme-btn .tb-r { display: none; }
  .win-status > span:nth-child(n+3) { display: none; }
  .win-paper { padding: 28px 14px 32px; }
}
a.jl-item { text-decoration: none; color: inherit; }

/* ================= APP WINDOWS ================= */
.win-layer { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.app-win { position: absolute; pointer-events: auto; display: flex; flex-direction: column; min-width: 300px; min-height: 220px; background: #c0c0c0; padding: 3px; color: #000;
  box-shadow: var(--w-raised), 8px 8px 0 rgba(0, 0, 0, .3); font-family: Tahoma, Verdana, "Segoe UI", sans-serif; }
.app-win[hidden] { display: none !important; }
.app-win.opening { animation: winOpen .18s steps(4); }
@keyframes winOpen { from { transform: scale(.85); opacity: .2; } }
.app-win.max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; box-shadow: var(--w-raised); }
.app-win.inactive .win-title { background: linear-gradient(90deg, #808080, #b5b5b5); color: #dcdcdc; }
.app-win .win-title { cursor: default; user-select: none; -webkit-user-select: none; flex: none; }
.app-win:not(.max) .win-title { cursor: move; }
.app-win.dragging { opacity: .92; }
.wt-ico { width: 16px; height: 16px; flex: none; }
.w95-btns button { width: 18px; height: 16px; display: grid; place-items: center; padding: 0; border: 0; font: 700 11px/1 Tahoma, sans-serif; color: #000; background: #c0c0c0; box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080; cursor: pointer; }
.w95-btns button:last-child { margin-left: 2px; }
.w95-btns button:active { box-shadow: inset 1px 1px #000, inset -1px -1px #fff; }
.app-win .win-paper { flex: 1; min-height: 0; overflow: auto; margin-top: 3px; padding: 30px clamp(16px, 3vw, 40px) 36px; outline: none; }
.app-win .win-paper::before, .app-win .win-paper::after { display: none; }
.app-win .sheet-head h2 { font-size: clamp(28px, 4vw, 46px); }
.app-win .traj-item { min-height: 26vh; }
.app-win .traj-item:last-child { min-height: 0; }
/* WordPad-style about document */
.wp-bar { display: flex; align-items: center; gap: 3px; padding: 4px 2px; border-bottom: 1px solid #808080; box-shadow: 0 1px #fff; flex: none; }
.wp-bar .wp-sel { background: #fff; box-shadow: var(--w-sunken); padding: 3px 18px 3px 6px; font-size: 12px; position: relative; min-width: 110px; }
.wp-bar .wp-sel.s { min-width: 40px; }
.wp-bar .wp-sel::after { content: "▾"; position: absolute; right: 4px; top: 2px; }
.wp-bar i { width: 22px; height: 22px; display: grid; place-items: center; font-style: normal; font-size: 13px; box-shadow: inset -1px -1px #808080, inset 1px 1px #fff; }
.wp-bar .tb-div { width: 2px; height: 20px; border-left: 1px solid #808080; border-right: 1px solid #fff; margin: 0 3px; }
.wp-ruler { height: 18px; margin: 3px 0 0; background: #fff repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 10px) 0 100% / 100% 5px no-repeat; box-shadow: var(--w-field); flex: none; }
.app-win .win-paper.doc { background: #808080; padding: 18px; }
.doc-page { background: var(--sheet); color: var(--ink); max-width: 820px; margin: 0 auto; padding: clamp(22px, 4vw, 48px); box-shadow: 1px 1px 0 #000, 6px 6px 0 rgba(0, 0, 0, .25); }
.doc-page .colophon { margin-top: 28px; }
/* résumé viewer */
#win-resume .app-body { margin-top: 3px; }
#win-resume .app-sheet { width: 100%; max-width: 820px; }
/* mail */
.mail-bar { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px 2px; border-bottom: 1px solid #808080; box-shadow: 0 1px #fff; flex: none; }
.mail-form { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding: 14px 10px 10px; }
.mail-h { margin: 0; font: 700 26px/1.05 var(--f-display); color: #000080; text-transform: uppercase; }
.mail-copy { margin: 0 0 6px; font-size: 13px; }
.mf-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 6px; }
.mf-row label { font-size: 13px; text-align: right; }
.mail-form input, .mail-form textarea { font: 13px/1.4 Tahoma, Verdana, sans-serif; color: #000; background: #fff; border: 0; border-radius: 0; box-shadow: var(--w-sunken); padding: 5px 6px; width: 100%; }
.mail-form input[readonly] { background: #e8e8e8; }
.mail-form textarea { flex: 1; min-height: 140px; resize: none; margin-top: 4px; }
.mf-note { margin: 4px 0 0; font-size: 12px; color: #202020; }
.mf-note span, .mf-note b { user-select: all; font-weight: 700; }

/* ================= WORKSPACE APP BUTTONS ================= */
.ws-apps { display: flex; gap: 1px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ws-apps::-webkit-scrollbar { display: none; }
.ws-apps button { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 26px; padding: 0 8px; border: 0; background: none; font: 400 13px/1 Tahoma, Verdana, sans-serif; color: #000; border-radius: 0; cursor: pointer; }
.ws-apps button svg { width: 16px; height: 16px; flex: none; }
.ws-apps button:hover { box-shadow: inset -1px -1px #808080, inset 1px 1px #fff; }
.ws-apps button:active { box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; }
@media (max-width: 960px) { .ws-apps span { display: none; } .ws-apps button { padding: 0 7px; } .ws .ws-menubar { justify-content: space-between; } }

/* ================= INTERACTIVE DESKTOP ================= */
.d-icon { border: 0; background: none; padding: 4px 2px; cursor: default; font: inherit; color: #fff; }
.d-icon:focus-visible { outline: 1px dotted #fff; outline-offset: 1px; }
.d-icon.sel span { background: #000080; outline: 1px dotted #fff; }
.d-icon.sel svg { filter: sepia(1) hue-rotate(190deg) saturate(3) brightness(.75); }
.intro.desk-on .d-icon:nth-child(7) { animation-delay: .48s; }
.intro.instant .intro-desk { clip-path: none; animation: none; }
.intro.instant .d-icon { opacity: 1; animation: none; }
.intro.instant .taskbar { opacity: 1; transition: none; }
.intro-desk.busy, .intro-desk.busy * { cursor: progress !important; }
.d-hint { position: absolute; left: 124px; top: 18px; max-width: 320px; padding: 10px 28px 10px 12px; background: #ffffe1; color: #000; border: 1px solid #000; box-shadow: 3px 3px 0 rgba(0, 0, 0, .3); font-size: 13px; line-height: 1.45; opacity: 0; }
.d-hint b { display: block; margin-bottom: 2px; }
.d-hint span { font-weight: 700; }
.d-hint::before { content: ""; position: absolute; left: -9px; top: 16px; border: 8px solid transparent; border-right-color: #000; border-left: 0; }
.d-hint::after { content: ""; position: absolute; left: -7px; top: 17px; border: 7px solid transparent; border-right-color: #ffffe1; border-left: 0; }
.d-hint button { position: absolute; right: 4px; top: 4px; width: 18px; height: 16px; border: 0; padding: 0; background: #c0c0c0; box-shadow: inset -1px -1px #000, inset 1px 1px #fff; font: 700 11px/1 Tahoma, sans-serif; cursor: pointer; }
.intro.desk-on .d-hint { animation: iconIn .3s steps(3) .9s forwards; }
.intro.instant .d-hint { opacity: 1; animation: none; }
.tasks { display: flex; gap: 3px; min-width: 0; overflow: hidden; }
.tasks .task { min-width: 0; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 26px; }
.task:not(.pressed) { background: #c0c0c0; box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf; }
.w95-btn.pressed { box-shadow: inset 1px 1px #000, inset -1px -1px #fff, inset 2px 2px #808080, inset -2px -2px #dfdfdf; background: repeating-conic-gradient(#c0c0c0 0 25%, #d8d8d8 0 50%) 0 0 / 2px 2px; }
.start-menu { position: absolute; left: 2px; bottom: 36px; z-index: 4; display: flex; background: #c0c0c0; box-shadow: inset -1px -1px #000, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff, 4px 4px 0 rgba(0, 0, 0, .3); padding: 3px; }
.sm-side { width: 28px; background: linear-gradient(0deg, #000080, #1084d0); color: #c0c0c0; writing-mode: vertical-rl; transform: rotate(180deg); font: 700 18px/28px Tahoma, sans-serif; padding: 8px 0; white-space: nowrap; }
.sm-side b { color: #fff; margin-top: 6px; }
.sm-items { display: flex; flex-direction: column; min-width: 210px; }
.sm-items button { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 8px; border: 0; background: none; font: 400 14px/1 Tahoma, Verdana, sans-serif; color: #000; text-align: left; cursor: pointer; }
.sm-items button svg { width: 28px; height: 28px; flex: none; }
.sm-items button:hover, .sm-items button:focus-visible { background: #000080; color: #fff; outline: none; }
@media (max-width: 700px) {
  .d-hint { left: 12px; right: 12px; top: auto; bottom: 48px; max-width: none; }
  .d-hint::before, .d-hint::after { display: none; }
  .d-icons { bottom: 150px; }
}

/* SolidWorks window buttons */
.ws .w95-btns button { width: 18px; height: 16px; display: grid; place-items: center; padding: 0; border: 0; font: 700 11px/1 Tahoma, sans-serif; color: #000; background: #c0c0c0; box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080; cursor: pointer; }
.ws .w95-btns button:last-child { margin-left: 2px; }
.ws .w95-btns button:active { box-shadow: inset 1px 1px #000, inset -1px -1px #fff; }

/* ================= FLIGHT LOG (experience) ================= */
.fl-bar { display: flex; align-items: center; gap: 4px; padding: 4px 2px; flex: none; }
.fl-sp { flex: 1; }
.fl-pill { font-size: 12px; padding: 4px 8px; box-shadow: var(--w-field); }
.fl-body { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-rows: auto auto; gap: 6px; padding: 2px; }
.fl-board { background: #141414; box-shadow: var(--w-sunken); padding: 14px 14px 12px; color: #ffcf33; font-family: "B612 Mono", ui-monospace, Menlo, monospace; }
.fl-top { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.fl-top h2 { margin: 0; font: 700 26px/1 "B612 Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.fl-top h2::before { content: "✈ "; color: #ffcf33; }
.fl-sub { font-size: 12px; color: #9a9a9a; letter-spacing: .04em; }
.fl-cols, .fl-row { display: grid; grid-template-columns: 172px 88px 224px minmax(0, 1fr) 104px; gap: 10px; align-items: center; }
.fl-cols { font-size: 11px; color: #8a8a8a; letter-spacing: .12em; text-transform: uppercase; padding: 0 8px 6px; border-bottom: 1px solid #333; }
.fl-rows { display: grid; gap: 4px; margin-top: 6px; }
.fl-row { width: 100%; text-align: left; background: #0b0b0b; border: 1px solid #262626; padding: 8px; cursor: pointer; color: inherit; font: inherit; }
.fl-row:hover { border-color: #5a5a5a; }
.fl-row[aria-selected="true"] { border-color: #ffcf33; box-shadow: inset 0 0 0 1px #ffcf33; }
.fl-row:focus-visible { outline: 2px solid #5fd4d4; outline-offset: 1px; }
.fl-c { display: flex; flex-wrap: nowrap; gap: 1px; overflow: hidden; min-width: 0; }
.fl-c i { font-style: normal; display: inline-grid; place-items: center; min-width: .95em; height: 1.55em; padding: 0 1px; background: linear-gradient(#262626 0 49%, #000 49% 51%, #1d1d1d 51%); color: #ffcf33; font-size: 14px; font-weight: 700; border-radius: 1px; }
.fl-c i.flap { color: #fff3c4; }
.c-role i { color: #fff; }
.fl-status { font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 4px 6px; text-align: center; border: 1px solid currentColor; }
.st-departed { color: #8a8a8a; }
.st-in-flight { color: #5fd4d4; }
.st-landed { color: #ffffff; }
.st-boarding { color: #6dff8a; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.fl-detail { min-width: 0; }
.fd-pass { display: grid; grid-template-columns: minmax(0, 1fr) 250px; background: #fff; color: #000; box-shadow: var(--w-sunken); }
.fd-main { padding: 16px 18px; border-right: 2px dashed #808080; }
.fd-k { margin: 0 0 6px; font: 700 11px/1 "B612 Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: #000080; }
.fd-pass h3 { margin: 0; font: 700 26px/1.05 var(--f-display); }
.fd-org { margin: 4px 0 10px; font-weight: 700; color: #404040; }
.fd-body { margin: 0; font-size: 14px; line-height: 1.6; max-width: 62ch; }
.fd-act { display: flex; gap: 6px; margin-top: 12px; }
.fd-stub { padding: 14px 16px; background: #f2f2ea; display: grid; grid-template-columns: 1fr auto 1fr; align-content: start; gap: 8px; }
.fd-stub > div span { display: block; font: 400 10px/1 Tahoma, sans-serif; color: #555; text-transform: uppercase; letter-spacing: .08em; }
.fd-stub > div b { font: 700 28px/1.1 "B612 Mono", monospace; }
.fd-arrow { align-self: center; font-size: 20px; color: #000080; }
.fd-stub dl { grid-column: 1 / -1; margin: 6px 0 0; display: grid; gap: 6px; }
.fd-stub dt { font: 400 10px/1 Tahoma, sans-serif; color: #555; text-transform: uppercase; letter-spacing: .08em; }
.fd-stub dd { margin: 2px 0 0; font: 700 13px/1.3 Tahoma, sans-serif; }
.fd-stub dd.st-in-flight { color: #007b7b; } .fd-stub dd.st-boarding { color: #007a20; animation: none; } .fd-stub dd.st-landed { color: #000; } .fd-stub dd.st-departed { color: #555; }
@media (max-width: 1000px) { .fl-cols, .fl-row { grid-template-columns: 172px 88px minmax(0, 1fr) 104px; } .fl-cols span:nth-child(4), .fl-row .c-role { display: none; } }
@media (max-width: 760px) {
  .fl-cols, .fl-row { grid-template-columns: minmax(0, 1fr) 104px; }
  .fl-cols span:not(:nth-child(3)):not(:nth-child(5)), .fl-row .c-time, .fl-row .c-flight, .fl-row .c-role { display: none; }
  .fl-c i { font-size: 12px; }
  .fd-pass { grid-template-columns: minmax(0, 1fr); }
  .fd-main { border-right: 0; border-bottom: 2px dashed #808080; }
}

/* ================= LINKEDIN (retro web browser) ================= */
.br-bar { display: flex; gap: 2px; padding: 4px 2px; flex: none; }
.br-bar i { font-style: normal; font-size: 12px; padding: 5px 9px; box-shadow: inset -1px -1px #808080, inset 1px 1px #fff; color: #404040; }
.br-addr { display: flex; align-items: center; gap: 6px; padding: 3px 4px 5px; flex: none; font-size: 12px; }
.br-addr input { flex: 1; min-width: 0; background: #fff; border: 0; box-shadow: var(--w-sunken); padding: 4px 6px; font: 12px Tahoma, sans-serif; color: #000; }
.br-addr .w95-btn { height: 24px; }
.br-page { flex: 1; min-height: 0; overflow: auto; background: #e9e9e2; box-shadow: var(--w-sunken); padding: 18px; }
.li-card { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid #a0a0a0; box-shadow: 3px 3px 0 rgba(0, 0, 0, .15); padding: 0 22px 22px; color: #000; }
.li-banner { height: 90px; margin: 0 -22px; background: linear-gradient(90deg, #000080, #1084d0 60%, #008080); }
.li-photo { width: 120px; height: 120px; object-fit: cover; border: 4px solid #fff; margin-top: -60px; display: block; box-shadow: 0 0 0 1px #808080; }
.li-card h2 { margin: 10px 0 2px; font: 700 28px/1.1 var(--f-display); }
.li-head { margin: 0 0 6px; font-size: 15px; }
.li-meta { margin: 0 0 6px; font-size: 13px; color: #404040; }
.li-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.app-win .win-status { flex: none; }

/* desktop icon tooltips and start menu sublabel */
.d-icon { position: relative; }
@media (hover: hover) and (pointer: fine) { .d-icon[data-tip]:hover::after, .d-icon[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; left: calc(100% + 4px); top: 10px; z-index: 3; width: max-content; max-width: 220px; padding: 4px 6px; background: #ffffe1; color: #000; border: 1px solid #000; font: 400 12px/1.3 Tahoma, sans-serif; text-align: left; pointer-events: none; } }
.sm-items small { margin-left: auto; padding-left: 10px; font-size: 11px; color: #404040; }
.sm-items button:hover small, .sm-items button:focus-visible small { color: #dfe8ff; }
.intro.desk-on .d-icon:nth-child(8) { animation-delay: .56s; }

/* ================= EXPERIENCE: route + list + boarding pass ================= */
.fx-route { flex: none; margin-top: 3px; background: linear-gradient(180deg, #000060, #000080 60%, #0b2d6b); box-shadow: var(--w-sunken); padding: 10px 12px 0; position: relative; }
.fx-h { position: absolute; left: 14px; top: 10px; margin: 0; font: 700 13px/1 Tahoma, sans-serif; color: #bfe3ff; letter-spacing: .06em; text-transform: uppercase; }
#fxRoute { display: block; width: 100%; height: auto; max-height: 190px; }
.fx-path { fill: none; stroke: #5fd4d4; stroke-width: 2; stroke-dasharray: 4 7; opacity: .6; }
.fx-done { fill: none; stroke: #ffcf33; stroke-width: 3; }
.fx-stop { cursor: pointer; outline: none; }
.fx-stop .ring { fill: none; stroke: transparent; stroke-width: 2; }
.fx-stop .dot { fill: #000080; stroke: #fff; stroke-width: 2.5; }
.fx-stop.past .dot { fill: #ffcf33; stroke: #ffcf33; }
.fx-stop.on .dot { fill: #ffcf33; stroke: #fff; }
.fx-stop.on .ring, .fx-stop:focus-visible .ring, .fx-stop:hover .ring { stroke: #fff; }
.fx-stop.next .dot { fill: #000080; stroke: #6dff8a; }
.fx-stop.next .ring { stroke: #6dff8a; animation: blink 1.1s steps(2) infinite; }
.fx-stop text { text-anchor: middle; }
.fx-stop .code { font: 700 22px "B612 Mono", monospace; fill: #fff; }
.fx-stop .yr { font: 400 13px Tahoma, sans-serif; fill: #9fd8ff; }
.fx-stop.on .code { fill: #ffcf33; }
#fxPlane path { fill: #fff; stroke: #000080; stroke-width: .8; }
.fx-split { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 3px; margin-top: 3px; }
.fx-list { overflow: auto; background: #fff; box-shadow: var(--w-sunken); padding: 3px; display: grid; align-content: start; gap: 2px; }
.fx-item { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 10px 8px; cursor: pointer; font: inherit; color: #000; border-bottom: 1px solid #e4e4e4; }
.fx-item:hover { background: #eef4ff; }
.fx-item[aria-selected="true"] { background: #000080; color: #fff; }
.fx-code { font: 700 16px "B612 Mono", monospace; text-align: center; padding: 6px 0; background: #e8e8e8; color: #000080; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; }
.fx-item[aria-selected="true"] .fx-code { background: #ffcf33; color: #000; }
.fx-txt { display: grid; gap: 2px; min-width: 0; }
.fx-txt b { font: 700 14px/1.2 Tahoma, Verdana, sans-serif; }
.fx-txt span { font-size: 12.5px; line-height: 1.3; }
.fx-txt small { font-size: 11.5px; opacity: .75; }
.fx-st { font: 700 10.5px/1 Tahoma, sans-serif; text-transform: uppercase; letter-spacing: .04em; padding: 4px 6px; border: 1px solid currentColor; white-space: nowrap; }
.fx-item .st-departed { color: #6a6a6a; } .fx-item .st-in-flight { color: #007b7b; } .fx-item .st-landed { color: #000080; } .fx-item .st-boarding { color: #007a20; }
.fx-item[aria-selected="true"] .fx-st { color: #fff; }
.fx-card { overflow: auto; background: #d4d0c8; box-shadow: var(--w-sunken); padding: 14px; }
.fx-pass { background: #fff; color: #000; border: 1px solid #808080; box-shadow: 3px 3px 0 rgba(0, 0, 0, .2); padding: 0 20px 20px; max-width: 640px; }
.fx-pass-head { display: flex; justify-content: space-between; margin: 0 -20px 16px; padding: 8px 20px; background: #000080; color: #fff; font: 700 12px/1 Tahoma, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.fx-legs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 2px dashed #b0b0b0; margin-bottom: 14px; }
.fx-legs small { display: block; font: 400 11px/1 Tahoma, sans-serif; color: #555; text-transform: uppercase; letter-spacing: .08em; }
.fx-legs b { display: block; font: 700 34px/1.1 "B612 Mono", monospace; color: #000080; }
.fx-legs span { font-size: 12.5px; color: #333; }
.fx-legs > div:last-child { text-align: right; }
.fx-arrow { font-size: 26px; color: #007b7b; }
.fx-pass h3 { margin: 0; font: 700 26px/1.1 var(--f-display); color: #000; }
.fx-org { margin: 4px 0 12px; font: 700 14px/1.3 Tahoma, sans-serif; color: #333; }
.fx-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.fx-facts > div { background: #f2f2ea; padding: 8px 10px; }
.fx-facts dt { font: 400 10.5px/1 Tahoma, sans-serif; color: #555; text-transform: uppercase; letter-spacing: .08em; }
.fx-facts dd { margin: 4px 0 0; font: 700 13px/1.3 Tahoma, sans-serif; }
.fx-facts .st-in-flight { color: #007b7b; } .fx-facts .st-boarding { color: #007a20; } .fx-facts .st-landed { color: #000080; } .fx-facts .st-departed { color: #555; }
.fx-body { margin: 0; font-size: 15px; line-height: 1.6; max-width: 62ch; }
.fx-act { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .fx-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; overflow: auto; }
  .fx-list, .fx-card { overflow: visible; }
  .fx-stop .yr { display: none; }
  .fx-stop .code { font-size: 26px; }
  .fx-facts { grid-template-columns: minmax(0, 1fr); }
}

/* ================= LINKEDIN-STYLE PROFILE ================= */
.lp { max-width: 640px; margin: 0 auto; display: grid; gap: 10px; color: #000; }
.lp-card { background: #fff; border: 1px solid #a0a0a0; box-shadow: 2px 2px 0 rgba(0, 0, 0, .12); padding: 16px 20px; }
.lp-card h3 { margin: 0 0 10px; font: 700 18px/1.1 Tahoma, Verdana, sans-serif; color: #000080; }
.lp-card p { margin: 0; font-size: 14px; line-height: 1.55; }
.lp-top { padding-top: 0; }
.lp-top .li-banner { margin: 0 -20px; }
.lp-top h2 { margin: 10px 0 4px; font: 700 26px/1.1 var(--f-display); }
.lp-top .li-head { font-size: 15px; margin-bottom: 6px; }
.lp-top .li-meta { color: #404040; font-size: 13px; }
.lp-open { margin-top: 10px !important; padding: 8px 10px; background: #e8fff0; border: 1px solid #7fc79a; font-size: 13px !important; }
.lp-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid #e4e4e4; }
.lp-item:first-of-type { border-top: 0; padding-top: 0; }
.lp-logo { width: 44px; height: 44px; display: grid; place-items: center; background: #c0c0c0; box-shadow: var(--w-raised); font: 700 18px/1 Tahoma, sans-serif; color: #000080; }
.lp-item h4 { margin: 0; font: 700 15px/1.25 Tahoma, Verdana, sans-serif; }
.lp-org { font-size: 13.5px !important; }
.lp-when { font-size: 12.5px !important; color: #555; margin-top: 2px !important; }
.lp-note { font-size: 12.5px !important; color: #333; margin-top: 4px !important; }
.lp-item ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.5; display: grid; gap: 4px; }
.lp-projs { display: grid; gap: 6px; }
.lp-proj { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; background: #f4f4f4; border: 1px solid #d0d0d0; color: #000; text-decoration: none; font-size: 13.5px; }
.lp-proj:hover { background: #000080; color: #fff; }
.lp-proj span { color: inherit; opacity: .75; white-space: nowrap; }
.lp .chips .chip { background: #eef4ff; border: 1px solid #b7c7e6; color: #000; box-shadow: none; font: 12px/1 Tahoma, sans-serif; padding: 6px 8px; }
.lp-src { font: 12px/1.4 Tahoma, sans-serif; color: #404040; text-align: center; margin: 4px 0 10px; }
.lp-foot { flex: none; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 6px 4px 3px; border-top: 1px solid #fff; box-shadow: 0 -1px #808080; margin-top: 3px; }
.lp-foot .w95-btn { height: 30px; }

/* ================= EXPERIENCE: career planner (Gantt) ================= */
.gt-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 4px; flex: none; }
.gt-h { margin: 0 6px 0 2px; font: 700 18px/1 Tahoma, Verdana, sans-serif; color: #000080; }
.gt-filter { display: flex; gap: 3px; }
.gt-filter .w95-btn { height: 26px; font-size: 12px; font-weight: 400; }
.gt-today { margin-left: auto; font-size: 12px; padding: 4px 8px; box-shadow: var(--w-field); }
.sw { display: inline-block; width: 10px; height: 10px; border: 1px solid #000; flex: none; }
.sw.work { background: #000080; } .sw.edu { background: #008080; } .sw.proj { background: #e05a3a; } .sw.next { background: #2fbf5a; transform: rotate(45deg) scale(.8); }
.gt-wrap { flex: 1; min-height: 0; overflow: auto; background: #fff; box-shadow: var(--w-sunken); margin: 0 0 3px; }
.gt { position: relative; min-width: 860px; color: #000; outline: none; }
.gt-row { display: grid; grid-template-columns: 290px 74px 104px minmax(380px, 1fr); }
.gt-row > div { border-right: 1px solid #d4d4d4; border-bottom: 1px solid #e6e6e6; min-width: 0; }
.gt-head { position: sticky; top: 0; z-index: 3; background: #c0c0c0; }
.gt-head > div { box-shadow: var(--w-raised); font: 700 12px/1 Tahoma, sans-serif; padding: 0 8px; display: flex; align-items: center; height: 40px; border: 0; }
.gt-head .gt-chart { position: relative; padding: 0; }
.gt-year { position: absolute; top: 0; height: 20px; display: grid; place-items: center; font: 700 12px/1 Tahoma, sans-serif; border-left: 1px solid #808080; border-bottom: 1px solid #808080; }
.gt-q { position: absolute; top: 20px; height: 20px; display: grid; place-items: center; font: 400 10px/1 Tahoma, sans-serif; color: #404040; border-left: 1px solid #a0a0a0; }
.gt-item { cursor: pointer; }
.gt-item:hover { background: #eef4ff; }
.gt-item.on { background: #000080; color: #fff; }
.gt-item.on .gt-name small { color: #cfe0ff; }
.gt-item[hidden] { display: none; }
.gt-name { display: flex; align-items: center; gap: 8px; padding: 6px 8px; }
.gt-name span { display: grid; min-width: 0; }
.gt-name b { font: 700 13px/1.2 Tahoma, Verdana, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-name small { font: 400 11px/1.25 Tahoma, sans-serif; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-d { display: flex; align-items: center; padding: 0 8px; font: 400 12px/1.2 Tahoma, sans-serif; }
.gt-item .gt-chart { position: relative; height: 44px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 20 - 1px), #f0f0f0 calc(100% / 20 - 1px) calc(100% / 20)); }
.gt-item.on .gt-chart { background-color: #e8ecff; }
.gt-bar { position: absolute; top: 13px; height: 18px; border: 1px solid #000; box-shadow: inset 1px 1px rgba(255, 255, 255, .55), inset -1px -1px rgba(0, 0, 0, .35); transform-origin: left center; }
.gt-bar.g-work { background: #000080; } .gt-bar.g-edu { background: #008080; } .gt-bar.g-proj { background: #e05a3a; }
.gt-bar.ongoing { border-right: 0; background-image: linear-gradient(90deg, transparent 70%, rgba(255, 255, 255, .35)); }
.gt-bar.ongoing::after { content: "▶"; position: absolute; right: -11px; top: 1px; font-size: 11px; color: #000; }
.gt-item.on .gt-bar.ongoing::after { color: #fff; }
.gt-bar.planned { background: repeating-linear-gradient(135deg, #8fd0d0 0 4px, #fff 4px 8px); border-style: dashed; }
.gt-bar.live { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255, 255, 255, .28) 6px 12px); }
.gt.grow .gt-bar { animation: barGrow .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes barGrow { from { transform: scaleX(0); } }
.gt-ms { position: absolute; top: 9px; display: flex; align-items: center; gap: 8px; transform: translateX(-8px); white-space: nowrap; }
.gt-ms i { width: 16px; height: 16px; background: #2fbf5a; border: 1px solid #000; transform: rotate(45deg); animation: blink 1.2s steps(2) infinite; }
.gt-ms b { font: 700 12px/1 Tahoma, sans-serif; color: #007a20; }
.gt-item.on .gt-ms b { color: #9dffb4; }
.gt-todayline { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.gt-todayline i { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed #e05a3a; }
.gt-todayline i::before { content: "Today"; position: absolute; top: 2px; left: 4px; font: 700 10px/1 Tahoma, sans-serif; color: #fff; background: #e05a3a; padding: 2px 4px; }
.gt-body { position: relative; }
.gt-origin { padding: 10px 12px; font: 400 12px/1.4 Tahoma, sans-serif; color: #404040; background: #f6f6f0; }
.gt-detail { flex: none; max-height: 34%; overflow: auto; background: #fff; box-shadow: var(--w-sunken); padding: 12px 16px; color: #000; }
.gd-head { display: flex; align-items: center; gap: 8px; font: 700 11px/1 Tahoma, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: #404040; }
.gd-dur { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px; padding: 3px 8px; box-shadow: var(--w-field); }
.gt-detail h3 { margin: 8px 0 2px; font: 700 22px/1.15 var(--f-display); }
.gd-org { margin: 0 0 6px; font: 700 13px/1.35 Tahoma, sans-serif; color: #333; }
.gd-body { margin: 0; font-size: 14px; line-height: 1.55; max-width: 80ch; }
.gd-act { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.gd-act:empty { display: none; }
@media (max-width: 760px) {
  .gt { min-width: 640px; }
  .gt-row { grid-template-columns: 170px minmax(440px, 1fr); }
  .gt-row > .gt-d { display: none; }
  .gt-name small { display: none; }
  .gt-today { display: none; }
  .gt-detail { max-height: 45%; }
}
.bom .uses .use-note { font: 400 11px/1.3 Tahoma, sans-serif; color: var(--ink-2); padding: 4px 2px; }

/* ================= TOUCH SCREENS =================
   Fast taps (no double-tap zoom delay), finger-sized targets, no zoom when typing. */
button, a, summary, input, select, textarea, label, [role="button"], [role="option"], .ti, .bl, .gt-item, .d-icon, .tb { touch-action: manipulation; }
button, a, summary, [role="button"], [role="option"], .ti, .gt-item { -webkit-tap-highlight-color: rgba(0, 0, 128, .18); }
.bl, .balloons .bl * { cursor: pointer; }
@media (pointer: coarse) {
  .w95-btns button, .w95-btns a, .ws .w95-btns button { width: 34px; height: 28px; font-size: 14px; }
  .win-title, .ws-title { height: 36px; }
  .ws-apps button { height: 40px; padding: 0 10px; }
  .ws-apps button svg { width: 20px; height: 20px; }
  .ws .kbtn, .ws .theme-btn, .ws .btn-solid, .ws .btn-line, .btn-solid, .btn-line, .w95-btn { min-height: 40px; }
  .w95-btn { padding: 0 14px; }
  .gt-filter .w95-btn, .bom-filter button, .tunnel-btns button, .jx button { min-height: 40px; }
  .mail-form input, .mail-form textarea, .br-addr input, .cmd-box input { font-size: 16px; }
  .gt-item .gt-chart, .gt-name { min-height: 48px; }
  .fx-item, .jl-item, .lp-proj { min-height: 48px; }
  .tree-list .ti { min-height: 44px; }
  .sm-items button { height: 48px; }
  .d-hint button { width: 32px; height: 28px; }
  .viewer-arrows button { width: 44px; height: 44px; }
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .bom .uses a { padding: 8px 9px; }
  .tb-sw { width: 34px; height: 18px; }
  input[type="range"] { height: 32px; }
  input[type="range"]::-webkit-slider-thumb { width: 22px; height: 26px; margin-top: -12px; }
  input[type="range"]::-moz-range-thumb { width: 22px; height: 26px; }
  .ws input[type="range"]::-webkit-slider-thumb { width: 22px; height: 26px; margin-top: -11px; }
}

/* ---------- Retro mouse cursors and bigger desktop icons ---------- */
:root { --cur-arrow: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2222%22 height=%2234%22 viewBox=%220 0 11 17%22 shape-rendering=%22crispEdges%22%3E%3Crect x=%220%22 y=%220%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%221%22 width=%222%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%222%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%223%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%223%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%224%22 width=%223%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%224%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%225%22 width=%224%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%225%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%226%22 width=%225%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%226%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%227%22 width=%226%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%227%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%228%22 width=%227%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%228%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%229%22 width=%228%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%229%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%2210%22 width=%225%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%226%22 y=%2210%22 width=%225%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%2211%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%223%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%2211%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%226%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%222%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%225%22 y=%2212%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%227%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%2213%22 width=%222%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%225%22 y=%2213%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%227%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%225%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%226%22 y=%2214%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%228%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%225%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%226%22 y=%2215%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%228%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%226%22 y=%2216%22 width=%222%22 height=%221%22 fill=%22%23000000%22/%3E%3C/svg%3E") 1 1, default; --cur-hand: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2232%22 height=%2236%22 viewBox=%220 0 16 18%22 shape-rendering=%22crispEdges%22%3E%3Crect x=%225%22 y=%220%22 width=%222%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%225%22 y=%221%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%227%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%225%22 y=%222%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%227%22 y=%222%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%225%22 y=%223%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%227%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%225%22 y=%224%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%227%22 y=%224%22 width=%223%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%225%22 y=%225%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%227%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%228%22 y=%225%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%2210%22 y=%225%22 width=%223%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%225%22 y=%226%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%227%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%228%22 y=%226%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%2210%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%2211%22 y=%226%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%2213%22 y=%226%22 width=%222%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%227%22 width=%222%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%225%22 y=%227%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%227%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%228%22 y=%227%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%2210%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%2211%22 y=%227%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%2213%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%2214%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%2215%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%228%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%223%22 y=%228%22 width=%222%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%225%22 y=%228%22 width=%228%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%2213%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%2214%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%2215%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%229%22 width=%223%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%224%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%225%22 y=%229%22 width=%2210%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%2215%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%222%22 y=%2210%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%224%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%225%22 y=%2210%22 width=%2210%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%2215%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%222%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%223%22 y=%2211%22 width=%2212%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%2215%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%222%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%223%22 y=%2212%22 width=%2211%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%2214%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%223%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%2213%22 width=%2210%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%2214%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%223%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%2214%22 width=%229%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%2213%22 y=%2214%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%225%22 y=%2215%22 width=%228%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%2213%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%2216%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%225%22 y=%2216%22 width=%228%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%2213%22 y=%2216%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%2217%22 width=%2210%22 height=%221%22 fill=%22%23000000%22/%3E%3C/svg%3E") 11 1, pointer; --cur-wait: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2222%22 height=%2234%22 viewBox=%220 0 11 17%22 shape-rendering=%22crispEdges%22%3E%3Crect x=%220%22 y=%220%22 width=%2211%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%221%22 width=%229%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%2210%22 y=%221%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%222%22 width=%229%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%222%22 y=%223%22 width=%227%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%229%22 y=%223%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%222%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%223%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23000080%22/%3E%3Crect x=%224%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%225%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23000080%22/%3E%3Crect x=%226%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%227%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23000080%22/%3E%3Crect x=%228%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%229%22 y=%224%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%222%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%223%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%224%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23000080%22/%3E%3Crect x=%225%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%226%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23000080%22/%3E%3Crect x=%227%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%228%22 y=%225%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%223%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%225%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23000080%22/%3E%3Crect x=%226%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%227%22 y=%226%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%225%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%226%22 y=%227%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%225%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%226%22 y=%228%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%223%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%224%22 y=%229%22 width=%223%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%227%22 y=%229%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%222%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%223%22 y=%2210%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%225%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23000080%22/%3E%3Crect x=%226%22 y=%2210%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%228%22 y=%2210%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%222%22 y=%2211%22 width=%223%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%225%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23000080%22/%3E%3Crect x=%226%22 y=%2211%22 width=%223%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%229%22 y=%2211%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%222%22 y=%2212%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%224%22 y=%2212%22 width=%223%22 height=%221%22 fill=%22%23000080%22/%3E%3Crect x=%227%22 y=%2212%22 width=%222%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%229%22 y=%2212%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%222%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%223%22 y=%2213%22 width=%225%22 height=%221%22 fill=%22%23000080%22/%3E%3Crect x=%228%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%229%22 y=%2213%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%2214%22 width=%229%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%221%22 y=%2215%22 width=%229%22 height=%221%22 fill=%22%23ffffff%22/%3E%3Crect x=%2210%22 y=%2215%22 width=%221%22 height=%221%22 fill=%22%23000000%22/%3E%3Crect x=%220%22 y=%2216%22 width=%2211%22 height=%221%22 fill=%22%23000000%22/%3E%3C/svg%3E") 11 16, progress; }
@media (hover: hover) and (pointer: fine) {
  html, body, .intro, .intro-desk, .d-icon, .d-icon *, .app-win .win-title, .app-win.max .win-title, .taskbar, .ws, .ws-title, .ws-menubar, .w95-menu span, .app-win, .win-paper { cursor: var(--cur-arrow); }
  button, button *, a, a *, summary, label, select, [role="button"], [role="option"], [data-open-app], .gt-item, .gt-item *, .bl, .balloons .bl *, .ti, .ti *, .pp-media, .fx-item, .fx-stop, .je summary, .je summary *, .link-btn, .cmd-box li, .sm-items button, .vp.hovering, .intro-skip, .w95-btn, .w95-btns button, .ws .w95-btns button, .ws-apps button { cursor: var(--cur-hand); }
  .d-icon, .d-icon * { cursor: var(--cur-arrow); }
  .app-win:not(.max) .win-title { cursor: move; }
  .app-win:not(.max) .win-title button { cursor: var(--cur-hand); }
  input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea { cursor: text; }
  .vp { cursor: grab; } .vp.dragging { cursor: grabbing; } .vp.measuring { cursor: crosshair; }
  .intro-desk.busy, .intro-desk.busy *, html.busy, html.busy * { cursor: var(--cur-wait) !important; }
}

/* bigger desktop icons */
.d-icons { gap: 14px 12px; }
.d-icon { width: 116px; gap: 4px; padding: 4px 2px; }
.d-icon svg { width: 76px; height: 76px; }
.d-icon span { font-size: 15px; }
@media (min-width: 701px) { .d-hint { left: 150px; } }
.h-touch { display: none; }
@media (pointer: coarse) { .h-mouse { display: none; } .h-touch { display: inline; } }
.d-hint i { font-style: normal; }
/* short screens: icons wrap into a second column, so the welcome note moves over */
@media (min-width: 701px) and (max-height: 1150px) { .d-hint { left: 282px; } }
/* phones: really big icons in a 3-wide grid */
@media (max-width: 700px) {
  .d-icons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); left: 10px; right: 10px; top: max(64px, calc(env(safe-area-inset-top, 0px) + 56px)); bottom: auto; gap: 18px 6px; justify-items: center; }
  .d-icon { width: 100%; max-width: 128px; padding: 8px 2px; gap: 8px; }
  .d-icon svg { width: 76px; height: 76px; }
  .d-icon span { font-size: 15px; font-weight: 700; text-shadow: 1px 1px 0 rgba(0, 0, 0, .45); }
}
@media (max-width: 380px) { .d-icon span { font-size: 13px; } }
@media (max-width: 700px) and (max-height: 700px) {
  .d-icons { gap: 8px 6px; top: 54px; }
  .d-icon svg { width: 60px; height: 60px; }
}

/* ---------- Brett.exe game ---------- */
.gm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gm-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; flex: none; }
.gm-bar .w95-btn b { margin-left: 2px; }
.gm-stage { position: relative; flex: 1; min-height: 0; margin: 0 3px; background: #000; box-shadow: inset 1px 1px #000, inset -1px -1px #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; outline: none; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.gm-stage:focus-visible { box-shadow: inset 0 0 0 2px #ffd36b; }
.gm-stage canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.gm-stage.tall { align-items: flex-start; }
.gm-taphint { display: none; position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; color: #7fd8d0; font: 700 15px/1.3 Tahoma, Verdana, sans-serif; letter-spacing: .04em; pointer-events: none; animation: gmBlink 1.2s steps(2) infinite; }
.gm-stage.tall .gm-taphint { display: block; }
@keyframes gmBlink { 50% { opacity: .35; } }
.gm-hud { position: absolute; left: 8px; right: 8px; top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; pointer-events: none; font: 700 12px/1 Tahoma, Verdana, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000, -1px 0 0 #000, 0 -1px 0 #000, 1px 0 0 #000, 0 1px 0 #000; }
.gm-hud b { color: #ffe27a; font-variant-numeric: tabular-nums; }
.gm-murphy { color: #b6ff9a; }
.gm-zone { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%); padding: 10px 18px; background: #000080; color: #fff; box-shadow: inset -1px -1px #000, inset 1px 1px #5b7bd5, 4px 4px 0 rgba(0, 0, 0, .35); font: 700 20px/1.2 Tahoma, Verdana, sans-serif; text-align: center; white-space: nowrap; pointer-events: none; }
.gm-zone small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #7fd8d0; }
.gm-zone.in { animation: gmPop .32s steps(4); }
@keyframes gmPop { from { transform: translate(-50%, -50%) scale(.3); } }
.gm-toast { position: absolute; right: 8px; top: 26px; max-width: min(320px, calc(100% - 16px)); padding: 7px 10px; background: #ffffe1; color: #000; border: 1px solid #000; box-shadow: 3px 3px 0 rgba(0, 0, 0, .35); font: 400 12px/1.4 Tahoma, Verdana, sans-serif; pointer-events: none; }
.gm-toast b { display: block; color: #000080; margin-bottom: 2px; }
.gm-toast.in { animation: gmSlide .25s steps(3); }
@keyframes gmSlide { from { transform: translateX(30px); opacity: 0; } }
.gm-dlg, .gm-facts { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(430px, calc(100% - 20px)); max-height: calc(100% - 20px); overflow: auto; background: #c0c0c0; color: #000; box-shadow: inset -1px -1px #000, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff, 5px 5px 0 rgba(0, 0, 0, .4); padding: 3px; font: 400 13px/1.45 Tahoma, Verdana, sans-serif; touch-action: manipulation; }
.gm-dt { display: flex; align-items: center; justify-content: space-between; height: 22px; padding: 0 3px 0 6px; background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font-weight: 700; font-size: 12px; position: sticky; top: 0; }
.gm-x { width: 20px; height: 18px; padding: 0; border: 0; background: #c0c0c0; color: #000; font: 700 12px/1 Tahoma, sans-serif; box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080; }
.gm-db { padding: 12px 14px 10px; }
.gm-db p { margin: 0 0 10px; }
.gm-logo { font: 900 26px/1 Tahoma, Verdana, sans-serif; letter-spacing: .02em; color: #000080; text-shadow: 2px 2px 0 #7fd8d0; margin: 2px 0 10px; }
.gm-keys { font-size: 12px; color: #333; }
.gm-err { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; }
.gm-err i { width: 32px; height: 32px; border-radius: 50%; background: #e02020; color: #fff; display: grid; place-items: center; font: 700 22px/1 Tahoma, sans-serif; font-style: normal; box-shadow: inset -2px -2px rgba(0, 0, 0, .3); }
.gm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 4px 0 12px; padding: 8px; background: #fff; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff, inset 2px 2px #000; }
.gm-stats div { display: flex; flex-direction: column; } .gm-stats dt { font-size: 11px; color: #555; } .gm-stats dd { margin: 0; font-weight: 700; }
.gm-stats em { font-style: normal; color: #b00000; font-size: 11px; }
.gm-da { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.gm-da .w95-btn { min-width: 96px; justify-content: center; }
.gm-facts { width: min(520px, calc(100% - 20px)); z-index: 3; }
.gm-fl { margin: 0; padding: 8px 10px 8px 32px; background: #fff; margin: 4px; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; }
.gm-fl li { padding: 5px 0; border-bottom: 1px dotted #c0c0c0; }
.gm-fl li b { display: block; color: #000080; }
.gm-fl li.locked { color: #8a8a8a; } .gm-fl li.locked b { color: #8a8a8a; }
.gm-status { display: flex; justify-content: space-between; gap: 10px; flex: none; padding: 3px 6px; margin: 3px; font-size: 12px; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; white-space: nowrap; overflow: hidden; }
.gm-status span:first-child { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) {
  .gm-status span:first-child { display: none; }
  .gm-zone { font-size: 17px; }
  .gm-bar .w95-btn { height: 36px; }
}
@media (pointer: coarse) { .gm-da .w95-btn { height: 40px; } .gm-x { width: 34px; height: 28px; } }
.gm-bar .w95-btn b { margin: 0; }
/* tall phone screens: banners and fact pop-ups sit in the empty space under the game, not over the runner */
.gm-stage.tall .gm-taphint { top: calc(var(--ch) + 12px); bottom: auto; }
.gm-stage.tall .gm-zone { top: calc(var(--ch) + 78px); }
.gm-stage.tall .gm-toast { top: calc(var(--ch) + 122px); left: 10px; right: 10px; max-width: none; font-size: 13px; }

/* ---------- project mini-games ---------- */
.pp-play { border-color: #000080; background: linear-gradient(180deg, rgba(0, 128, 128, .08), transparent); }
.play-hud { position: absolute; left: 10px; top: 10px; z-index: 7; width: 268px; max-height: calc(100% - 20px); overflow: auto; background: #c0c0c0; color: #000; padding: 3px; font: 400 12.5px/1.4 Tahoma, Verdana, sans-serif; box-shadow: inset -1px -1px #000, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff, 4px 4px 0 rgba(0, 0, 0, .3); touch-action: manipulation; }
.play-hud[hidden] { display: none; }
.ph-title { display: flex; align-items: center; justify-content: space-between; height: 22px; padding: 0 3px 0 6px; background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font-weight: 700; font-size: 12px; }
.ph-x { width: 20px; height: 18px; padding: 0; border: 0; background: #c0c0c0; color: #000; font: 700 12px/1 Tahoma, sans-serif; box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080; cursor: pointer; }
.ph-body { padding: 8px; display: grid; gap: 8px; }
.ph-body p { margin: 0; }
.ph-msg b { color: #000080; }
.ph-row { display: flex; flex-wrap: wrap; gap: 4px; }
.ph-row .w95-btn { flex: 1 1 auto; justify-content: center; }
.ph-row .w95-btn[disabled] { color: #808080; text-shadow: 1px 1px #fff; cursor: default; }
.ph-note { font-size: 11.5px; color: #333; border-top: 1px solid #808080; box-shadow: 0 1px #fff inset; padding-top: 6px; }
.ph-stat b { color: #000080; }
.ph-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0; padding: 6px; background: #fff; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff, inset 2px 2px #000; text-align: center; }
.ph-stats dt { font-size: 10.5px; color: #555; } .ph-stats dd { margin: 0; font-weight: 700; font-size: 15px; }
/* vending keypad: a separate metal panel off to the side */
.play-hud.ph-keypad { left: auto; right: 12px; top: 112px; width: 214px; }
.vk { display: grid; gap: 8px; }
.vk-lcd { background: #0b1a0b; color: #6dff8a; font: 700 12px/1.35 "Courier New", monospace; padding: 8px; min-height: 44px; box-shadow: inset 2px 2px #000, inset -1px -1px #3a3a3a; text-transform: uppercase; display: grid; text-shadow: 0 0 6px rgba(109, 255, 138, .6); }
.vk-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px; background: linear-gradient(160deg, #d9dde2, #9aa1a8); box-shadow: inset 1px 1px #fff, inset -1px -1px #555; }
.vk-keys button { height: 40px; border: 0; border-radius: 4px; background: linear-gradient(180deg, #f4f4f4, #c9c9c9); box-shadow: 0 3px 0 #6b6b6b, 0 4px 3px rgba(0, 0, 0, .3); font: 700 16px/1 Tahoma, sans-serif; color: #111; cursor: pointer; }
.vk-keys button:active, .vk-keys button.down { transform: translateY(3px); box-shadow: 0 0 0 #6b6b6b, 0 1px 1px rgba(0, 0, 0, .3); }
.vk-keys .vk-clr { grid-column: span 4; height: 32px; background: linear-gradient(180deg, #ffd0c4, #e0806a); font-size: 13px; }
.vk-help { font-size: 11.5px; color: #333; }
/* truss load test */
.tl-read { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tl-read div { background: #fff; padding: 6px; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; display: grid; }
.tl-read span { font-size: 10.5px; color: #555; } .tl-read b { font-size: 18px; color: #000080; } .tl-read small { font-size: 10.5px; color: #555; }
.tl-meter { height: 12px; background: #fff; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; overflow: hidden; }
.tl-meter i { display: block; height: 100%; background: linear-gradient(90deg, #2fbf5a, #e5c32a 55%, #e0402a); transition: width .2s; }
/* temperature game */
.tg-tools .w95-btn.pressed { font-weight: 700; }
.tg-read { background: #0f2a4a; color: #dff1ff; padding: 8px 10px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 8px; box-shadow: inset 2px 2px #000; }
.tg-read b { font: 700 24px/1 "Courier New", monospace; } .tg-read b.hot { color: #ff8a65; } .tg-read b.cold { color: #8fd8ff; }
.tg-read span { font: 12px "Courier New", monospace; color: #a9c6e0; }
.tg-read em { grid-column: 1 / -1; font-style: normal; font-weight: 700; font-size: 12px; letter-spacing: .06em; color: #6dff8a; }
.tg-read em.hot, .tg-read em.cold { color: #ff5a4a; animation: blink 0.52s steps(2) infinite; }
.tg-fire { width: 100%; height: 44px; justify-content: center; font-size: 15px; user-select: none; -webkit-user-select: none; touch-action: none; }
.vp.playing .balloons { opacity: .25; }
.vp.no-orbit { cursor: none; }
@media (max-width: 760px) {
  .play-hud, .play-hud.ph-keypad { left: 6px; right: 6px; top: auto; bottom: 6px; width: auto; max-height: 58%; }
  .vp.playing .toolbar, .vp.playing .slider-pop { display: none; }
  .vk { grid-template-columns: 1fr 1.3fr; align-items: start; }
  .vk-help { grid-column: 1 / -1; }
  .vk-keys button { height: 36px; }
}
.vp.no-orbit .play-hud, .vp.no-orbit .toolbar, .vp.no-orbit .viewcube { cursor: var(--cur-arrow, default); }

/* ---------- Tour.exe ---------- */
.d-hint button.d-tourbtn { position: static; display: inline-flex; width: auto; height: 28px; margin-top: 8px; padding: 0 12px; font: 700 12.5px/1 Tahoma, Verdana, sans-serif; background: #c0c0c0; box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf; }
.tour { position: fixed; inset: 0; z-index: 1000; }
.tour[hidden] { display: none; }
.tour-block { position: absolute; inset: 0; }
.tour.no-target .tour-block { background: rgba(0, 0, 40, .45); }
.tour-ring { position: absolute; border: 2px dashed #ffe27a; box-shadow: 0 0 0 9999px rgba(0, 0, 40, .45); pointer-events: none; transition: left .3s, top .3s, width .3s, height .3s; }
.tour.moving .tour-card { opacity: .6; }
.tour-card { position: absolute; width: min(340px, calc(100vw - 16px)); background: #c0c0c0; color: #000; padding: 3px; font: 400 13px/1.45 Tahoma, Verdana, sans-serif; box-shadow: inset -1px -1px #000, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff, 5px 5px 0 rgba(0, 0, 0, .35); transition: left .3s, top .3s, opacity .15s; }
.tour.card-dock .tour-card { left: 50% !important; top: auto !important; bottom: max(14px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); }
.tour.no-target.card-dock .tour-card { top: 50% !important; bottom: auto; transform: translate(-50%, -50%); }
.tc-title { display: flex; align-items: center; justify-content: space-between; height: 22px; padding: 0 3px 0 6px; background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font-weight: 700; font-size: 12px; }
.tc-title button { width: 20px; height: 18px; padding: 0; border: 0; background: #c0c0c0; font: 700 12px/1 Tahoma, sans-serif; box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080; cursor: pointer; }
.tc-body { padding: 10px 12px 12px; background: #ffffe1; margin-top: 3px; box-shadow: inset 1px 1px #808080; }
.tc-body h3 { margin: 0 0 4px; font: 700 16px/1.2 Tahoma, Verdana, sans-serif; color: #000080; }
.tc-body p { margin: 0 0 10px; }
.tc-dots { display: flex; gap: 4px; margin-bottom: 10px; }
.tc-dots i { width: 8px; height: 8px; background: #c0c0c0; box-shadow: inset 1px 1px #808080; }
.tc-dots i.on { background: #000080; }
.tc-btns { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.tc-btns .w95-btn { min-width: 74px; justify-content: center; }
@media (pointer: coarse) { .tc-btns .w95-btn { height: 40px; } .tc-title button { width: 34px; height: 28px; } }

/* ---------- What's new sticky note ---------- */
.d-news { position: absolute; right: 16px; top: 64px; width: 230px; padding: 12px 14px 12px; background: #fff7a8; color: #222; font: 400 12.5px/1.4 Tahoma, Verdana, sans-serif; box-shadow: 2px 3px 0 rgba(0, 0, 0, .25), inset 0 -10px 18px rgba(200, 170, 40, .18); transform: rotate(1.2deg); opacity: 0; display: grid; gap: 4px; z-index: 2; }
.d-news[hidden] { display: none; }
.d-news::before { content: ""; position: absolute; left: 50%; top: -9px; width: 64px; height: 18px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 255, 255, .55); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.intro.desk-on .d-news { animation: iconIn .3s steps(3) 1.1s forwards; }
.intro.instant .d-news { opacity: 1; animation: none; }
.d-news b { font-size: 14px; color: #000080; }
.d-news .dn-tag { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #6b5a10; }
.d-news a { color: #000; text-decoration: none; font-weight: 700; display: grid; }
.d-news a:hover { text-decoration: underline; }
.d-news time { font-weight: 400; font-size: 11px; color: #555; }
.d-news .dn-more { font-size: 11px; color: #555; }
.dn-x { position: absolute; right: 4px; top: 4px; width: 20px; height: 18px; border: 0; padding: 0; background: transparent; font: 700 13px/1 Tahoma, sans-serif; color: #6b5a10; cursor: pointer; }
.d-news.dn-off { display: none; }
@media (max-width: 700px) {
  .d-news { left: 12px; right: 12px; width: auto; transform: none; padding: 10px 12px; }
  .d-news .dn-more { display: none; }
}
@media (pointer: coarse) { .dn-x { width: 34px; height: 30px; } }
.d-hint button.d-tourbtn { display: flex; }
@media (max-width: 700px) {
  .d-news { padding: 7px 10px; gap: 1px; font-size: 12px; }
  .d-news .dn-tag { display: none; }
  .d-news b { font-size: 12.5px; }
  .d-news a { display: block; }
  .d-news time { margin-right: 6px; }
}
@media (max-width: 760px) {
  .play-hud, .play-hud.ph-keypad { max-height: 48%; font-size: 12px; }
  .ph-body { padding: 6px; gap: 6px; }
  .ph-note, .vk-help { display: none; }
  .ph-row .w95-btn { height: 34px; }
  .ph-stats { padding: 3px; } .ph-stats dd { font-size: 13px; }
  .vk-keys { gap: 4px; padding: 5px; } .vk-keys button { height: 30px; font-size: 14px; } .vk-keys .vk-clr { height: 26px; }
  .vk-lcd { min-height: 0; font-size: 11px; padding: 6px; }
  .tl-read b { font-size: 15px; } .tl-read div { padding: 4px 6px; }
  .tg-read { padding: 5px 8px; } .tg-read b { font-size: 19px; }
  .tg-fire { height: 40px; }
  .ph-title { height: 26px; }
}

/* ---------- journal photo galleries ---------- */
.je-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; max-width: 640px; }
.je-gallery.one { grid-template-columns: minmax(0, 220px); }
.je-ph { padding: 0; border: 1px solid var(--rule); background: var(--rule-2); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; display: block; }
.je-ph img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; transition: transform .25s; }
.je-ph:hover img, .je-ph:focus-visible img { transform: scale(1.04); }
.lb { position: fixed; inset: 0; z-index: 2000; background: rgba(4, 10, 24, .88); display: grid; place-items: center; padding: 48px 56px; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); background: #111; }
.lb button { position: absolute; border: 0; background: #c0c0c0; color: #000; font: 700 22px/1 Tahoma, sans-serif; width: 44px; height: 44px; cursor: pointer; box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080; }
.lb-x { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb button[hidden] { display: none; }
.lb-count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #fff; font: 600 13px Tahoma, sans-serif; }
@media (max-width: 600px) { .lb { padding: 56px 8px; } .je-gallery { grid-template-columns: repeat(2, 1fr); } .je-gallery.one { grid-template-columns: 1fr; } }
.tm-note { font-size: 11.5px; opacity: .8; margin-top: 6px; }
.dh-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dh-exit { border: 0; padding: 4px 8px; background: #c0c0c0; color: #000; font: 700 11.5px/1 Tahoma, sans-serif; box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080; cursor: pointer; }
@media (pointer: coarse) { .dh-exit { padding: 9px 12px; font-size: 13px; } }
/* project panel: the way into each full project page sits right under the title */
.pp-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #000080; color: #fff; text-decoration: none; box-shadow: inset -1px -1px #000, inset 1px 1px #5b7bd5, inset -2px -2px #00004a, 3px 3px 0 rgba(0, 0, 0, .25); }
.pp-cta span { display: grid; gap: 2px; }
.pp-cta b { font: 700 14px/1.2 Tahoma, Verdana, sans-serif; }
.pp-cta small { font-size: 11.5px; color: #bcd0ff; }
.pp-cta i { font-style: normal; font-size: 20px; transition: transform .2s; }
.pp-cta:hover i, .pp-cta:focus-visible i { transform: translateX(4px); }
.pp-cta:active { box-shadow: inset 1px 1px #000, inset -1px -1px #5b7bd5; }
.pp-nav-top { margin-top: -4px; }
@media (pointer: coarse) { .pp-cta { padding: 14px; } }
.pp-nav-top button { flex: 1 1 0; min-width: 0; padding: 7px 8px; background: #c0c0c0; color: #000; font: 400 12px/1.2 Tahoma, Verdana, sans-serif; box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-nav-top button:last-child { text-align: right; }
.pp-nav-top button:hover { color: #000080; }
.pp { grid-template-columns: minmax(0, 1fr); }
.pp > * { min-width: 0; }
.pp-cta, .pp-nav-top { max-width: 100%; }
/* logo on the Start button and in the Start menu banner */
.w95-btn svg.start-logo { width: auto; height: 17px; flex: none; }
.sm-side { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; writing-mode: horizontal-tb; transform: none; padding: 10px 0 8px; }
.sm-name { writing-mode: vertical-rl; transform: rotate(180deg); }
.sm-side svg.sm-logo { width: 22px; height: auto; display: block; flex: none; }

/* ---------- boot screen: drifting clouds, the BW logo assembling, then the desktop ---------- */
.boot { position: absolute; inset: 0; z-index: 9; background: #5aa9e6; overflow: hidden; cursor: default; transition: opacity .6s; }
.boot[hidden] { display: none; }
.boot.out { opacity: 0; }
.boot-sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.boot-center { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(560px, 86vw); }
.boot-logo { width: 100%; height: auto; display: block; filter: drop-shadow(0 2px 10px rgba(255, 255, 255, .85)); overflow: visible; }
.boot:not(.go) .boot-logo path { visibility: hidden; }
.boot.go .boot-logo g path { animation: bootPix .45s steps(4) both; }
.boot.go .boot-logo > path { animation: bootFade .6s ease 1.35s both; }
@keyframes bootPix { from { opacity: 0; transform: translateX(-40px); } }
@keyframes bootFade { from { opacity: 0; } }
.boot-bar { position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); width: min(320px, 70vw); height: 18px; padding: 3px; background: #c0c0c0; box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf; }
.boot-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #000080 0 10px, transparent 10px 12px); transition: width .25s steps(3); }
.boot-skip { position: absolute; left: 0; right: 0; bottom: 6%; margin: 0; text-align: center; font: 700 12px/1 Tahoma, Verdana, sans-serif; color: rgba(11, 20, 48, .55); letter-spacing: .05em; }
@media (prefers-reduced-motion: reduce) { .boot { display: none; } }
/* the hovered or focused desktop icon rises above its neighbours so its description isn't covered */
.d-icon:hover, .d-icon:focus-visible { z-index: 30; }
.d-icon[data-tip]::after { z-index: 31; }

/* ---------- journal videos ---------- */
.je-ph.is-vid { position: relative; cursor: pointer; background: #0b1430; }
.je-ph.is-vid img, .je-ph.is-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.je-vblank { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, #0b1430 0 10px, #13204a 10px 20px); }
.je-play { position: absolute; left: 50%; top: 50%; width: 42px; height: 30px; transform: translate(-50%, -50%); background: #c0c0c0; box-shadow: inset -1px -1px #000, inset 1px 1px #fff, inset -2px -2px #808080, 2px 2px 0 rgba(0, 0, 0, .35); }
.je-play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #000080; }
.je-ph.is-vid:hover .je-play, .je-ph.is-vid:focus-visible .je-play { background: #dfdfdf; }
.lb img[hidden] { display: none; }
.lb-media:empty { display: none; }
.lb-media { width: min(100%, calc((100vh - 110px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.lb-media iframe, .lb-media video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
/* journal viewer: link out to the video's own site, and the Safari-safe Drive card */
.lb .lb-open { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); color: #fff; font: 700 13px Tahoma, sans-serif; text-decoration: underline; }
.lb .lb-open[hidden] { display: none; }
.lb-ext { position: relative; display: grid; place-items: center; width: 100%; height: 100%; background: #0b1430 repeating-linear-gradient(135deg, #0b1430 0 12px, #13204a 12px 24px); color: #fff; text-decoration: none; overflow: hidden; }
.lb-ext img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.lb-ext span { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; }
.lb-ext .je-play { position: relative; left: auto; top: auto; transform: none; width: 64px; height: 46px; }
.lb-ext b { font: 700 18px Tahoma, sans-serif; text-shadow: 0 1px 3px #000; }
.lb-ext small { font: 12px Tahoma, sans-serif; opacity: .85; }
/* the startup screen shares a class with the 3D loader, which ignores taps; this one must take them */
.intro #osBoot { pointer-events: auto; display: block; padding: 0; place-items: initial; z-index: 9; }
.intro #osBoot[hidden] { display: none; }

/* ---------- phone home: one clear welcome card, then a compact icon grid ---------- */
.d-hello { display: none; }
@media (max-width: 700px) {
  .intro-skip, .d-hint, .d-news, .d-icon[data-desk="tour"] { display: none !important; }
  .d-icons { grid-template-columns: repeat(4, minmax(0, 1fr)); top: max(12px, env(safe-area-inset-top, 0px)); bottom: 52px; left: 10px; right: 10px; gap: 14px 4px; align-content: start; overflow-y: auto; }
  .d-icon { padding: 4px 0; gap: 5px; }
  .d-icon svg { width: 46px; height: 46px; }
  .d-icon span { font-size: 12px; font-weight: 700; line-height: 1.2; }
  .d-hello { grid-column: 1 / -1; justify-self: stretch; display: grid; grid-template-columns: 56px 1fr; gap: 10px 12px; align-items: center; margin: 4px 2px 10px; padding: 14px; background: #c0c0c0; color: #000; box-shadow: inset -1px -1px #000, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff, 4px 4px 0 rgba(0, 0, 0, .25); opacity: 0; }
  .intro.desk-on .d-hello { animation: iconIn .3s steps(3) forwards; }
  .intro.instant .d-hello { opacity: 1; animation: none; }
  .dh-face { width: 56px; height: 56px; object-fit: cover; box-shadow: inset 0 0 0 1px #000; border: 2px solid #fff; outline: 1px solid #808080; }
  .dh-text h1 { margin: 0; font: 700 21px/1.15 Tahoma, Verdana, sans-serif; color: #000080; }
  .dh-text p { margin: 3px 0 0; font-size: 13px; line-height: 1.3; }
  .dh-btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .dh-btns .w95-btn { height: 44px; justify-content: center; font-size: 14px; font-weight: 700; }
  .dh-news { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; padding: 8px 10px; background: #fff7a8; color: #000; text-decoration: none; box-shadow: inset 1px 1px #808080; }
  .dh-news[hidden] { display: none; }
  .dh-news small { grid-column: 1; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #6b5a10; }
  .dh-news b { grid-column: 1; font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dh-news i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 18px; }
  .dh-more { grid-column: 1 / -1; margin: 0; font-size: 12px; color: #333; text-align: center; }
}

/* ---------- phone workspace: fewer controls, a clear project picker ---------- */
.th-phone, .pp-short { display: none; }
@media (max-width: 760px) {
  .ws .ws-apps, .ws #themeBtn, .ws #cmdBtn, .ws .ws-menu { display: none !important; }
  .ws { grid-template-rows: auto 50svh auto auto auto; }
  .th-wide, .pp-long { display: none; }
  .th-phone { display: inline; font-weight: 700; }
  .pp-short { display: block; margin: 0; }
  .ws .props .pp-sum, .ws .props .pp-keys { display: none; }
  .ws .tree-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; overflow: visible; padding: 8px; }
  .ws .tree-list .ti { min-height: 48px; padding: 8px 10px; align-items: center; }
  .ws .tree-list .ti-t { white-space: normal; line-height: 1.2; font-size: 14px; }
  .ws .tree-list .ti-n { color: #000080; font-weight: 700; }
}
