/* ============================================================
   Device Repository — site-only tokens and base element rules.

   The brand foundation (fonts, colour scales, --tn-* aliases, --link*, --type-*, radius, shadow,
   motion, .tn-wrap, .tn-eyebrow and the tn-ph page header) is NOT defined here: it comes from
   src/assets/static/ttn-tokens.css, GENERATED by the www platform
   (thethingsnetwork-v2: platform/scripts/export-brand-tokens.mjs, contract docs/brand-page-header.md)
   and loaded before this stylesheet (layouts/partials/head.html). Never copy those tokens back here;
   re-run the exporter instead.
   ============================================================ */

:root {
  /* Radii on the 8px grid (brand guidelines §11): 8px for buttons, inputs, cards and controls;
     16px only for large panels and banners; 999px only for badges, tags, status dots and scrollbars. */
  --radius: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;
}

/* -----------------------------  BASE RULES  ----------------------------- */

html {
  font-size: 15px;
}
@media (max-width: 700px) { html { font-size: 14px; } }

body {
  font-family: var(--font-body);
  color: var(--c-text-heavy);
  background: var(--c-bg-page);
  font-size: var(--type-body-size);   /* Body / Default: 15/21 */
  line-height: var(--type-body-lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Headings: Poppins SemiBold 600 (typography.md). Hierarchy comes from size, never weight; there is
   no 700 in the system. The page's h1 is the tn-ph page header title (Display). In-page defaults use
   the H-styles; components that need a smaller heading set their own size (still Poppins 600), and
   headings that are really labels (filter group names, aside-card captions) set Inter explicitly. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--heading, var(--tn-navy));
}
h1 { font-size: var(--type-display-size); line-height: var(--type-display-lh); letter-spacing: var(--type-display-track); }
h2 { font-size: var(--type-h3-size); line-height: var(--type-h3-lh); letter-spacing: var(--type-h3-track); }
h3 { font-size: var(--type-h5-size); line-height: var(--type-h5-lh); letter-spacing: var(--type-h5-track); }
h4, h5, h6 { font-size: var(--type-h6-size); line-height: var(--type-h6-lh); letter-spacing: var(--type-h6-track); }

b, strong { font-weight: 600; }

p { font-size: var(--type-body-size); line-height: var(--type-body-lh); color: var(--c-text-heavy); margin: 0 0 16px; }
small, .t-small { font-size: var(--type-body-s-size); line-height: var(--type-body-s-lh); }

code, pre, .t-mono { font-family: var(--font-mono); font-size: 0.9em; }

/* Text links: tti-500 on light surfaces, tti-600 on hover (colors.md "Usage rules", owner 2026-10-14).
   As on www, links don't underline on hover by default (the colour change is the affordance); prose
   links opt in (.tag-prose a:hover). Navigation (sub-navigation, tabs, breadcrumbs) stays neutral and
   buttons/fills keep the ttn palette: those components set their own colours. */
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

/* Tabler outline icons (layouts/partials/icon.html): 16 or 24px, 2px stroke, the text colour. */
.ico { flex-shrink: 0; vertical-align: middle; }

/* App styles for the Device Repository — ported from the Claude Design handoff. */

* { box-sizing: border-box; }

