/* The approved first-screen composition is shared with the preview. */
.hero { position: relative; overflow-x: clip; padding-top: 40px; }
.hero__copy { position: relative; z-index: 2; max-width: var(--page-w); margin-inline: auto; padding-inline: var(--gutter); text-align: center; }
.tag, .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  max-width: 100%;
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: var(--size-caption);
  font-weight: var(--weight-medium);
  line-height: 20px;
  overflow-wrap: anywhere;
}
.tag__dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--accent); color: var(--on-accent); }
.tag__sep { color: var(--border); }
.hero__title { margin: 20px 0 0; font-size: clamp(30px, 2.2vw + 16px, 48px); line-height: 1.15; }
.ink { position: relative; display: inline-block; z-index: 0; white-space: nowrap; }
.ink__stroke { position: absolute; left: -6%; bottom: -.2em; width: 112%; height: .36em; z-index: -1; color: var(--accent-2); overflow: visible; }
.hero__lead { max-width: 760px; margin: 16px auto 0; font-size: 16.5px; line-height: 1.7; color: var(--text-muted); }
.hero__lead strong { font-weight: var(--weight-semibold); color: var(--text); }
.hero__actions, .get-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 14px; margin-top: 28px; }
.get-actions > * { min-width: 0; }
.hero__note, .get-note { margin: 12px 0 0; font-size: var(--size-caption); line-height: 20px; color: var(--text-secondary); }
.hero__note .ver, .get-note [data-pkg-ver] { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); }
.dot-sep { margin-inline: 6px; color: var(--text-faint); }
.platform-line { margin-top: 22px; display: flex; justify-content: center; align-items: center; gap: 22px; min-height: 44px; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.platforms li { margin: 0; }
.pf { position: relative; display: flex; align-items: center; gap: 7px; font-size: var(--size-small); font-weight: var(--weight-medium); color: var(--text-muted); white-space: nowrap; text-decoration: none; }
.pf__ico { height: 17px; width: auto; flex-shrink: 0; }
.pf__ico--stroke { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pf.is-here { color: var(--text); }
.pf__here { position: absolute; left: -4px; right: -6px; bottom: -12px; height: 9px; width: calc(100% + 10px); color: var(--accent-2); overflow: visible; }
.platform-line__rule { width: 1px; height: 20px; flex-shrink: 0; background: var(--border); color: var(--text); }
.price-chip { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 3px; align-items: center; min-height: 30px; max-width: 100%; padding: 4px 14px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 12.5px; font-weight: var(--weight-medium); color: var(--text-secondary); }
.price-chip b { font-family: var(--font-mono); font-weight: var(--weight-medium); color: var(--text); }
.sketch { position: absolute; z-index: 1; fill: none; stroke: var(--line-art); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.sketch--check { width: 46px; height: 36px; top: 206px; left: calc(50% - 520px); }
.sketch--wave { width: 96px; height: 24px; top: 150px; left: calc(50% + 430px); }
.stage { position: relative; max-width: var(--window-w); margin: 88px auto 0; padding: 0; }
.floor { position: absolute; z-index: 0; top: 110px; left: 50%; width: 1680px; height: 520px; margin-left: -840px; color: var(--border); stroke: currentColor; stroke-width: 1; fill: none; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, var(--mask-off), var(--mask-on) 34%, var(--mask-on) 62%, var(--mask-off)); mask-image: linear-gradient(to bottom, var(--mask-off), var(--mask-on) 34%, var(--mask-on) 62%, var(--mask-off)); }
.sketch--loop { width: 150px; height: 118px; top: -74px; left: -112px; }
.sketch--paper { width: 100px; height: 122px; top: 150px; right: -118px; }
.conf { position: relative; z-index: 2; margin: 0; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-window); box-shadow: var(--shadow-float); overflow: hidden; }
.conf__bar { position: relative; height: 44px; display: flex; align-items: center; padding-inline: 18px; background: var(--bg-panel); color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.conf__dots { display: flex; gap: 8px; }
.conf__dots i { width: 12px; height: 12px; border-radius: var(--r-circle); background: var(--dot); color: var(--text); }
.conf__title { position: absolute; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: var(--size-caption); font-weight: var(--weight-medium); color: var(--text-muted); }
.conf__body { display: grid; grid-template-columns: 24% minmax(0, 1fr); height: 520px; }
.conf__outline { background: var(--bg-panel-2); color: var(--on-dark); padding: 22px 16px; }
.conf__label { margin: 0 0 12px 14px; font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: .08em; color: var(--on-dark-dim); }
.conf__sections { list-style: none; margin: 0; padding: 0; }
.conf__sections li { position: relative; margin: 0 0 4px; padding: 8px 14px 8px 20px; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: var(--size-small); line-height: 20px; color: var(--on-dark); }
.conf__sections li.is-current { background: var(--on-dark-fill); color: var(--on-dark-strong); }
.conf__sections li.is-current::before { content: ""; position: absolute; left: 9px; top: 9px; bottom: 9px; width: 3px; border-radius: var(--r-rule); background: var(--accent); color: var(--on-accent); }
.conf__text { min-width: 0; padding-top: 20px; padding-bottom: 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 15.5px; }
.conf__lines { list-style: none; margin: 0; padding: 0; min-width: max-content; }
.conf__lines li { display: grid; grid-template-columns: 64px 1fr; line-height: 30px; min-height: 30px; margin: 0; padding-right: 24px; }
.ln { padding-right: 24px; text-align: right; font-size: 12.5px; color: var(--text-faint); user-select: none; }
.code { position: relative; display: inline-block; justify-self: start; padding-left: 8px; white-space: pre; color: var(--text); isolation: isolate; }
.sec { font-weight: var(--weight-bold); color: var(--text); }
.key, .rt { color: var(--text); }
.rt { font-weight: var(--weight-medium); }
.eq, .cm-p { color: var(--text-faint); }
.val, .arg, .direct { color: var(--text-muted); }
.proxy { font-weight: var(--weight-semibold); color: var(--accent); }
.cm { font-style: italic; color: var(--text-faint); }
.marker { position: absolute; z-index: -1; left: -2px; top: 3px; width: calc(100% + 14px); height: 25px; color: var(--accent-2); overflow: visible; }
.stage-after { height: 160px; }

.tabs { position: relative; display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 64px; }
.tabs__list, [role="tablist"].manual-list { display: flex; flex-direction: column; gap: 12px; align-self: start; }
.tabs__tab {
  position: relative;
  display: block;
  width: 100%;
  padding: 12px 12px 16px 38px;
  border: 0;
  background: var(--bg);
  color: var(--text-secondary);
  font: inherit;
  text-align: left;
}
.tabs__tab strong { display: block; margin-bottom: 4px; font-size: 18px; }
.tabs__tab small { display: block; font-size: var(--size-caption); line-height: 1.6; }
.tabs__tab[aria-selected="true"] { color: var(--text); }
.tabs__tab[aria-selected="true"]::before { content: "✓"; position: absolute; left: 4px; top: 9px; font-size: 26px; color: var(--accent-2); transform: rotate(-12deg); }
.tabs__tab[aria-selected="true"]::after { content: ""; position: absolute; left: 36px; bottom: 8px; width: 76px; height: 5px; border-bottom: 3px solid var(--accent-2); border-radius: var(--r-circle); transform: rotate(-3deg); }
.tabs__panel { position: relative; padding: var(--panel-pad); background: var(--bg); color: var(--text); border-radius: var(--r-panel); box-shadow: var(--shadow-float); border: 1px solid var(--border); align-self: start; }
.tabs__panel p { line-height: 1.9; }
.tabs__material { margin-top: 28px; padding: 20px; background: var(--bg-panel); color: var(--text); border-radius: var(--r-btn); overflow-x: auto; font-family: var(--font-mono); font-size: var(--size-small); }
.tabs__material pre { padding: 0; border: 0; margin: 0; border-radius: 0; }
.tabs__paper { right: -36px; bottom: -64px; width: 80px; height: 96px; }
.protocols { display: flex; flex-wrap: wrap; gap: 8px; }
.protocols span { padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: var(--size-caption); }
.toc { position: sticky; top: 16px; z-index: 10; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.toc__links { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.toc__links li { margin: 0; flex-shrink: 0; }
.toc a { display: block; min-height: 44px; padding: 10px 16px; border-radius: var(--r-pill); color: var(--text-secondary); text-decoration: none; white-space: nowrap; font-size: var(--size-small); }
.toc a:hover, .toc [aria-current="location"] { background: var(--bg-panel); color: var(--text); }
.toc--static { position: static; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { position: relative; padding: 24px 36px 24px 0; list-style: none; font-weight: var(--weight-semibold); cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font: var(--weight-normal) 24px/1.5 var(--font-mono); color: var(--text-secondary); }
.faq-item[open] summary::after { content: "−"; }
.faq-item__answer { padding-bottom: 24px; max-width: 850px; color: var(--text-secondary); line-height: 1.9; }
.faq-item__answer > :last-child { margin-bottom: 0; }
.term-card { padding: 28px; border-radius: var(--r-panel); border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.term-card__name { font-family: var(--font-mono); font-size: 19px; margin-bottom: 10px; }
.term-card p { color: var(--text-secondary); }
.term-card p:last-child { margin: 0; }
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  max-width: 100%;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--r-btn);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  box-shadow: var(--shadow-accent);
}
.store-button:hover { background: var(--accent-dark); color: var(--on-accent); border-color: var(--accent-dark); }
.store-button svg { width: 27px; height: 30px; flex-shrink: 0; }
.store-button__text { display: block; text-align: left; line-height: 1.2; }
.store-button__text small { display: block; font-size: 11px; margin-bottom: 3px; }
.store-button__text strong { display: block; font-size: 17px; font-weight: var(--weight-semibold); }
.fact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; padding: 0; margin: 24px 0 0; list-style: none; }
.fact-row li { margin: 0; min-width: 0; }
.fact-chip { display: inline-block; max-width: 100%; padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text-secondary); font-size: 12px; overflow-wrap: anywhere; }
.fact-chip b { font-weight: var(--weight-medium); color: var(--text); }
.plat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); }
.plat-card { position: relative; min-width: 0; padding: 34px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.plat-card h3 { margin-top: 8px; }
.plat-card p { color: var(--text-secondary); }
.plat-card__price { color: var(--text) !important; font-weight: var(--weight-semibold); }
.plat-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-top: 24px; }
.plat-actions .btn { flex: 1 1 170px; }
.plat-card::before { display: none; content: attr(data-mine); margin-bottom: 12px; color: var(--text); font-size: var(--size-caption); border-bottom: 3px solid var(--accent-2); }
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: inline-block; }
.wx-open-tip { position: fixed; z-index: 80; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: calc(100% - var(--gutter) * 2); max-width: 520px; padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--bg); color: var(--text); box-shadow: var(--shadow-float); font-size: var(--size-small); }
.official-shots { 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: 10px; }
.official-shot { border: 1px solid var(--border); border-radius: var(--r-small); background: var(--bg); color: var(--text); }
.official-shot figcaption { padding: 14px 12px; color: var(--text-secondary); font-size: var(--size-caption); text-align: center; line-height: 1.7; }
.device-card { display: flex; align-items: center; gap: 24px; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--bg); color: var(--text); text-decoration: none; box-shadow: var(--shadow-soft); }
.device-card:hover { color: var(--text); border-color: var(--accent-2); }
.device-card svg { width: 42px; height: 64px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; }
.device-card strong { display: block; margin-bottom: 6px; }
.device-card p { margin: 0; color: var(--text-secondary); font-size: var(--size-small); }
.article-card { display: block; padding: 32px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--bg); color: var(--text); text-decoration: none; box-shadow: var(--shadow-soft); }
.article-card:hover { color: var(--text); border-color: var(--accent-2); }
.article-card__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; color: var(--text-secondary); font-size: var(--size-caption); }
.article-card h3 { font-size: 21px; line-height: 1.5; }
.article-card p { color: var(--text-secondary); font-size: var(--size-small); }
.article-card__more { color: var(--accent-dark); font-size: var(--size-small); }
.callout { margin: 28px 0; padding: 24px 28px; border-left: 3px solid var(--accent-2); border-radius: 0 var(--r-btn) var(--r-btn) 0; background: var(--bg-panel); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout__title { font-weight: var(--weight-semibold); margin-bottom: 8px; }
.store-guide { padding: var(--panel-pad); border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.store-guide h2 { font-size: var(--size-h3); }
.store-guide p { color: var(--text-secondary); }
.dl-fab { position: fixed; z-index: 25; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 20px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-accent); text-decoration: none; font-size: var(--size-small); font-weight: var(--weight-semibold); }
.dl-fab:hover { background: var(--accent-dark); color: var(--on-accent); }
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.table-scroll, .prose table, .manual-body table { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table, .manual-body table { display: block; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--size-small); text-align: left; }
.data-table th, .data-table td,
.prose table th, .prose table td,
.manual-body table th, .manual-body 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, .manual-body table th { background: var(--bg-panel); color: var(--text); font-weight: var(--weight-semibold); }
.data-table td, .prose table td, .manual-body table td { background: var(--bg); color: var(--text); }
.data-table code { overflow-wrap: anywhere; }

.preview-section { padding-top: var(--section-gap); }
.preview-section > h2 { text-align: center; margin-bottom: 48px; }
.preview-stack { display: grid; gap: 24px; }
.preview-swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.preview-swatch { border: 1px solid var(--border); border-radius: var(--r-btn); overflow: hidden; background: var(--bg); color: var(--text); }
.preview-swatch__paint { height: 76px; border-bottom: 1px solid var(--border); }
.preview-swatch code { display: block; padding: 12px; font-size: 12px; }
.sw-bg { background: var(--bg); color: var(--text); }
.sw-panel { background: var(--bg-panel); color: var(--text); }
.sw-panel-2 { background: var(--bg-panel-2); color: var(--on-dark-strong); }
.sw-border { background: var(--border); color: var(--text); }
.sw-accent { background: var(--accent); color: var(--on-accent); }
.sw-accent-dark { background: var(--accent-dark); color: var(--on-accent); }
.sw-cyan { background: var(--accent-2); color: var(--text); }
.sw-text { background: var(--text); color: var(--bg); }
.sw-muted { background: var(--text-muted); color: var(--bg); }
.sw-secondary { background: var(--text-secondary); color: var(--bg); }
.sw-faint { background: var(--text-faint); color: var(--text); }
.sw-success { background: var(--success); color: var(--text); }
.sw-warn { background: var(--warn); color: var(--text); }
.sw-error { background: var(--error); color: var(--on-accent); }
.sw-on-dark { background: var(--on-dark); color: var(--text); }
.sw-on-dark-dim { background: var(--on-dark-dim); color: var(--text); }
.sw-on-dark-fill { background: var(--bg-panel-2); color: var(--on-dark-strong); box-shadow: inset 0 0 0 30px var(--on-dark-fill); }
.sw-dot { background: var(--dot); color: var(--text); }
.sw-line { background: var(--line-art); color: var(--text); }
.sw-veil { background: var(--veil); color: var(--text); }
.sw-mask-on { background: var(--mask-on); color: var(--bg); }
.sw-mask-off { background: var(--mask-off); color: var(--text); }
.preview-shot-placeholder { display: grid; align-content: center; justify-items: center; width: 100%; aspect-ratio: 750 / 1334; padding: 24px; border-radius: var(--r-small); background: var(--bg-panel); color: var(--text-secondary); text-align: center; }
.preview-shot-placeholder strong { color: var(--text); }
.preview-type-title { font-size: var(--size-h1); font-weight: var(--weight-bold); letter-spacing: var(--tracking-title); line-height: 1.15; }
.preview-fab { position: static; width: fit-content; }
@media (max-width: 1180px) {
  .sketch--check, .sketch--wave { display: none; }
  .stage { margin-inline: 24px; }
  .tabs { gap: 36px; }
}
@media (max-width: 1040px) {
  .sketch--loop, .sketch--paper { display: none; }
}
@media (max-width: 860px) {
  .platform-line { flex-direction: column; gap: 18px; }
  .platform-line__rule { display: none; }
  .platforms { gap: 16px 20px; }
  .tabs { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tabs__list { gap: 4px; }
  .tabs__tab { min-height: 64px; }
  .tabs__paper { display: none; }
}
@media (max-width: 768px) {
  .hero__title { font-size: 30px; }
}
@media (max-width: 720px) {
  .hero { padding-top: 28px; }
  .hero__lead { font-size: 15px; }
  .hero__actions { max-width: 320px; margin-inline: auto; }
  .hero__actions .btn { width: 100%; }
  .stage { margin: 56px 16px 0; }
  .floor { display: none; }
  .conf__body { grid-template-columns: minmax(0, 1fr); height: auto; }
  .conf__outline { padding: 12px; overflow-x: auto; }
  .conf__label { display: none; }
  .conf__sections { display: flex; gap: 4px; min-width: max-content; }
  .conf__sections li { margin: 0; white-space: nowrap; font-size: 13px; }
  .conf__text { font-size: 13px; padding-top: 14px; padding-bottom: 20px; }
  .conf__lines li { grid-template-columns: 40px 1fr; }
  .ln { padding-right: 12px; }
  .stage-after { height: 96px; }
}
@media (max-width: 640px) {
  .hero__title { font-size: clamp(24px, 7.8vw, 30px); }
  .get-actions { justify-content: center; }
  .get-actions .btn { flex: 1 1 220px; }
  .fact-row { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .plat-grid { grid-template-columns: minmax(0, 1fr); }
  .plat-card { padding: 26px; }
  .official-shots { flex-direction: column; align-items: center; }
  .official-shot { width: min(280px, 100%); }
  .device-card { padding: 24px; gap: 18px; }
  .tabs__material { padding: 16px; }
  .preview-swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-fab { width: 52px; height: 52px; min-height: 52px; padding: 0; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); border-radius: var(--r-circle); }
  .dl-fab__text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  #install table, #install tbody, #install tr, #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-btn); }
  #install td { padding: 16px; }
  #install td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 8px; font-weight: var(--weight-semibold); }
  #install code { display: block; max-width: 100%; overflow-x: auto; overflow-wrap: normal; word-break: normal; white-space: pre; }
}