.get-actions, .actions, .plat-actions, .facts, .shot-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.get-note { margin: 14px 0 0; font-size: 13.5px; color: var(--text-muted); }
.get-note .ver, [data-pkg-ver] { font: 500 12.5px var(--font-mono); color: var(--text); }
.app-store { min-height: 48px; text-align: start; background: var(--text); color: var(--on-accent); }
.app-store:hover { background: var(--accent-dark); color: var(--on-accent); }
.app-store svg { width: 23px; height: 23px; }
.app-store small, .app-store strong { display: block; }
.app-store small { font-size: .75em; font-weight: 500; }
.badge, .fact, .price-pill {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 6px 13px; border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--bg-panel); color: var(--text-muted); font-size: 13px; font-weight: 500;
  overflow-wrap: anywhere;
}
.badge b, .fact b, .price-pill b { color: var(--text); }
.badge::before, [role="tab"]::before {
  content: ""; display: inline-block; flex: none; width: 9px; height: 9px;
  border-radius: var(--r-circle); background: var(--marker,var(--accent)); color: var(--text);
}
.tabset { display: grid; grid-template-columns: minmax(0,38fr) minmax(0,62fr); gap: 24px; align-items: start; }
[role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.tabset [role="tablist"] { flex-direction: column; }
[role="tab"] {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px;
  border: 1px solid transparent; border-radius: var(--r-pill); text-align: start;
  background: var(--bg-panel); color: var(--text); cursor: pointer; font-weight: 600;
}
[role="tab"]:hover { border-color: var(--border-strong); }
[role="tab"][aria-selected="true"] {
  background: var(--bg); color: var(--accent-dark); border-color: var(--border);
  box-shadow: var(--shadow-lift); font-weight: 800;
}
[role="tab"]:nth-child(2) { --marker: var(--c-orange); }
[role="tab"]:nth-child(3) { --marker: var(--c-purple); }
[role="tab"]:nth-child(4) { --marker: var(--c-green); }
[role="tab"]:nth-child(5) { --marker: var(--c-yellow); }
[role="tab"]:nth-child(6) { --marker: var(--c-red); }
.tab-panels { min-width: 0; }
.toc {
  display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--bg-panel); color: var(--text);
}
.toc a { display: inline-flex; align-items: center; min-height: 44px; }
.faq-group { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); }
.faq + .faq { border-top: 1px solid var(--border); }
.faq summary { position: relative; padding: 13px 42px 13px 18px; min-height: 44px; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; inset-inline-end: 16px; color: var(--accent-dark); }
.faq[open] summary::after { content: "−"; }
.faq > :not(summary) { margin: 0; padding: 0 18px 16px; }
.term-card dt { font: 700 16px var(--font-mono); overflow-wrap: anywhere; }
.term-card dd { margin: 8px 0 0; color: var(--text-muted); }
.article-card .badge { margin-bottom: 12px; }
.device-card { display: block; text-decoration: none; }
.device-card:hover { border-color: var(--accent); }
.device-card svg { width: 34px; height: 34px; color: var(--accent-dark); }
.device-card h3 { margin: 8px 0; }
.plat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,290px),1fr)); gap: 20px; align-items: stretch; }
.plat-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.plat-card h3, .plat-card p { margin: 0; }
.plat-card .plat-actions { margin-top: auto; }
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 {
  content: attr(data-mine); border-radius: var(--r-pill); padding: 4px 10px;
  background: var(--accent-soft); color: var(--accent-dark); font-size: 13px; font-weight: 700;
}
.wx-open-tip {
  position: fixed; z-index: 45; inset-inline: 0; bottom: max(20px,env(safe-area-inset-bottom));
  width: max-content; max-width: calc(100% - var(--gutter)*2); margin-inline: auto;
  padding: 12px 18px; border-radius: var(--r-card); box-shadow: var(--shadow-lift);
  background: var(--text); color: var(--on-accent); overflow-wrap: anywhere;
}
.official-shot {
  width: min(100%,280px); margin: 0; padding: 0; flex-shrink: 0;
  border-radius: var(--r-shot); box-shadow: 0 0 0 1px var(--border);
}
.official-shot img { display: block; width: 100%; height: auto; border-radius: 10px; }
.official-shot figcaption { padding: 9px 12px; font-size: 13px; color: var(--text-muted); }
.shot-placeholder {
  width: 100%; aspect-ratio: 750 / 1334; display: grid; place-items: center;
  border-radius: var(--r-shot); background: var(--bg-panel); color: var(--text-muted);
}
.callout {
  padding: 16px 20px; margin-inline: 0; border-inline-start: 3px solid var(--accent);
  border-radius: var(--r-btn); background: var(--accent-soft); color: var(--text);
}
.store-endcap { display: grid; gap: 10px; justify-items: start; margin-block: 36px 0; }
.dl-fab {
  position: fixed; z-index: 20; right: max(var(--gutter),env(safe-area-inset-right));
  bottom: max(16px,env(safe-area-inset-bottom));
}
.article-with-fab { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.table-scroll, .prose table, .wrap table, .data-table {
  display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
  max-width: 100%; min-width: 0;
}
table { border-collapse: collapse; }
td, th { min-width: 7em; padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--border); overflow-wrap: normal; word-break: normal; }
th { background: var(--bg-panel); color: var(--text); }
caption { text-align: start; font-weight: 700; padding-block: 8px; }

