.get-actions, .cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; max-width: 100%; }
.get-actions > *, .cta > * { min-width: 0; }
.get-actions--start { justify-content: flex-start; }
.get-note { margin: 0 0 18px; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.get-note [data-pkg-ver] { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); }
.dot-sep { margin-inline: 6px; color: var(--text-secondary); }
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  max-width: 100%;
  padding: 10px 20px;
  background: var(--text);
  color: var(--bg-panel);
  border: 1px solid var(--text);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-chip);
  text-align: left;
  transition: transform var(--motion-fast) var(--ease);
}
.store-button svg { width: 26px; height: 30px; }
.store-button > span { display: block; min-width: 0; }
.store-button small { display: block; font-size: 11px; line-height: 1.4; }
.store-button strong { display: block; font-size: 16px; line-height: 1.4; font-weight: var(--weight-semibold); }
.store-button:hover { transform: translateY(-1px); }
.store-button:active { transform: translateY(1px); }
.store-button[aria-disabled="true"] { opacity: .5; transform: none; }
.store-guide { padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-plate); }
.store-guide p { color: var(--text-muted); }
.store-guide .store-guide-note { margin: 18px 0 0; font-size: 13px; }

.fact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 0; margin: 0; list-style: none; max-width: 100%; }
.fact-row--start { justify-content: flex-start; }
.fact-pill, .badge { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 28px; padding: 4px 11px; background: var(--bg-panel); color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.fact-pill svg, .badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.badge--accent { background: var(--accent-wash); color: var(--text); border-color: var(--accent-edge); }
.badge-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: var(--radius-round); background: var(--accent); color: var(--text); }
.badge--dynamic { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.section-dark .fact-pill, .section-dark .badge { background: var(--bg-panel-3); color: var(--text-on-dark); border-color: var(--border-dark); }

.plat-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.plat-card { position: relative; display: flex; flex-direction: column; min-width: 0; flex: 1 1 300px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-plate); scroll-margin-top: 32px; }
.plat-card h3 { margin-top: 12px; }
.plat-card p { color: var(--text-muted); }
.plat-card .plat-mark { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; }
.plat-mark svg { width: 26px; height: 26px; }
.plat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; }
.plat-actions > * { min-width: 0; }
.plat-card::before { display: none; content: attr(data-mine); align-self: flex-start; margin-bottom: 14px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--accent); color: var(--text); font-size: 12px; 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: inline-flex; }

.wx-open-tip { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(440px, calc(100% - 32px)); padding: 20px 24px; background: var(--bg-panel-2); color: var(--text-on-dark); border: 1px solid var(--border-dark); border-radius: var(--radius-card); box-shadow: var(--shadow-panel); font-size: 14px; }
.wx-open-tip button { min-width: 44px; min-height: 44px; background: var(--bg-panel-3); color: var(--text-on-dark); border: 1px solid var(--border-dark); border-radius: var(--radius-btn); }

.feature-tabs { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; min-width: 0; }
.feature-tabs > * { min-width: 0; }
.tab-list, [role="tablist"].tab-list { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tab-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  padding: 16px 20px;
  border: 1px solid var(--clear);
  border-radius: var(--radius-card);
  background: var(--clear);
  color: var(--text-secondary);
  text-align: left;
  font-size: 15px;
}
.tab-button::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: var(--radius-pill); background: var(--clear); color: var(--text); }
.tab-button svg { width: 22px; height: 22px; color: var(--accent-dark); }
.tab-button span { min-width: 0; }
.tab-button strong { display: block; font-weight: var(--weight-semibold); }
.tab-button small { display: block; margin-top: 3px; font-size: 12px; }
.tab-button[aria-selected="true"] { background: var(--bg-panel); color: var(--text); }
.tab-button[aria-selected="true"]::before { background: var(--accent); color: var(--text); }
.tab-panel { min-width: 0; padding: 32px; border-radius: var(--radius-card); border: 1px solid var(--border); background: var(--bg-panel); color: var(--text); }
.tab-panel p { margin-bottom: 20px; line-height: 1.9; }
.tab-panel pre { margin-bottom: 0; }
.section-dark .tab-button { color: var(--text-on-dark-muted); }
.section-dark .tab-button svg { color: var(--accent); }
.section-dark .tab-button[aria-selected="true"] { background: var(--bg-panel-3); color: var(--text-on-dark); }
.section-dark .tab-panel { background: var(--bg-panel-3); color: var(--text-on-dark); border-color: var(--border-dark); }
.section-dark .tab-panel p { color: var(--text-on-dark-muted); }
.section-dark .tab-panel pre { background: var(--bg-panel-2); color: var(--text-on-dark); border-color: var(--border-dark); }
.rule-diagram { display: grid; gap: 14px; max-width: 520px; margin: 8px auto 36px; padding: 28px; border: 1px solid var(--border-dark); border-radius: var(--radius-card); background: var(--bg-panel-2); color: var(--text-on-dark); }
.rule-diagram-row { display: flex; align-items: center; gap: 14px; height: 22px; }
.rule-diagram-row::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: var(--radius-round); background: var(--border-dark); color: var(--text-on-dark); }
.rule-diagram-row.is-hit::before { background: var(--accent); color: var(--text); }
.rule-diagram-row span { height: 8px; border-radius: var(--radius-pill); background: var(--border-dark); color: var(--text-on-dark); }
.rule-diagram-row span:first-child { width: 40%; }
.rule-diagram-row span:last-child { width: 25%; }
.rule-diagram-row.is-hit span { background: var(--text-secondary); color: var(--text-on-dark); }

