.get-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; min-width: 0; }
.get-actions > * { max-width: 100%; }
.get-note { margin-top: 16px; font-size: var(--fs-small); line-height: 1.7; color: var(--text-muted); }
.get-note__ver { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text); }
.appstore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  max-width: 100%;
  padding: 11px 24px;
  border: 1px solid var(--white);
  border-radius: var(--r-pill);
  color: var(--bg-panel-2);
  background: var(--white);
  box-shadow: 0 14px 30px -10px var(--shadow-btn);
  transition: transform var(--speed-fast) var(--ease), box-shadow var(--speed-fast) var(--ease);
}
.appstore-button svg { width: 26px; height: 29px; }
.appstore-button__copy { display: block; text-align: left; }
.appstore-button__overline { display: block; font-size: var(--fs-xs); line-height: 1.3; font-weight: var(--weight-medium); }
.appstore-button__title { display: block; margin-top: 2px; font-size: var(--fs-body); line-height: 1.3; font-weight: var(--weight-heavy); }
.appstore-button:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px var(--glow-accent-soft), 0 18px 36px -12px var(--shadow-btn); }
.appstore-button:active { transform: translateY(1px); }
.facts, .badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.facts { margin-top: 24px; }
.fact, .badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-pill);
  background: var(--glass-deep);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.fact strong { color: var(--text); font-weight: var(--weight-semibold); }
.badge { padding: 5px 11px; }
.badge--active { color: var(--text); border-color: var(--accent); background: var(--bg-panel-2); }
.badge--success { color: var(--success-hi); }
.badge--warn { color: var(--warn); }
.badge--error { color: var(--error); }
.badge__dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--r-circle); background: currentColor; }

.feature-tabs { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.5fr); gap: 48px; }
.feature-tabs [role="tablist"] { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feature-tabs [role="tab"] {
  position: relative;
  width: 100%;
  min-height: 76px;
  padding: 14px 18px 14px 28px;
  border: 1px solid var(--clear);
  border-radius: var(--r-sm);
  text-align: left;
  background: var(--clear);
  color: var(--text-muted);
  font: var(--weight-heavy) var(--fs-h3)/1.4 var(--font-display);
}
.feature-tabs [role="tab"]::before { content: ""; position: absolute; left: 0; top: 19px; bottom: 19px; width: 5px; border-radius: var(--r-pill); background: var(--clear); }
.feature-tabs [role="tab"][aria-selected="true"] { border-color: var(--border); background: var(--bg-panel); color: var(--text); }
.feature-tabs [role="tab"][aria-selected="true"]::before { background: var(--accent); }
.tab-key { display: block; margin-top: 5px; font: var(--weight-medium) var(--fs-xs)/1.5 var(--font-mono); color: var(--text-muted); }
.feature-tabs [role="tabpanel"] { min-width: 0; align-self: center; padding: 30px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-panel-2); color: var(--text); box-shadow: var(--shadow-card); }
.feature-tabs [role="tabpanel"] p { margin-top: 20px; color: var(--text-muted); }
.feature-tabs [role="tabpanel"] pre { margin-bottom: 0; }
.tabs-inline [role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs-inline [role="tab"] { min-height: 44px; padding: 10px 20px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel-2); color: var(--text-muted); }
.tabs-inline [aria-selected="true"] { border-color: var(--accent); color: var(--text); background: var(--bg-panel); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 32px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-panel-2); color: var(--text-muted); }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: var(--r-pill); font-size: var(--fs-caption); }
.toc a:hover, .toc a[aria-current] { color: var(--text); background: var(--bg-panel); }
.toc--sticky { position: sticky; top: 12px; z-index: 10; }
.toc--flow { position: static; }
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 0 24px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg-panel-2); color: var(--text); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding-block: 20px; list-style: none; font-weight: var(--weight-bold); cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font: var(--weight-medium) var(--fs-h3)/1 var(--font-mono); color: var(--text-muted); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; color: var(--accent-hi); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item__body { padding-top: 20px; padding-bottom: 24px; color: var(--text-muted); }
.term-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--r-md); color: var(--text); background: var(--bg-panel-2); }
.term-card__category { display: block; margin-bottom: 12px; color: var(--text-muted); font: var(--weight-medium) var(--fs-xs)/1.5 var(--font-mono); }
.term-card p { margin-top: 16px; color: var(--text-muted); }
.term-card code { color: var(--text); }
.term-card__link { display: inline-flex; margin-top: 22px; min-height: 44px; align-items: center; text-decoration: underline; text-underline-offset: 4px; }

