.get-note { margin: 14px 0 0; color: var(--text-muted); font-size: 13px; }
.get-note [data-pkg-ver] { color: var(--text); font-family: var(--font-mono); font-size: 12.5px; }
.get-actions > .btn { max-width: 100%; }
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--r-btn);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  line-height: 1.2;
  transition: background-color var(--duration) var(--ease);
}
.store-button:hover { background: var(--lime); color: var(--on-accent); }
.store-button svg { width: 26px; height: 30px; flex-shrink: 0; }
.store-button__words { display: block; }
.store-button__words small { display: block; font-size: 11px; margin-bottom: 4px; }
.store-button__words strong { display: block; font-size: 16px; font-weight: 600; }
.fact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block: 24px; }
.fact-pill, .badge, .price-pill {
  display: inline-block;
  max-width: 100%;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.badge { color: var(--text-muted); }
.badge--success { border-color: var(--success); color: var(--success); }
.badge--warn { border-color: var(--warn); color: var(--warn); }
.badge--error { border-color: var(--error); color: var(--error); }
.price-pill { border-color: color-mix(in srgb, var(--accent) 34%, var(--clear)); background: color-mix(in srgb, var(--accent) 7%, var(--clear)); color: var(--text); line-height: 1.3; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 32px 0 0; padding: 22px 0 0; border-top: 1px solid color-mix(in srgb, var(--border) 85%, var(--clear)); list-style: none; }
.platform { display: inline-flex; align-items: center; gap: 7px; min-height: 24px; color: var(--text); font-size: 13.5px; line-height: 1; text-decoration: none; }
.platform:hover { color: var(--link); }
.platform svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--text-muted); }
.platforms__price { flex-basis: 100%; }

.tabs { display: grid; grid-template-columns: minmax(0, 28fr) minmax(0, 72fr); gap: 40px; }
.tabs > * { min-width: 0; }
.tabs [role="tablist"] { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding-block: 16px; }
.tabs [role="tab"] { position: relative; min-height: 48px; padding: 10px 24px; border: 0; border-left: 1px solid var(--border); background: var(--clear); color: var(--text-muted); font: inherit; text-align: left; }
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { color: var(--text); }
.tabs [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; left: -1px; inset-block: 8px; width: 2px; background: var(--link); }
.tabs [role="tabpanel"] { min-width: 0; padding: 44px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-panel); color: var(--text); }
.tabs [role="tabpanel"] h3 { font-family: var(--font-display); font-size: 30px; font-weight: 400; }
.tabs [role="tabpanel"] p { color: var(--text-muted); }
.tabs [role="tabpanel"] pre { background: var(--bg-panel-2); color: var(--text); }
.tabs:not(.tabs-ready) [role="tabpanel"] + [role="tabpanel"] { margin-top: 24px; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; margin-bottom: 40px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-panel); color: var(--text); }
.toc a { display: block; min-height: 44px; padding: 10px 14px; color: var(--text-muted); text-decoration: none; border-radius: var(--r-row); }
.toc a:hover, .toc a[aria-current] { background: var(--bg-panel-2); color: var(--text); }
.toc--sticky { position: sticky; top: 16px; z-index: 10; }
.faq-list { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-panel); color: var(--text); }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-item summary { position: relative; padding: 22px 56px 22px 24px; min-height: 56px; list-style: none; cursor: pointer; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 20px; color: var(--link); font-size: 22px; line-height: 1.3; }
.faq-item[open] summary::after { content: "−"; }
.faq-item__answer { padding: 0 24px 24px; color: var(--text-muted); }
.faq-item__answer p:last-child { margin-bottom: 0; }

.term-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-panel); color: var(--text); }
.term-card h3 { font-family: var(--font-mono); font-size: 19px; }
.term-card p { margin-bottom: 0; color: var(--text-muted); }
.term-card__category { display: block; margin-bottom: 16px; font-size: 12px; color: var(--text-muted); }

.plat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plat-card { position: relative; min-width: 0; padding: 36px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-panel); color: var(--text); }
.plat-card h3 { font-family: var(--font-display); font-size: 28px; margin-bottom: 12px; padding-right: 72px; }
.plat-card p { color: var(--text-muted); }
.plat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.plat-actions .btn { max-width: 100%; }
.plat-card::before { display: none; position: absolute; top: 22px; right: 22px; padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel-2); color: var(--text); font-size: 11px; content: attr(data-mine); }
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: 70; bottom: 24px; left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 36px)); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 22px 28px; border: 1px solid var(--warn); border-radius: var(--r-md); background: var(--bg-panel-2); color: var(--text); box-shadow: var(--panel-shadow); }
.wx-open-tip button { min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--bg-panel); color: var(--text); }

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

