/* Tabs own their panels through data-tabs; no timer or automatic rotation. */
.tabs { min-width: 0; }
[role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
[role="tab"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--accent-dark);
  font-size: var(--fs-ui);
  font-weight: var(--weight-bold);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
[role="tab"]:hover { background: var(--bg-panel); color: var(--accent-dark); }
[role="tab"][aria-selected="true"] { background: var(--accent); color: var(--lid-deep); border-color: var(--accent); }
[role="tab"] svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; }
[role="tabpanel"] { min-width: 0; }
.toc {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 12px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--text);
  overflow-x: visible;
}
.toc a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  flex-shrink: 0;
  border-radius: var(--r-pill);
  background: var(--bg-panel2);
  color: var(--accent-dark);
  font-size: var(--fs-ui);
  text-decoration: none;
}
.toc a:hover { background: var(--bg-panel); color: var(--accent-dark); }
.faq-item { border-bottom: 1px solid var(--border); background: var(--bg); color: var(--text); }
.faq-item summary { position: relative; padding: 22px 40px 22px 0; list-style: none; font-weight: var(--weight-bold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; inset-inline-end: 8px; top: 20px; color: var(--accent-dark); font-family: var(--font-mono); font-size: var(--fs-h3); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 22px; color: var(--text-muted); }
.faq-answer > :last-child { margin-bottom: 0; }
.term-card { border-top: 4px solid var(--accent); }
.term-card dt { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--weight-display); }
.term-card dd { margin: 12px 0 0; color: var(--text-muted); }
.term-card code { color: var(--accent-dark); font-size: var(--fs-small); }
.client-card { display: flex; flex-direction: column; gap: 18px; }
.client-card.is-priority { background: var(--bg-panel); color: var(--text); border-color: var(--accent); }
.client-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.client-head img { width: 56px; height: 56px; flex-shrink: 0; }
.client-head h3 { margin: 0; }
.client-head .badge-label { margin-left: auto; }
.client-card p { margin: 0; color: var(--text-muted); }
.client-card .cta { margin-top: auto; }
.client-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--text-muted); font-size: var(--fs-small); }
[data-ver]:empty { display: none; }
.badge-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--bg-panel2);
  color: var(--text-muted);
  font-size: var(--fs-caption);
  font-weight: var(--weight-bold);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.badge-priority { background: var(--sun); color: var(--text); }
.badge-recommended { background: var(--bg-panel); color: var(--accent-dark); border: 1px solid var(--border); }
.badge-archived { background: var(--bg-panel2); color: var(--text-muted); border: 1px solid var(--border); }
.status-dot { width: 6px; height: 6px; border-radius: var(--r-circle); background: var(--success); color: var(--text); flex-shrink: 0; }
.post-card { display: flex; flex-direction: column; gap: 14px; }
.post-card h3 { margin: 0; font-size: var(--fs-h3); }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent-dark); text-decoration: underline; }
.post-card p { margin: 0; color: var(--text-muted); }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: var(--fs-small); color: var(--text-muted); }
.post-card .post-more { margin-top: auto; padding-top: 8px; font-weight: var(--weight-bold); }
.callout {
  margin: 24px 0;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--bg-panel);
  color: var(--text);
}
.callout > :last-child { margin-bottom: 0; }
.callout-warn { background: var(--sun); color: var(--text); border-inline-start-color: var(--warn); }
.callout-error { background: var(--bg-panel2); color: var(--text); border-inline-start-color: var(--error); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--border); border-radius: var(--r-md); }
.data-table { width: 100%; border-collapse: collapse; background: var(--bg); color: var(--text); text-align: start; font-size: var(--fs-ui); }
.data-table th, .data-table td, .prose table th, .prose table td {
  min-width: 7em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose table th { background: var(--bg-panel2); color: var(--text); font-weight: var(--weight-bold); }
.data-table tr:last-child td { border-bottom: 0; }
.prose table, .article-body table {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}
.article-body table th, .article-body table td { min-width: 7em; padding: 14px 18px; overflow-wrap: normal; word-break: normal; border-bottom: 1px solid var(--border); }
.data-table code, .prose table code, .article-body table code { overflow-wrap: anywhere; }
.dl-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  max-width: calc(100% - 40px);
  padding: 12px 22px;
  border: 1px solid var(--accent-dark);
  border-radius: var(--r-pill);
  background: var(--accent-dark);
  color: var(--on-dark);
  font-weight: var(--weight-bold);
  font-size: var(--fs-ui);
  text-decoration: none;
}
.dl-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; flex-shrink: 0; }
.dl-fab:hover { background: var(--lid); color: var(--on-dark); }
.article-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-panel);
  color: var(--text);
}
.article-download h2 { margin: 0 0 8px; font-size: var(--fs-h3); }
.article-download p { margin: 0; color: var(--text-muted); }

