.tabs { min-width: 0; }
.tabs__list, [role="tablist"].tab-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  max-width: 100%;
  margin-bottom: var(--space-6);
  padding: 4px;
  overflow-x: auto;
}
.tabs [role="tab"] {
  flex-shrink: 0;
  min-height: var(--tap-h);
  padding: 10px 22px;
  border: var(--line) solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-bg);
  color: var(--c-deep);
  font-size: 14px;
  font-weight: var(--weight-semibold);
}
.tabs [role="tab"]:hover { background: var(--c-panel); color: var(--c-deep); }
.tabs [role="tab"][aria-selected="true"] { background: var(--c-deep); border-color: var(--c-deep); color: var(--c-white); }
.tabs__panel {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: center;
  gap: var(--space-7);
  padding: var(--space-7);
  border: var(--line) solid var(--c-border);
  border-radius: var(--r-detail);
  background: var(--c-panel);
  color: var(--c-text);
}
.tabs__panel > * { min-width: 0; }
.tabs__panel p { margin-top: var(--space-4); color: var(--c-muted); }
.tabs__panel pre { background: var(--c-bg); color: var(--c-text); }
.feature-diagram { display: block; width: 100%; max-height: 280px; color: var(--c-deep); }
.feature-diagram .connection { fill: none; stroke: var(--c-line-soft); stroke-width: 2; stroke-dasharray: 6 7; }
.feature-diagram .device-line { fill: none; stroke: currentColor; stroke-width: 2; }
.feature-diagram .status { fill: var(--c-success); }
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4);
  border: var(--line) solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-bg);
  color: var(--c-deep);
}
.toc a { display: inline-flex; align-items: center; min-height: var(--tap-h); padding: 8px 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: var(--weight-semibold); }
.toc a:hover, .toc a[aria-current="location"] { background: var(--c-panel); color: var(--c-deep); }
.toc--sticky { position: sticky; top: var(--space-4); z-index: 10; }
.toc--flow { position: static; }
.faq-list { border: var(--line) solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); }
.faq-item + .faq-item { border-top: var(--line) solid var(--c-border); }
.faq-item summary { position: relative; min-height: 64px; padding: 20px 56px 20px 24px; font-weight: var(--weight-bold); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 18px; color: var(--c-deep); font-family: var(--font-mono); font-size: 22px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item__answer { padding: 0 24px 24px; color: var(--c-muted); }
.faq-item__answer > * + * { margin-top: var(--space-3); }
.term-card { padding: var(--space-5); border-top: 3px solid var(--c-accent); }
.term-card__category { display: inline-block; margin-bottom: var(--space-3); color: var(--c-muted); font-size: 12px; font-weight: var(--weight-semibold); }
.term-card h3 { font-family: var(--font-mono); font-size: 20px; letter-spacing: 0; }
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 56px;
  max-width: 100%;
  padding: 10px 24px;
  border: var(--line) solid var(--c-deep);
  border-radius: var(--r-pill);
  background: var(--c-deep);
  color: var(--c-white);
  text-align: left;
}
.store-button:hover { background: var(--c-deep-field); color: var(--c-white); }
.store-button svg { width: 26px; height: 28px; flex-shrink: 0; fill: currentColor; }
.store-button__words { display: block; }
.store-button__eyebrow { display: block; font-size: 11px; line-height: 1.3; }
.store-button__title { display: block; font-size: 16px; line-height: 1.4; font-weight: var(--weight-bold); }
.get-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: var(--space-6); }
.get-actions > a { max-width: 100%; }
.get-actions [data-os-pick] { flex: 0 1 auto; }
.plat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-5); }
.plat-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: var(--space-6); border: var(--line) solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); }
.plat-card__icon { width: 30px; height: 30px; margin-bottom: var(--space-5); color: var(--c-deep); flex-shrink: 0; }
.plat-card p { margin-top: var(--space-3); color: var(--c-muted); }
.plat-card__price { color: var(--c-deep); font-weight: var(--weight-bold); }
.plat-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-5); }
.plat-actions > a { max-width: 100%; }
.plat-card::before { display: none; content: attr(data-mine); position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--c-panel); color: var(--c-deep); font-size: 12px; font-weight: var(--weight-semibold); }
html[data-visitor-os="ios"] .plat-card[data-plat="ios"] { order: -1; border-color: var(--c-accent); }
html[data-visitor-os="mac"] .plat-card[data-plat="mac"] { order: -1; border-color: var(--c-accent); }
html[data-visitor-os="windows"] .plat-card[data-plat="windows"] { order: -1; border-color: var(--c-accent); }
html[data-visitor-os="android"] .plat-card[data-plat="android"] { order: -1; border-color: var(--c-accent); }
html[data-visitor-os="linux"] .plat-card[data-plat="linux"] { order: -1; border-color: var(--c-accent); }
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: calc(20px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - var(--gutter) * 2);
  padding: 16px 24px;
  border: var(--line) solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-deep);
  color: var(--c-white);
  font-size: 14px;
  text-align: center;
}
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.fact { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 14px; border: var(--line) solid var(--c-border); border-radius: var(--r-pill); background: var(--c-bg); color: var(--c-deep); font-size: 12px; font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
.band--deep .fact { border-color: var(--c-on-dark-line); background: var(--c-on-dark-fill); color: var(--c-white); }
.official-shot { width: 100%; max-width: 280px; margin-inline: auto; flex-shrink: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot { border: var(--line) solid var(--c-border); border-radius: var(--r-shot); background: var(--c-bg); color: var(--c-muted); }
.official-shot figcaption { padding: 12px 14px; font-size: 12px; line-height: 1.6; }
.shot-row { display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap; gap: var(--space-6); }
.device-entry { display: flex; align-items: center; gap: var(--space-5); padding: var(--space-6); border: var(--line) solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); }
.device-entry:hover { border-color: var(--c-accent); }
.device-entry svg { width: 48px; height: 64px; flex-shrink: 0; color: var(--c-deep); }
.device-entry__title { display: block; font-size: 20px; font-weight: var(--weight-display); }
.device-entry__note { display: block; margin-top: var(--space-2); color: var(--c-muted); font-size: 14px; }
.article-card { display: flex; flex-direction: column; }
.article-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-5); color: var(--c-muted); font-size: 12px; }
.article-card h3 { font-size: 21px; line-height: 1.5; }
.article-card h3 a:hover { color: var(--c-deep); text-decoration: underline; }
.article-card .card__link { margin-top: auto; padding-top: var(--space-5); }
.tag { display: inline-flex; align-items: center; max-width: 100%; padding: 4px 12px; border-radius: var(--r-pill); background: var(--c-panel); color: var(--c-deep); font-size: 12px; font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
.callout { margin: 0; padding: 24px 28px; border: var(--line) solid var(--c-border); border-left: 4px solid var(--c-accent); border-radius: var(--r-card); background: var(--c-panel); color: var(--c-text); }
.callout strong { color: var(--c-deep); }
.callout p + p { margin-top: var(--space-3); }
.callout--warning { border-left-color: var(--c-warn-edge); background: var(--c-warn); color: var(--c-text); }
.store-guide { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: var(--space-5); padding: var(--space-6); border: var(--line) solid var(--c-border); border-radius: var(--r-card); background: var(--c-panel); color: var(--c-text); }
.store-guide__text p { margin-top: var(--space-3); color: var(--c-muted); }
.dl-fab { position: fixed; z-index: 25; right: var(--gutter); bottom: calc(var(--space-5) + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: 52px; padding: 12px 24px; border: var(--line) solid var(--c-border); border-radius: var(--r-pill); background: var(--c-deep); color: var(--c-white); font-size: 14px; font-weight: var(--weight-bold); }
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.dl-fab:hover { background: var(--c-deep-field); color: var(--c-white); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: var(--line) solid var(--c-border); border-radius: var(--r-card); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; background: var(--c-bg); color: var(--c-text); }
.data-table th, .data-table td, .prose table th, .prose table td { min-width: 7em; padding: 16px 20px; border-bottom: var(--line) 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-deep); font-weight: var(--weight-bold); }
.data-table tr:last-child td { border-bottom: 0; }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; background: var(--c-bg); color: var(--c-text); }
.prose table code { overflow-wrap: anywhere; }
#install table code { overflow-wrap: normal; word-break: normal; white-space: pre; }
#install td { max-width: 42em; }
#install .command { display: block; max-width: 100%; overflow-x: auto; }
.group-list { margin: 0; padding: 0; list-style: none; border: var(--line) solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); }
.group-list li + li { border-top: var(--line) solid var(--c-border); }
.group-list a { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 56px; padding: 16px 24px; }
.group-list a::after { content: "›"; color: var(--c-deep); font-size: 22px; }
.group-list a:hover { color: var(--c-deep); }
.preview-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.preview-shot-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 750 / 1334; border-radius: var(--r-shot); background: var(--c-panel); color: var(--c-deep); text-align: center; }
.preview-swatches { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--space-4); }
.preview-swatch { min-width: 0; overflow-wrap: anywhere; border: var(--line) solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); }
.preview-swatch__color { display: block; height: 64px; border-radius: var(--r-card) var(--r-card) 0 0; }
.preview-swatch code { display: block; padding: 12px; font-size: 12px; }
.sw-bg { background: var(--c-bg); color: var(--c-text); }
.sw-panel { background: var(--c-panel); color: var(--c-text); }
.sw-deep { background: var(--c-deep); color: var(--c-white); }
.sw-field { background: var(--c-deep-field); color: var(--c-white); }
.sw-border { background: var(--c-border); color: var(--c-text); }
.sw-line { background: var(--c-line-soft); color: var(--c-text); }
.sw-accent { background: var(--c-accent); color: var(--c-text); }
.sw-press { background: var(--c-accent-press); color: var(--c-white); }
.sw-text { background: var(--c-text); color: var(--c-white); }
.sw-muted { background: var(--c-muted); color: var(--c-white); }
.sw-success { background: var(--c-success); color: var(--c-text); }
.sw-warn { background: var(--c-warn); color: var(--c-text); }
.sw-warn-edge { background: var(--c-warn-edge); color: var(--c-text); }
.sw-error { background: var(--c-error); color: var(--c-text); }
.sw-white { background: var(--c-white); color: var(--c-text); }
.sw-dark-muted { background: var(--c-deep); color: var(--c-on-dark-muted); }
.sw-dark-soft { background: var(--c-deep); color: var(--c-on-dark-soft); }
.sw-dark-line { background: var(--c-deep); color: var(--c-white); border-bottom: 8px solid var(--c-on-dark-line); }
.sw-dark-fill { background: var(--c-deep); color: var(--c-white); }
.sw-dark-fill::after { content: ""; display: block; height: 100%; background: var(--c-on-dark-fill); color: var(--c-white); }
.sw-grid { background: var(--c-deep-field); color: var(--c-white); border-bottom: 8px solid var(--c-grid-line); }
.sw-focus { background: var(--c-focus); color: var(--c-text); }
.sw-mask { background: var(--mask-solid); color: var(--c-white); }
.sw-veil { background: var(--c-veil); color: var(--c-text); }
.sw-clear { background: var(--c-clear); color: var(--c-text); }
.preview-type > * + *, .preview-section > * + * { margin-top: var(--space-5); }
.preview-h1 { font-size: var(--text-h1); }
.preview-section { margin-top: var(--space-8); }
@media (max-width:960px) {
  .plat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tabs__panel { gap: var(--space-5); padding: var(--space-6); }
}
@media (max-width:640px) {
  .tabs__list, [role="tablist"].tab-bar { justify-content: flex-start; }
  .tabs__panel, .plat-grid { grid-template-columns: minmax(0,1fr); }
  .tabs__panel { padding: var(--space-5); }
  .get-actions { align-items: stretch; }
  .get-actions > a { flex: 1 1 220px; }
  .get-actions [data-os-pick] { flex: 1 1 220px; }
  .facts { justify-content: center; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .fact { padding: 5px 10px; font-size: 11px; }
  .shot-row { flex-direction: column; align-items: center; }
  .official-shot { max-width: min(280px,100%); }
  .device-entry { gap: var(--space-4); padding: var(--space-5); }
  .store-guide { grid-template-columns: minmax(0,1fr); }
  .dl-fab { width: 52px; min-width: 52px; height: 52px; padding: 0; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); border-radius: var(--r-circle); }
  .dl-fab__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .has-article-fab { padding-bottom: 88px; }
  #install table, #install tbody, #install tr, #install td { display: block; width: 100%; }
  #install thead { display: none; }
  #install tr { padding-block: var(--space-3); border-bottom: var(--line) solid var(--c-border); }
  #install td { min-width: 0; max-width: 100%; border: 0; }
  #install td::before { content: attr(data-label); display: block; margin-bottom: var(--space-2); color: var(--c-deep); font-weight: var(--weight-bold); }
  #install td code { word-break: normal; overflow-wrap: normal; white-space: pre; }
  #install td pre { padding: var(--space-3); }
  .preview-swatches { grid-template-columns: repeat(2,minmax(0,1fr)); }
}