/* EU6 EAN Radar — Self-hosted zero-CDN responsive design system */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-alt: #f0f4fa;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-subtle: #64748b;
  --border: #dce4f0;
  --navy: #0b1f3a;
  --navy-2: #122d52;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-soft: #e8f0fe;
  --emerald: #047857;
  --emerald-bg: #ecfdf5;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --rose: #be123c;
  --rose-bg: #fff1f2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 14px 40px rgba(11, 31, 58, 0.14);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}
.nav-links a {
  color: #dbeafe;
  font-size: 0.87rem;
  font-weight: 500;
}
.nav-links a:hover {
  color: #fff;
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 600;
}
.lang-switch a.active {
  background: #fff;
  color: var(--navy);
}

/* Hero */
.hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 58%, #1a3b6b 100%);
  color: #fff;
  padding: 48px 0 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.hero-sub {
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 780px;
}

.site-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.site-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.82rem;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-pill .cc {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(56, 189, 248, 0.25);
  color: #e0f2fe;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Radar Search Box */
.radar-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: stretch;
}

.input, .select, .textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.96rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.mono {
  font-family: var(--font-mono);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
}
.btn-dark {
  background: var(--navy);
  color: #fff;
}
.btn-dark:hover {
  background: #17345e;
  text-decoration: none;
}
.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  background: var(--surface-alt);
  text-decoration: none;
}
.btn-emerald {
  background: var(--emerald);
  color: #fff;
}
.btn-emerald:hover {
  background: #065f46;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.84rem;
}

.quick-samples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.sample-chip {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--navy);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  cursor: pointer;
}
.sample-chip:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.sample-chip.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.license-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.license-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.license-inline .input {
  width: 220px;
  padding: 6px 10px;
  font-size: 0.84rem;
}

/* Sections */
.section {
  padding: 44px 0;
}
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.section-head h2 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  letter-spacing: -0.015em;
}
.section-head p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 700px;
}

/* KPI Strip */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.kpi-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.kpi-label {
  font-size: 0.8rem;
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.kpi-val {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--navy);
}
.kpi-sub {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-green { background: var(--emerald-bg); color: var(--emerald); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-blue { background: var(--primary-soft); color: var(--primary); }
.badge-rose { background: var(--rose-bg); color: var(--rose); }
.badge-slate { background: #e2e8f0; color: #334155; }

/* Radar Result Panel */
.radar-results {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid #edf2f7;
  vertical-align: middle;
}
th {
  background: var(--surface-alt);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  font-weight: 700;
  white-space: nowrap;
}
tbody tr:hover {
  background: #fafcff;
}

/* Filter Tabs */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}
.tab-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.tab-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* Cards Grid */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}
.card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 28px rgba(29, 78, 216, 0.12);
}

.plan-price {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--navy);
  margin: 10px 0 4px;
}
.plan-period {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-subtle);
  font-family: var(--font-sans);
}
.plan-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 20px;
  flex: 1;
}
.plan-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 800;
}

/* Calculator layout */
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.52fr);
  gap: 20px;
  align-items: start;
}
.calc-grid > * {
  min-width: 0;
  max-width: 100%;
}
.calc-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.calc-grid table {
  font-size: 0.84rem;
}
.calc-grid th, .calc-grid td {
  padding: 9px 8px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 5px;
}

