﻿:root {
  color-scheme: light;
  --bg: #071013;
  --panel: #ffffff;
  --panel-soft: #f4f8f8;
  --line: #d4e0e2;
  --text: #203033;
  --muted: #657577;
  --brand: #ff1616;
  --brand-dark: #c80f14;
  --brand-2: #67d1cd;
  --brand-3: #ff1616;
  --danger: #b42318;
  --good: #0f7a4f;
  --warn: #b45309;
  --shadow: 0 24px 64px rgba(36, 41, 43, 0.14);
  --radius: 8px;
  --sidebar: 286px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(232, 243, 21, 0.07) 0 1px, transparent 1px 42px),
    linear-gradient(45deg, rgba(103, 209, 205, 0.06) 0 1px, transparent 1px 38px),
    linear-gradient(120deg, rgba(255, 22, 22, 0.13), transparent 24%, rgba(103, 209, 205, 0.1) 72%, transparent),
    var(--bg);
}

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

button {
  cursor: pointer;
}

.app {
  min-height: 100vh;
}

.public-site {
  min-height: 100vh;
  color: #eef8f8;
  background:
    linear-gradient(90deg, rgba(103, 209, 205, 0.11) 1px, transparent 1px),
    linear-gradient(180deg, rgba(232, 243, 21, 0.07) 1px, transparent 1px),
    linear-gradient(120deg, rgba(255, 22, 22, 0.18), transparent 38%, rgba(103, 209, 205, 0.12)),
    linear-gradient(135deg, #05090b, #0d1a1d 58%, #14080a);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(103, 209, 205, 0.22);
  background: rgba(5, 9, 11, 0.84);
  backdrop-filter: blur(16px);
}

.public-logo,
.public-nav button,
.public-login-button {
  border: 0;
  color: inherit;
  background: transparent;
}

.public-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  font-weight: 900;
}

.public-logo span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--brand);
}

.public-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.public-nav button,
.public-login-button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 800;
}

.public-nav button {
  color: rgba(238, 248, 248, 0.78);
}

.public-nav button.active,
.public-nav button:hover {
  color: #fff;
  background: rgba(103, 209, 205, 0.13);
}

.public-login-button {
  background: #e8f315;
  color: #061013;
}

.public-hero,
.public-page-hero,
.public-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 26px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 54px 0;
}

.public-fence-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  grid-template-columns: minmax(0, 820px);
  align-content: end;
  min-height: calc(100vh - 74px);
  padding: 92px max(18px, calc((100vw - 1180px) / 2)) 84px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 9, 11, 0.72) 0%, rgba(5, 9, 11, 0.46) 39%, rgba(5, 9, 11, 0.08) 72%),
    linear-gradient(180deg, rgba(5, 9, 11, 0.06), rgba(5, 9, 11, 0.42)),
    url("home-render-standard.png") center center / cover no-repeat;
}

.public-fence-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(103, 209, 205, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(232, 243, 21, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.42;
}

.public-fence-hero .public-hero-copy {
  max-width: 780px;
}

.public-hero-brand-title {
  display: block;
}

.public-hero-brand-title h1 {
  max-width: 900px;
}

.metalcolor-title {
  display: inline-block;
  color: #fff;
}

.public-hero-brand-title .metalcolor-title .metalcolor-red,
.public-hero-brand-title .metalcolor-title span:nth-of-type(2) {
  color: #ff1616;
}

.metalcolor-registered {
  color: #fff;
  font-size: 0.24em;
  line-height: 1;
  margin-left: 8px;
  vertical-align: super;
}

.public-fence-hero .public-hero-copy h1,
.public-fence-hero .public-hero-copy p,
.public-fence-hero .eyebrow {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.46);
}

.public-hero-copy h1,
.public-page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 82px;
  line-height: 0.94;
  letter-spacing: 0;
}

.public-hero-copy p,
.public-page-hero p,
.public-section p {
  color: rgba(238, 248, 248, 0.78);
}

.public-hero-copy > p {
  max-width: 720px;
  font-size: 19px;
}

.public-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.public-ghost-dark {
  color: #eef8f8;
  border-color: rgba(238, 248, 248, 0.3);
}