.hero {
  max-width: var(--wrap); margin-inline: auto; padding: 32px var(--gutter) 48px;
  min-height: 740px; display: grid; grid-template-columns: 480px minmax(0,1fr);
  gap: 32px; align-items: center; overflow-x: clip;
}
.copy { max-width: 480px; }
.eb {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 4px 14px 4px 4px; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: var(--bg-panel); color: var(--text-muted); font-size: 13px; font-weight: 500;
}
.eb-chip {
  flex: none; padding: 3px 10px; border-radius: var(--r-pill); box-shadow: var(--shadow-rule);
  background: var(--bg); color: var(--text); font-size: 12px; font-weight: 700;
}
.hero .h1 { margin: 0 0 20px; font-size: clamp(34px,3.4vw,48px); letter-spacing: -.035em; }
.h1-line { display: block; }
.hl {
  display: inline-flex; align-items: center; gap: .24em; margin-right: .14em;
  padding: .02em .4em .06em .32em; border-radius: var(--r-pill); white-space: nowrap;
  background: var(--accent-soft); color: var(--text);
}
.hl::before { content: ""; width: .26em; height: .26em; border-radius: var(--r-circle); flex: none; background: var(--accent); color: var(--text); }
.lead { margin: 0 0 28px; font-size: 17px; line-height: 1.75; color: var(--text-muted); }
.lead strong { color: var(--text); font-weight: 600; }
.lead code { padding: 1px 5px; border: 1px solid var(--border); border-radius: var(--r-chip); font-size: .86em; background: var(--bg-panel); color: var(--text); }
.hero .btn-primary { background: var(--accent); color: var(--on-accent); }
.hero .btn-primary:hover { background: var(--accent-dark); color: var(--on-accent); }
.platforms { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.plat-list { display: flex; flex-wrap: wrap; gap: 10px 18px; list-style: none; margin: 0; padding: 0; }
.plat-list a { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--text); text-decoration: none; }
.plat-list a:hover { color: var(--accent-dark); text-decoration: underline; }
.plat-list svg { width: 16px; height: 16px; }
.price-pill { margin-top: 14px; }
.stage { position: relative; margin: 0; padding: 40px 34px 48px 38px; }
.board-wrap { position: relative; }
.board-wrap::before {
  content: ""; position: absolute; inset: 12px 10px -12px;
  background: var(--bg-panel); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--r-board); box-shadow: var(--shadow-lift);
}
.board { position: relative; z-index: 1; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-board); box-shadow: var(--shadow-board); }
.board-bar {
  display: flex; align-items: center; justify-content: space-between; min-height: 46px;
  padding-inline: 18px; border-bottom: 1px solid var(--border);
  border-radius: var(--r-board) var(--r-board) 0 0; background: var(--bg-panel); color: var(--text);
}
.bar-file { display: inline-flex; align-items: center; gap: 10px; font: 600 13px var(--font-mono); }
.bar-sect { padding: 2px 8px; border-radius: var(--r-chip); border: 1px solid var(--border); background: var(--bg); color: var(--text-muted); font-size: 12px; font-weight: 500; }
.bar-dots { display: inline-flex; gap: 7px; }
.bar-dots i { width: 10px; height: 10px; border-radius: var(--r-circle); background: var(--border-strong); color: var(--text); }
.board-body { padding: 18px; }
.cols { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.col { min-width: 0; border-radius: var(--r-col); padding: 12px 10px 10px; background: var(--bg-panel); color: var(--text); }
.col-proxy { --policy: var(--c-blue); --delay: 0s; }
.col-direct { --policy: var(--c-green); --delay: 1.05s; }
.col-reject { --policy: var(--c-red); --delay: 2.1s; }
.col-head { margin: 0 2px 12px; }
.ptag {
  display: inline-flex; align-items: center; height: 24px; padding-inline: 11px;
  border-radius: var(--r-pill); background: var(--policy); color: var(--text);
  font: 700 11.5px var(--font-mono); letter-spacing: .05em;
}
.rules { list-style: none; margin: 0; padding: 0; }
.rule {
  position: relative; overflow: hidden; padding: 10px 12px 10px 15px;
  border-radius: var(--r-rule); box-shadow: var(--shadow-rule),0 0 0 1px var(--border);
  background: var(--bg); color: var(--text); font: 12.5px/1.45 var(--font-mono);
  overflow-wrap: anywhere;
}
.rule + .rule { margin-top: 8px; }
.rule::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--policy); color: var(--text); }
.rk { display: block; color: var(--text-muted); font-size: 11.5px; letter-spacing: .01em; }
.rv { display: block; font-weight: 500; }
.rv b, .final code b { color: var(--accent-dark); }
.col-direct .rv b, .col-reject .rv b { color: var(--text); }
.final {
  --policy: var(--c-blue); --delay: 3.15s;
  position: relative; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-top: 12px; padding: 13px 16px; border-radius: var(--r-col);
  background: var(--bg-panel); color: var(--text-muted); font-size: 13px;
}
.final code {
  padding: 4px 10px; border-radius: var(--r-chip); box-shadow: var(--shadow-rule),0 0 0 1px var(--border);
  background: var(--bg); color: var(--text-muted); font-weight: 600;
}
.rule::after, .final::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px var(--policy); opacity: 0;
  animation: match 6s ease-in-out infinite; animation-delay: calc(var(--delay) + var(--offset,0s));
}
.rule:nth-child(2) { --offset: .35s; }
.rule:nth-child(3) { --offset: .7s; }
@keyframes match { 0%,13%,100% { opacity: 0; } 5% { opacity: 1; } }
.sticker {
  position: absolute; z-index: 3; display: grid; place-items: center;
  width: var(--d); height: var(--d); border: 2px solid var(--text); border-radius: var(--r-circle);
  background: var(--sc); color: var(--text); box-shadow: var(--shadow-sticker);
}
.sticker svg { width: 60%; height: 60%; overflow: visible; }
.sw, .sl { stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sw { fill: var(--bg); }
.sl { fill: none; }
.s-globe { --d: 68px; --sc: var(--c-orange); top: 8px; left: 6px; transform: rotate(-8deg); }
.s-folder { --d: 64px; --sc: var(--c-blue); top: 10px; right: 2px; transform: rotate(7deg); }
.s-shield { --d: 60px; --sc: var(--c-yellow); top: 36%; left: -22px; transform: rotate(-5deg); }
.s-doc { --d: 58px; --sc: var(--c-purple); top: 70%; left: -18px; transform: rotate(6deg); }
.s-toggle { --d: 62px; --sc: var(--c-green); top: 40%; right: -26px; transform: rotate(-6deg); }
.s-search { --d: 56px; --sc: var(--c-red); top: 74%; right: -20px; transform: rotate(9deg); }
.doodle { position: absolute; z-index: 2; overflow: visible; width: 28px; height: 24px; }
.d-globe { top: -13px; left: -4px; }
.d-folder { top: -12px; right: 66px; }
.d-shield { top: calc(36% - 22px); left: 24px; }
.d-doc { top: calc(70% + 59px); left: -24px; }
.d-toggle { top: calc(40% - 25px); right: -4px; }
.d-search { top: calc(74% + 57px); right: -3px; }
.quick { padding-bottom: var(--section-space); }
.quick-panel { padding: 52px 56px 60px; }
.quick-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.quick-head .h2 { margin: 0; }
.kicker { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--accent-dark); }
.more { font-size: 15px; font-weight: 600; color: var(--accent-dark); text-decoration: none; }
.more:hover { text-decoration: underline; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.step { padding: 26px 26px 28px; }
.step-n { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.step h3 { margin: 0 0 8px; }
.step p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--text-muted); }

