.stage { position: relative; width: 560px; height: 520px; max-width: 100%; border-radius: var(--r-canvas); background: linear-gradient(145deg, var(--canvas-from) 0%, var(--canvas-to) 78%); color: var(--text); box-shadow: var(--shadow-float), inset 0 0 0 1px var(--canvas-edge); }
.stage::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(55% 45% at 18% 0%, var(--canvas-sheen), var(--clear) 70%); color: var(--text); }
.conf { position: absolute; left: 40px; top: 44px; width: 420px; max-width: calc(100% - 56px); background: var(--bg); color: var(--text); border-radius: var(--r-window); box-shadow: var(--shadow-window); overflow: hidden; }
.conf__bar { position: relative; height: 42px; display: flex; align-items: center; padding-inline: 16px; box-shadow: inset 0 -1px 0 var(--bg-panel-2); }
.conf__dots { display: flex; gap: 7px; }
.conf__dots span { width: 10px; height: 10px; flex-shrink: 0; border-radius: var(--r-round); background: var(--dot); color: var(--text); }
.conf__title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }
.conf__body { position: relative; padding: 14px 14px 40px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1; overflow-x: auto; }
.row { position: relative; z-index: 1; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; height: var(--row); padding: 0 12px 0 10px; white-space: nowrap; }
.row__no { font-size: 11px; color: var(--text-muted); }
.row__k { color: var(--text); font-weight: var(--weight-semibold); }
.row__v { color: var(--text-muted); }
.row__c { color: var(--text-muted); }
.row__sec { color: var(--accent-dark); font-weight: var(--weight-bold); }
.pol { display: inline-flex; align-items: center; height: 24px; padding-inline: 10px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: var(--weight-semibold); letter-spacing: .02em; }
.pol--proxy { background: var(--accent); color: var(--on-accent); }
.pol--direct { background: var(--accent-soft); color: var(--accent-dark); }
.scan, .final-ring { position: absolute; left: 14px; right: 14px; height: var(--row); border-radius: var(--r-row); pointer-events: none; }
.scan { top: calc(14px + var(--row)); z-index: 0; background: var(--accent-tint); color: var(--text); animation: rule-scan var(--scan-cycle) cubic-bezier(.6, 0, .3, 1) infinite; }
.scan::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); }
.final-ring { top: calc(14px + var(--row) * 5); z-index: 2; box-shadow: 0 0 0 1.5px var(--accent-line), 0 0 0 5px var(--accent-tint); opacity: 0; animation: rule-ring var(--scan-cycle) ease-in-out infinite; }
.routing { position: absolute; right: -36px; top: 362px; width: 252px; padding: 16px; background: var(--bg); color: var(--text); border-radius: var(--r-mini); box-shadow: var(--shadow-deep); animation: rule-breathe var(--beat) ease-in-out infinite; }
.routing__title { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.routing__title svg { width: 12px; height: 12px; }
.routing__seg { display: flex; gap: 6px; margin-top: 12px; }
.routing__opt { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 32px; border-radius: var(--r-pill); font-size: 13px; font-weight: var(--weight-semibold); background: var(--bg-panel); color: var(--text-muted); }
.routing__opt--on { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-btn); }
.stage__badge { position: absolute; left: 40px; bottom: 36px; width: 64px; height: 64px; border-radius: var(--r-round); display: grid; place-items: center; background: var(--bg); color: var(--accent); box-shadow: var(--shadow-float); font-family: var(--font-mono); font-size: 24px; font-weight: var(--weight-semibold); }
@keyframes rule-scan {
  0% { opacity: 0; transform: translateY(0); }
  3%, 18% { opacity: 1; transform: translateY(0); }
  21%, 38% { opacity: 1; transform: translateY(var(--row)); }
  41%, 58% { opacity: 1; transform: translateY(calc(var(--row) * 2)); }
  61%, 78% { opacity: 1; transform: translateY(calc(var(--row) * 3)); }
  81%, 96% { opacity: 1; transform: translateY(calc(var(--row) * 4)); }
  100% { opacity: 0; transform: translateY(calc(var(--row) * 4)); }
}
@keyframes rule-ring { 0%, 82%, 97%, 100% { opacity: 0; } 88% { opacity: 1; } }
@keyframes rule-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

