/* 首页首屏：文字配置示意，不是应用界面。 */
.hero-deck {
  position: relative;
  z-index: 2;
  padding-top: 16px;
}
.deck-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-rows: repeat(2, 185px);
  gap: 14px;
}
.tile {
  position: relative;
  min-width: 0;
  border: 1px solid var(--stroke-06);
  border-radius: var(--r-cell);
  box-shadow: inset 0 1px 0 var(--inner-hi);
  transition: transform var(--time-medium) var(--ease), border-color var(--time-medium) var(--ease);
}
.tile:hover {
  transform: translateY(-3px);
  border-color: var(--stroke-10);
}
.tile--lead {
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-row: 1 / span 2;
  padding: 34px 40px;
  background: var(--bg-panel);
  color: var(--text);
}
.stamp {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 14px 4px 11px;
  border: 1px solid var(--stroke-10);
  border-radius: var(--r-pill);
  background: var(--bg-panel-2);
  color: var(--text-muted);
  font-size: var(--size-small);
}
.stamp-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: var(--r-round);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--ink-on-accent);
  box-shadow: 0 0 0 4px var(--accent-a16);
}
.lead-title {
  margin: 16px 0 12px;
  font-size: var(--size-h1);
  font-weight: var(--weight-regular);
  line-height: 1.1;
  letter-spacing: var(--tracking-title);
}
.lead-title > span {
  display: block;
}
.lead-title .grad-line {
  padding-bottom: 2px;
}
.lead-copy {
  max-width: 47em;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.lead-copy strong {
  color: var(--text);
}
.device-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--size-small);
  color: var(--text-muted);
}
.device-row .row-label {
  color: var(--text-muted);
  font-size: var(--size-caption);
}
.device-row .dev {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
}
.device-row a.dev:hover {
  color: var(--text);
}
.device-row svg {
  width: 17px;
  height: 17px;
}
.device-row .row-rule {
  width: 1px;
  height: 14px;
  background: var(--stroke-10);
  color: var(--text);
}
.store-chip,
.badge,
.fact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 10px;
  border: 1px solid var(--stroke-10);
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text-soft);
  font-size: var(--size-caption);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.store-chip svg {
  width: 12px;
  height: 12px;
}
.badge--accent {
  border-color: var(--accent-a35);
  background: var(--accent-a08);
  color: var(--accent);
}
.badge--success {
  background: var(--bg-panel-2);
  color: var(--success);
}
.badge--warn {
  background: var(--bg-panel-2);
  color: var(--warn);
}
.badge--error {
  background: var(--bg-panel-2);
  color: var(--error);
}
.facts-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}
.fact-pill {
  min-height: 30px;
  background: var(--bg-panel-2);
  color: var(--text-soft);
}
.fact-pill strong {
  color: var(--text);
}
.tile--routing {
  padding: 22px 26px;
  background: var(--bg-panel-2);
  color: var(--text);
}
.tile--ondemand {
  padding: 22px 26px;
  border-color: var(--stroke-10);
  background: var(--veil-1);
  color: var(--text);
}
.tile-kicker {
  margin: 0;
  font: 11px/1.6 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.tile-title {
  margin: 4px 0 0;
  font-size: 18px;
  color: var(--text);
}
.mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font: 13px/22px var(--font-mono);
  color: var(--text-muted);
}
.mode-row li {
  padding-left: 11px;
  box-shadow: inset 1px 0 0 var(--stroke-16);
}
.mode-row .is-on {
  box-shadow: inset 2px 0 0 var(--accent);
  color: var(--text);
}
.tile-note {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: var(--size-small);
}
.tile-note code {
  color: var(--text-soft);
}
.field-stage {
  position: relative;
  isolation: isolate;
  height: 470px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: var(--r-cell) var(--r-cell) var(--r-none) var(--r-none);
  background: radial-gradient(ellipse 76% 135% at 50% 0%, var(--field-mid) 0%, var(--field-deep) 74%);
  color: var(--text);
  box-shadow: inset 0 1px 0 var(--stroke-22);
}
.field-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 44% 52% at 50% -6%, var(--field-glow) 0%, var(--mask-clear) 72%);
  opacity: 0.85;
  animation: fieldBreath 14s ease-in-out infinite;
  pointer-events: none;
}
@keyframes fieldBreath {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.conf-sheet {
  position: relative;
  width: min(860px, calc(100% - 96px));
  margin: 32px auto 0;
  border: 1px solid var(--stroke-10);
  border-radius: var(--r-panel);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: inset 0 1px 0 var(--stroke-16), 0 14px 28px -14px var(--shadow-near), 0 44px 90px -26px var(--shadow-far);
}
.sheet-head {
  display: flex;
  align-items: stretch;
  gap: 24px;
  min-height: 46px;
  padding-inline: 20px;
  border-bottom: 1px solid var(--stroke-06);
}
.sheet-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 12.5px/1.6 var(--font-mono);
  color: var(--text);
}
.sheet-file svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}
.sheet-sections {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 12px/1.6 var(--font-mono);
  color: var(--text-muted);
}
.sheet-sections li {
  display: flex;
  align-items: center;
  margin-bottom: -1px;
}
.sheet-sections .is-current {
  color: var(--text);
  box-shadow: inset 0 -1px 0 var(--accent);
}
.sheet-note {
  display: flex;
  align-items: center;
  margin-left: auto;
  color: var(--text-muted);
  font-size: 11.5px;
}
.sheet-body {
  position: relative;
  padding: 14px 24px 10px 0;
}
.sheet-body::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 31px;
  bottom: 26px;
  border-left: 1px dashed var(--dash);
}
.rule-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.rule-list {
  min-width: 560px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rule-list li {
  position: relative;
  display: grid;
  grid-template-columns: 56px 300px minmax(0, 1fr) 80px;
  align-items: center;
  min-height: 34px;
}
.rule-no {
  position: relative;
  z-index: 1;
  justify-self: start;
  width: 24px;
  margin-left: 16px;
  text-align: center;
  font: 11px/16px var(--font-mono);
  background: var(--bg-panel);
  color: var(--text-muted);
}
.rule-code {
  padding-left: 6px;
  white-space: nowrap;
  font: 13px/1.6 var(--font-mono);
  overflow-wrap: normal;
  color: var(--text);
}
.rule-code .c {
  color: var(--text-muted);
}
.rule-code .v {
  color: var(--text-soft);
}
.rule-code .p--proxy {
  color: var(--accent);
}
.rule-code .p--direct {
  color: var(--link);
}
.rule-code .p--reject {
  color: var(--reject-ink);
}
.rule-cmt {
  padding-inline: 8px;
  font: 12px/1.6 var(--font-mono-cjk);
  color: var(--text-muted);
}
.pol {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 6px;
  min-width: 74px;
  min-height: 22px;
  padding: 2px 9px;
  border: 1px solid var(--mask-clear);
  border-radius: var(--r-pill);
  font: 10.5px/1.4 var(--font-mono);
  letter-spacing: 0.05em;
}
.pol::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: var(--r-round);
  background: currentColor;
}
.pol--proxy {
  border-color: var(--accent-a35);
  background: var(--accent-a08);
  color: var(--accent);
}
.pol--direct {
  border-color: var(--link-a40);
  background: var(--link-a12);
  color: var(--link);
}
.pol--reject {
  border-color: var(--reject-a32);
  background: var(--reject-a10);
  color: var(--reject-ink);
}
.rule-list .is-hit {
  margin-top: 4px;
  margin-bottom: 4px;
}
.rule-list .is-hit::after {
  content: "";
  position: absolute;
  inset: 0 -10px 0 46px;
  border: 1px solid var(--accent);
  border-radius: var(--r-frame);
  box-shadow: 0 0 0 4px var(--accent-a08), 0 0 22px -6px var(--accent-a35);
  pointer-events: none;
}
.hit-tag,
.floor-tag {
  position: absolute;
  left: 60px;
  z-index: 1;
  padding-inline: 6px;
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 16px;
}
.hit-tag {
  top: -9px;
  color: var(--accent);
}
.rule-list .is-final {
  margin-top: 14px;
}
.rule-list .is-final::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 46px;
  right: -10px;
  border-top: 1px dashed var(--dash);
}
.floor-tag {
  top: -16px;
}
.sheet-foot {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  min-height: 30px;
  margin-top: 4px;
}
.sheet-foot svg {
  width: 12px;
  height: 14px;
  margin-left: 22px;
  color: var(--text-muted);
}
.sheet-foot span {
  padding-left: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.legend-slip {
  position: absolute;
  right: -48px;
  bottom: -46px;
  width: 322px;
  padding: 12px 16px 13px;
  border: 1px solid var(--stroke-10);
  border-radius: var(--r-slip);
  background: var(--bg-panel-2);
  color: var(--text);
  box-shadow: inset 0 1px 0 var(--stroke-16), 0 10px 22px -10px var(--shadow-near), 0 26px 52px -18px var(--shadow-far);
}
.legend-slip p {
  margin: 0;
  font-size: var(--size-small);
  line-height: 18px;
}
.legend-slip .sep {
  margin-inline: 4px;
  color: var(--text-muted);
}
.legend-slip code {
  color: var(--accent);
  font-size: var(--size-caption);
}
.legend-slip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}
.legend-slip .pol {
  min-width: 0;
  min-height: 20px;
}