html, body {
  background: var(--c-bg-page);
  color: var(--c-text-heavy);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.app { min-height: 100vh; display: flex; flex-direction: column; }

/* Theme variables */
:root {
  --surface-page: #ffffff;
  --surface-card: #ffffff;
  --surface-subtle: var(--grey-025);
  --surface-muted: var(--grey-050);
  --surface-emph: var(--grey-075);
  --border-color: var(--grey-100);
  --border-color-strong: var(--grey-200);
  --text-1: var(--grey-900);
  --text-2: var(--grey-700);
  --text-3: var(--grey-600);
  --text-4: var(--grey-500);
  --text-label: var(--grey-700); /* 13px labels (filters, quick facts, side cards): 6:1 on white; --text-3 is 3.6:1 */
  /* The Things Network design language — the --tn-* tokens (TTN blue for buttons, fills, active
     controls and card hover borders; navy for headings) come from ttn-tokens.css (the www platform's
     export). Text links use --link (tti-500, tokens.css `a`), never these. */
  --heading: var(--tn-navy);
  --brand: var(--tn-blue-600);
  --brand-hover: var(--tn-blue-700);
  --brand-tint: var(--tn-tint);
  --brand-tint-2: #cce9ff;
  --shadow-card: 0 .2rem 1rem 0 rgba(0,0,0,.04);
  --shadow-pop: 0 1rem 2.5rem 0 rgba(0,12,40,.08);
}

[data-theme="dark"] {
  --focus-ring: var(--focus-ring-on-dark);
  --surface-page: #0A1020;
  --surface-card: #131B30;
  --surface-subtle: #0F1628;
  --surface-muted: #182238;
  --surface-emph: #1F2A42;
  --border-color: #1F2B45;
  --border-color-strong: #2B3A57;
  --text-1: #F0F4FB;
  --text-2: #B6C2D8;
  --text-3: #8A98B5;
  --text-4: #6A7896;
  --text-label: var(--text-2);
  --tn-blue: #4DB4FF;
  --heading: var(--text-1);
  --brand: #4DB4FF;
  --brand-hover: #7CC8FF;
  --brand-tint: rgba(38,160,255,.12);
  --brand-tint-2: rgba(38,160,255,.22);
  --shadow-card: 0 .2rem 1rem 0 rgba(0,0,0,.3);
  --shadow-pop: 0 1rem 2.5rem 0 rgba(0,0,0,.5);
}

[data-theme="dark"] body { background: var(--surface-page); color: var(--text-1); }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4, [data-theme="dark"] h5 { color: var(--text-1); }
[data-theme="dark"] p { color: var(--text-2); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600;
  cursor: pointer;
  font-size: 14px; padding: .55rem 1rem;
  line-height: 1.2; white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* Page header actions: the shared button spec (brand-page-header.md, tn-ph__actions = the website's
   .tn-btn--lg): 48px, 14px 26px, Inter 15/600; primary = the ttn-500 fill, secondary = white. */
.tn-ph__actions .btn { padding: 14px 26px; font-size: 15px; line-height: 18px; }
.tn-ph__actions .btn-secondary { background: #fff; }
.btn-primary { background: var(--tn-blue); border-color: var(--tn-blue); color: #fff; }
.btn-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-secondary { background: transparent; border-color: var(--border-color-strong); color: var(--text-1); }
.btn-secondary:hover { background: var(--surface-muted); border-color: var(--text-3); color: var(--text-1); }
.btn-tertiary { background: transparent; border-color: transparent; color: var(--brand); padding: .4rem .6rem; }
.btn-tertiary:hover { background: var(--brand-tint); }
.btn-sm { padding: .35rem .7rem; font-size: 12px; border-radius: var(--radius); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ============ LAYOUT ============ */
/* Same outer grid as the global The Things Network header/footer (www `.tn-wrap` / `.tn-header__bar`:
   1200px + 24px side padding), so logo, section bar, content and footer share one left/right edge. */
:root { --ttn-grid: 1200px; }
.container { max-width: var(--ttn-grid); margin: 0 auto; padding: 0 24px; }

/* Page headers are the shared tn-ph band (ttn-tokens.css, docs/brand-page-header.md). Only the host's
   own content inside it is styled here: */
/* the vendor search in the Vendors header's actions (as /community's search: grows to 640px) */
.dr-ph-search { flex: 1 1 100%; max-width: 640px; }
/* a vendor logo as the header's media */
.tn-ph__media .dr-ph-logo { max-height: 48px; width: auto; }
/* the device photo as the device header's aside: a white large-panel tile */
.tn-ph__aside .dr-ph-photo {
  width: 100%; height: 360px;
  padding: 24px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
}
@media (max-width: 960px) { .tn-ph__aside .dr-ph-photo { height: 280px; } }
@media (max-width: 700px) { .tn-ph__aside .dr-ph-photo { height: 240px; } }

/* The search row at the top of a device list (under the page header). */
.browse-search { padding-top: 32px; }
.browse-search .search-bar { margin: 0; }
.browse-lite-results { padding: 24px 0 80px; }

/* ============ SEARCH BAR ============ */
.search-bar {
  display: flex; gap: 12px; align-items: center;
  margin: 28px 0 0;
}
.search-input {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--surface-card);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius); padding: 14px 18px;
  font-size: 15px;
}
.search-input:focus-within { border-color: var(--brand); box-shadow: var(--focus-ring); }
.search-input input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text-1); }
.search-input .ico { color: var(--text-3); }

.sort-select {
  padding: 14px 16px; border: 1px solid var(--border-color-strong);
  border-radius: var(--radius); background: var(--surface-card); color: var(--text-1);
  font: inherit; font-size: 14px; cursor: pointer;
  appearance: none;
  /* Tabler "chevron-down", 16px, 2px stroke */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23536482%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27><path d=%27m6 9l6 6l6-6%27/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
@media (max-width: 700px) {
  .search-bar { flex-direction: column; align-items: stretch; }
}

/* ============ FILTERS SIDEBAR ============ */
.browse-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 32px 0 80px; }
.browse-results { min-width: 0; }
.filter-sidebar { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 8px; }
.filter-sidebar::-webkit-scrollbar { width: 6px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--border-color-strong); border-radius: var(--radius-full); }

.filter-block { min-width: 0; margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--border-color); }
.filter-block:first-child { padding-top: 0; }
/* A filter group's label: a <legend> (the group is a <fieldset>), not a heading. Label / Small 13/16 600;
   --text-label (grey-700, 6:1 on white). Floated so its margin works like a block's. */
.filter-label {
  float: left; width: 100%; padding: 0;
  font-family: var(--font-body); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0;
  color: var(--text-label); margin: 0 0 12px;
}
.filter-label + * { clear: both; }
.filter-list { display: flex; flex-direction: column; gap: 6px; }
.filter-list label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; line-height: 16px; color: var(--text-1);
  cursor: pointer; padding: 4px 0;
}
.filter-list label .lname { display: flex; align-items: center; gap: 8px; }
.filter-list input[type=checkbox] { accent-color: var(--brand); width: 14px; height: 14px; margin: 0; }
.filter-list .count {
  font-size: 11px; color: var(--text-4);
  font-variant-numeric: tabular-nums;
}
.filter-list.scrollable { max-height: 240px; overflow-y: auto; }
.filter-more {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: inherit; font-size: 13px; line-height: 16px; color: var(--link); text-align: left;
}
.filter-more:hover { color: var(--link-hover); }

.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; font-size: 13px; line-height: 16px; font-weight: 500; /* Label / Small */
  background: var(--surface-muted); border: 1px solid var(--border-color);
  color: var(--text-2); border-radius: var(--radius); cursor: pointer; /* a filter control, not a tag */
  font-family: var(--font-body);
}
.filter-pill:hover { border-color: var(--text-3); }
.filter-pill.active { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); }

/* Active filter chips above grid */
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; align-items: center; }
.active-filters[hidden] { display: none; }
.active-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 6px 4px 10px; font-size: 13px; line-height: 16px; font-weight: 500; /* Label / Small */
  background: var(--brand-tint); color: var(--brand); border-radius: var(--radius-full);
}
.active-chip .x { cursor: pointer; opacity: .6; padding: 0 4px; background: none; border: 0; color: inherit; font-size: 12px; line-height: 1; }
.active-chip .x:hover { opacity: 1; }
.active-filters .clear { color: var(--text-3); font-size: 13px; cursor: pointer; margin-left: 4px; text-decoration: underline; background: none; border: 0; font-family: inherit; }

/* Mobile filter drawer */
.filter-toggle { display: none; }
@media (max-width: 940px) {
  .browse-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; max-height: none; display: none; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 4px 16px 16px; }
  .filter-sidebar.open { display: block; }
  .filter-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    margin-bottom: 4px;
  }
}

