.badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 100%;
  min-height: 30px;
  padding: 4px 14px 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text-muted);
  box-shadow: 0 1px 1px var(--ink-a04);
  font-size: 13px;
  font-weight: var(--weight-medium);
  line-height: 1.5;
}
.hero-inner > .badge { margin: 18px 0 0; }
.badge strong { color: var(--text); font-weight: var(--weight-semibold); }
.badge-dot, .status-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: var(--r-circle);
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-a14);
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
  font-size: var(--size-caption);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.tag-pill--accent { color: var(--accent-dark); background: var(--accent-a06); border-color: var(--accent-a22); }
.fact-row, .device-row, .tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.fact-row > li, .device-row > li, .tag-row > li { margin: 0; min-width: 0; max-width: 100%; }
.fact-row { gap: 8px; }
.hero-facts { margin-top: 22px; }
.fact-pill {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 7px;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text-muted);
  font-size: var(--size-caption);
  overflow-wrap: anywhere;
}
.fact-pill strong { color: var(--text); font-weight: var(--weight-semibold); }
.device-row { margin-top: 22px; gap: 10px 18px; font-size: 13px; color: var(--text-muted); }
.device { display: inline-flex; align-items: center; gap: 7px; font-weight: var(--weight-medium); text-decoration: none; }
.device:hover { color: var(--accent-dark); }
.device svg { width: 18px; height: 18px; }
.device-sep { width: 1px; height: 14px; background: var(--border-strong); flex-shrink: 0; }
.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  max-width: 100%;
  padding: 10px 22px;
  border: 1px solid var(--text);
  border-radius: var(--r-btn);
  background: var(--text);
  color: var(--on-ink);
  text-decoration: none;
  text-align: left;
  box-shadow: var(--shadow-btn);
  transition: transform var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}
