.chip, .badge, .fact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}
.chip svg, .badge svg { width: 13px; height: 13px; flex: none; }
.chip-accent, .badge-accent { color: var(--accent-dark); border-color: var(--accent-wash); }
.badge-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: var(--r-round);
  background: var(--accent);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.facts li { min-width: 0; max-width: 100%; }
.fact-pill { font-size: var(--text-xs); font-weight: var(--weight-medium); }
.app-store-button { min-height: 52px; }
.app-store-button > svg { width: 22px; height: 24px; flex: none; }
.app-store-button .store-copy { display: block; text-align: left; }
.store-copy small { display: block; font-size: 11px; font-weight: var(--weight-medium); }
.store-copy strong { display: block; font-size: 15px; font-weight: var(--weight-bold); }

.verify {
  position: relative;
  width: 92%;
  margin: 36px auto 0;
  transform: perspective(1800px) rotateX(var(--tilt));
  transform-origin: 50% 100%;
}
.verify::before, .verify::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: var(--r-float);
}
.verify::before {
  z-index: 1;
  width: 96%;
  height: 40px;
  bottom: -9px;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
}
.verify::after {
  z-index: 0;
  width: 91%;
  height: 40px;
  bottom: -18px;
  background: var(--border);
}
.vcard {
  position: relative;
  z-index: 2;
  margin: 0;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-float);
  box-shadow: var(--shadow-float);
}
.vcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--r-float) var(--r-float) 0 0;
  background: var(--bg);
  color: var(--text);
}
.vcard-title { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: var(--weight-bold); letter-spacing: -.01em; }
.vcard-title svg { width: 13px; height: 13px; }
.vcard-url { min-width: 0; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); overflow-wrap: anywhere; }
.vcard-url b { color: var(--text); font-weight: var(--weight-semibold); }
.vcard-body { display: grid; grid-template-columns: 1.05fr 1.3fr .95fr; }
.vcol { min-width: 0; padding: 22px 28px 24px; }
.vcol + .vcol { border-left: 1px solid var(--border); }
.col-label { margin: 0 0 12px; font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: .04em; color: var(--text-muted); }
.app { display: flex; align-items: center; gap: 16px; }
.app > div { min-width: 0; }
.app-icon {
  display: block;
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: var(--r-app-icon);
  background: var(--bg-panel);
  color: var(--text-muted);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-icon-inset), var(--shadow-hair);
}
.app-name { margin: 0; font-size: 24px; font-weight: var(--weight-display); letter-spacing: -.035em; line-height: 1.15; overflow-wrap: anywhere; }
.app-dev { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: var(--text-muted); }
.app-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.checks li + li { border-top: 1px solid var(--border); }
.check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border: 2px solid var(--accent);
  border-radius: var(--r-check);
  color: var(--accent);
}
.check svg { width: 12px; height: 12px; }
.check-text { font-size: 15px; font-weight: var(--weight-semibold); letter-spacing: -.01em; }
.check-sub { margin-left: auto; font-size: var(--text-xs); color: var(--text-muted); }
.app-id {
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  padding-inline: 2px;
  background: linear-gradient(180deg, var(--clear) 56%, var(--accent-wash) 56%, var(--accent-wash) 92%, var(--clear) 92%);
  color: var(--text);
}
.compat { margin: 0; padding: 0; list-style: none; }
.compat li { display: flex; align-items: center; gap: 10px; min-height: 29px; font-size: var(--text-sm); font-weight: var(--weight-medium); }
.tile { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: var(--r-tile); background: var(--bg-panel-2); color: var(--text); }
.tile svg { width: 15px; height: 15px; }
.compat-foot { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--border); font-size: var(--text-xs); line-height: 1.55; color: var(--text-muted); }
.verify-note { display: flex; flex-direction: column; align-items: center; margin-top: 20px; text-align: center; }
.verify-note .stem { width: 0; height: 16px; border-left: 1.5px dashed var(--text-muted); }
.verify-note .dot { width: 6px; height: 6px; border-radius: var(--r-round); background: var(--accent); margin-bottom: 2px; }
.verify-note p { margin: 4px 0 0; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }
.verify-note b { color: var(--text); font-weight: var(--weight-semibold); }

