.tabs { min-width: 0; }
.tab-list, [role="tablist"] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
[role="tab"] {
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-nav);
  font-weight: var(--weight-semibold);
  max-width: 100%;
}
[role="tab"]:hover { border-color: var(--accent); }
[role="tab"][aria-selected="true"] { background: var(--accent); color: var(--on-dark); border-color: var(--accent); }
[role="tabpanel"] { scroll-margin-top: 28px; min-width: 0; }
.feature-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.feature-copy h3 { font-size: 32px; }
.feature-copy p { color: var(--text-muted); line-height: 1.9; }
.feature-code {
  background: var(--bg-panel2);
  color: var(--on-dark);
  padding: 32px;
  border-radius: var(--r-card);
  min-width: 0;
}
.feature-code pre { margin: 24px 0 0; padding: 0; border-radius: var(--r-tiny); }
.code-kind { display: inline-flex; padding: 3px 12px; border: 1px solid var(--warn); border-radius: var(--r-pill); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--on-dark); }
.toc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-menu);
  background: var(--bg);
  color: var(--text);
  margin-bottom: 40px;
  min-width: 0;
}
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-pill); font-size: var(--fs-sm); }
.toc a:hover, .toc a[aria-current="location"] { background: var(--accent); color: var(--on-dark); }
.toc-sticky { position: sticky; top: 12px; z-index: 10; }
.toc-static { position: static; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding-top: 0; padding-bottom: 0; }
.faq-item summary { position: relative; list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: var(--fs-lede); font-weight: var(--weight-semibold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 24px; font-family: var(--font-mono); color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-right: 32px; padding-bottom: 24px; color: var(--text-muted); }
.faq-answer > :last-child { margin-bottom: 0; }
.term-card { border-top: 3px solid var(--accent); }
.term-card h3 { margin-bottom: 12px; font-size: var(--fs-h3); }
.term-card p { color: var(--text-muted); }
.term-category { display: block; margin-bottom: 16px; font-size: var(--fs-xs); color: var(--text-muted); }
.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  max-width: 100%;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-dark);
  line-height: 1.35;
  transition: background-color var(--time-fast), border-color var(--time-fast);
}
.app-store-button svg { width: 25px; height: 28px; flex-shrink: 0; }
.app-store-button small { display: block; font-size: var(--fs-xs); }
.app-store-button strong { display: block; font-size: var(--fs-body); font-weight: var(--weight-semibold); }
.app-store-button:hover { background: var(--accent-dark); color: var(--on-dark); border-color: var(--accent-dark); }
.app-store-button[aria-disabled="true"] { background: var(--bg-panel); color: var(--text-muted); border-color: var(--border); cursor: not-allowed; }
.fact-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; margin: 24px 0; list-style: none; }
.fact-pill, .badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 12px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.badge-verified { border-color: var(--success); color: var(--success); }
.badge-verified::before { content: "✓"; flex-shrink: 0; font-weight: var(--weight-bold); }
.badge-error { color: var(--error); border-color: var(--error); }
.fact-pill code { font-size: inherit; }
.panel-dark .fact-pill { background: var(--clear); color: var(--on-dark); border-color: var(--line-on-dark); }
.official-shot { width: 100%; max-width: 280px; min-width: 0; flex-shrink: 0; margin: 0 auto; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot figcaption { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.7; }
.shot-row { display: flex; align-items: flex-start; justify-content: center; gap: 32px; min-width: 0; }
.device-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.device-card > svg { width: 52px; height: 52px; color: var(--accent); }
.device-card h3 { margin: 0; }
.device-card p { color: var(--text-muted); margin: 0; }
.device-card .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; }
.article-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.article-card h3 { font-size: 22px; margin: 0; line-height: 1.5; }
.article-card h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.article-card p { margin: 0; color: var(--text-muted); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: var(--fs-xs); color: var(--text-muted); }
.article-card > .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; }
.callout { margin: 32px 0; padding: 24px 28px; border-left: 3px solid var(--accent); border-radius: var(--r-small); background: var(--bg-panel); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--accent); }
.grouped-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--r-menu); overflow: hidden; background: var(--bg); color: var(--text); }
.grouped-list li + li { border-top: 1px solid var(--border); }
.grouped-list a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; padding: 16px 22px; }
.grouped-list a::after { content: "›"; color: var(--text-muted); flex-shrink: 0; }
.grouped-list a:hover { background: var(--bg-panel); color: var(--accent); }
.verify-list { list-style: none; padding: 0; margin: 0; }
.verify-list li { display: flex; align-items: flex-start; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.verify-list li::before { content: "✓"; flex-shrink: 0; color: var(--success); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-circle); width: 28px; height: 28px; text-align: center; font-weight: var(--weight-bold); }
.verify-list li + li { border-top: 1px solid var(--line-on-dark); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-tag); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.data-table :where(th, td), .prose table :where(th, td), .document-body table :where(th, td) {
  min-width: 7em;
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose table th, .document-body table th { background: var(--bg-panel); color: var(--text); font-weight: var(--weight-semibold); }
.data-table td, .prose table td, .document-body table td { background: var(--bg); color: var(--text); }
.data-table tr:last-child td { border-bottom: 0; }
.prose table, .document-body table {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}
.dl-fab {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  min-height: 56px;
  padding: 12px 20px;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-dark);
  font-size: var(--fs-sm);
  font-weight: var(--weight-semibold);
}
.dl-fab svg { width: 22px; height: 22px; }
.dl-fab:hover { background: var(--accent-dark); color: var(--on-dark); }
.article-store-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 64px; background: var(--bg-panel); color: var(--text); }
.article-store-card h2 { font-size: var(--fs-h3); margin-top: 0; }
.article-store-card p { margin-bottom: 0; color: var(--text-muted); }
.article-store-card .app-store-button { flex-shrink: 0; }
.preview-group { margin-top: var(--section-gap); }
.preview-label { margin-bottom: 36px; color: var(--text-muted); font-size: var(--fs-sm); }
.preview-shot-placeholder {
  width: 100%;
  aspect-ratio: 750 / 1334;
  border: 1px solid var(--border);
  border-radius: var(--r-shot);
  background: var(--bg-panel);
  color: var(--text-muted);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 16px;
  font-size: var(--fs-sm);
}
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.swatch { min-width: 0; margin: 0; }
.swatch-sample { height: 80px; border: 1px solid var(--border); border-radius: var(--r-tag); margin-bottom: 8px; }
.swatch figcaption { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); overflow-wrap: anywhere; }
.sw-bg { background: var(--bg); color: var(--text); }
.sw-panel { background: var(--bg-panel); color: var(--text); }
.sw-panel2 { background: var(--bg-panel2); color: var(--on-dark); }
.sw-border { background: var(--border); color: var(--text); }
.sw-accent { background: var(--accent); color: var(--on-dark); }
.sw-accent-dark { background: var(--accent-dark); color: var(--on-dark); }
.sw-accent-deep { background: var(--accent-deep); color: var(--on-dark); }
.sw-cobalt { background: var(--cobalt); color: var(--on-dark); }
.sw-text { background: var(--text); color: var(--on-dark); }
.sw-muted { background: var(--text-muted); color: var(--on-dark); }
.sw-success { background: var(--success); color: var(--on-dark); }
.sw-warn { background: var(--warn); color: var(--accent-deep); }
.sw-error { background: var(--error); color: var(--on-dark); }
.sw-on-dark { background: var(--on-dark); color: var(--text); }
.sw-soft { background: var(--on-dark-soft); color: var(--text); }
.sw-faint { background: var(--on-dark-faint); color: var(--text); }
.sw-wash { background: var(--on-dark-wash); color: var(--text); }
.sw-line { background: var(--line-on-dark); color: var(--text); }
.sw-line-strong { background: var(--line-on-dark-strong); color: var(--text); }
.sw-veil { background: var(--veil); color: var(--accent-deep); }
.sw-clear { background: var(--clear); color: var(--text); }
.type-sample-h1 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: var(--weight-bold); line-height: 1.16; letter-spacing: -.02em; }
.preview-footer { margin-top: var(--section-gap); }
@media (max-width: 900px) {
  .feature-detail { gap: 32px; }
  .feature-copy h3 { font-size: 28px; }
  .swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .feature-detail { grid-template-columns: minmax(0, 1fr); }
  .article-store-card { flex-direction: column; align-items: flex-start; }
  .shot-row { flex-direction: column; align-items: center; }
  .type-sample-h1 { font-size: 30px; }
}
@media (max-width: 640px) {
  .tab-list, [role="tablist"] { gap: 8px; }
  [role="tab"] { padding-inline: 14px; font-size: var(--fs-sm); }
  .feature-code { padding: 24px; }
  .toc-sticky { position: static; }
  .fact-pills { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .faq-item summary { font-size: var(--fs-body); }
  .faq-answer { padding-right: 8px; }
  .callout { padding: 20px; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .dl-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}