/* Approved laptop composition */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hero { background: var(--accent-dark); color: var(--on-dark); padding-top: 28px; position: relative; z-index: 2; }
.hero a:focus-visible { outline-color: var(--sun); }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; padding: 8px 9px 8px 12px; border-radius: var(--r-pill); background: var(--sun); color: var(--text); }
.notice-text { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-display); font-size: var(--fs-intro); font-weight: var(--weight-display); letter-spacing: -.005em; line-height: 1.3; }
.notice-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-circle); background: var(--text); color: var(--sun); flex-shrink: 0; }
.notice-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.notice-text .arr { color: var(--accent-dark); margin-inline: 3px; }
.notice-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 20px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--bg); color: var(--text); font-family: var(--font-display); font-size: var(--fs-lede); font-weight: var(--weight-heavy); text-decoration: none; }
.notice-link:hover { background: var(--text); color: var(--sun); }
.hero-grid { display: grid; grid-template-columns: 820px 460px; column-gap: 40px; grid-template-areas: "stage copy"; align-items: center; margin-top: 40px; }
.hero-copy { grid-area: copy; }
.hero-copy h1 { margin: 0; font-size: var(--fs-hero); line-height: 1.2; letter-spacing: -.012em; color: var(--on-dark); }
.h1-line { display: block; white-space: nowrap; }
.hero-copy h1 em { font-style: normal; color: var(--sun); }
.hero .btn-main { background: var(--accent); color: var(--on-dark); }
.hero .btn-main:hover { background: var(--accent-hover); color: var(--on-dark); }
.lede { margin: 22px 0 0; font-size: var(--fs-lede); line-height: 1.75; color: var(--on-dark-muted); }
.lede strong { color: var(--on-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; max-width: 100%; margin: 0; padding: 4px 12px; border-radius: var(--r-pill); background: var(--on-dark-fill); color: var(--on-dark); font-size: var(--fs-small); font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
.chips .dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--sun); color: var(--text); }
.plat { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--on-dark-line); }
.plat a { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-pill); color: var(--on-dark); font-size: var(--fs-small); font-weight: var(--weight-semibold); text-decoration: none; }
.badge { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--on-dark-line-strong); border-radius: var(--r-circle); color: var(--on-dark); flex-shrink: 0; }
.badge svg { width: 14px; height: 14px; fill: currentColor; }
.plat a:hover .badge { background: var(--on-dark); color: var(--accent-dark); border-color: var(--on-dark); }
.stage-wrap { grid-area: stage; --s: 1; width: calc(820px * var(--s)); height: calc(432px * var(--s)); position: relative; }
.stage { position: absolute; left: 0; top: 0; width: 820px; height: 432px; transform: scale(var(--s)); transform-origin: 0 0; }
.lid-back { position: absolute; left: 156px; top: 46px; width: 600px; height: 376px; background: var(--lid-deep); color: var(--on-dark); border-radius: var(--r-lid); }
.lid { position: absolute; left: 150px; top: 40px; width: 600px; height: 376px; border: 1px solid var(--lid-deep); border-radius: var(--r-lid); background: var(--lid); color: var(--on-dark); }
.lid::after { content: ""; position: absolute; top: 4px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border: 1px solid var(--on-dark-line); border-radius: var(--r-circle); background: var(--lid-deep); color: var(--on-dark); }
.screen { position: absolute; left: 13px; top: 13px; right: 13px; bottom: 21px; border-radius: var(--r-sm); overflow: hidden; background: var(--bg); color: var(--text); }
.win { position: absolute; inset: 12px; display: grid; grid-template-rows: 28px 1fr; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--bg); color: var(--text); }
.win-bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--border); background: var(--bg-panel2); color: var(--text); }
.dots { display: flex; gap: 5px; }
.dots i { display: block; width: 9px; height: 9px; border-radius: var(--r-circle); flex-shrink: 0; }
.d-r { background: var(--error); color: var(--text); }
.d-y { background: var(--warn); color: var(--text); }
.d-g { background: var(--success); color: var(--text); }
.win-title { text-align: center; font-size: var(--fs-micro); font-weight: var(--weight-bold); color: var(--text-muted); letter-spacing: .02em; }
.win-body { display: grid; grid-template-columns: 112px 1fr; min-height: 0; }
.win-side { display: flex; flex-direction: column; gap: 3px; padding: 10px 8px; border-right: 1px solid var(--border); background: var(--bg-panel2); color: var(--text-muted); }
.side-item { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--fs-caption); font-weight: var(--weight-medium); color: var(--text-muted); }
.side-item.on { background: var(--bg-panel); color: var(--accent-dark); font-weight: var(--weight-bold); box-shadow: inset 0 0 0 1px var(--border); }
.ico { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding: 0 6px 2px; font-size: var(--fs-tiny); color: var(--text-muted); }
.side-foot i { width: 6px; height: 6px; border-radius: var(--r-circle); background: var(--success); color: var(--text); flex-shrink: 0; }
.win-panel { display: flex; flex-direction: column; padding: 8px 16px 6px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; height: 26px; border-bottom: 1px solid var(--border); }
.panel-head b { color: var(--text); font-size: var(--fs-small); font-weight: var(--weight-heavy); }
.panel-head span { color: var(--text-muted); font-size: var(--fs-tiny); }
.row { display: flex; align-items: center; justify-content: space-between; height: 38px; border-bottom: 1px solid var(--bg-panel2); }
.row:last-child { border: 0; }
.row-l { display: flex; flex-direction: column; line-height: 1.25; }
.row-l b { font-size: var(--fs-caption); font-weight: var(--weight-semibold); color: var(--text); }
.row-l code { font-size: var(--fs-tiny); color: var(--text-muted); }
.sw { width: 30px; height: 17px; position: relative; flex-shrink: 0; border-radius: var(--r-pill); background: var(--switch-off); color: var(--text); }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: var(--r-circle); background: var(--bg); color: var(--text); }
.sw.on { background: var(--accent); color: var(--on-dark); }
.sw.on::after { transform: translateX(13px); }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel2); color: var(--text-muted); }
.seg span { padding: 2px 12px; border-radius: var(--r-pill); font-size: var(--fs-micro); font-weight: var(--weight-semibold); }
.seg .on { background: var(--accent); color: var(--on-dark); }
.port { display: inline-flex; align-items: center; gap: 2px; height: 26px; min-width: 96px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text); font-family: var(--font-mono); font-size: var(--fs-caption); font-weight: var(--weight-semibold); }
.port .caret { width: 1px; height: 13px; background: var(--accent); color: var(--text); }
.lap-base { position: absolute; left: 120px; top: 416px; width: 660px; height: 30px; overflow: visible; }
.b-deck { fill: var(--bg-panel2); stroke: var(--alu-line); stroke-width: 1; }
.b-lip { fill: var(--alu-edge); stroke: var(--alu-line); stroke-width: 1; }
.b-hinge { fill: var(--alu-edge); }
.b-notch { fill: var(--alu-line); }
.leads { position: absolute; left: 0; top: 0; width: 820px; height: 432px; overflow: visible; pointer-events: none; }
.lead { fill: none; stroke: var(--on-dark); stroke-opacity: .6; stroke-width: 1; stroke-dasharray: 3 4; }
.lead-dot { fill: var(--sun); }
.stk { position: absolute; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 28px; padding: 0 12px; border: 1px solid var(--lid-deep); border-radius: var(--r-pill); box-shadow: var(--shadow-flat); white-space: nowrap; font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: var(--weight-semibold); }
.stk i { width: 6px; height: 6px; border-radius: var(--r-circle); flex-shrink: 0; }
.stk-cyan { background: var(--accent); color: var(--on-dark); }
.stk-cyan i, .stk-coral i { background: var(--on-dark); color: var(--text); }
.stk-sun { background: var(--sun); color: var(--text); }
.stk-sun i { background: var(--accent-dark); color: var(--on-dark); }
.stk-coral { background: var(--coral); color: var(--lid-deep); }
.s1 { left: -18px; top: 8px; width: 244px; transform: rotate(-1.5deg); }
.s2 { left: -18px; top: 170px; width: 150px; transform: rotate(1.5deg); }
.s3 { left: -18px; top: 300px; width: 124px; transform: rotate(-1.5deg); }
.stk-file { left: 760px; top: 60px; width: 72px; height: 76px; padding: 0; flex-direction: column; gap: 5px; border-radius: var(--r-file); background: var(--bg); color: var(--text); font-size: var(--fs-tiny); transform: rotate(3deg); }
.stk-file svg { width: 26px; height: 32px; overflow: visible; }
.file-body { fill: var(--bg-panel); stroke: var(--accent-dark); stroke-width: 1.5; }
.file-fold { fill: var(--border); stroke: var(--accent-dark); stroke-width: 1.5; stroke-linejoin: round; }
.file-line { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.file-line.k { stroke: var(--accent-dark); }
.file-line.v { stroke: var(--accent); }
.stk-round { width: 52px; height: 52px; padding: 0; border-radius: var(--r-circle); background: var(--bg); color: var(--accent-dark); }
.stk-round svg { width: 26px; height: 26px; }
.s5 { left: 768px; top: 196px; }
.s6 { left: 772px; top: 316px; transform: rotate(-8deg); }
.f-accent { fill: var(--accent); }
.f-dark { fill: var(--accent-dark); }
.s-check { fill: none; stroke: var(--bg); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ground { position: relative; z-index: 1; padding-top: 38px; padding-bottom: 30px; background: var(--bg-panel); color: var(--text-muted); }
.facts-strip { display: flex; align-items: center; gap: 16px; font-family: var(--font-mono); font-size: var(--fs-small); white-space: nowrap; }
.facts-strip::before, .facts-strip::after { content: ""; flex: 1; height: 1px; background: var(--border); color: var(--text); }
.facts-strip b { color: var(--accent-dark); }
.facts-strip .sep { color: var(--accent-dark); }
.dl { padding-top: 52px; padding-bottom: 80px; background: var(--bg); color: var(--text); }
.dl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.dl-head h2 { margin: 12px 0 0; font-size: var(--fs-h2); }
.dl-head p { margin: 8px 0 0; color: var(--text-muted); font-size: var(--fs-lede); }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.dl-grid li { min-width: 0; margin: 0; }
.dl-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); color: var(--text); text-decoration: none; }
.dl-card:hover { background: var(--bg-panel2); color: var(--text); }
.dl-card .badge { width: 44px; height: 44px; border-color: var(--border); background: var(--bg-panel); color: var(--accent-dark); }
.dl-card .badge svg { width: 19px; height: 19px; }
.dl-card strong { margin-top: 6px; font-family: var(--font-display); font-size: var(--fs-intro); font-weight: var(--weight-display); }
.dl-card .clients { font-size: var(--fs-small); }
.dl-card .meta { font-size: var(--fs-caption); color: var(--text-muted); }
.dl-card .go { margin-top: auto; padding-top: 6px; font-size: var(--fs-small); font-weight: var(--weight-bold); color: var(--accent-dark); }