.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;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #93c5fd;
  margin-bottom: 14px;
}
.breadcrumb a {
  color: #dbeafe;
}
.breadcrumb a:hover {
  color: #ffffff;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.validator-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.58fr);
}
.val-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.kpi-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.gtin-single-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gtin-code-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.gtin-code-val {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.row-restricted {
  background: #fff1f2;
}
.row-restricted:hover {
  background: #ffe4e6;
}

/* Multi-Channel Mix Planner */
.mix-site-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.mix-site-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mix-site-btn:hover {
  border-color: var(--primary);
  background: var(--surface-alt);
}
.mix-site-btn.active {
  border-color: var(--primary);
  background: var(--navy);
  color: #fff;
}
.dep-bar {
  display: flex;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}
.dep-amz {
  background: #64748b;
  height: 100%;
  transition: width 0.25s ease;
}
.dep-eu {
  background: linear-gradient(90deg, #1d4ed8, #047857);
  height: 100%;
  transition: width 0.25s ease;
}
.dot-amz, .dot-eu {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
}
.dot-amz { background: #64748b; }
.dot-eu { background: #047857; }
.roadmap-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  background: var(--surface-alt);
}

.compare-table th,
.compare-table td {
  min-width: 120px;
}
.compare-benchmark-row {
  background: #fff7f8;
}
.compare-benchmark-row:hover {
  background: #fff1f2;
}

/* Interactive Seller Fees & VAT Guide */
.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.filter-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-label {
  min-width: 112px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
  padding-top: 7px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.spec-list {
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.spec-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.86rem;
}
.spec-row dt {
  font-weight: 700;
  color: var(--ink-subtle);
  margin: 0;
}
.spec-row dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* Guides & Prose */
.prose {
  max-width: 820px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.prose h1 {
  margin-top: 8px;
  font-size: 1.9rem;
  line-height: 1.25;
}
.prose h2 {
  margin-top: 28px;
  font-size: 1.3rem;
  color: var(--navy);
}
.prose p, .prose li {
  color: #334155;
  font-size: 0.98rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 58, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.modal-backdrop.open {
  display: flex;
}
.modal-box {
  background: #fff;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.modal-close {
  background: var(--surface-alt);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-top: 12px;
}
.alert-ok { background: var(--emerald-bg); color: var(--emerald); border: 1px solid #a7f3d0; }
.alert-err { background: var(--rose-bg); color: var(--rose); border: 1px solid #fecdd3; }
.alert-info { background: var(--primary-soft); color: var(--navy); border: 1px solid #bfdbfe; }
.alert-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.vs-checklist {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: #334155;
  flex: 1;
}
.vs-checklist li { line-height: 1.55; }
.vs-table td { vertical-align: top; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 36px 0;
  margin-top: 40px;
  font-size: 0.86rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links a {
  color: #e2e8f0;
}
.eco-links {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 0.82rem;
}
.eco-links-label {
  color: #94a3b8;
  font-weight: 600;
}
.eco-links a {
  color: #cbd5e1;
}
.eco-links a:hover {
  color: #ffffff;
}
.disclaimer-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.8rem;
}

/* Responsive (1440px -> 375px zero horizontal overflow) */
@media (max-width: 960px) {
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid, .val-kpis, .kpi-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gtin-single-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-grid, .validator-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .hero { padding: 30px 0 36px; }
  .search-row { grid-template-columns: minmax(0, 1fr); }
  .cards-3, .cards-2, .form-grid, .calc-kpis, .gtin-single-grid { grid-template-columns: minmax(0, 1fr); }
  .kpi-grid, .val-kpis, .kpi-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-kpis { grid-template-columns: minmax(0, 1fr); }
  .license-inline .input { width: 100%; }
  .prose { padding: 20px; }
  .card { padding: 16px; }
  .card > * { min-width: 0; max-width: 100%; }
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  .badge { white-space: normal; line-height: 1.35; overflow-wrap: anywhere; border-radius: 10px; }
  .header-inner { gap: 10px; }
  .nav-links { gap: 10px 12px; font-size: 0.85rem; }
  .filter-label { min-width: 100%; padding-top: 0; }
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}

/* Printable Sanitized Sample Weekly Arbitrage Report */
.print-only-header {
  display: none;
}
.sr-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.sr-ghost-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.sr-ghost-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
}
.sanitized-banner {
  background: linear-gradient(120deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #f59e0b;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 18px;
}
.sanitized-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.sr-kpi-strip {
  margin-bottom: 6px;
}
.kpi-sub {
  font-size: 0.75rem;
  color: var(--ink-subtle);
  margin-top: 3px;
}
.sr-table th {
  font-size: 0.78rem;
  vertical-align: top;
}
.sr-table td {
  font-size: 0.82rem;
  vertical-align: top;
}
.th-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-subtle);
  margin-top: 2px;
  white-space: nowrap;
}
.sr-sku-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1.35;
  margin-bottom: 2px;
}
.sr-price-cell {
  white-space: nowrap;
  font-size: 0.82rem;
}
.sr-price-cell.is-target {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 800;
}
.sr-price-cell.is-source {
  background: #eff6ff;
  color: #1e40af;
  font-weight: 700;
}
.sr-cell-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 3px;
}
.sr-cell-tag.tag-target {
  background: #047857;
  color: #fff;
}
.sr-cell-tag.tag-source {
  background: #1d4ed8;
  color: #fff;
}
.sr-gap-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px dashed #6ee7b7;
  border-radius: 999px;
  padding: 2px 7px;
}
.sr-action-note {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 4px;
  line-height: 1.35;
}
.hero-sample-strip {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(147, 197, 253, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-sample-strip-text {
  font-size: 0.86rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Print / Save-as-PDF Stylesheet (A4 Landscape, Zero Overflow) */
@page {
  size: A4 landscape;
  margin: 10mm 10mm 12mm 10mm;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 9pt !important;
    line-height: 1.35 !important;
  }
  .site-header,
  .site-footer,
  .modal-backdrop,
  .sr-hero,
  .no-print {
    display: none !important;
  }
  .print-only-header {
    display: block !important;
    border-bottom: 2px solid #0b1f3a;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }
  .print-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
  }
  .print-brand {
    font-size: 8.5pt;
    font-weight: 700;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .print-title {
    font-size: 14pt;
    font-weight: 800;
    color: #0b1f3a;
    margin-top: 2px;
  }
  .print-meta {
    text-align: right;
    font-size: 7.5pt;
    color: #475569;
  }
  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .section {
    padding: 8px 0 !important;
    background: #ffffff !important;
  }
  .section-head {
    margin-top: 10px !important;
    margin-bottom: 8px !important;
  }
  .section-head h2 {
    font-size: 11pt !important;
  }
  .section-head p {
    font-size: 8pt !important;
  }
  .sanitized-banner {
    padding: 8px 12px !important;
    margin-bottom: 10px !important;
    break-inside: avoid;
  }
  .sanitized-banner p {
    font-size: 7.5pt !important;
  }
  .sr-kpi-strip {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    break-inside: avoid;
  }
  .kpi-box {
    padding: 8px 10px !important;
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
  }
  .kpi-val {
    font-size: 11pt !important;
  }
  .kpi-label, .kpi-sub {
    font-size: 7pt !important;
  }
  .table-wrap,
  .sr-table-wrap {
    overflow: visible !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
  }
  table,
  .sr-table,
  .sr-cat-table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
  }
  .sr-table th,
  .sr-table td,
  .sr-cat-table th,
  .sr-cat-table td {
    min-width: 0 !important;
    padding: 4px 5px !important;
    font-size: 7.3pt !important;
    word-break: break-word;
  }
  .sr-table th {
    font-size: 7pt !important;
  }
  .th-sub {
    font-size: 6.2pt !important;
  }
  .sr-sku-title {
    font-size: 7.6pt !important;
  }
  .sr-action-note {
    font-size: 6.6pt !important;
  }
  .badge {
    font-size: 6.5pt !important;
    padding: 1px 5px !important;
  }
  tr[data-sku-row] {
    display: table-row !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }
  .card {
    padding: 10px !important;
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    break-inside: avoid;
  }
  .card h3 {
    font-size: 9pt !important;
  }
  .card p {
    font-size: 7.4pt !important;
  }
  .alert {
    padding: 7px 10px !important;
    font-size: 7.4pt !important;
    margin-top: 8px !important;
    break-inside: avoid;
  }
}
