/* Rule annotation artwork: real syntax, not a simulated application screen. */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.cross { fill: none; stroke-width: 1; stroke-linecap: round; }
.cross--light { stroke: var(--grid-light); }
.cross--dark { stroke: var(--grid-dark); }
.band { position: relative; margin-top: 88px; isolation: isolate; }
.band__halo {
  position: absolute;
  inset: -64px 14% -48px 20%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 42% 56% at 38% 52%, var(--halo-green), var(--clear) 72%), radial-gradient(ellipse 40% 52% at 64% 58%, var(--halo-lime), var(--clear) 72%);
  color: var(--text);
}
.band__track {
  position: relative;
  display: flex;
  gap: var(--card-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--band-inset);
  padding: 4px var(--band-inset) 40px;
  margin-bottom: -36px;
  scrollbar-width: none;
}
.band__track::-webkit-scrollbar { display: none; }
.rcard {
  flex: 0 0 var(--card-w);
  min-width: 0;
  min-height: var(--card-h);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-card);
}
.rcard__field { position: relative; height: var(--field-h); flex-shrink: 0; display: grid; place-items: center; overflow: hidden; }
.rcard__field::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 34%; background: var(--slab-dark); color: var(--text); }
.rcard--1 .rcard__field { background: linear-gradient(135deg, var(--f1a), var(--f1b)); color: var(--text); }
.rcard--2 .rcard__field { background: linear-gradient(135deg, var(--f2a), var(--f2b)); color: var(--text); }
.rcard--3 .rcard__field { background: linear-gradient(135deg, var(--f3a), var(--f3b)); color: var(--text); }
.rcard--4 .rcard__field { background: linear-gradient(135deg, var(--f4a), var(--f4b)); color: var(--text); }
.rcard--1 .rcard__field::before, .rcard--2 .rcard__field::before { background: var(--slab-light); color: var(--text); }
.field-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, var(--mask-solid) 25%, var(--mask-clear) 85%);
}
.field-grid--light rect { fill: url(#cross-light); }
.field-grid--dark rect { fill: url(#cross-dark); }
.chip-frame { position: relative; z-index: 1; width: 300px; max-width: calc(100% - 24px); padding: 5px; border: 1px solid var(--frame-line); border-radius: var(--r-frame); background: var(--frame-fill); color: var(--text); }
.chip { padding: 11px 14px 12px; border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-chip); text-align: left; }
.chip__head { display: flex; justify-content: space-between; align-items: center; font: var(--weight-normal) 11px/1 var(--font-mono); color: var(--text-muted); }
.dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-circle); }
.dot--proxy { background: var(--accent); color: var(--bg); }
.dot--direct { background: var(--lav); color: var(--text); }
.dot--reject { background: var(--lime); color: var(--lime-ink); box-shadow: inset 0 0 0 1px var(--lime-ink); }
.chip__line { margin: 9px 0 0; font: var(--weight-normal) var(--fs-note)/1.5 var(--font-mono); letter-spacing: var(--tracking-brand); overflow-wrap: anywhere; }
.chip__line .c { color: var(--text-muted); }
.chip__hint { margin: 3px 0 0; font-size: var(--fs-xs); line-height: 1.4; color: var(--text-muted); }
.chip__foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.chip__label { font-size: var(--fs-xs); color: var(--text-muted); }
.k-hl { padding: 1px 4px; border-radius: var(--r-mark); background: var(--accent-soft); color: var(--accent-dark); font-weight: var(--weight-semibold); }
.k-ul { color: var(--lav-ink); font-weight: var(--weight-semibold); text-decoration: underline; text-decoration-color: var(--lav); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.k-blk { padding: 1px 4px; border-radius: var(--r-mark); background: var(--lime); color: var(--lime-ink); font-weight: var(--weight-semibold); }
.policy { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; max-width: 100%; padding: 2px 9px; border-radius: var(--r-pill); font: var(--weight-semibold) 11px/1.4 var(--font-mono); overflow-wrap: anywhere; }
.policy::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: var(--r-circle); background: currentColor; color: inherit; }
.policy--proxy { background: var(--accent-soft); color: var(--accent-dark); }
.policy--direct { background: var(--lav-soft); color: var(--lav-ink); }
.policy--reject { background: var(--lime-soft); color: var(--lime-ink); }
.rcard__body { padding: 20px 22px 22px; border-top: 1px solid var(--border); text-align: left; }
.rcard__body h3 { margin: 0; font-size: var(--fs-h3); line-height: 1.25; }
.rcard__body p { margin: 8px 0 0; font-size: var(--fs-card); line-height: 1.55; color: var(--text-muted); }
.band__next { position: absolute; z-index: 2; top: calc(4px + var(--field-h) / 2 - 26px); left: min(calc(100% - 76px), calc(var(--band-inset) + 3 * var(--card-w) + 2.5 * var(--card-gap) - 26px)); display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid var(--border-strong); border-radius: var(--r-circle); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); }
.band__next svg { width: 20px; height: 20px; }
.band__next:hover { border-color: var(--text); }

