.tabs { min-width: 0; }
[role="tablist"] { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
[role="tab"] { min-height: 44px; padding: 10px 20px; border: 0; border-radius: var(--r-pill); background: var(--clear); color: var(--text-muted); font-weight: var(--weight-semibold); }
[role="tab"]:hover { background: var(--bg); color: var(--text); }
[role="tab"][aria-selected="true"] { background: var(--accent); color: var(--text); box-shadow: var(--shadow-soft); }
[role="tabpanel"] { margin-top: 24px; min-width: 0; }
[role="tablist"][aria-orientation="vertical"] { flex-direction: column; align-items: stretch; }
[role="tablist"][aria-orientation="vertical"] [role="tab"] { text-align: left; }
.toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; font-size: 14px; color: var(--text-muted); }
.toc a:hover, .toc a[aria-current] { background: var(--bg-panel); color: var(--text); }
.toc--sticky { position: sticky; top: 12px; z-index: 5; }
.faq-item { padding: 0; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); margin-bottom: 12px; }
.faq-item summary { position: relative; min-height: 64px; padding: 20px 56px 20px 24px; font-weight: var(--weight-semibold); list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 20px; font-family: var(--font-mono); color: var(--accent-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 24px; color: var(--text-muted); line-height: 1.9; }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { padding: 28px; border-radius: var(--r-card); background: var(--bg); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-soft); min-width: 0; }
.term-card h3 { font-family: var(--font-mono); font-size: 20px; margin: 12px 0; overflow-wrap: anywhere; }
.term-card p { margin-bottom: 0; color: var(--text-muted); }
.term-category { font-size: 12px; color: var(--accent-dark); font-weight: var(--weight-bold); }
.store-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 10px 22px; border: 0; border-radius: var(--r-pill); background: var(--text); color: var(--on-dark); text-decoration: none; max-width: 100%; box-shadow: var(--shadow-soft); }
.store-button:hover { background: var(--cell); color: var(--on-dark); }
.store-button svg { width: 25px; height: 29px; flex-shrink: 0; }
.store-button-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.store-button small { font-size: 11px; }
.store-button strong { font-size: 16px; font-weight: var(--weight-semibold); }
.get-actions > a { flex-shrink: 0; }
.get-actions > [data-os-pick] { white-space: normal; }
.plat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plat-card { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--border); border-radius: var(--r-hero-sm); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.plat-card::before { display: none; position: absolute; right: 18px; top: 18px; content: attr(data-mine); padding: 4px 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--text); font-size: 12px; font-weight: var(--weight-semibold); }
.plat-card h3 { margin: 16px 0 12px; }
.plat-card p { color: var(--text-muted); }
.plat-card .plat-price { color: var(--text); font-weight: var(--weight-bold); }
.plat-icon { width: 28px; height: 28px; color: var(--text); flex-shrink: 0; }
.plat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 20px; }
.plat-actions .btn { min-height: 48px; padding-inline: 20px; }
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; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(420px, calc(100% - 32px)); padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); z-index: 80; font-size: 14px; line-height: 1.8; }
.wx-open-tip button { min-width: 44px; min-height: 44px; border: 0; border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text); }
.fact-row, .tag-row { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.fact { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.fact strong { color: var(--text); font-weight: var(--weight-semibold); }
.hero .fact { background: var(--clear); color: var(--on-dark-soft); border-color: var(--line-on-dark); }
.hero .fact strong { color: var(--on-dark); }
.tag { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 11px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.tag--accent { background: var(--accent); color: var(--text); border-color: var(--accent); }
.tag-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--accent-dark); }
.official-shot { width: 100%; max-width: 280px; margin: 0 auto; padding: 0; flex-shrink: 0; min-width: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: 10px; }
.official-shot { outline: 1px solid var(--border); border-radius: var(--r-small); background: var(--bg); color: var(--text); }
.official-shot figcaption { padding: 12px 14px; font-size: 12px; line-height: 1.7; color: var(--text-muted); }
.shot-row { display: flex; justify-content: center; align-items: flex-start; gap: 32px; }
.device-entry { display: flex; align-items: flex-start; gap: 20px; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); text-decoration: none; box-shadow: var(--shadow-soft); }
.device-entry:hover { border-color: var(--accent-dark); }
.device-entry svg { width: 40px; height: 48px; color: var(--accent-dark); flex-shrink: 0; }
.device-entry h3 { margin: 0 0 8px; font-size: 22px; }
.device-entry p { margin: 0; color: var(--text-muted); font-size: 14px; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.article-card h3 { margin: 18px 0 14px; font-size: 23px; line-height: 1.45; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { color: var(--accent-dark); }
.article-card p { color: var(--text-muted); font-size: 14px; }
.article-card .article-link { margin-top: auto; padding-top: 12px; color: var(--accent-dark); font-size: 14px; font-weight: var(--weight-semibold); }
.callout { position: relative; padding: 24px 28px; margin: 24px 0; border: 1px solid var(--border); border-left: 4px solid var(--accent-dark); border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); line-height: 1.85; }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-left-color: var(--warn); }
.callout--error { border-left-color: var(--error); }
.callout--success { border-left-color: var(--success); }
.group-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.group-list li + li { border-top: 1px solid var(--border); }
.group-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 16px 20px; text-decoration: none; }
.group-list a::after { content: "›"; color: var(--text-muted); flex-shrink: 0; }
.table-scroll { overflow-x: auto; max-width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-card); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--bg); color: var(--text); }
.data-table th, .data-table td, .prose table th, .prose table td, .manual-content table th, .manual-content 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;
}
.data-table th, .prose table th, .manual-content table th { background: var(--bg-panel); color: var(--text); font-weight: var(--weight-semibold); }
.data-table tr:last-child td { border-bottom: 0; }
.prose table, .manual-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; }
.store-guide-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.store-guide-card h3 { margin-top: 0; font-size: 24px; }
.store-guide-card p { color: var(--text-muted); }
.store-guide-card .get-actions { margin-top: 20px; }
.dl-fab { position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: var(--r-pill); background: var(--accent); color: var(--text); text-decoration: none; box-shadow: var(--shadow-soft); font-size: 14px; font-weight: var(--weight-bold); z-index: var(--z-fab); }
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
body.has-dl-fab { padding-bottom: 88px; }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.swatch { min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); }
.swatch code { display: block; font-size: 12px; margin-top: 10px; }
.swatch-color { display: block; min-height: 72px; border: 1px solid var(--border); border-radius: var(--r-small); color: var(--text); }
.sw-bg { background: var(--bg); }
.sw-panel { background: var(--bg-panel); }
.sw-dark { background: var(--bg-panel-2); }
.sw-border { background: var(--border); }
.sw-accent { background: var(--accent); }
.sw-hover { background: var(--accent-hover); }
.sw-olive { background: var(--accent-dark); }
.sw-text { background: var(--text); }
.sw-muted { background: var(--text-muted); }
.sw-success { background: var(--success); }
.sw-warn { background: var(--warn); }
.sw-error { background: var(--error); }
.sw-bar { background: var(--bar); }
.sw-axis { background: var(--axis); }
.sw-soft { background: var(--on-dark-soft); }
.sw-dark-muted { background: var(--on-dark-muted); }
.sw-line { background: var(--line-on-dark); }
.sw-line-strong { background: var(--line-on-dark-strong); }
.sw-ghost { background: var(--ghost-hover); }
.sw-cell { background: var(--cell); }
.sw-cell-line { background: var(--cell-line); }
.sw-bezel { background: var(--bezel); }
.sw-titanium { background: var(--titanium); }
.sw-lens { background: var(--lens); }
.sw-highlight { background: var(--highlight); }
.sw-screen-top { background: var(--screen-top); }
.sw-screen-base { background: var(--screen-base); }
.sw-glow { background: var(--lime-glow); }
.sw-glow-soft { background: var(--lime-glow-soft); }
.sw-chip { background: var(--chip-q); }
.sw-clear { background: var(--clear); }
.sw-veil { background: var(--veil); }
.preview-shot { display: grid; place-items: center; aspect-ratio: 750 / 1334; width: 100%; border-radius: var(--r-small); background: var(--bg-panel); color: var(--text-muted); font-size: 14px; text-align: center; padding: 20px; }
.preview-dark { padding: 24px; border-radius: var(--r-card); background: var(--bg-panel-2); color: var(--on-dark); }
.preview-heading { margin-top: 0; margin-bottom: 32px; }
.preview-subtitle { font-size: 22px; }
.preview-sample { margin-top: 32px; }
.preview-menu { display: none; }
.preview-menu summary { list-style: none; }
.preview-menu nav { position: absolute; top: 100%; left: 0; right: 0; padding: 16px var(--gutter); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); z-index: 10; }
.preview-menu nav a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 12px 16px; text-decoration: none; }
@media (max-width: 1280px) {
  .preview-menu { display: block; }
}
@media (max-width: 640px) {
  .plat-grid { grid-template-columns: minmax(0, 1fr); }
  .plat-card { padding: 28px 20px; }
  .plat-actions { gap: 12px; }
  .plat-actions .btn { flex: 1 1 auto; }
  .get-actions { align-items: stretch; }
  .get-actions > a { flex-shrink: 1; }
  .fact-row { flex-direction: row; flex-wrap: wrap; }
  .shot-row { flex-direction: column; align-items: center; gap: 24px; }
  .official-shot { margin-inline: auto; }
  .term-card, .article-card, .device-entry { padding: 22px; }
  .device-entry { gap: 16px; }
  .callout { padding: 20px; }
  .toc { padding: 8px; }
  .toc--sticky { position: static; }
  .toc a { padding-inline: 12px; }
  .dl-fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 52px; height: 52px; min-height: 52px; padding: 0; }
  .dl-fab .dl-fab-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #install table, #install .data-table { display: block; width: 100%; overflow-x: auto; }
  #install thead { display: none; }
  #install tbody, #install tr, #install td, #install th { display: block; width: 100%; min-width: 0; }
  #install tr { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
  #install td, #install th { padding: 10px 16px; border: 0; }
  #install td:first-child { 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; }
}