.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.device-card { display: flex; align-items: center; gap: 24px; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-panel); color: var(--text); text-decoration: none; }
.device-card:hover { border-color: var(--link); }
.device-card svg { width: 44px; height: 56px; flex-shrink: 0; color: var(--text-muted); }
.device-card__body { min-width: 0; }
.device-card strong { display: block; font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.device-card small { display: block; color: var(--text-muted); }
.article-card { display: flex; flex-direction: column; min-width: 0; padding: 30px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-panel); color: var(--text); }
.article-card h3 { margin-top: 24px; font-size: 22px; font-family: var(--font-display); }
.article-card h3 a { color: var(--text); text-decoration: none; }
.article-card h3 a:hover { color: var(--link); }
.article-card p { color: var(--text-muted); }
.article-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--text-muted); font-size: 12px; }
.article-card .text-link { margin-top: auto; align-self: flex-start; }
.callout { margin-block: 28px; padding: 24px 28px; border: 1px solid var(--border); border-left: 3px solid var(--link); border-radius: var(--r-sm); background: var(--bg-panel-2); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-left-color: var(--warn); }
.callout--success { border-left-color: var(--success); }
.store-guide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 32px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-panel-2); color: var(--text); }
.store-guide__copy { flex: 1 1 280px; min-width: 0; }
.store-guide h2 { font-size: 26px; margin-bottom: 12px; }
.store-guide p { margin: 0; color: var(--text-muted); }

.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; 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 { background: var(--bg-panel-2); color: var(--text); font-weight: 500; }
.data-table td, .prose table td { background: var(--bg-panel); color: var(--text); }
.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; }
#install table code { white-space: pre; overflow-wrap: normal; word-break: normal; }

.dl-fab { position: fixed; right: 24px; bottom: 24px; z-index: 20; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 7px 18px 7px 8px; border: 1px solid color-mix(in srgb, var(--text) 14%, var(--clear)); border-radius: var(--r-pill); background: var(--bg-panel-2); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; box-shadow: 0 2px 4px color-mix(in srgb, var(--shadow) 30%, var(--clear)), 0 18px 40px -16px color-mix(in srgb, var(--shadow) 85%, var(--clear)); transition: border-color var(--duration) var(--ease); }
.dl-fab:hover { border-color: var(--accent); }
.dl-fab__icon { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); }
.dl-fab__icon svg { width: 16px; height: 16px; }
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg-panel); color: var(--text); }
.swatch__paint { height: 70px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--r-row); }
.swatch figcaption { font: 12px/1.8 var(--font-mono); overflow-wrap: anywhere; }
.swatch--bg { background: var(--bg); color: var(--text); }
.swatch--panel { background: var(--bg-panel); color: var(--text); }
.swatch--panel2 { background: var(--bg-panel-2); color: var(--text); }
.swatch--border { background: var(--border); color: var(--text); }
.swatch--accent { background: var(--accent); color: var(--on-accent); }
.swatch--dark { background: var(--accent-dark); color: var(--on-accent); }
.swatch--lime { background: var(--lime); color: var(--on-accent); }
.swatch--teal { background: var(--teal); color: var(--on-accent); }
.swatch--field { background: var(--field-deep); color: var(--text); }
.swatch--link { background: var(--link); color: var(--on-accent); }
.swatch--text { background: var(--text); color: var(--bg); }
.swatch--muted { background: var(--text-muted); color: var(--bg); }
.swatch--success { background: var(--success); color: var(--on-accent); }
.swatch--warn { background: var(--warn); color: var(--on-accent); }
.swatch--error { background: var(--error); color: var(--on-accent); }
.swatch--shadow { background: var(--shadow); color: var(--text); }

@media (max-width: 860px) {
  .tabs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tabs [role="tablist"] { flex-direction: row; align-items: stretch; overflow-x: auto; gap: 12px; }
  .tabs [role="tab"] { flex-shrink: 0; white-space: nowrap; }
  .tabs [role="tabpanel"] { padding: 28px; }
  .device-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .plat-grid { grid-template-columns: minmax(0, 1fr); }
  .plat-card { padding: 28px 24px; }
  .plat-card h3 { font-size: 24px; }
  .plat-actions .btn { padding-inline: 16px; }
  .fact-row { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .fact-pill, .badge { font-size: 11px; padding: 5px 9px; }
  .shot-row { flex-direction: column; align-items: center; }
  .official-shot { align-self: center; }
  .dl-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; min-height: 52px; justify-content: center; padding: 0; }
  .dl-fab__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .dl-fab__icon { width: 32px; height: 32px; }
  .wx-open-tip { bottom: 80px; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-guide { padding: 24px; }
  .toc { flex-wrap: nowrap; overflow-x: auto; }
  .toc a { flex-shrink: 0; white-space: nowrap; }
  #install table, #install tbody, #install tr, #install td { display: block; width: 100%; min-width: 0; }
  #install thead { display: none; }
  #install td { overflow-x: auto; }
  #install tr + tr { border-top: 1px solid var(--border); }
  #install table code { display: inline-block; white-space: pre; word-break: normal; overflow-wrap: normal; }
}
@media (max-width: 1280px) {
  .preview-header .masthead__row { flex-wrap: wrap; padding-top: 12px; padding-bottom: 8px; }
  .preview-header .nav { display: block; order: 3; width: 100%; overflow-x: auto; }
  .preview-header .nav ul { width: max-content; gap: 24px; }
  .preview-header .nav a { min-height: 44px; padding-block: 10px; }
  .preview-header .header-tools { margin-left: auto; }
}