/* ============ DEVICE GRID ============ */
.results-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; color: var(--text-3); font-size: 13px; line-height: 20px; }
.results-meta strong { color: var(--text-1); }
.view-toggle { display: inline-flex; border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; }
.view-toggle button { padding: 6px 10px; background: transparent; border: 0; color: var(--text-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.view-toggle button.active { background: var(--brand-tint); color: var(--brand); }

/* minmax(0, 1fr): a plain 1fr track has an `auto` minimum, so one long unbreakable string (a model
   name, a frequency-plan list) widened the third column past the container at 1440px. */
.device-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .device-grid { grid-template-columns: 1fr; } }

.device-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0; overflow-wrap: anywhere;
  text-decoration: none; color: inherit;
  /* The landing page renders every device (~1,100 cards, so crawlers reach each one): let the browser
     skip layout/paint for off-screen cards. `auto` remembers a card's real size once it has rendered. */
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}
.device-card:hover { border-color: var(--brand); box-shadow: var(--shadow-card); transform: translateY(-1px); text-decoration: none; color: inherit; }
.device-card .d-thumb {
  height: 120px; border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.device-card .d-thumb img { max-width: 90%; max-height: 104px; object-fit: contain; }
.device-card .d-vendor {
  font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0; color: var(--text-3);
}
/* Card title: Poppins SemiBold, H6 16/21 (typography.md) — a dense three-column grid. */
.device-card h3 {
  font-family: var(--font-display); font-size: var(--type-h6-size); font-weight: 600;
  margin: 0; line-height: var(--type-h6-lh); color: var(--heading);
}
.device-card p {
  font-size: 13px; color: var(--text-3); margin: 0;
  line-height: 20px; /* Body / XS 13/20 */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.device-card .d-tags {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto;
}
/* Tags: Label / Small 13/16 (never below 13px). */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; line-height: 16px; padding: 2px 8px;
  background: var(--surface-muted); border-radius: var(--radius-full);
  color: var(--text-2); font-weight: 500;
}
.tag.cert { background: var(--success-050); color: var(--success-800); }
.tag.brand { background: var(--brand-tint); color: var(--brand); }

/* ============ DEVICE LIST VIEW ============ */
.device-list { display: flex; flex-direction: column; gap: 10px; }

.device-row {
  display: flex; align-items: center; gap: 20px;
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  text-decoration: none; color: inherit;
}
.device-row:hover { border-color: var(--brand); box-shadow: var(--shadow-card); text-decoration: none; color: inherit; }
.device-row:hover .dr-chev { color: var(--brand); transform: translateX(2px); }

.device-row .dr-thumb {
  width: 64px; height: 64px; border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.device-row .dr-thumb img { max-width: 85%; max-height: 54px; object-fit: contain; }

.device-row .dr-main { flex: 1; min-width: 0; }
.device-row .dr-title { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.device-row .dr-main h3 {
  font-family: var(--font-display); font-size: var(--type-h6-size); font-weight: 600;
  margin: 0 0 4px; line-height: var(--type-h6-lh); color: var(--heading);
}
.device-row .dr-main p {
  font-size: 13px; color: var(--text-3); margin: 0; line-height: 20px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

.device-row .dr-col {
  display: flex; flex-direction: column; gap: 3px;
  min-width: 88px; flex-shrink: 0;
}
.device-row .dr-col .dr-lab {
  font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0; color: var(--text-3);
}
.device-row .dr-col .dr-val { font-size: 13px; line-height: 16px; font-weight: 500; color: var(--text-1); white-space: nowrap; }
.device-row .dr-col .dr-dim { color: var(--text-4); font-weight: 400; }

.device-row .dr-chev {
  color: var(--text-4); flex-shrink: 0; display: flex;
}

@media (max-width: 1280px) {
  .device-row .dr-col--regions { display: none; }
}
@media (max-width: 1080px) {
  .device-row .dr-col--sensors { display: none; }
}
@media (max-width: 940px) {
  .device-row .dr-col--class { display: none; }
}

/* Device thumbnail glyph (fallback when no photo) */
.thumb-glyph {
  width: 64px; height: 64px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-tint) 0%, var(--brand-tint-2) 100%);
  color: var(--brand);
}
.cert-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--success-500); color: #fff;
  font-size: 13px; line-height: 16px; font-weight: 600; padding: 2px 8px 2px 6px; border-radius: var(--radius-full);
  display: flex; align-items: center; gap: 4px;
}

/* ============ DETAIL PAGE ============ */
/* The summary (crumbs, title, description, quick facts, actions, photo) is the shared tn-ph page
   header (aside variant); the quick facts below are its meta row. */
.fact {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; font-size: 13px; line-height: 16px; font-weight: 500; /* Label / Small */
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-full);
  color: var(--text-2);
}
.fact .lab { color: var(--text-label); font-weight: 500; }
.fact.cert { background: var(--success-050); border-color: var(--success-100); color: var(--success-800); }
a.fact { text-decoration: none; }
a.fact:hover { background: var(--brand-tint); color: var(--brand); }


