.get-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; margin-bottom: 16px; }
.get-actions > .btn { max-width: 100%; }
.get-note { margin: 0 0 28px; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.get-note [data-pkg-ver] { font-family: var(--font-mono); font-size: .95em; }
.hero .get-note { color: var(--on-dark-soft); }
.hero .get-note [data-pkg-ver] { color: var(--on-dark-muted); }
.appstore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  min-height: 56px;
  padding: 9px 20px;
  border: 1px solid var(--text);
  border-radius: var(--r-btn);
  color: var(--bg);
  background: var(--text);
  text-align: left;
  text-decoration: none;
  line-height: 1.25;
  transition: background-color var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease);
}
.appstore-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--bg); }
.appstore-btn svg { width: 25px; height: 30px; flex-shrink: 0; }
.appstore-copy { display: block; min-width: 0; }
.appstore-copy small { display: block; font-size: 11px; }
.appstore-copy strong { display: block; margin-top: 3px; font-size: 16px; font-weight: var(--weight-bold); }
.appstore-btn:active { background: var(--bg-panel2); color: var(--bg); }
.appstore-btn[aria-disabled="true"] { background: var(--bg-panel); color: var(--text-muted); border-color: var(--border); cursor: not-allowed; }

.fact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fact, .badge, .tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.fact b { color: var(--text); font-weight: var(--weight-medium); }
.badge-accent { background: var(--accent); color: var(--text); border-color: var(--accent); }
.badge-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: var(--r-circle);
  background: var(--success);
  color: var(--text);
}
.tag { font-family: var(--font-mono); color: var(--accent-dark); }
.hero .fact {
  background: var(--clear);
  color: var(--on-dark-muted);
  border-color: var(--line-dark);
}
.hero .fact b { color: var(--accent); }

.tabs { min-width: 0; }
[role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; }
[role="tab"] {
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  color: var(--text-muted);
  background: var(--bg);
  font-weight: var(--weight-bold);
  line-height: 1.5;
}
[role="tab"][aria-selected="true"] { border-color: var(--accent); background: var(--accent); color: var(--text); }
[role="tabpanel"] { min-width: 0; margin-top: 24px; }
[role="tabpanel"]:focus-visible { outline-offset: 6px; }
.feature-tabs {
  display: grid;
  grid-template-columns: 38fr 62fr;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--bg-panel);
  color: var(--text);
}
.feature-tabs [role="tablist"] {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  margin: 32px 0;
  padding: 0 32px;
  border-right: 1px solid var(--border);
}
.feature-tabs [role="tab"] {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 6px 14px;
  width: 100%;
  min-height: 76px;
  padding: 14px 10px 14px 18px;
  border: 0;
  border-radius: 0;
  background: var(--clear);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: var(--weight-heavy);
  text-align: left;
}
.feature-tabs [role="tab"]::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 4px;
  border-radius: var(--r-tiny);
  background: var(--clear);
  color: var(--text);
}
.feature-tabs [role="tab"][aria-selected="true"]::before { background: var(--accent); color: var(--text); }
.feature-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--r-circle);
  background: var(--accent);
  color: var(--text);
}
.feature-tab-icon svg { width: 21px; height: 21px; }
.feature-tab-note { display: none; font: var(--weight-normal) 13px/1.65 var(--font-body); color: var(--text-muted); }
.feature-tabs [aria-selected="true"] .feature-tab-note { display: block; }
.feature-stage { min-width: 0; padding: 72px 0 0 48px; overflow: hidden; }
.feature-card {
  min-height: 500px;
  margin: 0 -40px -54px 0;
  padding: 40px 72px 72px 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--text);
}
.feature-card h3 { margin: 0 0 22px; }
.feature-card p { max-width: 42em; color: var(--text-muted); }
.feature-card pre { margin-bottom: 0; }
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--text);
}
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
}
.toc a:hover, .toc a[aria-current="location"] { background: var(--bg-panel); color: var(--accent-dark); }
.toc-sticky { position: sticky; top: 16px; align-self: start; z-index: 5; }
.toc.is-static { position: static; }