/* 左索引、右详情舱。 */
.feature-tabs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--space-6);
}
.tab-index {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
}
.tab-index [role="tab"] {
  position: relative;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  background: var(--mask-clear);
  color: var(--text-muted);
  text-align: left;
  font: inherit;
}
.tab-index [role="tab"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--border);
}
.tab-index [role="tab"][aria-selected="true"] {
  color: var(--text);
}
.tab-index [role="tab"][aria-selected="true"]::before {
  width: 2px;
  background: var(--gradient-accent);
}
.tab-index [role="tab"]:hover {
  color: var(--text);
}
.feature-cabin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-5);
  min-height: 360px;
  padding: var(--space-6);
  border: 1px solid var(--stroke-10);
  border-radius: var(--r-cell);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-panel);
}
.feature-cabin p {
  color: var(--text-muted);
}
.mini-window {
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--r-slip);
  background: var(--bg-panel-2);
  color: var(--text-soft);
}
.mini-window pre {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-none);
  background: var(--mask-clear);
  color: var(--text-soft);
}
.protocol-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
  padding: var(--space-2);
  border: 1px solid var(--stroke-10);
  border-radius: var(--r-slip);
  background: var(--bg-panel);
  color: var(--text-soft);
}
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--r-frame);
  font-size: 14px;
}
.toc a:hover,
.toc a[aria-current="location"] {
  background: var(--bg-panel-2);
  color: var(--text);
}
.toc--sticky {
  position: sticky;
  top: var(--space-3);
  z-index: 5;
}
.faq-list {
  display: grid;
  gap: var(--space-2);
}
.faq-item {
  border: 1px solid var(--stroke-10);
  border-radius: var(--r-slip);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: inset 0 1px 0 var(--inner-hi);
}
.faq-item summary {
  position: relative;
  min-height: 60px;
  padding: 18px 54px 18px 24px;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 18px;
  color: var(--accent);
  font-family: var(--font-mono);
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-answer {
  padding: 0 24px 24px;
  color: var(--text-muted);
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
.term-card {
  padding: var(--space-5);
  border: 1px solid var(--stroke-10);
  border-radius: var(--r-panel);
  background: var(--bg-panel);
  color: var(--text);
}
.term-card h3 {
  margin-bottom: var(--space-2);
  font-size: 20px;
}
.term-card p {
  margin-top: var(--space-3);
  color: var(--text-muted);
}
.app-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 56px;
  max-width: 100%;
  padding: 10px 22px;
  border: 1px solid var(--accent-a35);
  border-radius: var(--r-btn);
  background: var(--gradient-accent);
  color: var(--ink-on-accent);
  box-shadow: inset 0 1px 0 var(--btn-hi), 0 12px 32px -16px var(--accent-a45);
  transition: transform var(--time-fast) var(--ease), box-shadow var(--time-fast) var(--ease);
}
.app-store svg {
  width: 25px;
  height: 29px;
}
.app-store-copy {
  display: block;
  text-align: left;
  line-height: 1.3;
}
.app-store-copy small {
  display: block;
  font-size: 11px;
}
.app-store-copy strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}
.app-store:hover,
.app-store.is-hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 var(--btn-hi), 0 16px 36px -14px var(--accent-a45);
}
.app-store:active {
  transform: translateY(1px);
}
.app-store[aria-disabled="true"] {
  background: var(--bg-panel-2);
  color: var(--text-muted);
  border-color: var(--border);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
.store-endnote {
  padding: var(--space-5);
  border: 1px solid var(--stroke-16);
  border-radius: var(--r-panel);
  background: var(--bg-panel);
  color: var(--text);
}
.store-endnote p {
  max-width: 56em;
  color: var(--text-muted);
}
.official-shot {
  flex-shrink: 0;
  width: min(100%, 280px);
  max-width: 280px;
  margin: 0 auto;
}
.official-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-shot);
}
.official-shot figcaption {
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: var(--size-caption);
  line-height: 1.7;
}
.shot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-5);
}
.shot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  align-items: start;
  gap: var(--space-6);
}
.device-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-5);
  border: 1px solid var(--stroke-10);
  border-radius: var(--r-cell);
  background: var(--bg-panel-2);
  color: var(--text);
  box-shadow: var(--shadow-panel);
}
.device-card > svg {
  width: 42px;
  height: 52px;
  color: var(--text-soft);
}
.device-card p {
  color: var(--text-muted);
}
.device-card h3 {
  margin-bottom: var(--space-2);
}
.article-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--stroke-10);
  border-radius: var(--r-cell);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-panel);
}
.article-card h3 {
  margin-top: var(--space-4);
  font-size: 21px;
  line-height: 1.5;
}
.article-card h3 a:hover {
  color: var(--accent);
}
.article-card p {
  color: var(--text-muted);
}
.article-card .text-link {
  margin-top: auto;
  padding-top: var(--space-3);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--size-caption);
}
.callout {
  margin: var(--space-4) 0;
  padding: var(--space-4) var(--space-4) var(--space-4) 22px;
  border: 1px solid var(--stroke-10);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-slip);
  background: var(--bg-panel-2);
  color: var(--text-soft);
}
.callout strong {
  color: var(--text);
}
.callout p:last-child {
  margin-bottom: 0;
}
.callout--warn {
  border-left-color: var(--warn);
  background: var(--bg-panel-2);
  color: var(--text-soft);
}
.grouped-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--stroke-10);
  border-radius: var(--r-panel);
  background: var(--bg-panel-2);
  color: var(--text);
}
.grouped-list li + li {
  border-top: 1px solid var(--stroke-10);
}
.grouped-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: 14px 20px;
}
.grouped-list a::after {
  content: "→";
  flex-shrink: 0;
  color: var(--link);
}
.table-scroll {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--border);
  border-radius: var(--r-slip);
}
.data-table,
.prose table,
.article-body table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}
.prose table,
.article-body table {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}
:where(.data-table, .prose table, .article-body table) th,
:where(.data-table, .prose table, .article-body table) td {
  min-width: 7em;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
:where(.data-table, .prose table, .article-body table) th {
  background: var(--bg-panel-2);
  color: var(--text);
  font-weight: var(--weight-medium);
}
:where(.data-table, .prose table, .article-body table) td {
  background: var(--bg-panel);
  color: var(--text-soft);
}
.data-table caption,
.prose table caption,
.article-body table caption {
  padding: var(--space-3);
  color: var(--text-muted);
  text-align: left;
}
.data-table td code,
.prose table td code,
.article-body table td code {
  overflow-wrap: anywhere;
}
.dl-fab {
  position: fixed;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  max-width: calc(100% - 32px);
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--stroke-16);
  border-radius: var(--r-pill);
  background: var(--bg-panel-2);
  color: var(--text);
  font-size: 14px;
  box-shadow: inset 0 1px 0 var(--inner-hi), 0 16px 34px -14px var(--shadow-far);
  transition: border-color var(--time-fast) var(--ease), transform var(--time-fast) var(--ease);
}
.dl-fab svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.dl-fab:hover {
  transform: translateY(-1px);
  border-color: var(--accent-a45);
}
html.nav-open .dl-fab {
  visibility: hidden;
}