/* Tabs */
.tabs-nav-wrap {
  border-bottom: 1px solid var(--border-color);
  position: sticky; top: 72px;
  background: var(--surface-page); z-index: 20;
}
/* The header is not sticky below 700px, so the tab bar pins to the viewport top. */
@media (max-width: 700px) { .tabs-nav-wrap { top: 0; } }
.tabs-nav {
  display: flex; gap: 4px;
  overflow-x: auto;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tabs-nav a, .tabs-nav button {
  background: transparent; border: 0; padding: 14px 16px;
  font: inherit; font-size: 14px; line-height: 17px; font-weight: 500; /* Label / Medium */
  color: var(--text-2); cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  text-decoration: none;
}
.tabs-nav a:hover, .tabs-nav button:hover { color: var(--text-1); text-decoration: none; }
/* Current section: navy 600 + the 2px highlight underline, as the shared page-header tabs. */
.tabs-nav a.active, .tabs-nav button.active { color: var(--tn-navy); border-bottom-color: var(--tn-highlight); font-weight: 600; }

.tab-content { padding: 28px 0 80px; }
.tab-panel[hidden] { display: none; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 1000px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }

.section { margin-bottom: 36px; }
/* In-page section headings: Poppins SemiBold, H5 21/29; their subheadings H6 16/21 (typography.md). */
.section h2 {
  font-size: var(--type-h5-size); line-height: var(--type-h5-lh); font-weight: 600; letter-spacing: 0;
  margin: 0 0 16px; color: var(--heading);
}
.section h3 { font-size: var(--type-h6-size); line-height: var(--type-h6-lh); font-weight: 600; margin: 24px 0 8px; color: var(--heading); }
.section .section-note { color: var(--text-3); font-size: 14px; line-height: 21px; margin-top: -8px; }
/* The vendor's name in the device page's Vendor block (a card title, H6). */
.vendor-block__name { font-family: var(--font-display); font-size: var(--type-h6-size); line-height: var(--type-h6-lh); font-weight: 600; color: var(--heading); }

.card-block {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.card-block.flush { padding: 0; overflow: hidden; }
.card-block .code-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--border-color);
}
.card-block .code-head .path { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border-color); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table td, .spec-table th { padding: 12px 0; font-size: 14px; color: var(--text-1); vertical-align: top; text-align: left; }
.spec-table td:first-child { color: var(--text-3); font-weight: 500; width: 40%; }
.spec-table td:last-child { font-weight: 500; }
.spec-table .yes { display: inline-flex; align-items: center; gap: 4px; color: var(--success-800); font-weight: 600; }

/* Sidebar info card */
.aside-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.aside-label { font-family: var(--font-body); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0; color: var(--text-label); margin: 0 0 14px; }
.aside-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-color); font-size: 13px; line-height: 20px; }
.aside-row:last-child { border-bottom: 0; }
.aside-row .k { color: var(--text-label); flex-shrink: 0; }
.aside-row .v { color: var(--text-1); font-weight: 500; text-align: right; overflow-wrap: anywhere; }

/* Code blocks */
.code {
  font-family: var(--font-mono); font-size: 12.5px;
  background: var(--surface-muted);
  border: 1px solid var(--border-color);
  border-radius: 8px; padding: 14px 16px;
  color: var(--text-1); overflow-x: auto;
  white-space: pre;
  line-height: 1.55;
  margin: 0;
}
.code.flush { border-radius: 0; border: 0; }
.code .c-key { color: var(--brand); }
.code .c-str { color: var(--success-700); }
.code .c-num { color: var(--warning-600); }
.code .c-com { color: var(--text-4); font-style: italic; }

[data-theme="dark"] .code .c-str { color: #5DD679; }
[data-theme="dark"] .code .c-num { color: #FFB94D; }

/* Decoder playground */
.decoder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .decoder-grid { grid-template-columns: 1fr; } }
.decoder-panel { display: flex; flex-direction: column; }
.decoder-panel .lab {
  font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0; color: var(--text-3); margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center;
}
.decoder-panel .lab .pill { background: var(--brand-tint); color: var(--brand); padding: 2px 8px; border-radius: var(--radius-full); font-size: 13px; line-height: 16px; font-weight: 500; }
.decoder-panel .lab .status-valid { color: var(--success-700); font-size: 11px; font-weight: 600; }
.decoder-panel .lab .status-error { color: var(--error-600); font-size: 11px; font-weight: 600; }
.decoder-panel textarea {
  padding: 14px 16px; min-height: 160px;
  font-family: var(--font-mono); font-size: 13px;
  border: 1px solid var(--border-color-strong); border-radius: 8px;
  background: var(--surface-card); color: var(--text-1);
  resize: vertical;
}
.decoder-panel .code { min-height: 160px; }
.decoder-controls { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.decoder-controls select {
  padding: 6px 28px 6px 10px; border: 1px solid var(--border-color-strong); border-radius: var(--radius);
  background: var(--surface-card); color: var(--text-1); font: inherit; font-size: 12px; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23536482%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27><path d=%27m6 9l6 6l6-6%27/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}
.fport-input {
  width: 76px; padding: 6px 10px; border: 1px solid var(--border-color-strong); border-radius: var(--radius);
  background: var(--surface-card); color: var(--text-1); font-family: var(--font-mono); font-size: 12px;
}

/* Region grid */
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 800px) { .region-grid { grid-template-columns: repeat(2, 1fr); } }
.region-tile {
  padding: 12px; border-radius: 8px; border: 1px solid var(--border-color);
  background: var(--surface-card); text-align: center;
}
.region-tile.on { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); }
.region-tile.on .name, .region-tile.on .freq { color: var(--brand); }
.region-tile.off { color: var(--text-4); opacity: .5; }
.region-tile .name { font-weight: 600; font-size: 13px; line-height: 16px; }
.region-tile .freq { font-size: 11px; opacity: .8; margin-top: 2px; }

