/* Shared controls */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 6px 14px 6px 11px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg-panel-2);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
}
.badge__dot, .get-note__dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: var(--r-round); background: var(--grad); color: var(--text); box-shadow: 0 0 0 4px var(--accent-halo); }
.sec-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0 0 18px 18px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--text);
  transform: rotate(-2deg);
}
.sec-tag::before { content: ""; position: absolute; width: 12px; height: 14px; left: -12px; top: -8px; background: inherit; clip-path: polygon(0 0, 100% 60%, 48% 65%, 30% 100%); }
.sec-tag--pink { background: var(--pink); color: var(--text); }
.sec-tag--green { background: var(--green); color: var(--text); }
.sec-tag--orange { background: var(--orange); color: var(--text); }
.sec-tag--outline { background: var(--bg-panel-2); color: var(--accent-dark); border: 1px solid var(--accent-2); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.facts li, .fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg-panel-2);
  color: var(--text-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.fact strong, .facts strong { color: var(--text); font-weight: 500; }
.get-actions, .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.get-actions .btn { flex: 0 1 auto; }
.get-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13.5px; color: var(--text-muted); }
.get-note__dot { width: 7px; height: 7px; background: var(--success); box-shadow: 0 0 0 3px var(--success-halo); }
.get-note [data-pkg-ver] { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); }
.store-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; max-width: 100%; padding: 9px 20px; border: 1px solid var(--text); border-radius: var(--r-btn); background: var(--text); color: var(--on-accent); text-decoration: none; box-shadow: var(--shadow-sm); }
.store-button:hover { background: var(--text-muted); border-color: var(--text-muted); color: var(--on-accent); }
.store-button svg { width: 24px; height: 28px; }
.store-button__copy { display: block; text-align: left; line-height: 1.3; }
.store-button small { display: block; font-size: 11px; }
.store-button strong { display: block; font-size: 16px; font-weight: 500; }
.platforms { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.platforms__list { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; }
.platforms__list a { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-muted); text-decoration: none; }
.platforms__list a:hover { color: var(--accent-dark); }
.platforms__list svg { width: 16px; height: 16px; color: var(--text); }
.price-chip { display: inline-flex; flex-wrap: wrap; gap: 8px; max-width: 100%; margin: 16px 0 0; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg-panel-2); color: var(--text); font-size: 13px; }
.price-chip__sep { color: var(--text-muted); }
.plat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.plat-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-section); background: var(--bg-panel-2); color: var(--text); box-shadow: var(--shadow-float); scroll-margin-top: calc(var(--nav-h) + 24px); }
.plat-card h3, .plat-card p { margin: 0; }
.plat-card h3 { padding-right: 65px; }
.plat-card p { color: var(--text-muted); }
.plat-card > svg { width: 30px; height: 30px; }
.plat-card::before { content: attr(data-mine); display: none; position: absolute; right: 20px; top: 24px; padding: 4px 8px; border: 1px solid var(--note-blue-edge); border-radius: var(--r-pill); background: var(--note-blue); color: var(--accent-dark); font-size: 11px; }
.plat-actions { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; margin-top: auto; padding-top: 8px; }
.plat-actions .btn { font-size: 14px; padding-inline: 16px; }
html[data-visitor-os="ios"] .plat-card[data-plat="ios"] { order: -1; }
html[data-visitor-os="mac"] .plat-card[data-plat="mac"] { order: -1; }
html[data-visitor-os="windows"] .plat-card[data-plat="windows"] { order: -1; }
html[data-visitor-os="android"] .plat-card[data-plat="android"] { order: -1; }
html[data-visitor-os="linux"] .plat-card[data-plat="linux"] { order: -1; }
html[data-visitor-os="ios"] .plat-card[data-plat="ios"]::before,
html[data-visitor-os="mac"] .plat-card[data-plat="mac"]::before,
html[data-visitor-os="windows"] .plat-card[data-plat="windows"]::before,
html[data-visitor-os="android"] .plat-card[data-plat="android"]::before,
html[data-visitor-os="linux"] .plat-card[data-plat="linux"]::before { display: block; }
.wx-open-tip { position: fixed; z-index: 70; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(440px, calc(100% - var(--gutter) * 2)); padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-float); background: var(--bg-panel-2); color: var(--text); box-shadow: var(--shadow-float); }
.wx-open-tip button { min-height: 44px; border: 0; background: var(--bg-panel); color: var(--text); padding: 8px 16px; border-radius: var(--r-btn); }

