:root {
  color-scheme: light;
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-soft: #f4f8fd;
  --surface-alt: #e7eef7;
  --ink: #0f172a;
  --muted: #5c6778;
  --line: #d8e2ee;
  --primary: #10233f;
  --primary-2: #16375f;
  --accent: #0f766e;
  --accent-strong: #0a5f57;
  --highlight: #d97706;
  --success: #15803d;
  --warning: #a16207;
  --danger: #dc2626;
  --info: #2563eb;
  --shadow: 0 18px 42px rgba(16, 35, 63, .08);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Noto Sans SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 58px;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-title {
  margin: 0;
  max-width: 16ch;
  font-size: 36px;
  line-height: 1.15;
}

.section-title-light {
  color: #fff;
}

.section-copy {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
}

.section-copy-light {
  color: rgba(255, 255, 255, .82);
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kicker-light {
  color: #8bd6cf;
}

.lead {
  margin: 16px 0 0;
  max-width: 60ch;
  font-size: 17px;
  color: var(--muted);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(216, 226, 238, .9);
  background: rgba(238, 243, 248, .92);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
}

.brand-text {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.brand-text strong {
  font-size: 16px;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
}

.top-search {
  flex: 1 1 380px;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
  outline: none;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle:focus-visible {
  outline: 3px solid rgba(15, 118, 110, .24);
  outline-offset: 2px;
}

.nav-links a.nav-cta,
.nav-links a.nav-cta.is-active {
  min-height: 40px;
  padding: 0 14px;
  border-bottom-color: var(--accent);
  color: #fff;
}

.hero {
  padding: 44px 0 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 24px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
  padding: 12px 0 8px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid rgba(16, 35, 63, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-searchbar {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.hero-searchbar input,
.top-search input,
.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}

.field-group textarea {
  min-height: 128px;
  resize: vertical;
}

.field-group .code-textarea {
  min-height: 240px;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  tab-size: 2;
}

.hero-searchbar input:focus,
.top-search input:focus,
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: 2px solid rgba(37, 99, 235, .18);
  outline-offset: 1px;
  border-color: rgba(37, 99, 235, .45);
}

.chip-row,
.prefix-row,
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-row {
  margin-top: 18px;
}

.chip,
.prefix-pill,
.chip-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9);
}

.chip:hover,
.chip:focus-visible,
.prefix-pill:hover,
.prefix-pill:focus-visible,
.chip-block:hover,
.chip-block:focus-visible {
  border-color: rgba(15, 118, 110, .3);
  color: var(--accent-strong);
  outline: none;
}

.chip-block {
  justify-content: space-between;
  width: min(100%, 240px);
  border-radius: 14px;
}

.manufacturer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.manufacturer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.manufacturer-card:hover,
.manufacturer-card:focus-visible {
  border-color: rgba(15, 118, 110, .34);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
  outline: none;
  transform: translateY(-1px);
}

.manufacturer-card-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.manufacturer-logo {
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
  text-align: center;
}

.manufacturer-logo--blue {
  background: #2563eb;
}

.manufacturer-logo--teal {
  background: #0f766e;
}

.manufacturer-logo--navy {
  background: #1e3a8a;
}

.manufacturer-logo--orange {
  background: #c2410c;
}

.manufacturer-logo--red {
  background: #be123c;
}

.manufacturer-logo--green {
  background: #15803d;
}

.manufacturer-logo--image {
  border: 1px solid var(--line);
  background: #fff;
}

.manufacturer-logo-image {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.manufacturer-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.manufacturer-card-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.manufacturer-card-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chip-block small,
.prefix-pill small {
  color: var(--muted);
  font-size: 12px;
}

.prefix-row {
  margin-top: 16px;
}

.prefix-pill {
  min-width: 44px;
  border-radius: 999px;
  padding: 0 14px;
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #dfe7f1;
  box-shadow: var(--shadow);
}

.panel-grid,
.stats-grid,
.admin-stats {
  display: grid;
  gap: 14px;
}

.panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-card,
.stat-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.panel-card span,
.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.panel-card strong,
.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.stat-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.band {
  padding: 64px 0;
}

.band-soft {
  background: var(--surface);
  border-top: 1px solid rgba(216, 226, 238, .55);
  border-bottom: 1px solid rgba(216, 226, 238, .55);
}

.band-deep {
  background: linear-gradient(135deg, #0f172a 0%, #122a49 100%);
  color: #fff;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-hero {
  background: linear-gradient(135deg, #10233f 0%, #17365f 100%);
  color: #fff;
}

.page-hero-inner {
  padding: 66px 0 58px;
}

.page-hero .lead {
  color: rgba(255, 255, 255, .82);
}

.filter-bar,
.admin-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.filter-actions,
.button-row,
.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.field-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.hero-searchbar input,
.top-search input {
  flex: 1 1 auto;
}

.hero-searchbar .btn,
.top-search .btn {
  flex: 0 0 auto;
}

.btn,
.nav-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary,
.nav-cta {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(37, 99, 235, .28);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.btn-wide {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: var(--accent);
  font-weight: 800;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-strong);
  outline: none;
}

.result-table,
.admin-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.result-table th,
.result-table td,
.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.result-table th,
.admin-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.result-table tbody tr:hover,
.admin-table tbody tr:hover {
  background: rgba(15, 118, 110, .03);
}

.result-link {
  display: inline-block;
  font-weight: 800;
  color: var(--primary);
}

.result-link:hover,
.result-link:focus-visible {
  color: var(--accent);
  outline: none;
}

.result-table small,
.admin-table small,
.compact-list small {
  color: var(--muted);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.empty-state {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.empty-state h2 {
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted);
  margin-bottom: 18px;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.page-link {
  min-width: 42px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
}

.page-link:hover,
.page-link:focus-visible,
.page-link.is-active {
  border-color: rgba(15, 118, 110, .28);
  color: var(--accent);
  outline: none;
}

.detail-hero {
  padding: 26px 0 58px;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.detail-breadcrumb a:hover,
.detail-breadcrumb a:focus-visible {
  color: var(--accent);
  outline: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.detail-copy {
  min-width: 0;
}

.detail-copy h1 {
  font-size: 56px;
  overflow-wrap: anywhere;
}

.detail-maker {
  margin: 10px 0 0;
  color: var(--primary-2);
  font-size: 19px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.detail-intro {
  max-width: 66ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.detail-quick-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-quick-specs dl {
  min-width: 0;
  margin: 0;
  padding: 15px 16px 15px 0;
}

.detail-quick-specs dl + dl {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.detail-quick-specs dt,
.document-meta dt,
.specification-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.detail-quick-specs dd {
  margin: 4px 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.detail-read-link {
  min-height: 46px;
  padding: 0 6px;
}

.detail-family-links {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.detail-family-links a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.detail-family-links a:hover,
.detail-family-links a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
  outline: none;
}

.detail-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-media figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, .9);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.availability-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .16);
}

.datasheet-reader-band {
  padding: 56px 0 68px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  scroll-margin-top: 96px;
}

.datasheet-reader-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.datasheet-reader-heading .section-title {
  max-width: none;
}

.reader-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  flex: 0 1 460px;
  border-bottom: 1px solid var(--line);
}

.reader-tab {
  position: relative;
  min-height: 64px;
  padding: 10px 18px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
}

.reader-tab span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.reader-tab:hover {
  color: var(--ink);
  background: rgba(15, 118, 110, .04);
}

.reader-tab:focus-visible {
  z-index: 1;
  outline: 3px solid rgba(15, 118, 110, .22);
  outline-offset: 2px;
}

.reader-tab[aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.reader-tab[aria-selected="true"] span {
  color: var(--accent);
}

.reader-panel {
  min-width: 0;
}

.reader-panel[hidden] {
  display: none;
}

.reader-panel .datasheet-content {
  max-width: 980px;
  min-height: 360px;
  padding-top: 12px;
}

.reader-empty {
  min-height: 360px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.reader-empty h3,
.reader-empty p {
  margin: 0;
}

.reader-empty p {
  color: var(--muted);
}

.pdf-preview-band {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  scroll-margin-top: 96px;
}

.pdf-preview-head {
  margin-bottom: 22px;
}

.pdf-preview-head .section-title {
  max-width: none;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: start;
}

.pdf-viewer {
  width: 100%;
  min-width: 0;
  height: min(78vh, 840px);
  min-height: 640px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #3f4650;
  box-shadow: var(--shadow);
}

.pdf-viewer iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #fff;
}

.document-sidebar {
  position: sticky;
  top: 104px;
  min-width: 0;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.document-available {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
}

.document-sidebar h3,
.specification-panel h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.document-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.document-actions {
  margin-top: 20px;
}

.source-links {
  display: grid;
  gap: 10px;
}

.document-meta {
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}

.document-meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.document-meta dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.product-info-head .section-title {
  max-width: 25ch;
}

.product-info-layout {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  gap: 56px;
  align-items: start;
}

.specification-panel,
.description-panel {
  min-width: 0;
}

.specification-list {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}

.specification-list div {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.specification-list dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.reference-block {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.reference-block p {
  margin: 0;
  overflow-wrap: anywhere;
}

.description-panel {
  padding-left: 40px;
  border-left: 1px solid var(--line);
}

.description-section + .description-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.description-section p:last-child {
  max-width: 74ch;
  margin-bottom: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.8;
}

.description-section .description-summary {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
}

.source-title-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 18px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.source-title-row strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.technical-content-band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.technical-content-head {
  max-width: 820px;
}

.technical-content-head .section-title {
  max-width: 22ch;
}

.technical-content-shell {
  min-width: 0;
}

.datasheet-content {
  max-width: 900px;
}

.datasheet-content h2 {
  margin-top: 42px;
}

.datasheet-content h3 {
  margin-top: 30px;
}

.datasheet-content p,
.datasheet-content li {
  overflow-wrap: anywhere;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.related-card strong {
  font-size: 16px;
}

.related-card span,
.related-card small {
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 20px;
  align-items: start;
}

.contact-box {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.contact-box div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.contact-box span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-box strong {
  font-size: 18px;
}

.card,
.form-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.form-card {
  padding: 24px;
}

.form {
  display: grid;
  gap: 14px;
}

.field-group small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.notice {
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: var(--radius);
  background: #eff6ff;
}

.notice p {
  margin: 6px 0 0;
}

.notice-success {
  border-color: rgba(21, 128, 61, .18);
  background: #f0fdf4;
}

.notice-error {
  border-color: rgba(220, 38, 38, .18);
  background: #fef2f2;
}

.download-security-band {
  min-height: 420px;
  padding: 56px 0 72px;
}

.download-security-card {
  width: min(100%, 560px);
  margin: 0 auto;
}

.download-security-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.download-security-form {
  margin-top: 24px;
}

.download-captcha-question {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
}

.download-security-card .field-group input {
  max-width: 220px;
}

.download-turnstile {
  min-height: 65px;
  overflow: hidden;
}

.download-security-meta {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  padding: 28px 0 44px;
  border-top: 1px solid rgba(216, 226, 238, .9);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.footer-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.legal-hero { padding: 48px 0; }
.legal-heading { max-width: 920px; }
.legal-heading h1 { margin: 8px 0 12px; font-size: 48px; }
.legal-heading p:last-child { margin: 0; color: var(--muted); }
.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 820px);
  justify-content: center;
  align-items: start;
  gap: 48px;
}
.legal-nav { position: sticky; top: 104px; display: grid; border-left: 2px solid var(--line); }
.legal-nav a { padding: 8px 14px; color: var(--muted); font-weight: 600; }
.legal-nav a:hover, .legal-nav a:focus-visible { color: var(--primary); }
.legal-content section {
  scroll-margin-top: 110px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.legal-content section:last-child { margin-bottom: 0; border-bottom: 0; }
.legal-content h2 { margin: 0 0 12px; font-size: 25px; }
.legal-content p, .legal-content li { line-height: 1.75; }
.legal-content ul { padding-left: 22px; }
.legal-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.legal-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.legal-table th, .legal-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal-table th { background: var(--surface-soft); }

.cookie-consent {
  position: fixed;
  z-index: 120;
  right: 20px;
  bottom: 20px;
  left: 20px;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid #bed0e0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(15, 23, 42, .22);
}
.cookie-consent strong { display: block; margin-bottom: 4px; color: var(--ink); }
.cookie-consent p { max-width: 760px; margin: 0 0 5px; color: var(--muted); line-height: 1.55; }
.cookie-consent a { font-weight: 700; }
.cookie-consent-actions, .cookie-preference-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-consent-actions form, .cookie-preference-actions form { margin: 0; }
.legal-consent { min-height: 0; }
.legal-consent a { text-decoration: underline; text-underline-offset: 2px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}

.command-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed rgba(16, 35, 63, .2);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.command-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.command-box code {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  background: #10233f;
  color: #fff;
  overflow-x: auto;
}

.command-box p {
  margin: 10px 0 0;
  color: var(--muted);
}

.checkbox-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
  background: #fff;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.image-preview {
  width: min(360px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.image-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.admin-shell {
  min-height: 100vh;
  background: #eef3f8;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px;
  background: var(--primary);
  color: #fff;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.admin-brand span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .12);
  font-weight: 800;
}

.admin-brand small,
.admin-user span {
  color: rgba(255, 255, 255, .66);
}

.admin-brand strong {
  display: block;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .78);
  font-weight: 700;
}

.admin-nav a:hover,
.admin-nav a:focus-visible,
.admin-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  outline: none;
}

.admin-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 14px;
}

.admin-user {
  display: grid;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(238, 243, 248, .92);
  backdrop-filter: blur(14px);
}

.admin-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.admin-content {
  display: grid;
  gap: 18px;
  padding: 24px 28px 40px;
}

.admin-card,
.table-wrap,
.results-card,
main {
  min-width: 0;
}

.table-wrap {
  width: 100%;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

code,
pre,
.command-box {
  overflow-wrap: anywhere;
}

.admin-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-card-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 18px;
  align-items: start;
}

.crawl-admin-grid {
  grid-template-columns: minmax(0, 1fr);
}

.crawl-admin-grid > .admin-card > .admin-card-head {
  align-items: stretch;
  flex-direction: column;
}

.crawl-admin-grid .admin-filter.inline-filter {
  width: 100%;
}

.admin-stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-stats-compact {
  margin-bottom: 18px;
}

.compact-list {
  display: grid;
  gap: 8px;
}

.compact-list-space {
  margin-top: 12px;
}

.compact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.compact-list a:hover,
.compact-list a:focus-visible {
  border-color: rgba(15, 118, 110, .28);
  outline: none;
}

.admin-filter.inline-filter {
  grid-template-columns: minmax(180px, 1fr) 180px 170px auto;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.incremental-panel {
  display: grid;
  gap: 20px;
}

.incremental-panel .admin-card-head {
  margin-bottom: 0;
}

.title-with-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.section-help,
.subsection-head p,
.field-group small,
.switch-field small,
.check-field small {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.incremental-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  overflow: hidden;
}

.status-item {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 88px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.status-item:last-child {
  border-right: 0;
}

.status-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-item strong {
  overflow-wrap: anywhere;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.incremental-settings {
  display: grid;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.settings-toggle-row,
.subsection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.switch-field,
.check-field {
  display: flex;
  align-items: start;
  gap: 12px;
  cursor: pointer;
}

.switch-field input,
.check-field input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.switch-field span,
.check-field span {
  display: grid;
  gap: 2px;
}

.switch-field small,
.check-field small {
  margin: 0;
}

.incremental-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-group-wide {
  grid-column: 1 / -1;
}

.incremental-form-grid textarea {
  min-height: 104px;
  resize: vertical;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 13px;
}

.check-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-field {
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.check-field:hover {
  border-color: rgba(15, 118, 110, .3);
}

.batch-history {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.subsection-head {
  align-items: end;
  margin-bottom: 12px;
}

.subsection-head h3 {
  margin: 0;
  font-size: 17px;
}

.settings-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.settings-section .subsection-head {
  align-items: start;
  margin-bottom: 18px;
}

.smtp-clear-field {
  margin-top: 16px;
}

.batch-history .admin-table {
  min-width: 760px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge-success {
  color: var(--success);
  background: #dcfce7;
}

.badge-warm {
  color: var(--warning);
  background: #fef3c7;
}

.badge-neutral {
  color: #334155;
  background: #e2e8f0;
}

.badge-info {
  color: var(--info);
  background: #dbeafe;
}

.badge-danger {
  color: var(--danger);
  background: #fee2e2;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: radial-gradient(circle at top, rgba(15, 118, 110, .08), transparent 40%), var(--bg);
}

.login-panel {
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.login-brand strong {
  display: block;
}

.login-brand small {
  color: var(--muted);
  font-size: 12px;
}

.login-panel h1 {
  margin-bottom: 8px;
  font-size: 30px;
}

.login-panel > p {
  color: var(--muted);
}

button,
.btn,
.nav-cta {
  cursor: pointer;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-band {
  min-height: calc(100vh - 210px);
}

.auth-shell {
  max-width: 920px;
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: 48px;
  align-items: start;
}

.auth-shell-compact {
  max-width: 780px;
}

.auth-heading {
  padding-top: 18px;
}

.auth-heading h1 {
  margin-bottom: 16px;
  font-size: 36px;
  line-height: 1.12;
}

.auth-heading > p:last-child {
  color: var(--muted);
}

.auth-form {
  width: 100%;
  padding: 28px;
}

.password-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.password-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.email-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px;
  gap: 10px;
  align-items: stretch;
}

.registration-security-check {
  min-height: 65px;
  width: 100%;
  overflow: hidden;
}

.registration-security-check .cf-turnstile {
  width: 100%;
}

.email-code-button {
  min-height: 48px;
  padding-inline: 14px;
  white-space: nowrap;
}

.email-code-status.is-success {
  color: #15803d;
}

.email-code-status.is-error {
  color: #b91c1c;
}

.field-group input[readonly] {
  background: var(--surface-alt);
  color: #475569;
  cursor: default;
}

.account-hero h1,
.account-order-hero h1 {
  font-size: 34px;
  line-height: 1.15;
}

.account-hero-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.account-hero-inner .lead {
  margin-top: 10px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  gap: 32px;
  align-items: start;
}

.account-notice {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.account-orders,
.account-settings {
  min-width: 0;
}

.account-section-head {
  align-items: end;
}

.account-section-head .section-title {
  max-width: none;
  font-size: 28px;
}

.account-settings {
  display: grid;
  gap: 18px;
}

.account-form {
  display: grid;
  gap: 18px;
  box-shadow: none;
}

.account-form h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.account-order-table {
  min-width: 720px;
}

.account-order-table td:first-child {
  min-width: 190px;
}

.account-order-table td:first-child small {
  display: block;
  margin-top: 3px;
}

.account-order-shell {
  max-width: 980px;
}

.account-order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 28px;
  align-items: start;
}

.order-form {
  display: grid;
  gap: 22px;
}

.order-section-head,
.order-submit-row,
.order-summary-head,
.admin-order-heading,
.admin-order-actions,
.order-quote-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.order-section-head h2,
.order-aside h2,
.order-summary-head h2,
.admin-order-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.order-contact-head {
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.order-items {
  display: grid;
  gap: 14px;
}

.order-item {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.order-item legend {
  padding: 0 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.order-item-grid {
  display: grid;
  grid-template-columns: minmax(170px, 1.3fr) minmax(160px, 1fr) minmax(100px, .45fr) minmax(130px, .55fr) 88px;
  gap: 12px;
  align-items: end;
}

.order-note-field {
  grid-column: 1 / 5;
}

.order-remove {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(220, 38, 38, .25);
  border-radius: var(--radius);
  background: #fff;
  color: var(--danger);
  font-weight: 700;
  cursor: pointer;
}

.order-remove:hover,
.order-remove:focus-visible {
  border-color: var(--danger);
  outline: 2px solid rgba(220, 38, 38, .14);
  outline-offset: 1px;
}

.order-submit-row {
  align-items: end;
  padding-top: 8px;
}

.order-submit-row p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.order-submit-row .btn {
  flex: 0 0 auto;
}

.order-aside {
  display: grid;
  gap: 28px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.order-aside-section + .order-aside-section {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.order-aside-section > p:not(.kicker) {
  color: var(--muted);
}

.order-process-list {
  display: grid;
  gap: 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: order-process;
}

.order-process-list li {
  position: relative;
  display: grid;
  gap: 3px;
  padding-left: 38px;
  counter-increment: order-process;
}

.order-process-list li::before {
  content: counter(order-process);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.order-process-list span,
.muted-text,
.order-updated {
  color: var(--muted);
}

.order-success-band {
  min-height: 620px;
  display: grid;
  align-items: center;
}

.order-success {
  max-width: 760px;
  text-align: center;
}

.order-success .lead {
  margin-left: auto;
  margin-right: auto;
}

.order-success .hero-actions {
  justify-content: center;
}

.order-success-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.order-number-block {
  display: grid;
  gap: 5px;
  width: fit-content;
  margin: 24px auto;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.order-number-block span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-number-block strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.order-status-layout {
  display: grid;
  grid-template-columns: minmax(260px, .45fr) minmax(0, 1.55fr);
  gap: 22px;
  align-items: start;
}

.order-lookup {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 98px;
}

.order-status-result {
  min-width: 0;
}

.order-lookup-empty {
  box-shadow: none;
}

.order-summary-card {
  display: grid;
  gap: 22px;
}

.order-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-timeline li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.order-timeline li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--line);
}

.order-timeline li:first-child::before {
  left: 50%;
  width: 50%;
}

.order-timeline li:last-child::before {
  width: 50%;
}

.order-timeline li span {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-weight: 800;
}

.order-timeline li.is-complete::before {
  background: var(--accent);
}

.order-timeline li.is-complete span {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.order-timeline li.is-current {
  color: var(--ink);
}

.order-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.order-table th,
.order-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.order-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.order-table small {
  color: var(--muted);
}

.order-totals,
.admin-order-totals {
  display: grid;
  gap: 8px;
  margin: 0 0 0 auto;
  width: min(100%, 360px);
}

.order-totals div,
.admin-order-totals div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.order-totals dt,
.admin-order-totals dt {
  color: var(--muted);
}

.order-totals dd,
.admin-order-totals dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.order-totals .order-total {
  color: var(--ink);
  font-size: 18px;
}

.order-shipping {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.order-shipping span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-shipping strong {
  overflow-wrap: anywhere;
}

.order-updated {
  margin: 0;
  font-size: 12px;
  text-align: right;
}

.admin-order-heading {
  align-items: end;
  padding: 4px 2px;
}

.admin-order-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.admin-order-form {
  display: grid;
  gap: 18px;
}

.order-admin-grid {
  grid-template-columns: minmax(0, 1fr) minmax(380px, .72fr);
}

.order-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin: 0;
}

.order-detail-list div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.order-detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-detail-list dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.order-detail-wide {
  grid-column: 1 / -1;
}

.order-quote-table input {
  min-width: 120px;
}

.quote-price-input {
  display: flex;
  align-items: stretch;
}

.quote-price-input span {
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quote-price-input input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-price-input input:focus {
  position: relative;
  outline: 2px solid rgba(37, 99, 235, .18);
  border-color: rgba(37, 99, 235, .45);
}

.order-quote-footer {
  align-items: end;
  margin-top: 18px;
}

.shipping-cost-field {
  width: min(100%, 260px);
}

.admin-order-actions {
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  z-index: 20;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(238, 243, 248, .96);
  backdrop-filter: blur(12px);
}

.dot-sep {
  margin: 0 8px;
  color: var(--muted);
}

.article-filter {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, .55fr) auto;
}

.article-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
  color: var(--muted);
}

.article-result-head p {
  margin: 0;
}

.article-result-head span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.article-card-media {
  display: block;
  overflow: hidden;
  background: var(--surface-alt);
}

.article-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 18 / 11;
  object-fit: cover;
  transition: transform .2s ease;
}

.article-card-media:hover img,
.article-card-media:focus-visible img {
  transform: scale(1.02);
}

.article-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.article-meta,
.article-card-foot,
.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}

.article-meta span {
  color: var(--accent);
  font-weight: 800;
}

.article-card h2 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.article-card h2 a:hover,
.article-card h2 a:focus-visible {
  color: var(--accent);
  outline: none;
}

.article-card-body > p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--muted);
}

.article-card-foot {
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.article-hero {
  padding: 48px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: 42px;
}

.article-hero-copy {
  min-width: 0;
}

.article-hero-copy h1 {
  max-width: 19ch;
  font-size: 46px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.article-back {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.article-back:hover,
.article-back:focus-visible {
  color: var(--accent);
  outline: none;
}

.article-byline {
  margin-top: 22px;
}

.article-byline span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.article-hero-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  box-shadow: var(--shadow);
}

.article-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.article-preview-notice {
  padding: 10px 20px;
  background: #fff7ed;
  color: #9a3412;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.article-reading {
  padding: 58px 0 72px;
  background: #fff;
}

.article-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 64px;
}

.article-body {
  min-width: 0;
  max-width: 760px;
  color: #263244;
  font-size: 17px;
  line-height: 1.82;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--ink);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.article-body h2 {
  margin: 46px 0 16px;
  padding-top: 8px;
  font-size: 30px;
}

.article-body h3 {
  margin: 34px 0 12px;
  font-size: 23px;
}

.article-body h4 {
  margin: 28px 0 10px;
  font-size: 19px;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body pre {
  margin: 0 0 22px;
}

.article-body ul,
.article-body ol {
  padding-left: 25px;
}

.article-body li + li {
  margin-top: 8px;
}

.article-body code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #edf2f7;
  color: #9a3412;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: .9em;
}

.article-body pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: var(--radius);
  background: #111827;
  color: #e5edf6;
}

.article-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.article-body blockquote {
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: var(--surface-soft);
  color: #34445a;
  font-weight: 600;
}

.article-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-aside {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 28px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.article-aside-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.article-aside-section > p:not(.kicker) {
  color: var(--muted);
}

.article-related-list {
  display: grid;
  gap: 4px;
}

.article-related-list a {
  display: grid;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.article-related-list a:hover,
.article-related-list a:focus-visible {
  color: var(--accent);
  outline: none;
}

.article-related-list span {
  color: var(--muted);
  font-size: 12px;
}

.article-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 18px;
}

.article-editor-main {
  min-width: 0;
}

.field-group .article-editor {
  min-height: 560px;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 15px;
  line-height: 1.7;
  tab-size: 2;
}

.article-editor-side {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
}

.article-editor-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.article-editor-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.article-editor-meta dt {
  color: var(--muted);
}

.article-editor-meta dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.article-cover-preview {
  margin: 14px 0;
}

.article-cover-preview img {
  aspect-ratio: 8 / 5;
}

.article-admin-table td:first-child {
  min-width: 280px;
}

.period-tabs {
  width: fit-content;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.period-tabs a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 5px;
  color: var(--muted);
  font-weight: 700;
}

.period-tabs a:hover,
.period-tabs a:focus-visible,
.period-tabs a.is-active {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 1px 4px rgba(16, 35, 63, .1);
  outline: none;
}

.popular-filter {
  grid-template-columns: minmax(260px, 1fr) auto;
  margin-top: 18px;
}

.popular-table {
  min-width: 1120px;
}

.popular-rank {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.popular-part {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.popular-part:hover,
.popular-part:focus-visible {
  border-color: rgba(15, 118, 110, .32);
  box-shadow: var(--shadow);
  outline: none;
}

.popular-part-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.popular-part-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.popular-part-copy strong {
  overflow-wrap: anywhere;
}

.popular-part-copy span,
.popular-part-copy small {
  color: var(--muted);
  font-size: 12px;
}

.analytics-dashboard {
  display: grid;
  gap: 18px;
  padding: 6px 0;
}

.analytics-dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.analytics-dashboard-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.analytics-dashboard-head p:not(.kicker) {
  margin: 5px 0 0;
  color: var(--muted);
}

.analytics-dashboard-actions {
  align-items: center;
  flex-wrap: wrap;
}

.analytics-dashboard-actions form {
  margin: 0;
}

.analytics-updated {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.analytics-empty-state {
  padding: 18px 20px;
  border-left: 4px solid var(--info);
  background: #eff6ff;
}

.analytics-empty-state strong {
  display: block;
  margin-bottom: 4px;
}

.analytics-empty-state p {
  margin: 0;
  color: var(--muted);
}

.ga-metric-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ga-report-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
}

.ga-chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.ga-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
}

.ga-chart-scroll {
  overflow-x: hidden;
  padding-bottom: 2px;
  overscroll-behavior-inline: contain;
}

.ga-bar-chart {
  min-width: 0;
  height: 260px;
  display: grid;
  grid-template-columns: repeat(30, minmax(12px, 1fr));
  gap: 5px;
  align-items: stretch;
  padding: 14px 4px 0;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(to bottom, rgba(216, 226, 238, .7) 1px, transparent 1px);
  background-size: 100% 25%;
}

.ga-bar-column {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 24px;
  align-items: end;
}

.ga-bar {
  width: 100%;
  height: var(--ga-bar-height);
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  transition: background-color 180ms ease;
}

.ga-bar-column:hover .ga-bar {
  background: var(--highlight);
}

.ga-bar-column small {
  min-width: 38px;
  padding-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-35deg);
  transform-origin: top left;
}

.ga-country-table th:not(:first-child),
.ga-country-table td:not(:first-child),
.ga-pages-table th:nth-last-child(-n + 2),
.ga-pages-table td:nth-last-child(-n + 2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ga-country-table {
  min-width: 0;
  table-layout: fixed;
}

.ga-pages-table {
  min-width: 760px;
}

.ga-pages-table code {
  display: inline-block;
  max-width: 420px;
  color: var(--muted);
  white-space: normal;
}

.ga-settings-grid {
  align-items: start;
}

.ga-credentials-input {
  min-height: 150px;
  resize: vertical;
}

.readonly-status {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.readonly-status strong,
.credential-summary strong {
  overflow-wrap: anywhere;
}

.readonly-status small,
.credential-summary small {
  color: var(--muted);
}

.credential-summary {
  display: grid;
  gap: 2px;
  margin: 18px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--success);
  background: #f0fdf4;
}

.credential-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ga-clear-field {
  margin-top: 12px;
}

.ga-settings-actions {
  margin-top: 18px;
  flex-wrap: wrap;
}

@media (max-width: 1120px) {
  .hero-grid,
  .contact-grid,
  .order-layout,
  .order-status-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
    gap: 40px;
  }

  .panel-grid,
  .stats-grid,
  .admin-stats,
  .incremental-status-grid,
  .meta-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-item:nth-child(2) {
    border-right: 0;
  }

  .status-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crawl-admin-grid .admin-filter.inline-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .detail-grid,
  .document-layout,
  .product-info-layout {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    gap: 34px;
  }

  .detail-media {
    max-width: 620px;
  }

  .datasheet-reader-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }

  .reader-tabs {
    width: 100%;
    flex-basis: auto;
  }

  .document-layout {
    gap: 28px;
  }

  .document-sidebar {
    position: static;
    padding: 26px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .product-info-layout {
    gap: 34px;
  }

  .description-panel {
    padding: 30px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    min-height: auto;
  }

  .admin-sidebar-footer {
    margin-top: 0;
  }

  .admin-topbar {
    align-items: start;
    flex-direction: column;
  }

  .filter-bar,
  .admin-filter,
  .admin-filter.inline-filter {
    grid-template-columns: 1fr;
  }

  .order-aside {
    padding: 26px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .order-lookup {
    position: static;
  }

  .order-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-note-field {
    grid-column: 1 / -1;
  }

  .order-remove {
    width: fit-content;
  }

  .filter-actions,
  .button-row,
  .table-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .incremental-form-grid,
  .check-options {
    grid-template-columns: 1fr;
  }

  .article-hero-grid,
  .article-reading-layout,
  .article-edit-layout {
    grid-template-columns: 1fr;
  }

  .article-hero-grid {
    gap: 28px;
  }

  .article-aside,
  .article-editor-side {
    position: static;
  }

  .article-aside {
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(var(--max), calc(100% - 28px));
  }

  .nav {
    gap: 12px;
  }

  .nav-links {
    gap: 14px;
    font-size: 14px;
  }

  .hero {
    padding-top: 32px;
  }

  .page-hero-inner {
    padding: 52px 0 46px;
  }

  .panel-grid,
  .stats-grid,
  .admin-stats,
  .incremental-status-grid,
  .meta-grid,
  .related-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .order-section-head,
  .order-submit-row,
  .order-summary-head,
  .admin-order-heading,
  .admin-order-actions,
  .order-quote-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .order-item-grid,
  .order-shipping,
  .order-detail-list {
    grid-template-columns: 1fr;
  }

  .order-note-field,
  .order-detail-wide {
    grid-column: auto;
  }

  .order-remove,
  .shipping-cost-field {
    width: 100%;
  }

  .order-timeline {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .order-timeline li {
    grid-template-columns: 30px 1fr;
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .order-timeline li::before,
  .order-timeline li:first-child::before,
  .order-timeline li:last-child::before {
    top: 0;
    left: 14px;
    width: 2px;
    height: calc(100% + 12px);
  }

  .order-timeline li:last-child::before {
    height: 15px;
  }

  .incremental-panel .admin-card-head,
  .settings-toggle-row,
  .subsection-head {
    align-items: stretch;
    flex-direction: column;
  }

  .status-item,
  .status-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-item:last-child {
    border-bottom: 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .section-title {
    max-width: 100%;
  }

  .hero-searchbar,
  .top-search {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-searchbar .btn,
  .top-search .btn,
  .btn,
  .nav-cta {
    width: 100%;
  }

  .card,
  .form-card,
  .detail-panel,
  .admin-card,
  .login-panel {
    padding: 18px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .popular-grid {
    grid-template-columns: 1fr;
  }

  .analytics-dashboard-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ga-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ga-bar-chart {
    min-width: 680px;
  }

  .ga-chart-scroll {
    overflow-x: auto;
  }

  .period-tabs {
    width: 100%;
  }

  .period-tabs a {
    flex: 1 1 calc(50% - 4px);
  }

  .article-filter {
    grid-template-columns: 1fr;
  }

  .article-hero {
    padding: 36px 0;
  }

  .article-hero-copy h1 {
    font-size: 32px;
  }

  .article-reading {
    padding: 42px 0 54px;
  }

  .article-body {
    font-size: 16px;
  }

  .article-body h2 {
    font-size: 25px;
  }

  .pdf-preview-band {
    padding: 42px 0;
  }

  .datasheet-reader-band {
    padding: 42px 0 52px;
  }

  .pdf-preview-head {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .pdf-viewer {
    height: 68vh;
    min-height: 480px;
  }

  .detail-hero {
    padding: 18px 0 42px;
  }

  .detail-breadcrumb {
    margin-bottom: 24px;
    white-space: nowrap;
    overflow: hidden;
  }

  .detail-breadcrumb span,
  .detail-breadcrumb a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .detail-copy h1 {
    font-size: 38px;
  }

  .detail-maker {
    font-size: 17px;
  }

  .detail-intro {
    margin-top: 16px;
  }

  .detail-quick-specs {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .detail-quick-specs dl,
  .detail-quick-specs dl + dl {
    display: grid;
    grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr);
    gap: 16px;
    padding: 11px 0;
    border-left: 0;
  }

  .detail-quick-specs dl + dl {
    border-top: 1px solid var(--line);
  }

  .detail-quick-specs dd {
    margin: 0;
  }

  .detail-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 22px;
  }

  .detail-read-link {
    width: 100%;
    justify-content: center;
  }

  .detail-family-links {
    display: grid;
  }

  .detail-media figcaption {
    right: 10px;
    bottom: 10px;
  }

  .product-info-head {
    margin-bottom: 28px;
  }

  .source-title-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .email-code-row {
    grid-template-columns: 1fr;
  }

  .email-code-button {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .auth-shell,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    max-width: 680px;
    gap: 20px;
  }

  .auth-heading {
    padding-top: 0;
  }

  .account-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .auth-heading h1,
  .account-hero h1,
  .account-order-hero h1 {
    font-size: 30px;
  }

  .account-hero-inner,
  .account-order-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-settings {
    grid-template-columns: 1fr;
  }

  .account-section-head .section-title {
    font-size: 24px;
  }
}

@media (max-width: 1120px) {
  h1 {
    font-size: 48px;
  }
}

@media (max-width: 900px) {
  .crawl-admin-grid .admin-filter.inline-filter {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
  }

  .admin-menu-toggle {
    display: grid;
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .08);
    color: #fff;
  }

  .admin-brand {
    min-width: 0;
  }

  .admin-brand div {
    min-width: 0;
  }

  .admin-brand strong,
  .admin-brand small {
    overflow: hidden;
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-nav,
  .admin-sidebar-footer {
    display: none;
    grid-column: 1 / -1;
  }

  .admin-sidebar.is-open .admin-nav {
    max-height: calc(100vh - 150px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .admin-sidebar.is-open .admin-sidebar-footer {
    display: grid;
  }

  .admin-topbar {
    min-height: auto;
    padding: 18px 14px;
  }

  .admin-content {
    padding: 18px 14px 32px;
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: 34px;
  }

  .section-title {
    font-size: 28px;
  }

  .nav {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px 12px;
    padding: 12px 0;
  }

  .nav-toggle {
    display: grid;
  }

  .brand-text strong {
    overflow-wrap: anywhere;
  }

  .brand-text small {
    display: none;
  }

  .top-search {
    width: 100%;
    max-width: none;
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
  }

  .top-search input {
    min-width: 0;
  }

  .top-search .btn {
    width: auto;
    flex: 0 0 auto;
  }

  .nav-links {
    width: 100%;
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 12px;
    padding: 2px 0 8px;
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a,
  .nav-links a.nav-cta {
    min-height: 44px;
    width: auto;
    display: flex;
    align-items: center;
    padding: 8px 6px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-hero { padding: 34px 0; }
  .legal-heading h1 { font-size: 34px; }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .legal-nav a { min-height: 44px; display: flex; align-items: center; }
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .cookie-consent-actions, .cookie-preference-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cookie-consent-actions .btn, .cookie-preference-actions .btn { width: 100%; }

  input,
  select,
  textarea {
    min-width: 0;
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .admin-sidebar.is-open .admin-nav,
  .nav-links {
    grid-template-columns: 1fr;
  }

  .admin-title {
    font-size: 24px;
  }

  .legal-nav, .cookie-consent-actions, .cookie-preference-actions {
    grid-template-columns: 1fr;
  }
}
.security-recovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.security-recovery-grid code {
  display: block;
  padding: 10px 12px;
  border: 1px solid #d8e2ec;
  border-radius: 6px;
  background: #f7fafc;
  color: #0f172a;
  font-size: 14px;
  text-align: center;
}

.admin-card hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid #d8e2ec;
}

@media (max-width: 640px) {
  .security-recovery-grid {
    grid-template-columns: 1fr;
  }
}