/* Related devices strip */
.related-mini {
  display: flex; gap: 12px; padding: 12px;
  background: var(--surface-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  margin-bottom: 8px;
  align-items: center;
}
.related-mini:hover { border-color: var(--brand); text-decoration: none; color: inherit; }
.related-mini .rm-thumb { width: 48px; height: 48px; flex-shrink: 0; border-radius: 8px; background: #fff; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.related-mini .rm-thumb img { max-width: 85%; max-height: 85%; object-fit: contain; }
.related-mini h4 { font-size: 13px; line-height: 16px; font-weight: 600; margin: 0 0 4px; color: var(--text-1); }
.related-mini .v { font-size: 11px; color: var(--text-3); }

/* Onboarding wizard steps */
.wizard-step {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}
.wizard-step:last-child { border-bottom: 0; }
.wizard-step .num {
  flex-shrink: 0; width: 32px; height: 32px;
  border-radius: 50%; background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
}
.wizard-step .body { flex: 1; }
.wizard-step h4 { margin: 4px 0 6px; font-size: 14px; line-height: 17px; font-weight: 600; }
.wizard-step p { font-size: 13px; line-height: 20px; color: var(--text-2); margin: 0; }

.onboard-banner {
  background: linear-gradient(135deg, var(--tn-blue-600, var(--brand)) 0%, var(--tn-navy, var(--tti-700)) 100%);
  color: #fff; border: 0; border-radius: var(--radius-lg); /* banner */
  padding: 20px 22px;
  display: flex; align-items: center; gap: 20px; justify-content: space-between;
  flex-wrap: wrap;
}
.onboard-banner .ob-eyebrow { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0; opacity: .85; margin-bottom: 6px; }
.onboard-banner .ob-title { font-family: var(--font-display); font-size: var(--type-h5-size); line-height: var(--type-h5-lh); font-weight: 600; margin-bottom: 4px; }
.onboard-banner .ob-sub { font-size: 13px; line-height: 20px; opacity: .85; }
.onboard-banner .btn { background: #fff; color: var(--brand); border: 1px solid #fff; }
.onboard-banner .btn:hover { background: var(--tn-tint); }

/* Downloads */
.downloads { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.download-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; background: var(--surface-card);
  border: 1px solid var(--border-color); border-radius: var(--radius);
  text-decoration: none; color: inherit;
}
.download-row:hover { border-color: var(--brand); text-decoration: none; color: inherit; }
.download-row .ic {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.download-row .meta { flex: 1; min-width: 0; }
.download-row .meta strong { display: block; font-size: 13px; line-height: 16px; color: var(--text-1); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-row .meta span { font-size: 11px; line-height: 16px; color: var(--text-3); }

/* ============ VENDORS PAGE ============ */
.vendors-layout { padding: 32px 0 80px; }
.vendor-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 1100px) { .vendor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .vendor-grid { grid-template-columns: 1fr; } }

.vendor-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  text-decoration: none; color: inherit;
}
.vendor-card:hover { border-color: var(--brand); box-shadow: var(--shadow-card); transform: translateY(-1px); text-decoration: none; color: inherit; }
.vendor-card:hover .vc-foot { color: var(--brand); }

.vc-head { display: flex; align-items: center; gap: 14px; }
.vc-logo {
  width: 52px; height: 52px; border-radius: var(--radius); flex-shrink: 0;
  background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  overflow: hidden;
}
.vc-logo img { max-width: 86%; max-height: 86%; object-fit: contain; }
.vc-logo.has-img { background: #fff; border: 1px solid var(--border-color); }
.vc-id { min-width: 0; }
/* Vendor name: a card title, Poppins SemiBold H6 16/21 (an h2: the cards sit directly under the h1). */
.vc-id h2 {
  font-family: var(--font-display); font-size: var(--type-h6-size); line-height: var(--type-h6-lh); font-weight: 600;
  letter-spacing: 0; margin: 0 0 4px; color: var(--heading);
  display: flex; align-items: center; gap: 6px;
  overflow-wrap: anywhere;
}
.vc-site { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vc-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  margin-top: auto;
}
.vc-stat { display: flex; flex-direction: column; gap: 2px; }
.vc-stat .n { font-size: 16px; line-height: 21px; font-weight: 600; color: var(--heading); font-variant-numeric: tabular-nums; }
.vc-stat .l { font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: 0; color: var(--text-3); }

.vc-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; line-height: 16px; font-weight: 600; color: var(--text-3);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.vendor-cta {
  margin-top: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--surface-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); /* banner */
  padding: 24px 28px;
  flex-wrap: wrap;
}
.vendor-cta h3 { margin: 0 0 4px; font-size: var(--type-h5-size); line-height: var(--type-h5-lh); font-weight: 600; color: var(--heading); }
.vendor-cta p { margin: 0; font-size: 14px; line-height: 21px; color: var(--text-2); max-width: 520px; }

/* ============ MODAL / EMULATOR ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12, 21, 37, .55);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  width: 100%; max-width: 620px;
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 48px);
}
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px 0;
}
.modal-head h3 { margin: 0 0 4px; font-size: var(--type-h5-size); line-height: var(--type-h5-lh); font-weight: 600; color: var(--heading); }
.modal-head p { margin: 0; font-size: 13px; color: var(--text-3); line-height: 1.5; max-width: 460px; }
.modal-x {
  background: transparent; border: 0; cursor: pointer;
  color: var(--text-3); padding: 6px; border-radius: var(--radius);
  display: inline-flex; flex-shrink: 0;
  font-size: 16px; line-height: 1;
}
.modal-x:hover { background: var(--surface-muted); color: var(--text-1); }

.modal-body { padding: 20px 24px; overflow-y: auto; }
.modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}
.em-note { font-size: 11.5px; color: var(--text-4); max-width: 280px; line-height: 1.4; }

.em-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1; }
.em-field label { font-size: 12px; line-height: 1.2; font-weight: 600; color: var(--text-1); }
.em-field input, .em-field select {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border-color-strong); border-radius: 8px;
  background: var(--surface-card); color: var(--text-1);
  font: inherit; font-size: 13.5px; outline: none;
}
.em-field input { font-family: var(--font-mono); font-size: 12.5px; }
.em-field input:focus, .em-field select:focus { border-color: var(--brand); box-shadow: var(--focus-ring); }
.em-field input:disabled, .em-field select:disabled { opacity: .55; cursor: not-allowed; }
.em-hint { font-size: 11px; color: var(--text-4); }
.em-row { display: flex; gap: 14px; }
@media (max-width: 640px) { .em-row { flex-direction: column; gap: 0; } }

.em-script-wrap { margin-top: 18px; border-top: 1px solid var(--border-color); padding-top: 16px; }
.em-script-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.em-script-head > span { font-size: 13px; font-weight: 600; color: var(--text-1); }
.em-script-btns { display: flex; gap: 6px; }
.em-script-note { font-size: 12.5px; color: var(--text-2); line-height: 1.5; margin: 8px 0 10px; }
.em-script { max-height: 260px; overflow: auto; font-size: 12px; margin: 0 0 12px; text-align: left; white-space: pre; }
.em-script-steps { font-size: 12.5px; color: var(--text-2); line-height: 1.5; margin: 0; padding-left: 18px; }
.em-script-steps code { font-size: 11.5px; }

/* ============ SUBMIT PAGE ============ */
.submit-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  padding: 32px 0 80px;
  align-items: start;
  max-width: 980px;
}
@media (max-width: 800px) { .submit-layout { grid-template-columns: 1fr; } }
.submit-steps {
  position: sticky; top: 88px;
  display: flex; flex-direction: column; gap: 2px;
}
@media (max-width: 800px) { .submit-steps { position: static; flex-direction: row; flex-wrap: wrap; } }
.sstep {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: 0; cursor: pointer;
  font: inherit; font-size: 13.5px; line-height: 1.2; font-weight: 500;
  color: var(--text-3); text-align: left;
  padding: 9px 12px; border-radius: var(--radius);
}
.sstep:hover:not(:disabled) { background: var(--surface-muted); color: var(--text-1); }
.sstep:disabled { cursor: default; opacity: .55; }
.sstep.active { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.sstep.done { color: var(--text-2); }
.sstep-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface-emph); color: var(--text-3);
  font-size: 11px; font-weight: 600;
}
.sstep.active .sstep-num { background: var(--brand); color: #fff; }
.sstep.done .sstep-num { background: var(--success-100); color: var(--success-700); }

.submit-panel {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); /* large panel */
  padding: 28px;
  min-width: 0;
}
.submit-steps { min-width: 0; }
.submit-panel h2 { margin: 0 0 24px; font-size: var(--type-h5-size); line-height: var(--type-h5-lh); font-weight: 600; letter-spacing: 0; color: var(--heading); }

.s-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
@media (max-width: 640px) { .s-grid { grid-template-columns: 1fr; } .s-field.span2 { grid-column: span 1; } }
.s-field { display: flex; flex-direction: column; gap: 6px; }
.s-field.span2 { grid-column: span 2; }
@media (max-width: 640px) { .s-field.span2 { grid-column: auto; } }
.s-field label { font-size: 12.5px; line-height: 1.2; font-weight: 600; color: var(--text-1); }
.s-field input, .s-field select, .s-field textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border-color-strong); border-radius: 8px;
  background: var(--surface-card); color: var(--text-1);
  font: inherit; font-size: 13.5px; outline: none;
  resize: vertical;
}
.s-field input:focus, .s-field select:focus, .s-field textarea:focus {
  border-color: var(--brand); box-shadow: var(--focus-ring);
}
.s-hint { font-size: 11px; color: var(--text-4); }