/* Feature browser: 45 / 55, six real tab nodes and matching edges. */
.feature-browser { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: 40px; align-items: center; }
.feature-copy { grid-column: 1; grid-row: 1; }
.feature-copy .panel { margin-top: 24px; }
.feature-copy [role="tabpanel"] p { color: var(--text-muted); }
.feature-map { grid-column: 2; grid-row: 1; position: relative; min-height: 410px; }
.feature-map [role="tablist"] { position: absolute; inset: 0; margin: 0; display: block; }
.feature-map [role="tab"] { position: absolute; width: 154px; padding-inline: 12px; }
.feature-node-1 { left: 0; top: 32px; }
.feature-node-2 { right: 0; top: 32px; }
.feature-node-3 { left: 0; top: 180px; }
.feature-node-4 { right: 0; top: 180px; }
.feature-node-5 { left: 0; bottom: 32px; }
.feature-node-6 { right: 0; bottom: 32px; }
.feature-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature-edge { fill: none; stroke: var(--border); stroke-width: 2; stroke-dasharray: 5 7; }
.feature-core { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; transform: translate(-50%, -50%); }
.feature-browser:has(.feature-node-1[aria-selected="true"]) .edge-1,
.feature-browser:has(.feature-node-2[aria-selected="true"]) .edge-2,
.feature-browser:has(.feature-node-3[aria-selected="true"]) .edge-3,
.feature-browser:has(.feature-node-4[aria-selected="true"]) .edge-4,
.feature-browser:has(.feature-node-5[aria-selected="true"]) .edge-5,
.feature-browser:has(.feature-node-6[aria-selected="true"]) .edge-6 { stroke: var(--accent); stroke-dasharray: none; }