.toc { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 16px; margin: 0 0 40px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-card); }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-btn); font-size: 14px; }
.toc a:hover, .toc a[aria-current="location"] { background: var(--gray-2); color: var(--text); }
.toc--sticky { position: sticky; top: 16px; z-index: 10; }
.faq-list { display: grid; gap: 12px; }
.faq-item { min-width: 0; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-card); }
.faq-item summary { position: relative; padding: 22px 56px 22px 24px; min-height: 64px; font-weight: var(--weight-semibold); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 20px; color: var(--accent-dark); font-family: var(--font-mono); font-size: 20px; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 24px; color: var(--text-muted); }
.faq-answer > :last-child { margin-bottom: 0; }
.term-card { padding: 28px; min-width: 0; border-top: 3px solid var(--accent); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-plate); }
.term-card dt { margin-bottom: 12px; font-family: var(--font-mono); font-weight: var(--weight-semibold); font-size: 18px; overflow-wrap: anywhere; }
.term-card dd { margin: 0; color: var(--text-muted); line-height: 1.85; }

.shot-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 40px; }
.official-shot { width: min(100%, 280px); max-width: 280px; flex-shrink: 0; margin: 0; padding: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-shot); }
.official-shot { outline: 1px solid var(--border); outline-offset: -1px; border-radius: var(--radius-shot); }
.official-shot figcaption { padding-top: 14px; background: var(--bg); color: var(--text-secondary); font-size: 13px; line-height: 1.7; text-align: center; }
.section-white .official-shot figcaption { background: var(--bg-panel); color: var(--text-muted); }
.section-dark .official-shot figcaption { background: var(--bg-panel-2); color: var(--text-on-dark-muted); }
.shot-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 750 / 1334; border: 1px solid var(--border); border-radius: var(--radius-shot); background: var(--gray-2); color: var(--text-secondary); font-family: var(--font-mono); font-size: 14px; }

.device-entry { display: flex; align-items: center; gap: 24px; padding: 28px; min-width: 0; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-plate); }
.device-entry > svg { width: 44px; height: 56px; color: var(--text-secondary); }
.device-entry > div { min-width: 0; }
.device-entry h3 { margin-bottom: 8px; }
.device-entry p { margin: 0; color: var(--text-muted); font-size: 14px; }
.device-entry:hover { border-color: var(--gray-4); }

.article-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-plate); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--text-muted); font-size: 12px; }
.article-card h3 { font-size: 20px; line-height: 1.5; }
.article-card p { color: var(--text-muted); font-size: 14px; line-height: 1.85; }
.article-card .article-more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: var(--weight-semibold); }
.callout { margin: 28px 0; padding: 22px 24px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-card) var(--radius-card) 0; background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-chip); }
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 8px; font-weight: var(--weight-semibold); }
.section-dark .callout { background: var(--bg-panel-3); color: var(--text-on-dark); }
.section-dark .callout p { color: var(--text-on-dark-muted); }