.get-actions, .cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; }
.get-actions > .btn { flex: 0 1 auto; }
.get-note { margin: 14px 0 0; font-size: var(--fs-note); line-height: 1.4; color: var(--text-muted); }
.get-note [data-pkg-ver] { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text); }
.store-button { min-height: 52px; padding: 8px 20px; border: 1px solid var(--accent); background: var(--accent); color: var(--bg); box-shadow: var(--shadow-btn); }
.store-button:hover { background: var(--accent-dark); color: var(--bg); border-color: var(--accent-dark); }
.store-button svg { width: 24px; height: 28px; }
.store-button__text { display: block; text-align: left; line-height: 1.35; }
.store-button__text small { display: block; font-size: var(--fs-xs); font-weight: var(--weight-normal); }
.store-button__text strong { display: block; font-size: var(--fs-card); }
.fact-pills, .badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fact-pills li { margin: 0; }
.fact-pill, .badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 11px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text-muted); font-size: var(--fs-xs); overflow-wrap: anywhere; }
.badge--accent { border-color: var(--accent-soft); background: var(--accent-soft); color: var(--accent-dark); }
.fact-pills--center { justify-content: center; }
.platform-entry-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.platform-entry-bar a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--fs-sm); }
.platform-entry-bar svg { width: 20px; height: 20px; flex-shrink: 0; }

.tabs { min-width: 0; }
.tabs [role="tablist"] { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%; margin-bottom: 64px; padding: 4px; overflow-x: auto; scrollbar-width: thin; }
.tabs [role="tab"] { flex-shrink: 0; min-height: 44px; padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text-muted); font-size: var(--fs-sm); white-space: nowrap; }
.tabs [role="tab"]:hover { border-color: var(--accent); color: var(--accent-dark); }
.tabs [role="tab"][aria-selected="true"] { border-color: var(--accent); background: var(--accent); color: var(--bg); font-weight: var(--weight-semibold); }
.tabs [role="tabpanel"] { min-width: 0; outline-offset: 6px; }
.feature-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 80px; padding-bottom: 32px; }
.feature-detail h2 { font-size: var(--fs-h2); }
.feature-detail p { color: var(--text-muted); line-height: 1.85; }
.feature-detail li { color: var(--text-muted); }
.rule-sheet { position: relative; min-width: 0; margin-right: 22px; padding: 30px 30px 58px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); }
.rule-sheet pre { margin: 0; padding: 0; border: 0; box-shadow: none; font-size: var(--fs-note); }
.rule-note { position: absolute; right: -22px; bottom: -28px; max-width: min(340px, 95%); padding: 17px 22px; border: 2px solid var(--accent); border-radius: var(--r-card); background: var(--bg); color: var(--accent-dark); box-shadow: var(--shadow-card); font-size: var(--fs-sm); }
.rule-note::before { content: ""; position: absolute; inset: 15px auto 15px 10px; width: 3px; border-radius: var(--r-mark); background: var(--accent); color: var(--bg); }
.toc { position: sticky; top: 16px; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.toc a { display: block; min-height: 44px; padding: 10px 14px; border-radius: var(--r-btn); font-size: var(--fs-sm); }
.toc a:hover, .toc a[aria-current="location"] { background: var(--accent-soft); color: var(--accent-dark); }
.toc--flow { position: static; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); background: var(--bg); color: var(--text); }
.faq-item summary { position: relative; min-height: 64px; padding: 20px 36px 20px 0; list-style: none; cursor: pointer; font-weight: var(--weight-semibold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 18px; color: var(--accent-dark); font-size: var(--fs-subtitle); }
.faq-item[open] summary::after { content: "−"; }
.faq-item__answer { max-width: 800px; padding-bottom: 22px; color: var(--text-muted); }
.faq-item__answer p:last-child { margin-bottom: 0; }
.term-card { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.term-card h3 { font: var(--weight-strong) var(--fs-subtitle)/1.4 var(--font-mono); overflow-wrap: anywhere; }
.term-card p { margin-bottom: 0; color: var(--text-muted); }
.term-card .badge { margin-bottom: 14px; }

.plat-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.plat-card { position: relative; flex: 1 1 300px; min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); scroll-margin-top: 24px; }
.plat-card__icon { display: block; width: 28px; height: 28px; margin-bottom: 20px; color: var(--accent-dark); }
.plat-card p { color: var(--text-muted); }
.plat-card::before { display: none; content: attr(data-mine); position: absolute; top: 14px; right: 14px; max-width: calc(100% - 28px); padding: 3px 9px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-dark); font-size: var(--fs-xs); overflow-wrap: anywhere; }
.plat-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.plat-actions > .btn { min-width: 0; flex: 1 1 150px; }
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: var(--layer-tip); left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(460px, calc(100% - var(--gutter) * 2)); padding: 18px 22px; border: 2px solid var(--accent); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-chip); font-size: var(--fs-sm); }
.wx-open-tip button { min-width: 44px; min-height: 44px; border: 0; border-radius: var(--r-btn); background: var(--bg-panel); color: var(--text); }