.feature-tabs { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); gap: 48px; align-items: start; }
.feature-tabs > * { min-width: 0; }
.feature-tabs__side h2 { margin-top: 0; margin-bottom: 32px; }
.feature-tabs [role="tablist"] { display: flex; flex-direction: column; gap: 8px; }
[role="tab"] { position: relative; display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 12px 24px; border-radius: var(--r-pill); color: var(--text-muted); font-weight: var(--weight-bold); text-align: left; }
[role="tab"] .section-note { min-width: 82px; }
[role="tab"]:hover { color: var(--text); }
[role="tab"][aria-selected="true"] { background: var(--bg); color: var(--text); }
[role="tab"][aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); }
[role="tabpanel"] { min-width: 0; }
.feature-detail { padding: 36px; border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-float); }
.feature-detail h3 { margin-top: 0; }
.feature-detail p { line-height: 1.9; color: var(--text-muted); }
[role="tabpanel"].is-entering { animation: tab-arrive .28s var(--ease) both; }
@keyframes tab-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.material-window { margin-top: 28px; padding: 22px; border-radius: var(--r-mini); background: var(--bg-panel-2); color: var(--text); }
.material-window pre { margin: 0; padding: 0; border-radius: var(--r-row); }
.settings-list { list-style: none; margin: 0; padding: 0; background: var(--bg-panel-2); color: var(--text); border-radius: var(--r-mini); overflow: hidden; }
.settings-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 14px 20px; font-family: var(--font-mono); font-size: var(--text-sm); }
.settings-list li + li { border-top: 1px solid var(--border); }
.settings-list li::after { content: "›"; color: var(--text-muted); flex-shrink: 0; }
.tabs-horizontal [role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs-horizontal [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.tabs-horizontal [role="tabpanel"] { margin-top: 24px; }
.toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; padding: 8px; overflow-x: visible; background: var(--bg-panel); color: var(--text); border-radius: var(--r-pill); -webkit-overflow-scrolling: touch; }
.toc a { display: block; flex-shrink: 0; padding: 12px 18px; min-height: 44px; font-size: var(--text-sm); border-radius: var(--r-pill); }
.toc a:hover, .toc a[aria-current="location"] { background: var(--bg); color: var(--accent-dark); }
.toc--sticky { position: sticky; top: calc(var(--nav-h) + 12px); z-index: 10; }
.faq-item { border-radius: var(--r-card); padding: 0 28px; background: var(--bg-panel); color: var(--text); }
.faq-item + .faq-item { margin-top: 12px; }
.faq-item summary { position: relative; list-style: none; padding: 24px 32px 24px 0; font-weight: var(--weight-semibold); cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 22px; font-family: var(--font-mono); color: var(--accent-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-item__body { padding-bottom: 24px; color: var(--text-muted); line-height: 1.9; }
.faq-item__body p:last-child { margin-bottom: 0; }
.term-card { padding: 28px; border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.term-card dt { font-weight: var(--weight-bold); font-family: var(--font-mono); font-size: 18px; color: var(--accent-dark); overflow-wrap: anywhere; }
.term-card dd { margin: 14px 0 0; color: var(--text-muted); line-height: 1.85; }
.term-card__category { display: block; margin-top: 18px; font-size: var(--text-xs); color: var(--text-muted); }
.store-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%; min-height: 60px; padding: 10px 24px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-btn); }
.store-button:hover { background: var(--accent-dark); color: var(--on-accent); }
.store-button svg { width: 27px; height: 30px; }
.store-button__copy { display: block; line-height: 1.3; }
.store-button__eyebrow { display: block; font-size: 11px; font-weight: var(--weight-medium); }
.store-button__title { display: block; margin-top: 2px; font-size: 16px; font-weight: var(--weight-bold); }
.store-endnote { margin-top: 48px; padding: 28px; border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.store-endnote h2, .store-endnote h3 { font-size: var(--text-h3); margin-top: 0; }
.store-endnote p { color: var(--text-muted); }

.plat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plat-card { position: relative; min-width: 0; padding: 36px; border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.plat-card__icon { width: 28px; height: 28px; margin-bottom: 24px; color: var(--text-muted); }
.plat-card h3 { margin-top: 0; margin-bottom: 12px; }
.plat-card p { color: var(--text-muted); }
.plat-card__price { color: var(--accent-dark); font-weight: var(--weight-semibold); }
.plat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.plat-actions .btn { font-size: var(--text-sm); }
.plat-card::before { display: none; content: attr(data-mine); position: absolute; right: 20px; top: 20px; max-width: calc(100% - 40px); padding: 4px 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-dark); font-size: var(--text-xs); font-weight: var(--weight-semibold); }
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; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 100; width: max-content; max-width: calc(100% - 32px); padding: 20px 24px; border-radius: var(--r-pop); background: var(--text); color: var(--bg); box-shadow: var(--shadow-deep); font-size: var(--text-sm); line-height: 1.7; }
.fact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fact-pill, .badge { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 30px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text-muted); font-size: var(--text-xs); line-height: 1.5; overflow-wrap: anywhere; }
.fact-pill strong { color: var(--text); font-weight: var(--weight-semibold); }
.badge--blue { background: var(--accent-soft); color: var(--accent-dark); }
.badge__dot { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--r-round); background: var(--accent); color: var(--on-accent); }
.shot-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 32px; }
.official-shot { width: 280px; max-width: 100%; flex-shrink: 0; margin: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot img, .shot-placeholder { outline: 1px solid var(--border); box-shadow: var(--shadow-ground); }
.official-shot figcaption { margin-top: 14px; font-size: var(--text-xs); color: var(--text-muted); text-align: center; line-height: 1.7; }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.device-entry { display: flex; align-items: center; gap: 24px; min-width: 0; padding: 28px; border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.device-entry:hover { background: var(--bg-panel-2); color: var(--text); }
.device-entry svg { width: 40px; height: 48px; color: var(--accent-dark); }
.device-entry strong { display: block; font-size: 19px; }
.device-entry p { margin: 6px 0 0; font-size: var(--text-sm); color: var(--text-muted); }
.article-card { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px; min-width: 0; border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-ground); }
.article-card h3 { margin: 0; font-size: var(--text-h3); }
.article-card h3 a:hover { color: var(--accent-dark); }
.article-card p { margin: 0; color: var(--text-muted); }
.article-card__link { margin-top: auto; color: var(--accent-dark); font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.callout { margin: 28px 0; padding: 24px 28px; border-left: 3px solid var(--accent); border-radius: var(--r-mini); background: var(--accent-soft); color: var(--text); line-height: 1.85; }
.callout p:last-child { margin-bottom: 0; }
.callout__title { display: block; margin-bottom: 8px; font-weight: var(--weight-bold); color: var(--accent-dark); }
.table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-mini); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); background: var(--bg); color: var(--text); }
.data-table th, .data-table td, .prose table th, .prose table td, .article-body table th, .article-body table td { min-width: 7em; padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); overflow-wrap: normal; word-break: normal; }
.data-table th, .prose table th, .article-body table th { font-weight: var(--weight-semibold); background: var(--bg-panel); color: var(--text); }
.prose table, .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; }
.dl-fab { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; max-width: calc(100% - 48px); padding: 12px 22px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-btn); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.dl-fab:hover { background: var(--accent-dark); color: var(--on-accent); }
.dl-fab svg { width: 20px; height: 20px; }
.has-dl-fab { padding-bottom: 92px; }