.public-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.public-stat-row span,
.public-mini-map,
.public-feature-grid article,
.public-value-grid article,
.public-service-grid article,
.public-project-grid article,
.public-blog-grid article,
.public-module-grid article,
.public-b2b-auth article,
.public-product-grid article,
.public-contact-form {
  border: 1px solid rgba(103, 209, 205, 0.22);
  border-radius: 8px;
  background: rgba(7, 16, 19, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.public-stat-row span {
  display: block;
  padding: 14px;
  color: rgba(238, 248, 248, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.public-stat-row strong {
  display: block;
  color: #e8f315;
  font-size: 22px;
}

.public-hero-swatches {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.public-page-hero {
  padding: 88px 0 36px;
}

.public-page-hero p {
  max-width: 780px;
  font-size: 18px;
}

.public-section {
  padding: 42px 0;
}

.public-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.public-section h2 {
  margin: 0;
  color: #fff;
  font-size: 42px;
  line-height: 1;
}

.public-split,
.public-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 22px;
  align-items: start;
}

.public-mini-map,
.public-value-grid,
.public-feature-grid,
.public-service-grid,
.public-project-grid,
.public-blog-grid,
.public-module-grid,
.public-b2b-auth,
.public-product-grid {
  display: grid;
  gap: 12px;
}

.public-mini-map {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}

.public-mini-map span,
.public-mini-map button,
.public-advantage-grid span {
  min-height: 42px;
  padding: 10px;
  border: 1px solid rgba(238, 248, 248, 0.14);
  border-radius: 8px;
  color: #eef8f8;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
}

.public-mini-map button {
  background: #e8f315;
  color: #061013;
}

.public-value-grid,
.public-feature-grid,
.public-module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-service-grid,
.public-project-grid,
.public-blog-grid,
.public-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-b2b-auth {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.public-feature-grid article,
.public-value-grid article,
.public-service-grid article,
.public-project-grid article,
.public-blog-grid article,
.public-module-grid article,
.public-b2b-auth article,
.public-product-grid article {
  padding: 16px;
}

.public-feature-grid strong,
.public-value-grid strong,
.public-service-grid strong,
.public-project-grid strong,
.public-blog-grid strong,
.public-module-grid strong,
.public-b2b-auth strong,
.public-product-grid strong {
  display: block;
  color: #fff;
  font-size: 18px;
}

.public-feature-grid span,
.public-value-grid span,
.public-module-grid p,
.public-b2b-auth p,
.public-product-grid p,
.public-service-grid p,
.public-project-grid p,
.public-blog-grid p {
  color: rgba(238, 248, 248, 0.72);
}

.public-product-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

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

.public-project-grid article > span,
.public-blog-grid small {
  color: #e8f315;
  font-weight: 900;
}

.public-cta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 40px;
  padding: 24px;
  border: 1px solid rgba(232, 243, 21, 0.32);
  border-radius: 8px;
  background: rgba(232, 243, 21, 0.08);
}

.public-configurator-cta {
  align-items: end;
  border-color: rgba(255, 22, 22, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 22, 22, 0.18), rgba(7, 16, 19, 0.92) 52%),
    rgba(232, 243, 21, 0.08);
}

.public-configurator-cta h2 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1.04;
  letter-spacing: 0;
}

.public-configurator-cta p:not(.eyebrow) {
  margin: 10px 0 0;
  color: rgba(238, 248, 248, 0.76);
  font-size: 17px;
}

.public-configurator-cta .eyebrow {
  color: #e8f315;
  font-size: 15px;
}

.public-configurator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.public-contact-form {
  padding: 18px;
}

.public-contact-form .field span {
  color: rgba(238, 248, 248, 0.78);
}

.public-contact-form input,
.public-contact-form textarea {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(103, 209, 205, 0.24);
}

.public-section-note {
  max-width: 360px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.public-fence-grid,
.public-fence-content-grid,
.public-catalog-flow,
.public-catalog-grid,
.public-catalog-models,
.public-home-fence-grid,
.public-home-fence-strip,
.public-model-grid,
.public-finish-list,
.public-catalog-benefit-grid {
  display: grid;
  gap: 12px;
}

.public-home-fence-section {
  padding-top: 22px;
}

.public-stock-banner {
  padding-top: 26px;
}

.public-stock-banner-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 22, 22, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 22, 22, 0.18), rgba(7, 16, 19, 0.9) 58%, rgba(255, 255, 255, 0.08));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.public-stock-banner-head h2 {
  max-width: 920px;
  margin: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: 0;
}

.public-stock-banner-head .eyebrow {
  color: #e8f315;
  font-size: 20px;
  letter-spacing: 0;
}

.public-stock-banner-head p:not(.eyebrow) {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(238, 248, 248, 0.76);
  font-size: 16px;
}

.public-stock-banner-head > span {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: #ff1616;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.public-stock-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(238, 248, 248, 0.16);
  border-top: 3px solid #ff1616;
  border-radius: 8px;
  background: rgba(7, 16, 19, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.public-stock-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.07);
}

.public-stock-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.public-stock-card-body small {
  color: #ff1616;
  font-weight: 900;
  text-transform: uppercase;
}

.public-stock-card-body strong {
  color: #fff;
  font-size: 19px;
}

.public-stock-specs {
  display: grid;
  gap: 8px;
  margin: 0;
}

.public-stock-specs div {
  display: grid;
  grid-template-columns: minmax(92px, 0.68fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-top: 8px;
  border-top: 1px solid rgba(238, 248, 248, 0.12);
}

.public-stock-specs dt {
  color: rgba(238, 248, 248, 0.58);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.public-stock-specs dd {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

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

.public-home-fence-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(103, 209, 205, 0.22);
  border-radius: 8px;
  background: rgba(7, 16, 19, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.public-home-fence-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.public-home-fence-body {
  display: grid;
  grid-template-rows: auto auto auto minmax(48px, 1fr) auto;
  gap: 10px;
  height: 100%;
  padding: 16px;
}

.public-home-fence-body small,
.public-home-fence-strip small {
  color: #ff1616;
  font-weight: 900;
  text-transform: uppercase;
}

.public-home-fence-body strong,
.public-home-fence-strip strong {
  display: block;
  color: #fff;
  font-size: 19px;
}

.public-home-model-row {
  align-content: start;
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-home-fence-body .secondary-button {
  align-self: end;
  justify-self: start;
}

.public-home-model-row span {
  padding: 6px 8px;
  border: 1px solid rgba(238, 248, 248, 0.14);
  border-radius: 8px;
  color: #eef8f8;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 900;
}

.public-home-fence-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
}

.public-home-fence-strip article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(103, 209, 205, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.public-home-fence-strip img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

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

.public-fence-content-grid,
.public-catalog-benefit-grid,
.public-model-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.public-catalog-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.public-catalog-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.public-fence-card,
.public-fence-content-grid article,
.public-catalog-flow article,
.public-catalog-card,
.public-model-card,
.public-catalog-benefit-grid article,
.public-finish-panel {
  border: 1px solid rgba(103, 209, 205, 0.22);
  border-radius: 8px;
  background: rgba(7, 16, 19, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.public-fence-card {
  overflow: hidden;
  border-top: 3px solid var(--brand);
}

.public-fence-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
}

.public-fence-body,
.public-fence-content-grid article,
.public-catalog-flow article,
.public-catalog-benefit-grid article {
  padding: 16px;
}

.public-fence-body small,
.public-catalog-body small {
  color: #ff1616;
  font-weight: 900;
  text-transform: uppercase;
}

.public-fence-card strong,
.public-fence-content-grid strong,
.public-catalog-flow strong,
.public-catalog-card strong,
.public-model-card strong,
.public-catalog-benefit-grid strong {
  display: block;
  color: #fff;
  font-size: 18px;
}

.public-fence-card p,
.public-fence-content-grid p,
.public-catalog-flow p,
.public-catalog-card p,
.public-model-card p,
.public-catalog-benefit-grid p {
  color: rgba(238, 248, 248, 0.72);
}

.public-catalog-flow article {
  border-top: 3px solid var(--brand);
}

.public-catalog-flow article > span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #061013;
  background: #e8f315;
  font-size: 12px;
  font-weight: 900;
}

.public-fence-specs,
.public-catalog-tags,
.public-finish-list p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.public-fence-specs span,
.public-catalog-tags span,
.public-finish-list span {
  padding: 6px 8px;
  border-radius: 8px;
  color: #061013;
  background: #e8f315;
  font-size: 12px;
  font-weight: 900;
}

.public-catalog-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
}

.public-catalog-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
}

.public-catalog-body {
  padding: 20px;
}

.public-catalog-models {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.public-catalog-model {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-top: 12px;
  border-top: 1px solid rgba(103, 209, 205, 0.2);
}

.public-catalog-model img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.public-catalog-model span {
  display: block;
  color: #fff;
  font-weight: 900;
}

.public-catalog-model p {
  grid-column: 2;
  margin: -34px 0 0;
  padding-top: 22px;
  font-size: 13px;
  line-height: 1.35;
}

.public-model-matrix {
  margin-top: 24px;
}

.public-interactive-catalog {
  margin: 20px 0 24px;
}

.public-catalog-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(103, 209, 205, 0.22);
  border-top: 3px solid rgba(255, 22, 22, 0.92);
  border-radius: 8px;
  background: rgba(7, 16, 19, 0.76);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.public-filter-field {
  display: grid;
  gap: 7px;
}

.public-filter-field span {
  color: #ff1616;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-filter-field select {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(238, 248, 248, 0.18);
  border-radius: 8px;
  color: #eef8f8;
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 800;
}

.public-filter-field select:focus {
  outline: 2px solid rgba(232, 243, 21, 0.62);
  outline-offset: 2px;
}

.public-catalog-reset {
  min-height: 42px;
  white-space: nowrap;
}

.public-catalog-result-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  color: rgba(238, 248, 248, 0.74);
}

.public-catalog-result-row strong {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  color: #061013;
  background: #e8f315;
  font-weight: 900;
}

.public-interactive-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.public-model-matrix h3 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.08;
}

.public-model-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-top: 3px solid rgba(255, 22, 22, 0.92);
}

.public-model-card img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.public-product-card {
  grid-template-columns: 152px minmax(0, 1fr);
  min-height: 206px;
  border-top-color: rgba(232, 243, 21, 0.9);
}

.public-product-card img {
  width: 152px;
  height: 178px;
  object-fit: contain;
  background: transparent;
}

.public-product-card-body {
  min-width: 0;
}

.public-model-card small {
  display: block;
  color: #ff1616;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-model-finishes,
.public-color-swatch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.public-model-finishes span {
  padding: 6px 8px;
  border: 1px solid rgba(103, 209, 205, 0.22);
  border-radius: 8px;
  color: #eef8f8;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 800;
}

.public-product-specs {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.public-product-specs div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.public-product-specs dt {
  color: rgba(238, 248, 248, 0.58);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-product-specs dd {
  min-width: 0;
  margin: 0;
  color: #eef8f8;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.public-product-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(103, 209, 205, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.public-product-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid rgba(103, 209, 205, 0.22);
  border-radius: 8px;
  color: #eef8f8;
  background: rgba(7, 16, 19, 0.72);
}

.public-product-empty strong {
  display: block;
  margin-bottom: 6px;
}

.public-product-empty p {
  margin: 0;
  color: rgba(238, 248, 248, 0.72);
}

.public-color-swatch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(238, 248, 248, 0.18);
  border-radius: 8px;
  color: #eef8f8;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 900;
}

.public-color-swatch i {
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(238, 248, 248, 0.42);
  border-radius: 5px;
  background: var(--swatch);
}

.public-finish-list .public-color-swatch {
  color: #eef8f8;
  background: rgba(255, 255, 255, 0.06);
}

.public-finish-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 0.66fr);
  gap: 18px;
  margin-top: 20px;
  padding: 20px;
  border-color: rgba(232, 243, 21, 0.34);
  background: rgba(232, 243, 21, 0.08);
}

.public-finish-panel h3 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.08;
}

.public-finish-list {
  grid-template-columns: 1fr;
}

.public-finish-list article {
  padding-top: 12px;
  border-top: 1px solid rgba(238, 248, 248, 0.16);
}

.public-finish-list strong {
  display: block;
  color: #fff;
}

.public-ai-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}