.shot-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 28px; }
.official-shot { width: min(280px, 100%); max-width: 100%; flex-shrink: 0; margin: 0; padding: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot img { outline: 1px solid var(--border); outline-offset: -1px; }
.official-shot figcaption { margin-top: 12px; color: var(--text-muted); font-size: var(--fs-note); line-height: 1.6; }
.device-entry { display: flex; align-items: flex-start; gap: 20px; min-width: 0; padding: 26px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); }
.device-entry > svg { width: 40px; height: 48px; flex-shrink: 0; color: var(--accent-dark); }
.device-entry > div { min-width: 0; }
.device-entry h3 { margin-bottom: 6px; font-size: var(--fs-subtitle); }
.device-entry p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.device-entry:hover { border-color: var(--accent); }
.article-card { display: flex; flex-direction: column; min-width: 0; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--border); background: var(--bg); color: var(--text); }
.article-card__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; color: var(--text-muted); font-size: var(--fs-xs); }
.article-card h3 { font-size: var(--fs-h3); line-height: 1.45; }
.article-card h3 a:hover { color: var(--accent-dark); }
.article-card p { color: var(--text-muted); font-size: var(--fs-card); }
.article-card__link { align-self: flex-start; margin-top: auto; color: var(--accent-dark); font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 4px; }
.callout { margin: 28px 0; padding: 22px 26px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-btn); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.callout p:last-child { margin-bottom: 0; }
.callout__title { display: block; margin-bottom: 8px; color: var(--accent-dark); font-weight: var(--weight-strong); }
.article-store-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); }
.article-store-card__copy { flex: 1 1 280px; min-width: 0; }
.article-store-card__copy h2 { font-size: var(--fs-h3); }
.article-store-card__copy p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.dl-fab { position: fixed; z-index: var(--layer-fab); right: max(var(--gutter), env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px; min-height: 52px; max-width: calc(100% - var(--gutter) * 2); padding: 12px 18px; border: 1px solid var(--accent-dark); border-radius: var(--r-btn); background: var(--accent); color: var(--bg); box-shadow: var(--shadow-btn); font-size: var(--fs-sm); font-weight: var(--weight-strong); }
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.dl-fab:hover { background: var(--accent-dark); color: var(--bg); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); text-align: left; }
.data-table :is(th, td), .prose table :is(th, td) { min-width: 7em; padding: 16px; border: 1px solid var(--border); vertical-align: top; overflow-wrap: normal; word-break: normal; }
.data-table th, .prose table th { background: var(--bg-panel); color: var(--text); font-weight: var(--weight-semibold); }
.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 { overflow-wrap: anywhere; word-break: normal; }