/* 预览专用家具；不加载图片，也不模拟应用画面。 */
.preview-section {
  margin-top: var(--section-gap);
}
.preview-section > h2 {
  margin-bottom: var(--space-5);
}
.preview-stack {
  display: grid;
  gap: var(--space-4);
}
.preview-shot {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 750 / 1334;
  border: 1px solid var(--border);
  border-radius: var(--r-shot);
  background: var(--bg-panel-2);
  color: var(--text-muted);
  text-align: center;
}
.preview-shot span {
  padding: var(--space-4);
}
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
}
.swatch {
  min-width: 0;
  margin: 0;
  padding: var(--space-2);
  border: 1px solid var(--stroke-10);
  border-radius: var(--r-btn);
  background: var(--bg-panel);
  color: var(--text-soft);
}
.swatch::before {
  content: "";
  display: block;
  height: 48px;
  margin-bottom: var(--space-2);
  border: 1px solid var(--stroke-16);
  border-radius: var(--r-frame);
  background: var(--swatch, var(--bg));
}
.swatch code {
  font-size: 11px;
}
.swatch--bg { --swatch: var(--bg); }
.swatch--panel { --swatch: var(--bg-panel); }
.swatch--panel2 { --swatch: var(--bg-panel-2); }
.swatch--border { --swatch: var(--border); }
.swatch--accent { --swatch: var(--accent); }
.swatch--accent2 { --swatch: var(--accent-2); }
.swatch--accent-dark { --swatch: var(--accent-dark); }
.swatch--link { --swatch: var(--link); }
.swatch--text { --swatch: var(--text); }
.swatch--soft { --swatch: var(--text-soft); }
.swatch--muted { --swatch: var(--text-muted); }
.swatch--dim { --swatch: var(--text-dim); }
.swatch--success { --swatch: var(--success); }
.swatch--warn { --swatch: var(--warn); }
.swatch--error { --swatch: var(--error); }
.swatch--reject { --swatch: var(--reject-ink); }
.swatch--ink { --swatch: var(--ink-on-accent); }
.swatch--mark { --swatch: var(--mark-fill); }
.swatch--glow { --swatch: var(--field-glow); }
.swatch--mid { --swatch: var(--field-mid); }
.swatch--deep { --swatch: var(--field-deep); }
.swatch--grid { --swatch: var(--grid-line); }
.swatch--s06 { --swatch: var(--stroke-06); }
.swatch--s10 { --swatch: var(--stroke-10); }
.swatch--s16 { --swatch: var(--stroke-16); }
.swatch--s22 { --swatch: var(--stroke-22); }
.swatch--inner { --swatch: var(--inner-hi); }
.swatch--button { --swatch: var(--btn-hi); }
.swatch--dash { --swatch: var(--dash); }
.swatch--veil { --swatch: var(--veil-1); }
.swatch--a08 { --swatch: var(--accent-a08); }
.swatch--a16 { --swatch: var(--accent-a16); }
.swatch--a35 { --swatch: var(--accent-a35); }
.swatch--a45 { --swatch: var(--accent-a45); }
.swatch--l12 { --swatch: var(--link-a12); }
.swatch--l40 { --swatch: var(--link-a40); }
.swatch--r10 { --swatch: var(--reject-a10); }
.swatch--r32 { --swatch: var(--reject-a32); }
.swatch--far { --swatch: var(--shadow-far); }
.swatch--near { --swatch: var(--shadow-near); }
.swatch--solid { --swatch: var(--mask-solid); }
.swatch--clear { --swatch: var(--mask-clear); }
.preview-h1 {
  font-family: var(--font-display);
  font-size: var(--size-h1);
  line-height: var(--leading-title);
  letter-spacing: var(--tracking-title);
}