.feature-section { padding-top: 64px; padding-bottom: 80px; }
.feature-section h2 { margin: 0; font-size: 30px; }
.tabs { min-width: 0; }
.seg, [role="tablist"].seg {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  max-width: 100%;
  margin-top: 24px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--bg-panel-2);
  color: var(--text-muted);
}
.seg [role="tab"] {
  min-height: 36px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--clear);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.seg [role="tab"]:hover { color: var(--text); }
.seg [role="tab"][aria-selected="true"] {
  background: var(--bg-panel);
  color: var(--text);
  font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-hair);
}
.feature-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  margin-top: 32px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-float);
  text-align: left;
}
.feature-panel h3 { margin: 0 0 16px; font-weight: var(--weight-display); }
.feature-panel p { color: var(--text-muted); margin-bottom: 0; }
.feature-panel pre { margin: 0; }
.rule-key { color: var(--accent-dark); }
.settings-list {
  margin: 0;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-float);
  background: var(--bg-panel-2);
  color: var(--text);
  list-style: none;
}
.settings-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding-block: 12px; font-size: var(--text-sm); }
.settings-list li + li { border-top: 1px solid var(--border); }
.settings-list li::after { content: "›"; flex: none; color: var(--text-muted); font-size: 22px; }
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  margin-block: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-float);
  background: var(--bg-panel-2);
  color: var(--text);
}
.toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--r-pill); font-size: var(--text-sm); }
.toc a:hover, .toc a[aria-current="location"] { background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-hair); }
.toc-sticky { position: sticky; top: 16px; z-index: 10; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  position: relative;
  min-height: 64px;
  padding: 20px 36px 20px 0;
  list-style: none;
  font-weight: var(--weight-semibold);
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--font-mono); font-size: 22px; color: var(--accent-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 20px; color: var(--text-muted); }
.faq-answer > :last-child { margin-bottom: 0; }
.term-card { border-top: 3px solid var(--accent); }
.term-name { margin: 0 0 6px; font-family: var(--font-mono); font-size: 20px; font-weight: var(--weight-bold); overflow-wrap: anywhere; }
.term-category { display: block; margin-bottom: 16px; font-size: var(--text-xs); 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-shot); }
.official-shot { border-radius: var(--r-shot); }
.official-shot img, .shot-placeholder { outline: 1px solid var(--border); outline-offset: -1px; }
.official-shot figcaption { margin-top: 12px; font-size: var(--text-xs); line-height: 1.6; color: var(--text-muted); text-align: center; }
.shot-row { display: flex; justify-content: center; align-items: flex-start; gap: 32px; }
.shot-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 750 / 1334;
  border-radius: var(--r-shot);
  background: var(--bg-panel-2);
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
}
.device-card { display: flex; align-items: flex-start; gap: 24px; }
.device-card > div { min-width: 0; }
.device-card > svg { width: 48px; height: 60px; flex: none; color: var(--text); }
.device-card h3 { margin: 0 0 12px; }
.device-card p { color: var(--text-muted); }
.device-card .text-link { display: inline-block; padding-block: 8px; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; }
.article-card h3 { margin: 20px 0 12px; font-size: 21px; line-height: 1.5; }
.article-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.article-card p { color: var(--text-muted); font-size: var(--text-sm); }
.article-card .text-link { margin-top: auto; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: var(--text-xs); color: var(--text-muted); }
.callout {
  margin: 24px 0;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-float);
  background: var(--bg-panel-2);
  color: var(--text);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { display: block; margin-bottom: 8px; }
