.badge {
  display: inline-flex; align-items: center; gap: 9px; min-height: 30px;
  padding: 4px 15px 4px 12px; border-radius: var(--r-pill);
  background: var(--panel); color: var(--text-muted); font-size: 13px;
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-chip);
  max-width: 100%; overflow-wrap: anywhere;
}
.badge strong { color: var(--accent-dark); font-weight: var(--weight-title); }
.badge__dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 3px var(--accent-12); }
.pill, .fact {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  min-height: 28px; padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--panel-2); color: var(--text); font-size: 12.5px; line-height: 1.5;
  overflow-wrap: anywhere;
}
.pill--store { background: var(--accent-8); color: var(--accent-dark); }
.fact svg, .pill svg { width: 14px; height: 14px; flex-shrink: 0; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; list-style: none; margin: 22px 0 0; }
.devices { margin: 22px 0 0; padding: 0; list-style: none; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.device { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 13.5px; }
.device:hover { color: var(--accent-dark); }
.device svg { width: 18px; height: 18px; }
.devices__sep { width: 1px; height: 16px; background: var(--border); color: var(--text); }
.store-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 11px 24px; max-width: 100%; border-radius: var(--r-btn);
  background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-cta);
  font: var(--weight-title) 15.5px/1.35 var(--font-body); text-align: left;
}
.store-button svg { width: 20px; height: 20px; flex-shrink: 0; }
.store-button__copy { display: block; }
.store-button__small { display: block; font-size: 11px; line-height: 1.4; }
.store-button__name { display: block; font-size: 15px; line-height: 1.4; }
.store-button:hover { background: var(--accent-dark); color: var(--on-accent); box-shadow: var(--shadow-cta-hover); }
.store-button:active { box-shadow: var(--shadow-chip); }
.plate { max-width: var(--w-plate); margin: 44px auto 0; padding: 34px 36px 72px; border-radius: var(--r-card); background: var(--panel); color: var(--text); box-shadow: var(--shadow-card); }
.plate__grid { display: grid; grid-template-columns: minmax(0, 0.3fr) minmax(0, 1fr); column-gap: 40px; }
.plate__head { min-height: 24px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.plate__title { margin: 0; font: var(--weight-title) 17px/24px var(--font-display); letter-spacing: -0.01em; }
.plate__hint { font-size: 12.5px; color: var(--text-muted); }
.keyset { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 76px; gap: 11px 10px; }
.key { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--border); border-radius: var(--r-tile); background: var(--panel); color: var(--text); }
.key__icon { width: 30px; height: 30px; border-radius: var(--r-icon); display: grid; place-items: center; background: var(--accent-8); color: var(--accent-dark); }
.key__icon svg { width: 18px; height: 18px; }
.key__name { font: var(--weight-title) 11px/1.1 var(--font-mono); letter-spacing: -0.01em; overflow-wrap: anywhere; text-align: center; }
.lanes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.12fr); column-gap: var(--gap-lane); }
.lane { position: relative; min-width: 0; }
.tag {
  position: relative; z-index: 1; height: 36px; width: calc(100% + 32px);
  display: flex; align-items: center; padding: 0 24px 0 16px;
  font: var(--weight-title) 12.5px/1 var(--font-mono); letter-spacing: -0.01em; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%);
}
.lane + .lane .tag { padding-left: 25px; clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%, 13px 50%); }
.lane:last-child .tag { width: 100%; }
.tag--a { background: var(--accent-12); color: var(--accent-dark); }
.tag--b { background: var(--accent-8); color: var(--accent-dark); }
.tag--c { background: var(--accent-5); color: var(--accent-dark); }
.tag--d { background: var(--neutral); color: var(--text-muted); }
.stack { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.snip { position: relative; min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 8px 9px 8px 10px; border-radius: var(--r-snip); background: var(--panel-2); color: var(--text); }
.snip code { min-width: 0; font: var(--weight-normal) 11.5px/1.5 var(--font-mono); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.snip + .snip::before { content: ""; position: absolute; left: 50%; top: -20px; width: 1px; height: 17px; background: var(--line); }
.snip + .snip::after { content: ""; position: absolute; left: calc(50% - 2.5px); top: -8px; width: 6px; height: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.dot { flex-shrink: 0; width: 14px; height: 14px; border-radius: var(--r-circle); display: grid; place-items: center; color: var(--on-accent); }
.dot svg { width: 10px; height: 10px; }
.dot--on { background: var(--accent); color: var(--on-accent); }
.dot--soft { background: var(--accent-30); color: var(--text); }
.dot--off { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.hop { position: absolute; left: calc(var(--gap-lane) * -1); top: 80px; width: var(--gap-lane); height: var(--hop-height, 0px); pointer-events: none; }
.hop::before { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: calc(var(--hop-height, 0px) - 6px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-bottom-right-radius: var(--r-focus); }
.hop::after { content: ""; position: absolute; left: 10px; top: 0; width: 12px; height: 7px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); border-top-left-radius: var(--r-focus); }
.hop i { position: absolute; right: 1px; top: -2.5px; width: 6px; height: 6px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg); }
.hop--short { --hop-height: 72px; }
.hop--long { --hop-height: 144px; }
.hop--flat::before { display: none; }
.hop--flat::after { left: 0; width: 21px; height: 0; border-left: 0; border-radius: 0; }
.plate__foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 13.5px; color: var(--text-muted); }
.plate__foot p { margin: 0; }
.kbd { display: inline-block; padding: 3px 9px; border-radius: var(--r-pill); background: var(--panel-2); color: var(--text); font: var(--weight-title) 11.5px/1.4 var(--font-mono); }
.plate__link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-dark); font-weight: var(--weight-title); flex-shrink: 0; }
.plate__link svg { width: 13px; height: 13px; }
.tabs [role="tablist"] { display: flex; align-items: center; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 28px; padding: 6px; border-radius: var(--r-pill); background: var(--panel); color: var(--text); overflow-x: auto; }
.tabs [role="tab"] { flex-shrink: 0; min-height: 44px; padding: 10px 18px; border-radius: var(--r-pill); border: 0; background: var(--clear); color: var(--text-muted); font-size: 14px; white-space: nowrap; }
.tabs [role="tab"]:hover { background: var(--panel-2); color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.tabs [role="tabpanel"] { scroll-margin-top: calc(var(--header-height) + 24px); }
.feature-card { display: grid; grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr); gap: 40px; align-items: center; padding: 40px; border-radius: var(--r-card); background: var(--panel); color: var(--text); box-shadow: var(--shadow-card); }
.feature-card__copy h3 { margin-top: 0; }
.feature-card__copy p { color: var(--text-muted); line-height: 1.85; }
.feature-card__material { padding: 24px; border-radius: var(--r-menu); background: var(--panel-2); color: var(--text); }
.rule-capsule { display: block; max-width: 100%; padding: 12px 16px; border-radius: var(--r-pill); background: var(--panel-2); color: var(--text); font: var(--weight-normal) 12px/1.8 var(--font-mono); overflow-x: auto; white-space: pre; }
.feature-card__material .rule-capsule { background: var(--panel); color: var(--text); }
.grouped-list { margin: 0; padding: 0; list-style: none; border-radius: var(--r-menu); background: var(--panel); color: var(--text); }
.grouped-list li + li { border-top: 1px solid var(--border); }
.grouped-list a, .grouped-list__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; min-height: 48px; }
.grouped-list a::after, .grouped-list__row::after { content: "›"; flex-shrink: 0; color: var(--text-muted); }
.toc { position: sticky; top: var(--header-height); z-index: 20; background: var(--panel); color: var(--text); border-bottom: 1px solid var(--border); }
.toc__links { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; list-style: none; margin-block: 0; }
.toc a { display: block; min-height: 44px; padding: 10px 16px; white-space: nowrap; border-radius: var(--r-pill); color: var(--text-muted); }
.toc a:hover, .toc a[aria-current] { background: var(--accent-8); color: var(--accent-dark); }
.faq-list { border-radius: var(--r-card); background: var(--panel); color: var(--text); box-shadow: var(--shadow-card); }
.faq-item { padding-inline: 24px; }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-item summary { position: relative; padding: 22px 32px 22px 0; list-style: none; cursor: pointer; font-weight: var(--weight-title); }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 20px; color: var(--accent-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-item__answer { padding-bottom: 22px; color: var(--text-muted); line-height: 1.85; }
.faq-item__answer > :last-child { margin-bottom: 0; }
.term-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--panel); color: var(--text); box-shadow: var(--shadow-chip); }
.term-card h3 { margin: 12px 0; font-family: var(--font-mono); font-size: 19px; overflow-wrap: anywhere; }
.term-card p { color: var(--text-muted); }
.official-shot { width: 100%; max-width: 280px; margin: 0 auto; flex-shrink: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-snip); }
.official-shot img { outline: 1px solid var(--border); outline-offset: -1px; }
.official-shot figcaption { margin-top: 12px; color: var(--text-muted); font-size: 13px; line-height: 1.65; }
.shot-row { display: flex; align-items: flex-start; justify-content: center; gap: 32px; }
.device-card { display: flex; align-items: flex-start; gap: 24px; padding: 32px; border-radius: var(--r-card); background: var(--panel); color: var(--text); box-shadow: var(--shadow-card); }
.device-card__icon { flex-shrink: 0; width: 56px; height: 64px; color: var(--accent-dark); }
.device-card h3 { margin: 0 0 10px; }
.device-card p { color: var(--text-muted); }
.device-card__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-dark); font-weight: var(--weight-title); }
.article-card { display: flex; flex-direction: column; padding: 30px; border-radius: var(--r-card); background: var(--panel); color: var(--text); box-shadow: var(--shadow-card); }
.article-card h3 { margin: 18px 0 14px; }
.article-card h3 a:hover { color: var(--accent-dark); }
.article-card p { color: var(--text-muted); }
.article-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--text-muted); }
.article-card__link { margin-top: auto; padding-top: 16px; color: var(--accent-dark); font-weight: var(--weight-title); }
.callout { margin: 24px 0; padding: 22px 24px; border-left: 3px solid var(--accent); border-radius: var(--r-tile); background: var(--accent-5); color: var(--text); line-height: 1.8; }
.callout > :last-child { margin-bottom: 0; }
.callout__label { display: block; margin-bottom: 6px; color: var(--accent-dark); font-weight: var(--weight-title); }
.table-scroll { overflow-x: auto; max-width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; }
.data-table { border-collapse: collapse; width: 100%; color: var(--text); font-size: 14px; }
.data-table th, .data-table td, .prose table th, .prose table td {
  min-width: 7em; padding: 16px 20px; border-bottom: 1px solid var(--border);
  text-align: left; vertical-align: top; overflow-wrap: normal; word-break: normal;
}
.data-table th, .prose table th { background: var(--panel-2); color: var(--text); font-weight: var(--weight-title); }
.data-table td, .prose table td { background: var(--panel); color: var(--text); }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; }
.dl-fab { position: fixed; right: var(--gutter); bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 12px; max-width: calc(100% - var(--gutter) * 2); min-height: 56px; padding: 12px 18px; border-radius: var(--r-menu); background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-cta); }
.dl-fab svg { width: 22px; height: 22px; }
.dl-fab small { display: block; font-size: 11px; }
.dl-fab strong { display: block; font-size: 14px; font-weight: var(--weight-title); }
.dl-fab:hover { background: var(--accent-dark); color: var(--on-accent); }
.article-store-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; border-radius: var(--r-card); background: var(--panel-2); color: var(--text); }
.article-store-card h2 { margin: 0 0 8px; font-size: 23px; }
.article-store-card p { margin: 0; color: var(--text-muted); }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; }
.preview-swatch { border: 1px solid var(--border); border-radius: var(--r-tile); background: var(--panel); color: var(--text); }
.preview-swatch__ink { height: 70px; border-radius: var(--r-tile) var(--r-tile) 0 0; }
.preview-swatch code { display: block; padding: 12px; font-size: 12px; }
.sw-bg { background: var(--bg); color: var(--text); }
.sw-bg-fade { background: var(--bg-fade); color: var(--text); }
.sw-panel { background: var(--panel); color: var(--text); }
.sw-panel-2 { background: var(--panel-2); color: var(--text); }
.sw-neutral { background: var(--neutral); color: var(--text); }
.sw-border { background: var(--border); color: var(--text); }
.sw-border-soft { background: var(--border-soft); color: var(--text); }
.sw-line { background: var(--line); color: var(--text); }
.sw-accent { background: var(--accent); color: var(--on-accent); }
.sw-accent-2 { background: var(--accent-2); color: var(--text); }
.sw-accent-dark { background: var(--accent-dark); color: var(--on-accent); }
.sw-accent-30 { background: var(--accent-30); color: var(--text); }
.sw-accent-12 { background: var(--accent-12); color: var(--text); }
.sw-accent-8 { background: var(--accent-8); color: var(--text); }
.sw-accent-5 { background: var(--accent-5); color: var(--text); }
.sw-text { background: var(--text); color: var(--panel); }
.sw-text-muted { background: var(--text-muted); color: var(--panel); }
.sw-text-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(--text); }
.sw-veil { background: var(--veil); color: var(--text); }
.sw-clear { background: var(--clear); color: var(--text); }
.preview-shot-placeholder { display: grid; place-items: center; aspect-ratio: 750 / 1334; border: 1px solid var(--border); border-radius: var(--r-snip); background: var(--panel-2); color: var(--text-muted); text-align: center; font-size: 14px; }
.preview-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.preview-type-title { font: var(--weight-title) 48px/1.2 var(--font-display); letter-spacing: -0.02em; }
.preview-fab { position: static; width: fit-content; max-width: 100%; }
@media (max-width: 1180px) {
  .plate__grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .keyset { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .hop { display: none; }
  .tag, .lane:last-child .tag { width: 100%; }
  .tag, .lane + .lane .tag { padding-left: 16px; clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%); }
  .feature-card { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px; }
}
@media (max-width: 640px) {
  .shot-row { flex-direction: column; align-items: center; }
  .article-store-card { flex-direction: column; align-items: flex-start; }
  .device-card { padding: 24px; gap: 18px; }
  .preview-type-title { font-size: 28px; }
  .feature-card { padding: 24px; }
  .feature-card__material { padding: 16px; }
}
@media (max-width: 560px) {
  .devices { gap: 10px 16px; }
  .devices__sep { display: none; }
  .plate { padding: 24px 18px 40px; margin-top: 36px; }
  .keyset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lanes { grid-template-columns: minmax(0, 1fr); }
  .plate__foot { flex-direction: column; align-items: flex-start; }
  .faq-item { padding-inline: 18px; }
}