@media (max-width: 1180px) {
  .rule-list li {
    grid-template-columns: 56px 290px minmax(0, 1fr) 80px;
  }
}
@media (max-width: 1040px) {
  .deck-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
  }
  .tile--lead {
    grid-row: auto;
    grid-column: 1 / -1;
  }
  .field-stage {
    height: auto;
    padding-bottom: 96px;
  }
  .rule-list li {
    grid-template-columns: 56px minmax(0, 1fr) 80px;
  }
  .rule-cmt {
    display: none;
  }
  .legend-slip {
    right: 16px;
  }
  .feature-tabs {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: var(--space-4);
  }
  .feature-cabin {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-5);
  }
}
@media (max-width: 720px) {
  .deck-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tile--lead {
    padding: 28px 22px;
  }
  .tile--routing,
  .tile--ondemand {
    padding: 20px 22px;
  }
  .conf-sheet {
    width: calc(100% - 28px);
    margin-top: 20px;
  }
  .sheet-sections li:not(.is-current),
  .sheet-note {
    display: none;
  }
  .sheet-head {
    gap: var(--space-4);
    padding-inline: 14px;
  }
  .sheet-body {
    padding-right: 14px;
  }
  .rule-code {
    font-size: 11.5px;
  }
  .rule-list {
    min-width: 438px;
  }
  .rule-list li {
    grid-template-columns: 48px minmax(0, 1fr) 70px;
  }
  .rule-no {
    margin-left: 12px;
  }
  .sheet-body::before {
    left: 24px;
  }
  .sheet-foot svg {
    margin-left: 18px;
  }
  .pol {
    min-width: 64px;
  }
  .legend-slip {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0 14px -40px;
    transform: translateY(14px);
  }
  .field-stage {
    padding-bottom: 72px;
  }
  .feature-tabs {
    grid-template-columns: minmax(0, 1fr);
  }
  .tab-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-1);
  }
  .tab-index [role="tab"] {
    font-size: 14px;
  }
  .shot-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .shot-row {
    flex-direction: column;
    align-items: center;
  }
  .swatch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .facts-row,
  .tag-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .fact-pill {
    font-size: 11px;
    padding: 4px 8px;
  }
  .device-row {
    gap: 8px 12px;
  }
  .device-row .row-label,
  .device-row .row-rule {
    display: none;
  }
  .device-row .dev {
    gap: 4px;
    font-size: var(--size-caption);
  }
  .device-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: var(--space-3);
    padding: var(--space-4);
  }
  .device-card > svg {
    width: 32px;
    height: 42px;
  }
  .feature-cabin,
  .term-card,
  .article-card {
    padding: var(--space-4);
  }
  .dl-fab {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }
  .swatch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .field-stage::before {
    animation: none;
    opacity: 0.85;
  }
  .tile:hover,
  .app-store:hover,
  .dl-fab:hover {
    transform: none;
  }
}