.hero__top {
  padding-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  column-gap: 72px;
  align-items: end;
}
.eyebrow {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 18px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--accent); color: var(--text); flex-shrink: 0; }
.hero h1 { margin: 0; }
.lede { margin: 22px 0 0; max-width: 40em; font-size: var(--text-lede); line-height: 1.65; color: var(--text-muted); }
.lede strong { color: var(--text); }
.hero__act { padding-bottom: 4px; min-width: 0; }
.get-actions, .cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.get-actions > *, .cta > * { min-width: 0; }
.get-note { margin: 14px 0 0; font-size: 13px; line-height: 20px; color: var(--text-muted); }
.get-note .ver { font-family: var(--font-mono); color: var(--text-soft); }
.plats { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.plats li, .plats a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 22px; color: var(--text-muted); white-space: nowrap; text-decoration: none; }
.plats a:hover { color: var(--accent-dark); text-decoration: underline; }
.plats svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--text-soft); }
.plats .ic-tux { width: 13px; }
.pill, .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 3px 12px 3px 10px;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 18px;
  overflow-wrap: anywhere;
}
.hero__act > .pill { margin-top: 14px; }
.pill__dot { width: 6px; height: 6px; border-radius: var(--r-round); background: var(--accent); color: var(--text); flex-shrink: 0; }
.pill__k { color: var(--text); }
.pill__sep { color: var(--text-muted); }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 0; margin: 24px 0 0; list-style: none; }
.badge--selected { background: var(--bg-panel); color: var(--accent-dark); border-color: var(--accent-30); }