/* Static specimen furniture, kept out of page-specific inline styles. */
.specimen { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.specimen + .specimen { padding-top: 0; }
.specimen-heading { margin-bottom: 36px; }
.specimen-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 24px; }
.specimen-stack { display: grid; gap: 28px; min-width: 0; }
.specimen-label { font: var(--weight-medium) var(--fs-xs)/1.5 var(--font-mono); color: var(--text-muted); }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.swatch { min-width: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: var(--bg); color: var(--text); }
.swatch__paint { display: block; height: 72px; border-bottom: 1px solid var(--border); color: var(--text); }
.swatch figcaption { padding: 12px; font: var(--weight-normal) var(--fs-xs)/1.7 var(--font-mono); overflow-wrap: anywhere; }
.paint-bg { background: var(--bg); }
.paint-panel { background: var(--bg-panel); }
.paint-panel2 { background: var(--bg-panel-2); }
.paint-border { background: var(--border); }
.paint-border-strong { background: var(--border-strong); }
.paint-accent { background: var(--accent); }
.paint-accent-dark { background: var(--accent-dark); }
.paint-accent-soft { background: var(--accent-soft); }
.paint-text { background: var(--text); }
.paint-muted { background: var(--text-muted); }
.paint-success { background: var(--success); }
.paint-warn { background: var(--warn); }
.paint-error { background: var(--error); }
.paint-lav { background: var(--lav); }
.paint-lav-ink { background: var(--lav-ink); }
.paint-lav-soft { background: var(--lav-soft); }
.paint-lime { background: var(--lime); }
.paint-lime-ink { background: var(--lime-ink); }
.paint-lime-soft { background: var(--lime-soft); }
.paint-pink { background: var(--pink); }
.paint-field1 { background: linear-gradient(135deg, var(--f1a), var(--f1b)); }
.paint-field2 { background: linear-gradient(135deg, var(--f2a), var(--f2b)); }
.paint-field3 { background: linear-gradient(135deg, var(--f3a), var(--f3b)); }
.paint-field4 { background: linear-gradient(135deg, var(--f4a), var(--f4b)); }
.paint-grid-light { background: var(--grid-light); }
.paint-grid-dark { background: var(--grid-dark); }
.paint-slab-light { background: var(--slab-light); }
.paint-slab-dark { background: var(--slab-dark); }
.paint-frame-fill { background: var(--frame-fill); }
.paint-frame-line { background: var(--frame-line); }
.paint-halo-green { background: var(--halo-green); }
.paint-halo-lime { background: var(--halo-lime); }
.paint-mask-solid { background: var(--mask-solid); }
.paint-mask-clear { background: var(--mask-clear); }
.paint-clear { background: var(--clear); }
.paint-veil { background: var(--veil); }
.type-display { font-size: var(--h1-size); font-weight: var(--weight-display); line-height: 1.15; font-family: var(--font-display); }
.shot-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 750 / 1334; border: 1px solid var(--border); border-radius: var(--r-shot); background: var(--bg-panel); color: var(--text-muted); text-align: center; font-size: var(--fs-note); }
.preview-footer { margin-top: 0; }
.preview-fab { position: static; }
.preview-toc { position: static; }

@media (max-width: 960px) {
  .tabs [role="tablist"] { justify-content: flex-start; }
  .feature-detail { gap: 40px; }
}
@media (max-width: 768px) {
  .feature-detail { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .tabs [role="tablist"] { margin-bottom: 36px; }
}
@media (max-width: 640px) {
  .get-actions, .cta { align-items: stretch; width: min(360px, 100%); margin-inline: auto; }
  .get-actions > .btn, .cta > .btn { flex: 1 1 100%; }
  .fact-pills, .badge-row { flex-direction: row; flex-wrap: wrap; }
  .fact-pills--center { justify-content: center; }
  .band { margin-top: 56px; }
  .band__next { display: none; }
  .chip-frame { width: calc(var(--card-w) - 40px); }
  .chip { padding-inline: 10px; }
  .chip__line { font-size: var(--fs-xs); }
  .rcard__body { padding: 18px; }
  .rcard__body h3 { font-size: var(--fs-subtitle); }
  .rcard__body p { font-size: var(--fs-sm); }
  .plat-card { flex-basis: 100%; padding: 24px; }
  .plat-actions > .btn { flex-basis: 100%; }
  .shot-row { flex-direction: column; align-items: center; }
  .official-shot { margin-inline: auto; }
  .rule-sheet { padding: 22px 18px 58px; margin-right: 12px; }
  .rule-note { right: -12px; padding-right: 14px; }
  .toc { flex-wrap: nowrap; overflow-x: auto; }
  .toc a { white-space: nowrap; flex-shrink: 0; }
  .dl-fab { width: 52px; height: 52px; min-height: 52px; padding: 0; justify-content: center; border-radius: var(--r-circle); }
  .dl-fab__text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  body.has-article-fab { padding-bottom: 92px; }
  #install .table-scroll { overflow-x: auto; }
  #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-card); overflow: hidden; }
  #install td { border: 0; border-bottom: 1px solid var(--border); }
  #install td:last-child { border-bottom: 0; }
  #install td::before { content: attr(data-label); display: block; margin-bottom: 8px; font-weight: var(--weight-strong); }
  #install code { display: block; max-width: 100%; overflow-x: auto; white-space: pre; overflow-wrap: normal; word-break: normal; }
}