@font-face {
  font-family: "Bricolage Grotesque";
  src: url("./fonts/bricolage.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("./fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/plex-mono.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #111118;
  --surface: #1b1a23;
  --raised: #292633;
  --raised-hover: #383246;
  --ink: #f8f0e3;
  --muted: #c8bdca;
  --window: #30283d;
  --accent: #c9b7fc;
  --line: #494155;
  --shadow: #0b0a12;
  --lcd: #dce7eb;
  --amber: #f3ba88;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse 67rem 30rem at 77% 4%, #201a2b, transparent), var(--paper); color: var(--ink); font: 1rem/1.58 var(--body); }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.skip { position: fixed; z-index: 9; left: 12px; top: 12px; padding: 12px; background: var(--raised); transform: translateY(-150%); }
.skip:focus { transform: none; }
.wrap { width: min(100% - 64px, 1240px); margin-inline: auto; }
.site-header { background: #15141d; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 76px; }
.wordmark { display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; font: 800 1.4rem var(--display); letter-spacing: -.045em; }
.wordmark > span:not(.brand-icon) { color: var(--accent); }
.wordmark > b { color: var(--amber); }
.brand-icon { width: 22px; height: 26px; margin-right: 9px; position: relative; border: 2px solid #312747; border-radius: 3px; background: var(--accent); box-shadow: 0 0 0 1px #7865a3; }
.brand-icon::before, .brand-icon::after { position: absolute; content: ""; left: 3px; }
.brand-icon::before { right: 3px; top: 3px; height: 6px; background: #312747; }
.brand-icon::after { top: 13px; width: 3px; height: 3px; color: #312747; background: currentColor; box-shadow: 5px 0, 10px 0, 0 5px, 5px 5px, 10px 5px; }
nav { display: flex; align-items: center; gap: clamp(14px, 3.2vw, 44px); }
nav a { padding-block: 10px; font-weight: 650; white-space: nowrap; text-decoration-thickness: 1px; text-underline-offset: 6px; }
nav a:not(:hover):not([aria-current]) { text-decoration: none; }
nav a[aria-current] { color: var(--accent); text-decoration-color: var(--amber); }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: .55rem 1rem; border: 1px solid #61566f; border-radius: 5px; background: var(--raised); color: var(--ink); box-shadow: inset 0 1px #ffffff25, 0 3px var(--shadow); font: 600 .87rem/1.25 var(--mono); text-decoration: none; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { background: var(--raised-hover); }
.button.primary { background: var(--amber); border-color: #ffdbb6; color: #2c1a16; box-shadow: inset 0 1px #ffffff55, 0 3px var(--shadow); }
.button.primary:hover { background: #ffcea4; }
.button:active { transform: translateY(2px); box-shadow: inset 0 1px #ffffff35, 0 1px var(--shadow); }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 76px); padding-block: clamp(38px, 6vw, 85px) clamp(32px, 6vw, 84px); }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent); font: 600 .8rem/1.4 var(--mono); letter-spacing: .105em; }
.eyebrow span { display: block; width: 9px; height: 9px; border: 1px solid var(--amber); background: #9b5e4340; transform: rotate(45deg); }
h1, h2, h3 { margin: 0; line-height: 1.04; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.045em; }
.hero h1 { margin-top: 20px; font-size: clamp(3.2rem, 6.4vw, 6.2rem); line-height: .97; }
h1 em { color: var(--accent); font-style: normal; }
.intro, .page-intro > p:last-child { max-width: 34rem; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.17rem); }
.intro { margin: 24px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 35px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); }
.specs dt { color: var(--muted); font-size: .76rem; }
.specs dd { margin: 2px 0 0; font-size: .87rem; font-weight: 750; }
.window { border: 1px solid var(--line); border-radius: 6px; box-shadow: 3px 4px var(--shadow); background: var(--surface); min-width: 0; }
.title-bar { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 14px; color: var(--ink); background: var(--window); border-radius: 5px 5px 0 0; font: 600 .8rem/1.3 var(--mono); letter-spacing: .055em; }
.art-window { margin: 0; overflow: hidden; border-radius: 10px; }
.art-scene { position: relative; display: grid; place-items: center; isolation: isolate; aspect-ratio: 1; overflow: hidden; background: radial-gradient(ellipse at 37% 37%, #e5d6fa, #a793d2 51%, #594672 100%); }
.art-grid { position: absolute; inset: 0; z-index: -1; opacity: .39; background-image: linear-gradient(#3f275b55 1px, transparent 1px), linear-gradient(90deg, #3f275b55 1px, transparent 1px); background-size: 26px 26px; }
.art-scene::after { width: 78%; aspect-ratio: 1; position: absolute; border: 1px solid #fff7; border-radius: 50%; box-shadow: 0 0 0 25px #ffffff19, 0 0 0 50px #ffffff15; content: ""; pointer-events: none; z-index: -1; }
.art-window figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; min-height: 62px; padding: 9px 12px; color: var(--muted); font: .75rem/1.4 var(--mono); }
.viewer-fallback { position: absolute; height: 88%; width: auto; max-width: 78%; filter: drop-shadow(12px 14px 24px #21162f6b); }
.viewer-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.viewer-canvas:active { cursor: grabbing; }
.viewer-canvas:focus-visible { outline-offset: -4px; }
.viewer-hint { display: block; margin-top: 2px; color: var(--accent); }
.viewer-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.viewer-controls .button { min-height: 36px; padding: .33rem .54rem; font-size: .76rem; }
.viewer-controls .button:is([data-viewer-turn], [data-viewer-zoom]) { min-width: 39px; font-size: 1rem; }
.viewer-controls .button:disabled { opacity: .55; cursor: default; }
.model-section { border-top: 1px solid var(--line); padding-block: 30px 60px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.section-heading h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.text-link { color: var(--accent); font: 600 .85rem var(--mono); text-underline-offset: 4px; }
.model-grid, .support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.model-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.model-card.core { --model-accent: #d3bfff; --art-light: #dfd1f5; --art-dark: #927eaf; --art-grid-line: #52376c57; }
.model-card.vision { --model-accent: #ffd0a5; --art-light: #f0c9a8; --art-dark: #ac7057; --art-grid-line: #7a393857; }
.model-illustration { position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; min-height: clamp(192px, 19vw, 252px); color: #1c1224; background: radial-gradient(ellipse at 46% 38%, var(--art-light), var(--art-dark)); }
.model-illustration::before, .model-illustration::after { position: absolute; z-index: -1; content: ""; }
.model-illustration::before { inset: 0; background-image: linear-gradient(var(--art-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--art-grid-line) 1px, transparent 1px); background-size: 23px 23px; opacity: .4; }
.model-illustration::after { width: 52%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 1px solid #fff8; border-radius: 50%; box-shadow: 0 0 0 20px #ffffff20, 0 0 0 41px #ffffff1a; }
.model-feature, .model-art-label { position: absolute; z-index: 2; color: #211726; font: 600 .75rem/1.25 var(--mono); }
.model-feature { top: 12px; left: 12px; padding: 5px 8px; border: 1px solid #291c3554; border-radius: 3px; background: #fff9; }
.model-art-label { right: 10px; top: 12px; padding: 5px 4px; background: #fff8; }
.model-illustration .viewer-controls { position: absolute; z-index: 2; right: 10px; bottom: 10px; left: 10px; }
.model-illustration .viewer-controls .button { min-width: 29px; min-height: 29px; padding: .25rem .38rem; font-size: .68rem; }
.model-card .pane { display: flex; flex: 1; flex-direction: column; gap: 10px; }
.model-card .model-name { font-size: clamp(1.6rem, 4vw, 2.55rem); letter-spacing: -.04em; }
.model-name span { color: var(--model-accent); }
.model-card p, .pane p { color: var(--muted); max-width: 52ch; }
.model-card p { margin: 0; }
.model-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.model-card .model-state { font: 600 .78rem/1.4 var(--mono); }
.inner-page { min-height: 62vh; padding-block: 46px 70px; }
.page-intro { margin-bottom: 29px; }
.page-intro h1 { font-size: clamp(2.7rem, 6.2vw, 5.75rem); margin-block: 15px; line-height: .94; }
.page-intro p { margin-bottom: 0; }
.content-window { margin-top: 25px; }
.pane, .guide-body { padding: clamp(16px, 3vw, 29px); }
.pane h2, .guide h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
td, th { padding: 11px clamp(6px, 2.5vw, 24px); text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
thead { background: var(--raised); }
tbody tr:last-child > * { border-bottom: none; }
details + details { border-top: 1px solid var(--line); }
summary { padding-block: 13px; cursor: pointer; font-weight: 700; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { min-height: 86px; }

.bench { display: grid; grid-template-columns: minmax(280px, 1.2fr) minmax(250px, 1fr); gap: 23px; align-items: start; }
.bench-device { display: grid; place-items: center; padding: 22px max(12px, 3vw) 29px; background: radial-gradient(ellipse at center, #3d3451, #201c2b 74%); }
.bench-device:focus-visible { outline-offset: -5px; }
.guide ol { padding-left: 1.35rem; }
.guide li { padding-left: .25rem; margin-block: 12px; }
kbd, code { font-family: var(--mono); }
kbd { padding: 1px 4px; border: 1px solid var(--line); border-radius: 2px; background: var(--raised); font-size: .89em; font-weight: 700; white-space: nowrap; }
#guide-status { padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--raised); font: 600 .88rem/1.55 var(--mono); }
.calculator-shell {
  --body: "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
  container-type: inline-size;
  width: 100%;
  max-width: 322px;
  border: 2px solid #111417;
  border-radius: 15% 15% 21% 21% / 3% 3% 10% 10%;
  background: linear-gradient(90deg, #898c91, #ecedef 3.5%, #bfc2c5 7%, #15181b 8%, #101316 92%, #a4a8ad 94%, #e3e6e9 97%, #757a80);
  box-shadow: inset 0 2px #ffffff9c, inset 0 -4px #090c0e, 4px 7px 12px #080b0bac;
}
.faceplate {
  margin: 0 5.4% 2.6%;
  padding: 4.5% 4.2% 10%;
  border: 1px solid #34393d;
  border-radius: 12% 12% 17% 17% / 2.5% 2.5% 8% 8%;
  background: linear-gradient(161deg, #373b40 0%, #1b1e22 22%, #22272c 48%, #0c0e10 100%);
  box-shadow: inset 1px 1px #ffffff16, inset -2px -2px #0008;
}
.bezel { padding: 0 3% 3%; color: #f1f3f6; }
.device-brand { margin-bottom: 2.5%; text-align: center; white-space: nowrap; font: 630 clamp(.59rem, 4.25cqw, .93rem)/1.35 var(--body); }
.device-brand em { font-weight: 450; }
.lcd { color-scheme: light; position: relative; display: flex; flex-direction: column; aspect-ratio: 4 / 3; padding: .38rem .48rem; border: 3px solid #08090a; border-radius: 2px; color: #152634; background: var(--lcd); box-shadow: 0 0 0 1px #424950, inset 1px 2px 8px #3b536655; overflow: auto; font: 700 clamp(.78rem, 2.5vw, .94rem)/1.2 var(--mono); }
.lcd :focus-visible { outline-color: #14507a; outline-offset: 1px; }
button.calc-key:focus-visible { outline-offset: 1px; }
.lcd-title { display: flex; justify-content: space-between; border-bottom: 1px solid #879eaa; padding-block-end: 3px; margin-bottom: 5px; font-size: .85em; }
.lcd-body { display: grid; gap: .24em; }
.lcd-body p { margin: 2px 0; overflow-wrap: anywhere; }
.lcd-option { min-height: 21px; border: 0; padding: 1px 3px; text-align: left; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.lcd-option:hover, .lcd-option[aria-current] { background: #28495d; color: #f3f8fb; }
.lcd canvas { flex: 1; width: 100%; min-height: 0; }
.os-display { padding: 0; color: #101214; background: #fcfcfa; box-shadow: 0 0 0 1px #424950; }
.os-display .lcd-title { flex: 0 0 auto; margin: 0; padding: .23em .33em; background: #4c5358; color: #fff; border: 0; font-size: .66em; white-space: pre; }
.os-display .lcd-body { display: grid; align-content: start; justify-items: start; gap: 0; padding: .38em .3em; }
.os-heading { width: max-content; margin-bottom: .12em; padding: 0 .2em; background: #171a20; color: #fff; }
.os-display .lcd-option { min-height: 1.3em; padding: 0; }
.os-display .lcd-option:is(:hover, [aria-current]) { background: transparent; color: inherit; }
.os-display .lcd-option:is(:hover, [aria-current]) .menu-number,
.os-window-selected { background: #22272e; color: #fff; }
.os-display .os-entry { display: block; white-space: pre; }
.os-caret { display: inline-block; width: .55em; height: .85em; background: #151719; vertical-align: -.04em; }
.os-tabs { margin-bottom: .2em; white-space: pre; }
.os-window-row { padding: 0 .15em; }
.os-question { width: 100%; }
.os-prompt { display: flex; align-items: baseline; }
.os-prompt input { width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; }
.os-prompt input:focus-visible { outline: 0; box-shadow: inset 0 -1px #7a8389; }
.os-preformatted { white-space: pre; }
.has-answer-ui { padding: 0; overflow: hidden; }
.answer-display {
  position: absolute;
  inset: 0;
  container-type: inline-size;
  background: #100419;
  color: #000;
}
.answer-card {
  position: absolute;
  left: 3.75%;
  width: 92.5%;
  font: 750 3cqw/1 var(--mono);
  letter-spacing: .68cqw;
}
.answer-card::after {
  position: absolute;
  inset-inline: 2.36%;
  height: 1px;
  background: var(--card-rule);
  content: "";
}
.answer-question {
  top: 3.33%;
  height: 18.75%;
  background: #d6cef7;
  box-shadow: inset 1.25cqw 0 #6b69ff;
  --card-rule: #a5a6ef;
}
.answer-question::after { top: 46.67%; }
.answer-reply {
  top: 25%;
  height: 72.92%;
  background: #fff;
  box-shadow: inset 1.25cqw 0 #00aea5;
  --card-rule: #d6d3d6;
}
.answer-reply::after { top: 12.57%; }
.answer-label, .answer-summary, .answer-lines, .answer-footer { position: absolute; left: 2.36%; white-space: pre; }
.answer-question .answer-label { top: 20%; }
.answer-summary { top: 57.78%; }
.answer-reply .answer-label { top: 5.14%; color: #008795; }
.answer-lines { top: 14.9%; line-height: 5.94cqw; }
.answer-footer { top: 92.57%; color: #008795; }
.has-wifi-ui { padding: 0; overflow: hidden; }
.wifi-display {
  position: absolute;
  container-type: inline-size;
  overflow: hidden;
  background: #100419;
  color: #fff;
}
.wifi-label, .wifi-rule, .wifi-card, .wifi-choice, .wifi-password { position: absolute; }
.wifi-label, .wifi-choice, .wifi-password, .wifi-password input { font: 750 2.9cqw/1.1 var(--mono); }
.wifi-label { white-space: nowrap; }
.wifi-heading { font-weight: 900; }
.wifi-rule { background: #00aea5; }
.wifi-card { background: #fff; }
.wifi-field { color: #111; }
.wifi-value { color: #008795; }
.wifi-error { color: #ad0500; }
.wifi-choice {
  display: flex;
  align-items: center;
  padding: 0 3.75cqw;
  color: #0c1120;
  background: #d6cfff;
  border: 0;
  border-radius: 0;
  text-align: left;
  white-space: nowrap;
}
button.wifi-choice { cursor: pointer; }
.wifi-choice:is([aria-current], .wifi-selected) { background: #00aea5; color: #fff; text-shadow: 0 1px #064744; }
button.wifi-choice:hover { box-shadow: inset 0 0 0 1px #243849; }
.wifi-choice:focus-visible { outline: 2px solid #ffdf7c; outline-offset: -2px; }
.wifi-password label { display: flex; align-items: center; gap: .4em; }
.wifi-password input { flex: 1; min-width: 0; padding: .14em .3em; border: 1px solid #b7b4c4; border-radius: 0; background: #fff; color: #0c1120; }
.key-bank { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 4.3%; row-gap: 1.45cqw; }
.key-slot { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.key-legend {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1px;
  min-height: 4cqw;
  padding: 0 1px .3cqw;
  color: #85c6f1;
  white-space: nowrap;
  font: 850 2.29cqw/1.1 var(--body);
}
.key-alpha-legend { color: #badd91; }
.calc-key {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 8.8cqw;
  padding: 0;
  border: 1px solid #050708;
  border-radius: 27% 27% 47% 47% / 25% 25% 48% 48%;
  color: #fff;
  background: linear-gradient(#535861, #30343a 67%, #22262b);
  box-shadow: inset 0 1px 1px #ffffff80, 0 1px 0 1px #0009;
  font: 800 clamp(.54rem, 3.4cqw, .74rem)/1 var(--body);
}
button.calc-key { cursor: pointer; }
button.calc-key[aria-disabled="true"] { cursor: default; }
button.calc-key:not([aria-disabled="true"]):hover { filter: brightness(1.18); }
button.calc-key:not([aria-disabled="true"]):active { transform: translateY(1px); }
.graph-keys .calc-key, .calc-key.operator, .calc-key.arrow { background: linear-gradient(#e1e3e6, #a5a9ad); color: #22272d; }
.graph-keys .calc-key { height: 5.8cqw; border-radius: 25% 25% 49% 49% / 38% 38% 57% 57%; font-size: clamp(.43rem, 2.48cqw, .62rem); }
.graph-keys button.calc-key::before { position: absolute; inset: -5px 0; content: ""; }
.faceplate-seam { height: 5.4cqw; margin: 0 -4.9% .3cqw; border-bottom: 2px solid #a0a4ab; border-radius: 0 0 48% 14% / 0 0 48% 36%; box-shadow: 0 2px #0a0c0d; }
.editing-deck { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 4.3%; align-items: center; margin-top: 1.9cqw; }
.edit-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 7.5%; }
.calc-key.secondary { color: #0d263b; background: linear-gradient(#83c7f2, #2b92c6); }
.calc-key.secondary[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #d6f1ff, 0 1px 0 1px #0009; }
.calc-key.alpha { color: #172c17; background: linear-gradient(#b2d898, #70a653); }
.direction-pad {
  position: relative;
  display: grid;
  grid-template: repeat(4, 1fr) / repeat(4, 1fr);
  align-self: stretch;
  min-height: 26cqw;
  isolation: isolate;
}
.direction-pad::before {
  position: absolute;
  inset: 13% 6%;
  z-index: -1;
  background: linear-gradient(#d6d9dd, #8c9299);
  border: 1px solid #353940;
  border-radius: 50%;
  content: "";
}
.direction-pad .key-slot { grid-template-rows: 1fr; }
.direction-pad .key-legend { display: none; }
.direction-pad .arrow { height: 100%; border-color: #535961; font-size: clamp(.58rem, 4.2cqw, .86rem); }
.direction-up { grid-area: 1 / 2 / 3 / 4; z-index: 1; padding-bottom: 9%; }
.direction-down { grid-area: 3 / 2 / 5 / 4; z-index: 1; padding-top: 9%; }
.direction-left { grid-area: 2 / 1 / 4 / 3; padding-right: 18%; }
.direction-right { grid-area: 2 / 3 / 4 / 5; padding-left: 18%; }
.direction-up .arrow { border-radius: 51% 51% 34% 34%; }
.direction-down .arrow { border-radius: 34% 34% 51% 51%; }
.direction-left .arrow { border-radius: 54% 20% 20% 54%; }
.direction-right .arrow { border-radius: 20% 54% 54% 20%; }
.science-keys { margin-top: .8cqw; }
.calc-key.number { height: 9.8cqw; color: #1b2026; background: linear-gradient(#f6f6f4, #c8cbd0); font-size: clamp(.71rem, 5.5cqw, 1.12rem); }
.calc-key.operator { font-size: clamp(.65rem, 4.8cqw, 1rem); }
.enter-slot { margin-top: -1.5cqw; }
.enter-slot .calc-key { height: 13cqw; font-size: clamp(.48rem, 3cqw, .7rem); }

#calculator .is-modeled {
  position: relative;
  isolation: isolate;
  max-width: 380px;
  aspect-ratio: 509 / 1110;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.workbench-model {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(5px 8px 10px #080b0b99);
}
#calculator .is-modeled :is(.faceplate, .bezel, .key-bank, .editing-deck, .direction-pad, .key-slot) {
  display: contents;
}
#calculator .is-modeled :is(.device-brand, .faceplate-seam, .key-legend),
#calculator .is-modeled :is(.direction-pad, .calc-key)::before {
  display: none;
}
#calculator .is-modeled .lcd {
  position: absolute;
  z-index: 1;
  left: var(--model-left);
  top: var(--model-top);
  width: var(--model-width);
  height: var(--model-height);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#calculator .is-modeled .calc-key {
  position: absolute;
  z-index: 1;
  left: var(--model-left);
  top: calc(var(--model-top) + var(--model-height) / 2);
  width: var(--model-width);
  height: max(24px, var(--model-height));
  transform: translateY(-50%);
  border: 0;
  color: transparent;
  background: transparent;
  box-shadow: none;
}
#calculator .is-modeled .calc-key:not([aria-disabled="true"]):hover { background: #ffffff1c; }
#calculator .is-modeled .calc-key[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #d6f1ff; }
#calculator .is-modeled .calc-key:focus-visible { outline-offset: 0; }

@media (max-width: 800px) {
  .wrap { width: min(100% - 36px, 1240px); }
}
@media (max-width: 640px) {
  .header-inner, .footer-inner { flex-wrap: wrap; gap: 3px 14px; padding-block: 10px; }
  nav { gap: 15px; font-size: .9rem; }
  .hero, .bench, .model-grid, .support-grid { grid-template-columns: 1fr; }
  .model-illustration { min-height: 232px; }
  .hero { padding-top: 24px; }
  .hero h1 { font-size: clamp(2.95rem, 12vw, 4.5rem); }
  .section-heading { align-items: start; flex-direction: column; }
  td, th { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .button { transition: none; }
}

.dashboard-callout { margin-block: 2rem 0; }
.dashboard-callout .pane { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.dashboard-callout h2 { margin: 0 0 .35rem; }
.dashboard-callout p { max-width: 43rem; margin: 0; color: var(--muted); }
.dashboard-preview { margin: 0; overflow: hidden; }
.dashboard-preview a { display: block; background: #141820; }
.dashboard-preview img { display: block; max-width: 100%; height: auto; }
.dashboard-preview a:focus-visible { outline-offset: -4px; }
.dashboard-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.dashboard-features div { padding: 1rem; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.dashboard-features dt { font: 600 .9rem var(--mono); color: var(--accent); }
.dashboard-features dd { margin: .5rem 0 0; color: var(--muted); }