/* Accessible tabs: panels stay visible without JavaScript. */
.tabs__rail { overflow-x: auto; max-width: 100%; padding: 4px; scrollbar-width: thin; }
[role="tablist"] { display: flex; align-items: center; gap: 4px; width: max-content; min-width: min(100%, 900px); max-width: none; margin-inline: auto; padding: 7px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg-panel-2); color: var(--text); box-shadow: var(--shadow-float); }
[role="tab"] { flex: 1 0 auto; min-height: 48px; padding: 10px 23px; border: 0; border-radius: var(--r-pill); background: var(--bg-panel-2); color: var(--text-muted); white-space: nowrap; }
[role="tab"]:hover { background: var(--hover-wash); color: var(--text); }
[role="tab"][aria-selected="true"] { background: var(--brand-yellow); color: var(--text); }
[role="tabpanel"] { scroll-margin-top: calc(var(--nav-h) + 24px); }
.feature-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; margin-top: 72px; }
.feature-stage h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 400; }
.feature-stage p { color: var(--text-muted); line-height: 1.9; }
.mini-canvas { display: grid; align-content: center; gap: 24px; min-height: 300px; padding: 40px; border: 1px solid var(--line); border-radius: var(--r-float); background-color: var(--bg-panel-2); color: var(--text); background-image: radial-gradient(var(--grid-dot) 1px, var(--clear) 1px); background-size: 18px 18px; }
.rule-note { position: relative; padding: 20px; border: 1px solid var(--note-green-edge); border-radius: var(--r-chip); background: var(--note-green); color: var(--text); box-shadow: var(--shadow-note); font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
.rule-note + .rule-note::before { content: ""; position: absolute; left: 50%; top: -25px; height: 24px; border-left: 1px dashed var(--line-strong); }
.rule-note--neutral { background: var(--note-gray); color: var(--text); border-color: var(--note-gray-edge); }
.toc { position: sticky; top: var(--nav-h); z-index: 10; display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 12px 4px; border-block: 1px solid var(--line); background: var(--bg); color: var(--text); overscroll-behavior-x: contain; }
.toc a { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; padding: 8px 16px; border-radius: var(--r-pill); color: var(--text-muted); font-size: 14px; text-decoration: none; }
.toc a:hover, .toc a[aria-current] { background: var(--note-blue); color: var(--accent-dark); }
.toc--flow { position: static; }
.faq-list { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--r-float); background: var(--bg-panel-2); color: var(--text); box-shadow: var(--shadow-sm); }
.faq-item { padding-inline: 26px; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary { position: relative; list-style: none; cursor: pointer; padding: 22px 32px 22px 0; font-size: 17px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 20px; color: var(--accent-dark); font-size: 23px; line-height: 1.2; }
.faq-item[open] summary::after { content: "−"; }
.faq-item > :not(summary) { color: var(--text-muted); padding-bottom: 20px; margin-bottom: 0; }
.term-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-float); background: var(--bg-panel-2); color: var(--text); box-shadow: var(--shadow-sm); }
.term-card dt, .term-card h3 { margin: 0 0 14px; font-family: var(--font-mono); font-size: 19px; font-weight: 400; }
.term-card dd { margin: 0; color: var(--text-muted); }
.official-shot { width: min(100%, 280px); max-width: 280px; flex-shrink: 0; margin-inline: auto; padding: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot { border-radius: var(--r-shot); }
.official-shot img, .shot-placeholder { outline: 1px solid var(--line); }
.official-shot figcaption { padding-top: 12px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.shot-row { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 32px; margin-top: 36px; }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.device-entry { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px 20px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-float); background: var(--bg-panel-2); color: var(--text); box-shadow: var(--shadow-note); text-decoration: none; }
.device-entry:hover { color: var(--accent-dark); border-color: var(--note-blue-edge); }
.device-entry svg { grid-row: span 2; width: 36px; height: 44px; }
.device-entry strong { font-weight: 500; font-size: 20px; }
.device-entry p { margin: 0; color: var(--text-muted); font-size: 14px; }
.article-card { display: flex; flex-direction: column; gap: 18px; padding: 30px; border: 1px solid var(--line); border-radius: var(--r-section); background: var(--bg-panel-2); color: var(--text); box-shadow: var(--shadow-float); }
.article-card h3 { margin: 0; font-size: 23px; line-height: 1.45; }
.article-card h3 a { color: var(--text); text-decoration: none; }
.article-card h3 a:hover { color: var(--accent-dark); }
.article-card p { color: var(--text-muted); margin: 0; }
.article-card__meta { font-size: 12px; font-family: var(--font-mono); color: var(--text-muted); }
.article-card > a { margin-top: auto; }
.callout { margin: 28px 0; padding: 24px 28px; border: 1px solid var(--note-blue-edge); border-left: 3px solid var(--accent); border-radius: var(--r-btn); background: var(--note-blue); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-color: var(--note-yellow-edge); border-left-color: var(--warn); background: var(--note-yellow); color: var(--text); }
.article-store-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-float); background: var(--bg-panel); color: var(--text); }
.article-store-card h2 { font-size: 24px; margin: 0 0 12px; }
.article-store-card p { margin: 0; color: var(--text-muted); }
.dl-fab { position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 25; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 20px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg-panel-2); color: var(--accent-dark); box-shadow: var(--shadow-float); text-decoration: none; font-size: 14px; }
.dl-fab:hover { background: var(--note-blue); color: var(--accent-dark); }
.dl-fab svg { width: 22px; height: 22px; }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-btn); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.prose table, .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; text-align: left; }
.data-table :is(th, td), .prose table :is(th, td), .article-body table :is(th, td) { min-width: 7em; padding: 16px 20px; border-bottom: 1px solid var(--line); overflow-wrap: normal; word-break: normal; vertical-align: top; }
.data-table th, .prose th, .article-body th { background: var(--bg-panel); color: var(--text); font-weight: 500; }
.data-table td, .prose td, .article-body td { background: var(--bg-panel-2); color: var(--text); }

