.get-actions, .ctas, .plat-actions, .fact-row, .plats, .plat-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.get-actions > *, .ctas > *, .plat-actions > * { min-width: 0; }
.get-note {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: var(--f-caption);
  line-height: 20px;
}
.get-note [data-pkg-ver] { color: var(--text); font: var(--f-hero-small)/1.6 var(--font-mono); }
.pkg-note:not(:has([data-pkg-ver]:not(:empty))) { display: none; }
html[data-visitor-os="mac"] [data-os-pick] svg { display: none; }
.app-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  min-height: 50px;
  padding: 7px 16px;
  border: 1px solid var(--ink);
  border-radius: var(--r-btn);
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-card);
  line-height: 1.25;
}
.app-store-btn:hover { background: var(--accent-dark); color: var(--bg); border-color: var(--accent-dark); }
.app-store-btn:active { transform: translateY(1px); }
.app-store-btn svg { width: 22px; height: 22px; }
.app-store-btn small, .app-store-btn strong { display: block; }
.app-store-btn small { font-size: var(--f-micro); }
.app-store-btn strong { font-size: var(--f-small); }

.badge, .chip, .fact, .price-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 7px;
  max-width: 100%;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  overflow-wrap: anywhere;
  text-align: center;
}
.badge, .fact, .price-pill {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: var(--f-caption);
}
.badge { min-height: 30px; padding-inline: 10px 14px; gap: 10px; box-shadow: var(--shadow-xs); }
.badge b, .fact b { color: var(--text); font-weight: 700; }
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.chip {
  background: var(--bg-panel-2);
  color: var(--accent-dark);
  font: 600 var(--f-chip)/1.35 var(--font-mono);
  letter-spacing: .06em;
}
.chip svg { width: 12px; height: 12px; }
.fact-row { justify-content: center; gap: 6px; }
.fact { font-size: var(--f-micro); }
.fact-row a:hover, a.price-pill:hover { border-color: var(--accent); color: var(--accent-dark); }

.plat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,268px),1fr));
  gap: 18px;
}
.plat-card, .device-card, .term-card, .article-card, .article-store {
  display: block;
  min-width: 0;
  overflow-wrap: break-word;
  padding: clamp(16px,3vw,24px);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.plat-card { display: flex; flex-direction: column; align-items: flex-start; }
.plat-actions { margin-top: auto; padding-top: 8px; }
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"][data-mine]::before,
html[data-visitor-os="mac"] .plat-card[data-plat="mac"][data-mine]::before,
html[data-visitor-os="windows"] .plat-card[data-plat="windows"][data-mine]::before,
html[data-visitor-os="android"] .plat-card[data-plat="android"][data-mine]::before,
html[data-visitor-os="linux"] .plat-card[data-plat="linux"][data-mine]::before {
  content: attr(data-mine);
  margin-bottom: 10px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--bg-panel-2);
  color: var(--accent-dark);
  font-size: var(--f-micro);
  font-weight: 700;
}
.plat-price { color: var(--accent-dark); font-weight: 700; }
.device-card svg { width: 32px; height: 32px; margin-bottom: 8px; color: var(--accent-dark); }
:is(a.device-card,a.plat-card,.article-card:focus-within):hover, a.device-card:focus-visible { border-color: var(--accent-dark); }
.article-card h3 a:hover { color: var(--accent-dark); text-decoration: underline; }
:is(.device-card,.term-card,.article-card,.article-store) p:last-child { margin-bottom: 0; }
.article-store { margin-block: 32px; border-inline-start: 3px solid var(--accent); }
.wx-open-tip {
  position: fixed;
  z-index: 80;
  inset-inline-start: 50%;
  inset-block-end: max(24px,env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: min(460px,calc(100% - var(--gutter) * 2));
  padding: 12px 18px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-card);
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-float);
  overflow-wrap: anywhere;
  text-align: center;
}