.s-choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
@media (max-width: 640px) { .s-choice-row { grid-template-columns: 1fr; } }
.s-choice {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  background: var(--surface-card); cursor: pointer; font: inherit;
  border: 1px solid var(--border-color-strong); border-radius: var(--radius);
  padding: 14px 16px;
}
.s-choice strong { font-size: 14px; color: var(--text-1); }
.s-choice span { font-size: 12px; color: var(--text-3); }
.s-choice:hover { border-color: var(--text-3); }
.s-choice.active { border-color: var(--brand); background: var(--brand-tint); }
.s-choice.active strong { color: var(--brand); }

.s-callout {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px; color: var(--text-2); line-height: 1.5;
  margin-top: 16px;
}
.s-callout svg { flex-shrink: 0; margin-top: 2px; color: var(--brand); }

.submit-nav {
  display: flex; justify-content: space-between;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.submit-success {
  max-width: 620px; margin: 60px auto 100px; text-align: center;
}
.ss-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--success-100); color: var(--success-700);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
/* The success state's heading (an h2: the page's h1 is the page header title). H3 30/36. */
.submit-success h2 {
  font-size: var(--type-h3-size); line-height: var(--type-h3-lh); letter-spacing: var(--type-h3-track);
  margin: 0 0 16px; color: var(--heading);
}
.submit-success > p { color: var(--text-2); font-size: 15px; line-height: 1.5; margin: 0 0 24px; }
.submit-success .code { text-align: left; max-height: 360px; overflow: auto; margin-bottom: 24px; }

/* Empty state */
.empty {
  text-align: center; padding: 60px 20px;
  color: var(--text-3);
}
.empty h2, .empty h3 { color: var(--heading); margin: 12px 0 8px; font-size: var(--type-h5-size); line-height: var(--type-h5-lh); font-weight: 600; letter-spacing: 0; }
.empty[hidden] { display: none; }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--surface-subtle);
  margin-top: auto;
}
.site-footer .inner {
  max-width: var(--ttn-grid); margin: 0 auto; padding: 32px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.site-footer .f-brand { display: flex; align-items: center; gap: 10px; }
.site-footer .f-brand img { height: 22px; }
.site-footer .f-note { font-size: 12.5px; color: var(--text-3); max-width: 480px; line-height: 1.5; }
.site-footer .f-links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .f-links a { font-size: 13px; line-height: 16px; color: var(--link); }
.site-footer .f-links a:hover { color: var(--link-hover); }

/* ============ MISC ============ */
.banner-spacer { height: 8px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden;
}

/* ============ WIZARD: CODEC TESTER ============ */
.codec-editor {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre;
  overflow-x: auto;
  tab-size: 2;
  resize: vertical;
}
.ex-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin: 4px 0 10px;
}
.ex-head label { font-size: 12.5px; font-weight: 600; color: var(--text-1); }
.ex-head-actions { display: flex; align-items: center; gap: 8px; }
.ex-status { font-size: 12px; font-weight: 600; color: var(--text-3); }
.ex-status.pass { color: var(--success-700); }
.ex-status.fail { color: var(--error-600); }
.ex-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius); }
.ex-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.ex-table th {
  text-align: left; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0;
  color: var(--text-3);
  padding: 8px 10px; border-bottom: 1px solid var(--border-color);
  background: var(--surface-muted);
}
.ex-table td { padding: 6px 6px; border-bottom: 1px solid var(--border-color); vertical-align: top; }
.ex-table tr:last-child td { border-bottom: 0; }
.ex-table input, .ex-table textarea {
  width: 100%; border: 1px solid var(--border-color); border-radius: var(--radius);
  background: var(--surface-card); color: var(--text-1);
  font-size: 12.5px; padding: 6px 8px;
}
.ex-table input:focus, .ex-table textarea:focus { outline: none; border-color: var(--brand); }
.ex-table .mono, .ex-table textarea { font-family: var(--font-mono); font-size: 12px; }
.ex-table textarea { resize: vertical; min-height: 32px; }
.ex-actions { white-space: nowrap; }
.ex-actions { display: flex; align-items: center; gap: 6px; }
.ex-result { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0; }
.ex-result.pass { color: var(--success-700); }
.ex-result.fail { color: var(--error-600); cursor: help; }
.ex-remove {
  border: 0; background: none; color: var(--text-4); cursor: pointer;
  font-size: 16px; line-height: 1; padding: 4px;
}
.ex-remove:hover { color: var(--error-600); }