.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius-card); }
.data-table { width: 100%; border-collapse: collapse; background: var(--bg-panel); color: var(--text); text-align: left; font-size: 14px; }
.data-table th, .data-table td,
.prose table th, .prose table td,
.article-body table th, .article-body table td {
  min-width: 7em;
  padding: 16px 20px;
  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 { background: var(--gray-1); color: var(--text); font-weight: var(--weight-semibold); }
.data-table tr:last-child td { border-bottom: 0; }
.prose table, .article-body table { display: block; max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; background: var(--bg-panel); color: var(--text); font-size: 14px; }
.prose table code, .article-body table code, .data-table code { overflow-wrap: anywhere; }
#install table code { word-break: normal; overflow-wrap: normal; white-space: pre; display: inline-block; max-width: 100%; overflow-x: auto; vertical-align: top; }

.dl-fab { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; max-width: calc(100% - 48px); padding: 12px 20px; background: var(--accent); color: var(--text); border: 1px solid var(--accent-edge); border-radius: var(--radius-btn); box-shadow: var(--shadow-plate); font-size: 14px; font-weight: var(--weight-semibold); }
.dl-fab svg { width: 21px; height: 21px; }
.has-article-fab { padding-bottom: 88px; }

.preview-stack { display: grid; gap: 32px; }
.preview-title { margin-bottom: 40px; }
.preview-label { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); margin-bottom: 14px; }
.preview-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.preview-button-hover { transform: translateY(-1px); }
.preview-button-active { transform: translateY(1px); }
.preview-button-focus { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { min-width: 0; padding: 12px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-card); }
.swatch::before { content: ""; display: block; height: 64px; margin-bottom: 12px; background: var(--sample); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-focus); }
.swatch code { font-size: 11px; }
.swatch--bg { --sample: var(--bg); }
.swatch--header { --sample: var(--bg-header); }
.swatch--panel { --sample: var(--bg-panel); }
.swatch--dark { --sample: var(--bg-panel-2); }
.swatch--dark-panel { --sample: var(--bg-panel-3); }
.swatch--border { --sample: var(--border); }
.swatch--border-dark { --sample: var(--border-dark); }
.swatch--accent { --sample: var(--accent); }
.swatch--accent-dark { --sample: var(--accent-dark); }
.swatch--accent-soft { --sample: var(--accent-soft); }
.swatch--accent-wash { --sample: var(--accent-wash); }
.swatch--accent-edge { --sample: var(--accent-edge); }
.swatch--text { --sample: var(--text); }
.swatch--muted { --sample: var(--text-muted); }
.swatch--secondary { --sample: var(--text-secondary); }
.swatch--faint { --sample: var(--text-faint); }
.swatch--on-dark { --sample: var(--text-on-dark); }
.swatch--on-dark-muted { --sample: var(--text-on-dark-muted); }
.swatch--success { --sample: var(--success); }
.swatch--warn { --sample: var(--warn); }
.swatch--error { --sample: var(--error); }
.swatch--g1 { --sample: var(--gray-1); }
.swatch--g2 { --sample: var(--gray-2); }
.swatch--g3 { --sample: var(--gray-3); }
.swatch--g4 { --sample: var(--gray-4); }
.swatch--g5 { --sample: var(--gray-5); }
.swatch--light { --sample: var(--band-light); }
.swatch--soft { --sample: var(--band-soft); }
.swatch--shade { --sample: var(--band-shade); }
.swatch--floor { --sample: var(--floor); }
.swatch--veil { --sample: var(--veil); }
.swatch--clear { --sample: var(--clear); }

@media (max-width: 880px) {
  .feature-tabs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tab-list, [role="tablist"].tab-list { flex-direction: row; overflow-x: auto; max-width: 100%; padding-bottom: 10px; gap: 8px; }
  .tab-button { width: auto; min-height: 48px; padding: 10px 16px; flex-shrink: 0; border: 1px solid var(--border); border-radius: var(--radius-pill); }
  .tab-button small { display: none; }
  .tab-button::before { display: none; }
  .tab-button[aria-selected="true"] { border-color: var(--accent-dark); }
  .section-dark .tab-button { border-color: var(--border-dark); }
  .section-dark .tab-button[aria-selected="true"] { border-color: var(--accent); }
}
@media (max-width: 640px) {
  .get-actions, .cta { gap: 10px; }
  .get-actions .btn, .cta .btn { flex: 0 1 auto; }
  .fact-row { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .fact-pill { font-size: 11px; padding: 4px 9px; }
  .plat-card { flex-basis: 100%; padding: 22px; }
  .plat-actions { gap: 8px; }
  .tab-panel { padding: 22px; }
  .rule-diagram { padding: 20px; }
  .toc { flex-wrap: nowrap; overflow-x: auto; padding: 10px; }
  .toc a { flex-shrink: 0; white-space: nowrap; }
  .toc--sticky { position: static; }
  .shot-row { flex-direction: column; align-items: center; }
  .device-entry { padding: 22px; gap: 18px; }
  .store-guide { padding: 24px; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #install table { display: block; width: 100%; }
  #install thead { display: none; }
  #install tbody { display: block; width: 100%; }
  #install tr { display: block; width: 100%; padding: 14px; border-bottom: 1px solid var(--border); }
  #install td { display: block; min-width: 0; width: 100%; padding: 8px 0; border: 0; }
  #install td::before { content: attr(data-label); display: block; margin-bottom: 5px; font-size: 12px; font-weight: var(--weight-semibold); color: var(--text-muted); }
  #install td code { word-break: normal; overflow-wrap: normal; white-space: pre; overflow-x: auto; }
  .dl-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; min-height: 52px; padding: 0; border-radius: var(--radius-round); }
  .dl-fab-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}