[role="tablist"], .toc {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 6px;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
[role="tab"], .toc a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: var(--r-btn);
  line-height: 1.35;
  font-weight: 650;
  text-align: center;
  overflow-wrap: anywhere;
}
[role="tab"]:hover, .toc a:hover { background: var(--bg-panel-2); color: var(--accent-dark); }
[role="tab"][aria-selected="true"], .toc a[aria-current="location"] {
  background: var(--bg);
  color: var(--accent-dark);
  box-shadow: var(--shadow-xs);
}
[role="tabpanel"] { margin-top: 12px; }
.toc { margin-bottom: 24px; }
.faq-item {
  margin-block: 10px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; color: var(--accent-dark); font-family: var(--font-mono); }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-answer { padding: 12px 16px; }
.faq-answer > :last-child, .callout > :last-child { margin-bottom: 0; }
.callout {
  margin: 1.25em 0;
  padding: 14px 18px;
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--r-card);
  background: var(--bg-panel);
  color: var(--text);
}
.callout[data-tone="warn"] { border-inline-start-color: var(--warn); }
.callout[data-tone="error"] { border-inline-start-color: var(--error); }
.callout[data-tone="success"] { border-inline-start-color: var(--success); }

.official-shot {
  width: min(100%,280px);
  flex-shrink: 0;
  margin: 0;
}
.official-shot img { display:block; width:100%; height:auto; border-radius:var(--r-shot); }
.official-shot :is(img,.shot-placeholder) { outline: 1px solid var(--border); outline-offset: -1px; }
.official-shot figcaption { margin-top: 8px; color: var(--text-muted); font-size: var(--f-caption); text-align: center; }
.shot-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.shot-row > :not(.official-shot) { flex: 1 1 260px; min-width: 0; }
.shot-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 750 / 1334;
  background: var(--bg-panel);
  color: var(--text-muted);
  border-radius: var(--r-shot);
  text-align: center;
}

.table-scroll, .prose table, .reading table, .wrap table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
}
.table-scroll { border: 1px solid var(--border); border-radius: var(--r-card); }
.table-scroll > table { display: table; width: 100%; }
table { border-collapse: collapse; }
:is(.data-table,.prose table,.reading table,.wrap table) :is(th,td) {
  min-width: 7em;
  padding: 10px 14px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  overflow-wrap: normal;
  word-break: normal;
}
:is(.data-table,.prose table,.reading table,.wrap table) th { background: var(--bg-panel); color: var(--text); }
:is(th,td) code { overflow-wrap: anywhere; }

.dl-fab {
  position: fixed;
  inset-inline-end: max(24px,env(safe-area-inset-right));
  inset-block-end: max(24px,env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 14px 18px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-float);
  font-size: var(--f-small);
  font-weight: 700;
  transition: border-color .2s var(--ease);
}
.dl-fab svg { width: 18px; height: 18px; color: var(--accent-dark); }
.dl-fab:hover { border-color: var(--accent-dark); }

.first {
  position: relative;
  background: linear-gradient(180deg,var(--bg-panel),var(--bg) 600px);
  color: var(--text);
}
.hero { position: relative; padding: 56px max(20px,var(--gutter)) 0; }
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 { margin: 26px 0 0; line-height: 1.14; }
.hero h1 .ln { display: block; }
.hero h1 em { font-style: normal; color: var(--accent-dark); }
.lede {
  margin: 22px 0 0;
  max-width: 660px;
  color: var(--text-muted);
  font-size: var(--f-lede);
  line-height: 1.62;
}
.lede strong { color: var(--text); font-weight: 650; }
.hero .get-actions, .hero .ctas { margin-top: 30px; justify-content: center; }
.plats { justify-content: center; gap: 18px; min-height: 34px; margin-top: 24px; }
.plat-list { justify-content: center; gap: 12px 18px; margin: 0; padding: 0; list-style: none; }
.plat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: var(--f-platform);
  font-weight: 600;
  white-space: nowrap;
}
.plat:hover { color: var(--accent-dark); text-decoration: underline; }
.plat svg { width: 16px; height: 16px; color: var(--accent-dark); }
.plat .ic-line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.plats-sep { width: 1px; height: 18px; background: var(--border-strong); }
.price-pill { min-height: 30px; padding-inline: 12px; font-size: var(--f-hero-small); }
.price-pill b { color: var(--accent-dark); font-family: var(--font-mono); font-weight: 600; }