/* Preview furniture; each swatch references a root token. */
.preview-heading { margin-bottom: 32px; }
.swatch-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.swatch { margin: 0; min-width: 0; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--bg); color: var(--text); }
.swatch-sample { height: 64px; border-bottom: 1px solid var(--border); }
.swatch figcaption { padding: 12px; font-family: var(--font-mono); font-size: var(--fs-caption); overflow-wrap: anywhere; }
.sw-bg { background: var(--bg); color: var(--text); }
.sw-panel { background: var(--bg-panel); color: var(--text); }
.sw-panel2 { background: var(--bg-panel2); color: var(--text); }
.sw-border { background: var(--border); color: var(--text); }
.sw-accent { background: var(--accent); color: var(--lid-deep); }
.sw-hover { background: var(--accent-hover); color: var(--lid-deep); }
.sw-dark { background: var(--accent-dark); color: var(--on-dark); }
.sw-text { background: var(--text); color: var(--on-dark); }
.sw-muted { background: var(--text-muted); color: var(--on-dark); }
.sw-success { background: var(--success); color: var(--lid-deep); }
.sw-warn { background: var(--warn); color: var(--lid-deep); }
.sw-error { background: var(--error); color: var(--lid-deep); }
.sw-sun { background: var(--sun); color: var(--text); }
.sw-coral { background: var(--coral); color: var(--lid-deep); }
.sw-lid { background: var(--lid); color: var(--on-dark); }
.sw-deep { background: var(--lid-deep); color: var(--on-dark); }
.sw-edge { background: var(--alu-edge); color: var(--text); }
.sw-line { background: var(--alu-line); color: var(--text); }
.sw-off { background: var(--switch-off); color: var(--text); }
.sw-on { background: var(--on-dark); color: var(--text); }
.sw-on-muted { background: var(--on-dark-muted); color: var(--text); }
.sw-dark-host { background: var(--accent-dark); color: var(--on-dark); }
.sw-on-line { background: var(--on-dark-line); color: var(--on-dark); }
.sw-on-strong { background: var(--on-dark-line-strong); color: var(--text); }
.sw-on-fill { background: var(--on-dark-fill); color: var(--on-dark); }
.sw-on-hover { background: var(--on-dark-fill-hover); color: var(--on-dark); }
.sw-clear { background: var(--clear); color: var(--text); }
.sw-veil { background: var(--veil); color: var(--on-dark); }
.button-demo { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dark-demo { padding: 24px; border-radius: var(--r-lg); background: var(--accent-dark); color: var(--on-dark); }
.type-demo h1 { margin-top: 24px; }
.preview-note { margin-top: 16px; font-size: var(--fs-small); color: var(--text-muted); }

@media (max-width: 1380px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 420px; column-gap: 28px; }
  .stage-wrap { --s: .8; }
}
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage"; row-gap: 40px; }
  .hero-copy { max-width: 600px; }
  .stage-wrap { --s: .84; justify-self: center; }
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-browser { grid-template-columns: minmax(0, 1fr); }
  .feature-copy { grid-row: 1; }
  .feature-map { grid-column: 1; grid-row: 2; width: min(100%, 620px); justify-self: center; }
}
@media (max-width: 760px) {
  .notice { flex-wrap: wrap; border-radius: var(--r-notice-mobile); padding: 12px 14px; }
  .notice-text { font-size: var(--fs-lede); }
  .hero-copy h1 { font-size: var(--fs-h1-mobile); }
  .h1-line { white-space: normal; }
  .plat { flex-wrap: wrap; justify-content: flex-start; gap: 12px 16px; }
  .stage-wrap { --s: .38; }
  .facts-strip { flex-wrap: wrap; justify-content: center; gap: 8px; font-size: var(--fs-micro); white-space: normal; }
  .facts-strip::before, .facts-strip::after { display: none; }
  .dl-head { flex-direction: column; align-items: flex-start; }
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .s1, .s2, .s3, .stk-file, .s6 { transform: none; }
  .feature-map { min-height: 330px; }
  .feature-map [role="tab"] { width: 124px; padding-inline: 8px; font-size: var(--fs-caption); }
  .feature-core { width: 62px; height: 62px; }
  .feature-node-3, .feature-node-4 { top: 142px; }
  .article-download { padding: 20px; }
  .dl-card { padding: 16px; }
}
@media (max-width: 370px) {
  .stage-wrap { --s: .32; }
  .feature-map [role="tab"] { width: 114px; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}