/* Approved routing canvas */
.rig { position: relative; margin: 0; }
.rig__tab { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px 2px; padding: 7px 13px 7px 10px; border: 1px solid var(--line); border-radius: var(--r-tab); background: var(--bg-panel-2); color: var(--text); box-shadow: var(--shadow-sm); font-size: 13px; }
.rig__tab svg { width: 15px; height: 15px; color: var(--accent); }
.rig__tab code { font-size: 12px; color: var(--accent-dark); }
.rig__sep { color: var(--text-muted); }
.board { position: relative; border: 1px solid var(--line); border-radius: var(--r-float); background: var(--bg-panel-2); color: var(--text); box-shadow: var(--shadow-float); overflow: hidden; }
.canvas { position: relative; aspect-ratio: 1000 / 620; container-type: inline-size; }
.lane { position: absolute; left: 0; right: 0; border-bottom: 1px solid var(--line-soft); }
.lane--1 { top: 0; height: 24.194%; }
.lane--2 { top: 24.194%; height: 41.935%; }
.lane--3 { top: 66.129%; height: 33.871%; border-bottom: 0; }
.lane__name { position: absolute; inset: 0 auto 0 0; width: 6.4%; display: flex; align-items: center; justify-content: center; background: var(--lane-bg); color: var(--text-muted); border-right: 1px solid var(--line-soft); writing-mode: vertical-rl; font-size: 1.3cqw; letter-spacing: .24em; }
.links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.ln { fill: none; stroke: var(--line-strong); stroke-width: 1.3; }
.ln--dash { stroke-dasharray: 5 4; }
.ah, .jn { fill: var(--line-strong); }
.lbl { font-family: var(--font-body); font-size: 13px; font-weight: 500; fill: var(--text-muted); }
.n { position: absolute; z-index: 3; display: flex; flex-direction: column; justify-content: center; padding: 0 1.1cqw; border: 1px solid var(--clear); border-radius: var(--r-chip); font-family: var(--font-mono); font-size: 1.45cqw; line-height: 1.5; color: var(--text); box-shadow: var(--shadow-note); }
.n__k { font-weight: 600; }
.n__v { color: var(--text-muted); }
.n__p { display: flex; align-items: center; gap: .6cqw; margin-top: .15cqw; font-weight: 600; }
.n__p::before { content: ""; flex-shrink: 0; width: .9cqw; height: .9cqw; border-radius: var(--r-round); background: currentColor; }
.n__p--proxy { color: var(--accent-dark); }
.n__p--direct { color: var(--success-ink); }
.n__p--reject { color: var(--ink-pink); }
.n--blue { background: var(--note-blue); color: var(--text); border-color: var(--note-blue-edge); }
.n--yellow { background: var(--note-yellow); color: var(--text); border-color: var(--note-yellow-edge); }
.n--green { background: var(--note-green); color: var(--text); border-color: var(--note-green-edge); }
.n--pink { background: var(--note-pink); color: var(--text); border-color: var(--note-pink-edge); }
.n--gray { background: var(--note-gray); color: var(--text); border-color: var(--note-gray-edge); }
.n-req { left: 9.6%; top: 7.419%; width: 23%; height: 9.677%; font-family: var(--font-body); font-size: 1.6cqw; align-items: flex-start; }
.n-r1 { left: 9.6%; top: 35.484%; width: 15%; height: 18.065%; }
.n-r2 { left: 27.6%; top: 35.484%; width: 14%; height: 18.065%; }
.n-r3 { left: 44.6%; top: 35.484%; width: 16%; height: 18.065%; }
.n-final { left: 80%; top: 38.065%; width: 15%; height: 12.903%; }
.decide { position: absolute; z-index: 3; left: 64%; top: 36.452%; width: 10%; height: 16.129%; display: flex; align-items: center; justify-content: center; font-size: 1.25cqw; color: var(--text); }
.decide::before { content: ""; position: absolute; inset: 0; transform: rotate(45deg) scale(.7071); border: 1.5px solid var(--line-strong); border-radius: var(--r-focus); background: var(--bg-panel-2); color: var(--text); box-shadow: var(--shadow-note); }
.decide span { position: relative; }
.exit { position: absolute; z-index: 3; top: 75.806%; height: 12.903%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2cqw; border: 1px solid var(--clear); border-radius: var(--r-chip); box-shadow: var(--shadow-note); }
.exit b { font-family: var(--font-mono); font-size: 1.7cqw; font-weight: 600; letter-spacing: .02em; }
.exit small { font-size: 1.15cqw; color: var(--text-muted); }
.exit--direct { left: 17%; width: 16%; background: var(--note-green); border-color: var(--note-green-edge); color: var(--success-ink); }
.exit--reject { left: 42%; width: 16%; background: var(--note-pink); border-color: var(--note-pink-edge); color: var(--ink-pink); }
.exit--proxy { left: 79%; width: 17%; background: var(--exit-proxy); border-color: var(--exit-proxy-edge); color: var(--accent-dark); }
.pulse { position: absolute; z-index: 2; left: 0; top: 0; width: 1.5cqw; height: 1.5cqw; margin: -.75cqw 0 0 -.75cqw; border-radius: var(--r-round); background: var(--grad); color: var(--text); box-shadow: 0 0 0 .55cqw var(--accent-halo); opacity: 0; animation: route var(--route-time) linear infinite; }
.tag { position: absolute; z-index: 4; display: inline-flex; padding: .5cqw 1.15cqw; border-radius: var(--r-pill); font-size: 1.35cqw; font-weight: 500; line-height: 1.2; white-space: nowrap; box-shadow: var(--shadow-note); }
.tag::before { content: ""; position: absolute; left: -1.5cqw; top: -1.3cqw; width: 1.7cqw; height: 1.7cqw; background: currentColor; clip-path: polygon(0 0, 100% 60%, 48% 65%, 30% 100%); }
.tag--route { left: 35%; top: 11%; background: var(--bg-panel-2); border: 1.5px solid var(--accent-2); color: var(--accent-dark); transform: rotate(-3deg); }
.tag--demand { left: 54.8%; top: 27.1%; background: var(--orange); color: var(--text); transform: rotate(4deg); }
.tag--demand::before { left: auto; top: auto; right: -1.5cqw; bottom: -1.4cqw; background: var(--orange); transform: rotate(180deg); }
.tag--sub { left: 64%; top: 83.2%; background: var(--green); color: var(--text); transform: rotate(-2deg); }
.tag--sub::before { left: auto; right: -1.5cqw; background: var(--green); transform: rotate(90deg); }
.protos { position: absolute; z-index: 5; left: 50%; bottom: 0; display: flex; gap: 6px; transform: translate(-50%, 50%); padding: 0; margin: 0; list-style: none; }
.protos li { padding: 5px 9px; border: 1px solid var(--line); border-radius: var(--r-chip); background: var(--bg-panel-2); color: var(--text); box-shadow: var(--shadow-sm); font-family: var(--font-mono); font-size: 11.5px; line-height: 1.3; white-space: nowrap; }
@keyframes route {
  0% { transform: translate(17.1cqw, 10.6cqw) scale(.6); opacity: 0; }
  4% { transform: translate(17.1cqw, 10.6cqw); opacity: 1; }
  16% { transform: translate(17.1cqw, 27.6cqw); opacity: 1; }
  67% { transform: translate(87.5cqw, 27.6cqw); opacity: 1; }
  84% { transform: translate(87.5cqw, 51cqw); opacity: 1; }
  92%, 100% { transform: translate(87.5cqw, 51cqw) scale(1.4); opacity: 0; }
}