.field {
  position: absolute;
  inset: 0 0 auto;
  height: 600px;
  overflow: hidden;
  overflow-x: clip;
  pointer-events: none;
  z-index: 0;
}
.field > svg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 600px;
  max-width: none;
  margin-left: -720px;
  transform-origin: 50% 0;
}
.frag :is(line,path) { fill: none; stroke: var(--accent); stroke-linecap: round; vector-effect: non-scaling-stroke; }
.frag .n { stroke-opacity: .92; }
.frag .m { stroke-opacity: .52; }
.frag .f { stroke-opacity: .26; }
.frag .w2 { stroke-width: 2; }
.frag .w3 { stroke-width: 2.8; }
.frag .w4 { stroke-width: 3.6; }
.kw { fill: var(--accent-dark); fill-opacity: .55; font: 500 var(--f-rule) var(--font-mono); letter-spacing: .04em; }
.drift { animation: rule-drift 20s ease-in-out infinite; }
.drift.d2 { animation-delay: -6s; animation-direction: reverse; }
.drift.d3 { animation-delay: -12s; }
.drift.d4 { animation-delay: -3s; animation-direction: reverse; }
@keyframes rule-drift {
  0%,100% { transform: translate(0,0); opacity: 1; }
  50% { transform: translate(4px,-3px); opacity: .78; }
}
.minis {
  position: relative;
  z-index: 2;
  max-width: var(--w-max);
  margin: 112px auto 0;
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
}
.mini {
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.mini:hover { border-color: var(--border-strong); }
.mini-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; padding: 22px 24px 0; }
.mini h2 { margin: 0; font-size: var(--f-brand); line-height: 1.3; }
.mini p { margin: 6px 0 0; font-size: var(--f-small); line-height: 1.55; color: var(--text-muted); }
.iso { display: block; width: 100%; height: auto; margin-top: 6px; }
.iso-base { fill: var(--bg-panel); stroke: var(--border); }
.iso-mid { fill: var(--bg); stroke: var(--border-strong); }
.iso-top { fill: var(--bg); stroke: var(--accent); stroke-opacity: .55; stroke-width: 1.2; }
.iso-rule { stroke: var(--border-strong); stroke-dasharray: 3 4; }
.iso-hl { fill: var(--accent-wash); stroke: var(--accent); stroke-opacity: .45; }
.iso-glow { fill: var(--accent-soft); filter: blur(6px); }
.iso-t { font: var(--f-micro) var(--font-mono); fill: var(--text); }
.iso-kw { fill: var(--accent-dark); font-weight: 600; }
.iso-label { font: 700 var(--f-nav) var(--font-display); fill: var(--text); }

.feature-list { display: grid; gap: 112px; }
.feature-row {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: start;
  gap: clamp(28px,6vw,100px);
}
.feature-row:nth-child(even) .feature-figure { order: -1; }
.feature-figure { margin: 48px 0 0; padding: 0; }
.feature-figure .iso { margin: 0; }
.settings-specimen {
  width: min(100%,28rem);
  margin-inline: auto;
  padding: 12px;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-xs), 0 8px 0 -4px var(--border), var(--shadow-float);
}
.settings-specimen ul { margin: 0; padding: 0 12px; list-style: none; background: var(--bg); color: var(--text); border-radius: var(--r-btn); }
.settings-specimen li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; overflow-wrap: anywhere; }
.settings-specimen li + li { border-top: 1px solid var(--border); }
.setting-switch {
  flex: none;
  width: 27px;
  height: 15px;
  padding: 2px;
  background: var(--bg-panel-2);
  color: var(--accent-dark);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
}
.setting-switch::after { content: ""; display: block; width: 9px; height: 9px; background: currentColor; border-radius: var(--r-pill); }

