.badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  min-height: 32px;
  padding: 5px 14px 5px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-chip);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 13px;
  line-height: 1.5;
  box-shadow: var(--shadow-soft);
  overflow-wrap: anywhere;
}
.badge-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-round); background: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-wash); }
.badge-sep { color: var(--c-muted); }
.fact-row, .tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; list-style: none; }
.fact-pill, .tag { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 12px; border: 1px solid var(--c-border); border-radius: var(--r-chip); background: var(--c-bg); color: var(--c-text); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.fact-pill svg { width: 16px; height: 16px; flex-shrink: 0; }
.tag { background: var(--c-panel); color: var(--c-muted); }
.appstore-button {
  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-text);
  border-radius: var(--r-btn);
  background: var(--c-text);
  color: var(--c-on-ink);
  box-shadow: var(--shadow-btn);
  text-align: left;
  transition: background-color var(--dur) ease, transform var(--dur) ease;
}
.appstore-button svg { width: 25px; height: 28px; flex-shrink: 0; }
.appstore-button small { display: block; font-size: 11px; line-height: 1.3; }
.appstore-button strong { display: block; font-size: 16px; font-weight: var(--weight-medium); line-height: 1.5; }
.appstore-button:hover { background: var(--c-ink-hover); color: var(--c-on-ink); transform: translateY(-1px); }
.appstore-button[aria-disabled="true"] { background: var(--c-panel); color: var(--c-muted); border-color: var(--c-border); box-shadow: none; cursor: not-allowed; }
.feature-band { padding-top: var(--section-space); padding-bottom: var(--section-space); background: linear-gradient(var(--c-bg), var(--c-panel-2) 48%, var(--c-bg)); color: var(--c-text); }
.feature-tabs { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.5fr); gap: 40px; align-items: start; }
.feature-list { overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-soft); }
.feature-list [role="tab"] {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 70px;
  padding: 18px 22px;
  border: 0;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-text);
  text-align: left;
  font-size: 15px;
}
.feature-list [role="tab"]:last-child { border-bottom: 0; }
.feature-list [role="tab"]::before { content: ""; width: 7px; height: 7px; border-radius: var(--r-round); background: var(--c-border-strong); flex-shrink: 0; }
.feature-list [role="tab"]::after { content: "›"; margin-left: auto; padding-left: 8px; color: var(--c-muted); font-size: 22px; }
.feature-list [role="tab"]:hover { background: var(--c-panel); color: var(--c-text); }
.feature-list [role="tab"][aria-selected="true"] { background: var(--c-panel-2); color: var(--c-text); }
.feature-list [role="tab"][aria-selected="true"]::before { background: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-wash); }
.feature-panel { min-width: 0; padding: 40px; border: 1px solid var(--c-border); border-radius: var(--r-panel); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-panel); }
.feature-panel h3 { margin-top: 0; font-size: 28px; }
.feature-panel p { color: var(--c-muted); line-height: 1.9; }
.feature-panel pre { margin-bottom: 0; }
.tab-strip { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--c-border); margin-bottom: 24px; padding-bottom: 12px; }
.tab-strip [role="tab"] { min-height: 44px; padding: 10px 18px; border: 1px solid var(--c-border); border-radius: var(--r-btn); background: var(--c-bg); color: var(--c-text); }
.tab-strip [role="tab"][aria-selected="true"] { background: var(--c-panel-2); color: var(--c-text); border-color: var(--c-accent); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-btn); font-size: 14px; }
.toc a:hover, .toc a[aria-current="location"] { background: var(--c-panel-2); color: var(--c-text); }
.toc-sticky { position: sticky; top: 16px; z-index: 8; }
.faq-group { border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); overflow: hidden; }
.faq-item { padding-inline: 24px; border-bottom: 1px solid var(--c-border); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { position: relative; padding-block: 24px; padding-right: 32px; cursor: pointer; list-style: none; font-weight: var(--weight-medium); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 22px; font-size: 22px; color: var(--c-muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 24px; color: var(--c-muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { border-left: 3px solid var(--c-accent); }
.term-card dt { font-family: var(--font-mono); font-size: 18px; font-weight: var(--weight-medium); }
.term-card dd { margin: 16px 0 0; color: var(--c-muted); }
.official-shot { width: 100%; max-width: 280px; margin: 0; padding: 0; flex-shrink: 0; color: var(--c-text); }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot figcaption { padding-top: 14px; font-size: 13px; line-height: 1.7; color: var(--c-muted); }
.shot-frame { border: 1px solid var(--c-border); border-radius: var(--r-shot); }
.shot-row { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.device-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 24px; padding: 32px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-soft); }
.device-card > svg { width: 56px; height: 64px; flex-shrink: 0; }
.device-card h3 { margin-block: 0 12px; font-size: 24px; }
.device-card p { color: var(--c-muted); }
.device-card .device-link { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font-size: 14px; }
.device-link::after { content: "→"; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.article-card h3 { margin: 0; font-size: 22px; line-height: 1.5; }
.article-card p { color: var(--c-muted); margin: 0; }
.article-card .article-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; font-size: 14px; }
.article-card .article-link::after { content: "→"; margin-left: 12px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; color: var(--c-muted); }
.callout { margin: 32px 0; padding: 24px 28px; border: 1px solid var(--c-border); border-left: 3px solid var(--c-accent); border-radius: var(--r-btn); background: var(--c-panel-2); color: var(--c-text); }
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 10px; font-weight: var(--weight-medium); }
.table-scroll { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--c-border); border-radius: var(--r-btn); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; 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: var(--weight-medium); }
.data-table td, .prose table td { background: var(--c-bg); color: var(--c-text); }
.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; }
.data-table code, .prose table code { overflow-wrap: anywhere; white-space: normal; }
.dl-fab { position: fixed; z-index: 20; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); min-height: 56px; padding: 12px 20px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-panel); font-size: 14px; }
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.dl-fab small { display: block; font-size: 11px; color: var(--c-muted); }
.article-store-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 64px; padding: 32px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-panel-2); color: var(--c-text); }
.article-store-note > div { flex: 1 1 260px; min-width: 0; }
.article-store-note h2 { margin-top: 0; font-size: 24px; }
.article-store-note p { margin-bottom: 0; color: var(--c-muted); }
.preview-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.swatch { min-width: 0; border: 1px solid var(--c-border); border-radius: var(--r-btn); overflow: hidden; background: var(--c-bg); color: var(--c-text); }
.swatch-sample { height: 72px; background: var(--c-bg); color: var(--c-text); }
.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-margin { background: var(--c-margin); }
.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-wash { background: var(--c-accent-wash); }
.sw-wash-2 { background: var(--c-accent-wash-2); }
.sw-halo-1 { background: var(--c-halo-1); }
.sw-halo-2 { background: var(--c-halo-2); }
.sw-text { background: var(--c-text); }
.sw-hover { background: var(--c-ink-hover); }
.sw-muted { background: var(--c-muted); }
.sw-faint { background: var(--c-faint); }
.sw-success { background: var(--c-success); }
.sw-warn { background: var(--c-warn); }
.sw-error { background: var(--c-error); }
.sw-veil { background: var(--c-veil); }
.sw-shadow-1 { background: var(--sh-ink-1); }
.sw-shadow-2 { background: var(--sh-ink-2); }
.sw-shadow-3 { background: var(--sh-ink-3); }
.sw-shadow-accent { background: var(--sh-accent); }
.sw-fade { background: var(--c-halo-fade); }
.shot-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 750 / 1334; border: 1px solid var(--c-border); border-radius: var(--r-shot); background: var(--c-panel); color: var(--c-muted); text-align: center; font-size: 13px; }
.preview-type-display { font-family: var(--font-display); font-size: 48px; font-weight: var(--weight-normal); line-height: 1.2; letter-spacing: var(--track-cjk); }
.preview-mono { font-family: var(--font-mono); }
@media (max-width: 768px) {
  .feature-tabs { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--c-border); border-radius: var(--r-card); overflow: hidden; background: var(--c-bg); color: var(--c-text); }
  .feature-list, .feature-panels { display: contents; }
  .feature-list [role="tab"] { grid-column: 1; min-width: 0; min-height: 64px; border-bottom: 1px solid var(--c-border); }
  .feature-list [role="tab"]:nth-child(1) { grid-row: 1; }
  .feature-list [role="tab"]:nth-child(2) { grid-row: 3; }
  .feature-list [role="tab"]:nth-child(3) { grid-row: 5; }
  .feature-list [role="tab"]:nth-child(4) { grid-row: 7; }
  .feature-list [role="tab"]:nth-child(5) { grid-row: 9; }
  .feature-list [role="tab"]:nth-child(6) { grid-row: 11; }
  .feature-panels > :nth-child(1) { grid-row: 2; }
  .feature-panels > :nth-child(2) { grid-row: 4; }
  .feature-panels > :nth-child(3) { grid-row: 6; }
  .feature-panels > :nth-child(4) { grid-row: 8; }
  .feature-panels > :nth-child(5) { grid-row: 10; }
  .feature-panels > :nth-child(6) { grid-row: 12; }
  .feature-panel { grid-column: 1; border: 0; border-bottom: 1px solid var(--c-border); border-radius: 0; padding: 24px; box-shadow: none; }
  .feature-panel h3 { font-size: 24px; }
  .shot-row { flex-direction: column; align-items: center; }
}
@media (max-width: 640px) {
  .fact-row, .tag-row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .fact-pill { padding: 5px 9px; font-size: 11px; }
  .badge { gap: 7px; padding-inline: 10px; font-size: 11px; }
  .device-card { grid-template-columns: 42px minmax(0, 1fr); padding: 24px; gap: 16px; }
  .device-card > svg { width: 40px; height: 52px; }
  .faq-item { padding-inline: 20px; }
  .callout { padding: 20px; }
  .dl-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .article-store-note { padding: 24px; }
  .preview-type-display { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .appstore-button { transition: none; }
  .appstore-button:hover { transform: none; }
}