.faq-list { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); color: var(--text); }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-item summary {
  position: relative;
  min-height: 64px;
  padding: 20px 58px 20px 24px;
  font-weight: var(--weight-bold);
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent-dark);
}
.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 { border-top: 4px solid var(--accent); }
.term-card dt { margin-bottom: 14px; font-family: var(--font-mono); font-size: 20px; font-weight: var(--weight-bold); }
.term-card dd { margin: 0; color: var(--text-muted); }
.term-card .tag { margin-bottom: 18px; }
.callout {
  margin: 24px 0;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-dark);
  border-radius: var(--r-btn);
  background: var(--bg-panel);
  color: var(--text);
}
.callout > :last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 8px; font-weight: var(--weight-bold); }
.callout-warn { border-left-color: var(--warn); }

.plat-grid { display: flex; flex-wrap: wrap; align-items: stretch; gap: 24px; }
.plat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 300px;
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--text);
}
.plat-card::before {
  display: none;
  content: attr(data-mine);
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}
.plat-card h3 { margin: 0 0 16px; }
.plat-card > p { color: var(--text-muted); }
.plat-card-icon { width: 30px; height: 30px; margin-bottom: 24px; flex-shrink: 0; }
.plat-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 12px; }
.plat-actions > a { max-width: 100%; }
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: 80;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  padding: 18px 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-btn);
  color: var(--on-dark);
  background: var(--bg-panel2);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}
.wx-open-tip button { min-height: 44px; margin-left: 12px; border: 0; background: var(--clear); color: var(--accent); }

.shot-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 32px; }
.official-shot { width: 100%; max-width: 280px; flex-shrink: 0; margin: 0; padding: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot img, .shot-placeholder { outline: 1px solid var(--border); outline-offset: -1px; }
.official-shot figcaption { margin-top: 14px; color: var(--text-muted); font-size: var(--text-sm); line-height: 1.65; }
.shot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 750 / 1334;
  border-radius: var(--r-shot);
  padding: 24px;
  color: var(--text-muted);
  background: var(--bg-panel);
  font-family: var(--font-mono);
  text-align: center;
}

.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.device-entry {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-panel);
  color: var(--text);
  text-decoration: none;
}
.device-entry > svg { width: 42px; height: 52px; flex-shrink: 0; }
.device-entry strong { display: block; margin-bottom: 6px; font-size: 20px; }
.device-entry small { display: block; color: var(--text-muted); line-height: 1.7; }
.device-entry::after { content: "›"; font-size: 26px; color: var(--accent-dark); }
.device-entry:hover { border-color: var(--accent-dark); }
.article-card { display: flex; flex-direction: column; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--text-muted); font-size: var(--text-xs); }
.article-card h3 a { color: var(--text); text-decoration: none; }
.article-card h3 a:hover { color: var(--accent-dark); }
.article-card p { color: var(--text-muted); }
.article-more { margin-top: auto; padding-top: 12px; color: var(--accent-dark); font-size: var(--text-sm); font-weight: var(--weight-bold); }
.article-store-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-panel);
  color: var(--text);
}
.article-store-card h2 { margin: 0 0 12px; font-size: 24px; }
.article-store-card p { margin: 0; color: var(--text-muted); }

.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--text-sm); }
.data-table th, .data-table td, .prose table th, .prose table td {
  min-width: 7em;
  padding: 16px 18px;
  border: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose table th { font-weight: var(--weight-bold); background: var(--bg-panel); color: var(--text); }
.data-table td, .prose table td { background: var(--bg); color: var(--text); }
.prose table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  border-collapse: collapse;
  text-align: left;
}
#install table code { word-break: normal; overflow-wrap: normal; white-space: nowrap; }
#install table td { max-width: 40em; }

.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;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid var(--text);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-decoration: none;
}
.dl-fab:hover { background: var(--accent-hover); color: var(--text); }
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.blog-article { padding-bottom: 100px; }