.app-store-button > svg { width: 25px; height: 27px; }
.app-store-button small { display: block; font-size: 11px; line-height: 1.4; }
.app-store-button strong { display: block; font-size: 16px; line-height: 1.4; font-weight: var(--weight-semibold); }
.app-store-button:hover, .app-store-button.is-hover { background: var(--ink-hover); color: var(--on-ink); transform: translateY(-1px); }
.app-store-button:active { transform: translateY(1px); }
.app-store-button--lead { min-height: 64px; padding: 14px 28px; box-shadow: var(--shadow-float); }
.app-store-button--lead strong { font-size: 19px; }
.console-wrap { position: relative; isolation: isolate; width: min(620px, 100%); margin-top: 30px; }
.console-wrap::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 14%;
  right: 14%;
  bottom: -38px;
  height: 76px;
  border-radius: var(--r-circle);
  background: radial-gradient(ellipse at center, var(--accent-glow), var(--mask-off) 70%);
  filter: blur(20px);
  opacity: 0.75;
}
.console { position: relative; text-align: left; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-float); }
.console::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 10%;
  right: 22%;
  height: 1px;
  background: linear-gradient(90deg, var(--mask-off), var(--accent) 38%, var(--accent-dark) 62%, var(--mask-off));
  box-shadow: 0 0 10px var(--accent-glow);
}
.console-bar { display: flex; align-items: center; gap: 18px; min-height: 46px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.lights { display: inline-flex; gap: 6px; flex-shrink: 0; }
.lights i { width: 9px; height: 9px; border-radius: var(--r-circle); opacity: 0.78; }
.lights i:nth-child(1) { background: var(--error); }
.lights i:nth-child(2) { background: var(--warn); }
.lights i:nth-child(3) { background: var(--success); }
.console-tabs { display: flex; align-self: stretch; gap: 4px; min-width: 0; }
.console-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 8px;
  border: 0;
  background: var(--mask-off);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: var(--weight-semibold);
  cursor: pointer;
}
.console-tab::after { content: ""; position: absolute; bottom: -1px; left: 8px; right: 8px; height: 1px; background: var(--accent); opacity: 0; }
.console-tab[aria-selected="true"] { color: var(--text); }
.console-tab[aria-selected="true"]::after { opacity: 1; }
.console-title { margin-left: auto; font: var(--size-caption)/1.5 var(--font-mono); color: var(--text-muted); letter-spacing: 0.01em; }
.console-body { padding-top: 12px; padding-bottom: 14px; }
.pane { margin: 0; padding: 0; list-style: none; counter-reset: ln; font: 13.5px/26px var(--font-mono); }
.pane li {
  counter-increment: ln;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 40px;
  align-items: center;
  margin: 0;
  color: var(--text);
}
.pane li::before { content: counter(ln); padding-right: 14px; text-align: right; font-size: var(--size-caption); color: var(--text-muted); }
.pane li > code { display: block; min-width: 0; overflow-x: auto; white-space: pre; overflow-wrap: normal; font: inherit; scrollbar-width: thin; }
.pane li.is-hit { background: linear-gradient(90deg, var(--accent-a06), var(--mask-off) 92%); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.pane li.is-hit::before, .k { color: var(--accent); }
.p { color: var(--accent-dark); font-weight: var(--weight-semibold); }
.s, .c { color: var(--text-muted); }
.s { font-weight: var(--weight-semibold); }
.copy { justify-self: center; display: inline-grid; place-items: center; width: 30px; min-height: 32px; border: 0; border-radius: var(--r-control); background: var(--mask-off); color: var(--text-muted); }
.copy:hover { background: var(--bg-panel); color: var(--accent-dark); }
.copy svg { width: 15px; height: 15px; }
.tab-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.preview-pane { display: none; }
#ct-rule:checked ~ .console-bar .tab-rule,
#ct-sub:checked ~ .console-bar .tab-sub,
#ct-srv:checked ~ .console-bar .tab-srv { color: var(--text); }
#ct-rule:checked ~ .console-bar .tab-rule::after,
#ct-sub:checked ~ .console-bar .tab-sub::after,
#ct-srv:checked ~ .console-bar .tab-srv::after { opacity: 1; }
#ct-rule:checked ~ .console-body .pane-rule,
#ct-sub:checked ~ .console-body .pane-sub,
#ct-srv:checked ~ .console-body .pane-srv { display: block; }
#ct-rule:focus-visible ~ .console-bar .tab-rule,
#ct-sub:focus-visible ~ .console-bar .tab-sub,
#ct-srv:focus-visible ~ .console-bar .tab-srv { outline: 2px solid var(--accent); outline-offset: -5px; border-radius: var(--r-control); }
.status-strip { position: relative; z-index: 3; min-height: 52px; border-block: 1px solid var(--border); background: var(--bg); color: var(--text-muted); font: 11.5px/1.5 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.status-inner { max-width: 1200px; min-height: 52px; margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; white-space: nowrap; }
.status-item { display: inline-flex; align-items: center; gap: 8px; }
.status-item b { color: var(--text); font-weight: var(--weight-semibold); }
.status-tick { color: var(--text-muted); }
.tabs { min-width: 0; }
.tab-list { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.tab-list [role="tab"] {
  min-height: 44px;
  max-width: 100%;
  padding: 10px 18px;
  border: 1px solid var(--mask-off);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
}
.tab-list [role="tab"][aria-selected="true"] { background: var(--accent-a06); color: var(--accent-dark); border-color: var(--accent-a22); }
.tab-panel { min-width: 0; padding-top: 24px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.toc a { display: block; padding: 8px 12px; min-height: 40px; border-radius: var(--r-pill); color: var(--text-muted); text-decoration: none; font-size: var(--size-small); }
.toc a:hover, .toc a[aria-current] { background: var(--bg-panel); color: var(--accent-dark); }
.toc--sticky { position: sticky; top: 16px; z-index: 8; }
.toc--flow { position: static; }
.faq-list { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.faq-item { min-width: 0; padding-inline: 24px; }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-item summary { position: relative; list-style: none; padding: 20px 28px 20px 0; cursor: pointer; font-weight: var(--weight-semibold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 20px; color: var(--accent-dark); font-family: var(--font-mono); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 20px; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { border-top: 2px solid var(--accent); }
.term-card dt { margin-bottom: 12px; font: var(--weight-bold) 18px/1.5 var(--font-mono); }
.term-card dd { margin: 0; color: var(--text-muted); }
.term-card .tag-pill { margin-bottom: 16px; }
.device-card { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.device-card > svg { width: 44px; height: 52px; color: var(--text-muted); }
.device-card h3 { margin: 0; }
.device-card p { margin: 0; color: var(--text-muted); }
.device-card .btn { margin-top: auto; }
.article-card { display: flex; flex-direction: column; gap: 14px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--text-muted); font-size: var(--size-caption); }
.article-card h3 { margin: 0; font-size: 20px; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { color: var(--accent-dark); }
.article-card p { margin: 0; color: var(--text-muted); }
.article-card .article-link { margin-top: auto; padding-top: 8px; color: var(--accent-dark); font-size: var(--size-small); font-weight: var(--weight-semibold); text-decoration: none; }
.callout { margin: 24px 0; padding: 20px 24px; border: 1px solid var(--accent-a22); border-left: 3px solid var(--accent); border-radius: var(--r-card); background: var(--accent-a06); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 8px; font-weight: var(--weight-bold); }
.shot-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 32px; }
.official-shot { width: min(280px, 100%); min-width: 0; flex-shrink: 0; margin: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-card); }
.official-shot { --r-card: 10px; }
.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.7; text-align: center; }
.shot-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 750 / 1334;
  padding: 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-card);
  background: var(--bg-panel);
  color: var(--text-muted);
  text-align: center;
  font: var(--size-small)/1.8 var(--font-mono);
}
.table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--size-small); }
.data-table th, .data-table td, .prose table th, .prose table td, .article-body table th, .article-body table td {
  min-width: 7em;
  padding: 14px 18px;
  border: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose table th, .article-body table th { background: var(--bg-panel); color: var(--text); font-weight: var(--weight-semibold); }
.data-table td, .prose table td, .article-body table td { background: var(--bg); color: var(--text); }
.prose table, .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; overscroll-behavior-inline: contain; }
.data-table code, .prose table code, .article-body table code { overflow-wrap: anywhere; white-space: normal; }
.dl-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 36px);
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--text);
  color: var(--on-ink);
  box-shadow: var(--shadow-float);
  text-decoration: none;
  font-size: var(--size-small);
  font-weight: var(--weight-semibold);
}
.dl-fab svg { width: 20px; height: 20px; }
.has-article-fab .site-footer { padding-bottom: 108px; }
.article-store-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; }
.article-store-card > div { flex: 1 1 250px; min-width: 0; }
.article-store-card h2 { margin: 0 0 12px; font-size: 24px; }
.article-store-card p { margin: 0; color: var(--text-muted); }
.feature-section { background: var(--bg-dark); color: var(--on-ink); }
.feature-section .section-heading p { color: var(--text-dark-muted); }
.feature-section .eyebrow { color: var(--accent-light); }
.rule-ruler {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  min-height: 56px;
  padding: 14px var(--gutter);
  border-block: 1px solid var(--border-dark);
  background: repeating-linear-gradient(90deg, var(--border-dark) 0 1px, var(--mask-off) 1px 20px), var(--bg-dark);
  color: var(--text-dark-muted);
  font: var(--size-caption)/1.6 var(--font-mono);
}
.feature-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feature-layout > * { min-width: 0; }
.feature-list { display: flex; flex-direction: column; }
.feature-row { border-bottom: 1px solid var(--border-dark); }
.feature-row:first-child { border-top: 1px solid var(--border-dark); }
.feature-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 68px;
  padding: 18px 0;
  border: 0;
  background: var(--mask-off);
  color: var(--text-dark-muted);
  text-align: left;
  font: var(--weight-semibold) 14px/1.6 var(--font-mono);
  letter-spacing: 0.05em;
}
.feature-tab::before { content: ""; width: 10px; height: 10px; flex-shrink: 0; border: 1px solid var(--text-dark-muted); border-radius: var(--r-circle); }
.feature-tab::after { content: "⌄"; margin-left: auto; color: var(--text-dark-muted); }
.feature-tab[aria-selected="true"] { color: var(--on-ink); }
.feature-tab[aria-selected="true"]::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-a14); }
.feature-tab[aria-selected="true"]::after { content: "⌃"; }
.feature-note { padding: 0 0 24px 26px; color: var(--text-dark-muted); font-size: var(--size-small); line-height: 1.9; }
.feature-note p { margin-bottom: 14px; }
.feature-note code { color: var(--accent-light); }
.feature-stack { position: relative; isolation: isolate; padding: 28px 12px 40px; }
.feature-stack::after { content: ""; position: absolute; z-index: -1; left: 10%; right: 10%; bottom: 0; height: 90px; border-radius: var(--r-circle); background: radial-gradient(ellipse, var(--accent-glow), var(--mask-off) 70%); filter: blur(24px); }
.feature-float { position: relative; padding: 24px; border: 1px solid var(--border-dark); border-radius: var(--r-card); background: var(--bg-dark-card); color: var(--on-ink); box-shadow: var(--shadow-soft); }
.feature-float + .feature-float { margin: 18px 0 0 28px; }
.feature-float pre { margin: 0; padding: 0; border: 0; background: var(--bg-dark-card); color: var(--on-ink); font-size: 12px; }
.feature-float .k { color: var(--accent-light); }
.feature-float .eyebrow { display: block; margin-bottom: 14px; }
.feature-float .tag-row { justify-content: flex-start; }
.feature-float .tag-pill { background: var(--bg-dark-card); color: var(--text-dark-muted); border-color: var(--border-dark); font-family: var(--font-mono); }
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { min-width: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: var(--bg); color: var(--text); }
.swatch-color { height: 70px; border-bottom: 1px solid var(--border); }
.swatch figcaption { padding: 12px; overflow-wrap: anywhere; font: var(--size-caption)/1.7 var(--font-mono); }
.swatch--bg { background: var(--bg); }
.swatch--panel { background: var(--bg-panel); }
.swatch--dark { background: var(--bg-dark); }
.swatch--dark-card { background: var(--bg-dark-card); }
.swatch--border { background: var(--border); }
.swatch--border-strong { background: var(--border-strong); }
.swatch--border-dark { background: var(--border-dark); }
.swatch--grid { background: var(--grid-line); }
.swatch--accent { background: var(--accent); }
.swatch--accent-dark { background: var(--accent-dark); }
.swatch--accent-light { background: var(--accent-light); }
.swatch--text { background: var(--text); }
.swatch--muted { background: var(--text-muted); }
.swatch--faint { background: var(--text-faint); }
.swatch--dark-muted { background: var(--text-dark-muted); }
.swatch--success { background: var(--success); }
.swatch--warn { background: var(--warn); }
.swatch--error { background: var(--error); }
.swatch--hover { background: var(--ink-hover); }
.preview-label { margin-bottom: 14px; color: var(--text-muted); font-size: var(--size-small); }
.preview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.preview-section-title { margin-top: 0; margin-bottom: 32px; }
@media (max-width: 900px) {
  .feature-layout { gap: 32px; }
  .swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .console-title { display: none; }
  .console-bar { gap: 12px; padding-inline: 12px; }
  .console-tab { padding-inline: 7px; font-size: 12.5px; }
  .pane { font-size: 12.5px; }
  .pane li { grid-template-columns: 34px minmax(0, 1fr) 34px; }
  .status-inner { justify-content: flex-start; }
  .feature-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature-stack { padding-inline: 0; }
  .feature-float { padding: 20px; }
  .feature-float + .feature-float { margin-left: 12px; }
  .faq-item { padding-inline: 18px; }
  .shot-row { flex-direction: column; align-items: center; }
  .fact-row, .device-row, .tag-row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-store-card { padding: 22px; }
  .dl-fab { font-size: 13px; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-store-button { transition: none; }
  .app-store-button:hover, .app-store-button:active { transform: none; }
}