.swatches { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,130px),1fr)); gap: 12px; }
.swatch { display: grid; gap: 6px; font: 12px var(--font-mono); }
.swatch::before { content: ""; height: 40px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--sample); color: var(--text); }
.sample-bg { --sample: var(--bg); }
.sample-panel { --sample: var(--bg-panel); }
.sample-panel-2 { --sample: var(--bg-panel-2); }
.sample-border { --sample: var(--border); }
.sample-strong { --sample: var(--border-strong); }
.sample-accent { --sample: var(--accent); }
.sample-dark { --sample: var(--accent-dark); }
.sample-soft { --sample: var(--accent-soft); }
.sample-text { --sample: var(--text); }
.sample-muted { --sample: var(--text-muted); }
.sample-faint { --sample: var(--text-faint); }
.sample-on { --sample: var(--on-accent); }
.sample-orange { --sample: var(--c-orange); }
.sample-red { --sample: var(--c-red); }
.sample-yellow { --sample: var(--c-yellow); }
.sample-purple { --sample: var(--c-purple); }
.sample-green { --sample: var(--c-green); }
.sample-blue { --sample: var(--c-blue); }
.sample-veil { --sample: var(--veil); }
.preview-stack > * + * { margin-top: 24px; }

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 36px; padding-top: 40px; }
  .copy { max-width: 620px; }
  .stage { max-width: 820px; width: 100%; justify-self: center; }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .quick-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .hero .h1 { font-size: clamp(24px,7.4vw,30px); letter-spacing: -.02em; }
  .tabset { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .tabset [role="tablist"] { flex-flow: row nowrap; overflow-x: auto; padding: 5px; }
  .tabset [role="tab"] { flex-shrink: 0; }
}
@media (max-width: 640px) {
  .hero { padding-top: 26px; }
  .lead { font-size: 16px; }
  .stage { padding: 30px 16px 36px; }
  .cols { grid-template-columns: 1fr; }
  .col-reject, .s-shield, .s-doc, .s-toggle, .d-shield, .d-doc, .d-toggle, .d-search { display: none; }
  .final { flex-direction: column; align-items: flex-start; gap: 8px; }
  .s-globe { --d: 52px; top: 4px; left: -2px; }
  .s-folder { --d: 50px; top: 6px; right: -4px; }
  .s-search { --d: 48px; top: auto; bottom: 4px; right: 4px; }
  .quick-panel { padding: 36px 22px 40px; border-radius: var(--r-card); }
  .facts { justify-content: center; gap: 6px; }
  .facts .fact { padding: 4px 8px; font-size: 12px; }
  .shot-row { flex-direction: column; align-items: center; }
  .official-shot { margin-inline: auto; }
  .dl-fab { width: 52px; height: 52px; padding: 0; border-radius: var(--r-circle); }
  .dl-fab .fab-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .article-with-fab { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .article-with-fab .prose { padding-inline-end: calc(var(--gutter) + 62px); }
  #install table, #install tbody, #install tr, #install td, #install th[scope="row"] { display: block; min-width: 0; }
  #install thead { display: none; }
  #install tr { margin-block: 10px; border: 1px solid var(--border); border-radius: var(--r-btn); }
  #install td { overflow-x: auto; }
  #install td:last-child { border-bottom: 0; }
  #install code { overflow-wrap: normal; word-break: normal; white-space: pre; }
}
@media (prefers-reduced-motion: reduce) {
  .rule::after, .final::after { animation: none; }
}