.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 7px 14px;
  border-radius: var(--r-card);
  background: var(--c-panel);
  color: var(--c-accent-dark);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}
.badge-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-soft); }
.chips, .fact-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.chips li, .fact-pills li, .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-panel-2);
  color: var(--c-muted);
  font-size: var(--fs-caption);
  overflow-wrap: anywhere;
}
.chips li::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--c-accent); }
.fact-pills strong { color: var(--c-text); font-weight: 600; }
.store-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 12px; border: 1px solid var(--c-accent-line); border-radius: var(--r-pill); background: var(--c-panel); color: var(--c-accent-dark); font-size: var(--fs-caption); font-weight: 600; }
.store-pill svg { width: 12px; height: 12px; }
.status-success { color: var(--c-success-ink); }
.status-warn { color: var(--c-warn-ink); }
.status-error { color: var(--c-error-ink); }

.app-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  min-height: 56px;
  padding: 10px 22px;
  border: 1px solid var(--c-accent);
  border-radius: var(--r-btn);
  background: var(--c-accent);
  color: var(--c-on-accent);
  box-shadow: var(--shadow-btn);
  text-decoration: none;
  transition: transform var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}
.app-store:hover { background: var(--c-accent-dark); color: var(--c-on-accent); border-color: var(--c-accent-dark); transform: translateY(-1px); }
.app-store:active { transform: translateY(1px); }
.app-store svg { width: 25px; height: 25px; }
.app-store-copy { display: block; text-align: left; line-height: 1.3; }
.app-store-copy small { display: block; font-size: 11px; font-weight: 500; }
.app-store-copy strong { display: block; font-size: 16px; font-weight: 600; }
.store-guide { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-top: 48px; padding: 28px; border: 1px solid var(--c-accent-line); border-radius: var(--r-card); background: var(--c-panel); color: var(--c-text); }
.store-guide h2, .store-guide h3 { margin: 0 0 8px; font-size: var(--fs-h3); }
.store-guide p { margin: 0; color: var(--c-muted); }

.hero-visual { display: flex; justify-content: flex-end; padding-bottom: 40px; }
.stage { position: relative; width: 520px; max-width: 100%; isolation: isolate; }
.stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 700px;
  height: 580px;
  right: -200px;
  bottom: -220px;
  background: radial-gradient(closest-side, var(--c-accent-glow), var(--c-clear) 72%);
  pointer-events: none;
}
.verify { position: relative; z-index: 1; margin: 0; padding: 26px 32px 0; border: 2px solid var(--c-accent); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-window); }
.verify-head { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; }
.verify-apple { width: 18px; height: 18px; flex-shrink: 0; color: var(--c-accent); }
.verify-status { font: 600 13px/1.6 var(--f-mono); letter-spacing: 0.18em; color: var(--c-accent); }
.verify-rows { list-style: none; margin: 0; padding: 0; }
.vr { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding-top: 10px; padding-bottom: 10px; border-top: 1px solid var(--c-border); }
.vr-body { flex: 1; min-width: 0; display: grid; grid-template-columns: 16px 76px minmax(0, 1fr); align-items: center; gap: 14px; }
.vr-ring { width: 16px; height: 16px; border: 1.5px solid var(--c-border-strong); border-radius: var(--r-circle); display: grid; place-items: center; }
.vr-dot { width: 6px; height: 6px; border-radius: var(--r-circle); background: var(--c-accent); }
.vr-label { font-size: var(--fs-small); color: var(--c-muted); }
.vr-value { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.vr-value.is-mono { font-family: var(--f-mono); font-size: 14.5px; letter-spacing: 0.02em; }
.vr-check { width: 26px; height: 26px; border-radius: var(--r-circle); background: var(--c-success-soft); color: var(--c-success-ink); display: grid; place-items: center; flex-shrink: 0; }
.vr-check svg { width: 14px; height: 14px; }
.verify-foot { min-height: 96px; display: flex; align-items: center; justify-content: flex-end; border-top: 1px solid var(--c-border); font: 12px/1.6 var(--f-mono); letter-spacing: 0.04em; }
.verify-foot a { color: var(--c-muted); text-decoration: none; }
.verify-foot a:hover { color: var(--c-accent); }
.rule-card { position: absolute; z-index: 2; left: -32px; bottom: -40px; width: 292px; max-width: 100%; padding: 14px 18px 16px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-float); }
.rule-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--c-border); font-size: 11.5px; color: var(--c-muted); }
.rule-head b { font-family: var(--f-mono); font-weight: 600; letter-spacing: 0.04em; }
.rule-lines { margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--c-bg); color: var(--c-text); font: 13px/1.85 var(--f-mono); white-space: pre; }
.rule-lines code { font: inherit; display: block; }
.sep { color: var(--c-muted); }
.pol { font-weight: 600; }