.preview .navpanel { max-width: var(--w-max); }
.preview .drift { animation: none; }
.preview-group + .preview-group { margin-top: 46px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,126px),1fr)); gap: 10px; padding: 0; list-style: none; }
.swatches li { min-width: 0; padding: 7px; border: 1px solid var(--border); border-radius: var(--r-card); }
.swatches i { display: block; height: 36px; margin-bottom: 5px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--swatch,var(--bg)); color: var(--text); }
.sw-bg { --swatch: var(--bg); }
.sw-panel { --swatch: var(--bg-panel); }
.sw-panel2 { --swatch: var(--bg-panel-2); }
.sw-glass { --swatch: var(--bg-glass); }
.sw-border { --swatch: var(--border); }
.sw-border-strong { --swatch: var(--border-strong); }
.sw-accent { --swatch: var(--accent); }
.sw-hover { --swatch: var(--accent-hover); }
.sw-dark { --swatch: var(--accent-dark); }
.sw-soft { --swatch: var(--accent-soft); }
.sw-wash { --swatch: var(--accent-wash); }
.sw-text { --swatch: var(--text); }
.sw-muted { --swatch: var(--text-muted); }
.sw-on { --swatch: var(--on-accent); }
.sw-success { --swatch: var(--success); }
.sw-warn { --swatch: var(--warn); }
.sw-error { --swatch: var(--error); }
.sw-ink { --swatch: var(--ink); }
.sw-ink-text { --swatch: var(--ink-text); }
.sw-ink-muted { --swatch: var(--ink-muted); }
.sw-ink-line { --swatch: var(--ink-line); }
.sw-veil { --swatch: var(--veil); }
.sw-a { --swatch: var(--line-a); }
.sw-b { --swatch: var(--line-b); }
.sw-c { --swatch: var(--line-c); }
.preview .sw-ink-line { background: var(--ink); color: var(--ink-text); }

@media (max-width: 1180px) { .field > svg { transform: scale(.84); } }
@media (max-width: 900px) {
  .minis { grid-template-columns: minmax(0,1fr); max-width: 520px; margin-top: 72px; padding-bottom: 88px; }
  .plats-sep { display: none; }
  .field > svg { transform: scale(.62); }
  .feature-list { gap: 64px; }
  .feature-row { grid-template-columns: minmax(0,1fr); }
  .feature-row:nth-child(even) .feature-figure { order: 0; }
  .feature-figure { margin-top: 0; }
}
@media (max-width: 640px) {
  .hero { padding-top: 40px; padding-inline: var(--gutter); }
  .lede { font-size: var(--f-button); }
  .hero h1 { margin-top: 20px; }
  .hero .get-actions, .hero .ctas { margin-top: 22px; }
  .field > svg { transform: scale(.46); }
  .hero .field { opacity: .65; }
  .field .kw { display: none; }
  .shot-row { flex-direction: column; align-items: stretch; }
  .shot-row > :not(.official-shot) { flex: auto; }
  .official-shot { margin-inline: auto; }
  .dl-fab {
    inset-inline-end: max(6px,env(safe-area-inset-right));
    inset-block-end: max(12px,env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    padding: 0;
  }
  .dl-fab svg { width: 22px; height: 22px; }
  .dl-fab .fab-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #install table, #install :is(tbody,tr,td,th[scope="row"]) { display: block; width: 100%; }
  #install thead { display: none; }
  #install tr + tr { border-top: 2px solid var(--border-strong); }
  #install :is(td,th) { min-width: 0; }
  #install :is(td,th) code { white-space: pre-wrap; overflow-wrap: normal; word-break: normal; }
  #install :is(td,th) { overflow-x: auto; }
}