.table-scroll {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--r-float);
}
.data-table, .prose table, .manual-body table, .article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  text-align: left;
  background: var(--bg-panel);
  color: var(--text);
}
.prose table, .manual-body table, .article-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
}
.data-table th, .data-table td,
.prose table th, .prose table td,
.manual-body table th, .manual-body table td,
.article-body table th, .article-body table td {
  min-width: 7em;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  overflow-wrap: normal;
  word-break: normal;
  vertical-align: top;
}
.data-table th, .prose table th, .manual-body table th, .article-body table th {
  background: var(--bg-panel-2);
  color: var(--text);
  font-weight: var(--weight-semibold);
}
.data-table tr:last-child td { border-bottom: 0; }
.dl-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: var(--layer-fab);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  min-height: 64px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-float);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-float);
}
.dl-fab svg { width: 24px; height: 24px; color: var(--accent-dark); flex: none; }
.dl-fab strong, .dl-fab small { display: block; }
.dl-fab strong { font-size: var(--text-sm); }
.dl-fab small { font-size: var(--text-xs); color: var(--text-muted); }
.dl-fab:hover { border-color: var(--accent); }
.article-store-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
}
.article-store-card > div { min-width: 0; flex: 1 1 280px; }
.article-store-card h2 { margin: 0 0 12px; font-size: 26px; }
.article-store-card p { margin: 0; color: var(--text-muted); }
.has-article-fab .site-footer { padding-bottom: 120px; }

.preview-section { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--border); }
.preview-section h2 { margin-top: 0; }
.preview-label { margin-bottom: 12px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }
.preview-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.preview-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.preview-pressed { transform: translateY(1px); box-shadow: var(--shadow-hair); }
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { min-width: 0; margin: 0; }
.swatch-surface { display: block; min-height: 72px; border: 1px solid var(--border); border-radius: var(--r-float); }
.swatch figcaption { padding-top: 8px; font-family: var(--font-mono); font-size: var(--text-xs); overflow-wrap: anywhere; color: var(--text-muted); }
.sw-bg { background: var(--bg); color: var(--text); }
.sw-panel { background: var(--bg-panel); color: var(--text); }
.sw-panel2 { background: var(--bg-panel-2); color: var(--text); }
.sw-border { background: var(--border); color: var(--text); }
.sw-accent { background: var(--accent); color: var(--text); }
.sw-accent-dark { background: var(--accent-dark); color: var(--on-ink); }
.sw-from { background: var(--accent-from); color: var(--text); }
.sw-to { background: var(--accent-to); color: var(--text); }
.sw-wash { background: var(--accent-wash); color: var(--text); }
.sw-edge { background: var(--accent-edge); color: var(--text); }
.sw-text { background: var(--text); color: var(--on-ink); }
.sw-muted { background: var(--text-muted); color: var(--on-ink); }
.sw-ink { background: var(--ink); color: var(--on-ink); }
.sw-ink-muted { background: var(--ink-muted); 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); }
.preview-type-h1 { font-size: var(--text-h1); font-weight: var(--weight-display); line-height: var(--leading-display); }
.preview-footer .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }

@media (max-width: 1200px) {
  .check-sub { display: none; }
  .vcol { padding-inline: 20px; }
  .app { gap: 12px; }
  .app-icon { width: 60px; height: 60px; }
  .app-name { font-size: 21px; }
}
@media (max-width: 900px) {
  .verify { width: 100%; transform: none; }
  .vcard-body { grid-template-columns: minmax(0, 1fr); }
  .vcol + .vcol { border-left: 0; border-top: 1px solid var(--border); }
  .vcard-head { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 20px; }
  .vcol { padding: 20px; }
  .app-icon { width: 76px; height: 76px; }
  .app-name { font-size: 24px; }
  .check-sub { display: inline; }
  .feature-panel { gap: 28px; padding: 28px; }
  .swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .seg { border-radius: var(--r-float); }
  .seg [role="tab"] { min-height: 44px; padding-inline: 12px; }
  .feature-panel { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .feature-section { padding-top: 48px; padding-bottom: 48px; }
  .feature-section h2 { font-size: 26px; }
  .check-sub { display: none; }
  .shot-row { flex-direction: column; align-items: center; }
  .device-card { gap: 16px; }
  .device-card > svg { width: 36px; height: 48px; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-footer .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .callout { padding: 20px; }
  .dl-fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 10px 16px; }
}