:root {
  color-scheme: light;
  --ink: #173743;
  --muted: #617781;
  --line: #d5e3e7;
  --brand: #343081;
  --brand-dark: #272463;
  --wash: #efeffa;
  --danger: #a93434;
  --accent: #07858d;
  --accent-dark: #046a71;
  --navy: #142f3a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f5f8f9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, textarea, select { font: inherit; }

.portal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(23, 55, 67, .06);
}

.portal-nav__brand { color: var(--brand-dark); font-size: 1.28rem; font-weight: 900; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.portal-nav__links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.portal-nav__links a { padding: 10px 14px; border-radius: 999px; color: #36525c; text-decoration: none; font-weight: 750; }
.portal-nav__links a:hover, .portal-nav__links a.is-active { background: var(--wash); color: var(--brand-dark); }

.portal-hero {
  padding: clamp(58px, 9vw, 110px) clamp(18px, 5vw, 76px);
  background:
    radial-gradient(circle at 82% 20%, rgba(52, 48, 129, .16), transparent 31%),
    linear-gradient(135deg, #fff, #f0effa);
  border-bottom: 1px solid var(--line);
}

.portal-hero__inner, .portal-main { max-width: 1280px; margin: 0 auto; }
.eyebrow { margin: 0; color: var(--brand); font-size: .78rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.portal-hero h1 { max-width: 820px; margin: 8px 0 14px; font-size: clamp(2rem, 5vw, 4.7rem); line-height: 1.02; }
.portal-hero p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.7; }
.portal-main { padding: 44px clamp(18px, 3vw, 40px) 80px; }

.portal-hero--home {
  position: relative;
  overflow: hidden;
  padding-top: clamp(58px, 8vw, 102px);
  padding-bottom: clamp(62px, 8vw, 104px);
  background:
    radial-gradient(circle at 76% 26%, rgba(7, 133, 141, .20), transparent 24%),
    radial-gradient(circle at 88% 72%, rgba(52, 48, 129, .18), transparent 27%),
    linear-gradient(135deg, #ffffff 0%, #f1f7f8 52%, #eeedf8 100%);
}

.portal-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  align-items: center;
  gap: clamp(40px, 7vw, 92px);
}

.portal-hero__copy { position: relative; z-index: 2; }
.portal-hero__copy h1 { max-width: 850px; letter-spacing: -.045em; }
.portal-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button--large { min-height: 50px; padding: 13px 21px; border-radius: 12px; }
.button--ghost { color: var(--navy); background: rgba(255, 255, 255, .75); border-color: #c9dade; }
.button--ghost:hover { background: #fff; border-color: #9eb9bf; }

.portal-hero__benefits {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 0;
  margin: 28px 0 0;
  color: #49636d;
  list-style: none;
  font-size: .92rem;
  font-weight: 750;
}

.portal-hero__benefits li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-right: 8px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: .72rem;
}

.hero-showcase {
  position: relative;
  min-height: 470px;
  isolation: isolate;
}

.hero-showcase__glow {
  position: absolute;
  inset: 8% 0 0 8%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255,255,255,.96), rgba(255,255,255,0) 68%);
}

.hero-showcase__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(22px 28px 30px rgba(31, 60, 70, .2));
}

.hero-vitrine {
  position: absolute;
  inset: 25px 15% 18px 19%;
  border: 18px solid #667a82;
  border-radius: 5px;
  background: linear-gradient(145deg, rgba(226,239,242,.9), rgba(255,255,255,.74));
  box-shadow: 24px 30px 60px rgba(31, 60, 70, .20), inset 0 0 0 5px rgba(255,255,255,.85);
  transform: perspective(900px) rotateY(-7deg) rotateX(1deg);
}

.hero-vitrine::before {
  content: "";
  position: absolute;
  inset: 7% 8% 31%;
  border: 2px solid rgba(69, 97, 107, .4);
  background:
    linear-gradient(120deg, rgba(255,255,255,.78), transparent 42%),
    linear-gradient(#edf4f5, #f9fbfb);
  box-shadow: inset 0 0 22px rgba(42, 78, 89, .08);
}

.hero-vitrine__glass {
  position: absolute;
  top: 13%;
  left: 15%;
  width: 22%;
  height: 48%;
  background: linear-gradient(115deg, rgba(255,255,255,.82), rgba(181,219,224,.18));
  border-left: 1px solid rgba(255,255,255,.95);
  transform: skewY(-10deg);
}

.hero-vitrine__panel {
  position: absolute;
  inset: 70% -18px -18px;
  background: linear-gradient(180deg, #dfe8ea, #f2f5f5);
  border-top: 2px solid #667a82;
}

.hero-vitrine__base {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -29px;
  height: 10px;
  background: #445961;
  border-radius: 3px;
  box-shadow: 0 10px 18px rgba(23,55,67,.18);
}

.hero-showcase__label {
  position: absolute;
  z-index: 2;
  padding: 10px 14px;
  color: var(--navy);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(187, 209, 214, .9);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(23,55,67,.13);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.hero-showcase__label--top { top: 2%; right: 4%; }
.hero-showcase__label--bottom { right: 0; bottom: 13%; color: #fff; background: var(--brand); border-color: var(--brand); }

.portal-home-main { padding-top: clamp(54px, 7vw, 90px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-heading h2 { max-width: 720px; margin: 7px 0 0; font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.08; letter-spacing: -.03em; }
.section-heading > p { max-width: 500px; margin: 0; color: var(--muted); line-height: 1.7; }
.section-heading--compact { margin-bottom: 24px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 22px;
}

.product-tile, .admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 38px rgba(23, 55, 67, .07);
}

.product-tile { overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.product-tile:hover { transform: translateY(-5px); border-color: #bdd6da; box-shadow: 0 20px 52px rgba(23, 55, 67, .13); }
.product-tile__visual { position: relative; display: grid; place-items: center; min-height: 285px; aspect-ratio: 4 / 3; overflow: hidden; color: inherit; background: linear-gradient(145deg, #dfe7e8, #f5f8f8); text-decoration: none; }
.product-tile__visual img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .35s ease; }
.product-tile:hover .product-tile__visual img { transform: scale(1.012); }
.product-tile__badge { position: absolute; top: 15px; left: 15px; padding: 7px 10px; color: var(--brand-dark); background: rgba(255,255,255,.92); border: 1px solid rgba(204,220,224,.9); border-radius: 999px; font-size: .72rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 7px 18px rgba(23,55,67,.08); }
.product-tile__content { padding: 24px; }
.product-tile h2 { margin: 0 0 9px; font-size: 1.45rem; }
.product-tile p { color: var(--muted); line-height: 1.65; }
.product-tile__meta { display: flex; justify-content: flex-end; gap: 10px; align-items: center; margin-top: 22px; flex-wrap: wrap; }

.product-image-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 34px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,.98), transparent 30%),
    linear-gradient(145deg, #e8f2f3, #f8fbfb);
}

.product-image-placeholder__frame {
  position: relative;
  width: 94px;
  height: 124px;
  margin-bottom: 18px;
  border: 9px solid #71858c;
  background: linear-gradient(145deg, rgba(255,255,255,.9), #e5edef);
  box-shadow: inset 0 0 0 4px #d1dcdf, 12px 15px 24px rgba(23,55,67,.13);
}

.product-image-placeholder__frame::after {
  content: "";
  position: absolute;
  left: -15px;
  right: -15px;
  bottom: -16px;
  height: 5px;
  background: #50656d;
  border-radius: 2px;
}

.product-image-placeholder strong { color: var(--navy); font-size: 1rem; }
.product-image-placeholder small { margin-top: 5px; color: var(--muted); }

.home-process {
  margin-top: clamp(64px, 9vw, 110px);
  padding: clamp(30px, 5vw, 54px);
  color: #fff;
  background:
    radial-gradient(circle at 90% 0, rgba(7,133,141,.34), transparent 30%),
    linear-gradient(135deg, #183b47, #23245d);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(23,55,67,.18);
}

.home-process .eyebrow { color: #84d7dc; }
.home-process .section-heading h2 { color: #fff; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.process-grid article { padding: 22px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.13); border-radius: 16px; }
.process-grid span { display: inline-grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--accent); border-radius: 12px; font-weight: 900; }
.process-grid h3 { margin: 18px 0 8px; font-size: 1.18rem; }
.process-grid p { margin: 0; color: #c7d9de; line-height: 1.65; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.button--primary { color: #fff; background: var(--brand); }
.button--primary:hover { background: var(--brand-dark); }
.button--secondary { color: var(--brand-dark); background: var(--wash); border-color: #b8dfe2; }
.button--danger { color: var(--danger); background: #fff4f4; border-color: #edc7c7; }
.button:disabled { opacity: .55; cursor: wait; }

.portal-empty { padding: 50px; text-align: center; color: var(--muted); border: 1px dashed #b9cdd2; border-radius: 18px; }
.portal-footer { padding: 28px; text-align: center; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }

.admin-shell { max-width: 1440px; margin: 0 auto; padding: 30px clamp(16px, 3vw, 42px) 80px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.admin-head h1 { margin: 4px 0; }
.admin-head p { color: var(--muted); margin: 0; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.admin-tab { border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; color: #36525c; background: #fff; font-weight: 800; cursor: pointer; }
.admin-tab.is-active { color: #fff; border-color: var(--brand); background: var(--brand); }
.admin-section[hidden] { display: none; }
.admin-card { padding: clamp(20px, 3vw, 32px); margin-bottom: 22px; }
.admin-card h2, .admin-card h3 { margin-top: 0; }
.admin-note { padding: 14px 16px; margin-bottom: 20px; color: #526b75; background: #f1f8f9; border: 1px solid #d5e9eb; border-radius: 11px; }
.admin-status { min-height: 24px; color: var(--brand-dark); font-weight: 700; }

.admin-image-preview {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.admin-image-preview > img {
  width: min(260px, 40vw);
  max-height: 190px;
  object-fit: contain;
  background: #eef4f5;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.admin-image-preview > div:not(.admin-note) { display: grid; gap: 4px; }
.admin-image-preview small { color: var(--muted); }

.configurator-editor {
  display: grid;
  gap: 12px;
  margin: 14px 0 28px;
}

.configurator-editor__item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfd;
}

.configurator-editor__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.configurator-editor__head code {
  color: var(--muted);
  font-size: .75rem;
  overflow-wrap: anywhere;
}

.configurator-visible {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #38545e;
  font-size: .86rem;
  font-weight: 750;
}

.price-grid, .editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.field { display: grid; gap: 7px; font-weight: 750; color: #38545e; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c7dade;
  border-radius: 9px;
}
.field input:focus, .field textarea:focus { outline: 3px solid rgba(7, 133, 141, .13); border-color: var(--brand); }
.admin-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

.admin-list { display: grid; gap: 12px; }
.admin-list__item { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfd; }
.admin-list__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.admin-list__head h3 { margin: 0 0 5px; }
.admin-list__head p { margin: 0; color: var(--muted); }
.admin-list__actions { display: flex; gap: 7px; flex-wrap: wrap; }
.admin-reference-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; }
.admin-reference-item__cover { height: 112px; overflow: hidden; background: #eef4f5; border-radius: 10px; }
.admin-reference-item__cover img { width: 100%; height: 100%; object-fit: cover; }
.admin-reference-item__cover .product-image-placeholder { min-height: 112px; padding: 12px; }
.admin-reference-item__cover .product-image-placeholder__frame { width: 42px; height: 56px; margin-bottom: 8px; border-width: 5px; }
.admin-reference-images { margin-top: 20px; }
.admin-reference-images h3 { margin-bottom: 12px; }
.admin-reference-images__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.admin-reference-image { display: grid; gap: 9px; margin: 0; padding: 9px; background: #f7fafb; border: 1px solid var(--line); border-radius: 12px; }
.admin-reference-image img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; }
.admin-card-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.admin-card-heading h2 { margin: 5px 0 0; }
.admin-product-selector { width: min(100%, 330px); }
.model-editor-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.model-editor-guide > div { display: grid; gap: 4px; padding: 13px 14px; color: #38545e; background: #eef7f7; border: 1px solid #d8e8ea; border-radius: 11px; }
.model-editor-guide strong { color: var(--brand-dark); }
.model-editor-guide span { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.product-model-admin { display: grid; gap: 14px; margin-top: 20px; }
.product-model-admin__summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; color: #fff; background: linear-gradient(120deg, var(--navy), #245b67); border-radius: 13px; }
.product-model-admin__summary h3 { margin: 4px 0 0; font-size: 1.25rem; }
.product-model-admin__summary .eyebrow { color: #90e0e3; }
.model-count { padding: 6px 10px; color: #d8eff0; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.product-model-group { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbfb; }
.product-model-group__head, .product-model-group__head > div:first-child { display: flex; align-items: flex-start; gap: 13px; }
.product-model-group__head { justify-content: space-between; margin-bottom: 14px; }
.product-model-group__head h3 { margin: 0 0 5px; }
.product-model-group__head p { margin: 0; color: var(--muted); }
.model-step-number { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; color: #fff; background: var(--brand); border-radius: 50%; font-size: .86rem; font-weight: 850; }
.product-model-group__options { display: grid; gap: 10px; }
.product-model-option { display: grid; gap: 12px; padding: 14px; border: 1px solid #d9e6e8; border-radius: 12px; background: #fff; }
.product-model-option__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.product-model-option__head > div:first-child { display: grid; gap: 5px; }
.model-status { width: max-content; padding: 4px 8px; border-radius: 999px; color: #815b08; background: #fff4d6; font-size: .76rem; font-weight: 800; }
.model-status.is-uploaded { color: #08766f; background: #e1f4f2; }
.model-status.is-empty { color: #53656c; background: #edf2f3; }
.model-status.is-featured { color: #6b4d00; background: #fff0bf; }
.product-model-option__empty { padding: 9px 10px; background: #f5f9f9; border-radius: 9px; font-size: .88rem; }
.product-model-upload { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; gap: 12px; }
.product-model-upload .field { margin: 0; }
.product-model-add-option { padding-top: 14px; border-top: 1px dashed #c8dade; }
.showcase-variant-create { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(240px, 1.25fr) auto; align-items: end; gap: 12px; margin-top: 18px; padding: 16px; background: #f1f8f8; border: 1px solid #d5e6e8; border-radius: 13px; }
.showcase-variant-list { display: grid; gap: 11px; }
.showcase-variant-row { display: grid; gap: 12px; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.showcase-variant-row__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.showcase-variant-row__head > div:first-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-inline-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.admin-inline-form .field { flex: 1 1 250px; }
.admin-toggle { display: flex; align-items: center; gap: 8px; color: #38545e; font-weight: 700; }
.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; }
.admin-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; padding: 12px 14px; color: var(--muted); background: #f6fafb; border: 1px solid var(--line); border-radius: 10px; }
.admin-list-toolbar label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.admin-status-select { min-height: 36px; padding: 7px 9px; color: var(--ink); background: #fff; border: 1px solid #c7dade; border-radius: 8px; font-weight: 700; }

.quotes-table { width: 100%; border-collapse: collapse; }
.quotes-table th, .quotes-table td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid #e1eaec; }
.quotes-table th { color: #526b75; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.quote-code { max-width: 300px; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; }
.status-pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #17666a; background: #e5f5f5; font-size: .78rem; font-weight: 800; }

.product-detail {
  max-width: 1380px;
  min-height: 70vh;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) clamp(18px, 4vw, 52px) 90px;
}

.product-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  align-items: end;
  gap: clamp(28px, 5vw, 70px);
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.product-detail__visual {
  position: relative;
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #eaf3f4, #fff);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(23,55,67,.11);
}

.product-detail__visual > img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.product-detail__visual .product-image-placeholder { min-height: 300px; }
.product-detail__visual figcaption { position: absolute; right: 14px; bottom: 14px; left: 14px; padding: 10px 12px; color: #fff; background: rgba(20,47,58,.88); border-radius: 10px; text-align: center; font-size: .82rem; font-weight: 750; backdrop-filter: blur(8px); }

.product-detail__hero h1 {
  margin: 7px 0 15px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.product-detail__lead {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.product-detail__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.product-detail__price { display: grid; gap: 7px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 36px rgba(41, 38, 99, .08); }
.product-detail__price span, .product-detail__price small { color: var(--muted); }
.product-detail__price strong { color: var(--brand); font-size: 1.55rem; }

.product-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
  gap: clamp(28px, 5vw, 68px);
  padding-top: 44px;
}

.product-quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.product-quick-facts div {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.product-quick-facts span { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.product-quick-facts strong { color: var(--navy); font-size: 1.02rem; }

.product-copy { font-size: 1.04rem; line-height: 1.8; }
.product-copy h2 { margin: 0 0 14px; font-size: 1.65rem; }
.product-copy h2:not(:first-child) { margin-top: 38px; }
.product-copy p { color: #526a74; }
.product-copy__section { padding: 28px; margin-bottom: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 32px rgba(23,55,67,.055); }
.product-copy__section h2 { margin-top: 7px; }
.product-color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 9px; margin-top: 16px; }
.product-color-swatch { display: flex; align-items: center; gap: 9px; min-height: 54px; padding: 8px 10px; background: #fbfdfd; border: 1px solid var(--line); border-radius: 10px; }
.product-color-swatch__sample { flex: 0 0 auto; width: 31px; height: 31px; background: var(--swatch-color); border: 1px solid rgba(16,44,53,.24); border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.product-color-swatch > span:last-child { display: grid; min-width: 0; gap: 2px; }
.product-color-swatch strong { color: var(--navy); font-size: .78rem; }
.product-color-swatch small { overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.product-color-note { margin-top: 15px !important; padding: 9px 11px; color: #665417 !important; background: #fff9df; border: 1px solid #eadb98; border-radius: 9px; font-size: .84rem; line-height: 1.5; }
.product-detail__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; margin-top: 22px; color: #fff; background: linear-gradient(135deg, #173b47, #2f2d76); border-radius: 19px; }
.product-detail__cta .eyebrow { color: #8ad8dc; }
.product-detail__cta h2 { margin: 5px 0 8px; color: #fff; }
.product-detail__cta p:not(.eyebrow) { margin: 0; color: #cfdee2; }

.spec-list { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.spec-list div { display: grid; grid-template-columns: minmax(130px, .8fr) 1.3fr; gap: 16px; padding: 13px 16px; background: #fff; border-bottom: 1px solid #e4ecee; }
.spec-list div:last-child { border-bottom: 0; }
.spec-list dt { color: #5b7079; font-weight: 700; }
.spec-list dd { margin: 0; font-weight: 800; }

.model-card { align-self: start; position: sticky; top: 88px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 42px rgba(41, 38, 99, .09); }
.model-card h2 { margin: 4px 0 0; }
.model-viewer-launch { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px; margin-top: 18px; color: var(--navy); text-align: left; background: linear-gradient(145deg, #eef6f7, #f8f8fc); border: 1px solid #cddfe3; border-radius: 14px; cursor: pointer; }
.model-viewer-launch:hover { border-color: #99bec3; box-shadow: 0 10px 28px rgba(23,55,67,.09); }
.model-viewer-launch:disabled { cursor: wait; opacity: .72; }
.model-viewer-launch__icon { display: grid; place-items: center; flex: 0 0 52px; height: 52px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--brand)); border-radius: 14px; font-weight: 900; }
.model-viewer-launch > span:last-child { display: grid; gap: 4px; }
.model-viewer-launch small { color: var(--muted); line-height: 1.4; }
.model-placeholder--compact { min-height: 210px; margin-top: 18px; }
.model-placeholder p { margin-bottom: 0; }
.model-variant-picker { display: grid; gap: 7px; margin: 16px 0 12px; color: #38545e; font-weight: 750; }
.model-variant-picker select { width: 100%; padding: 11px 12px; color: var(--ink); background: #fff; border: 1px solid #cbd8dc; border-radius: 9px; font: inherit; }
.model-variant-picker select:focus { outline: 3px solid rgba(7, 133, 141, .13); border-color: var(--brand); }
.modular-model-viewer { position: relative; width: 100%; height: min(62vh, 620px); min-height: 420px; margin-top: 16px; overflow: hidden; background: linear-gradient(145deg, #f1f1f8, #fff); border-radius: 13px; }
.modular-model-viewer canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.model-help { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: .9rem; }
.model-help.is-error { color: #a52f3a; font-weight: 750; }
.model-placeholder, .map-placeholder { display: grid; place-items: center; min-height: 300px; padding: 34px; text-align: center; color: var(--muted); background: linear-gradient(145deg, #f1f1f8, #fff); border: 1px dashed #c8c7df; border-radius: 13px; }
.model-placeholder strong, .map-placeholder strong { color: var(--ink); }

.portal-hero--compact { padding-top: 65px; padding-bottom: 65px; }
.portal-hero--compact h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.contact-card { padding: clamp(22px, 4vw, 38px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 38px rgba(41, 38, 99, .07); }
.contact-card h2 { margin: 5px 0 22px; }
.contact-details { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-details > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-details span { color: var(--muted); font-weight: 700; }
.contact-details a { color: var(--brand); font-weight: 800; text-decoration: none; }
.map-wrap { margin-top: 22px; }
.map-wrap iframe { display: block; width: 100%; height: 360px; border: 0; border-radius: 13px; }
.map-wrap .map-placeholder { min-height: 220px; }
.contact-form { display: grid; gap: 15px; }
.contact-form label { display: grid; gap: 7px; color: #38545e; font-weight: 750; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; padding: 11px 12px; color: var(--ink); border: 1px solid #c7dade; border-radius: 9px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(52, 48, 129, .13); border-color: var(--brand); }
.contact-consent { display: flex !important; align-items: flex-start; gap: 10px !important; color: var(--muted) !important; font-weight: 600 !important; }
.contact-consent input { margin-top: 3px; }

.references-hero {
  background:
    radial-gradient(circle at 84% 25%, rgba(7,133,141,.2), transparent 28%),
    linear-gradient(135deg, #fff, #f0effa);
}

.references-main { min-height: 52vh; }
.reference-grid { display: grid; gap: 28px; }
.reference-card { display: grid; grid-template-columns: minmax(320px, 1.15fr) minmax(280px, .85fr); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 16px 46px rgba(23,55,67,.085); content-visibility: auto; contain-intrinsic-size: 760px 430px; }
.reference-card__gallery { min-height: 390px; padding: 12px; background: #eaf2f3; }
.reference-card__gallery.has-thumbnails { display: grid; grid-template-rows: minmax(280px, 1fr) 90px; gap: 9px; }
.reference-card__lead, .reference-card__thumbs button { padding: 0; overflow: hidden; background: #dfeaec; border: 0; border-radius: 12px; cursor: zoom-in; }
.reference-card__lead { width: 100%; height: 100%; }
.reference-card__lead img, .reference-card__thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.reference-card__lead:hover img, .reference-card__thumbs button:hover img { transform: scale(1.025); }
.reference-card__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(86px, 1fr); gap: 9px; overflow-x: auto; }
.reference-card__placeholder { min-height: 390px; }
.reference-card__content { align-self: center; padding: clamp(26px, 5vw, 52px); }
.reference-card__content h2 { margin: 12px 0 8px; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.1; }
.reference-card__content > p:last-child { color: var(--muted); line-height: 1.75; white-space: pre-line; }
.reference-card__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.reference-card__meta span { padding: 6px 9px; color: var(--brand-dark); background: var(--wash); border-radius: 999px; font-size: .74rem; font-weight: 850; }
.reference-card__location { margin: 0 0 18px; color: var(--accent-dark); font-weight: 800; }

.reference-lightbox {
  width: min(94vw, 1200px);
  max-width: none;
  padding: 12px;
  color: #fff;
  background: #122c35;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0,0,0,.45);
}
.reference-lightbox::backdrop { background: rgba(7,22,27,.78); backdrop-filter: blur(5px); }
.reference-lightbox img { display: block; width: 100%; max-height: 78vh; object-fit: contain; border-radius: 11px; }
.reference-lightbox p { margin: 12px 52px 4px 8px; color: #d6e3e6; }
.reference-lightbox__close { position: absolute; top: 20px; right: 20px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: #fff; background: rgba(12,35,43,.78); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 720px) {
  .portal-nav { align-items: flex-start; }
  .portal-nav__links a { padding: 8px 9px; font-size: .87rem; }
  .admin-head { align-items: flex-start; flex-direction: column; }
  .quotes-wrap { overflow-x: auto; }
  .admin-list-toolbar { align-items: flex-start; flex-direction: column; }
  .admin-card-heading, .product-model-group__head, .product-model-option__head { align-items: stretch; flex-direction: column; }
  .admin-product-selector { width: 100%; }
  .model-editor-guide { grid-template-columns: 1fr; }
  .product-model-upload { grid-template-columns: 1fr; }
  .showcase-variant-create { grid-template-columns: 1fr; }
  .showcase-variant-row__head { flex-direction: column; }
  .product-detail__hero, .product-detail__layout, .contact-layout { grid-template-columns: 1fr; }
  .portal-hero__grid { grid-template-columns: 1fr; }
  .hero-showcase { min-height: 360px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .process-grid { grid-template-columns: 1fr; }
  .product-quick-facts { grid-template-columns: 1fr; }
  .product-detail__cta { align-items: flex-start; flex-direction: column; }
  .reference-card { grid-template-columns: 1fr; }
  .reference-card__gallery, .reference-card__placeholder { min-height: 300px; }
  .reference-card__gallery.has-thumbnails { grid-template-rows: 240px 78px; }
  .admin-reference-item { grid-template-columns: 1fr; }
  .admin-reference-item__cover { height: 170px; }
  .admin-image-preview { align-items: flex-start; flex-direction: column; }
  .product-tile__visual { min-height: 235px; }
  .model-card { position: static; }
  model-viewer { min-height: 360px; height: 52vh; }
  .spec-list div { grid-template-columns: 1fr; gap: 4px; }
}