/* ============ WIZARD: PHOTO CHECK ============ */
.ck-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ck {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 13px; padding: 8px 12px;
  border: 1px solid var(--border-color); border-radius: 8px;
}
.ck .ck-ico { font-weight: 600; width: 14px; flex-shrink: 0; }
.ck.pass .ck-ico { color: var(--success-700); }
.ck.warn .ck-ico { color: var(--warning-600); }
.ck.fail .ck-ico { color: var(--error-600); }
.ck .ck-label { font-weight: 600; color: var(--text-1); white-space: nowrap; }
.ck .ck-detail { color: var(--text-3); }
.photo-previews { display: flex; gap: 12px; margin-top: 14px; }
.photo-previews .pp {
  position: relative; width: 132px; height: 132px; border-radius: var(--radius);
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.photo-previews .pp img { max-width: 86%; max-height: 86%; object-fit: contain; }
.photo-previews .pp span {
  position: absolute; bottom: 4px; right: 8px;
  font-size: 11px; line-height: 16px; color: var(--text-4);
}
.pp-light { background: #fff; }
.pp-dark { background: var(--grey-900); }
.pp-dark span { color: var(--grey-500); }

/* ============ WIZARD: VALIDATION ============ */
.val-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.val-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 12px; border-radius: 8px; font-size: 13px;
  border: 1px solid var(--border-color);
}
.val-row code { font-family: var(--font-mono); font-size: 12px; color: var(--text-1); white-space: nowrap; }
.val-row .val-ico { font-weight: 600; width: 14px; flex-shrink: 0; }
.val-row.pass .val-ico { color: var(--success-700); }
.val-row.fail { border-color: var(--error-100); background: var(--error-025); }
.val-row.fail .val-ico { color: var(--error-600); }
.val-row .val-msg { color: var(--text-3); line-height: 1.5; }
.val-row.fail .val-msg { color: var(--error-700); }
[data-theme="dark"] .val-row.fail { background: rgba(255, 59, 48, .08); border-color: rgba(255, 59, 48, .3); }
[data-theme="dark"] .val-row.fail .val-msg { color: var(--error-500); }

/* ============ WIZARD: SUBMISSION CHECKLIST ============ */
.cl-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; text-align: left; }
.cl-item {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--border-color); border-radius: var(--radius);
  padding: 12px 14px; background: var(--surface-card);
}
.cl-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-tint); color: var(--brand);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.cl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cl-path { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-1); word-break: break-all; }
.cl-note { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.cl-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.cl-pr { margin-top: 8px; max-height: 140px; overflow: auto; }
@media (max-width: 640px) {
  .cl-item { flex-direction: column; }
  .cl-actions { justify-content: flex-start; }
}

/* ============ WIZARD: ONE-CLICK BACKEND SUBMIT ============ */
[data-backend-panel] { text-align: left; margin: 0 0 24px; }
.be-consent { display: flex; flex-direction: column; gap: 14px; }
.be-lede { font-size: 14px; color: var(--text-2); line-height: 1.5; margin: 0; }
.be-cla { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.be-cla input { margin-top: 3px; flex-shrink: 0; }
.be-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.be-error { color: var(--error-700); font-size: 13px; margin: 0; }
.be-progress, .be-done, .be-error-state { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 18px 0; }
.be-done-title { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; color: var(--heading); margin: 0; }
.be-done-title .ico { color: var(--success-700); }
.be-spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--border-color); border-top-color: var(--brand);
  animation: be-spin 0.8s linear infinite;
}
@keyframes be-spin { to { transform: rotate(360deg); } }

/* ============ WIZARD: COPY-PASTE CLI SCRIPT ============ */
[data-cli-panel] { text-align: left; margin: 0 0 24px; }
.cli-lede { font-size: 14px; color: var(--text-2); line-height: 1.5; margin: 0 0 14px; }
.cli-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
@media (max-width: 640px) { .cli-ways { grid-template-columns: 1fr; } }
.cli-way { border: 1px solid var(--border-color); border-radius: var(--radius); padding: 14px; background: var(--surface-card); }
.cli-way h4 { margin: 0 0 8px; font-family: var(--font-body); font-size: 14px; line-height: 17px; font-weight: 600; color: var(--text-1); } /* a label, Inter */
.cli-way p { font-size: 12.5px; color: var(--text-2); line-height: 1.5; margin: 0 0 12px; }
.cli-way .btn { margin-right: 6px; }
.cli-script { max-height: 320px; overflow: auto; font-size: 12px; margin: 0 0 12px; text-align: left; white-space: pre; }

