.get-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; min-width: 0; }
.get-actions > a { flex-shrink: 1; }
.get-note { margin: 14px 0 0; font-size: var(--fs-small); line-height: 20px; color: var(--muted); }
.get-note [data-pkg-ver] { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--text); }
.appstore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  max-width: 100%;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  line-height: 1.25;
  transition: background-color var(--ease), border-color var(--ease);
}
.appstore-btn:hover { background: var(--accent-dark); color: var(--on-accent); border-color: var(--accent-dark); }
.appstore-btn > svg { width: 25px; height: 28px; flex: none; }
.appstore-copy { display: grid; gap: 3px; text-align: left; }
.appstore-copy small { font-size: 11px; }
.appstore-copy strong { font-size: var(--fs-body); font-weight: var(--weight-medium); }
.fact-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.fact-pill, .badge, .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  max-width: 100%;
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-label);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.fact-pill { font-family: var(--font-body); }
.badge, .pill { font-family: var(--font-mono); }
.pill { min-height: 24px; padding: 2px 10px; font-size: 11.5px; }
.pill-proxy { color: var(--accent-dark); border-color: var(--accent-line); }
.status-dot { width: 6px; height: 6px; flex: none; background: var(--accent); border-radius: var(--r-round); }
.status-dot-success { background: var(--success); }
.status-dot-warn { background: var(--warn); }
.status-dot-error { background: var(--error); }
.rulebook { margin-top: 28px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.rb-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.rb-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  min-width: 0;
  padding: 8px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}