.svg-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.preview-section { padding-top: 72px; padding-bottom: 72px; }
.preview-section h2 { margin-top: 0; }
.preview-stack { display: grid; gap: 24px; }
.preview-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.preview-dark { padding: 24px; border-radius: var(--r-lg); background: var(--bg-panel2); color: var(--on-dark); }
.preview-note { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }
.palette-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.palette-item { margin: 0; }
.palette-item figcaption { margin-top: 8px; font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; color: var(--text-muted); }
.token-swatch { height: 74px; border: 1px solid var(--border); border-radius: var(--r-btn); color: var(--text); }
.sw-bg { background: var(--bg); }
.sw-panel { background: var(--bg-panel); }
.sw-panel2 { background: var(--bg-panel2); color: var(--on-dark); }
.sw-border { background: var(--border); }
.sw-accent { background: var(--accent); }
.sw-hover { background: var(--accent-hover); }
.sw-accent-dark { background: var(--accent-dark); color: var(--bg); }
.sw-text { background: var(--text); color: var(--bg); }
.sw-muted { background: var(--text-muted); color: var(--bg); }
.sw-success { background: var(--success); }
.sw-warn { background: var(--warn); }
.sw-error { background: var(--error); color: var(--bg); }
.sw-desk1 { background: var(--desk-1); color: var(--on-dark); }
.sw-desk2 { background: var(--desk-2); color: var(--on-dark); }
.sw-stroke { background: var(--stroke-lite); }
.sw-faint { background: var(--stroke-faint); color: var(--on-dark); }
.sw-on-dark { background: var(--on-dark); }
.sw-on-muted { background: var(--on-dark-muted); }
.sw-on-soft { background: var(--on-dark-soft); }
.sw-on-faint { background: var(--on-dark-faint); color: var(--bg); }
.sw-line-dark { background: var(--line-dark); color: var(--on-dark); }
.sw-wash { background: var(--wash-dark); }
.sw-ink-line { background: var(--ink-line); }
.sw-clear { background: var(--clear); }

@media (max-width: 900px) {
  .feature-tabs { grid-template-columns: 42fr 58fr; }
  .feature-tabs [role="tablist"] { padding-inline: 16px; }
  .feature-stage { padding-left: 24px; }
  .feature-card { padding: 32px 56px 64px 28px; }
  .feature-tabs [role="tab"] { font-size: 17px; }
}
@media (max-width: 760px) {
  .get-actions { gap: 10px; margin-bottom: 12px; }
  .hero .get-note { margin-bottom: 6px; font-size: 12.5px; }
  .feature-tabs { grid-template-columns: 1fr; }
  .feature-tabs [role="tablist"] { margin-block: 20px 0; border-right: 0; }
  .feature-tabs [role="tab"] { min-height: 68px; }
  .feature-stage { padding: 24px; }
  .feature-card { min-height: 0; margin: 0; padding: 28px; }
  .article-store-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fact-row { justify-content: center; flex-direction: row; }
  .fact { padding-inline: 10px; font-size: 11px; }
  .device-grid { grid-template-columns: 1fr; }
  .device-entry { padding: 24px; gap: 14px; }
  .plat-card { flex-basis: 100%; padding: 24px; }
  .plat-actions { flex-direction: row; }
  .plat-actions .btn { flex: 1 1 160px; }
  .shot-row { flex-direction: column; align-items: center; }
  .official-shot { margin-inline: auto; }
  .feature-stage { padding: 16px; }
  .feature-card { padding: 24px; }
  .palette-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .toc { gap: 4px; padding: 10px; }
  .toc a { padding-inline: 10px; }
  #install table { display: block; width: 100%; }
  #install thead { display: none; }
  #install tbody { display: block; }
  #install tr { display: block; margin-bottom: 20px; border: 1px solid var(--border); border-radius: var(--r-btn); }
  #install td, #install th { display: block; width: 100%; max-width: 100%; min-width: 0; border: 0; padding: 16px; }
  #install td + td { border-top: 1px solid var(--border); }
  #install td::before { content: attr(data-label); display: block; margin-bottom: 8px; font-weight: var(--weight-bold); color: var(--text-muted); }
  #install table code { display: block; max-width: 100%; overflow-x: auto; white-space: pre; word-break: normal; overflow-wrap: normal; }
  .dl-fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 52px; height: 52px; min-height: 52px; padding: 0; 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; }
}
@media (prefers-reduced-motion: reduce) {
  .appstore-btn { transition: none; }
}