/* Preview furniture: never applied to real screenshots. */
.preview-stack { display: grid; gap: 32px; margin-top: 40px; }
.preview-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.shot-placeholder { aspect-ratio: 750 / 1334; display: grid; place-content: center; text-align: center; border-radius: var(--r-shot); background: var(--lane-bg); color: var(--text-muted); font-family: var(--font-mono); font-size: 13px; }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 32px; }
.swatch { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--bg-panel-2); color: var(--text); font-size: 12px; }
.swatch::before { content: ""; display: block; height: 56px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--r-chip); background: var(--swatch, var(--bg)); }
.swatch--bg { --swatch: var(--bg); }
.swatch--panel { --swatch: var(--bg-panel); }
.swatch--white { --swatch: var(--bg-panel-2); }
.swatch--line { --swatch: var(--line); }
.swatch--soft { --swatch: var(--line-soft); }
.swatch--strong { --swatch: var(--line-strong); }
.swatch--dots { --swatch: var(--grid-dot); }
.swatch--hover { --swatch: var(--hover-wash); }
.swatch--lane { --swatch: var(--lane-bg); }
.swatch--accent { --swatch: var(--accent); }
.swatch--violet { --swatch: var(--accent-2); }
.swatch--dark { --swatch: var(--accent-dark); }
.swatch--text { --swatch: var(--text); }
.swatch--muted { --swatch: var(--text-muted); }
.swatch--faint { --swatch: var(--text-faint); }
.swatch--success { --swatch: var(--success); }
.swatch--success-ink { --swatch: var(--success-ink); }
.swatch--warn { --swatch: var(--warn); }
.swatch--warn-ink { --swatch: var(--warn-ink); }
.swatch--error { --swatch: var(--error); }
.swatch--error-ink { --swatch: var(--error-ink); }
.swatch--yellow { --swatch: var(--brand-yellow); }
.swatch--pink { --swatch: var(--pink); }
.swatch--green { --swatch: var(--green); }
.swatch--orange { --swatch: var(--orange); }
.swatch--pink-ink { --swatch: var(--ink-pink); }
.swatch--glow-violet { --swatch: var(--glow-violet); }
.swatch--glow-peach { --swatch: var(--glow-peach); }
.swatch--blue-note { --swatch: var(--note-blue); }
.swatch--blue-edge { --swatch: var(--note-blue-edge); }
.swatch--yellow-note { --swatch: var(--note-yellow); }
.swatch--yellow-edge { --swatch: var(--note-yellow-edge); }
.swatch--green-note { --swatch: var(--note-green); }
.swatch--green-edge { --swatch: var(--note-green-edge); }
.swatch--pink-note { --swatch: var(--note-pink); }
.swatch--pink-edge { --swatch: var(--note-pink-edge); }
.swatch--gray-note { --swatch: var(--note-gray); }
.swatch--gray-edge { --swatch: var(--note-gray-edge); }
.swatch--exit { --swatch: var(--exit-proxy); }
.swatch--exit-edge { --swatch: var(--exit-proxy-edge); }
.swatch--halo { --swatch: var(--accent-halo); }
.swatch--success-halo { --swatch: var(--success-halo); }
.swatch--veil { --swatch: var(--veil); }
.swatch--clear { --swatch: var(--clear); }
.swatch--gradient::before { background: var(--grad); }
.swatch--gradient-hover::before { background: var(--grad-hover); }
@media (max-width: 1080px) {
  .plat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-stage { gap: 36px; }
}
@media (max-width: 720px) {
  .get-actions { margin-top: 24px; gap: 10px; }
  .get-actions .btn { flex: 1 1 auto; min-height: 48px; padding-inline: 16px; font-size: 15px; }
  .platforms__list { gap: 10px 16px; }
  .board { height: 287px; }
  .canvas { width: 700px; }
  .tag--sub { display: none; }
  .protos { gap: 4px; }
  .protos li { padding: 4px 7px; font-size: 10.5px; }
  .feature-stage { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  [role="tablist"] { min-width: max-content; }
  [role="tab"] { padding-inline: 20px; }
}
@media (max-width: 640px) {
  .plat-grid, .device-grid { grid-template-columns: minmax(0, 1fr); }
  .plat-card { padding: 28px 24px; }
  .mini-canvas { padding: 24px; }
  .official-shot { width: min(100%, 280px); }
  .shot-row { flex-direction: column; align-items: center; }
  .facts { justify-content: center; gap: 6px; }
  .facts li { font-size: 11px; padding: 5px 8px; }
  .sec-tag, .tag { transform: none; }
  .faq-item { padding-inline: 20px; }
  .article-store-card { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .callout { padding: 20px; }
  .dl-fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 52px; height: 52px; min-height: 52px; padding: 0; border-radius: var(--r-round); }
  .dl-fab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .has-dl-fab { padding-bottom: 84px; }
  #install table, #install tbody, #install tr, #install td, #install th { display: block; width: 100%; min-width: 0; }
  #install thead { display: none; }
  #install td::before { content: attr(data-label); display: block; font-weight: 600; margin-bottom: 8px; }
  #install tr + tr { border-top: 2px solid var(--line); }
  #install code { word-break: normal; overflow-wrap: normal; white-space: pre; display: block; overflow-x: auto; max-width: 100%; }
}
@media (max-width: 360px) {
  .protos li { font-size: 9px; padding-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { display: none; animation: none; }
}