.hero { padding-top: 40px; padding-bottom: 96px; }
.hero-field {
  position: absolute;
  inset: 0 0 0 calc(50% - 140px);
  border-left: 1px solid var(--border);
  background-color: var(--bg-panel-2);
  color: var(--text);
  background-image:
    linear-gradient(to bottom, var(--clear) 52%, var(--bg-panel-2) 100%),
    linear-gradient(var(--grid-line) 1px, var(--clear) 1px),
    linear-gradient(90deg, var(--grid-line) 1px, var(--clear) 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  background-position: 0 0, -1px -1px, -1px -1px;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: var(--lead-w) minmax(0, 1fr); gap: var(--col-gap); align-items: stretch; }
.lead { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.index-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: var(--size-reading); line-height: 1.5; }
.index-list a { font-weight: var(--weight-bold); text-decoration: underline; text-decoration-thickness: 2px; }
.index-dash { color: var(--text-muted); margin-inline: 0.35em; }
.index-note { color: var(--text); }
.title { margin: 0; font-size: var(--size-h1); line-height: var(--leading-title); }
.title-line { display: block; }
.lede { margin: 20px 0 0; max-width: 31em; font-size: var(--size-body); line-height: 1.7; color: var(--text-muted); }
.lede strong { color: var(--text); }
.device-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 24px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--border); font-size: var(--size-small); }
.device { display: inline-flex; align-items: center; gap: 5px; font-weight: var(--weight-semibold); color: var(--text); text-decoration: none; }
.device svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.chip-group { display: inline-flex; gap: 6px; margin-left: auto; }
.chip, .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  max-width: 100%;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  color: var(--text);
  font-size: var(--size-caption);
  font-weight: var(--weight-semibold);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.chip svg, .badge svg { width: 12px; height: 12px; flex-shrink: 0; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--accent); color: var(--bg-panel); flex-shrink: 0; }