.public-ai-toggle,
.public-ai-panel {
  pointer-events: auto;
}

.public-ai-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid rgba(103, 209, 205, 0.46);
  border-radius: 8px;
  background: #05090b;
  color: #fff;
  box-shadow: 0 18px 48px rgba(4, 12, 14, 0.34);
}

.public-ai-toggle span,
.public-ai-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.public-ai-panel {
  display: none;
  width: min(400px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(103, 209, 205, 0.32);
  border-radius: 8px;
  background: rgba(5, 17, 20, 0.98);
  color: #fff;
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.44);
}

.public-ai-chat.open .public-ai-panel {
  display: grid;
}

.public-ai-panel header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(103, 209, 205, 0.22);
  background:
    linear-gradient(90deg, rgba(255, 22, 22, 0.18), transparent),
    linear-gradient(135deg, rgba(103, 209, 205, 0.14), transparent 60%);
}

.public-ai-panel header div {
  display: grid;
  min-width: 0;
  margin-right: auto;
}

.public-ai-panel header small {
  color: rgba(255, 255, 255, 0.62);
}

.public-ai-messages {
  display: grid;
  gap: 8px;
  max-height: 310px;
  padding: 12px;
  overflow: auto;
}

.public-ai-message {
  width: fit-content;
  max-width: 92%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.public-ai-message.user {
  justify-self: end;
  background: #e8f315;
  color: #061013;
  font-weight: 800;
}

.public-ai-suggestions {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
  overflow-x: auto;
}

.public-ai-suggestions button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid rgba(103, 209, 205, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.public-ai-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(103, 209, 205, 0.2);
}

.public-ai-form input {
  min-width: 0;
  min-height: 40px;
  border: 1px solid rgba(103, 209, 205, 0.36);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
}

.login-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 46px;
  color: #fff;
  background:
    linear-gradient(140deg, rgba(4, 9, 12, 0.98), rgba(13, 26, 29, 0.96) 52%, rgba(33, 10, 13, 0.92)),
    linear-gradient(90deg, rgba(232, 243, 21, 0.1), transparent 42%, rgba(103, 209, 205, 0.12));
}

.login-visual::before,
.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.login-visual::before {
  background:
    linear-gradient(90deg, rgba(103, 209, 205, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(232, 243, 21, 0.1) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(110deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.24));
}

.login-visual::after {
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(232, 243, 21, 0.14) 28% 29%, transparent 29% 58%, rgba(103, 209, 205, 0.18) 58% 59%, transparent 59%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 8px);
  mix-blend-mode: screen;
}

.login-visual > * {
  position: relative;
  z-index: 1;
}