.stage { position: relative; margin-top: 44px; padding-bottom: 84px; }
.field {
  position: absolute;
  inset: 160px 0 0;
  background: var(--bg-panel);
  color: var(--accent-dark);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, var(--transparent) 0, var(--text) 6%, var(--text) 94%, var(--transparent) 100%);
  mask-image: linear-gradient(90deg, var(--transparent) 0, var(--text) 6%, var(--text) 94%, var(--transparent) 100%);
}
.field pre {
  position: absolute;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--transparent);
  color: var(--accent-30);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: var(--field-row);
  letter-spacing: 0.36em;
  white-space: pre;
  user-select: none;
  overflow: visible;
}
.field b { font-weight: inherit; color: var(--accent-62); }
.field__side--l { left: 0; top: 0; }
.field__side--r { right: 0; top: 0; text-align: right; }
.field__floor { left: 0; top: 228px; }
.conf {
  position: relative;
  z-index: 1;
  width: 88%;
  margin-inline: auto;
  background: var(--surface);
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-win);
  box-shadow: var(--shadow-win);
  overflow: hidden;
}
.conf__bar { height: 38px; padding-inline: 14px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: var(--bg-panel-2); color: var(--text-muted); border-bottom: 1px solid var(--border); }
.conf__dots { display: flex; gap: 7px; }
.conf__dots i { width: 11px; height: 11px; flex-shrink: 0; border-radius: var(--r-round); opacity: 0.78; }
.conf__dots i:nth-child(1) { background: var(--error); color: var(--text); }
.conf__dots i:nth-child(2) { background: var(--warn); color: var(--text); }
.conf__dots i:nth-child(3) { background: var(--success); color: var(--text); }
.conf__title { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; }
.conf__code {
  position: relative;
  list-style: none;
  margin: 0;
  padding-block: 18px;
  padding-inline: 0;
  counter-reset: ln;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: var(--row-h);
  color: var(--text-soft);
  overflow-x: auto;
}
.conf__code::before { content: ""; position: absolute; inset: 0 0 0 auto; width: var(--note-w); background: var(--bg-panel-2); color: var(--text); border-left: 1px solid var(--border); }
.conf__code::after { content: ""; position: absolute; inset: 0 auto 0 var(--gutter-w); width: 1px; background: var(--border); color: var(--text); }
.ln {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--gutter-w) max-content minmax(24px, 1fr) var(--note-w);
  align-items: center;
  min-width: 100%;
  height: var(--row-h);
  counter-increment: ln;
  animation: line-rise 0.32s var(--ease) both;
}
.ln::before { content: counter(ln); align-self: stretch; padding-right: 14px; text-align: right; font-size: var(--text-xs); color: var(--text-muted); }
.ln__src { grid-column: 2; padding-left: 18px; font: inherit; white-space: pre; overflow-wrap: normal; }
.ln__lead { grid-column: 3; position: relative; height: 0; margin-left: 16px; border-top: 1px dashed var(--line-dash); }
.ln__lead::before { content: ""; position: absolute; left: -3px; top: -3px; width: 5px; height: 5px; border-radius: var(--r-round); background: var(--line-dash); color: var(--text); }
.ln__note { grid-column: 4; display: flex; align-items: center; height: 100%; }
.ln__note::before { content: ""; width: 14px; border-top: 1px dashed var(--line-dash); flex-shrink: 0; }
.tag { display: inline-block; max-width: 100%; padding-inline: 8px; font-family: var(--font-mono); font-size: 11.5px; line-height: 18px; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-tag); overflow-wrap: anywhere; }
.tag b { font-weight: var(--weight-medium); color: var(--text); margin-right: 6px; }
.ln--cur { background: var(--accent-06); color: var(--text-soft); }
.ln--cur::before { color: var(--accent-dark); box-shadow: inset 2px 0 0 var(--accent); }
.t-cm { color: var(--text-muted); }
.t-sec, .t-key, .t-rule { color: var(--text); font-weight: var(--weight-medium); }
.t-op { color: var(--text-muted); }
.t-val { color: var(--text-soft); }
.t-pol { color: var(--accent-dark); font-weight: var(--weight-medium); }
.cursor { display: inline-block; width: 8px; height: 15px; margin-left: 3px; vertical-align: -3px; background: var(--accent); color: var(--text); animation: cursor-blink 1.6s ease-in-out 1.25s infinite; }
.ln:nth-child(1) { animation-delay: 0.08s; }
.ln:nth-child(2) { animation-delay: 0.15s; }
.ln:nth-child(3) { animation-delay: 0.22s; }
.ln:nth-child(4) { animation-delay: 0.29s; }
.ln:nth-child(5) { animation-delay: 0.36s; }
.ln:nth-child(6) { animation-delay: 0.43s; }
.ln:nth-child(7) { animation-delay: 0.50s; }
.ln:nth-child(8) { animation-delay: 0.57s; }
.ln:nth-child(9) { animation-delay: 0.64s; }
.ln:nth-child(10) { animation-delay: 0.71s; }
.ln:nth-child(11) { animation-delay: 0.78s; }
.ln:nth-child(12) { animation-delay: 0.85s; }
@keyframes line-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cursor-blink { 0%, 40%, 100% { opacity: 1; } 55%, 88% { opacity: 0.12; } }
.kicker { margin: 0 0 18px; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; color: var(--text-muted); }
.next { padding-top: 140px; padding-bottom: 160px; }
.next h2 { margin: 0; max-width: 22em; }
.next__lede { margin: 18px 0 0; max-width: 38em; color: var(--text-muted); }