.fact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.fact-row .chip { font-weight: var(--weight-medium); }
.toc-board { background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-board); padding: 30px 32px 26px; min-width: 0; }
.toc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.toc-title { margin: 0; font-size: var(--size-h3); line-height: 1.2; }
.toc-meta { font-size: var(--size-small); color: var(--text-muted); }
.toc-cells { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 14px; }
.cell { display: flex; flex-direction: column; min-width: 0; padding: 16px 18px 18px; border-radius: var(--radius-card); border: 1px solid var(--clear); }
.cell-raised { background: var(--bg-panel); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-raise); }
.cell-tint { background: var(--bg-panel-2); color: var(--text); }
.cell-line { background: var(--bg-panel); color: var(--text); border-color: var(--border-faint); }
.cell-title { margin: 0 0 12px; font-size: var(--size-small); font-weight: var(--weight-bold); line-height: 1.3; color: var(--accent); letter-spacing: normal; }
.cell-note { margin: auto 0 0; padding-top: 10px; font-size: var(--size-caption); line-height: 1.55; color: var(--text-muted); }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.checks li > :last-child { min-width: 0; }
.checkbox { flex-shrink: 0; width: 15px; height: 15px; margin-top: 2px; border: 1.5px solid var(--text-muted); border-radius: var(--radius-tab); background: var(--bg-panel); color: var(--text); }
.check-k { display: block; font-size: var(--size-tiny); color: var(--text-muted); line-height: 1.4; }
.check-v { display: block; font-size: var(--size-small); font-weight: var(--weight-semibold); line-height: 1.35; overflow-wrap: anywhere; }
.check-v.mono { font-weight: var(--weight-medium); font-size: var(--size-caption); }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--size-small); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border-faint); }
.kv-row span:first-child { font-weight: var(--weight-semibold); }
.kv-val { color: var(--accent-dark); font-weight: var(--weight-semibold); }
.field-label { display: block; font-size: var(--size-tiny); color: var(--text-muted); margin-bottom: 5px; }
.urlbox { display: block; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-mini); background: var(--bg-panel-2); color: var(--text); font-family: var(--font-mono); font-size: var(--size-tiny); line-height: 1.55; overflow-wrap: anywhere; }
.group { margin: 0; padding: 0; list-style: none; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-soft); }
.group li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 12px; font-size: var(--size-small); }
.group li + li { border-top: 1px solid var(--border-faint); }
.group-k { font-weight: var(--weight-semibold); }
.group-v { font-size: var(--size-tiny); color: var(--text-muted); }
.rules { display: grid; gap: 4px; }
.rule-line { display: block; font-family: var(--font-mono); font-size: var(--size-caption); line-height: 1.75; overflow-wrap: anywhere; }
.t-key { color: var(--accent-dark); font-weight: var(--weight-semibold); }
.t-sep { color: var(--text-muted); }
.t-pol { color: var(--accent); font-weight: var(--weight-bold); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mode { display: flex; align-items: center; justify-content: center; min-height: 30px; padding: 3px 7px; border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: var(--size-caption); font-weight: var(--weight-semibold); color: var(--text-muted); background: var(--bg-panel); }
.mode-default { border: 1.5px solid var(--accent); color: var(--accent); background: var(--accent-wash); }
.cell-note code { font-size: var(--size-tiny); color: var(--text); }
.devlist { margin: 0; padding: 0; list-style: none; }
.devlist li { padding-top: 8px; padding-bottom: 8px; }
.devlist li + li { border-top: 1px solid var(--border-faint); }
.devlist strong { display: block; font-size: var(--size-small); line-height: 1.35; }
.devlist span { display: block; font-size: var(--size-caption); color: var(--text-muted); line-height: 1.5; }
.toc-foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: var(--size-small); color: var(--text-muted); }
.plus { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border: 1.5px dashed var(--border); border-radius: var(--radius-card); color: var(--text-muted); font-size: var(--size-h3); }
.letters { padding-top: 64px; padding-bottom: 160px; }
.letters-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 80px; align-items: start; }
.letters-side { position: sticky; top: 32px; }
.letters-title { margin: 0 0 32px; font-size: var(--size-h2); line-height: 1.18; }
.tablist, [role="tablist"].tablist { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--border); }
.tab-item {
  appearance: none;
  margin-left: -1px;
  padding: 8px 0 8px 18px;
  min-height: 44px;
  border: 0;
  border-left: 3px solid var(--clear);
  background: var(--clear);
  text-align: left;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.tab-item:hover { color: var(--accent-dark); }
.tab-item[aria-selected="true"] { border-left-color: var(--accent); font-weight: var(--weight-bold); color: var(--accent-dark); text-decoration-thickness: 2px; }
.letter { background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-board); padding: 40px 48px 44px; min-width: 0; }
.letter-kicker { margin: 0 0 12px; font-size: var(--size-small); font-weight: var(--weight-bold); color: var(--accent); }
.snippet { display: block; margin: 0 0 26px; padding: 12px 16px; max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-mini); background: var(--bg-panel-2); color: var(--text); font-family: var(--font-mono); font-size: var(--size-label); }
.letter p { margin: 0 0 24px; font-size: var(--size-reading); line-height: var(--leading-reading); }
.letter-link { font-weight: var(--weight-bold); text-decoration-thickness: 2px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; font-weight: var(--weight-semibold); }
.toc-sticky { position: sticky; top: 12px; z-index: 5; }
.faq-item { border-bottom: 1px solid var(--border); padding-top: 8px; padding-bottom: 8px; }
.faq-item summary { position: relative; list-style: none; cursor: pointer; min-height: 56px; padding: 14px 36px 14px 0; font-weight: var(--weight-bold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 12px; color: var(--accent); font-size: var(--size-h3); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-top: 8px; padding-bottom: 20px; max-width: 65em; }
.faq-answer > :last-child { margin-bottom: 0; }
.term-card { padding: 24px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-soft); min-width: 0; }
.term-card dt { color: var(--accent-dark); font-family: var(--font-mono); font-size: var(--size-reading); font-weight: var(--weight-bold); margin-bottom: 12px; overflow-wrap: anywhere; }
.term-card dd { margin: 0; }
.appstore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  max-width: 100%;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--bg-panel);
  border: 1px solid var(--accent);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-btn);
  text-decoration: none;
  line-height: 1.25;
  font-weight: var(--weight-bold);
}
.appstore-button:hover, .appstore-button:active { background: var(--accent-dark); color: var(--bg-panel); border-color: var(--accent-dark); }
.appstore-button svg { width: 25px; height: 28px; flex-shrink: 0; }
.appstore-copy { display: flex; flex-direction: column; gap: 2px; }
.appstore-copy small { color: inherit; font-size: var(--size-tiny); font-weight: var(--weight-normal); }
.appstore-copy strong { font-size: var(--size-body); }
.official-shot { width: 100%; max-width: 280px; margin: 0 auto; flex-shrink: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: 10px; }
.official-shot { outline: 1px solid var(--border); outline-offset: 0; border-radius: var(--radius-shot); }
.official-shot figcaption { padding-top: 12px; padding-bottom: 8px; font-size: var(--size-small); line-height: 1.6; color: var(--text-muted); }
.shot-layout { display: flex; align-items: flex-start; gap: 48px; }
.shot-layout > :first-child { flex: 1; min-width: 0; }
.device-card { display: flex; align-items: flex-start; gap: 24px; padding: 32px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-board); }
.device-card > svg { width: 48px; height: 64px; color: var(--accent); flex-shrink: 0; }
.device-card > div { min-width: 0; }
.device-card h3 { margin-bottom: 12px; }
.device-card p { color: var(--text-muted); }
.article-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-soft); }
.article-card h3 { margin-top: 18px; font-size: var(--size-h3); }
.article-card h3 a { color: var(--text); text-decoration: none; }
.article-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.article-card p { color: var(--text-muted); }
.article-card .letter-link { margin-top: auto; }
.callout { margin: 28px 0; padding: 20px 24px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-mini); background: var(--bg-panel); color: var(--text); }
.callout > :last-child { margin-bottom: 0; }
.callout strong { color: var(--accent-dark); }
.table-scroll { overflow-x: auto; max-width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--size-label); }
.data-table th, .data-table td, .prose table th, .prose table td {
  min-width: 7em;
  padding: 14px 18px;
  border: 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-bold); }