.login-visual h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(38px, 6vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

.login-visual p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.tech-stage {
  position: absolute;
  inset: 92px 54px auto auto;
  width: min(38vw, 420px);
  aspect-ratio: 1.35;
  border: 1px solid rgba(103, 209, 205, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(103, 209, 205, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(232, 243, 21, 0.12) 1px, transparent 1px),
    rgba(1, 8, 10, 0.48);
  background-size: 24px 24px;
  box-shadow: inset 0 0 34px rgba(103, 209, 205, 0.12), 0 24px 80px rgba(0, 0, 0, 0.22);
}

.tech-node,
.tech-line {
  position: absolute;
  display: grid;
  place-items: center;
}

.tech-node {
  width: 58px;
  height: 38px;
  border: 1px solid rgba(232, 243, 21, 0.66);
  border-radius: 6px;
  background: rgba(4, 9, 12, 0.92);
  color: #e8f315;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(232, 243, 21, 0.18);
}

.tech-node.core {
  left: 50%;
  top: 50%;
  width: 78px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-color: rgba(103, 209, 205, 0.78);
  color: #ffffff;
}

.tech-node.node-a { left: 12%; top: 18%; }
.tech-node.node-b { right: 12%; top: 24%; }
.tech-node.node-c { right: 25%; bottom: 16%; }

.tech-line {
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(103, 209, 205, 0.84), transparent);
}

.tech-line.line-a {
  left: 24%;
  top: 36%;
  width: 150px;
  transform: rotate(18deg);
}

.tech-line.line-b {
  left: 47%;
  top: 45%;
  width: 128px;
  transform: rotate(-14deg);
}

.tech-line.line-c {
  left: 52%;
  top: 62%;
  width: 112px;
  transform: rotate(32deg);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark,
.avatar-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.brand-logo,
.document-brand-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.brand-logo {
  width: 54px;
  height: 54px;
  padding: 5px;
}

.brand-logo img,
.document-brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 12px;
  max-width: 720px;
}

.metric-chip {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.metric-chip span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.metric-chip strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(5, 17, 20, 0.76);
}

.login-card {
  width: min(100%, 520px);
  padding: 28px;
  border: 1px solid rgba(103, 209, 205, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.login-card h2,
.section-head h2,
.modal-card h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.login-card p,
.section-head p,
.empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
}

.demo-users {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.demo-user-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel-soft);
  text-align: left;
}

.demo-user-button small {
  color: var(--muted);
  overflow-wrap: anywhere;
  text-align: right;
}

.login-user-select {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.login-user-select small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.person-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.person-cell > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.person-cell small {
  color: var(--muted);
}

.person-photo,
.account-photo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.account-photo {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.photo-fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
}

.field-grid {
  display: grid;
  gap: 12px;
}

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

.field-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field.full {
  grid-column: 1 / -1;
}

.field-grid > .full,
.config-subsection.full {
  grid-column: 1 / -1;
}

.field,
.inline-field {
  display: grid;
  gap: 6px;
}

.field span,
.inline-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field input,
.field select,
.field textarea,
.inline-field input,
.inline-field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  background: #fff;
  color: var(--text);
}

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

.sample-toggle {
  display: none;
}

.sample-choice,
.sample-request-panel,
.sample-request-fields.full {
  grid-column: 1 / -1;
}

.sample-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--brand-dark);
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 68%, #fff), color-mix(in srgb, var(--brand-2) 26%, #fff));
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 38%, transparent);
}

.sample-choice input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--brand-3);
}

.sample-choice span {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.sample-toggle:checked + .sample-choice,
.sample-choice:has(input:checked) {
  border-color: var(--brand-3);
  background: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}

.sample-request-fields {
  display: none;
}

.sample-toggle:checked ~ .sample-request-fields {
  display: grid;
}

.sample-request-panel {
  padding: 12px;
  border: 1px solid var(--brand-dark);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 12%, #fff);
}

.portal-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(103, 209, 205, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(232, 243, 21, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #f7fbfb 0%, #edf4f3 56%, #f9fbf0 100%);
  background-size: 38px 38px, 38px 38px, auto;
}

.portal-shell.theme-dv {
  --brand: #e8f315;
  --brand-dark: #b8c400;
  --brand-2: #88b7b4;
  --brand-3: #020202;
  --good: #4f9b6d;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 22, 22, 0.12), transparent 24%),
    linear-gradient(165deg, #3a3f42 0%, #24292b 58%, #171b1d 100%);
  color: #fff;
  overflow-y: auto;
}

.theme-dv .sidebar {
  background:
    linear-gradient(180deg, rgba(232, 243, 21, 0.16), transparent 28%),
    linear-gradient(120deg, transparent 0 42%, rgba(136, 183, 180, 0.22) 42% 43%, transparent 43%),
    linear-gradient(165deg, var(--distributor-sidebar, #030303) 0%, #101111 58%, #020202 100%);
}

.theme-dv .brand-logo,
.theme-dv .document-brand-logo {
  background: #020202;
  border-color: rgba(232, 243, 21, 0.42);
}

.theme-dv .brand-logo {
  box-shadow: 0 10px 28px rgba(232, 243, 21, 0.16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 18px;
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand small,
.account-card small,
.side-note {
  color: rgba(255, 255, 255, 0.68);
}

.account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.account-card > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-card .role-tag {
  justify-self: start;
}

.avatar-mark {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  background: var(--brand);
}

.role-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 22, 22, 0.18);
  color: #ffd7d7;
  font-size: 12px;
  font-weight: 800;
}

.theme-dv .role-tag {
  background: rgba(232, 243, 21, 0.16);
  color: #f2ff24;
}

.theme-dv .primary-button {
  background: var(--brand);
  color: #050505;
  border-color: var(--brand);
}

.brand-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, #fff), #fff 58%),
    #fff;
}

.brand-preview strong,
.brand-preview small {
  display: block;
}

.brand-preview small {
  color: var(--muted);
}

.distributor-brand-list {
  display: grid;
  gap: 16px;
}

.distributor-brand-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.agent-photo-editor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.agent-photo-editor .field {
  min-width: 0;
}

.agent-photo-upload {
  cursor: pointer;
  white-space: nowrap;
}

.distributor-logo-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.distributor-logo-editor .field {
  min-width: 0;
}

.image-library-upload,
.distributor-logo-upload {
  cursor: pointer;
  white-space: nowrap;
}

.photo-upload-input,
.image-library-upload-input,
.logo-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-group-title {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-dv .nav-group-title {
  color: rgba(232, 243, 21, 0.54);
}

.nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px;
  border: 0;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  text-align: left;
}

.nav-label {
  min-width: 0;
}

.nav button.active,
.nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.theme-dv .nav button.active,
.theme-dv .nav button:hover {
  color: #f7ff57;
  background: rgba(232, 243, 21, 0.12);
  box-shadow: inset 3px 0 0 var(--brand);
}

.nav-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.theme-dv .nav-mark {
  background: rgba(136, 183, 180, 0.22);
  color: #f2ff24;
}

.side-note {
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  line-height: 1.45;
}

.workspace {
  min-width: 0;
  max-width: 100%;
  padding: 24px;
  position: relative;
}

.workspace::before {
  content: "";
  position: fixed;
  inset: 0 0 auto var(--sidebar);
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
  opacity: 0.9;
  pointer-events: none;
  z-index: 2;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: var(--radius);
  padding: 9px 13px;
  border: 1px solid transparent;
  font-weight: 800;
  white-space: nowrap;
}

.primary-button {
  background: var(--brand);
  color: #fff;
}

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

.theme-dv .secondary-button {
  border-color: rgba(136, 183, 180, 0.52);
  color: #263f3d;
}

.ghost-button {
  background: transparent;
  color: var(--muted);
}

.danger-button {
  background: #fff1f0;
  color: var(--danger);
  border-color: #fecaca;
}

.view {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.section,
.stat-card,
.table-panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(29, 41, 55, 0.06);
}

.section {
  padding: 18px;
  min-width: 0;
  max-width: 100%;
}

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

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.section-head.compact {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

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

.two-col {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
}

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

.stat-card {
  padding: 16px;
}

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

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.stat-card small {
  color: var(--muted);
}

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

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

.structure-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 132px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: 0 8px 24px rgba(29, 41, 55, 0.05);
}

button.structure-card {
  cursor: pointer;
}

button.structure-card:hover {
  border-color: rgba(255, 22, 22, 0.34);
  box-shadow: 0 14px 30px rgba(29, 41, 55, 0.09);
}

.theme-dv button.structure-card:hover {
  border-color: rgba(232, 243, 21, 0.56);
}

.structure-card span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 22, 22, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.theme-dv .structure-card span {
  background: rgba(232, 243, 21, 0.18);
  color: #050505;
}

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

.structure-card small,
.structure-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.structure-card.static {
  min-height: 112px;
}

.assistant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.assistant-main h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.assistant-prompt {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfb;
}

.ai-suggestions.inline {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.producer-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pipeline-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 230px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfb;
}

.pipeline-column header {
  display: grid;
  gap: 4px;
}

.pipeline-column header strong {
  font-size: 15px;
}

.pipeline-column header span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 22, 22, 0.1);
  color: var(--brand);
  font-weight: 900;
}

.pipeline-column header small {
  color: var(--muted);
}

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

.pipeline-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pipeline-card small {
  color: var(--muted);
  line-height: 1.35;
}

.pipeline-card span {
  font-weight: 900;
}

.pipeline-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.mini-rights {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 6px;
  min-width: 330px;
}

.mini-rights label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.mini-rights input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

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

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.switch-row strong {
  display: block;
}

.switch-row small {
  color: var(--muted);
}

.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 48px;
}

.toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: 0.18s ease;
}

