:root {
  --bg: #f4f7fa;
  --panel: #ffffff;
  --text: #17212b;
  --muted: #5d6a76;
  --line: #d8e0e7;
  --accent: #0b5f91;
  --accent-soft: #e8f2f8;
  --danger: #9f2525;
  --warning: #8a5a00;
  --success: #27633c;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(26, 45, 61, .08);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.site-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px clamp(16px, 4vw, 48px);
  background: #0e3e5a;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 18px rgba(8, 37, 53, .22);
}
.site-header h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.15rem); }
.site-header p { margin: 2px 0 0; opacity: .82; }
.brand-heading { display: flex; align-items: center; gap: 12px; }
.app-logo { width: 58px; height: 58px; object-fit: contain; flex: 0 0 auto; }
.app-shell { width: min(1280px, calc(100% - 24px)); margin: 18px auto 48px; }
.control-panel, .search-panel, .context-panel, .welcome-card, .result-card, .coverage-card, .quick-access-panel, .resource-strip, .support-strip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.control-panel {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(240px, 1fr) minmax(280px, 1.3fr);
  gap: 14px;
  padding: 16px;
}
.field { min-width: 0; }
.field label { display: block; font-weight: 700; margin-bottom: 5px; color: #29404f; }
select, input[type="search"] {
  width: 100%;
  border: 1px solid #aebbc5;
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  color: var(--text);
}
select:focus, input:focus, button:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(11, 95, 145, .22);
  outline-offset: 1px;
  border-color: var(--accent);
}
.search-panel { margin-top: 12px; padding: 12px; }
.search-panel form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
button {
  border: 0;
  border-radius: 8px;
  padding: 10px 17px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
button:hover { filter: brightness(.96); }
.secondary-button { background: transparent; border: 1px solid rgba(255,255,255,.55); }
.support-header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  background: #b84f17;
  border-color: #e49a70;
  border-radius: 8px;
}
.support-header-link:hover { filter: brightness(1.06); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.breadcrumb { padding: 13px 3px 7px; color: var(--muted); font-size: .93rem; }
.breadcrumb span + span::before { content: "›"; margin: 0 8px; color: #8c99a3; }
.context-panel { padding: 16px; margin-bottom: 12px; }
.context-panel { scroll-margin-top: 104px; }
.context-panel h2, .welcome-card h2 { margin: 0 0 5px; }
.context-panel p, .welcome-card p { margin: 0; color: var(--muted); }
.content { display: grid; gap: 12px; }
.welcome-card { padding: 28px; text-align: center; }
.result-card { overflow: hidden; }
.result-card > summary, .variant-card > summary, .nested-detail > summary {
  list-style: none;
  cursor: pointer;
}
.result-card > summary::-webkit-details-marker, .variant-card > summary::-webkit-details-marker, .nested-detail > summary::-webkit-details-marker { display: none; }
.result-card > summary {
  position: relative;
  padding: 16px 46px 16px 18px;
  font-weight: 760;
  background: #fff;
}
.result-card > summary::after, .variant-card > summary::after, .nested-detail > summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 500;
}
.result-card[open] > summary::after, .variant-card[open] > summary::after, .nested-detail[open] > summary::after { content: "−"; }
.result-card[open] > summary { border-bottom: 1px solid var(--line); background: #f9fbfc; }
.card-body { padding: 17px 18px 20px; }
.card-body > :first-child { margin-top: 0; }
.card-body > :last-child { margin-bottom: 0; }
.variant-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 10px 0;
  background: #fff;
  overflow: hidden;
}
.variant-card > summary { position: relative; padding: 14px 44px 14px 15px; }
.variant-card[open] > summary { background: var(--accent-soft); border-bottom: 1px solid #bed7e5; }
.variant-title { display: block; font-weight: 760; }
.variant-recognition { display: block; font-weight: 400; color: var(--muted); margin-top: 3px; font-size: .93rem; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 9px 0; }
.chip { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; background: #eef2f5; color: #344957; font-size: .8rem; }
.chip.official { background: #e7f4eb; color: var(--success); }
.chip.warning { background: #fff2d8; color: var(--warning); }
.nested-detail { border: 1px solid var(--line); border-radius: 8px; margin: 9px 0; overflow: hidden; }
.nested-detail > summary { position: relative; padding: 11px 42px 11px 13px; font-weight: 700; background: #f8fafb; }
.nested-content { padding: 12px 14px; }
.procedure-list { margin: 0; padding-left: 1.45rem; }
.procedure-list li { padding: 5px 0; }
.expected { display: block; color: var(--success); margin-top: 2px; font-size: .92rem; }
.warning-box, .danger-box, .notice-box { border-left: 4px solid; border-radius: 6px; padding: 10px 12px; margin: 10px 0; }
.warning-box { border-color: #d69a22; background: #fff7e7; }
.danger-box { border-color: #b43b3b; background: #fff0f0; }
.notice-box { border-color: var(--accent); background: #eef7fc; }
.table-wrap { overflow-x: auto; margin: 8px 0; }
.led-pattern-detail > summary { color: var(--brand-dark); }
.led-pattern-table { min-width: 720px; }
.led-pattern { display: grid; gap: .45rem; min-width: 18rem; }
.led-pattern-item { display: flex; align-items: center; gap: .5rem; }
.led-meaning { margin: 0; }
.led-reading-note { margin-top: .55rem; }
.led-reading-note summary { color: var(--brand); cursor: pointer; font-weight: 750; }
.led-reading-note p { margin: .45rem 0 0; }
.led-indicator { position: relative; flex: 0 0 auto; width: .9rem; height: .9rem; border: 2px solid rgba(15, 35, 47, .42); border-radius: 50%; background: #b9c2c8; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.led-red { background: #e02e3d; }
.led-green { background: #27a562; }
.led-yellow, .led-orange, .led-amber { background: #f2ae2e; }
.led-blue { background: #268be0; }
.led-white { background: #fff; }
.led-state-off { background: #e1e6e9; box-shadow: inset 0 0 0 2px #fff; opacity: .7; }
.led-state-blink::after, .led-state-fast_blink::after, .led-state-slow_blink::after, .led-state-pulse::after, .led-state-alternate::after {
  content: ""; position: absolute; inset: -5px; border: 2px dashed currentColor; border-radius: 50%; color: #59707e;
}
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 8px 9px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
th { background: #eef3f6; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.gallery button { padding: 0; width: 100%; background: none; display: block; }
.gallery img { display: block; width: 100%; height: 150px; object-fit: cover; }
.gallery figcaption { padding: 8px; color: var(--muted); font-size: .84rem; }
.source-list { margin: 0; padding-left: 1.2rem; }
.source-list li { margin: 5px 0; }
.source-list a { color: var(--accent); overflow-wrap: anywhere; }
.error-search { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-bottom: 12px; }
.search-results { display: grid; gap: 9px; }
.search-hit { border: 1px solid var(--line); border-radius: 9px; padding: 13px; background: #fff; }
.search-hit h3 { margin: 0 0 3px; font-size: 1rem; }
.search-hit p { margin: 0 0 10px; color: var(--muted); }
.search-hit button { padding: 7px 11px; font-size: .9rem; }
.code-badge { display: inline-block; min-width: 58px; text-align: center; padding: 5px 9px; background: #173d55; color: #fff; border-radius: 7px; margin-right: 8px; font-weight: 800; }
.empty, .loading, .error-message { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); }
.error-message { color: var(--danger); border-color: #e6bcbc; }
.hidden { display: none !important; }
.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; }
.image-dialog { width: min(1100px, calc(100% - 24px)); border: 0; border-radius: 12px; padding: 45px 14px 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.image-dialog::backdrop { background: rgba(0,0,0,.72); }
.image-dialog img { max-width: 100%; max-height: 76vh; display: block; margin: auto; }
.image-dialog p { text-align: center; color: var(--muted); margin-bottom: 0; }
.dialog-close { position: absolute; right: 10px; top: 8px; border-radius: 50%; width: 34px; height: 34px; padding: 0; font-size: 1.5rem; }
.coverage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.coverage-card { box-shadow: none; padding: 13px; }
.coverage-card h3 { margin: 0 0 4px; font-size: 1rem; }
.coverage-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.brand-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.brand-field { width: min(360px, 100%); }
.brand-field label .step-label { display: block; margin-bottom: 2px; }
.brand-status { color: var(--muted); font-size: .9rem; text-align: right; }
.brand-alternative { display: grid; justify-items: end; gap: 7px; }
.oem-finder-button {
  padding: 8px 11px;
  border-color: #8cb5ca;
  color: #164f6e;
  background: #eef8fd;
}
.quick-access-panel {
  margin-top: 12px;
  padding: 20px;
  border-color: #a9cadc;
  background: linear-gradient(135deg, #ffffff 0%, #f1f8fc 100%);
}
.quick-access-heading { margin-bottom: 15px; }
.quick-access-heading h2 { margin: 2px 0 3px; font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.quick-access-heading p { margin: 0; color: var(--muted); }
.step-label {
  display: inline-block;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.quick-error-form, .error-catalog-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 2px solid #88b6cf;
  border-radius: 11px;
  background: #fff;
}
.quick-error-form select { min-height: 48px; font-weight: 700; }
.quick-error-form button { min-height: 48px; }
.quick-error-form button:disabled, .error-catalog-form button:disabled {
  cursor: not-allowed;
  background: #91a2ad;
  opacity: .72;
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}
.task-card {
  display: grid;
  grid-template-columns: 43px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 82px;
  padding: 12px;
  text-align: left;
  color: var(--text);
  background: #fff;
  border: 1px solid #c8d6de;
}
.task-card:hover { background: var(--accent-soft); border-color: #8eb8ce; filter: none; }
.task-card strong { display: block; font-size: .96rem; }
.task-card small { display: block; margin-top: 2px; color: var(--muted); font-weight: 500; line-height: 1.3; }
.task-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  font-size: .76rem;
  font-weight: 850;
}
.task-card-oem {
  grid-column: 1 / -1;
  border: 2px solid #d69b4c;
  background: linear-gradient(135deg, #fffdf8 0%, #fff4df 100%);
}
.task-card-oem .task-icon { background: #a75c0f; }
.task-card-oem:hover { border-color: #b87427; background: #ffefd4; }
.resource-strip {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  padding: 18px;
  border-color: #d99d70;
  background: linear-gradient(135deg, #fff8f2 0%, #ffeadb 100%);
}
.resource-cover {
  display: block;
  width: 92px;
  height: 130px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 8px 18px rgba(36, 42, 48, .19);
}
.resource-copy h2 { margin: 3px 0 5px; font-size: 1.22rem; }
.resource-copy p { margin: 0; color: var(--muted); font-size: .9rem; }
.resource-copy .resource-meta {
  margin-top: 8px;
  color: #77513a;
  font-size: .82rem;
  font-weight: 700;
}
.resource-button {
  flex: 0 0 auto;
  padding: 11px 15px;
  border: 1px solid #b84f17;
  border-radius: 8px;
  color: #fff;
  background: #c7551b;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 5px 14px rgba(139, 57, 17, .18);
}
.resource-button:hover {
  filter: brightness(.95);
}
.resource-button:focus-visible {
  outline: 3px solid rgba(199, 85, 27, .28);
  outline-offset: 3px;
}
.support-strip {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 17px 18px;
  border-color: #b9d3df;
  background: linear-gradient(135deg, #ffffff 0%, #eaf5fa 100%);
}
.support-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  color: #fff;
  background: #0e3e5a;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 7px 16px rgba(14, 62, 90, .2);
}
.support-copy h2 { margin: 3px 0 4px; font-size: 1.17rem; }
.support-copy p { margin: 0; color: var(--muted); font-size: .9rem; }
.support-copy .support-note { margin-top: 6px; font-size: .78rem; }
.support-button {
  padding: 11px 15px;
  border: 1px solid #07578a;
  border-radius: 8px;
  color: #fff;
  background: #0879be;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 5px 14px rgba(8, 91, 145, .18);
}
.support-button:hover { filter: brightness(.95); }
.support-button:focus-visible, .support-header-link:focus-visible {
  outline: 3px solid rgba(8, 121, 190, .28);
  outline-offset: 3px;
}
.ad-slot[hidden] { display: none !important; }
.ad-slot:not([hidden]) {
  display: grid;
  place-items: center;
  min-height: 100px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  overflow: hidden;
}
.search-hero {
  padding: 19px;
  background: linear-gradient(135deg, #fff 0%, #eef7fc 100%);
  border-color: #bdd6e4;
}
.search-heading { margin-bottom: 12px; }
.search-heading h2 { margin: 0; font-size: clamp(1.2rem, 2.3vw, 1.6rem); }
.search-heading p { margin: 4px 0 0; color: var(--muted); }
.search-hero input[type="search"] { min-height: 48px; font-size: 1rem; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.quick-chip {
  padding: 7px 11px;
  border: 1px solid #b7ccd8;
  border-radius: 999px;
  background: #fff;
  color: #244b61;
  font-weight: 650;
  font-size: .86rem;
}
.quick-chip:hover { background: var(--accent-soft); filter: none; }
.menu-navigation {
  margin-top: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.menu-navigation > summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 750;
  color: #29404f;
}
.menu-navigation[open] > summary { border-bottom: 1px solid var(--line); background: #f8fafb; }
.menu-navigation .control-panel { box-shadow: none; border: 0; border-radius: 0; grid-template-columns: 1fr 1.4fr; }

.dashboard-heading { margin: 3px 0 13px; }
.dashboard-heading h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.dashboard-heading p { margin: 4px 0 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.category-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 5px 17px rgba(26, 45, 61, .06);
  overflow: hidden;
}
.category-card > summary {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 15px 43px 15px 15px;
  cursor: pointer;
  list-style: none;
}
.category-card > summary::-webkit-details-marker { display: none; }
.category-card > summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  font-size: 1.35rem;
  color: var(--accent);
}
.category-card[open] > summary::after { content: "−"; }
.category-card[open] > summary { background: #f3f8fb; border-bottom: 1px solid var(--line); }
.category-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 850;
  font-size: .82rem;
}
.category-title { display: block; font-weight: 780; }
.category-description { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.category-count { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.topic-menu { display: grid; gap: 8px; padding: 12px; }
.topic-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 680;
}
.topic-link:hover { background: var(--accent-soft); filter: none; border-color: #afcbdc; }
.topic-link small { color: var(--muted); font-weight: 500; }
.category-primary { margin: 0 12px 12px; width: calc(100% - 24px); }
.library-explorer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.library-explorer > summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 18px;
  color: #29404f;
  font-weight: 780;
}
.library-explorer > summary::-webkit-details-marker { display: none; }
.library-explorer > summary::after { content: "+"; float: right; color: var(--accent); font-size: 1.25rem; }
.library-explorer[open] > summary { background: #f3f8fb; border-bottom: 1px solid var(--line); }
.library-explorer[open] > summary::after { content: "−"; }
.library-explorer-body { padding: 14px; }
.library-explorer-body > p { margin: 0 0 12px; color: var(--muted); }
.error-catalog-form { margin-top: 12px; border-width: 1px; border-color: var(--line); background: #f8fafb; }
.oem-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dfb16f;
  border-radius: 10px;
  background: #fff8ea;
}
.oem-callout p { margin: 3px 0 0; color: var(--muted); }
.oem-callout button { flex: 0 0 auto; background: #a75c0f; }
.oem-finder { overflow: visible; }
.oem-guide { margin: 13px 0; border-color: #b9d4e2; }
.oem-guide .procedure-list { margin: 0; }
.oem-lookup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 2px solid #88b6cf;
  border-radius: 11px;
  background: #f8fcfe;
}
.oem-lookup-form .step-label { display: block; margin-bottom: 2px; }
.oem-lookup-form input, .oem-lookup-form select { min-height: 48px; }
.oem-lookup-form button { grid-column: 1 / -1; min-height: 48px; }
.oem-code-field { position: relative; }
.oem-coverage { margin: 10px 2px 0; color: var(--muted); font-size: .84rem; }
.oem-results { display: grid; gap: 12px; margin-top: 14px; }
.oem-results-intro {
  padding: 12px 14px;
  border: 1px solid #b8d6e6;
  border-radius: 9px;
  background: #eef7fc;
}
.oem-results-intro p { margin: 3px 0 0; color: var(--muted); }
.oem-match-card { border-color: #b8cdd8; }
.oem-match-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 8px;
}
.oem-match-heading h3 { margin: 2px 0 0; font-size: 1.35rem; }
.oem-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.oem-facts > div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}
.oem-facts dt { color: var(--muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; }
.oem-facts dd { margin: 4px 0 0; font-weight: 680; }
.oem-error-section {
  margin: 14px 0 10px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.oem-error-section > h4 { margin: 0 0 9px; }
.oem-error-list { display: grid; gap: 8px; }
.oem-error-list .search-hit h4 { margin: 0; }
.oem-error-empty { margin: 0; }
.oem-blocked { padding: 14px; }
.source-caution { color: var(--muted); font-size: .84rem; }
.recent-panel { margin-bottom: 12px; padding: 15px; }
.recent-panel h2 { margin: 0 0 9px; font-size: 1.05rem; }
.recent-list { display: flex; flex-wrap: wrap; gap: 8px; }
.recent-link { background: #eef3f6; color: #244354; padding: 8px 11px; font-weight: 650; }
.recent-link:hover { background: #dfeaf0; filter: none; }
.result-count { color: var(--muted); font-size: .9rem; }
.info-priority { border-color: #b8d6e6; }
.info-priority > summary { background: #eef7fc; }
.detail-toolbar { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 10px; }
.back-home { padding: 7px 11px; background: #eaf0f4; color: #28495b; }

@media (max-width: 820px) {
  .control-panel { grid-template-columns: 1fr; }
  .site-header { align-items: flex-start; }
  .category-grid { grid-template-columns: 1fr; }
  .brand-panel { align-items: stretch; flex-direction: column; }
  .brand-status { text-align: left; }
  .brand-alternative { justify-items: stretch; }
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oem-facts { grid-template-columns: 1fr 1fr; }
  .resource-strip { grid-template-columns: 78px minmax(0, 1fr); align-items: start; }
  .resource-cover { width: 78px; height: 110px; }
  .resource-button { grid-column: 1 / -1; width: 100%; }
  .support-strip { grid-template-columns: 50px minmax(0, 1fr); align-items: start; }
  .support-icon { width: 50px; height: 50px; border-radius: 13px; }
  .support-button { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 560px) {
  .app-shell { width: min(100% - 14px, 1280px); margin-top: 8px; }
  .site-header { padding: 14px; }
  .app-logo { width: 48px; height: 48px; }
  .search-panel form, .error-search, .quick-error-form, .error-catalog-form, .oem-lookup-form { grid-template-columns: 1fr; }
  .result-card > summary { padding-left: 14px; }
  .card-body { padding: 14px; }
  .site-header { position: static; }
  .header-actions { flex-direction: column; align-items: stretch; }
  .header-actions button, .support-header-link { padding: 7px 10px; }
  .search-hero { padding: 14px; }
  .quick-actions { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .quick-chip { flex: 0 0 auto; }
  .category-card > summary { grid-template-columns: 38px 1fr; }
  .category-count { grid-column: 2; }
  .menu-navigation .control-panel { grid-template-columns: 1fr; }
  .quick-access-panel { padding: 14px; }
  .task-grid { grid-template-columns: 1fr; }
  .task-card { min-height: 72px; }
  .oem-callout { align-items: stretch; flex-direction: column; }
  .oem-callout button { width: 100%; }
  .oem-match-heading { flex-direction: column; }
  .oem-facts { grid-template-columns: 1fr; }
  .resource-strip { padding: 13px 14px; gap: 10px; }
  .resource-button { width: 100%; text-align: center; }
  .support-strip { padding: 13px 14px; gap: 10px; }
  .ad-slot:not([hidden]) { min-height: 90px; }
}
@media print {
  .site-header, .control-panel, .search-panel, .breadcrumb, button, .support-strip { display: none !important; }
  body, .app-shell { background: #fff; width: 100%; margin: 0; }
  details { display: block; }
  details > * { display: block !important; }
  .result-card, .variant-card { break-inside: avoid; box-shadow: none; }
}