.data-table td, .prose table td { background: var(--bg-panel); color: var(--text); }
.data-table code, .prose table code { overflow-wrap: anywhere; }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; text-align: left; }
.dl-fab { position: fixed; right: 24px; bottom: 24px; z-index: 20; display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - 40px); padding: 14px 20px; min-height: 52px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--bg-panel); color: var(--accent-dark); box-shadow: var(--shadow-board); text-decoration: none; font-weight: var(--weight-bold); }
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.article-store-card { margin-top: 48px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-board); }
.article-store-card h2 { font-size: var(--size-h3); margin-top: 0; }
.article-has-fab { padding-bottom: 100px; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.preview-grid > * { min-width: 0; }
.preview-section { padding-top: 160px; }
.preview-section > h2 { margin-bottom: 36px; }
.swatch { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); overflow: clip; }
.swatch-paint { height: 72px; border-bottom: 1px solid var(--border); }
.swatch figcaption { padding: 12px; font-size: var(--size-small); overflow-wrap: anywhere; }
.swatch-bg { background: var(--bg); color: var(--text); }
.swatch-panel { background: var(--bg-panel); color: var(--text); }
.swatch-panel-2 { background: var(--bg-panel-2); color: var(--text); }
.swatch-border { background: var(--border); color: var(--text); }
.swatch-border-faint { background: var(--border-faint); color: var(--text); }
.swatch-accent { background: var(--accent); color: var(--bg-panel); }
.swatch-accent-dark { background: var(--accent-dark); color: var(--bg-panel); }
.swatch-text { background: var(--text); color: var(--bg-panel); }
.swatch-muted { background: var(--text-muted); color: var(--bg-panel); }
.swatch-success { background: var(--success); color: var(--bg-panel); }
.swatch-warn { background: var(--warn); color: var(--text); }
.swatch-error { background: var(--error); color: var(--bg-panel); }
.swatch-highlight { background-image: linear-gradient(to bottom, var(--clear) 58%, var(--highlight) 58%, var(--highlight) 94%, var(--clear) 94%); color: var(--text); }
.swatch-wash { background: var(--accent-wash); color: var(--text); }
.swatch-grid { background-image: linear-gradient(var(--grid-line) 1px, var(--clear) 1px), linear-gradient(90deg, var(--grid-line) 1px, var(--clear) 1px); background-size: 16px 16px; color: var(--text); }
.swatch-veil { background: var(--veil); color: var(--text); }
.swatch-clear { background: var(--clear); color: var(--text); }
.shot-placeholder { display: grid; place-content: center; aspect-ratio: 750 / 1334; width: 100%; border-radius: var(--radius-shot); background: var(--bg-panel-2); color: var(--text-muted); text-align: center; padding: 20px; font-size: var(--size-label); }
.preview-type-title { font-family: var(--font-display); font-size: var(--size-h1); font-weight: var(--weight-display); line-height: var(--leading-title); letter-spacing: var(--tracking-title); }
.preview-menu { display: none; }
@media (max-width: 1280px) {
  .preview-menu { display: block; }
  .preview-menu > summary { list-style: none; }
  .preview-menu > summary::-webkit-details-marker { display: none; }
  .preview-menu .lang-menu { min-width: 240px; max-height: calc(100dvh - var(--nav-h) - 24px); overflow-y: auto; }
}
@media (max-width: 1240px) {
  .hero-field { left: calc(50% - 180px); }
  .chip-group { margin-left: 0; }
}
@media (max-width: 1080px) {
  .hero-field { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .lead { gap: 40px; }
  .letters-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .letters-side { position: static; }
}
@media (max-width: 768px) {
  .hero { padding-top: 28px; padding-bottom: 72px; }
  .title { font-size: var(--size-mobile-title); }
  .index-list { font-size: var(--size-body); }
  .toc-board { padding: 22px 18px; }
  .toc-head { flex-direction: column; gap: 4px; }
  .toc-cells { grid-template-columns: minmax(0, 1fr); }
  .letters-title { font-size: var(--size-h2); }
  .letter { padding: 26px 22px 30px; }
  .letter p { font-size: var(--size-body); }
  .shot-layout { flex-direction: column; gap: 32px; }
  .official-shot { align-self: center; }
  .device-card { padding: 24px; gap: 18px; }
  .fact-row { justify-content: center; flex-direction: row; }
  .dl-fab { right: 20px; bottom: max(16px, env(safe-area-inset-bottom)); font-size: var(--size-label); }
}
@media (max-width: 640px) {
  .lead { gap: 24px; }
  .index-list { gap: 5px; font-size: var(--size-label); line-height: 1.5; }
  .lede { margin-top: 14px; font-size: var(--size-label); }
  .hero .cta-row { margin-top: 20px; gap: 10px; }
  .hero .btn { padding-inline: 16px; font-size: var(--size-label); }
  .device-row { gap: 8px 12px; margin-top: 18px; padding-top: 14px; }
  .device-card > svg { width: 36px; height: 52px; }
}