.caps { padding-top: 28px; padding-bottom: var(--section-space); }
.caps h2 { margin: 0 0 40px; }
.tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tab { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); font: 600 15px/1.2 var(--f-body); text-align: left; transition: background var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out); }
.tab:hover { border-color: var(--c-border-strong); }
.tab-ico { width: 40px; height: 40px; border-radius: var(--r-card); background: var(--c-panel); color: var(--c-accent); display: grid; place-items: center; flex-shrink: 0; }
.tab-ico svg { width: 20px; height: 20px; }
.tab[aria-selected="true"] { border-color: var(--c-accent); background: var(--c-accent); color: var(--c-on-accent); }
.tab[aria-selected="true"] .tab-ico { background: var(--c-on-accent); color: var(--c-accent); }
.caps-panel { display: grid; grid-template-columns: 40fr 60fr; gap: 48px; margin-top: 48px; }
.caps-panel h3 { margin: 0; font-size: 28px; }
.caps-panel p { margin: 20px 0 0; color: var(--c-muted); line-height: 1.8; }
.fact-card { margin-top: 28px; padding: 20px 22px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-accent-dark); box-shadow: var(--shadow-card); font-weight: 600; line-height: 1.7; }
.canvas { position: relative; min-height: 380px; border-radius: var(--r-card); background: linear-gradient(160deg, var(--c-panel), var(--c-panel-3)); color: var(--c-text); overflow-x: clip; }
.reference-list { position: absolute; top: 48px; left: 48px; width: 260px; max-width: calc(100% - 32px); border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-card); }
.reference-list-title { margin: 0 !important; padding: 12px 16px 8px; font-size: 12px; color: var(--c-muted); letter-spacing: 0.06em; }
.reference-list ul { list-style: none; margin: 0; padding: 0; }
.reference-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-left: 16px; padding: 10px 16px 10px 0; border-top: 1px solid var(--c-border); font-size: 15px; }
.reference-list li::after { content: "›"; color: var(--c-accent); }
.canvas .rule-card { left: auto; right: 48px; bottom: 48px; width: 320px; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; padding: 12px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); }
.toc a { display: block; padding: 10px 14px; border-radius: var(--r-focus); color: var(--c-muted); text-decoration: none; }
.toc a:hover, .toc a[aria-current="location"] { background: var(--c-panel); color: var(--c-accent-dark); }
.faq-item { border-bottom: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-text); }
.faq-item summary { position: relative; min-height: 64px; padding: 20px 40px 20px 0; font-weight: 600; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 18px; color: var(--c-accent); font-size: 20px; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 24px; color: var(--c-muted); line-height: 1.85; }
.faq-answer > :first-child { margin-top: 0; }
.faq-answer > :last-child { margin-bottom: 0; }
.term-card { padding: 24px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-card); }
.term-card h3 { margin: 0 0 12px; font-size: 20px; }
.term-card p { margin: 0; color: var(--c-muted); }
.term-key { display: inline-block; margin-bottom: 16px; font: 12px/1.5 var(--f-mono); color: var(--c-accent-dark); }
.callout { margin: 28px 0; padding: 22px 24px; border-left: 3px solid var(--c-accent); border-radius: var(--r-focus); background: var(--c-panel); color: var(--c-text); }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.official-shot { width: 100%; max-width: 280px; margin: 0 auto; padding: 0; flex-shrink: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot figcaption { margin-top: 12px; color: var(--c-muted); font-size: var(--fs-caption); line-height: 1.6; text-align: center; }
.shot-frame { border: 1px solid var(--c-border); border-radius: var(--r-shot); }
.shot-row { display: flex; justify-content: center; align-items: flex-start; gap: 32px; }
.device-card { display: flex; align-items: flex-start; gap: 24px; padding: 28px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-card); text-decoration: none; }
.device-card > svg { width: 48px; height: 56px; flex-shrink: 0; color: var(--c-accent); }
.device-card h3 { margin: 0 0 10px; }
.device-card p { margin: 0 0 16px; color: var(--c-muted); }
.device-card .device-link { color: var(--c-accent-dark); font-size: var(--fs-small); font-weight: 600; }
.device-card:hover { border-color: var(--c-accent-line); }
.article-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-card); }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; font-size: var(--fs-caption); color: var(--c-muted); }
.article-card h3 { margin: 0 0 16px; font-size: 22px; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { color: var(--c-accent-dark); }
.article-card p { margin: 0 0 24px; color: var(--c-muted); }
.article-more { margin-top: auto; color: var(--c-accent-dark); font-size: var(--fs-small); }

.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; background: var(--c-bg); color: var(--c-text); 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(--c-border);
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose table th { background: var(--c-panel); color: var(--c-text); font-weight: 600; }
.data-table caption { padding-bottom: 16px; text-align: left; color: var(--c-muted); }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; overscroll-behavior-inline: contain; }
.prose table code, .data-table code { overflow-wrap: anywhere; }