/* ============ UPDATE FLOW ============ */
.upd-pick {
  max-width: 560px; margin: 0 auto 60px;
  border: 1px solid var(--border-color); border-radius: var(--radius-lg); /* large panel */
  padding: 28px; background: var(--surface-card);
}
.upd-pick h2 { margin: 0 0 16px; font-size: var(--type-h5-size); line-height: var(--type-h5-lh); letter-spacing: 0; color: var(--heading); }
.upd-load-error { margin-top: 12px; font-size: 13px; color: var(--error-600); line-height: 1.5; }
.upd-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px; font-size: 13px; color: var(--text-3);
}
.upd-meta code { font-family: var(--font-mono); font-size: 12px; color: var(--text-1); }
.upd-badge {
  font-size: 13px; line-height: 16px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-full);
  background: var(--brand-tint); color: var(--brand);
}
.fw-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.fw-card { border: 1px solid var(--border-color); border-radius: var(--radius); padding: 12px 14px; }
.fw-card .fw-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fw-card .fw-head strong { font-size: 13.5px; color: var(--text-1); }
.fw-card .fw-head .s-hint { margin-left: auto; }
.plan-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-color); border-radius: var(--radius-full);
  font-size: 13px; line-height: 16px; font-weight: 500; color: var(--text-2);
  padding: 4px 6px 4px 10px; background: var(--surface-muted);
}
.plan-chip code { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-4); }
.plan-chip button {
  border: 0; background: none; cursor: pointer; color: var(--text-4);
  font-size: 13px; line-height: 1; padding: 2px;
}
.plan-chip button:hover { color: var(--error-600); }
.plan-add { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.plan-add select { max-width: 200px; }
.prof-card { border: 1px solid var(--border-color); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.prof-card .prof-head { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-1); margin-bottom: 12px; }

/* ============ DIFF VIEW ============ */
.diff-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.diff-file { border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; }
.diff-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: var(--surface-muted);
  border-bottom: 1px solid var(--border-color);
}
.diff-head code { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-1); }
.diff-stat { font-size: 11.5px; font-weight: 600; margin-left: auto; white-space: nowrap; }
.diff-stat .plus { color: var(--success-700); }
.diff-stat .minus { color: var(--error-600); margin-left: 6px; }
.diff-note { font-size: 11px; color: var(--warning-600); }
.diff-body {
  font-family: var(--font-mono); font-size: 12px; line-height: 20px; /* Mono / Small 12/20 */
  overflow-x: auto; max-height: 380px; overflow-y: auto;
  background: var(--surface-card); padding: 6px 0;
}
.dline { padding: 0 12px; white-space: pre; }
.dline.add { background: var(--success-050); color: var(--success-900); }
.dline.del { background: var(--error-050); color: var(--error-700); }
.dline.skip { color: var(--text-4); font-style: italic; user-select: none; }
[data-theme="dark"] .dline.add { background: rgba(39, 205, 65, .12); color: #7BE38B; }
[data-theme="dark"] .dline.del { background: rgba(255, 59, 48, .12); color: #FF8A80; }

/* ============ TAG LANDING PAGES ============ */
.tag-prose { max-width: 760px; padding: 28px 0 4px; color: var(--text-2); font-size: 16px; line-height: 1.7; }
.tag-prose > :first-child { margin-top: 0; }
.tag-prose p { margin: 0 0 16px; }
.tag-prose h2 { font-size: var(--type-h5-size); line-height: var(--type-h5-lh); font-weight: 600; color: var(--heading); margin: 32px 0 12px; letter-spacing: 0; }
.tag-prose h3 { font-size: var(--type-h6-size); line-height: var(--type-h6-lh); font-weight: 600; color: var(--heading); margin: 24px 0 8px; }
.tag-prose ul, .tag-prose ol { margin: 0 0 16px; padding-left: 22px; }
.tag-prose li { margin: 0 0 6px; }
.tag-prose a { color: var(--link); text-decoration: none; }
.tag-prose a:hover { color: var(--link-hover); text-decoration: underline; }

.tag-extra { padding: 8px 0 80px; }
.tag-hub { padding: 32px 0 80px; }
.tag-links { gap: 8px; margin-top: 16px; }
.tag-link { padding: 6px 14px; text-decoration: none; }
.tag-link__n { color: var(--text-3); }
.tag-section { border-top: 1px solid var(--border-color); padding-top: 28px; }

.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin-top: 14px; }
.faq-item { border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--surface-card); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 14px 18px;
  font-size: 15px; line-height: 21px; font-weight: 600; color: var(--text-1);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--text-2); font-size: 14.5px; line-height: 1.65; }

/* ---------- Repository note above the global footer ---------- */
.dr-repo-note { border-top: 1px solid var(--border-color); }
.dr-repo-note .inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.dr-repo-note .f-note { max-width: 640px; margin: 0; }

/* ============ MOTION (brand guidelines §12, design brief 2026-10 A4) ============
   One shared rule: every interactive element transitions its state changes, using the motion
   tokens (tokens.css) and only color / background-color / border-color / box-shadow / transform.
   Never `transition: all`; no bounce/spring; hover lift stays ≤ 1px, never a scale above 1.04.
   Tabs use --dur-base (set on .tabs-nav above); everything else is a hover/press/focus → --dur-fast. */
a, button, summary, input, select, textarea,
.btn, .search-input, .sort-select, .filter-pill, .active-chip, .view-toggle button,
.device-card, .device-row, .device-row .dr-chev, .fact, .tabs-nav a, .tabs-nav button,
.related-mini, .download-row, .vendor-card, .vc-foot, .modal-x, .sstep, .s-choice,
.ex-remove, .plan-chip button, .faq-item, .faq-item summary, .cl-item {
  transition-property: color, background-color, border-color, box-shadow, transform;
  transition-duration: var(--dur-fast);
  transition-timing-function: var(--ease-standard);
}
.tabs-nav a, .tabs-nav button { transition-duration: var(--dur-base); }

@media (prefers-reduced-motion: reduce) {
  /* Remove movement; colour changes stay but become instant. */
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .device-card:hover, .vendor-card:hover, .device-row:hover .dr-chev { transform: none; }
}


/*# sourceMappingURL=f6fcadb5dbba6b93.style.css.map*/