.badge, .chip, .fact-pill, .tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.badge { gap: 10px; padding: 5px 13px 5px 11px; }
.badge-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--radius-round); background: var(--success); box-shadow: 0 0 0 4px var(--success-ring); }
.chips, .fact-row, .tags { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding-left: 0; list-style: none; }
.chips { margin-top: 22px; }
.chip code { font-size: 12px; color: var(--text-soft); }
.fact-pill strong { color: var(--text); }
.tag { font-size: 12px; }
.app-store-button { min-height: 52px; text-align: left; }
.app-store-button svg { width: 25px; height: 25px; }
.store-label { display: block; line-height: 1.25; }
.store-label small { display: block; font-size: 11px; font-weight: var(--weight-regular); }
.store-label strong { display: block; margin-top: 2px; font-size: 16px; }
.tabs { min-width: 0; }
.feature-tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: start; }
.feature-tabs > * { min-width: 0; }
.tab-list { display: flex; flex-direction: column; min-width: 0; }
.tab-list [role="tab"] {
  position: relative;
  width: 100%;
  padding: 24px 22px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--clear);
  color: var(--text-muted);
  font-size: 20px;
  font-weight: var(--weight-medium);
  text-align: left;
}
.tab-list [role="tab"]::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 2px; background: var(--clear); }
.tab-list [role="tab"] span { display: block; margin-top: 7px; font-size: 14px; font-weight: var(--weight-regular); color: var(--text-muted); }
.tab-list [role="tab"][aria-selected="true"] { color: var(--text); background: var(--bg-panel); }
.tab-list [role="tab"][aria-selected="true"]::before { background: var(--accent); }
.tab-list [role="tab"]:hover { color: var(--text); }
.tab-panels { position: sticky; top: calc(var(--head-h) + 32px); }
.tab-panel { min-width: 0; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-card); }
.tab-panel p { margin-top: 18px; line-height: 1.85; color: var(--text-muted); }
.tab-panel pre { margin-top: 28px; }
.tab-panel h3 { font-size: 24px; }
.toc {
  position: sticky;
  top: var(--head-h);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 12px 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--text);
}
.toc a { flex-shrink: 0; padding: 9px 12px; color: var(--text-muted); font-size: 14px; }
.toc a:hover, .toc a[aria-current="location"] { color: var(--accent); }
.toc.is-static { 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; padding: 24px 40px 24px 0; list-style: none; cursor: pointer; font-size: 18px; font-weight: var(--weight-medium); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 10px; top: 24px; color: var(--accent); font-family: var(--font-mono); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 28px; max-width: 52em; color: var(--text-muted); line-height: 1.85; }
.faq-answer > * + * { margin-top: 16px; }
.term-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-card); }
.term-card dt { font-family: var(--font-mono); font-size: 20px; color: var(--text); }
.term-card dd { margin-top: 12px; color: var(--text-muted); line-height: 1.8; }
.term-card .tag { margin-top: 20px; }
.official-shot { width: 100%; max-width: 280px; min-width: 0; margin-inline: auto; padding: 0; flex-shrink: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-shot); }
.official-shot { border: 1px solid var(--border); border-radius: var(--radius-shot); background: var(--bg-panel); color: var(--text); }
.official-shot figcaption { padding: 14px 16px; font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.shot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 56px; }
.shot-layout > * { min-width: 0; }
.device-card { display: flex; align-items: flex-start; gap: 24px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-card); }
.device-card > svg { width: 48px; height: 56px; flex-shrink: 0; color: var(--text-soft); }
.device-card > div { min-width: 0; }
.device-card p { margin-top: 10px; color: var(--text-muted); }
.device-card a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; }
.article-card { display: flex; flex-direction: column; gap: 18px; 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-card); }
.article-card h3 { font-size: 20px; line-height: 1.5; }
.article-card h3 a { color: var(--text); }
.article-card p { color: var(--text-muted); font-size: 14px; line-height: 1.85; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--text-muted); font-size: 12px; }
.article-card > a:last-child { margin-top: auto; padding-top: 8px; }
.callout { position: relative; padding: 24px 28px; border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text-soft); line-height: 1.85; }
.callout strong { color: var(--text); }
.callout p + p { margin-top: 12px; }
.callout-warn { border-left-color: var(--warn); }
.callout-error { border-left-color: var(--error); }
.callout-success { border-left-color: var(--success); }
.table-scroll { min-width: 0; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius-card); }
.data-table { width: 100%; border-collapse: collapse; color: var(--text-soft); font-size: 14px; }
.data-table th, .data-table td, .prose table th, .prose table td { min-width: 7em; padding: 16px 20px; text-align: left; vertical-align: top; overflow-wrap: normal; word-break: normal; border-bottom: 1px solid var(--border); }
.data-table th, .prose table th { background: var(--bg-panel-2); color: var(--text); font-weight: var(--weight-medium); }
.data-table td, .prose table td { background: var(--bg-panel); color: var(--text-soft); }
.data-table tr:last-child td { border-bottom: 0; }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; }
.prose table code, .data-table code { overflow-wrap: anywhere; }
.dl-fab { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 40px); min-height: 60px; padding: 12px 18px; border: 1px solid var(--accent-line); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-menu); }
.dl-fab svg { width: 24px; height: 24px; color: var(--accent); }
.dl-fab span { min-width: 0; }
.dl-fab strong { display: block; font-size: 14px; }
.dl-fab small { display: block; color: var(--text-muted); font-size: 12px; }
.dl-fab:hover { text-decoration: none; border-color: var(--accent); }
.article-store-guide { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); }
.article-store-guide p { margin-top: 8px; color: var(--text-muted); }
.article-store-guide > div { min-width: 0; }
.article-store-guide > a { flex-shrink: 0; }
.grouped-list { list-style: none; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-card); }
.grouped-list li + li { border-top: 1px solid var(--border); }
.grouped-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 16px 22px; color: var(--text-soft); }
.grouped-list a::after { content: "›"; color: var(--text-muted); }
.grouped-list a:hover { color: var(--text); text-decoration: none; }
.preview-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.swatch { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: var(--bg-panel); color: var(--text); }
.swatch-sample { display: block; height: 72px; }
.swatch code { display: block; padding: 12px; color: var(--text-soft); }
.sw-bg { background: var(--bg); }
.sw-deep { background: var(--bg-deep); }
.sw-panel { background: var(--bg-panel); }
.sw-panel2 { background: var(--bg-panel-2); }
.sw-border { background: var(--border); }
.sw-border-strong { background: var(--border-strong); }
.sw-accent { background: var(--accent); }
.sw-accent-dark { background: var(--accent-dark); }
.sw-text { background: var(--text); }
.sw-soft { background: var(--text-soft); }
.sw-muted { background: var(--text-muted); }
.sw-faint { background: var(--text-faint); }
.sw-success { background: var(--success); }
.sw-warn { background: var(--warn); }
.sw-error { background: var(--error); }
.sw-white { background: var(--on-accent); }
.sw-wash { background: var(--accent-wash); }
.sw-glow { background: var(--accent-glow); }
.sw-line { background: var(--accent-line); }
.sw-white-line { background: var(--on-accent-line); }
.sw-white-edge { background: var(--on-accent-edge); }
.sw-edge { background: var(--edge-light); }
.sw-ring { background: var(--success-ring); }
.sw-clear { background: var(--clear); }
.sw-veil { background: var(--veil); }
.preview-shot-placeholder { display: grid; place-content: center; aspect-ratio: 750 / 1334; border-radius: var(--radius-shot); background: var(--bg-panel-2); color: var(--text-muted); font-family: var(--font-mono); text-align: center; font-size: 13px; }
.preview-shot-placeholder span { display: block; margin-top: 12px; font-family: var(--font-body); }
.preview-state-hover { transform: translateY(-1px); border-color: var(--border-strong); }
.preview-state-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.preview-type-h1 { font-family: var(--font-display); font-size: clamp(34px, 3.3vw, 48px); font-weight: var(--weight-medium); line-height: 1.14; letter-spacing: -.02em; }
.preview-caption { margin-top: 20px; color: var(--text-muted); font-size: 13px; }
.preview-spacer { margin-top: 40px; }
@media (max-width: 900px) {
  .feature-tabs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tab-list { flex-direction: row; gap: 8px; overflow-x: auto; padding: 4px; }
  .tab-list [role="tab"] { flex-shrink: 0; width: auto; padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 15px; white-space: nowrap; }
  .tab-list [role="tab"] span, .tab-list [role="tab"]::before { display: none; }
  .tab-list [role="tab"][aria-selected="true"] { border-color: var(--accent-line); background: var(--bg-panel); color: var(--text); }
  .tab-panels { position: static; }
  .shot-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .fact-row, .chips, .tags { flex-direction: row; flex-wrap: wrap; }
  .tab-panel, .term-card { padding: 24px; }
  .device-card { padding: 24px; gap: 18px; }
  .device-card > svg { width: 36px; height: 46px; }
  .article-store-guide { flex-direction: column; align-items: flex-start; padding: 24px; }
  .dl-fab { right: 20px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .preview-type-h1 { font-size: clamp(24px, 7vw, 30px); }
}