.plat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plat-card { position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 32px; border: 1px solid var(--hairline-strong); border-radius: var(--r-md); color: var(--text); background: var(--bg-panel); box-shadow: var(--shadow-card); scroll-margin-top: 24px; }
.plat-card__heading { display: flex; align-items: center; gap: 14px; padding-top: 10px; }
.plat-card__heading svg { width: 30px; height: 30px; color: var(--text); }
.plat-card p { color: var(--text-muted); }
.plat-price { font-weight: var(--weight-bold); color: var(--text); }
.plat-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; padding-top: 6px; }
.plat-actions .pill { padding-inline: 20px; font-size: var(--fs-caption); }
.plat-card::before { display: none; content: attr(data-mine); position: absolute; top: 12px; right: 20px; font-size: var(--fs-xs); font-weight: var(--weight-bold); color: var(--accent-hi); }
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; z-index: 90; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100% - var(--gutter) * 2); padding: 18px 24px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg-panel-2); color: var(--text); box-shadow: 0 20px 60px var(--shadow-deep); font-size: var(--fs-caption); text-align: center; }
.wx-open-tip button { min-width: 44px; min-height: 44px; margin-left: 8px; border: 0; border-radius: var(--r-pill); color: var(--text); background: var(--bg-panel); }

.official-shots { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 28px; }
.official-shot { width: min(100%, 280px); max-width: 280px; margin: 0; padding: 0; flex-shrink: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-xs); }
.official-shot { filter: drop-shadow(0 12px 22px var(--shadow-soft)); }
.official-shot figcaption { padding-top: 14px; color: var(--text-muted); font-size: var(--fs-small); line-height: 1.7; }
.official-shot img { outline: 1px solid var(--hairline-strong); outline-offset: -1px; }
.device-entry { display: flex; align-items: center; gap: 22px; min-height: 160px; padding: 28px; border: 1px solid var(--hairline-strong); border-radius: var(--r-md); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-card); transition: transform var(--speed-fast) var(--ease); }
.device-entry > svg { width: 48px; height: 64px; color: var(--text-muted); }
.device-entry__copy { min-width: 0; }
.device-entry__name { display: block; font-size: var(--fs-h3); font-weight: var(--weight-heavy); }
.device-entry__note { display: block; margin-top: 8px; color: var(--text-muted); font-size: var(--fs-caption); }
.device-entry:hover { transform: translateY(-3px); }
.article-card { display: flex; flex-direction: column; min-width: 0; padding: 30px; border: 1px solid var(--hairline-strong); border-radius: var(--r-md); background: var(--bg-panel-2); color: var(--text); box-shadow: var(--shadow-card); }
.article-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; font: var(--weight-medium) var(--fs-xs)/1.5 var(--font-mono); color: var(--text-muted); }
.article-card h3 { line-height: 1.5; }
.article-card p { margin-top: 16px; margin-bottom: 24px; color: var(--text-muted); font-size: var(--fs-caption); }
.article-card__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; color: var(--text); font-weight: var(--weight-semibold); }
.article-card a:hover { text-decoration: underline; text-underline-offset: 5px; }
.callout { position: relative; margin: 28px 0; padding: 24px 28px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--r-sm); background: var(--bg-panel-2); color: var(--text); }
.callout p { margin-top: 8px; color: var(--text-muted); }
.callout--warn { border-left-color: var(--warn); }
.callout--success { border-left-color: var(--success); }
.article-store-card { padding: 30px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-panel-2); color: var(--text); }
.article-store-card p { margin-top: 14px; color: var(--text-muted); }
.article-store-card .get-actions { margin-top: 24px; }
.dl-fab { position: fixed; z-index: 20; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - 48px); min-height: 58px; padding: 15px 24px; border: 1px solid var(--white); border-radius: var(--r-pill); background: var(--white); color: var(--bg-panel-2); box-shadow: 0 10px 36px var(--shadow-deep); font-size: var(--fs-caption); font-weight: var(--weight-bold); }
.dl-fab svg { width: 22px; height: 22px; }
.dl-fab:hover { box-shadow: 0 0 0 5px var(--glow-accent-soft), 0 10px 36px var(--shadow-deep); }
.has-article-fab { padding-bottom: 88px; }

.table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--border); border-radius: var(--r-sm); }
.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; vertical-align: top; border-bottom: 1px solid var(--border); overflow-wrap: normal; word-break: normal; }
.data-table th, .prose table th { color: var(--text); background: var(--bg-panel-2); font-weight: var(--weight-bold); }
.data-table td, .prose table td { color: var(--text-muted); background: var(--bg-panel); }
.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; text-align: left; overscroll-behavior-inline: contain; }
.data-table code, .prose table code { overflow-wrap: anywhere; word-break: normal; }
.table-caption { margin-bottom: 12px; color: var(--text-muted); font-size: var(--fs-small); }