.preview-static .scan { animation: none; opacity: 1; transform: none; }
.preview-static .final-ring { animation: none; opacity: 0; }
.preview-static .routing { animation: none; }
.preview-static .more:hover .more__panel { display: block !important; }
.preview-section { margin-top: var(--section-gap); }
.preview-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.swatch { min-width: 0; }
.swatch__paint { height: 76px; border-radius: var(--r-mini); box-shadow: var(--shadow-hair); background: var(--bg); color: var(--text); }
.swatch code { display: block; margin-top: 10px; color: var(--text-muted); font-size: var(--text-xs); }
.swatch--panel { background: var(--bg-panel); }
.swatch--panel2 { background: var(--bg-panel-2); }
.swatch--border { background: var(--border); }
.swatch--accent { background: var(--accent); }
.swatch--dark { background: var(--accent-dark); }
.swatch--text { background: var(--text); }
.swatch--muted { background: var(--text-muted); }
.swatch--success { background: var(--success); }
.swatch--warn { background: var(--warn); }
.swatch--error { background: var(--error); }
.swatch--soft { background: var(--accent-soft); }
.swatch--tint { background: var(--accent-tint); }
.swatch--ring { background: var(--accent-ring); }
.swatch--line { background: var(--accent-line); }
.swatch--from { background: var(--canvas-from); }
.swatch--to { background: var(--canvas-to); }
.swatch--sheen { background: var(--canvas-sheen); }
.swatch--edge { background: var(--canvas-edge); }
.swatch--dot { background: var(--dot); }
.swatch--gutter { background: var(--gutter-ink); }
.swatch--grid { background: var(--grid-line); }
.swatch--mask { background: var(--mask); }
.swatch--selection { background: var(--selection); }
.swatch--veil { background: var(--veil); }
.swatch--clear { background: var(--clear); }
.shot-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 750 / 1334; border-radius: var(--r-shot); background: var(--bg-panel-2); color: var(--text-muted); text-align: center; font-family: var(--font-mono); font-size: var(--text-sm); }
.preview-type h1 { margin-top: 0; }
.preview-quiet { margin-top: 24px; }
@media (max-width: 1180px) { .stage { margin-inline: auto; } }
@media (max-width: 900px) {
  .feature-tabs { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature-tabs [role="tablist"] { flex-direction: row; overflow-x: auto; padding: 4px; -webkit-overflow-scrolling: touch; }
  .feature-tabs [role="tab"] { flex-shrink: 0; gap: 10px; padding-inline: 20px; }
  .feature-tabs [role="tab"] .section-note { min-width: 0; }
  .feature-tabs [role="tab"][aria-selected="true"]::before { display: none; }
}
@media (max-width: 640px) {
  .stage { width: 100%; height: auto; padding: 20px 16px 88px; }
  .conf { position: relative; left: auto; top: auto; width: 100%; max-width: 100%; }
  .conf__body { font-size: 12px; padding-bottom: 24px; }
  .conf .row { min-width: 366px; }
  .routing { position: relative; right: auto; top: auto; width: auto; margin: -18px 0 0 22%; }
  .stage__badge { left: 20px; bottom: 18px; width: 52px; height: 52px; font-size: 20px; }
  .feature-detail { padding: 24px; }
  .material-window { padding: 18px; }
  .plat-grid, .device-grid { grid-template-columns: minmax(0, 1fr); }
  .plat-card { padding: 28px; }
  .plat-actions .btn { padding-inline: 20px; }
  .shot-row { flex-direction: column; align-items: center; }
  .fact-row { flex-direction: row; flex-wrap: wrap; }
  .fact-pill { font-size: 11.5px; padding: 5px 9px; }
  .faq-item { padding-inline: 22px; }
  .article-card { padding: 26px; }
  .dl-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; min-height: 52px; padding: 0; border-radius: var(--r-round); }
  .dl-fab__text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #install table, #install tbody, #install tr, #install td { display: block; width: 100%; min-width: 0; }
  #install thead { display: none; }
  #install tr { margin-bottom: 20px; padding: 12px; border-radius: var(--r-mini); background: var(--bg-panel); color: var(--text); }
  #install td { padding: 10px; border: 0; }
  #install td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 6px; font-weight: var(--weight-bold); }
  #install table code { display: block; max-width: 100%; overflow-x: auto; white-space: pre; overflow-wrap: normal; word-break: normal; -webkit-overflow-scrolling: touch; }
}
@media (prefers-reduced-motion: reduce) {
  .scan { animation: none; opacity: 1; transform: none; }
  .final-ring { animation: none; opacity: 0; }
  .routing { animation: none; }
  [role="tabpanel"].is-entering { animation: none; }
}