.tabs { display: grid; grid-template-columns: minmax(190px, 0.75fr) minmax(0, 2fr); gap: 64px; align-items: start; }
.tabs > * { min-width: 0; }
.tabs [role="tablist"] { display: flex; flex-direction: column; gap: 8px; }
.tabs [role="tab"] { position: relative; min-height: 48px; padding: 12px 20px; text-align: left; font-family: var(--font-mono); font-size: var(--text-sm); border: 0; border-radius: var(--r-btn); background: var(--transparent); color: var(--text-muted); }
.tabs [role="tab"][aria-selected="true"] { color: var(--text); background: var(--accent-06); }
.tabs [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; inset: 8px auto 8px 0; width: 2px; background: var(--accent); color: var(--text); }
.tab-panel { padding: 40px; min-width: 0; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); color: var(--text); box-shadow: var(--shadow-panel); }
.tab-panel h3 { margin-top: 0; }
.tab-panel p { color: var(--text-muted); line-height: 1.9; }
.tab-panel pre { margin-bottom: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-block: 18px; background: var(--bg); color: var(--text); font-family: var(--font-mono); font-size: var(--text-sm); }
.toc a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-muted); text-decoration: none; }
.toc a:hover, .toc a[aria-current] { color: var(--accent-dark); text-decoration: underline; }
.toc--sticky { position: sticky; top: var(--header-h); z-index: 5; }
.faq-item { border-bottom: 1px solid var(--border); padding-block: 10px; }
.faq-item summary { position: relative; padding: 18px 36px 18px 0; cursor: pointer; list-style: none; font-size: 18px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--font-mono); color: var(--accent-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-item > :not(summary) { max-width: 65em; color: var(--text-muted); }
.term-card { border-left: 2px solid var(--accent); }
.term-card dt { font-family: var(--font-mono); font-size: 18px; color: var(--text); }
.term-card dd { margin: 16px 0 0; color: var(--text-muted); }
.appstore-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 56px;
  padding: 9px 18px;
  border: 1px solid var(--text);
  border-radius: var(--r-btn);
  background: var(--text);
  color: var(--surface);
  text-decoration: none;
}
.appstore-button:hover, .appstore-button.is-hover { background: var(--ink-hover); color: var(--surface); text-decoration: none; }
.appstore-button svg { width: 25px; height: 29px; flex-shrink: 0; }
.appstore-button__text { display: flex; flex-direction: column; line-height: 1.35; }
.appstore-button__text small { font-size: var(--text-xs); }
.appstore-button__text strong { font-size: var(--text-base); font-weight: var(--weight-medium); }
.appstore-guide { padding: 32px; background: var(--bg-panel); color: var(--text); border-radius: var(--r-card); }
.appstore-guide h2 { font-size: var(--text-h3); margin-top: 0; }
.appstore-guide p { 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 28px 28px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-card); }
.plat-card h3 { margin-top: 0; }
.plat-card p { color: var(--text-muted); }
.plat-card::before { display: none; content: attr(data-mine); position: absolute; top: 10px; right: 14px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent-dark); }
.plat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; 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; inset: auto 16px 24px; z-index: 60; width: max-content; max-width: calc(100% - 32px); margin-inline: auto; padding: 20px 24px; background: var(--text); color: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-panel); font-size: var(--text-sm); }
.wx-open-tip button { margin-left: 12px; padding: 6px 10px; border: 1px solid var(--surface); border-radius: var(--r-btn); background: var(--text); color: var(--surface); }
.official-shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.official-shot { width: 100%; max-width: 280px; min-width: 0; 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(--border); border-radius: var(--r-shot); }
.official-shot figcaption { padding-block: 12px; font-size: 13px; text-align: center; color: var(--text-muted); }
.device-card { display: flex; align-items: flex-start; gap: 20px; text-decoration: none; }
.device-card svg { width: 40px; height: 48px; color: var(--text-soft); flex-shrink: 0; }
.device-card h3 { margin-bottom: 8px; }
.device-card p { margin: 0; }
.device-card:hover { border-color: var(--accent); }
.article-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.article-card h3, .article-card p { margin: 0; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { text-decoration: underline; }
.article-card .btn-link { margin-top: auto; }
.callout { margin: 28px 0; padding: 24px 28px; border-left: 2px solid var(--accent); border-radius: var(--r-btn); background: var(--bg-panel); color: var(--text); }
.callout p { margin: 0; }
.callout p + p { margin-top: 12px; }
.dl-fab { position: fixed; right: 24px; bottom: 24px; z-index: 20; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 14px 20px; border-radius: var(--r-btn); background: var(--text); color: var(--surface); box-shadow: var(--shadow-panel); font-family: var(--font-mono); font-size: var(--text-sm); text-decoration: none; }
.dl-fab svg { width: 20px; height: 20px; flex-shrink: 0; }
.dl-fab:hover { background: var(--ink-hover); color: var(--surface); text-decoration: none; }
body.has-dl-fab { padding-bottom: 88px; }

.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; }
.data-table th, .data-table td, .prose table th, .prose table td { min-width: 7em; padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: normal; word-break: normal; }
.data-table th, .prose table th { background: var(--bg-panel-2); color: var(--text); font-weight: var(--weight-medium); }
.data-table td, .prose table td { background: var(--surface); color: var(--text-soft); }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; text-align: left; }