.dl-fab { position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; max-width: calc(100% - 32px); padding: 8px 18px 8px 10px; border: 1px solid var(--c-accent-line); border-radius: var(--r-btn); background: var(--c-bg); color: var(--c-accent-dark); font-size: var(--fs-small); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-float); transition: transform var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out); }
.dl-fab:hover { transform: translateY(-2px); border-color: var(--c-accent); }
.dl-fab-ico { width: 28px; height: 28px; flex-shrink: 0; border-radius: var(--r-card); background: var(--c-accent); color: var(--c-on-accent); display: grid; place-items: center; }
.dl-fab-ico svg { width: 15px; height: 15px; }

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.swatch { border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); }
.swatch-sample { display: block; height: 72px; border-radius: var(--r-card) var(--r-card) 0 0; }
.swatch code { display: block; padding: 12px; font-size: 12px; }
.sw-bg { background: var(--c-bg); }
.sw-panel { background: var(--c-panel); }
.sw-panel-2 { background: var(--c-panel-2); }
.sw-panel-3 { background: var(--c-panel-3); }
.sw-border { background: var(--c-border); }
.sw-border-strong { background: var(--c-border-strong); }
.sw-accent { background: var(--c-accent); }
.sw-accent-dark { background: var(--c-accent-dark); }
.sw-accent-soft { background: var(--c-accent-soft); }
.sw-accent-line { background: var(--c-accent-line); }
.sw-accent-glow { background: var(--c-accent-glow); }
.sw-text { background: var(--c-text); }
.sw-muted { background: var(--c-muted); }
.sw-faint { background: var(--c-faint); }
.sw-success { background: var(--c-success); }
.sw-success-ink { background: var(--c-success-ink); }
.sw-success-soft { background: var(--c-success-soft); }
.sw-warn { background: var(--c-warn); }
.sw-warn-ink { background: var(--c-warn-ink); }
.sw-error { background: var(--c-error); }
.sw-error-ink { background: var(--c-error-ink); }
.sw-on-accent { background: var(--c-on-accent); }
.sw-clear { background: var(--c-clear); }
.sw-veil { background: var(--c-veil); }
.preview-shot { display: grid; place-items: center; aspect-ratio: 750 / 1334; width: 100%; border: 1px solid var(--c-border); border-radius: var(--r-shot); background: var(--c-panel-2); color: var(--c-muted); text-align: center; font-size: var(--fs-small); }
.preview-type > * { margin-top: 0; }
.preview-type .type-display { font: 800 var(--fs-h1)/1.12 var(--f-display); letter-spacing: var(--tracking-title); }
.preview-note { margin-top: 24px; color: var(--c-muted); font-size: var(--fs-small); }

@media (max-width: 960px) {
  .hero-visual { justify-content: center; margin-top: 64px; }
  .tabs { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; overscroll-behavior-inline: contain; }
  .tab { flex-shrink: 0; min-height: 44px; padding: 5px 16px 5px 6px; border-radius: var(--r-pill); }
  .tab-ico { width: 32px; height: 32px; border-radius: var(--r-pill); }
  .tab-ico svg { width: 16px; height: 16px; }
  .caps-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .verify { padding: 20px 18px 0; }
  .verify-status { font-size: 11px; letter-spacing: 0.12em; }
  .verify-head { gap: 8px; }
  .vr { gap: 10px; }
  .vr-body { grid-template-columns: 16px 64px minmax(0, 1fr); gap: 10px; }
  .vr-value { font-size: var(--fs-small); }
  .vr-value.is-mono { font-size: var(--fs-caption); }
  .stage > .rule-card { left: 0; width: min(292px, 90%); }
  .verify-foot { min-height: 110px; align-items: flex-start; padding-top: 14px; }
  .canvas { min-height: 460px; }
  .reference-list { top: 20px; left: 16px; width: calc(100% - 32px); }
  .canvas .rule-card { right: 16px; bottom: 20px; width: calc(100% - 32px); }
  .shot-row { flex-direction: column; align-items: center; }
  .device-card { gap: 16px; padding: 22px; }
  .device-card > svg { width: 36px; }
  .fact-pills, .chips { flex-direction: row; flex-wrap: wrap; }
  .dl-fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
}