.toggle span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: 0.18s ease;
}

.toggle input:checked + span {
  background: var(--brand-2);
}

.toggle input:checked + span::after {
  transform: translateX(20px);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

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

.data-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.order-history-row.validated td {
  background: #f5fff9;
}

.order-history-row.invalidated td {
  background: #fff8f7;
}

.order-history-row.validated td:first-child {
  border-left: 4px solid var(--good);
}

.order-history-row.invalidated td:first-child {
  border-left: 4px solid var(--danger);
}

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

.product-database-table {
  min-width: 2400px;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f2f1;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.pill.warn {
  background: #fff7ed;
  color: var(--warn);
}

.pill.good {
  background: #ecfdf5;
  color: var(--good);
}

.pill.danger {
  background: #fff1f0;
  color: var(--danger);
}

.payment-status-cell,
.offer-status-cell {
  display: grid;
  gap: 6px;
  min-width: 170px;
}

.payment-status-cell small,
.offer-status-cell small {
  color: var(--muted);
  font-size: 11px;
}

.payment-status-select,
.offer-status-select,
.order-status-select,
.stock-status-select {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.availability-control,
.stock-status-control {
  display: grid;
  gap: 6px;
  min-width: 150px;
}

.pending-stock-status {
  padding: 6px;
  border: 1px solid rgba(180, 83, 9, 0.35);
  border-radius: 6px;
  background: rgba(180, 83, 9, 0.08);
}

.pending-stock-status small {
  color: var(--warn);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.availability-select {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.product-filter-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.product-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-filter-head strong {
  font-size: 15px;
}

.product-filter-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-filter-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
}

.product-filter-reset {
  min-height: 40px;
}

.status-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.help-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.catalog-card-grid,
.image-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.catalog-card,
.image-library-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.catalog-card-media,
.preview-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  background: #f3f5f5;
}

.catalog-card-media img,
.preview-image img,
.image-library-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-placeholder {
  display: grid;
  place-items: center;
  width: min(82%, 240px);
  min-height: 92px;
  padding: 14px;
  border: 1px dashed rgba(36, 41, 43, 0.26);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.image-placeholder.large {
  min-height: 132px;
}

.preview-image.no-image {
  min-height: 230px;
}

.preview-image.horizontal-config-image {
  min-height: 280px;
}

.preview-image.horizontal-config-image:not(.jaluzea-config-image) img {
  width: 72%;
  height: 72%;
  max-width: 260px;
  max-height: 260px;
  transform: none;
}

.preview-image.jaluzea-config-image {
  min-height: 260px;
  background: #eef4f3;
}

.preview-image.jaluzea-config-image img {
  width: 72%;
  height: 72%;
  max-width: 260px;
  max-height: 260px;
  object-fit: contain;
  transform: none;
}

.preview-image-button.jaluzea-config-image:hover img,
.preview-image-button.jaluzea-config-image:focus-visible img {
  transform: scale(1.02);
}

.preview-note {
  padding: 0 14px 12px;
  margin: -4px 0 0;
}

.preview-image-button {
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: zoom-in;
}

.preview-image-button:hover img,
.preview-image-button:focus-visible img {
  transform: scale(1.02);
}

.preview-image-button.horizontal-config-image:not(.jaluzea-config-image):hover img,
.preview-image-button.horizontal-config-image:not(.jaluzea-config-image):focus-visible img {
  transform: scale(1.02);
}

.preview-image-button:focus-visible {
  outline: 3px solid rgba(255, 22, 22, 0.42);
  outline-offset: -3px;
}

.preview-image-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(7, 16, 19, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.18s ease;
}

.preview-image-button:hover .preview-image-zoom,
.preview-image-button:focus-visible .preview-image-zoom {
  opacity: 1;
  transform: translateY(0);
}

.catalog-card-media span {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(36, 41, 43, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.catalog-card-body,
.image-library-card {
  padding: 14px;
}

.catalog-card-body h3 {
  margin: 8px 0;
  font-size: 18px;
}

.catalog-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.catalog-specs div {
  padding: 8px;
  border-radius: 6px;
  background: var(--panel-soft);
}

.catalog-specs dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-specs dd {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.color-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 6px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  vertical-align: -2px;
}

.catalog-card-price {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}

.catalog-card-price span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.muted-price {
  color: var(--muted);
}

.catalog-image-tools {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.catalog-library-picker {
  display: grid;
  gap: 8px;
}

.catalog-library-picker summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: fit-content;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.catalog-library-picker summary::-webkit-details-marker {
  display: none;
}

.catalog-library-picker-panel {
  display: grid;
  gap: 8px;
}

.catalog-library-picker-panel select {
  width: 100%;
}

.catalog-image-tools .field {
  gap: 5px;
}

.catalog-image-tools select,
.catalog-image-tools input {
  min-height: 38px;
  font-size: 12px;
}

.catalog-image-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.catalog-image-link-row .secondary-button {
  min-height: 38px;
  padding-inline: 12px;
  white-space: nowrap;
}

.catalog-image-tools small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.image-library-form {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.compact-actions {
  align-self: end;
  margin: 0;
}

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

.configurator-preview {
  position: sticky;
  top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  overflow: hidden;
}

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

.summary-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-item strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.configurator-preview .summary-item:first-child {
  grid-column: 1 / -1;
}

.color-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-strip button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(0, 0, 0, 0.24);
  border-radius: 999px;
  background: var(--swatch);
  color: var(--swatch-text);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.color-strip button:hover {
  transform: translateY(-1px);
}

.color-strip button.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--brand), 0 6px 16px rgba(0, 0, 0, 0.18);
}


.order-configurator-view {
  gap: 16px;
}

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

.embedded-configurator {
  margin-top: 0;
}

.order-step {
  display: grid;
  gap: 10px;
}

.order-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-step-head span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 22, 22, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.theme-dv .order-step-head span {
  background: rgba(232, 243, 21, 0.18);
  color: #050505;
}

.order-step-head.final {
  padding-top: 4px;
}

.order-step-grid {
  display: grid;
  gap: 10px;
}

.order-step-grid.types {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.order-step-grid.types .order-choice-card,
.order-step-grid.models .order-choice-card {
  aspect-ratio: 1 / 1;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 6px;
  padding: 8px;
  overflow: hidden;
}

.order-step-grid.types .order-choice-card small,
.order-step-grid.types .order-choice-card > span:not(.order-choice-media):not(.order-color-chip),
.order-step-grid.models .order-choice-card small,
.order-step-grid.models .order-choice-card > span:not(.order-choice-media):not(.order-color-chip) {
  display: none;
}

.order-step-grid.types .order-choice-media,
.order-step-grid.models .order-choice-media {
  height: auto;
  min-height: 0;
  padding: 5px;
}

.order-step-grid.types .order-choice-media img,
.order-step-grid.models .order-choice-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.order-step-grid.types .order-choice-card strong,
.order-step-grid.models .order-choice-card strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.12;
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.order-step-grid.variants {
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}

.order-step-grid.colors {
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 10px;
}

.order-choice-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.order-choice-card:hover,
.order-choice-card.active {
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(29, 41, 55, 0.1);
}

.order-choice-card.active {
  outline: 2px solid rgba(255, 22, 22, 0.16);
}

.theme-dv .order-choice-card.active {
  outline-color: rgba(232, 243, 21, 0.3);
}

.order-choice-media {
  display: grid;
  place-items: center;
  width: 100%;
  height: 128px;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbfb;
  overflow: hidden;
}

.order-choice-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.order-step-grid.types .order-choice-media {
  height: auto;
}

.order-step-grid.models .order-choice-media {
  height: auto;
}

.order-step-grid.models .order-choice-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.order-step-grid.variants .order-choice-media {
  height: 104px;
}

.order-step-grid.colors .order-choice-card {
  gap: 7px;
  min-height: 226px;
  padding: 10px;
}

.order-step-grid.colors .order-choice-media {
  height: 104px;
  padding: 6px;
}

.order-step-grid.colors .order-choice-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90px;
}

.order-step-grid.colors .order-choice-card strong {
  font-size: 14px;
  line-height: 1.2;
}

.order-step-grid.colors .order-choice-card small {
  font-size: 11px;
}

.order-choice-card strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.2;
}

.order-choice-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.order-choice-card > span:not(.order-choice-media):not(.order-color-chip) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.material-link {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.config-subsection {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.subsection-head,
.fence-segment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.subsection-head strong,
.fence-segment-head strong {
  display: block;
}

.subsection-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.transport-breakdown {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.fence-segment-grid,
.gate-grid {
  display: grid;
  gap: 12px;
}

.fence-segment-card,
.gate-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

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

.segment-result-grid .summary-item {
  padding: 8px;
}

.jaluzea-visual {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.jaluzea-visual img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.jaluzea-visual.tinted-preview {
  position: relative;
  isolation: isolate;
  min-height: 320px;
  background: var(--jaluzea-color, #2f3438);
}

.jaluzea-visual.tinted-preview img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  mix-blend-mode: luminosity;
  filter: grayscale(1) contrast(1.06) brightness(1.22);
  opacity: 0.96;
}

.jaluzea-visual.tinted-preview::before,
.jaluzea-visual.tinted-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.jaluzea-visual.tinted-preview::before {
  z-index: 2;
  background: var(--jaluzea-color, #2f3438);
  mix-blend-mode: color;
  opacity: 0.58;
}

.jaluzea-visual.tinted-preview::after {
  z-index: 3;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 30%, rgba(0, 0, 0, 0.18) 75%);
  mix-blend-mode: soft-light;
  opacity: 0.18;
}

.jaluzea-visual.tinted-preview.finish-lucios::after {
  background: linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, 0.56) 27%, transparent 42%, rgba(255, 255, 255, 0.26) 62%, transparent 78%);
  opacity: 0.56;
}

.jaluzea-visual.tinted-preview.finish-supermat img {
  filter: grayscale(1) contrast(0.98) brightness(1.12);
}

.jaluzea-visual.tinted-preview.finish-supermat::after {
  opacity: 0.06;
}

.jaluzea-visual.tinted-preview.finish-decor::before {
  opacity: 0.72;
}

.jaluzea-component-table {
  min-width: 620px;
}

.image-library-card {
  display: grid;
  gap: 10px;
}

.image-library-card img {
  height: 170px;
  border-radius: 6px;
  background: var(--panel-soft);
}

.image-library-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.image-library-card strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.db-cell-input {
  width: 160px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
}

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

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.permission-lock {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}

.permission-lock strong {
  display: block;
  font-size: 22px;
}

.permission-lock p {
  color: var(--muted);
}

.ai-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}

.ai-chat-toggle,
.ai-chat-panel {
  pointer-events: auto;
}

.ai-chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid rgba(103, 209, 205, 0.46);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: #051114;
  color: #fff;
  box-shadow: 0 18px 48px rgba(4, 12, 14, 0.28);
}

.ai-pulse,
.ai-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--brand);
  color: #050505;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 0 4px rgba(232, 243, 21, 0.18);
}

.ai-pulse::before {
  content: "AI";
}

.ai-chat-panel {
  display: none;
  width: min(380px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(103, 209, 205, 0.32);
  border-radius: var(--radius);
  background: rgba(5, 17, 20, 0.97);
  color: #fff;
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.4);
}

.ai-chat.open .ai-chat-panel {
  display: grid;
}

.ai-chat-panel header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(103, 209, 205, 0.22);
  background:
    linear-gradient(90deg, rgba(232, 243, 21, 0.12), transparent),
    linear-gradient(135deg, rgba(103, 209, 205, 0.14), transparent 60%);
}

.ai-chat-panel header div {
  display: grid;
  min-width: 0;
  margin-right: auto;
}

.ai-chat-panel header small {
  color: rgba(255, 255, 255, 0.62);
}

.ghost-button.compact {
  min-height: 32px;
  padding: 6px 9px;
  color: rgba(255, 255, 255, 0.74);
}

.ai-chat-messages {
  display: grid;
  gap: 8px;
  max-height: 310px;
  padding: 12px;
  overflow: auto;
}

.ai-message {
  width: fit-content;
  max-width: 92%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.ai-message.user {
  justify-self: end;
  background: var(--brand);
  color: #050505;
  font-weight: 700;
}

.ai-suggestions {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
  overflow-x: auto;
}

.ai-suggestions button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid rgba(103, 209, 205, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(103, 209, 205, 0.2);
}

.ai-chat-form input {
  min-width: 0;
  min-height: 40px;
  border: 1px solid rgba(103, 209, 205, 0.36);
  border-radius: var(--radius);
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.18s ease;
  z-index: 50;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.document-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.document-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 27, 29, 0.58);
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.image-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 16, 19, 0.72);
}

.image-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1280px, calc(100vw - 24px));
  height: min(920px, calc(100vh - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.image-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.image-panel-head h2 {
  margin: 0;
  font-size: 20px;
}

.image-panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.image-panel-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  height: 100%;
  padding: 12px;
  background: #f3f5f5;
  overflow: auto;
}

.image-panel-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100% - 2px);
  max-height: calc(100% - 2px);
  object-fit: contain;
}