.palette { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { min-width: 0; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-card); }
.swatch__paint { height: 72px; border-bottom: 1px solid var(--border); }
.swatch code { display: block; padding: 10px 12px; font-size: var(--text-xs); }
.swatch--bg { background: var(--bg); color: var(--text); }
.swatch--surface { background: var(--surface); 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--strong { background: var(--border-strong); color: var(--text); }
.swatch--dash { background: var(--line-dash); color: var(--text); }
.swatch--accent { background: var(--accent); color: var(--text); }
.swatch--accent-dark { background: var(--accent-dark); color: var(--surface); }
.swatch--a06 { background: var(--accent-06); color: var(--text); }
.swatch--a14 { background: var(--accent-14); color: var(--text); }
.swatch--a30 { background: var(--accent-30); color: var(--text); }
.swatch--a62 { background: var(--accent-62); color: var(--text); }
.swatch--text { background: var(--text); color: var(--surface); }
.swatch--soft { background: var(--text-soft); color: var(--surface); }
.swatch--muted { background: var(--text-muted); color: var(--surface); }
.swatch--faint { background: var(--text-faint); color: var(--text); }
.swatch--hover { background: var(--ink-hover); color: var(--surface); }
.swatch--success { background: var(--success); color: var(--text); }
.swatch--warn { background: var(--warn); color: var(--text); }
.swatch--error { background: var(--error); color: var(--surface); }
.swatch--transparent { background: var(--transparent); color: var(--text); }
.swatch--veil { background: var(--veil); color: var(--text); }
.preview-shot { aspect-ratio: 750 / 1334; display: grid; place-items: center; border-radius: var(--r-shot); background: var(--bg-panel-2); color: var(--text-muted); font-family: var(--font-mono); font-size: var(--text-sm); }
.preview-states { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.preview-focus { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.preview-title { font-size: var(--text-h1); line-height: 1.1; }
.preview-header .lang-switch summary { list-style: none; cursor: pointer; }
.preview-header .lang-switch summary::-webkit-details-marker { display: none; }

@media (max-width: 1080px) {
  :root { --note-w: 180px; }
  .hero__top { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .hero__act { padding-bottom: 0; }
  .conf { width: 94%; }
  .tabs { gap: 32px; }
}
@media (max-width: 900px) {
  .ln { grid-template-columns: var(--gutter-w) max-content; }
  .ln__lead, .ln__note, .conf__code::before { display: none; }
}
@media (max-width: 768px) {
  .hero__top { padding-top: 40px; }
  .lede { font-size: var(--text-base); }
  .conf { width: 100%; }
  .conf__code { font-size: 12.5px; }
  .ln__src { padding-left: 12px; }
  .ln::before { padding-right: 10px; font-size: 11px; }
  .field__side--l, .field__side--r { display: none; }
  .tabs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tabs [role="tablist"] { flex-direction: row; overflow-x: auto; padding-block: 4px; }
  .tabs [role="tab"] { flex-shrink: 0; border: 1px solid var(--border); border-radius: var(--r-pill); white-space: nowrap; background: var(--surface); color: var(--text-muted); }
  .tabs [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--text); border-color: var(--accent); }
  .tabs [role="tab"][aria-selected="true"]::before { display: none; }
  .tab-panel { padding: 24px; }
}
@media (max-width: 640px) {
  .hero__top { row-gap: 24px; }
  .hero .eyebrow { margin-bottom: 16px; }
  .hero .lede { margin-top: 18px; }
  .get-actions, .cta { gap: 14px 20px; }
  .facts { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .facts .pill { font-size: 11px; padding-inline: 8px; }
  .plat-grid { grid-template-columns: minmax(0, 1fr); }
  .plat-card { padding-inline: 22px; }
  .official-shots { flex-direction: column; align-items: center; }
  .palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-fab { width: 52px; height: 52px; min-height: 52px; padding: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); border-radius: var(--r-round); }
  .dl-fab__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #install .table-scroll { overflow-x: visible; }
  #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: 20px; border: 1px solid var(--border); border-radius: var(--r-card); }
  #install th, #install td { padding: 14px 16px; }
  #install td[data-label]::before { display: block; content: attr(data-label); margin-bottom: 8px; font-weight: var(--weight-medium); color: var(--text); }
  #install code { display: block; max-width: 100%; overflow-x: auto; white-space: pre; word-break: normal; overflow-wrap: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .ln { animation: none; opacity: 1; transform: none; }
  .cursor { animation: none; opacity: 1; }
}