.tabs { min-width: 0; }
.tablist, [role="tablist"] {
  display: flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 6px 3px 12px; overflow-x: auto; overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
[role="tab"] {
  display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0;
  min-height: 48px; padding: 10px 22px; border: 1px solid var(--c-border);
  border-radius: var(--r-pill); background: var(--c-white); color: var(--c-ink);
  font-size: var(--text-sm); font-weight: var(--weight-semibold); white-space: nowrap;
}
[role="tab"]:hover { border-color: var(--c-navy); }
[role="tab"][aria-selected="true"] { background: var(--c-navy); color: var(--c-white); border-color: var(--c-navy); }
[role="tabpanel"] { margin-top: 16px; }
.feature-panel { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 48px; padding: 48px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-white); color: var(--c-ink); }
.feature-panel > * { min-width: 0; }
.feature-panel p { color: var(--c-muted); }
.feature-panel pre { margin-bottom: 0; }
.feature-diagram { width: 100%; max-width: 430px; justify-self: center; }
.diagram-line { fill: none; stroke: var(--c-navy); stroke-width: 1.5; stroke-dasharray: 5 6; }
.diagram-disc { fill: var(--c-panel); stroke: var(--c-border); }
.diagram-label { fill: var(--c-ink); font-family: var(--font-mono); font-size: 13px; font-weight: var(--weight-bold); }
.toc {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 40px; padding: 16px; border: 1px solid var(--c-border);
  border-radius: var(--r-card); background: var(--c-white); color: var(--c-ink);
}
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--r-pill); font-size: var(--text-sm); }
.toc a:hover, .toc a[aria-current="location"] { background: var(--c-panel); color: var(--c-navy-deep); }
.toc-title { margin: 0; padding: 8px 16px; font-weight: var(--weight-bold); }
.toc-sticky { position: sticky; top: 16px; align-self: start; z-index: 2; }
.toc-static { position: static; }
.faq-list { border-top: 1px solid var(--c-border); }
.faq-item { border-bottom: 1px solid var(--c-border); background: var(--c-white); color: var(--c-ink); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 20px 24px; list-style: none; font-weight: var(--weight-bold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; color: var(--c-navy); font-family: var(--font-mono); font-size: 24px; font-weight: var(--weight-normal); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 24px; color: var(--c-muted); }
.faq-answer > :last-child { margin-bottom: 0; }
.term-card { padding: 28px; background: var(--c-white); color: var(--c-ink); border: 1px solid var(--c-border); border-radius: var(--r-card); }
.term-card dt { font-family: var(--font-mono); font-size: var(--text-lg); font-weight: var(--weight-bold); overflow-wrap: anywhere; }
.term-card dd { margin: 16px 0 0; color: var(--c-muted); }
.term-category { display: inline-block; margin-bottom: 16px; color: var(--c-navy); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.store-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; max-width: 100%; padding: 10px 24px;
  border: 2px solid var(--c-navy); border-radius: var(--r-pill);
  background: var(--c-navy); color: var(--c-white); text-align: left;
  transition: background-color var(--speed),border-color var(--speed);
}
.store-button:hover { background: var(--c-navy-deep); color: var(--c-white); border-color: var(--c-navy-deep); }
.store-button svg { width: 27px; height: 29px; flex-shrink: 0; }
.store-button-copy { display: block; min-width: 0; }
.store-button small { display: block; font-size: 11px; line-height: 1.4; }
.store-button strong { display: block; font-size: 17px; font-weight: var(--weight-bold); line-height: 1.4; }
.get-actions > a { flex: 0 1 auto; }
.get-note { max-width: 100%; }
.plat-grid { display: flex; flex-wrap: wrap; align-items: stretch; gap: 24px; }
.plat-card {
  position: relative; flex: 1 1 340px; min-width: 0; max-width: 100%;
  padding: 32px; background: var(--c-white); color: var(--c-ink);
  border: 1px solid var(--c-border); border-radius: var(--r-card);
}
.plat-card h3 { margin-top: 12px; }
.plat-card p { color: var(--c-muted); }
.plat-card .plat-price { color: var(--c-navy-deep); font-weight: var(--weight-bold); }
.plat-card::before {
  content: attr(data-mine); display: none; width: fit-content; max-width: 100%;
  margin-bottom: 16px; padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--c-banner); color: var(--c-ink); font-size: var(--text-xs); font-weight: var(--weight-bold);
}
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; }
.plat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.platform-icon { width: 32px; height: 32px; flex-shrink: 0; color: var(--c-navy); }
.wx-open-tip {
  position: fixed; z-index: var(--layer-tip); left: var(--gutter); right: var(--gutter);
  bottom: max(20px,env(safe-area-inset-bottom)); width: fit-content; max-width: min(560px,calc(100% - var(--gutter) * 2));
  margin-inline: auto; padding: 20px 24px;
  border: 1px solid var(--c-border); border-radius: var(--r-card);
  background: var(--c-banner); color: var(--c-ink); font-size: var(--text-sm);
}
.wx-open-tip button { min-width: 44px; min-height: 44px; margin-left: 12px; border-radius: var(--r-pill); background: var(--c-white); color: var(--c-ink); }
.fact-pills, .badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.fact-pills li { margin: 0; min-width: 0; max-width: 100%; padding: 7px 14px; border: 1px solid var(--c-border); border-radius: var(--r-pill); background: var(--c-white); color: var(--c-ink); font-size: var(--text-xs); overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--c-border); background: var(--c-panel); color: var(--c-navy-deep); font-size: var(--text-xs); font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
.badge-warn { background: var(--c-banner); color: var(--c-ink); border-color: var(--c-banner); }
.status-dot { display: inline-block; width: 8px; height: 8px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--c-success); color: var(--c-white); }
.official-shot { width: 100%; max-width: 280px; margin: 0 auto; padding: 0; flex-shrink: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot { outline: 1px solid var(--c-border); border-radius: var(--r-shot); }
.official-shot figcaption { padding-top: 12px; background: var(--c-bg); color: var(--c-muted); font-size: var(--text-xs); line-height: 1.6; }
.shot-row { display: flex; justify-content: center; align-items: flex-start; gap: 32px; }
.shot-placeholder {
  display: grid; place-items: center; width: 100%; aspect-ratio: 750 / 1334;
  padding: 24px; border-radius: var(--r-shot);
  background: var(--c-panel); color: var(--c-navy-deep); text-align: center;
  font-family: var(--font-mono); font-size: var(--text-sm);
}
.device-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.device-card { display: flex; align-items: center; gap: 24px; padding: 28px; border-radius: var(--r-card); border: 1px solid var(--c-border); background: var(--c-white); color: var(--c-ink); }
.device-card:hover { border-color: var(--c-cyan); }
.device-card > svg { width: 48px; height: 64px; flex-shrink: 0; color: var(--c-navy); }
.device-card > div { min-width: 0; }
.device-card h3 { margin: 0 0 8px; font-size: var(--text-lg); }
.device-card p { margin: 0; color: var(--c-muted); font-size: var(--text-sm); }
.article-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-white); color: var(--c-ink); }
.article-card h3 { margin: 0; font-size: var(--text-h3); }
.article-card p { margin: 0; color: var(--c-muted); }
.article-card .article-link { margin-top: auto; padding-block: 8px; color: var(--c-navy-deep); font-weight: var(--weight-bold); }
.article-card .article-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: var(--text-xs); color: var(--c-muted); }
.callout { margin: 28px 0; padding: 24px 28px; border: 1px solid var(--c-border); border-left: 4px solid var(--c-cyan); border-radius: var(--r-small); background: var(--c-panel); color: var(--c-ink); }
.callout > :last-child { margin-bottom: 0; }
.callout-warn { border-left-color: var(--c-warn); background: var(--c-banner); color: var(--c-ink); }
.group-list { list-style: none; padding: 0; margin: 24px 0; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-white); color: var(--c-ink); }
.group-list li { margin: 0; }
.group-list li + li { border-top: 1px solid var(--c-border); }
.group-list a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; min-height: 64px; }
.group-list a::after { content: "›"; flex-shrink: 0; color: var(--c-navy); font-size: 24px; }
.group-list a:hover { background: var(--c-panel); color: var(--c-navy-deep); }
.table-scroll { overflow-x: auto; max-width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th, .data-table td, .prose table th, .prose table td {
  min-width: 7em; padding: 16px 20px; border: 1px solid var(--c-border);
  vertical-align: top; overflow-wrap: normal; word-break: normal;
}
.data-table th, .prose table th { background: var(--c-panel); color: var(--c-ink); font-weight: var(--weight-bold); }
.data-table td, .prose table td { background: var(--c-white); color: var(--c-ink); }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; margin-block: 28px; text-align: left; }
.data-table code, .prose table code { word-break: normal; }
#install table code { display: inline-block; max-width: 100%; white-space: pre; overflow-x: auto; overflow-wrap: normal; word-break: normal; vertical-align: top; }
.dl-fab {
  position: fixed; z-index: var(--layer-float); right: 24px;
  bottom: max(24px,env(safe-area-inset-bottom)); display: inline-flex; align-items: center;
  justify-content: center; gap: 10px; min-height: 54px; padding: 12px 24px;
  border: 1px solid var(--c-white); border-radius: var(--r-pill);
  background: var(--c-navy); color: var(--c-white); font-size: var(--text-sm); font-weight: var(--weight-bold);
}
.dl-fab:hover { background: var(--c-navy-deep); color: var(--c-white); }
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.article-store-guide { margin-top: 48px; padding: 28px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-panel); color: var(--c-ink); }
.article-store-guide h2 { margin-top: 0; font-size: var(--text-h3); }
.article-store-guide p { color: var(--c-muted); }
.swatch-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-top: 32px; }
.swatch { min-width: 0; border: 1px solid var(--c-border); border-radius: var(--r-small); background: var(--c-white); color: var(--c-ink); }
.swatch-color { min-height: 72px; border-bottom: 1px solid var(--c-border); }
.swatch code { display: block; padding: 12px; font-size: 11px; }
.sw-bg { background: var(--c-bg); color: var(--c-ink); }
.sw-panel { background: var(--c-panel); color: var(--c-ink); }
.sw-navy { background: var(--c-navy); color: var(--c-white); }
.sw-deep { background: var(--c-navy-deep); color: var(--c-white); }
.sw-border { background: var(--c-border); color: var(--c-ink); }
.sw-cyan { background: var(--c-cyan); color: var(--c-ink); }
.sw-press { background: var(--c-cyan-press); color: var(--c-ink); }
.sw-soft { background: var(--c-cyan-soft); color: var(--c-ink); }
.sw-ring { background: var(--c-cyan-ring); color: var(--c-ink); }
.sw-ink { background: var(--c-ink); color: var(--c-white); }
.sw-muted { background: var(--c-muted); color: var(--c-white); }
.sw-success { background: var(--c-success); color: var(--c-ink); }
.sw-warn { background: var(--c-warn); color: var(--c-ink); }
.sw-banner { background: var(--c-banner); color: var(--c-ink); }
.sw-coral { background: var(--c-coral); color: var(--c-ink); }
.sw-white { background: var(--c-white); color: var(--c-ink); }
.sw-darktext { background: var(--c-on-dark-2); color: var(--c-ink); }
.sw-darkline { background: var(--c-line-dark); color: var(--c-white); }
.sw-darkline2 { background: var(--c-line-dark-2); color: var(--c-white); }
.sw-darkfill { background: var(--c-fill-dark); color: var(--c-white); }
.sw-veil { background: var(--c-veil); color: var(--c-white); }
.swatch-dark-base { background: var(--c-navy); color: var(--c-white); }
.preview-label { margin-bottom: 32px; color: var(--c-navy-deep); font-family: var(--font-mono); font-size: var(--text-sm); font-weight: var(--weight-bold); }
.preview-display { margin-bottom: 24px; font-size: var(--text-h1); font-family: var(--font-display); font-weight: var(--weight-display); line-height: 1.14; }
.preview-subtitle { font-size: 20px; color: var(--c-muted); }
.preview-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-block: 24px; }
.preview-spacer { margin-top: 48px; }
.preview-fab-example { position: static; width: fit-content; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (max-width: 900px) {
  .feature-panel { gap: 32px; padding: 32px; }
  .swatch-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .feature-panel { grid-template-columns: minmax(0,1fr); padding: 24px; gap: 24px; }
  .toc { padding: 10px; gap: 4px; }
  .toc a { padding-inline: 12px; }
  .toc-sticky { position: static; }
  .faq-item summary { padding-inline: 16px; gap: 16px; }
  .faq-answer { padding-inline: 16px; }
  .device-grid { grid-template-columns: minmax(0,1fr); }
  .device-card { gap: 16px; padding: 24px; }
  .plat-card { flex-basis: 100%; padding: 24px; }
  .plat-actions { gap: 10px; }
  .shot-row { flex-direction: column; align-items: center; }
  .official-shot { max-width: 280px; }
  .fact-pills, .badge-row { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .fact-pills li { padding: 6px 10px; }
  .article-card { padding: 24px; }
  .callout { padding: 20px; }
  .dl-fab { width: 52px; height: 52px; min-height: 52px; padding: 0; right: 18px; bottom: max(18px,env(safe-area-inset-bottom)); border-radius: var(--r-circle); }
  .dl-fab .dl-fab-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .swatch-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #install table { display: block; width: 100%; }
  #install thead { display: none; }
  #install tbody, #install tr, #install td { display: block; width: 100%; min-width: 0; }
  #install tr + tr { margin-top: 20px; }
  #install td { padding: 14px 16px; }
  #install td + td { border-top: 0; }
  #install td:first-child { background: var(--c-panel); color: var(--c-ink); font-weight: var(--weight-bold); }
  #install table code { white-space: pre; overflow-wrap: normal; word-break: normal; }
}