.image-panel-stage.horizontal-config-image-large img {
  max-width: calc(100% - 2px);
  max-height: calc(100% - 2px);
  transform: none;
}

.document-panel {
  position: relative;
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: var(--radius);
  background: #eef2f1;
  box-shadow: var(--shadow);
}

.document-actions {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.document-page {
  display: grid;
  gap: 10px;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 12mm;
  box-sizing: border-box;
  background: #fff;
  color: var(--text);
  font-size: 12px;
}

.document-head,
.document-grid,
.document-total {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.document-head {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.5fr);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 10px;
}

.document-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.document-brand-logo {
  width: 56px;
  height: 56px;
  padding: 6px;
  border-color: var(--line);
  box-shadow: none;
}

.document-head h2 {
  margin: 0;
  font-size: 20px;
}

.document-head small,
.document-grid small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.document-grid > div {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.document-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.document-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.document-table th,
.document-table td {
  padding: 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

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

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

.document-page .summary-item {
  padding: 7px;
}

.document-page .summary-item span {
  font-size: 10px;
}

.document-page .summary-item strong {
  font-size: 12px;
}

.document-page .help-text {
  margin-top: 0;
  font-size: 11px;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  body > *:not(.app) {
    display: none !important;
  }

  body,
  .app,
  .portal-shell {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .portal-shell > .sidebar,
  .portal-shell > .workspace,
  .document-backdrop,
  .document-actions,
  .image-modal {
    display: none !important;
  }

  .document-modal {
    position: static;
    display: block;
    padding: 0;
  }

  .document-panel {
    width: 210mm;
    max-height: none;
    margin: 0;
    overflow: visible;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .document-page {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 12mm;
    page-break-after: avoid;
  }

  .document-head,
  .document-grid,
  .document-table,
  .document-total,
  .document-page .help-text {
    break-inside: avoid;
  }
}

@media (max-width: 980px) {
  .login-screen,
  .portal-shell {
    grid-template-columns: 1fr;
  }

  .order-step-grid.types {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  }

  .order-step-grid.models {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  }

  .order-step-grid.colors {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  }

  .order-step-grid.types .order-choice-card {
    gap: 5px;
    padding: 7px;
  }

  .order-step-grid.types .order-choice-media {
    height: auto;
    padding: 4px;
  }

  .order-step-grid.types .order-choice-card strong {
    font-size: 12px;
    line-height: 1.12;
  }

  .order-step-grid.types .order-choice-card > span:not(.order-choice-media):not(.order-color-chip) {
    display: none;
  }

  .order-step-grid.models .order-choice-card {
    gap: 5px;
    padding: 7px;
  }

  .order-step-grid.models .order-choice-media {
    height: auto;
    padding: 4px;
  }

  .order-step-grid.models .order-choice-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

  .order-step-grid.models .order-choice-card strong {
    font-size: 12px;
    line-height: 1.12;
  }

  .order-step-grid.models .order-choice-card small,
  .order-step-grid.models .order-choice-card > span:not(.order-choice-media):not(.order-color-chip) {
    display: none;
  }

  .login-visual {
    min-height: 360px;
  }

  .tech-stage {
    position: relative;
    inset: auto;
    width: min(100%, 420px);
    margin: 22px 0;
  }

  .login-metrics,
  .stats-grid,
  .two-col,
  .three-col,
  .configurator-layout,
  .segment-result-grid,
  .transport-breakdown,
  .permission-grid,
  .structure-grid,
  .structure-grid.compact,
  .assistant-layout,
  .producer-pipeline,
  .mini-rights,
  .field-grid.three-col,
  .field-grid.two {
    grid-template-columns: 1fr;
  }

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

  .agent-photo-editor {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .agent-photo-upload {
    grid-column: 2;
    justify-self: start;
  }

  .distributor-logo-editor {
    grid-template-columns: 1fr;
  }

  .distributor-logo-upload {
    justify-self: start;
  }

  .configurator-preview {
    position: static;
  }

  .sidebar {
    position: static;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    overflow: visible;
  }

  .brand,
  .account-card {
    align-items: center;
  }

  .nav {
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 14px 0 0;
    padding: 0 0 4px;
    overflow-x: visible;
    scrollbar-width: thin;
  }

  .nav-group {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .nav-group-title {
    flex: 0 0 auto;
    align-self: center;
    margin-right: 3px;
    white-space: nowrap;
  }

  .nav button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }

  .side-note {
    display: none;
  }

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

  .topbar-actions {
    justify-content: flex-start;
  }

  .workspace::before {
    left: 0;
  }

}

@media (max-width: 620px) {
  body {
    overflow-x: hidden;
  }

  .login-screen {
    min-height: auto;
  }

  .login-visual {
    min-height: auto;
  }

  .tech-stage {
    aspect-ratio: 1.25;
  }

  .login-visual h1 {
    font-size: 30px;
    line-height: 1.02;
  }

  .login-visual p {
    font-size: 15px;
  }

  .login-metrics,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .workspace,
  .login-panel,
  .login-visual {
    padding: 16px;
  }

  .image-modal {
    padding: 10px;
  }

  .image-panel {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
  }

  .image-panel-head {
    align-items: center;
  }

  .image-panel-head h2 {
    font-size: 17px;
  }

  .image-panel-stage {
    min-height: 0;
    height: 100%;
    padding: 10px;
  }

  .sidebar {
    padding: 14px;
  }

  .brand {
    padding-bottom: 12px;
  }

  .account-card {
    padding: 10px;
  }

  .workspace {
    padding-top: 16px;
  }

  .section,
  .config-subsection,
  .structure-card,
  .assistant-prompt,
  .fence-segment-card,
  .gate-card {
    padding: 12px;
  }

  .section-head {
    flex-direction: column;
  }

  .section-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .section-head h2,
  .login-card h2 {
    font-size: 21px;
  }

  .login-card {
    padding: 16px;
    box-shadow: 0 10px 28px rgba(36, 41, 43, 0.12);
  }

  .demo-users {
    max-height: 220px;
    margin: 14px 0;
  }

  .demo-user-button {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .demo-user-button small {
    width: 100%;
    text-align: left;
  }

  .person-cell {
    width: 100%;
  }

  .topbar h1 {
    font-size: 28px;
  }

  .form-actions,
  .record-actions,
  .topbar-actions {
    width: 100%;
  }

  .form-actions > *,
  .record-actions > *,
  .topbar-actions > * {
    flex: 1 1 auto;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .danger-button {
    min-width: 0;
    white-space: normal;
  }

  .table-wrap {
    margin-inline: -12px;
    width: calc(100% + 24px);
  }

  .data-table {
    min-width: 760px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 8px;
  }

  .catalog-card-grid,
  .image-library-grid {
    grid-template-columns: 1fr;
  }

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

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

  .color-strip {
    flex-wrap: nowrap;
    margin-inline: -12px;
    padding-inline: 12px;
    overflow-x: auto;
  }

  .color-strip button {
    flex: 0 0 auto;
  }

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

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

  .document-panel {
    width: 100%;
  }

  .ai-chat {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .ai-chat-toggle {
    width: 100%;
    justify-content: center;
  }

  .ai-chat.open .ai-chat-panel {
    width: 100%;
  }

  .ai-chat-form {
    grid-template-columns: 1fr;
  }
}
/* Order configurator final square visual cards */
.order-step-grid.types {
  grid-template-columns: repeat(3, minmax(180px, 220px));
  align-items: stretch;
}

.order-step-grid.models {
  grid-template-columns: repeat(4, minmax(140px, 170px));
  align-items: stretch;
}

.order-step-grid.types .order-choice-card,
.order-step-grid.models .order-choice-card {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  grid-template-rows: 1fr;
  align-content: stretch;
  gap: 0;
  padding: 6px;
  overflow: hidden;
}

.order-step-grid.types .order-choice-card small,
.order-step-grid.types .order-choice-card > span:not(.order-choice-media):not(.order-color-chip),
.order-step-grid.models .order-choice-card small,
.order-step-grid.models .order-choice-card > span:not(.order-choice-media):not(.order-color-chip) {
  display: none !important;
}

.order-step-grid.types .order-choice-media,
.order-step-grid.models .order-choice-media {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 4px;
}

.order-step-grid.types .order-choice-media img,
.order-step-grid.models .order-choice-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.order-step-grid.types .order-choice-card strong,
.order-step-grid.models .order-choice-card strong {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  z-index: 1;
  display: block;
  min-width: 0;
  padding: 4px 5px;
  overflow: hidden;
  border: 1px solid rgba(212, 222, 223, 0.9);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  line-height: 1.08;
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  white-space: normal;
}

@media (max-width: 980px) {
  .order-step-grid.types,
  .order-step-grid.models {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  }

  .order-step-grid.types .order-choice-card,
  .order-step-grid.models .order-choice-card {
    padding: 6px;
  }

  .order-step-grid.types .order-choice-media,
  .order-step-grid.models .order-choice-media {
    height: 100%;
    padding: 4px;
  }

  .order-step-grid.types .order-choice-card strong,
  .order-step-grid.models .order-choice-card strong {
    font-size: 14px;
  }
}

@media (max-width: 980px) {
  .public-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-nav {
    justify-content: flex-start;
  }

  .public-hero,
  .public-split,
  .public-contact-layout,
  .public-service-grid,
  .public-project-grid,
  .public-blog-grid,
  .public-product-grid,
  .public-fence-grid,
  .public-home-fence-grid,
  .public-catalog-card,
  .public-finish-panel,
  .public-catalog-toolbar,
  .public-b2b-auth {
    grid-template-columns: 1fr;
  }

  .public-stat-row,
  .public-advantage-grid,
  .public-value-grid,
  .public-feature-grid,
  .public-module-grid,
  .public-catalog-flow,
  .public-model-grid,
  .public-interactive-catalog-grid,
  .public-home-fence-strip,
  .public-stock-card-grid,
  .public-fence-content-grid,
  .public-catalog-models,
  .public-catalog-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-hero {
    min-height: auto;
    padding-top: 34px;
  }

  .public-fence-hero {
    width: 100%;
    min-height: 680px;
    padding: 76px 24px 64px;
    background-position: center top;
  }

  .public-hero-copy h1,
  .public-page-hero h1 {
    font-size: 56px;
  }

  .public-section h2 {
    font-size: 34px;
  }

}

@media (max-width: 640px) {
  .public-hero,
  .public-page-hero,
  .public-section {
    width: min(100% - 24px, 1180px);
  }

  .public-fence-hero {
    width: 100%;
    min-height: 620px;
    padding: 52px 12px 46px;
    background-position: center top;
  }

  .public-stat-row,
  .public-advantage-grid,
  .public-value-grid,
  .public-feature-grid,
  .public-module-grid,
  .public-catalog-flow,
  .public-model-grid,
  .public-interactive-catalog-grid,
  .public-home-fence-grid,
  .public-home-fence-strip,
  .public-stock-card-grid,
  .public-fence-content-grid,
  .public-catalog-models,
  .public-catalog-benefit-grid,
  .public-mini-map {
    grid-template-columns: 1fr;
  }

  .public-product-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .public-product-card img {
    width: 96px;
    height: 118px;
  }

  .public-hero-actions,
  .public-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .public-hero-actions button,
  .public-cta button,
  .public-login-button {
    width: 100%;
  }

  .public-hero-copy h1,
  .public-page-hero h1 {
    font-size: 40px;
  }

  .public-section h2 {
    font-size: 28px;
  }

  .public-catalog-media img {
    min-height: 220px;
  }

  .public-home-fence-card img {
    aspect-ratio: 16 / 10;
  }

  .public-ai-chat {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .public-ai-toggle {
    justify-self: end;
  }

  .public-ai-panel {
    width: 100%;
  }

  .public-ai-form {
    grid-template-columns: 1fr;
  }
}