/* Preview furniture is deliberately non-product imagery. */
.preview-section { padding-top: var(--section-gap); }
.preview-section > h2 { margin-bottom: 32px; }
.preview-flow { display: grid; gap: 28px; }
.preview-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.preview-shot-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 750 / 1334; border: 1px solid var(--hairline-strong); border-radius: var(--r-xs); background: linear-gradient(150deg, var(--bg-panel-2), var(--violet-mid)); color: var(--text); text-align: center; font: var(--weight-medium) var(--fs-small)/1.8 var(--font-mono); }
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.swatch { display: flex; flex-direction: column; justify-content: flex-end; min-height: 112px; padding: 16px; border: 1px solid var(--hairline-strong); border-radius: var(--r-sm); color: var(--text); background: var(--bg-panel-2); }
.swatch code { align-self: flex-start; padding: 3px 7px; border-radius: var(--r-xs); color: var(--text); background: var(--ink); }
.swatch--bg { background: var(--bg); }
.swatch--panel { background: var(--bg-panel); }
.swatch--deep { background: var(--bg-panel-2); }
.swatch--border { background: var(--border); }
.swatch--accent { background: var(--accent); }
.swatch--accent-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--white { background: var(--white); }
.swatch--white-soft { background: var(--white-soft); }
.swatch--ink { background: var(--ink); }
.swatch--ink-2 { background: var(--ink-2); }
.swatch--violet-mid { background: var(--violet-mid); }
.swatch--violet-deep { background: var(--violet-deep); }
.swatch--accent-hi { background: var(--accent-hi); }
.swatch--accent-side { background: var(--accent-side); }
.swatch--panel-hi { background: var(--panel-hi); }
.swatch--panel-side { background: var(--panel-side); }
.swatch--success-hi { background: var(--success-hi); }
.swatch--success-side { background: var(--success-side); }
.swatch--glass-tile { background: var(--glass-tile); }
.swatch--glass-chip { background: var(--glass-chip); }
.swatch--glass-deep { background: var(--glass-deep); }
.swatch--hairline { background: var(--hairline); }
.swatch--hairline-strong { background: var(--hairline-strong); }
.swatch--ghost-line { background: var(--ghost-line); }
.swatch--edge-light { background: var(--edge-light); }
.swatch--bevel-hi { background: var(--bevel-hi); }
.swatch--bevel-lo { background: var(--bevel-lo); }
.swatch--sheen { background: var(--sheen); }
.swatch--shadow-soft { background: var(--shadow-soft); }
.swatch--shadow-deep { background: var(--shadow-deep); }
.swatch--shadow-floor { background: var(--shadow-floor); }
.swatch--shadow-btn { background: var(--shadow-btn); }
.swatch--glow-accent { background: var(--glow-accent); }
.swatch--glow-accent-soft { background: var(--glow-accent-soft); }
.swatch--glow-core { background: var(--glow-core); }
.swatch--glow-mid { background: var(--glow-mid); }
.swatch--bg-lift { background: var(--bg-lift); }
.swatch--bg-sink { background: var(--bg-sink); }
.swatch--ring-1 { background: var(--ring-1); }
.swatch--ring-2 { background: var(--ring-2); }
.swatch--ring-ok { background: var(--ring-ok); }
.swatch--placeholder-ring { background: var(--placeholder-ring); }
.swatch--clear { background: var(--clear); }

@media (max-width: 900px) {
  .feature-tabs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature-tabs [role="tablist"] { flex-direction: row; overflow-x: auto; padding-bottom: 8px; overscroll-behavior-inline: contain; }
  .feature-tabs [role="tab"] { flex: 0 0 auto; width: auto; min-height: 52px; padding: 12px 20px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: var(--fs-body); }
  .feature-tabs [role="tab"]::before { display: none; }
  .feature-tabs [role="tab"][aria-selected="true"] { border-color: var(--accent); }
  .feature-tabs .tab-key { display: none; }
}
@media (max-width: 640px) {
  .get-actions { gap: 10px; }
  .facts, .badge-row { flex-direction: row; flex-wrap: wrap; }
  .facts { justify-content: center; }
  .fact { padding: 6px 10px; }
  .plat-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .plat-card { padding: 28px 24px; }
  .plat-actions .pill { min-height: 48px; }
  .official-shots { flex-direction: column; align-items: center; }
  .device-entry { padding: 24px; gap: 18px; }
  .feature-tabs [role="tabpanel"] { padding: 24px 20px; }
  .toc { flex-wrap: nowrap; overflow-x: auto; border-radius: var(--r-sm); }
  .toc a { flex-shrink: 0; }
  .faq-item { padding-inline: 20px; }
  .callout { padding: 22px; }
  .article-card, .term-card, .article-store-card { padding: 24px; }
  .dl-fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 52px; height: 52px; min-height: 52px; padding: 0; justify-content: center; border-radius: var(--r-circle); }
  .dl-fab__text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #install table, #install tbody, #install tr, #install td, #install th { display: block; width: 100%; }
  #install thead { display: none; }
  #install table { overflow-x: visible; }
  #install tr { margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--r-sm); }
  #install td, #install th { min-width: 0; border-bottom: 0; }
  #install td + td { border-top: 1px solid var(--border); }
  #install td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 8px; color: var(--text); font-weight: var(--weight-bold); }
  #install code { display: block; max-width: 100%; white-space: pre; overflow-x: auto; overflow-wrap: normal; word-break: normal; padding-bottom: 4px; }
}