@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #101214;
  --muted: #656a70;
  --line: #dfe2e4;
  --soft: #f3f4f2;
  --paper: #fafaf8;
  --white: #ffffff;
  --orange: #2864f3;
  --orange-soft: #eaf4ff;
  --cyan: #12d8d3;
  --green: #16a16c;
  --shadow: 0 24px 70px rgba(20, 22, 24, 0.09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, #3929ff, var(--orange), var(--cyan)) 1;
}
button, input, select { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.topbar {
  height: 76px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(16,18,20,.08);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: -.01em; }
.brand-logo { width: 194px; height: 57px; display: block; overflow: hidden; background: white; }
.brand-logo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 60%; }
.brand-product { color: #8b8f92; font-size: 11px; border-left: 1px solid #d8dada; padding-left: 11px; }
nav { display: flex; gap: 34px; font-size: 13px; font-weight: 600; color: #45494d; }
nav a:hover { color: var(--orange); }
.cart-link { display: inline-flex; align-items: center; gap: 7px; }
.cart-link span { min-width: 21px; height: 21px; display: grid; place-items: center; border-radius: 999px; background: var(--orange); color: white; font: 10px "DM Mono"; }
.ghost-btn {
  justify-self: end; border: 1px solid #cfd3d5; background: transparent;
  border-radius: 999px; padding: 9px 16px; font-size: 12px; font-weight: 700;
  cursor: pointer;
}
.ghost-btn:hover { border-color: var(--ink); }

main { overflow: hidden; }
.catalog-hero {
  max-width: 1360px;
  margin: 0 auto;
  padding: 94px 72px 74px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: end;
  gap: 72px;
  position: relative;
}
.catalog-hero::before {
  content: "";
  position: absolute;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  left: -350px;
  top: 18px;
  border: 1px solid #dfe1df;
  box-shadow: 0 0 0 64px rgba(230,232,229,.28), 0 0 0 128px rgba(230,232,229,.14);
}
.catalog-hero > * { position: relative; z-index: 1; }
.catalog-hero .section-kicker { display: block; margin-bottom: 24px; }
.catalog-hero p { margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 1.75; max-width: 430px; }
.hero {
  max-width: 1360px;
  margin: 0 auto;
  padding: 92px 72px 120px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 90px;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  left: -390px; top: 80px; border: 1px solid #dfe1df; box-shadow: 0 0 0 70px rgba(230,232,229,.28), 0 0 0 140px rgba(230,232,229,.14);
}
.hero-copy, .upload-shell { position: relative; z-index: 1; }
.eyebrow, .section-kicker {
  font-family: "DM Mono", monospace; text-transform: uppercase; letter-spacing: .11em;
  font-size: 10px; font-weight: 500; color: #6b7074;
}
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; }
.eyebrow span { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 5px var(--orange-soft); }
h1 { font-size: clamp(48px, 5.2vw, 76px); line-height: .99; letter-spacing: -.063em; margin: 0; max-width: 760px; font-weight: 700; }
h1 em, .method-card h2 em { color: var(--orange); font-style: normal; }
.lede { font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 620px; margin: 30px 0 34px; }
.proof-row { display: flex; gap: 28px; }
.proof-row div { display: flex; flex-direction: column; padding-right: 28px; border-right: 1px solid var(--line); }
.proof-row div:last-child { border-right: 0; }
.proof-row strong { font-size: 22px; letter-spacing: -.04em; }
.proof-row span { font-size: 10px; color: var(--muted); margin-top: 3px; }

.upload-shell { background: var(--white); border: 1px solid #e4e6e7; padding: 20px; box-shadow: var(--shadow); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 0 4px 18px; }
.step { font-size: 10px; color: #9a9ea2; display: flex; align-items: center; gap: 7px; padding-bottom: 11px; border-bottom: 2px solid #eceeed; }
.step span { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #d3d6d7; border-radius: 50%; font: 9px "DM Mono"; }
.step.active { color: var(--ink); border-color: var(--orange); }
.step.active span { background: var(--orange); color: white; border-color: var(--orange); }
.dropzone {
  min-height: 308px; border: 1.5px dashed #c6cacc; background: #fbfbfa;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; cursor: pointer; transition: .2s ease; padding: 28px;
}
.dropzone:hover, .dropzone.dragging { border-color: var(--orange); background: var(--orange-soft); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon {
  width: 49px; height: 49px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, #382bff, var(--cyan)); color: white; font-size: 25px; margin-bottom: 17px;
}
.dropzone strong { font-size: 16px; letter-spacing: -.02em; }
.dropzone > span:not(.upload-icon) { font-size: 12px; color: #7f8488; margin-top: 5px; }
.dropzone small { font: 9px "DM Mono"; text-transform: uppercase; color: #a1a5a8; margin-top: 24px; }
.file-status { min-height: 20px; font-size: 11px; color: var(--muted); margin-top: 10px; }
.file-status.success { color: var(--green); }
.file-status.error { color: #bd3d2b; }

.workspace {
  max-width: 1360px; margin: 0 auto 132px; padding: 0 42px;
  display: grid; grid-template-columns: 1.03fr .97fr; gap: 18px;
}
.panel { background: white; border: 1px solid #e2e4e4; padding: 38px; }
.panel-heading, .result-topline, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.panel h2, .section-heading h2 { font-size: 27px; line-height: 1.15; letter-spacing: -.045em; margin: 8px 0 0; }
.status-pill, .confidence, .fit-badge { font: 9px "DM Mono"; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; white-space: nowrap; }
.status-pill { background: #f0f1f0; padding: 7px 10px; color: #73777a; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; margin-top: 32px; }
label > span, .range-copy span { display: block; font-size: 10px; font-weight: 700; color: #5f6468; margin-bottom: 8px; }
label i { font-style: normal; font-weight: 500; color: #a0a4a7; }
.input-unit, select { height: 49px; background: #fafaf9; border: 1px solid #dfe2e2; }
.input-unit { display: flex; align-items: center; }
.input-unit:focus-within, select:focus { border-color: var(--ink); outline: none; }
.input-unit input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 13px; color: var(--ink); }
.input-unit b { font: 10px "DM Mono"; color: #989c9f; padding-right: 13px; }
select { width: 100%; padding: 0 13px; color: var(--ink); font-size: 12px; }
.range-group { margin-top: 27px; }
.range-copy { display: flex; justify-content: space-between; align-items: center; }
.range-copy output { font: 10px "DM Mono"; color: var(--orange); }
input[type="range"] { width: 100%; accent-color: var(--orange); cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; font-size: 8px; color: #a2a5a7; }
.primary-btn, .secondary-btn { border: 0; cursor: pointer; font-weight: 700; }
.primary-btn { width: 100%; height: 53px; background: linear-gradient(90deg, #332cff, var(--orange), #11cfd0); color: white; margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 12px; }
.primary-btn:hover { background: var(--ink); }
.primary-btn span { font-size: 19px; line-height: 1; }

.results-panel { background: #111416; color: white; border-color: #111416; }
.results-panel .section-kicker { color: #8c9295; }
.confidence { color: #bec4c1; display: flex; align-items: center; gap: 7px; }
.confidence i { display: block; width: 6px; height: 6px; background: #f2b14b; border-radius: 50%; }
.results-panel h2 { font-size: 27px; margin: 8px 0 23px; letter-spacing: -.04em; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid #303436; }
.metric { min-height: 108px; padding: 17px; border-right: 1px solid #303436; border-bottom: 1px solid #303436; display: grid; grid-template-columns: 1fr auto; align-items: end; }
.metric:nth-child(2n) { border-right: 0; }
.metric:nth-child(n+3) { border-bottom: 0; }
.metric span { grid-column: 1 / -1; font-size: 9px; color: #8e9497; align-self: start; }
.metric strong { font-size: 31px; letter-spacing: -.05em; }
.metric b { font: 9px "DM Mono"; color: #aeb3b5; padding-bottom: 5px; }
.metric.accent { background: linear-gradient(135deg, #2d39fa, #10c9d2); border-color: var(--orange); }
.metric.accent span, .metric.accent b { color: white; }
.recommendation { background: white; color: var(--ink); margin-top: 17px; padding: 24px; }
.rec-label { font: 9px "DM Mono"; text-transform: uppercase; letter-spacing: .08em; color: #8b9093; margin-bottom: 10px; }
.rec-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.rec-title-row h3 { font-size: 22px; margin: 0; letter-spacing: -.04em; }
.rec-title-row p { font-size: 10px; color: #74797c; margin: 5px 0 0; }
.rec-price { display: block; color: var(--orange); font-size: 10px; margin-top: 7px; }
.fit-badge { color: var(--green); background: #e9f8f1; padding: 7px 9px; }
.capacity-bar { height: 5px; background: #eceeed; margin-top: 20px; overflow: hidden; }
.capacity-bar span { display: block; height: 100%; background: linear-gradient(90deg, #332cff, var(--cyan)); width: 50%; transition: width .5s ease; }
.capacity-labels { display: flex; justify-content: space-between; font: 8px "DM Mono"; color: #999da0; margin-top: 6px; }
.recommendation ul { margin: 18px 0 0; padding: 0; list-style: none; }
.recommendation li { font-size: 10px; line-height: 1.55; color: #4f5458; padding: 8px 0 8px 20px; border-top: 1px solid #eceeed; position: relative; }
.recommendation li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.warning { margin-top: 14px; padding: 10px; background: #fff6df; color: #79591d; font-size: 9px; line-height: 1.5; }
.cost-estimate { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e4e7e8; }
.cost-estimate-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.cost-estimate-head > div { display: flex; flex-direction: column; }
.cost-estimate-head > div span { color: #858a8d; font: 8px "DM Mono"; text-transform: uppercase; letter-spacing: .07em; }
.cost-estimate-head > div strong { color: var(--orange); font-size: 24px; letter-spacing: -.045em; margin-top: 4px; }
.cost-estimate-head label { min-width: 155px; }
.cost-estimate-head label > span { font-size: 8px; margin-bottom: 5px; }
.cost-estimate-head select { height: 35px; background: #f7f8f8; font-size: 9px; }
.cost-lines { margin-top: 9px; border-top: 1px solid #e9ebec; }
.cost-lines div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid #e9ebec; }
.cost-lines span { color: #747a7d; font-size: 8px; }
.cost-lines strong { color: #34383b; font: 9px "DM Mono"; }
.cost-estimate > p { color: #8b9093; font-size: 8px; line-height: 1.55; margin: 10px 0 0; }
.installation-disclaimer { margin-top: 12px; padding: 12px 13px; border: 1px solid #f0b44c; background: #fff7e6; color: #62430d; }
.installation-disclaimer strong { display: block; font: 800 9px "DM Mono"; letter-spacing: .07em; text-transform: uppercase; }
.installation-disclaimer p { margin: 6px 0 0; font-size: 9px; line-height: 1.6; }
.secondary-btn { width: 100%; height: 42px; background: transparent; border: 1px solid #3a3e41; color: #d6d9da; margin-top: 16px; font-size: 10px; }
.secondary-btn:hover { border-color: white; color: white; }

.catalog-section { max-width: 1360px; margin: 0 auto; padding: 0 42px 130px; }
.section-heading { align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.section-heading h2 { font-size: clamp(32px, 4vw, 50px); max-width: 680px; }
.section-heading p { max-width: 440px; color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.filter-btn { border: 1px solid #d8dbdc; background: transparent; color: #676c70; border-radius: 999px; padding: 9px 14px; font: 9px "DM Mono"; text-transform: uppercase; cursor: pointer; }
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.active { background: var(--orange); border-color: var(--orange); color: white; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px; }
.product-card { background: var(--paper); min-height: 540px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.product-card-body { padding: 24px 27px 26px; display: flex; flex: 1; flex-direction: column; }
.product-media { height: 360px; margin: 0; position: relative; display: grid; place-items: center; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 8px; }
.product-media figcaption { display: none; font-weight: 800; color: #8f9497; letter-spacing: -.03em; }
.product-media.image-failed { background: linear-gradient(145deg, #eef3ff, #e7fffd); }
.product-media.image-failed figcaption { display: block; }
.product-image-actions { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: center; gap: 7px; z-index: 2; transition: opacity .2s ease; }
.product-image-actions button { border: 1px solid rgba(255,255,255,.72); border-radius: 999px; background: rgba(11,18,32,.82); color: white; padding: 8px 11px; cursor: pointer; font: 8px "DM Mono"; text-transform: uppercase; backdrop-filter: blur(8px); }
.product-image-actions button:hover { background: var(--orange); border-color: var(--orange); }
.product-image-details { position: absolute; inset: 0; z-index: 3; padding: 20px; overflow-y: auto; background: rgba(7,15,30,.97); color: white; text-align: left; opacity: 0; transform: translateY(102%); pointer-events: none; transition: opacity .22s ease, transform .28s ease; }
.product-card.details-open .product-image-details { opacity: 1; transform: translateY(0); pointer-events: auto; }
.product-card.details-open .product-image-actions { opacity: 0; pointer-events: none; }
.image-details-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; position: sticky; top: -20px; margin: -20px -20px 0; padding: 17px 20px 12px; background: #07101e; z-index: 1; }
.image-details-head strong { font-size: 15px; letter-spacing: -.03em; }
.image-details-head button { width: 28px; height: 28px; border: 1px solid #3a4658; border-radius: 50%; background: transparent; color: white; cursor: pointer; }
.product-image-details > p { color: #b9c2cf; font-size: 9px; line-height: 1.6; margin: 12px 0; }
.warranty-highlight { display: grid; gap: 5px; margin: 0 0 13px; padding: 11px 12px; border: 1px solid #27d8dc; background: linear-gradient(135deg, rgba(45,57,250,.24), rgba(16,201,210,.14)); }
.warranty-highlight strong { color: #7cf7f4; font: 800 10px "DM Mono"; letter-spacing: .06em; }
.warranty-highlight span { color: #d9e7ed; font-size: 8px; line-height: 1.55; }
.product-image-details dl { margin: 0 0 13px; }
.product-image-details dl div { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid #273246; }
.product-image-details dt, .product-image-details dd { margin: 0; font-size: 8px; line-height: 1.4; }
.product-image-details dt { color: #8996a8; }
.product-image-details dd { color: white; text-align: right; font-weight: 600; }
.product-image-details a, .datasheet-note { color: #46dfe1; font: 8px "DM Mono"; text-transform: uppercase; line-height: 1.5; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-type { font: 8px "DM Mono"; color: #95999b; text-transform: uppercase; letter-spacing: .09em; }
.product-card h3 { font-size: 20px; margin: 13px 0 4px; letter-spacing: -.04em; }
.price-block { display: flex; flex-direction: column; padding: 12px 0; margin-bottom: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-block strong { color: var(--orange); font-size: 19px; letter-spacing: -.035em; }
.price-block span { color: #8b9093; font-size: 8px; margin-top: 3px; }
.manual-check { display: flex; align-items: center; gap: 7px; color: #84898c; font: 8px "DM Mono"; margin: -11px 0 20px; }
.manual-check i { width: 5px; height: 5px; background: var(--green); border-radius: 50%; }
.spec-row { display: flex; margin-top: auto; border-top: 1px solid var(--line); padding-top: 15px; }
.spec-row div { flex: 1; display: flex; flex-direction: column; }
.spec-row div + div { border-left: 1px solid var(--line); padding-left: 15px; }
.spec-row strong { font-size: 17px; letter-spacing: -.03em; }
.spec-row span { font-size: 8px; color: #919598; margin-top: 3px; }
.add-order-btn { width: 100%; min-height: 44px; margin-top: 18px; border: 0; background: var(--ink); color: white; font-size: 11px; font-weight: 800; cursor: pointer; transition: .2s ease; }
.add-order-btn:hover { background: linear-gradient(90deg, #332cff, var(--orange), #11cfd0); }
.order-option-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.order-option-buttons .add-order-btn { margin-top: 0; padding: 9px 10px; }
@media (max-width: 520px) { .order-option-buttons { grid-template-columns: 1fr; } }
.product-tag { position: static; font: 8px "DM Mono"; color: var(--orange); }
.product-tag.neutral { color: #9a9ea0; text-transform: uppercase; }
.catalog-note { margin: 14px 0 0; color: #85898c; font-size: 9px; line-height: 1.6; }
.catalog-note b { color: var(--ink); }

.order-section { background: #0e1217; color: white; padding: 92px max(42px, calc((100vw - 1276px)/2)) 110px; }
.order-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 70px; padding-bottom: 34px; border-bottom: 1px solid #2a3038; }
.order-heading .section-kicker, .checkout-title .section-kicker { color: #8d98a5; }
.order-heading h2 { max-width: 760px; margin: 10px 0 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -.05em; }
.order-heading > p { max-width: 430px; margin: 0; color: #aeb6be; font-size: 14px; line-height: 1.7; }
.order-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: 18px; margin-top: 26px; align-items: start; }
.cart-panel, .checkout-form { border: 1px solid #2a323c; background: #141a21; padding: 28px; }
.cart-panel { position: sticky; top: 18px; }
.cart-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid #2c343d; }
.cart-panel h3, .checkout-form h3 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.cart-panel-head button { border: 0; background: transparent; color: #8e99a3; font-size: 12px; cursor: pointer; }
.cart-panel-head button:hover { color: white; }
.cart-panel-head button:disabled { opacity: .35; cursor: default; }
.empty-cart { padding: 64px 20px; text-align: center; }
.empty-cart strong { display: block; font-size: 18px; }
.empty-cart p { color: #8f99a3; font-size: 13px; }
.empty-cart a { display: inline-block; margin-top: 10px; color: #61e4e1; font-size: 12px; font-weight: 800; }
.cart-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid #2b333c; }
.cart-item > img { width: 74px; height: 74px; object-fit: contain; padding: 4px; background: white; }
.cart-item-copy { min-width: 0; display: flex; flex-direction: column; }
.cart-item-copy > strong { font-size: 14px; }
.cart-item-copy > span { margin-top: 3px; color: #96a0aa; font-size: 11px; }
.quantity-control { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.quantity-control button { width: 27px; height: 27px; border: 1px solid #3a4652; background: transparent; color: white; cursor: pointer; }
.quantity-control output { min-width: 20px; text-align: center; font: 11px "DM Mono"; }
.quantity-control .remove-item { width: auto; border: 0; color: #8e99a3; padding: 0 4px; font-size: 10px; }
.cart-line-total { text-align: right; color: #63e6e2; font-size: 12px; }
.cart-totals { margin-top: 24px; }
.cart-totals > div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; color: #aeb6be; font-size: 12px; }
.cart-totals > div strong { color: white; }
.cart-totals .cart-grand-total { margin-top: 9px; padding-top: 18px; border-top: 1px solid #35404b; color: white; font-size: 15px; }
.cart-grand-total strong { color: #65e6e2 !important; font-size: 19px; }
.cart-totals > p { margin: 14px 0 0; padding: 11px; border: 1px solid #7b5c23; background: #302819; color: #f3d38b; font-size: 11px; line-height: 1.55; }
.checkout-title { margin-bottom: 26px; }
.checkout-title h3 { margin-top: 8px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkout-grid .wide-field { grid-column: 1 / -1; }
.checkout-form label > span, .fulfillment-options legend { display: block; margin-bottom: 8px; color: #c9d0d6; font-size: 13px; font-weight: 700; }
.checkout-form label i { color: #7f8a94; font-weight: 500; }
.checkout-form input[type="text"], .checkout-form input[type="tel"], .checkout-form input[type="email"], .checkout-form textarea { width: 100%; border: 1px solid #39434e; background: #0f141a; color: white; border-radius: 0; padding: 13px 14px; font-size: 16px; outline: none; }
.checkout-form input:focus, .checkout-form textarea:focus { border-color: #36d7d5; box-shadow: 0 0 0 2px rgba(54,215,213,.12); }
.fulfillment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0; padding: 0; border: 0; }
.fulfillment-options legend { grid-column: 1 / -1; }
.option-card { display: flex; gap: 11px; align-items: flex-start; border: 1px solid #39434e; background: #10161d; padding: 15px; cursor: pointer; }
.option-card:has(input:checked) { border-color: #2fd6d3; background: #112326; }
.option-card input { margin-top: 3px; accent-color: #2fd6d3; }
.option-card span { margin: 0 !important; }
.option-card strong, .option-card small { display: block; }
.option-card strong { color: white; font-size: 14px; }
.option-card small { margin-top: 4px; color: #929ca5; font-size: 11px; line-height: 1.45; font-weight: 500; }
.delivery-fields { display: grid; gap: 18px; margin-bottom: 18px; padding: 20px; border: 1px solid #2d3741; background: #10161c; }
.notes-field { display: block; margin-top: 18px; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; }
.consent-row input { margin-top: 3px; accent-color: #2fd6d3; }
.consent-row span { margin: 0 !important; color: #aeb7bf !important; font-size: 12px !important; line-height: 1.5; font-weight: 500 !important; }
.place-order-btn { width: 100%; min-height: 54px; margin-top: 22px; border: 0; background: linear-gradient(90deg, #332cff, var(--orange), #11cfd0); color: white; font-size: 13px; font-weight: 800; cursor: pointer; }
.place-order-btn:hover { filter: brightness(1.08); }
.place-order-btn:disabled { filter: grayscale(1); opacity: .45; cursor: not-allowed; }
.order-help { margin: 12px 0 0; color: #7f8992; font-size: 10px; line-height: 1.55; }
.order-message { margin-top: 14px; color: #6ee9e5; font-size: 12px; line-height: 1.5; }
.order-message strong, .order-message span { display: block; }
.order-message.error { color: #ff9b92; }

.product-image-dialog { width: min(94vw, 1180px); max-height: 94vh; padding: 0; border: 0; background: #07101e; color: white; box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.product-image-dialog::backdrop { background: rgba(3,8,16,.82); backdrop-filter: blur(5px); }
.dialog-toolbar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px 16px; background: #07101e; border-bottom: 1px solid #273246; }
.dialog-toolbar strong { font-size: 12px; }
.dialog-toolbar button { border: 1px solid #435169; border-radius: 999px; background: transparent; color: white; padding: 7px 11px; cursor: pointer; font-size: 9px; }
.product-image-dialog > img { display: block; width: 100%; height: calc(94vh - 55px); object-fit: contain; background: #0b1422; }

.method-section { display: grid; grid-template-columns: 1.12fr .88fr; }
.method-card { padding: 82px max(42px, calc((100vw - 1276px)/2)); min-height: 530px; }
.method-card.dark { background: var(--ink); color: white; padding-right: 70px; }
.method-card.light { background: #efefec; padding-left: 70px; }
.method-card h2 { font-size: clamp(37px, 4.3vw, 58px); line-height: 1.06; letter-spacing: -.055em; margin: 26px 0 55px; }
.formula { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.formula span { font: 9px "DM Mono"; color: #c3c6c8; padding: 10px 12px; border: 1px solid #3d4244; }
.formula strong { color: var(--orange); font-weight: 500; }
.method-card.light h3 { font-size: 31px; line-height: 1.15; letter-spacing: -.045em; margin: 24px 0 18px; max-width: 490px; }
.method-card.light > p { color: var(--muted); font-size: 11px; line-height: 1.8; max-width: 510px; margin-bottom: 34px; }
.note-row { display: grid; grid-template-columns: 38px 1fr; gap: 16px; border-top: 1px solid #d4d6d5; padding: 16px 0; max-width: 520px; }
.note-row span { font: 9px "DM Mono"; color: var(--orange); }
.note-row p { font-size: 10px; line-height: 1.6; color: #555a5d; margin: 0; }
footer { min-height: 90px; background: var(--ink); color: white; border-top: 1px solid #2c3032; display: flex; justify-content: space-between; align-items: center; padding: 0 42px; }
footer span { font-weight: 800; font-size: 13px; }
footer .footer-brand { display: flex; flex-direction: column; gap: 4px; }
footer .footer-brand small { color: #858a8d; font-size: 8px; letter-spacing: .04em; }
footer p { color: #858a8d; font-size: 9px; }

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; padding: 0 22px; }
  nav { display: none; }
  .catalog-hero { grid-template-columns: 1fr; gap: 28px; padding: 72px 32px 62px; }
  .hero { grid-template-columns: 1fr; gap: 52px; padding: 72px 32px 80px; }
  .workspace { grid-template-columns: 1fr; padding: 0 24px; }
  .catalog-section { padding-left: 24px; padding-right: 24px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .order-heading, .order-layout { grid-template-columns: 1fr; }
  .cart-panel { position: static; }
  .method-section { grid-template-columns: 1fr; }
  .method-card { padding: 68px 34px !important; min-height: auto; }
}
@media (max-width: 620px) {
  .topbar { height: 64px; }
  .ghost-btn { display: none; }
  .catalog-hero { padding: 54px 20px 52px; }
  .hero { padding: 54px 20px 64px; }
  h1 { font-size: 46px; }
  .proof-row { gap: 14px; }
  .proof-row div { padding-right: 14px; }
  .upload-shell { padding: 12px; }
  .dropzone { min-height: 250px; }
  .workspace, .catalog-section { padding-left: 12px; padding-right: 12px; }
  .panel { padding: 24px 18px; }
  .field-grid { grid-template-columns: 1fr; }
  .metric strong { font-size: 27px; }
  .cost-estimate-head { align-items: stretch; flex-direction: column; }
  .cost-estimate-head label { width: 100%; }
  .catalog-grid { grid-template-columns: 1fr; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .order-section { padding: 64px 14px 78px; }
  .order-heading { gap: 20px; }
  .cart-panel, .checkout-form { padding: 20px 16px; }
  .cart-item { grid-template-columns: 58px 1fr; }
  .cart-item > img { width: 58px; height: 58px; }
  .cart-line-total { grid-column: 2; text-align: left; }
  .checkout-grid, .fulfillment-options { grid-template-columns: 1fr; }
  .checkout-grid .wide-field { grid-column: auto; }
  footer { padding: 24px; flex-direction: column; align-items: flex-start; }
}

@media print {
  .topbar, .hero, .input-panel, .catalog-section, .method-section, footer, .secondary-btn { display: none !important; }
  body { background: white; }
  .workspace { display: block; margin: 0; padding: 0; }
  .results-panel { color: black; background: white; border: 0; }
  .results-panel h2, .results-panel .section-kicker, .confidence { color: black; }
  .metric-grid { border-color: #aaa; }
  .metric { border-color: #aaa; }
  .metric.accent { color: white; }
  body.admin-body { border: 0; background: white; }
  .admin-body .admin-topbar, .admin-body .admin-tabs, .admin-body .admin-actions, .admin-body .admin-summary, .admin-body .admin-message, .admin-body .readable-order-status, .admin-body .order-card footer, .admin-body #usersPanel, .admin-body #accountPanel { display: none !important; }
  .admin-body .admin-main { width: 100%; margin: 0; padding: 0; }
  .admin-body .admin-dashboard-head { display: block; margin-bottom: 18px; }
  .admin-body .admin-dashboard-head h1 { font-size: 30px; }
  .admin-body .orders-grid { display: block; }
  .admin-body .order-card { break-inside: avoid; page-break-inside: avoid; margin: 0 0 14px; box-shadow: none; }
}

/* Private order dashboard */
.admin-body { min-height: 100vh; background: #eef1f3; color: var(--ink); }
.admin-topbar { height: 78px; padding: 0 max(24px, calc((100vw - 1280px) / 2)); background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.admin-topbar .brand { height: 100%; }
.admin-userbar { display: flex; align-items: center; gap: 14px; }
.admin-userbar > span { color: #58636d; font-size: 13px; font-weight: 700; }
.admin-main { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 90px; }
.admin-login { width: min(500px, 100%); margin: 7vh auto 0; padding: 38px; background: white; border: 1px solid #dce1e5; box-shadow: 0 22px 70px rgba(15,23,42,.08); }
.admin-login h1, .admin-dashboard h1 { margin: 10px 0 8px; font-size: clamp(36px, 5vw, 58px); letter-spacing: -.055em; }
.admin-login > p, .admin-dashboard-head p { color: #68717b; font-size: 14px; line-height: 1.7; }
.admin-login form { display: grid; gap: 16px; margin-top: 28px; }
.admin-login label span, .admin-actions label span { display: block; margin-bottom: 8px; color: #5d6670; font-size: 12px; font-weight: 700; }
.admin-login label i { color: #8b949d; font-weight: 500; }
.admin-login input, .admin-actions select { width: 100%; height: 48px; border: 1px solid #ccd3d9; background: white; padding: 0 13px; font-size: 15px; }
.admin-login button { height: 50px; border: 0; background: linear-gradient(90deg, #332cff, var(--orange), #11cfd0); color: white; font-weight: 800; cursor: pointer; }
.admin-message { min-height: 18px; color: #66717a; font-size: 12px; }
.admin-outline-button { min-height: 42px; padding: 0 16px; border: 1px solid #cfd5da; background: white; color: var(--ink); font-weight: 700; cursor: pointer; }
.admin-outline-link, .admin-primary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border: 1px solid #cfd5da; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.admin-primary-link { margin-top: 18px; border-color: #2466f5; background: #2466f5; color: white; }
.staff-registration-link { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e4e8eb; color: #737d86; font-size: 13px; }
.staff-registration-link a { color: #2456be; font-weight: 800; }
.login-help { margin-top: 10px; text-align: right; }
.login-help a, .reset-back-link { color: #2456be; font-size: 13px; font-weight: 800; text-decoration: none; }
.login-help a:hover, .reset-back-link:hover { text-decoration: underline; }
.password-reset-card { margin-top: 4vh; }
.password-reset-card h1 { font-size: clamp(36px, 5vw, 54px); }
.password-reset-card .reset-back-link { display: inline-block; margin-top: 22px; }
.password-reset-card .admin-message { min-height: 0; font-size: 14px; line-height: 1.6; }
.password-reset-card .admin-message.success { margin-top: 18px; padding: 14px 16px; background: #e4f8f0; color: #137257; }
.password-reset-card .admin-message.error { margin-top: 18px; padding: 14px 16px; background: #fee9e7; color: #aa332d; }
.admin-tabs { display: flex; gap: 5px; margin-bottom: 34px; padding: 5px; background: #dfe4e7; width: fit-content; }
.admin-tabs button { min-height: 42px; padding: 0 18px; border: 0; background: transparent; color: #616b74; font-weight: 800; cursor: pointer; }
.admin-tabs button.active { background: white; color: #141a20; box-shadow: 0 2px 12px rgba(15,23,42,.07); }
.admin-tab-panel[hidden] { display: none; }
.admin-dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.admin-dashboard-head > div:first-child { max-width: 760px; }
.admin-actions { display: flex; align-items: flex-end; gap: 10px; }
.admin-actions label { min-width: 190px; }
.admin-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 32px 0 18px; background: #d7dde1; border: 1px solid #d7dde1; }
.admin-summary div { padding: 20px 24px; background: white; display: flex; align-items: end; justify-content: space-between; }
.admin-summary span { color: #697580; font: 12px "DM Mono"; text-transform: uppercase; }
.admin-summary strong { font-size: 28px; }
.orders-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.order-card { padding: 24px; background: white; border: 1px solid #dce1e5; box-shadow: 0 10px 30px rgba(15,23,42,.04); }
.order-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #e8ebed; }
.order-card > header span { color: #697580; font-size: 13px; }
.order-card h2 { margin: 5px 0 0; font: 700 18px "DM Mono"; }
.order-status { min-width: 150px; height: 46px; border: 1px solid #ccd4da; background: #f8fafb; padding: 0 12px; font-size: 16px; font-weight: 700; }
.readable-select { position: relative; display: block; width: 100%; min-width: 0; }
.readable-select > select { display: none !important; }
.readable-order-status { width: min(42%, 240px); min-width: 150px; flex: 0 0 min(42%, 240px); }
.readable-select-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; gap: 16px; padding: 10px 14px; border: 1px solid #aab9c5; background: #fff; color: #111820; font: 700 16px/1.3 "DM Sans", sans-serif; text-align: left; cursor: pointer; }
.readable-select-trigger:disabled { background: #f2f4f6; color: #7a838c; cursor: not-allowed; }
.readable-select-trigger::after { content: ""; flex: 0 0 9px; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.readable-select.is-open .readable-select-trigger { border-color: #2466f5; box-shadow: 0 0 0 2px #d9e6ff; }
.readable-select-list { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; width: max(100%, 210px); max-height: 340px; overflow-y: auto; border: 1px solid #aab9c5; background: #fff; box-shadow: 0 12px 26px rgba(15,23,42,.18); }
.readable-select-list[hidden] { display: none; }
.readable-select-option { display: block; width: 100%; min-height: 46px; padding: 11px 15px; border: 0; border-bottom: 1px solid #e8edf1; background: #fff; color: #111820; font: 600 16px/1.4 "DM Sans", sans-serif; text-align: left; cursor: pointer; }
.readable-select-option:last-child { border-bottom: 0; }
.readable-select-option:disabled { color: #9aa3ab; cursor: not-allowed; }
.readable-select-option:hover, .readable-select-option:focus-visible { outline: none; background: #eaf2ff; }
.readable-select-option[aria-selected="true"] { background: #eaf2ff; color: #1749b3; font-weight: 800; }
.order-customer { display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; padding: 18px 0; border-bottom: 1px solid #e8ebed; }
.order-customer div { grid-row: 1 / 3; display: flex; flex-direction: column; }
.order-customer span, .order-address span, .order-notes span { color: #6f7a84; font: 11px "DM Mono"; text-transform: uppercase; }
.order-customer strong { margin-top: 4px; font-size: 17px; }
.order-customer a { color: #2456be; font-size: 14px; text-align: right; }
.order-address { padding: 14px 0; border-bottom: 1px solid #e8ebed; }
.order-address p, .order-notes p { margin: 6px 0 0; color: #505963; font-size: 14px; line-height: 1.55; }
.order-card ul { margin: 0; padding: 6px 0; list-style: none; border-bottom: 1px solid #e8ebed; }
.order-card li { display: flex; justify-content: space-between; gap: 15px; padding: 8px 0; font-size: 14px; }
.order-card li b { color: var(--orange); }
.order-total { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; }
.order-total span { color: #69727b; font-size: 14px; }
.order-total strong { color: #0e9695; font-size: 17px; }
.order-notes { padding: 13px; background: #f6f8f9; }
.order-card > footer { min-height: 0; padding: 14px 0 0; background: transparent; color: inherit; border: 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.order-email-button { margin-left: auto; min-height: 40px; padding: 0 14px; border: 1px solid #2466f5; background: white; color: #2456be; font-size: 13px; font-weight: 800; cursor: pointer; }
.order-email-button:hover { background: #2466f5; color: white; }
.email-badge { padding: 7px 9px; border-radius: 999px; background: #eef1f3; color: #66717a; font: 10px "DM Mono"; text-transform: uppercase; }
.email-badge.sent { background: #e4f8f0; color: #137257; }
.email-badge.failed { background: #fee9e7; color: #aa332d; }
.email-badge.not_configured { background: #fff3d8; color: #805d12; }
.email-error { margin: 8px 0 0; color: #a84740; font-size: 13px; }
.admin-empty { padding: 70px 20px; background: white; border: 1px solid #dce1e5; text-align: center; color: #6d7780; }
.staff-users-grid { display: grid; gap: 12px; margin-top: 28px; }
.staff-user-card { padding: 22px 24px; background: white; border: 1px solid #dce1e5; }
.staff-user-head { display: flex; justify-content: space-between; gap: 20px; }
.staff-user-head h2 { margin: 0 0 5px; font-size: 19px; }
.staff-user-head a { color: #2456be; font-size: 13px; }
.approval-badge { align-self: flex-start; padding: 6px 9px; border-radius: 999px; background: #fff3d8; color: #805d12; font: 9px "DM Mono"; text-transform: uppercase; }
.approval-badge.approved { background: #e4f8f0; color: #137257; }
.approval-badge.rejected { background: #fee9e7; color: #aa332d; }
.staff-user-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: #737e87; font-size: 12px; }
.manual-verify-note { margin: 14px 0 0; padding: 10px 12px; border: 1px solid #e7c36c; background: #fff8e6; color: #72520e; font-size: 12px; line-height: 1.5; }
.staff-user-controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 18px; padding-top: 18px; border-top: 1px solid #e7eaec; }
.staff-user-controls label span, .change-password-form label span { display: block; margin-bottom: 7px; color: #69737c; font-size: 12px; font-weight: 700; }
.staff-user-controls select, .change-password-form input { width: 100%; height: 44px; border: 1px solid #ccd4da; background: #f9fafb; padding: 0 11px; font-size: 14px; }
.staff-user-controls button, .change-password-form button { min-height: 44px; padding: 0 17px; border: 0; background: #121820; color: white; font-weight: 800; cursor: pointer; }
.staff-user-controls .readable-select-trigger { padding: 10px 14px; border: 1px solid #aab9c5; background: #fff; color: #111820; text-align: left; white-space: normal; }
.staff-user-controls .readable-select-trigger:disabled { background: #f2f4f6; color: #7a838c; cursor: not-allowed; }
.staff-user-controls .readable-select-option { min-height: 46px; padding: 11px 15px; border: 0; border-bottom: 1px solid #e8edf1; background: #fff; color: #111820; text-align: left; white-space: normal; }
.staff-user-controls .readable-select-option:hover, .staff-user-controls .readable-select-option:focus-visible, .staff-user-controls .readable-select-option[aria-selected="true"] { background: #eaf2ff; color: #1749b3; }
.change-password-form { width: min(560px, 100%); display: grid; gap: 17px; margin-top: 30px; padding: 26px; background: white; border: 1px solid #dce1e5; }
.signup-card, .verification-card { margin-top: 2vh; }

/* Approved dealer portal */
.dealer-auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 500px); align-items: center; gap: 70px; min-height: calc(100vh - 220px); }
.dealer-auth-intro { padding: 30px; }
.dealer-auth-intro h1 { margin: 15px 0 22px; max-width: 620px; }
.dealer-auth-intro p { max-width: 610px; color: #66717a; font-size: 16px; line-height: 1.75; }
.dealer-auth-card { width: 100%; margin: 0; }
.dealer-auth-card h2 { margin: 10px 0 8px; font-size: 36px; letter-spacing: -.045em; }
.dealer-auth-card > p { color: #66717a; font-size: 14px; line-height: 1.6; }
.dealer-text-button { height: auto !important; padding: 0 !important; background: transparent !important; color: #2456be !important; font-size: 13px; }
.dealer-portal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 28px; }
.dealer-portal-head h1 { margin: 10px 0 8px; font-size: clamp(42px, 6vw, 68px); }
.dealer-portal-head p { margin: 0; color: #68717b; font-size: 14px; }
.dealer-vat-note { width: min(360px, 100%); padding: 18px 20px; border: 1px solid #9adbd8; background: #eafdfe; display: flex; flex-direction: column; }
.dealer-vat-note strong { color: #087c7b; font-size: 15px; }
.dealer-vat-note span { margin-top: 5px; color: #4f696b; font-size: 13px; line-height: 1.55; }
.dealer-table-wrap { overflow-x: auto; background: white; border: 1px solid #dce1e5; }
.dealer-price-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.dealer-price-table th { padding: 14px 16px; background: #101820; color: white; font: 11px "DM Mono"; letter-spacing: .03em; text-align: left; }
.dealer-price-table td { padding: 13px 16px; border-bottom: 1px solid #e6eaec; color: #55606a; font-size: 14px; }
.dealer-price-table tbody tr:last-child td { border-bottom: 0; }
.dealer-price-table td:first-child { color: #111820; }
.dealer-price-table .dealer-price { color: #215fe9; font-weight: 800; }
.dealer-quantity { display: grid; grid-template-columns: 34px 48px 34px; }
.dealer-quantity button, .dealer-quantity input { height: 34px; border: 1px solid #ccd4da; background: white; text-align: center; }
.dealer-quantity button { cursor: pointer; font-weight: 800; }
.dealer-quantity input { border-left: 0; border-right: 0; width: 48px; }
.dealer-line-total { color: #0c8382 !important; font-weight: 800; }
.dealer-checkout { margin-top: 24px; padding: 30px; background: white; border: 1px solid #dce1e5; }
.dealer-checkout-copy h2 { margin: 8px 0 5px; font-size: 30px; letter-spacing: -.04em; }
.dealer-checkout-copy p { margin: 0 0 22px; color: #69747d; font-size: 14px; }
.dealer-checkout .checkout-grid { margin-top: 20px; }
.dealer-checkout .checkout-grid label span { display: block; margin-bottom: 7px; color: #5d6670; font-size: 14px; font-weight: 700; }
.dealer-checkout .checkout-grid input, .dealer-checkout .checkout-grid textarea { width: 100%; border: 1px solid #ccd4da; background: #fff; padding: 12px; font-size: 16px; }
.dealer-checkout .checkout-grid input { height: 48px; }
.dealer-order-total { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 14px; padding: 20px; background: #101820; color: white; }
.dealer-order-total span { font-size: 14px; }
.dealer-order-total strong { color: #22dfda; font-size: 27px; }
.dealer-checkout .confirmation-check { margin: 18px 0; }
.dealer-checkout .submit-order { width: 100%; }
.dealer-checkout .order-message { margin-top: 16px; }
.dealer-checkout .order-message strong, .dealer-checkout .order-message span { display: block; }
.dealer-checkout .order-message span { margin-top: 5px; color: #66717a; }

/* Shared desktop and phone layout refinements */
.catalog-hero { grid-template-columns: minmax(0, 1.3fr) minmax(270px, .7fr); gap: clamp(32px, 5vw, 70px); padding-top: 72px; padding-bottom: 62px; }
.catalog-hero p { font-size: 16px; }
.catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card-body, .order-layout > *, .admin-dashboard-head > *, .staff-user-head > * { min-width: 0; }
.product-media img { max-width: 100%; }
.filter-btn { min-height: 42px; font-size: 11px; }
.add-order-btn, .place-order-btn { font-size: 14px; }
.admin-topbar { gap: 20px; }
.admin-topbar .brand { min-width: 0; }
.admin-topbar .brand-product { overflow-wrap: anywhere; }
.admin-dashboard h1 { font-size: clamp(34px, 4vw, 50px); line-height: 1.08; }
.admin-actions { flex-wrap: wrap; justify-content: flex-end; }
.admin-actions .admin-outline-button { white-space: nowrap; }
.admin-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-summary div { gap: 10px; }
.staff-user-head h2, .staff-user-head a, .order-customer a { overflow-wrap: anywhere; }
.staff-user-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.staff-user-controls button { white-space: nowrap; }
.dealer-auth-shell { grid-template-columns: minmax(0, 1fr) minmax(360px, 500px); gap: clamp(32px, 5vw, 70px); }
.dealer-auth-intro { padding: 20px 0; }
.dealer-auth-intro h1 { font-size: clamp(42px, 4.8vw, 66px); line-height: 1.03; }
.dealer-portal-head > div:first-child { min-width: 0; }
.dealer-price-table th, .dealer-price-table td { white-space: normal; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #12bfc4; outline-offset: 2px; }

@media (max-width: 980px) {
  .catalog-hero { grid-template-columns: 1fr; gap: 22px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-media { height: 310px; }
  .dealer-auth-shell { grid-template-columns: 1fr; gap: 22px; min-height: 0; }
  .dealer-auth-intro { padding: 0; }
  .dealer-auth-card { max-width: 560px; }
  .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-actions { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .topbar { height: auto; min-height: 72px; grid-template-columns: 1fr; gap: 4px; padding: 10px 18px 0; }
  .topbar .brand { justify-self: start; }
  .topbar nav { display: flex; width: 100%; justify-content: space-between; gap: 6px; border-top: 1px solid var(--line); }
  .topbar nav a { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; font-size: 12px; white-space: nowrap; }
  .topbar nav .cart-link { gap: 5px; }
  .catalog-hero { padding: 54px 28px 48px; }
  .catalog-section { padding-bottom: 88px; }
  .admin-topbar { height: auto; min-height: 72px; padding: 8px 18px; }
  .admin-main { padding-top: 32px; }
  .admin-login { margin-top: 4vh; }
  .admin-dashboard-head { gap: 22px; }
  .admin-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 10px; }
  .admin-actions label { min-width: 0; }
  .admin-actions .admin-outline-button { width: 100%; }
  .dealer-portal-head { gap: 18px; }
  .dealer-vat-note { width: 100%; }
}

@media (max-width: 620px) {
  .topbar { padding-left: 12px; padding-right: 12px; }
  .brand-logo { width: 154px; height: 48px; }
  .brand-product { max-width: 136px; font-size: 10px; line-height: 1.3; }
  .catalog-hero { padding: 42px 18px 38px; }
  .catalog-hero .section-kicker { margin-bottom: 16px; }
  .catalog-hero h1 { font-size: clamp(39px, 10vw, 54px); line-height: 1.03; }
  .catalog-hero p { font-size: 15px; line-height: 1.65; }
  .catalog-section { padding-left: 14px; padding-right: 14px; }
  .section-heading { gap: 12px; }
  .section-heading h2 { font-size: clamp(28px, 8vw, 38px); }
  .section-heading p { font-size: 14px; }
  .catalog-toolbar { gap: 7px; }
  .filter-btn { padding: 9px 11px; font-size: 10px; }
  .catalog-grid { grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
  .product-media { height: min(82vw, 350px); }
  .product-card-body { padding: 20px; }
  .product-image-actions button { min-height: 38px; font-size: 9px; }
  .product-image-details > p, .product-image-details dt, .product-image-details dd { font-size: 11px; }
  .product-image-details a, .datasheet-note { font-size: 10px; }
  .product-type, .product-tag, .price-block span, .spec-row span { font-size: 10px; }
  .price-block strong { font-size: 21px; }
  .catalog-note { font-size: 12px; }
  .order-section { padding: 58px 12px 72px; }
  .order-heading > p { font-size: 14px; }
  .cart-panel, .checkout-form { padding: 20px 16px; }
  .cart-totals > div, .cart-item-copy > span, .order-help, .order-message { font-size: 12px; }
  .admin-topbar { padding-left: 12px; padding-right: 12px; }
  .admin-topbar .brand-logo { width: 132px; height: 44px; }
  .admin-topbar .brand-product { max-width: 98px; font-size: 9px; }
  .admin-topbar .admin-outline-link, .admin-topbar .admin-outline-button { min-height: 40px; padding: 0 9px; font-size: 11px; }
  .admin-main { width: calc(100% - 24px); padding: 26px 0 60px; }
  .admin-login { margin-top: 20px; padding: 26px 20px; }
  .admin-login h1 { font-size: clamp(32px, 9vw, 42px); line-height: 1.08; }
  .admin-login > p, .admin-dashboard-head p { font-size: 14px; }
  .admin-login input, .admin-actions select { font-size: 16px; }
  .admin-login label span, .admin-actions label span { font-size: 13px; }
  .admin-login button { font-size: 14px; }
  .admin-dashboard h1 { font-size: clamp(30px, 8vw, 40px); }
  .admin-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin-bottom: 24px; overflow: visible; }
  .admin-tabs button { padding: 0 7px; font-size: 12px; }
  .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
  .admin-summary div { min-height: 80px; padding: 14px; }
  .admin-summary strong { font-size: 24px; }
  .admin-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-empty { padding: 45px 16px; }
  .order-card { padding: 18px; }
  .order-card > header { flex-direction: column; }
  .order-status { width: 100%; }
  .readable-order-status { width: 100%; flex: none; }
  .admin-actions label:nth-child(2) .readable-select-list { left: auto; right: 0; }
  .order-customer { grid-template-columns: 1fr; }
  .order-customer div { grid-row: auto; }
  .order-customer a { text-align: left; font-size: 13px; }
  .order-email-button { margin-left: 0; min-height: 40px; }
  .staff-user-card { padding: 18px; }
  .staff-user-head { flex-direction: column; gap: 10px; }
  .staff-user-head a { font-size: 13px; }
  .approval-badge { align-self: flex-start; }
  .staff-user-controls { grid-template-columns: 1fr; }
  .staff-user-controls button { width: 100%; }
  .manual-verify-note { font-size: 13px; }
  .change-password-form { padding: 18px; }
  .dealer-auth-intro h1 { font-size: clamp(36px, 9vw, 48px); }
  .dealer-auth-intro p { font-size: 14px; line-height: 1.6; }
  .dealer-auth-card { max-width: none; }
  .dealer-table-wrap { overflow: visible; border: 0; background: transparent; }
  .dealer-price-table { min-width: 0; width: 100%; display: block; }
  .dealer-price-table thead { display: none; }
  .dealer-price-table tbody { display: grid; gap: 12px; }
  .dealer-price-table tr { display: block; padding: 14px 16px; background: white; border: 1px solid #dce1e5; }
  .dealer-price-table td { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 8px 0; text-align: right; font-size: 14px; }
  .dealer-price-table td:first-child { display: block; text-align: left; font-size: 17px; }
  .dealer-price-table td:first-child::before { display: none; }
  .dealer-price-table td:last-child { border-bottom: 0; }
  .dealer-price-table td::before { content: attr(data-label); flex: 0 0 auto; color: #6b7780; font-size: 12px; font-weight: 700; text-align: left; }
  .dealer-quantity { grid-template-columns: 38px 50px 38px; }
  .dealer-quantity button, .dealer-quantity input { height: 38px; }
  .dealer-quantity input { width: 50px; }
  .dealer-checkout { padding: 20px 16px; }
  .dealer-checkout-copy h2 { font-size: 27px; }
  .dealer-order-total { padding: 16px; }
  .dealer-order-total strong { font-size: 22px; }
}

@media (max-width: 380px) {
  .topbar nav a { font-size: 11px; }
  .topbar .brand-logo { width: 138px; }
  .topbar .brand-product { max-width: 104px; }
  .admin-topbar .brand-product { display: none; }
  .product-image-actions { flex-wrap: wrap; }
}

@media (max-width: 820px) {
  .admin-dashboard-head { align-items: stretch; flex-direction: column; }
  .orders-grid { grid-template-columns: 1fr; }
  .dealer-auth-shell { grid-template-columns: 1fr; gap: 24px; }
  .dealer-auth-intro { padding: 10px 0; }
  .dealer-portal-head { align-items: stretch; flex-direction: column; }
}
@media (max-width: 560px) {
  .admin-main { width: min(100% - 20px, 1280px); padding-top: 28px; }
  .admin-login { padding: 26px 20px; }
  .admin-actions { align-items: stretch; flex-direction: column; }
  .admin-actions label { min-width: 0; }
  .admin-summary div { padding: 16px; align-items: flex-start; flex-direction: column; }
  .order-card { padding: 18px 15px; }
  .order-card > header { flex-direction: column; }
  .order-status { width: 100%; }
  .order-customer { grid-template-columns: 1fr; }
  .order-customer div { grid-row: auto; }
  .order-customer a { text-align: left; }
  .admin-userbar > span { display: none; }
  .admin-tabs { width: 100%; overflow-x: auto; }
  .staff-user-controls { grid-template-columns: 1fr; }
  .staff-registration-link { flex-direction: column; }
}

/* Dealer operating dashboard and private funds/lead records */
.dealer-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.dealer-sidebar { position: sticky; top: 92px; display: grid; gap: 5px; padding: 20px 12px; border: 1px solid #dce1e5; background: #fff; }
.dealer-sidebar .section-kicker { padding: 0 10px 12px; }
.dealer-sidebar button { min-height: 44px; padding: 9px 13px; border: 0; border-radius: 5px; background: transparent; color: #4c5966; text-align: left; font-size: 13px; font-weight: 800; cursor: pointer; }
.dealer-sidebar button:hover, .dealer-sidebar button.active { background: #e5f1ff; color: #1459c7; }
.dealer-sidebar button.active { box-shadow: inset 3px 0 #2466f5; }
.dealer-content { min-width: 0; }
.dealer-panel[hidden] { display: none !important; }
.dealer-panel { display: grid; gap: 20px; }
.dealer-section-heading h1 { margin: 4px 0 8px; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; letter-spacing: -.05em; }
.dealer-section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.dealer-section-heading p { margin: 0; color: #66717a; font-size: 14px; line-height: 1.6; }
.dealer-section-heading.compact { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dealer-section-heading.compact button, .dealer-surface > button { min-height: 37px; padding: 8px 12px; border: 1px solid #cbd7e2; background: white; color: #2456be; font-size: 12px; font-weight: 800; cursor: pointer; }
.dealer-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dealer-metrics article { min-width: 0; min-height: 108px; padding: 19px; border: 1px solid #dce1e5; border-radius: 6px; background: white; box-shadow: 0 2px 5px rgba(15, 23, 42, .04); }
.dealer-metrics span { display: block; color: #6b7580; font-size: 12px; font-weight: 700; }
.dealer-metrics strong { display: block; margin-top: 12px; color: #111820; font-size: clamp(23px, 2.6vw, 34px); line-height: 1.1; overflow-wrap: anywhere; }
.dealer-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dealer-surface { min-width: 0; padding: 22px; border: 1px solid #dce1e5; border-radius: 6px; background: white; box-shadow: 0 2px 5px rgba(15, 23, 42, .035); }
.dealer-surface h2 { margin: 5px 0 13px; font-size: 23px; letter-spacing: -.035em; }
.dealer-surface p { color: #66717a; line-height: 1.55; }
.dealer-wallet-hero { display: block; margin: 7px 0; color: #1268d6; font-size: clamp(30px, 3.5vw, 44px); letter-spacing: -.045em; overflow-wrap: anywhere; }
.dealer-record-list { display: grid; gap: 0; }
.dealer-record { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid #e8ecef; }
.dealer-record:first-child { border-top: 0; }
.dealer-record > div:first-child { min-width: 0; }
.dealer-record strong { display: block; color: #111820; font-size: 15px; overflow-wrap: anywhere; }
.dealer-record span, .dealer-record p { display: block; margin: 5px 0 0; color: #68737d; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.dealer-record-right { display: grid; gap: 5px; justify-items: end; flex: 0 0 auto; text-align: right; }
.dealer-status { display: inline-block !important; width: fit-content; padding: 5px 9px; border-radius: 99px; background: #eef2f5; color: #586673 !important; text-transform: capitalize; font-size: 11px !important; font-weight: 800; }
.dealer-status.approved, .dealer-status.confirmed, .dealer-status.completed, .dealer-status.converted { background: #e4f8f0; color: #137257 !important; }
.dealer-status.pending, .dealer-status.new { background: #fff3d8; color: #805d12 !important; }
.dealer-status.rejected, .dealer-status.cancelled, .dealer-status.lost { background: #fee9e7; color: #aa332d !important; }
.dealer-empty { margin: 4px 0 !important; padding: 17px 0; color: #75808a; font-size: 13px; }
.dealer-form { display: grid; gap: 13px; }
.dealer-form h2 { margin-bottom: 1px; }
.dealer-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dealer-form-grid label { min-width: 0; }
.dealer-form-grid label span, .dealer-lead-status span { display: block; margin-bottom: 6px; color: #596572; font-size: 12px; font-weight: 800; }
.dealer-form-grid input, .dealer-form-grid textarea, .dealer-form-grid select, .dealer-lead-status select { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid #cbd4dc; border-radius: 3px; background: #fff; color: #111820; font: inherit; font-size: 14px; }
.dealer-form-grid textarea { resize: vertical; }
.dealer-form-grid .wide-field { grid-column: 1 / -1; }
.dealer-form > button { justify-self: start; min-height: 43px; padding: 10px 18px; border: 0; background: linear-gradient(100deg, #3139f9, #0ecfd5); color: white; font-weight: 800; cursor: pointer; }
.dealer-form > button:disabled { opacity: .55; cursor: wait; }
.dealer-helper { margin: 0; color: #707c85; font-size: 12px; }
.dealer-lead-contact { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 9px; }
.dealer-lead-contact a { color: #2456be; font-size: 12px; overflow-wrap: anywhere; }
.dealer-lead-status .readable-select-list { left: auto; right: 0; }
.dealer-lead-status { flex: 0 0 140px; }
.dealer-fund-amount { white-space: nowrap; }
.dealer-fund-amount.positive { color: #147457; }
.dealer-fund-amount.negative { color: #a63c36; }
.dealer-inline-actions { display: flex; gap: 7px; }
.dealer-inline-actions button { min-height: 34px; padding: 6px 9px; border: 1px solid #ccd4da; background: white; color: #2456be; font-size: 11px; font-weight: 800; cursor: pointer; }
.dealer-inline-actions button:hover { background: #eef5ff; }
.dealer-order-history { margin-top: 4px; }
.admin-tab-panel > .dealer-surface { margin-top: 18px; }

@media (max-width: 980px) {
  .dealer-shell { grid-template-columns: 1fr; }
  .dealer-sidebar { position: static; display: flex; gap: 5px; overflow-x: auto; padding: 8px; }
  .dealer-sidebar .section-kicker { display: none; }
  .dealer-sidebar button { flex: 0 0 auto; min-height: 42px; white-space: nowrap; }
  .dealer-sidebar button.active { box-shadow: inset 0 -3px #2466f5; }
  .dealer-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .dealer-overview-grid, .dealer-form-grid { grid-template-columns: 1fr; }
  .dealer-form-grid .wide-field { grid-column: auto; }
  .dealer-metrics { gap: 8px; }
  .dealer-metrics article { min-height: 88px; padding: 14px; }
  .dealer-metrics strong { font-size: 24px; }
  .dealer-surface { padding: 17px; }
  .dealer-record { flex-wrap: wrap; }
  .dealer-record-right { width: 100%; justify-items: start; text-align: left; }
  .dealer-lead-status { flex: 1 1 100%; }
  .admin-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
  .admin-tabs button { flex: 1 1 auto; }
}