.rb-tab:first-child { border-left: 0; }
.rb-tab:hover { background: var(--panel-2); color: var(--text); }
.rb-tab-key { font-family: var(--font-mono); font-size: var(--fs-small); }
.rb-tab-sub { font-size: 12.5px; color: var(--muted); }
.rb-tab[aria-current="true"] { background: var(--bg); color: var(--text); }
.rb-tab[aria-current="true"]::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--accent); }
.rb-body { padding: 28px 48px; }
.rb-stack { position: relative; padding-bottom: 16px; }
.rb-stack::before, .rb-stack::after { content: ""; position: absolute; inset: 0 0 16px; border-radius: var(--r-card); border: 1px solid var(--line-strong); }
.rb-stack::before { background: var(--panel-2); color: var(--text); transform: translateY(8px); z-index: 1; }
.rb-stack::after { background: var(--line); color: var(--text); transform: translateY(16px); z-index: 0; }
.rb-card { position: relative; z-index: 2; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.rb-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 8px 20px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: var(--fs-label); color: var(--muted); }
.rb-file { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.rb-file svg { width: 14px; height: 14px; color: var(--muted); }
.rb-head-note { display: inline-flex; align-items: center; gap: 10px; }
.rb-head-note span:last-child { font-family: var(--font-body); font-size: 12.5px; }
.rb-grid { display: grid; grid-template-columns: 184px minmax(0, 1fr) 392px; min-height: 236px; }
.rb-grid > * { min-width: 0; }
.rb-index { padding: 12px; border-right: 1px solid var(--line); }
.rb-index ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.rb-index a { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 10px; border-radius: var(--r-sm); font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.rb-index a::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: var(--r-mark); border: 1px solid var(--line-strong); background: var(--bg); }
.rb-index a:hover { color: var(--text); }
.rb-index a[aria-current="true"] { background: var(--panel); color: var(--text); }
.rb-index a[aria-current="true"]::before { background: var(--accent); border-color: var(--accent); }
.rb-code { padding-top: 14px; padding-bottom: 14px; overflow-x: auto; }
.code { margin: 0; padding: 0; list-style: none; counter-reset: ln; font-family: var(--font-mono); font-size: var(--fs-small); line-height: 26px; }
.code li { counter-increment: ln; display: flex; padding-right: 20px; white-space: pre; }
.code li::before { content: counter(ln); flex: none; width: 52px; padding-right: 18px; text-align: right; color: var(--muted); }
.t-com, .t-sep, .t-val { color: var(--muted); }
.t-sec, .t-type, .t-direct { color: var(--text); }
.t-sec { font-weight: var(--weight-medium); }
.t-proxy { color: var(--accent-dark); font-weight: var(--weight-medium); }
.rb-notes { display: flex; flex-direction: column; padding: 10px 22px 14px; border-left: 1px solid var(--line); }
.note-group { margin: 0; padding-top: 4px; padding-bottom: 4px; border-top: 1px solid var(--line); }
.note-group:first-child { border-top: 0; }
.note-row { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 26px; }
.note-row dt { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--text); }
.note-row dd { margin: 0; font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }
.rb-policies { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.pol-label { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-right: 4px; }
.tabs { min-width: 0; }
.tab-list, [role="tablist"].tab-list { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); color: var(--text); }
.tab-list [role="tab"] { position: relative; min-height: 48px; padding: 12px 20px; border: 0; border-inline-end: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; }
.tab-list [role="tab"][aria-selected="true"] { background: var(--bg); color: var(--text); }
.tab-list [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--accent); }
.tab-panel { margin-top: 20px; min-width: 0; }
.capability { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; }
.capability > * { min-width: 0; }
.question-tabs { display: grid; gap: 10px; margin-top: 28px; }
.question-tabs [role="tab"] { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; min-height: 58px; padding: 16px 20px; text-align: left; border: 1px solid var(--panel); border-radius: var(--r-card); background: var(--panel); color: var(--text); }
.question-tabs [role="tab"]::after { content: "›"; flex: none; color: var(--muted); }
.question-tabs [role="tab"][aria-selected="true"] { background: var(--bg); color: var(--text); border-color: var(--line-strong); }
.question-tabs [role="tab"][aria-selected="true"]::after { color: var(--accent-dark); }
.capability-detail { padding: 32px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--bg); color: var(--text); }
.capability-detail > p:not(.kicker) { color: var(--muted); line-height: 1.9; }
.capability-rail { display: flex; flex-wrap: wrap; gap: 8px 0; list-style: none; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); font-size: var(--fs-label); color: var(--muted); }
.capability-rail li { padding-inline: 10px; border-inline-start: 1px solid var(--line-strong); }
.capability-rail li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; margin-bottom: 36px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); color: var(--text); }
.toc a { display: block; min-height: var(--tap); padding: 10px 14px; border-radius: var(--r-pill); color: var(--muted); font-size: var(--fs-small); }
.toc a:hover, .toc a[aria-current="location"] { background: var(--bg); color: var(--accent-dark); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 17px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-family: var(--font-mono); color: var(--muted); }
.faq-item[open] summary::after { content: "−"; color: var(--accent-dark); }
.faq-answer { max-width: 780px; padding-bottom: 24px; color: var(--muted); }
.faq-answer p { margin-top: 0; }
.term-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); color: var(--text); }
.term-card h3 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 19px; overflow-wrap: anywhere; }
.term-card p { margin: 12px 0 0; color: var(--muted); }
.term-card .badge { margin-top: 4px; }
.plat-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; min-width: 0; }
.plat-card { position: relative; flex: 1 1 300px; min-width: 0; max-width: 100%; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--panel); color: var(--text); }
.plat-card h3 { margin: 0 0 12px; padding-right: 72px; }
.plat-card p { color: var(--muted); }
.plat-card::before { display: none; position: absolute; top: 20px; right: 20px; content: attr(data-mine); padding: 3px 8px; border: 1px solid var(--accent-line); border-radius: var(--r-pill); background: var(--bg); color: var(--accent-dark); font-size: 11px; }
.plat-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
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: 80; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(440px, calc(100% - var(--gutter) * 2)); padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-pop); }
.wx-open-tip p { margin: 0 0 12px; }
.wx-open-tip button { min-height: var(--tap); padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--panel); color: var(--text); }
.shot-row { display: flex; align-items: start; justify-content: center; gap: 32px; flex-wrap: wrap; }
.official-shot { width: 280px; max-width: 100%; flex-shrink: 0; margin: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot { border: 1px solid var(--line); border-radius: var(--r-shot); background: var(--bg); color: var(--text); }
.official-shot figcaption { margin-top: 12px; margin-bottom: 12px; padding-inline: 10px; font-size: var(--fs-small); line-height: 1.6; color: var(--muted); }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.device-card { display: flex; align-items: center; gap: 22px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); color: var(--text); }
.device-card > svg { width: 48px; height: 64px; flex: none; color: var(--muted); }
.device-card > div { min-width: 0; }
.device-card h3 { margin: 0 0 8px; }
.device-card p { margin: 0; color: var(--muted); font-size: 14px; }
.device-card:hover { border-color: var(--line-strong); }
.article-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); color: var(--text); }
.article-card h3 { margin: 20px 0 12px; font-size: 23px; line-height: 1.4; }
.article-card p { margin: 0 0 24px; color: var(--muted); }
.article-card .text-link { margin-top: auto; align-self: start; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: var(--fs-small); color: var(--muted); }
.callout { margin: 28px 0; padding: 24px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--r-card); background: var(--panel); color: var(--text); }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.article-store { margin-top: 48px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--panel); color: var(--text); }
.article-store h2 { margin-top: 14px; font-size: 26px; }
.article-store p { color: var(--muted); }
.dl-fab { position: fixed; z-index: 30; inset-inline-end: 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: 14px 22px; border: 1px solid var(--accent); border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); }
.dl-fab svg { width: 20px; height: 20px; flex: none; }
.dl-fab:hover { background: var(--accent-dark); color: var(--on-accent); border-color: var(--accent-dark); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 24px; margin-bottom: 24px; }
.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: 14px 18px; vertical-align: top; border: 1px solid var(--line); overflow-wrap: normal; word-break: normal; }
.data-table th, .prose table th { background: var(--panel); color: var(--text); font-weight: var(--weight-medium); }
.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; }
.data-table code, .prose table code { word-break: normal; }
.preview-section { padding-top: var(--section-space); padding-bottom: 0; }
.preview-section:last-child { padding-bottom: var(--section-space); }
.preview-section > h2 { margin: 14px 0 32px; }
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { margin: 0; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-card); }
.swatch-color { display: block; height: 64px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.swatch figcaption { margin-top: 10px; font-family: var(--font-mono); font-size: 11px; overflow-wrap: anywhere; }
.swatch-bg { background: var(--bg); color: var(--text); }
.swatch-panel { background: var(--panel); color: var(--text); }
.swatch-panel-2 { background: var(--panel-2); color: var(--text); }
.swatch-line { background: var(--line); color: var(--text); }
.swatch-line-strong { background: var(--line-strong); color: var(--text); }
.swatch-accent { background: var(--accent); color: var(--on-accent); }
.swatch-accent-dark { background: var(--accent-dark); color: var(--on-accent); }
.swatch-accent-line { background: var(--accent-line); color: var(--text); }
.swatch-text { background: var(--text); color: var(--bg); }
.swatch-muted { background: var(--muted); color: var(--bg); }
.swatch-faint { background: var(--faint); color: var(--text); }
.swatch-success { background: var(--success); color: var(--text); }
.swatch-warn { background: var(--warn); color: var(--text); }
.swatch-error { background: var(--error); color: var(--text); }
.swatch-veil { background: var(--veil); color: var(--text); }
.shot-placeholder { display: grid; place-content: center; gap: 12px; aspect-ratio: 750 / 1334; width: 100%; border-radius: var(--r-shot); background: var(--panel-2); color: var(--muted); font-family: var(--font-mono); font-size: var(--fs-label); text-align: center; }
.preview-mobile { display: none; }
@media (max-width: 1160px) {
  .rb-grid { grid-template-columns: 168px minmax(0, 1fr) 360px; }
  .rb-body { padding: 24px 28px; }
}
@media (max-width: 1080px) {
  .preview-mobile { display: block; position: static; }
  .preview-mobile > summary { display: inline-flex; }
  .preview-mobile > .mobile-drawer { display: block !important; }
  .preview-mobile:not([open]) > .mobile-drawer { display: none !important; }
}
@media (max-width: 980px) {
  .rb-grid { grid-template-columns: 150px minmax(0, 1fr); }
  .rb-notes { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .rb-tab-sub { display: none; }
  .capability { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 720px) {
  .rb-tab { min-height: 46px; }
  .rb-tab-key { font-size: 11.5px; }
  .rb-body { padding: 16px 14px 18px; }
  .rb-grid { grid-template-columns: minmax(0, 1fr); }
  .rb-index { display: none; }
  .rb-head-note span:last-child { display: none; }
  .note-row { grid-template-columns: 110px minmax(0, 1fr); }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .fact-row { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .fact-pill { font-size: 11px; padding-inline: 9px; }
  .device-grid { grid-template-columns: minmax(0, 1fr); }
  .shot-row { flex-direction: column; align-items: center; }
  .capability-detail, .plat-card, .article-card { padding: 20px; }
  .get-actions { gap: 10px; }
  .dl-fab { width: 52px; height: 52px; min-height: 52px; padding: 0; inset-inline-end: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .dl-fab-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body.has-article-fab { padding-bottom: 84px; }
  #install table, #install tbody, #install tr, #install th, #install td { display: block; width: 100%; min-width: 0; }
  #install thead { display: none; }
  #install tr { margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r-card); }
  #install td, #install th { border: 0; border-bottom: 1px solid var(--line); }
  #install td:last-child { border-bottom: 0; }
  #install code { display: block; max-width: 100%; overflow-x: auto; overflow-wrap: normal; word-break: normal; white-space: pre; padding-top: 6px; padding-bottom: 6px; }
}