:root {
  --ink: #5e7086;
  --ink-soft: #5e7086;
  --forest: #5e7086;
  --forest-2: #52657c;
  --sage: #e1e6eb;
  --sage-soft: #f5f6f8;
  --cream: #f0f0f0;
  --paper: #ffffff;
  --line: #d1d7de;
  --orange: #5e7086;
  --orange-soft: #e8ebef;
  --blue-soft: #e3e7ec;
  --shadow: 0 20px 60px rgba(94, 112, 134, 0.13);
  --radius: 4px;
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--cream);
}

.customer-app-loading {
  visibility: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(219, 105, 66, 0.42);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.prototype-banner {
  min-height: 38px;
  padding: 6px clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.prototype-banner > span {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.prototype-banner p {
  margin: 0;
  opacity: 0.74;
}

.mode-switch {
  position: absolute;
  right: clamp(18px, 4vw, 64px);
  border: 0;
  padding: 4px 0;
  color: #fff;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.mode-switch span {
  margin-left: 5px;
}

.site-header {
  max-width: 1440px;
  height: 92px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 86px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 116px;
  height: 66px;
  display: block;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.text-button {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
  background: transparent;
  cursor: pointer;
}

.saved-state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

.saved-state span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
}

.hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 84px clamp(24px, 8vw, 120px) 68px;
  background: #f0f0f0;
}

.eyebrow,
.admin-eyebrow {
  margin-bottom: 20px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.hero h1,
.success-card h1 {
  max-width: 850px;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(43px, 6.4vw, 82px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.hero h1 {
  white-space: pre-line;
}

.hero-meta b {
  font: inherit;
}

.saved-state b {
  font: inherit;
}

.site-text-editor {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.hero > p {
  max-width: 620px;
  margin: 28px 0 25px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  gap: 24px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 600;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-meta i {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  font-style: normal;
  font-size: 11px;
}

.builder-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 86px) 110px;
  background: var(--paper);
}

.progress-nav {
  height: 116px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.progress-step {
  min-width: 54px;
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  color: #8a9691;
  cursor: pointer;
}

.progress-step span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #c4ccc6;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.progress-step strong {
  max-width: 74px;
  font-size: 8px;
  line-height: 1.25;
  font-weight: 600;
}

.progress-step.active,
.progress-step.complete {
  color: var(--forest);
}

.progress-step.active span {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.progress-step.complete span {
  border-color: var(--forest);
  background: var(--sage);
  font-size: 0;
}

.progress-step.complete span::after {
  content: "✓";
  font-size: 12px;
}

.progress-nav > i {
  flex: 1 1 10px;
  height: 1px;
  margin: 0 5px;
  background: var(--line);
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(330px, 0.78fr);
  gap: 62px;
  padding-top: 64px;
}

.form-panel {
  min-width: 0;
}

.step-panel {
  display: none;
  min-height: 660px;
}

.step-panel.active {
  display: block;
  animation: reveal 280ms ease-out;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-intro {
  margin-bottom: 38px;
}

.step-count,
.section-heading + span {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.step-intro h2 {
  margin: 0 0 11px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(30px, 3vw, 43px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.step-intro p,
.section-heading p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

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

.building-card {
  position: relative;
  min-height: 224px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.building-card:hover,
.material-card:hover,
.roof-card:hover,
.door-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 24px rgba(32, 61, 49, 0.08);
}

.building-card.selected {
  border: 2px solid var(--forest);
  box-shadow: 0 0 0 3px rgba(21, 63, 48, 0.08);
}

.checkmark {
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 13px;
  width: 23px;
  height: 23px;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.selected > .checkmark {
  display: grid;
}

.building-visual {
  position: relative;
  height: 142px;
  display: block;
  overflow: hidden;
  background: #e4e8eb;
}

.building-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.house-body {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 19px;
  width: 150px;
  height: 72px;
  transform: translateX(-50%);
  border: 2px solid #7b6652;
  background: repeating-linear-gradient(90deg, #a98f70 0 8px, #9b8266 8px 10px);
  box-shadow: 8px 7px 12px rgba(48, 52, 42, 0.15);
}

.visual-anneks .house-body::before,
.visual-cabin .house-body::before,
.visual-garage .house-body::before {
  content: "";
  position: absolute;
  left: -7px;
  top: -33px;
  width: 160px;
  height: 39px;
  clip-path: polygon(50% 0, 100% 85%, 96% 100%, 50% 25%, 4% 100%, 0 85%);
  background: #3b403b;
}

.visual-cabin .house-body {
  width: 165px;
  background: repeating-linear-gradient(0deg, #9f8263 0 9px, #876f57 9px 11px);
}

.visual-cabin .house-body::before {
  width: 178px;
}

.visual-garage .house-body {
  width: 175px;
  background: repeating-linear-gradient(90deg, #b6a183 0 7px, #a99375 7px 9px);
}

.window {
  position: absolute;
  left: 20px;
  top: 18px;
  width: 34px;
  height: 34px;
  border: 5px solid #e6e8df;
  background:
    linear-gradient(90deg, transparent 46%, #e6e8df 46% 54%, transparent 54%),
    linear-gradient(transparent 46%, #e6e8df 46% 54%, transparent 54%),
    #77969a;
}

.door {
  position: absolute;
  right: 27px;
  bottom: 0;
  width: 31px;
  height: 56px;
  border: 4px solid #dedfd6;
  background: #f0eee5;
}

.garage-door {
  position: absolute;
  left: 20px;
  bottom: 0;
  width: 135px;
  height: 55px;
  border: 5px solid #565d5b;
  background: repeating-linear-gradient(0deg, #48524f 0 10px, #3b4441 10px 12px);
}

.visual-elements {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.visual-elements i {
  position: relative;
  z-index: 2;
  width: 55px;
  height: 90px;
  border: 3px solid #826e57;
  background:
    linear-gradient(90deg, transparent 44%, #826e57 44% 51%, transparent 51%),
    linear-gradient(transparent 30%, #826e57 30% 34%, transparent 34% 66%, #826e57 66% 70%, transparent 70%),
    #bca78d;
  transform: perspective(150px) rotateY(-8deg);
}

.card-copy {
  min-height: 80px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}

.card-copy strong {
  margin-bottom: 5px;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
}

.card-copy small {
  color: var(--ink-soft);
  line-height: 1.4;
}

.tip-card {
  margin-top: 18px;
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  background: var(--sage-soft);
  color: var(--ink-soft);
  font-size: 13px;
}

.tip-card > span {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid var(--forest);
  border-radius: 50%;
  color: var(--forest);
  font-family: serif;
  font-weight: 700;
}

.tip-card p {
  margin: 1px 0;
  line-height: 1.5;
}

.tip-card strong {
  color: var(--ink);
}

.form-actions {
  margin-top: 42px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.primary-button,
.secondary-button,
.submit-button,
.admin-primary {
  min-height: 52px;
  border: 1px solid var(--forest);
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 31px;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.primary-button:hover,
.submit-button:hover,
.admin-primary:hover {
  background: var(--forest-2);
  transform: translateY(-1px);
}

.secondary-button {
  gap: 13px;
  border-color: transparent;
  padding-left: 0;
  background: transparent;
  color: var(--ink);
}

.secondary-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.summary-panel {
  position: sticky;
  top: 24px;
  align-self: start;
  border: 1px solid var(--line);
  background: #f6f6f1;
  box-shadow: var(--shadow);
}

.summary-top {
  padding: 25px 26px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.summary-top span,
.configuration-list dt,
.estimate > span,
.final-summary span,
.contact-heading > span,
.panel-heading > div > span,
.metric-grid article > span,
.pipeline-card span {
  color: #7c8a84;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.summary-top h2 {
  margin: 4px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 25px;
}

.draft-badge {
  padding: 5px 8px;
  border-radius: 20px;
  background: var(--sage);
  color: var(--forest) !important;
  letter-spacing: 0 !important;
}

.configuration-list {
  margin: 6px 26px 0;
}

.configuration-list div {
  min-height: 41px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.configuration-list dt {
  letter-spacing: 0.08em;
}

.configuration-list dd {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.estimate {
  margin: 23px 26px 0;
  padding: 21px 0 14px;
  border-top: 2px solid var(--forest);
}

.estimate strong {
  display: block;
  margin: 6px 0 5px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(23px, 2.3vw, 31px);
  letter-spacing: -0.045em;
}

.estimate button {
  border: 0;
  border-bottom: 1px solid #abb4ae;
  padding: 2px 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  cursor: pointer;
}

.estimate-note {
  margin: 0;
  padding: 0 26px 25px;
  color: #78857f;
  font-size: 10px;
  line-height: 1.45;
}

.dimension-card {
  padding: 26px 28px;
  background: var(--sage-soft);
}

.dimension-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 9px;
  margin-bottom: 31px;
}

.dimension-row label,
.choice-group legend {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.number-field {
  height: 40px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.number-field input {
  width: 67px;
  border: 0;
  padding-left: 11px;
  color: var(--forest);
  background: transparent;
  font-weight: 700;
}

.number-field input:focus {
  outline: 0;
}

.number-field span {
  padding-right: 10px;
  color: var(--ink-soft);
}

.dimension-row input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--forest);
}

.area-result {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #ccd5ce;
}

.area-result span {
  color: var(--ink-soft);
}

.area-result strong {
  font-family: "Manrope", sans-serif;
  font-size: 33px;
  letter-spacing: -0.04em;
}

.choice-group {
  margin: 31px 0 0;
  border: 0;
  padding: 0;
}

.choice-group legend {
  margin-bottom: 14px;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.choice-pill {
  min-height: 43px;
  border: 1px solid var(--line);
  padding: 0 17px;
  background: #fff;
  cursor: pointer;
}

.choice-pill.selected {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.delivery-grid,
.roof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.delivery-card {
  position: relative;
  min-height: 105px;
  border: 1px solid var(--line);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.delivery-card > span {
  position: absolute;
  top: -9px;
  left: 12px;
  padding: 3px 7px;
  background: var(--orange);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.delivery-card strong {
  margin-bottom: 8px;
}

.delivery-card small {
  color: var(--ink-soft);
  line-height: 1.35;
}

.delivery-card.selected {
  border: 2px solid var(--forest);
  background: var(--sage-soft);
}

.roof-card {
  min-height: 115px;
  border: 1px solid var(--line);
  padding: 19px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  background: #fff;
  cursor: pointer;
}

.roof-card.selected {
  border: 2px solid var(--forest);
  background: var(--sage-soft);
}

.roof-icon {
  position: relative;
  width: 76px;
  height: 45px;
  border: 2px solid #8c7961;
  border-top: 0;
  background: repeating-linear-gradient(90deg, #b6a188 0 7px, #a89277 7px 9px);
}

.roof-gable::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -24px;
  width: 82px;
  height: 27px;
  clip-path: polygon(50% 0, 100% 85%, 96% 100%, 50% 25%, 4% 100%, 0 85%);
  background: #46514b;
}

.roof-shed::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -15px;
  width: 82px;
  height: 20px;
  clip-path: polygon(0 60%, 100% 0, 100% 25%, 0 88%);
  background: #46514b;
}

.roof-flat::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -7px;
  width: 82px;
  height: 8px;
  background: #46514b;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.material-card {
  border: 1px solid var(--line);
  padding: 0 0 15px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.material-card.selected {
  border: 2px solid var(--forest);
}

.material-swatch {
  height: 105px;
  margin-bottom: 14px;
  background-color: #a79074;
}

.swatch-vertical {
  background: repeating-linear-gradient(90deg, #aa9479 0 15px, #87735f 15px 17px);
}

.swatch-wild {
  background:
    linear-gradient(8deg, transparent 30%, rgba(80, 62, 44, 0.24) 31% 33%, transparent 34%),
    repeating-linear-gradient(0deg, #987e61 0 17px, #765e46 17px 20px);
}

.swatch-modern {
  background: repeating-linear-gradient(0deg, #a89172 0 11px, #806b55 11px 13px);
}

.material-card strong,
.material-card small {
  margin: 0 14px;
}

.material-card strong {
  font-size: 13px;
}

.material-card small {
  margin-top: 5px;
  color: var(--ink-soft);
}

.material-photo {
  height: 105px;
  display: block;
  margin-bottom: 14px;
  overflow: hidden;
  background: #f0f0f0;
}

.material-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-heading {
  margin: 7px 0 17px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-heading h3 {
  margin: 0 0 4px;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.product-card {
  border: 1px solid var(--line);
  padding: 14px;
}

.product-card h3 {
  margin: 13px 0 4px;
  font-size: 14px;
}

.product-card p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 11px;
}

.product-card > strong {
  display: block;
  margin-top: 12px;
  font-size: 11px;
}

#customer-app .roofing-card small,
#customer-app .material-card small,
#customer-app .product-card > strong {
  display: none;
}

.product-image {
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background: #f0f0f0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-visual {
  height: 105px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--sage-soft);
}

.product-visual i {
  display: block;
  width: 38px;
  height: 68px;
  border: 5px solid #f0eee7;
  outline: 2px solid var(--forest);
  background:
    linear-gradient(90deg, transparent 47%, var(--forest) 47% 53%, transparent 53%),
    linear-gradient(transparent 47%, var(--forest) 47% 53%, transparent 53%),
    #c8d6d4;
}

.window-double {
  gap: 3px;
}

.window-double i {
  width: 34px;
}

.window-wide i {
  width: 67px;
  height: 42px;
}

.quantity {
  height: 38px;
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border: 1px solid var(--line);
}

.quantity button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: 20px;
  cursor: pointer;
}

.quantity span {
  text-align: center;
  font-weight: 800;
}

.door-heading {
  margin-top: 33px;
}

.door-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.door-card {
  min-height: 148px;
  border: 1px solid var(--line);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.door-image {
  flex: 0 0 84px;
  height: 122px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background: #f0f0f0;
}

.door-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.door-card.selected {
  border: 2px solid var(--forest);
  background: var(--sage-soft);
}

.door-visual {
  flex: 0 0 49px;
  height: 86px;
  border: 2px solid #cdd1ca;
  padding: 5px;
  background: #fff;
}

.door-visual i {
  width: 100%;
  height: 100%;
  display: block;
  border: 1px solid #d4d7d0;
  background:
    radial-gradient(circle at 83% 53%, #7e725f 0 2px, transparent 3px),
    repeating-linear-gradient(0deg, #ecece8 0 20px, #d6dad4 20px 21px);
}

.door-glass i {
  background:
    radial-gradient(circle at 83% 53%, #7e725f 0 2px, transparent 3px),
    linear-gradient(#c4d0ce 0 40%, #efefeb 40%);
}

.door-wood i {
  background:
    radial-gradient(circle at 83% 53%, #7e725f 0 2px, transparent 3px),
    repeating-linear-gradient(90deg, #b09169 0 6px, #9b7c58 6px 7px);
}

.door-card > span:last-child {
  display: flex;
  flex-direction: column;
}

.door-card strong {
  margin-bottom: 7px;
  font-size: 12px;
}

.door-card small {
  color: var(--ink-soft);
  font-size: 10px;
}

.final-summary {
  border: 1px solid var(--line);
}

.summary-hero {
  min-height: 110px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 25px;
  background: var(--sage-soft);
}

.summary-hero h3 {
  margin: 6px 0;
  font-family: "Manrope", sans-serif;
  font-size: 24px;
}

.summary-hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.mini-house {
  position: relative;
  flex: 0 0 150px;
  height: 92px;
}

.mini-wall {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 57px;
  border: 2px solid #816d55;
  background: repeating-linear-gradient(90deg, #aa9479 0 7px, #8f7b63 7px 9px);
}

.mini-roof {
  position: absolute;
  z-index: 2;
  top: 4px;
  left: -5px;
  width: 160px;
  height: 36px;
  clip-path: polygon(50% 0, 100% 82%, 96% 100%, 50% 25%, 4% 100%, 0 82%);
  background: #46514b;
}

.mini-wall i {
  position: absolute;
  top: 13px;
  width: 25px;
  height: 25px;
  border: 3px solid #eeeae1;
  background: #819c9c;
}

.mini-wall i:first-child {
  left: 20px;
}

.mini-wall i:nth-child(2) {
  left: 56px;
}

.mini-wall b {
  position: absolute;
  right: 20px;
  bottom: 0;
  width: 26px;
  height: 45px;
  border: 3px solid #e4e2dc;
  background: #f2f0e9;
}

.summary-sections {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 5px 25px;
}

.summary-sections > div,
.summary-sections > button {
  border-bottom: 1px solid var(--line);
}

.summary-sections > div {
  padding: 17px 0 13px;
}

.summary-sections p {
  margin: 6px 0 0;
  font-size: 12px;
}

.edit-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--forest);
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
}

.price-box {
  margin: 21px 25px 25px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 12px;
  background: var(--forest);
  color: #fff;
}

.price-box > div > span {
  color: #b9cbbf;
}

.price-box strong {
  display: block;
  margin-top: 5px;
  font-family: "Manrope", sans-serif;
  font-size: 25px;
}

.confidence {
  align-self: start;
  padding: 5px 8px;
  border-radius: 20px;
  background: #dbe6de;
  color: var(--forest) !important;
  letter-spacing: 0 !important;
}

.price-box p {
  grid-column: 1 / -1;
  margin: 5px 0 0;
  color: #cad7cf;
  font-size: 10px;
  line-height: 1.5;
}

.contact-card,
.delivery-address-card {
  margin-top: 25px;
  padding: 25px;
  background: #f2f0e9;
}

.delivery-address-card {
  border: 1px solid var(--line);
  background: #fff;
}

.contact-heading h3 {
  margin: 5px 0 7px;
  font-family: "Manrope", sans-serif;
  font-size: 23px;
}

.contact-heading p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 13px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-grid label,
.delivery-address-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
}

.contact-grid input,
.delivery-address-grid input {
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 11px;
  background: #fff;
}

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

.address-wide-field {
  grid-column: 1 / -1;
}

.consent {
  margin: 18px 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

.consent input {
  margin-top: 2px;
  accent-color: var(--forest);
}

.spam-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.turnstile-panel {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0.75rem;
}

.turnstile-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.turnstile-panel .turnstile-error {
  color: #9b2c2c;
}

.submit-button {
  width: 100%;
}

.site-footer {
  max-width: 1440px;
  min-height: 96px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 86px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.success-screen {
  min-height: calc(100vh - 38px);
  display: grid;
  place-items: center;
  padding: 35px 20px;
  background:
    radial-gradient(circle at 30% 20%, rgba(219, 230, 222, 0.75), transparent 25%),
    var(--cream);
}

.admin-login-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(34, 45, 52, 0.72);
  backdrop-filter: blur(5px);
}

.admin-login-screen[hidden] {
  display: none;
}

.admin-login-card {
  width: min(430px, 100%);
  padding: 38px;
  display: grid;
  gap: 15px;
  border: 1px solid var(--line);
  background: #f0f0f0;
  box-shadow: 0 24px 70px rgba(25, 35, 42, 0.3);
}

.admin-login-card img {
  width: 145px;
  max-height: 80px;
  object-fit: contain;
  object-position: left center;
}

.admin-login-card > span {
  color: #5e7086;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.admin-login-card h1 {
  margin: -5px 0 0;
  color: #5e7086;
  font-size: 36px;
}

.admin-login-card > p {
  margin: -5px 0 5px;
  color: var(--ink-soft);
  font-size: 11px;
}

.admin-login-card label {
  display: grid;
  gap: 7px;
  color: #5e7086;
  font-size: 10px;
  font-weight: 700;
}

.admin-login-card input {
  height: 46px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: #fff;
  font: inherit;
}

.admin-login-error {
  padding: 10px;
  background: #f7e4de;
  color: #9a4d3b !important;
}

.admin-logout-button {
  width: auto;
  padding: 0 12px;
  font-size: 9px;
}

.success-card {
  max-width: 650px;
  padding: clamp(35px, 7vw, 80px);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 26px;
}

.success-card .eyebrow {
  margin-bottom: 13px;
}

.success-card h1 {
  font-size: clamp(39px, 6vw, 62px);
}

.success-card > p {
  margin: 24px auto;
  color: var(--ink-soft);
  line-height: 1.6;
}

.reference-box {
  margin: 27px 0;
  padding: 18px;
  background: var(--sage-soft);
}

.reference-box span {
  display: block;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.reference-box strong {
  display: block;
  margin-top: 5px;
  font-family: "Manrope", sans-serif;
  font-size: 21px;
}

/* Admin */
.admin-shell {
  min-height: calc(100vh - 38px);
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  background: #f5f4ef;
}

.admin-sidebar {
  min-height: calc(100vh - 38px);
  padding: 27px 20px 18px;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: #fff;
}

.admin-brand {
  margin: 0 9px 42px;
  color: #fff;
}

.admin-brand .brand-mark {
  transform: scale(0.83);
  transform-origin: left center;
}

.admin-brand .brand-text strong {
  font-size: 14px;
}

.admin-brand .brand-text small {
  color: rgba(255, 255, 255, 0.55);
}

.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-nav {
  position: relative;
  min-height: 45px;
  border: 0;
  border-radius: 3px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  text-align: left;
  font-size: 12px;
  cursor: pointer;
}

.admin-nav > span {
  width: 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
}

.admin-nav i {
  margin-left: auto;
  min-width: 22px;
  padding: 3px 6px;
  border-radius: 20px;
  background: var(--orange);
  color: #fff;
  font-style: normal;
  font-size: 9px;
  text-align: center;
}

.admin-nav i.muted {
  background: rgba(255, 255, 255, 0.15);
}

.admin-nav.active {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.admin-nav-bottom {
  margin-top: auto;
}

.admin-user {
  margin-top: 16px;
  padding-top: 18px;
  display: grid;
  grid-template-columns: 33px 1fr auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-user > span {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dbe6de;
  color: var(--forest);
  font-size: 10px;
  font-weight: 800;
}

.admin-user div {
  display: flex;
  flex-direction: column;
}

.admin-user strong {
  font-size: 11px;
}

.admin-user small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
}

.admin-user button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
}

.admin-main {
  min-width: 0;
  padding: 38px clamp(26px, 4vw, 60px) 60px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-header h1 {
  margin: 5px 0 6px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(31px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.admin-header p {
  margin: 0;
  color: var(--ink-soft);
}

.admin-header-actions {
  display: flex;
  gap: 10px;
}

.icon-button {
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.icon-button i {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.admin-primary {
  min-height: 46px;
  padding: 0 17px;
  gap: 17px;
  font-size: 11px;
}

.attention-grid {
  margin-top: 35px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}

.attention-card {
  position: relative;
  min-height: 132px;
  padding: 21px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
}

.attention-card.warm {
  background: #f2e2d6;
}

.attention-card.green {
  background: #dce7df;
}

.attention-card.blue {
  background: #dfe7ea;
}

.attention-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
}

.attention-card div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: baseline;
}

.attention-card div strong {
  grid-row: 1 / 3;
  font-family: "Manrope", sans-serif;
  font-size: 40px;
  letter-spacing: -0.04em;
}

.attention-card div p {
  margin: 0;
  font-weight: 700;
}

.attention-card div small {
  color: var(--ink-soft);
  font-size: 10px;
}

.attention-card > button {
  position: absolute;
  right: 17px;
  bottom: 15px;
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.metric-grid {
  margin: 15px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: #fff;
}

.metric-grid article {
  min-height: 112px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.metric-grid article:last-child {
  border-right: 0;
}

.metric-grid strong {
  margin: 7px 0 4px;
  font-family: "Manrope", sans-serif;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.metric-grid small {
  color: var(--ink-soft);
  font-size: 9px;
}

.metric-grid small.up {
  color: #377259;
}

.admin-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.65fr);
  gap: 15px;
}

.lead-panel,
.admin-side-panel {
  border: 1px solid var(--line);
  background: #fff;
}

.panel-heading {
  min-height: 78px;
  padding: 20px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
  margin: 5px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 19px;
}

.panel-heading button {
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.lead-row {
  width: 100%;
  min-height: 75px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) minmax(125px, 0.8fr) minmax(130px, 0.9fr) minmax(110px, 0.7fr) 18px;
  gap: 12px;
  align-items: center;
  background: #fff;
  text-align: left;
  font-size: 11px;
}

button.lead-row {
  cursor: pointer;
}

button.lead-row:hover {
  background: #f8faf7;
}

.lead-head {
  min-height: 35px;
  background: #f8f8f4;
  color: #83908a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.lead-row > span {
  display: flex;
  flex-direction: column;
}

.lead-row small {
  margin-top: 4px;
  color: #829089;
  font-size: 9px;
}

.lead-customer {
  display: grid !important;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
}

.lead-customer i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--forest);
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
}

.lead-customer b {
  display: flex;
  flex-direction: column;
}

.status {
  align-self: flex-start;
  padding: 5px 8px;
  border-radius: 20px;
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
}

.status.new {
  background: var(--orange-soft);
  color: #9a452b;
}

.status.review {
  background: #f1e5c9;
  color: #765c20;
}

.status.contact {
  background: var(--blue-soft);
  color: #426574;
}

.status.dialog {
  background: var(--sage);
  color: #365b49;
}

.round-add {
  width: 29px;
  height: 29px;
  border-radius: 50% !important;
  background: var(--forest) !important;
  color: #fff !important;
  font-size: 17px !important;
}

.task-list {
  padding: 4px 21px 10px;
}

.task-list label {
  min-height: 65px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.task-list input {
  accent-color: var(--forest);
}

.task-list label > span {
  display: flex;
  flex-direction: column;
}

.task-list strong {
  font-size: 10px;
}

.task-list small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 8px;
}

.task-list time {
  font-size: 9px;
}

.task-list time.overdue {
  color: var(--orange);
  font-weight: 700;
}

.pipeline-card {
  margin: 12px;
  padding: 18px;
  background: var(--ink);
  color: #fff;
}

.pipeline-card > div:first-child {
  display: flex;
  flex-direction: column;
}

.pipeline-card strong {
  margin: 5px 0;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
}

.pipeline-card small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

.pipeline-bars {
  height: 53px;
  margin-top: 17px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.pipeline-bars i {
  flex: 1;
  height: 100%;
  background: #7e9d89;
}

.pipeline-bars i:nth-child(2) {
  height: 82%;
  background: #a0b4a6;
}

.pipeline-bars i:nth-child(3) {
  height: 62%;
  background: #cf9b7b;
}

.pipeline-bars i:nth-child(4) {
  height: 37%;
  background: #e5c3ae;
}

.pipeline-labels {
  margin-top: 5px;
  display: flex;
  justify-content: space-around;
}

.pipeline-labels span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 7px;
  letter-spacing: 0;
}

.calculator-view {
  margin-top: 34px;
}

.calculations-admin-view {
  margin-top: 34px;
}

.calculations-toolbar {
  margin-bottom: 15px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.calculations-toolbar h2 {
  margin: 5px 0;
  font-size: 25px;
}

.calculations-toolbar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.calculation-list-metrics {
  margin-bottom: 15px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: #fff;
}

.calculation-list-metrics article {
  min-height: 92px;
  padding: 17px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.calculation-list-metrics article:last-child {
  border-right: 0;
}

.calculation-list-metrics span {
  color: #7c8a84;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.calculation-list-metrics strong {
  margin: 5px 0 2px;
  font-size: 23px;
}

.calculation-list-metrics small {
  color: var(--ink-soft);
  font-size: 8px;
}

.calculation-list-card {
  border: 1px solid var(--line);
  background: #fff;
}

.calculation-list-controls {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 190px 190px;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.calculation-list-controls label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #778580;
  font-size: 8px;
  font-weight: 700;
}

.calculation-list-controls input,
.calculation-list-controls select {
  height: 39px;
  border: 1px solid var(--line);
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-size: 9px;
}

.calculation-list-row {
  min-height: 66px;
  padding: 8px 18px;
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(150px, 0.8fr) 135px 110px 125px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

button.calculation-list-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

button.calculation-list-row:hover {
  background: #f1f3f5;
}

.calculation-list-head {
  min-height: 34px;
  background: #f6f7f5;
  color: #829089;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.calculation-list-row > span {
  display: flex;
  flex-direction: column;
  font-size: 9px;
}

.calculation-list-row strong {
  font-size: 10px;
}

.calculation-list-row small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 8px;
}

.calculation-list-status {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 18px;
  background: #e6e9eb;
  color: #5e7086;
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
}

.calculation-list-status.review { background: #f1e4ba; color: #80651c; }
.calculation-list-status.approved { background: #dce7df; color: #365b49; }
.calculation-list-status.sent { background: #dfe5ec; color: #4c6178; }

.calculation-list-empty {
  padding: 50px 20px;
  color: var(--ink-soft);
  font-size: 10px;
  text-align: center;
}

.calculator-back-button {
  margin-bottom: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #5e7086;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.requests-admin-view {
  margin-top: 34px;
}

.reports-admin-view,
.settings-admin-view {
  margin-top: 34px;
}

.simple-admin-toolbar {
  margin-bottom: 15px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.simple-admin-toolbar h2 {
  margin: 5px 0;
  font-size: 25px;
}

.simple-admin-toolbar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.report-metrics {
  margin-bottom: 15px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: #fff;
}

.report-filter-bar {
  margin-bottom: 15px;
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  border: 1px solid var(--line);
  background: #fff;
}

.report-filter-bar label {
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #778580;
  font-size: 8px;
  font-weight: 700;
}

.report-filter-bar select,
.report-filter-bar input {
  height: 40px;
  border: 1px solid var(--line);
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-size: 9px;
}

.report-date-control[hidden] {
  display: none;
}

.report-period-summary {
  min-height: 40px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
}

.report-period-summary span {
  color: #7c8a84;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.report-period-summary strong {
  margin-top: 4px;
  font-size: 10px;
}

.report-building-card {
  width: 100%;
}

.report-metrics article {
  min-height: 92px;
  padding: 17px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.report-metrics article:last-child {
  border-right: 0;
}

.report-metrics span,
.simple-card-heading span {
  color: #7c8a84;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.report-metrics strong {
  margin: 5px 0 2px;
  font-size: 23px;
}

.report-metrics small {
  color: var(--ink-soft);
  font-size: 8px;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.simple-admin-card {
  border: 1px solid var(--line);
  background: #fff;
}

.simple-card-heading {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.simple-card-heading h3 {
  margin: 4px 0 0;
  font-size: 16px;
}

.report-status-row {
  min-height: 52px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 150px 1fr 34px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.report-status-row:last-child {
  border-bottom: 0;
}

.report-status-row i {
  height: 7px;
  display: block;
  background: #dfe4e8;
}

.report-status-row i b {
  height: 100%;
  display: block;
  background: #5e7086;
}

.report-status-row strong {
  text-align: right;
}

.settings-link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.settings-card {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.settings-card p {
  max-width: 760px;
  color: var(--ink-soft);
}

.settings-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.settings-field input,
.settings-field textarea {
  padding: 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  text-transform: none;
  letter-spacing: 0;
}

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

.settings-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-soft);
}

.settings-actions .error {
  color: #9b3a2f;
}

.settings-link-grid button {
  min-height: 145px;
  padding: 23px;
  display: grid;
  grid-template-columns: 42px 1fr 25px;
  grid-template-rows: auto auto;
  gap: 5px 14px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.settings-link-grid button:hover {
  border-color: #5e7086;
  background: #f5f6f8;
}

.settings-link-grid button > span {
  width: 42px;
  height: 42px;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  background: #e8ebef;
  color: #5e7086;
  font-size: 17px;
}

.settings-link-grid strong {
  font-size: 13px;
}

.settings-link-grid small {
  color: var(--ink-soft);
  font-size: 9px;
}

.settings-link-grid i {
  grid-column: 3;
  grid-row: 1 / 3;
  color: #5e7086;
  font-size: 17px;
  font-style: normal;
}

.privacy-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand-blue);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 30px;
  display: grid;
  place-items: center;
  background: rgba(30, 42, 52, .45);
}

.privacy-modal[hidden] {
  display: none;
}

.privacy-dialog {
  width: min(760px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 34px;
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(30, 42, 52, .24);
}

.privacy-dialog h2 {
  margin: 10px 0 18px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: .98;
}

.privacy-dialog h3 {
  margin: 24px 0 6px;
  color: var(--brand-blue);
}

.privacy-dialog p {
  color: var(--ink-soft);
}

.privacy-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-blue);
  font-size: 25px;
  cursor: pointer;
}

.privacy-note {
  margin-top: 26px;
  font-size: 12px;
}

.requests-toolbar {
  margin-bottom: 15px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.requests-toolbar h2 {
  margin: 5px 0;
  font-size: 25px;
}

.requests-toolbar p {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.request-metrics {
  margin-bottom: 15px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: #fff;
}

.request-metrics article {
  min-height: 92px;
  padding: 17px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.request-metrics article:last-child {
  border-right: 0;
}

.request-metrics span,
.request-detail-card > header span,
.request-detail-section > span,
.request-detail-empty > span {
  color: #7c8a84;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.request-metrics strong {
  margin: 5px 0 2px;
  font-size: 23px;
}

.request-metrics small {
  color: var(--ink-soft);
  font-size: 8px;
}

.requests-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1.4fr) minmax(350px, 0.8fr);
  gap: 15px;
  align-items: start;
}

.request-list-card,
.request-detail-card {
  border: 1px solid var(--line);
  background: #fff;
}

.request-controls {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.request-controls label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #778580;
  font-size: 8px;
  font-weight: 700;
}

.request-controls input,
.request-controls select,
.request-status-select {
  height: 39px;
  border: 1px solid var(--line);
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-size: 9px;
}

.request-list-head,
.request-list-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) minmax(145px, 0.8fr) 125px 135px;
  gap: 12px;
  align-items: center;
}

.request-list-head {
  min-height: 34px;
  padding: 0 17px;
  background: #f6f7f5;
  color: #829089;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.request-list-row {
  width: 100%;
  min-height: 69px;
  padding: 8px 17px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.request-list-row:hover,
.request-list-row.active {
  background: #f1f3f5;
}

.request-list-row.active {
  box-shadow: inset 3px 0 #5e7086;
}

.request-list-row > span {
  display: flex;
  flex-direction: column;
  font-size: 9px;
}

.request-list-row strong {
  font-size: 10px;
}

.request-list-row small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 8px;
}

.request-status {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 18px;
  background: #e6e9eb;
  color: #5e7086;
  font-size: 7px;
  font-weight: 700;
}

.request-status.new { background: #f6dfd1; color: #945637; }
.request-status.review { background: #f1e4ba; color: #80651c; }
.request-status.contact { background: #dce7df; color: #365b49; }
.request-status.dialog { background: #dfe5ec; color: #4c6178; }
.request-status.forgotten { background: #ece9e3; color: #766f65; }

.request-list-empty {
  padding: 50px 20px;
  color: var(--ink-soft);
  font-size: 10px;
  text-align: center;
}

.request-detail-card {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.request-detail-empty {
  min-height: 310px;
  padding: 50px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.request-detail-empty h3 {
  margin: 8px 0;
  font-size: 20px;
}

.request-detail-empty p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.request-detail-card > header {
  padding: 20px 21px;
  border-bottom: 1px solid var(--line);
}

.request-detail-card > header h3 {
  margin: 5px 0 3px;
  font-size: 21px;
}

.request-detail-card > header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
}

.request-detail-actions {
  padding: 13px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.request-status-select {
  grid-column: 1 / -1;
}

.request-detail-section {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.request-detail-section:last-child {
  border-bottom: 0;
}

.request-detail-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.request-detail-grid div {
  display: flex;
  flex-direction: column;
}

.request-detail-grid small {
  color: var(--ink-soft);
  font-size: 7px;
  font-weight: 700;
}

.request-detail-grid strong {
  margin-top: 3px;
  font-size: 9px;
}

.request-option-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.request-option-list li {
  min-height: 30px;
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 8px;
}

.request-option-list li:last-child {
  border-bottom: 0;
}

.request-option-list strong {
  color: var(--ink);
  text-align: right;
}

.request-product-groups {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.request-product-group {
  border: 1px solid var(--line);
}

.request-product-group h4 {
  margin: 0;
  padding: 8px 10px;
  background: #f1f3f5;
  color: #5e7086;
  font-size: 8px;
  letter-spacing: 0.06em;
}

.request-product-group ul {
  margin: 0;
  padding: 0 10px;
  list-style: none;
}

.request-product-group li {
  min-height: 32px;
  padding: 7px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
}

.request-product-group li:last-child {
  border-bottom: 0;
}

.request-product-group small {
  color: var(--ink-soft);
  text-align: right;
}

.request-address-block {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 9px;
  font-style: normal;
  line-height: 1.6;
}

.overview-followup-item {
  width: 100%;
  min-height: 54px;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.overview-followup-item:hover {
  background: #f1f3f5;
}

.overview-followup-item span {
  display: grid;
  gap: 3px;
}

.overview-followup-item strong {
  font-size: 9px;
}

.overview-followup-item small,
.overview-followup-item time {
  color: var(--ink-soft);
  font-size: 8px;
}

.request-notes {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.55;
}

.calculator-toolbar {
  margin-bottom: 15px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.calculator-toolbar h2 {
  margin: 5px 0;
  font-size: 25px;
}

.calculator-toolbar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.calculator-toolbar > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  align-items: center;
}

.calculation-status {
  padding: 6px 10px;
  border-radius: 20px;
  background: #e1e6eb;
  color: #5e7086;
  font-size: 9px;
  font-weight: 700;
}

.compact-button {
  min-height: 42px;
  padding: 0 14px;
  font-size: 10px;
}

.calculator-layout {
  display: block;
}

.calculator-workspace {
  display: grid;
  gap: 15px;
}

.calculation-card {
  border: 1px solid var(--line);
  background: #fff;
}

.calculation-heading {
  min-height: 72px;
  padding: 17px 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.calculation-heading span,
.payment-plan > span {
  color: #7c8a84;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.calculation-heading h3 {
  margin: 4px 0 0;
  font-size: 17px;
}

.calculation-heading small {
  color: var(--ink-soft);
  font-size: 9px;
}

.text-button {
  border: 0;
  background: transparent;
  color: #5e7086;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.calculation-input-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

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

.calculation-input-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #697975;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.calculation-input-grid input,
.calculation-input-grid select,
.rate-list input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}

.calculation-input-grid input[readonly] {
  background: #f0f0f0;
  font-weight: 700;
}

.project-choice-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.project-choice-strip > span {
  min-height: 65px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.project-choice-strip > span:last-child {
  border-right: 0;
}

.project-choice-strip small {
  color: #87938d;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.project-choice-strip strong {
  margin-top: 7px;
  font-size: 10px;
}

.cost-table {
  width: 100%;
}

.cost-row {
  min-height: 51px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: minmax(230px, 1.6fr) repeat(4, minmax(90px, 0.7fr)) 88px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.cost-area {
  border-bottom: 1px solid var(--line);
}

.cost-area > .cost-row {
  border-bottom: 0;
}

.cost-head {
  min-height: 34px;
  background: #f6f7f5;
  color: #829089;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.cost-area-toggle {
  min-height: 50px;
  padding: 0;
  display: flex;
  gap: 11px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.cost-area-toggle i {
  width: 23px;
  height: 23px;
  display: grid;
  flex: 0 0 23px;
  place-items: center;
  border: 1px solid #bcc5cd;
  color: #5e7086;
  font-size: 14px;
  font-style: normal;
}

.cost-area-toggle span {
  display: flex;
  flex-direction: column;
}

.cost-area-toggle strong {
  font-size: 10px;
}

.cost-area-toggle small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 8px;
}

.cost-row input {
  width: 100%;
  height: 33px;
  border: 1px solid var(--line);
  padding: 0 8px;
  background: #fff;
  font-size: 10px;
  text-align: right;
}

.cost-row > span,
.cost-row > strong {
  font-size: 10px;
  text-align: right;
}

.add-area-product {
  min-height: 31px;
  border: 1px solid #5e7086;
  background: #fff;
  color: #5e7086;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.cost-area-products {
  padding: 0 18px 16px 52px;
  background: #f8f8f7;
}

.cost-area-products[hidden] {
  display: none;
}

.cost-area-products .product-line {
  padding-left: 10px;
  padding-right: 10px;
  background: #fff;
}

.add-area-product-bottom {
  width: 100%;
  min-height: 38px;
  margin-top: 9px;
  border-style: dashed;
  background: transparent;
}

.cost-total {
  min-height: 58px;
  background: #f0f0f0;
}

.calculation-section-note {
  margin: 0;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.5;
}

.product-line {
  min-height: 51px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) 80px 72px 105px 82px 110px 34px;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.product-line-head {
  min-height: 34px;
  background: #f6f7f5;
  color: #829089;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.product-line input,
.product-line select {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  padding: 0 8px;
  background: #fff;
  color: var(--ink);
  font-size: 9px;
}

.product-line input[type="number"] {
  text-align: right;
}

.product-line > strong,
.product-line > span {
  font-size: 9px;
}

.product-line-sales {
  text-align: right;
}

.remove-product-line {
  width: 29px;
  height: 29px;
  border: 1px solid #dacdc8;
  background: #fff;
  color: #9a4d3b;
  cursor: pointer;
}

.product-line-total {
  min-height: 55px;
  background: #f0f0f0;
}

.product-line-total strong:nth-of-type(n + 2) {
  text-align: right;
}

.sticky-calculation {
  position: static;
}

.calculation-summary {
  width: 100%;
}

.calculation-summary .calculation-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(300px, 1fr) minmax(300px, 1.1fr);
  align-items: stretch;
}

.calculation-summary .price-result {
  grid-column: 1;
  grid-row: 1;
  justify-content: center;
}

.calculation-summary .calculation-keyfigures {
  grid-column: 2;
  grid-row: 1;
  padding: 14px 24px;
}

.calculation-summary .payment-plan {
  grid-column: 3;
  grid-row: 1 / span 3;
  border-top: 0;
  border-left: 1px solid var(--line);
}

.calculation-summary .calculation-heading {
  grid-column: 1;
  grid-row: 2;
  min-height: 58px;
  border-top: 1px solid var(--line);
}

.calculation-summary .rate-list {
  grid-column: 1 / 3;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 18px;
  padding-top: 0;
  border-top: 1px solid var(--line);
}

.calculation-summary .margin-indicator {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
}

.calculation-summary .margin-message {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  margin-bottom: 8px;
}

.rate-list {
  padding: 8px 20px 17px;
}

.rate-list label {
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr 90px 20px;
  gap: 7px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #687873;
  font-size: 9px;
  font-weight: 600;
}

.rate-list label i {
  color: var(--ink-soft);
  font-style: normal;
  font-size: 9px;
}

.price-result {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  background: #5e7086;
  color: #fff;
}

.price-result span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.price-result strong {
  margin: 7px 0 3px;
  font-size: 29px;
  letter-spacing: -0.04em;
}

.price-result small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
}

.calculation-keyfigures {
  margin: 0;
  padding: 9px 20px;
}

.calculation-keyfigures div {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.calculation-keyfigures dt {
  color: var(--ink-soft);
  font-size: 9px;
}

.calculation-keyfigures dd {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
}

.margin-indicator {
  height: 7px;
  margin: 7px 20px 0;
  overflow: hidden;
  background: #e1e5e8;
}

.margin-indicator i {
  width: 0;
  height: 100%;
  display: block;
  background: #6d927d;
  transition: width 180ms ease, background 180ms ease;
}

.margin-message {
  margin: 8px 20px 19px;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.45;
}

.payment-plan {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: #f6f7f5;
}

.payment-plan > div {
  min-height: 35px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 48px 14px 82px;
  gap: 5px;
  align-items: center;
  border-bottom: 1px solid #dfe3df;
}

.payment-plan > div:last-child {
  border-bottom: 0;
}

.payment-plan small {
  color: var(--ink-soft);
  font-size: 8px;
}

.payment-plan strong {
  text-align: right;
  font-size: 9px;
}

.payment-plan input {
  width: 100%;
  height: 27px;
  border: 1px solid transparent;
  padding: 0 5px;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 8px;
}

.payment-plan input:focus {
  border-color: var(--line);
  background: #fff;
  outline: 0;
}

.payment-plan-percent {
  text-align: right;
}

.payment-plan i {
  color: var(--ink-soft);
  font-style: normal;
  font-size: 8px;
}

.payment-plan-check {
  display: block;
  margin-top: 10px;
  color: #6d927d !important;
  line-height: 1.4;
}

.payment-plan-check.invalid {
  color: #a75240 !important;
}

.room-schedule-table {
  overflow-x: auto;
}

.room-schedule-row {
  min-width: 920px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 75px 120px 70px 120px 120px 120px minmax(170px, 1fr) 34px;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.room-schedule-head {
  min-height: 38px;
  background: #f6f7f5;
  color: #829089;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.room-schedule-entry {
  min-height: 54px;
}

.room-schedule-entry input {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  padding: 0 8px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 9px;
}

.remove-room-row,
.close-offer-builder {
  width: 29px;
  height: 29px;
  border: 1px solid #dacdc8;
  background: #fff;
  color: #9a4d3b;
  cursor: pointer;
}

.calculation-notes-field {
  padding: 20px;
  display: grid;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 9px;
}

.calculation-notes-field textarea,
.offer-form-grid textarea {
  min-height: 100px;
  resize: vertical;
}

.calculation-notes-field textarea,
.offer-form-grid input,
.offer-form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 11px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 10px;
}

.offer-builder[hidden] {
  display: none;
}

.offer-form-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.offer-form-grid label {
  display: grid;
  gap: 6px;
  color: #697975;
  font-size: 9px;
  font-weight: 700;
}

.offer-form-grid input {
  height: 42px;
}

.offer-wide-field {
  grid-column: 1 / -1;
}

.offer-actions {
  padding: 0 20px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.product-admin-view {
  margin-top: 34px;
}

.builder-content-admin {
  margin-top: 34px;
}

.pricing-admin-view {
  margin-top: 34px;
}

.pricing-admin-toolbar {
  margin-bottom: 15px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.pricing-admin-toolbar h2 {
  margin: 5px 0;
  font-size: 25px;
}

.pricing-admin-toolbar p {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.pricing-toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pricing-save-status {
  margin-right: 5px;
  color: #718078;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-save-status.unsaved {
  color: #a66545;
}

.pricing-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  align-items: start;
}

.pricing-card {
  border: 1px solid var(--line);
  background: #fff;
}

.pricing-building-card,
.pricing-test-card {
  grid-column: 1 / -1;
}

.pricing-card-heading {
  min-height: 70px;
  padding: 16px 21px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.pricing-card-heading span {
  color: #7c8a84;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.pricing-card-heading h3 {
  margin: 4px 0 0;
  font-size: 17px;
}

.pricing-card-heading small {
  color: var(--ink-soft);
  font-size: 9px;
}

.pricing-card-heading > strong {
  color: #5e7086;
  font-size: 22px;
}

.pricing-rule-row {
  min-height: 56px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) repeat(3, minmax(130px, 0.8fr));
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.pricing-rule-row:last-child {
  border-bottom: 0;
}

.pricing-rule-head {
  min-height: 34px;
  background: #f6f7f5;
  color: #829089;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.pricing-rule-row strong {
  font-size: 10px;
}

.pricing-rule-row label,
.pricing-form-grid label,
.pricing-test-grid label {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #697975;
  font-size: 8px;
  font-weight: 700;
}

.pricing-rule-row input,
.pricing-form-grid input,
.pricing-test-grid input,
.pricing-test-grid select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  padding: 0 38px 0 10px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
}

.pricing-rule-row label i,
.pricing-form-grid label i,
.pricing-test-grid label i {
  position: absolute;
  right: 10px;
  bottom: 13px;
  color: #84908a;
  font-size: 8px;
  font-style: normal;
}

.pricing-form-grid,
.pricing-test-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.pricing-help {
  margin: -4px 20px 20px;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.5;
}

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

.pricing-standard-toggle {
  margin: -6px 20px 18px;
  min-height: 38px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: #f8f9fa;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
}

.pricing-standard-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.pricing-breakdown {
  margin: 0;
  padding: 0 20px 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.pricing-breakdown div {
  min-height: 55px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-right: 0;
}

.pricing-breakdown div:last-child {
  border-right: 1px solid var(--line);
  background: #f0f2f5;
}

.pricing-breakdown dt {
  color: var(--ink-soft);
  font-size: 8px;
}

.pricing-breakdown dd {
  margin: 5px 0 0;
  font-size: 11px;
  font-weight: 700;
}

.pricing-test-note {
  margin: -7px 20px 20px;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.5;
}

.content-admin-toolbar {
  margin-bottom: 15px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.content-admin-toolbar h2 {
  margin: 5px 0;
  font-size: 25px;
}

.content-admin-toolbar p {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.content-toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.content-save-status {
  margin-right: 5px;
  color: #718078;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.content-save-status.unsaved {
  color: #a66545;
}

.content-admin-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
}

.content-step-list,
.content-editor-card {
  border: 1px solid var(--line);
  background: #fff;
}

.content-step-list-heading {
  min-height: 64px;
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.content-step-list-heading span,
.content-editor-heading span,
.content-preview-card > span {
  color: #7c8a84;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.content-step-list-heading strong {
  margin-top: 5px;
  font-size: 11px;
}

.content-step-button {
  width: 100%;
  min-height: 61px;
  padding: 10px 15px;
  display: grid;
  grid-template-columns: 29px 1fr 8px;
  gap: 10px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.content-step-button:last-child {
  border-bottom: 0;
}

.content-step-button > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #c4cbd1;
  color: #5e7086;
  font-size: 9px;
  font-weight: 700;
}

.content-step-button div {
  display: flex;
  flex-direction: column;
}

.content-step-button strong {
  font-size: 10px;
}

.content-step-button small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 8px;
}

.content-step-button i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6d927d;
}

.content-step-button.inactive i {
  background: #b7b9b7;
}

.content-step-button.active {
  background: #f0f2f5;
  box-shadow: inset 3px 0 #5e7086;
}

.content-editor-heading {
  min-height: 72px;
  padding: 17px 21px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.content-editor-heading h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

.content-visibility {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #5e7086;
  font-size: 9px;
  font-weight: 700;
}

.content-visibility input {
  width: 17px;
  height: 17px;
}

.content-form-grid {
  padding: 23px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
}

.content-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #697975;
  font-size: 9px;
  font-weight: 700;
}

.content-form-grid input,
.content-form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}

.content-form-grid input {
  height: 44px;
}

.content-form-grid textarea {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
}

.content-description-field {
  grid-column: 1 / -1;
}

.content-preview-card {
  margin: 0 23px 23px;
  padding: 25px 28px;
  border: 1px solid #d9dde1;
  background: #f5f5f3;
}

.content-preview-card small {
  display: block;
  margin-top: 19px;
  color: #5e7086;
  font-size: 8px;
  font-weight: 800;
}

.content-preview-card h3 {
  margin: 7px 0;
  font-size: 25px;
}

.content-preview-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.building-type-manager {
  margin: 0 23px 23px;
  border: 1px solid var(--line);
  background: #fff;
}

.building-type-manager-heading {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.building-type-manager-heading span,
.building-type-editor-heading span {
  color: #7c8a84;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.building-type-manager-heading h3,
.building-type-editor-heading h3 {
  margin: 4px 0;
  font-size: 16px;
}

.building-type-manager-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
}

.building-type-admin-row {
  min-height: 88px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 112px minmax(170px, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.building-type-admin-row:last-child {
  border-bottom: 0;
}

.building-type-admin-image {
  width: 112px;
  height: 68px;
  overflow: hidden;
  background: #eef0f2;
}

.building-type-admin-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.building-type-admin-copy {
  display: flex;
  flex-direction: column;
}

.building-type-admin-copy strong {
  font-size: 11px;
}

.building-type-admin-copy small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 8px;
}

.building-type-admin-copy em {
  width: max-content;
  margin-top: 7px;
  padding: 3px 6px;
  background: #e8eeeb;
  color: #567160;
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
}

.building-type-admin-copy em.inactive {
  background: #efefef;
  color: #858585;
}

.building-type-admin-actions {
  display: flex;
  gap: 7px;
}

.building-type-admin-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  padding: 0 10px;
  background: #fff;
  color: #5e7086;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.building-type-admin-actions .delete-building-type {
  color: #a55745;
}

.building-type-editor {
  border-top: 1px solid var(--line);
  background: #f7f7f5;
}

.building-type-editor-heading {
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.building-type-editor-heading button {
  border: 0;
  background: transparent;
  color: #5e7086;
  font-size: 22px;
  cursor: pointer;
}

.building-type-form-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(230px, 1.2fr);
  gap: 15px;
}

.building-type-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #697975;
  font-size: 9px;
  font-weight: 700;
}

.building-type-form-grid input[type="text"],
.building-type-form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.building-type-form-grid input[type="text"] {
  height: 44px;
}

.building-type-form-grid textarea {
  min-height: 88px;
  padding-top: 11px;
  resize: vertical;
}

.building-type-description-field,
.building-type-visible-field {
  grid-column: 1 / -1;
}

.building-type-visible-field {
  flex-direction: row !important;
  align-items: center;
}

.building-type-visible-field input {
  width: 17px;
  height: 17px;
}

.building-type-image-preview {
  min-height: 78px;
  display: flex;
  align-items: center;
  border: 1px dashed #c9cfd4;
  padding: 8px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 8px;
}

.building-type-image-preview img {
  width: 120px;
  height: 70px;
  object-fit: cover;
}

.building-type-form-actions {
  padding: 0 18px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.building-configuration-editor {
  border-top: 1px solid var(--line);
  background: #f7f7f5;
}

.building-configuration-heading {
  padding: 17px 19px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  background: #fff;
}

.building-configuration-heading span {
  color: #7c8a84;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.building-configuration-heading h3 {
  margin: 4px 0;
  font-size: 18px;
}

.building-configuration-heading p,
.building-config-product-help {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
}

.building-configuration-heading > button {
  border: 0;
  background: transparent;
  color: #5e7086;
  font-size: 22px;
  cursor: pointer;
}

.building-configuration-tabs {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.building-configuration-tabs button {
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0 15px;
  background: #fff;
  color: #6c7b88;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.building-configuration-tabs button.active {
  background: #5e7086;
  color: #fff;
}

.building-config-panel {
  display: none;
  padding: 18px;
}

.building-config-panel.active {
  display: block;
}

.building-config-dimensions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.building-config-dimensions label,
.building-config-step-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #697975;
  font-size: 8px;
  font-weight: 700;
}

.building-config-dimensions input,
.building-config-step-fields input,
.building-config-step-fields textarea,
.building-config-choice-option input,
.building-config-product-default input {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 9px;
}

.building-config-dimensions input,
.building-config-step-fields input {
  height: 39px;
  padding: 0 10px;
}

.building-config-step-row,
.building-config-choice-group,
.building-config-product-group {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.building-config-step-heading,
.building-config-choice-heading {
  min-height: 42px;
  padding: 0 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.building-config-step-heading strong,
.building-config-product-group h4 {
  font-size: 10px;
}

.building-config-choice-question {
  width: min(360px, 70%);
  height: 34px;
  border: 1px solid var(--line);
  padding: 0 9px;
  background: #fff;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
}

.building-config-step-heading label {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #697975;
  font-size: 8px;
}

.building-config-step-fields {
  padding: 13px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
}

.building-config-step-fields label:last-child {
  grid-column: 1 / -1;
}

.building-config-step-fields textarea {
  min-height: 62px;
  padding: 9px 10px;
  resize: vertical;
}

.building-config-choice-heading button {
  border: 0;
  background: transparent;
  color: #5e7086;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.building-config-choice-options {
  padding: 10px;
}

.building-config-choice-option {
  margin-bottom: 7px;
  display: grid;
  grid-template-columns: 28px minmax(150px, 0.8fr) minmax(180px, 1.2fr) 30px;
  gap: 7px;
}

.building-config-choice-preferences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.building-config-choice-preferences > label:first-child {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .building-config-choice-preferences {
    grid-template-columns: 1fr;
  }
}

.building-config-choice-option input[type="text"] {
  height: 36px;
  padding: 0 9px;
}

.building-config-choice-option label {
  display: grid;
  place-items: center;
}

.building-config-choice-option button {
  border: 1px solid var(--line);
  background: #fff;
  color: #a55745;
  cursor: pointer;
}

.building-config-product-help {
  margin-bottom: 12px;
}

.building-config-product-group h4 {
  margin: 0;
}

.building-config-product-group-heading {
  min-height: 52px;
  padding: 8px 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.building-config-product-group-heading > div {
  display: flex;
  gap: 6px;
  align-items: center;
}

.building-config-product-group-heading select {
  width: 180px;
  height: 33px;
  border: 1px solid var(--line);
  padding: 0 8px;
  background: #fff;
  color: var(--ink);
  font-size: 8px;
}

.building-config-product-group-heading button {
  min-height: 33px;
  border: 1px solid var(--line);
  padding: 0 9px;
  background: #fff;
  color: #5e7086;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.building-config-product-group-heading button:disabled {
  opacity: 0.45;
  cursor: default;
}

.building-config-product-group-heading .building-config-create-product {
  background: #5e7086;
  color: #fff;
}

.building-config-product-row {
  min-height: 45px;
  padding: 7px 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.building-config-product-row:last-child {
  border-bottom: 0;
}

.building-config-product-visible,
.building-config-product-default {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #5e7086;
  font-size: 8px;
  font-weight: 600;
}

.building-config-product-default {
  justify-content: flex-end;
}

.building-config-product-default input[type="number"] {
  width: 62px;
  height: 32px;
  padding: 0 7px;
}

.building-config-product-customer-name,
.building-config-product-customer-description {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #697975;
  font-size: 7px;
  font-weight: 700;
}

.building-config-product-customer-name input,
.building-config-product-customer-description input {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  padding: 0 8px;
  background: #fff;
  color: var(--ink);
  font-size: 8px;
}

.building-configuration-actions {
  padding: 14px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.content-editor-footer {
  min-height: 56px;
  padding: 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: #fafafa;
}

.content-editor-footer span {
  color: var(--ink-soft);
  font-size: 8px;
}

.step-panel.builder-step-hidden,
.progress-step.builder-step-hidden,
.progress-step.builder-step-hidden + i {
  display: none;
}

.product-admin-toolbar {
  margin-bottom: 15px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.product-admin-toolbar h2 {
  margin: 5px 0;
  font-size: 25px;
}

.product-admin-toolbar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.product-admin-metrics {
  margin-bottom: 15px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: #fff;
}

.product-admin-metrics article {
  min-height: 96px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.product-admin-metrics article:last-child {
  border-right: 0;
}

.product-admin-metrics span {
  color: #7c8a84;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.product-admin-metrics strong {
  margin: 6px 0 2px;
  font-size: 24px;
}

.product-admin-metrics small {
  color: var(--ink-soft);
  font-size: 8px;
}

.product-catalog-card {
  border: 1px solid var(--line);
  background: #fff;
}

.catalog-controls {
  padding: 17px 20px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 210px 160px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.catalog-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #778580;
  font-size: 8px;
  font-weight: 700;
}

.catalog-controls input,
.catalog-controls select {
  height: 40px;
  border: 1px solid var(--line);
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
}

.catalog-row {
  min-height: 59px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) minmax(130px, 0.8fr) 115px 95px 145px 120px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.catalog-head {
  min-height: 34px;
  background: #f6f7f5;
  color: #829089;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.catalog-product-name {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
}

.catalog-product-name img,
.catalog-product-placeholder {
  width: 44px;
  height: 38px;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: #edf0f2;
  color: #7b8998;
  font-size: 13px;
  font-weight: 700;
}

.catalog-new-visual {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e8ebef, #cfd6de);
  color: #5e7086;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.catalog-product-name div {
  display: flex;
  flex-direction: column;
}

.catalog-product-name small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 8px;
}

.catalog-price {
  font-weight: 700;
}

.catalog-status {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 20px;
  background: #dce7df;
  color: #365b49;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.catalog-status.inactive {
  background: #e8e8e5;
  color: #7c7c76;
}

.catalog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.catalog-actions button {
  min-width: 40px;
  height: 29px;
  border: 1px solid var(--line);
  padding: 0 8px;
  background: #fff;
  color: #5e7086;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.catalog-actions button.delete {
  color: #9a4d3b;
}

.catalog-empty {
  padding: 45px 20px;
  color: var(--ink-soft);
  text-align: center;
  font-size: 11px;
}

.product-editor {
  position: fixed;
  z-index: 1000;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(31, 40, 47, 0.48);
}

.product-editor[hidden] {
  display: none;
}

.product-editor-panel {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 70px rgba(25, 36, 43, 0.22);
}

.close-product-editor {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  color: #5e7086;
  font-size: 17px;
  cursor: pointer;
}

.product-form-grid {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.product-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #697975;
  font-size: 9px;
  font-weight: 700;
}

.product-form-grid input,
.product-form-grid select,
.product-form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
}

.product-form-grid input,
.product-form-grid select {
  height: 42px;
}

.product-form-grid textarea {
  min-height: 80px;
  padding-top: 10px;
  resize: vertical;
}

.product-image-field,
.product-description-field,
.product-usage-field {
  grid-column: 1 / -1;
}

.product-image-preview {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  border: 1px dashed #b9c1ca;
  background: #f6f6f6;
  color: var(--ink-soft);
  font-size: 12px;
  overflow: hidden;
}

.product-image-preview img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.product-usage-field {
  margin: 0;
  border: 1px solid var(--line);
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  background: #f7f7f5;
}

.product-usage-field legend {
  padding: 0 5px;
  color: #697975;
  font-size: 9px;
  font-weight: 700;
}

.product-usage-field label {
  flex-direction: row;
  align-items: center;
}

.product-usage-field input {
  width: 17px;
  height: 17px;
}

.product-usage-field small {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 400;
}

.product-usage-field small.warning {
  color: #9a6048;
  font-weight: 600;
}

.catalog-usage {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.catalog-usage .catalog-status {
  white-space: nowrap;
}

.catalog-status.calculation {
  background: #e4e9ef;
  color: #536b86;
}

.product-form-actions {
  padding: 17px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  background: #f6f7f5;
}

/* NorAnneks AS brand profile */
h1,
h2,
h3,
strong,
button,
input,
label,
legend {
  font-family: "Poppins", sans-serif !important;
}

.eyebrow,
.step-count,
.admin-eyebrow {
  color: #5e7086;
}

.site-header,
.builder-shell,
.form-panel,
.lead-panel,
.admin-side-panel,
.metric-grid,
.building-card,
.delivery-card,
.roof-card,
.material-card,
.door-card,
.product-card {
  background-color: #ffffff;
}

.summary-panel,
.dimension-card,
.tip-card,
.contact-card,
.summary-hero,
.product-visual {
  background: #f0f0f0;
}

.selected,
.building-card.selected,
.delivery-card.selected,
.roof-card.selected,
.material-card.selected,
.door-card.selected {
  border-color: #5e7086;
}

.checkmark,
.choice-pill.selected,
.primary-button,
.submit-button,
.admin-primary,
.round-add,
.success-icon,
.price-box,
.pipeline-card {
  background: #5e7086;
}

.primary-button:hover,
.submit-button:hover,
.admin-primary:hover {
  background: #52657c;
}

.delivery-card > span {
  background: #5e7086;
}

.draft-badge,
.confidence,
.saved-state span {
  background: #e1e6eb;
  color: #5e7086 !important;
}

.building-visual,
.house-stage {
  background: linear-gradient(#eef0f3 0 65%, #d8dde3 65%);
}

.building-visual::after {
  background: #8897a9;
  box-shadow: -42px 17px 0 -7px #aab4c0;
}

.ground {
  background: #c4ccd5;
}

.tree i {
  background: #78899d;
}

.tree span {
  background: #9aa7b6;
}

.house-body,
.preview-wall,
.mini-wall {
  border-color: #5e7086;
  background: repeating-linear-gradient(
    90deg,
    #aeb8c3 0 8px,
    #95a3b2 8px 10px
  );
}

.visual-cabin .house-body,
.house-preview.cladding-Weatherboards .preview-wall {
  background: repeating-linear-gradient(
    0deg,
    #aeb8c3 0 9px,
    #8f9eae 9px 11px
  );
}

.visual-garage .house-body,
.house-preview.cladding-Villmarkspanel .preview-wall {
  background: repeating-linear-gradient(
    90deg,
    #a4afbb 0 13px,
    #8796a7 13px 16px
  );
}

.visual-anneks .house-body::before,
.visual-cabin .house-body::before,
.visual-garage .house-body::before,
.preview-roof,
.mini-roof,
.roof-gable::before,
.roof-shed::before,
.roof-flat::before {
  background: #5e7086;
}

.visual-elements i,
.roof-icon {
  border-color: #5e7086;
  background-color: #c4cbd3;
}

.window,
.preview-window,
.product-visual i {
  background-color: #b7c4d0;
}

.material-swatch,
.swatch-vertical {
  background: repeating-linear-gradient(
    90deg,
    #b5bec8 0 15px,
    #8f9dac 15px 17px
  );
}

.swatch-wild {
  background:
    linear-gradient(8deg, transparent 30%, rgba(94, 112, 134, 0.2) 31% 33%, transparent 34%),
    repeating-linear-gradient(0deg, #a9b3bf 0 17px, #8795a6 17px 20px);
}

.swatch-modern {
  background: repeating-linear-gradient(
    0deg,
    #b2bbc5 0 11px,
    #8c9aaa 11px 13px
  );
}

.admin-shell,
.admin-main {
  background: #f0f0f0;
}

.admin-sidebar {
  border-right: 1px solid #d1d7de;
  background: #ffffff;
  color: #5e7086;
}

.admin-brand {
  position: relative;
  margin-bottom: 46px;
  padding-bottom: 26px;
  color: #5e7086;
}

.admin-brand::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #d1d7de;
}

.admin-brand img {
  width: 116px;
  height: 66px;
}

.admin-brand small {
  margin-left: 8px;
  color: #5e7086;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.admin-nav {
  color: #5e7086;
}

.admin-nav > span {
  color: #5e7086;
}

.admin-nav.active {
  background: #5e7086;
  color: #ffffff;
}

.admin-nav.active > span {
  color: #ffffff;
}

.admin-nav i,
.admin-nav i.muted {
  background: #e1e6eb;
  color: #5e7086;
}

.admin-user {
  border-top-color: #d1d7de;
}

.admin-user > span {
  background: #5e7086;
  color: #ffffff;
}

.admin-user strong,
.admin-user button {
  color: #5e7086;
}

.admin-user small {
  color: rgba(94, 112, 134, 0.72);
}

.attention-card.warm,
.attention-card.green,
.attention-card.blue {
  background: #e4e8ed;
}

.attention-icon {
  background: #ffffff;
  color: #5e7086;
}

.metric-grid small.up,
.task-list time.overdue {
  color: #5e7086;
}

.status.new,
.status.review,
.status.contact,
.status.dialog {
  background: #e1e6eb;
  color: #5e7086;
}

.pipeline-bars i,
.pipeline-bars i:nth-child(2),
.pipeline-bars i:nth-child(3),
.pipeline-bars i:nth-child(4) {
  background: #ffffff;
}

.pipeline-bars i:nth-child(2) {
  opacity: 0.82;
}

.pipeline-bars i:nth-child(3) {
  opacity: 0.64;
}

.pipeline-bars i:nth-child(4) {
  opacity: 0.46;
}

.form-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.form-grid > label,
.textarea-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.form-grid select,
.form-grid input,
.textarea-label textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.form-grid select,
.form-grid input {
  height: 47px;
}

.input-with-unit {
  display: flex;
  border: 1px solid var(--line);
  background: #fff;
}

.input-with-unit input {
  min-width: 0;
  border: 0;
}

.input-with-unit i {
  padding: 0 13px;
  display: flex;
  align-items: center;
  font-style: normal;
  font-weight: 400;
}

.roofing-grid,
.garage-port-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.roofing-card,
.stacked-option,
.garage-port-card,
.color-option {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.roofing-card {
  padding: 0 0 13px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-align: left;
}

.roofing-card strong {
  padding: 0 12px;
  font-size: 11px;
}

.roofing-card small {
  padding: 0 12px;
  color: var(--ink-soft);
  font-size: 9px;
}

.roofing-photo {
  height: 92px;
  display: block;
  overflow: hidden;
  background: #f0f0f0;
}

.roofing-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.roofing-card.selected,
.stacked-option.selected,
.garage-port-card.selected,
.color-option.selected {
  border: 2px solid #5e7086;
  background: #f5f6f8;
}

.roofing-swatch {
  height: 72px;
  display: block;
}

.roofing-swatch.membrane { background: linear-gradient(135deg, #79899b, #aeb8c3); }
.roofing-swatch.felt { background: #626c78; }
.roofing-swatch.shingle { background: repeating-linear-gradient(135deg, #657587 0 14px, #8391a1 14px 16px); }
.roofing-swatch.tile-red { background: #8f7777; }
.roofing-swatch.tile-black { background: #4d5967; }
.roofing-swatch.wood-roof { background: repeating-linear-gradient(90deg, #a7b0ba 0 12px, #8492a1 12px 14px); }

.stacked-options {
  display: grid;
  gap: 9px;
}

.stacked-option {
  min-height: 69px;
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.stacked-option strong {
  margin-bottom: 5px;
  font-size: 13px;
}

.stacked-option small {
  color: var(--ink-soft);
  line-height: 1.4;
}

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

.interior-smooth { background: repeating-linear-gradient(90deg, #9ba8b6 0 15px, #d7dde3 15px 16px); }
.interior-drift { background: repeating-linear-gradient(0deg, #7f8d9e 0 14px, #aeb8c3 14px 16px); }
.interior-false { background: repeating-linear-gradient(90deg, #b6bec7 0 18px, #8795a5 18px 21px); }
.interior-natural { background: repeating-linear-gradient(90deg, #c7cdd4 0 12px, #a4aeb9 12px 14px); }
.interior-white { background: repeating-linear-gradient(90deg, #eef0f2 0 13px, #c9d0d8 13px 15px); }
.interior-other { background: linear-gradient(135deg, #f0f0f0 0 50%, #dce1e6 50%); }

.textarea-label {
  margin-top: 24px;
}

.textarea-label textarea {
  min-height: 108px;
  padding-top: 12px;
  resize: vertical;
}

.color-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.color-option {
  min-height: 69px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-option i {
  width: 28px;
  height: 28px;
  border: 1px solid #bcc5ce;
  flex: 0 0 auto;
}

.color-option span {
  font-size: 10px;
  font-weight: 600;
}

.door-product {
  height: 105px;
  margin-bottom: 12px;
  border: 8px solid #f0f0f0;
  outline: 1px solid var(--line);
}

.white-door { background: repeating-linear-gradient(0deg, #fff 0 27px, #dce1e6 27px 29px); }
.pine-door { background: repeating-linear-gradient(90deg, #b8c0c8 0 8px, #9aa6b2 8px 9px); }
.plain-door { background: #dfe3e8; }

.garage-port-section {
  margin-top: 30px;
}

.garage-port-grid {
  grid-template-columns: minmax(0, 360px);
}

.garage-port-product {
  width: 100%;
}

.garage-port-card {
  padding: 11px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.garage-port-card strong {
  margin-top: 12px;
  font-size: 12px;
}

.garage-port-card small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
}

.port-visual {
  height: 88px;
  border: 5px solid #8c9aa9;
  background: repeating-linear-gradient(0deg, #c4cbd3 0 15px, #9eabb8 15px 17px);
}

.port-visual.windows {
  background:
    linear-gradient(90deg, transparent 10%, #dce5eb 10% 27%, transparent 27% 37%, #dce5eb 37% 54%, transparent 54% 64%, #dce5eb 64% 81%, transparent 81%) 0 9px / 100% 25px no-repeat,
    repeating-linear-gradient(0deg, #c4cbd3 0 15px, #9eabb8 15px 17px);
}

.port-visual.dark {
  background: repeating-linear-gradient(0deg, #68788b 0 15px, #526275 15px 17px);
}

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

.check-grid label {
  min-height: 50px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
}

.check-grid input {
  accent-color: #5e7086;
}

.upload-box {
  min-height: 120px;
  margin-top: 18px;
  border: 1px dashed #9aa7b6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.upload-box input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-box > span {
  font-size: 23px;
}

.upload-box strong {
  font-size: 12px;
}

.upload-box small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
}

.attachment-file-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--brand-blue);
  font-size: 12px;
}

.attachment-file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: #fff;
}

.attachment-file-list span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.attachment-file-list button {
  border: 0;
  padding: 3px 0;
  background: transparent;
  color: var(--brand-blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.attachment-link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand-blue);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 1040px) {
  .product-admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-admin-metrics article:nth-child(2) {
    border-right: 0;
  }

  .product-admin-metrics article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .requests-layout {
    grid-template-columns: 1fr;
  }

  .report-grid,
  .settings-link-grid {
    grid-template-columns: 1fr;
  }

  .report-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .report-period-summary {
    margin-left: 0;
    text-align: left;
  }

  .report-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .report-metrics article:nth-child(2) {
    border-right: 0;
  }

  .report-metrics article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .request-detail-card {
    position: static;
  }

  .calculation-summary .calculation-card {
    grid-template-columns: 1fr 1fr;
  }

  .calculation-summary .price-result {
    grid-column: 1;
  }

  .calculation-summary .calculation-keyfigures {
    grid-column: 2;
  }

  .calculation-summary .payment-plan {
    grid-column: 1 / -1;
    grid-row: 4;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .calculation-summary .rate-list {
    grid-column: 1 / -1;
  }

  .sticky-calculation {
    position: static;
  }

  .calculation-input-grid.four-columns,
  .calculation-input-grid.logistics-grid,
  .offer-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .summary-panel {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .summary-top,
  .configuration-list,
  .estimate,
  .estimate-note {
    grid-column: 2;
  }

  .summary-top {
    grid-row: 1;
  }

  .house-stage {
    grid-column: 1;
    grid-row: 1 / 5;
    height: auto;
    min-height: 300px;
    margin: 18px;
  }

  .admin-content-grid {
    grid-template-columns: 1fr;
  }

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

  .attention-card {
    min-height: 105px;
  }
}

@media (max-width: 800px) {
  .product-admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .content-admin-toolbar,
  .content-toolbar-actions,
  .pricing-admin-toolbar,
  .pricing-toolbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .content-admin-layout {
    grid-template-columns: 1fr;
  }

  .pricing-admin-grid {
    grid-template-columns: 1fr;
  }

  .pricing-building-card,
  .pricing-test-card {
    grid-column: auto;
  }

  .pricing-rule-table {
    overflow-x: auto;
  }

  .pricing-rule-row {
    min-width: 720px;
  }

  .pricing-test-grid,
  .pricing-breakdown {
    grid-template-columns: 1fr 1fr;
  }

  .content-step-list {
    max-height: 330px;
    overflow-y: auto;
  }

  .catalog-controls,
  .product-form-grid,
  .settings-link-grid {
    grid-template-columns: 1fr;
  }

  .product-image-field,
  .product-description-field,
  .product-usage-field {
    grid-column: auto;
  }

  .catalog-table {
    overflow-x: auto;
  }

  .catalog-row {
    min-width: 840px;
  }

  .request-list-card {
    overflow-x: auto;
  }

  .settings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .request-controls,
  .request-list-head,
  .request-list-row {
    min-width: 760px;
  }

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

  .content-description-field {
    grid-column: auto;
  }

  .building-type-manager-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .building-type-manager-heading .secondary-button {
    align-self: flex-start;
  }

  .building-type-admin-row {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .building-type-admin-image {
    width: 90px;
  }

  .building-type-admin-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .building-type-form-grid {
    grid-template-columns: 1fr;
  }

  .building-type-description-field,
  .building-type-visible-field {
    grid-column: auto;
  }

  .building-configuration-tabs {
    overflow-x: auto;
  }

  .building-configuration-tabs button {
    flex: 0 0 auto;
  }

  .building-config-dimensions,
  .building-config-step-fields {
    grid-template-columns: 1fr;
  }

  .building-config-step-fields label:last-child {
    grid-column: auto;
  }

  .building-config-choice-option {
    grid-template-columns: 28px 1fr 30px;
  }

  .building-config-choice-description {
    grid-column: 2 / 3;
  }

  .building-config-product-row {
    grid-template-columns: 1fr;
  }

  .building-config-product-group-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .building-config-product-group-heading > div {
    align-items: stretch;
    flex-direction: column;
  }

  .building-config-product-group-heading select {
    width: 100%;
  }

  .building-config-product-default {
    justify-content: flex-start;
  }

  .calculator-toolbar,
  .calculator-toolbar > div:last-child {
    align-items: stretch;
    flex-direction: column;
  }

  .calculation-input-grid,
  .calculation-input-grid.four-columns,
  .calculation-input-grid.logistics-grid,
  .offer-form-grid,
  .project-choice-strip {
    grid-template-columns: 1fr 1fr;
  }

  .cost-table {
    overflow-x: auto;
  }

  .cost-row,
  .product-line {
    min-width: 820px;
  }

  .product-line-table {
    overflow-x: auto;
  }

  .prototype-banner {
    padding-left: 14px;
    padding-right: 14px;
    justify-content: flex-start;
  }

  .prototype-banner p {
    display: none;
  }

  .mode-switch {
    position: static;
    max-width: 120px;
    margin-left: auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .site-header {
    height: 76px;
    padding: 0 19px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .header-actions .text-button {
    display: none;
  }

  .saved-state {
    font-size: 0;
  }

  .saved-state span {
    font-size: 11px;
  }

  .hero {
    padding: 58px 21px 48px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(35px, 10.2vw, 40px);
    overflow-wrap: anywhere;
  }

  .hero > p {
    font-size: 16px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 10px;
  }

  .builder-shell {
    padding: 0 18px 70px;
  }

  .progress-nav {
    height: 82px;
    display: flex;
    gap: 0;
    overflow: hidden;
  }

  .progress-step {
    width: 25px;
    min-width: 25px;
    min-width: auto;
    justify-content: center;
  }

  .progress-step span {
    width: 25px;
    height: 25px;
    font-size: 10px;
  }

  .progress-step strong {
    display: none;
  }

  .progress-nav > i {
    min-width: 4px;
    margin: 0 2px;
  }

  .builder-grid {
    padding-top: 36px;
    gap: 30px;
  }

  .step-panel {
    min-height: auto;
  }

  .step-intro h2 {
    max-width: 100%;
    font-size: 30px;
    overflow-wrap: anywhere;
  }

  .building-grid,
  .product-grid,
  .door-grid,
  .material-grid,
  .delivery-grid,
  .interior-grid,
  .roofing-grid,
  .garage-port-grid,
  .form-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .building-card {
    min-height: 190px;
  }

  .building-visual {
    height: 120px;
  }

  .roof-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .color-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .roof-card {
    min-height: 100px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .roof-card strong {
    font-size: 11px;
  }

  .summary-panel {
    display: block;
  }

  .summary-panel .house-stage {
    min-height: 230px;
  }

  .contact-grid,
  .delivery-address-grid {
    grid-template-columns: 1fr;
  }

  .address-wide-field {
    grid-column: auto;
  }

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

  .summary-sections {
    grid-template-columns: 1fr auto;
  }

  .price-box {
    grid-template-columns: 1fr;
  }

  .price-box p {
    grid-column: 1;
  }

  .form-actions {
    position: sticky;
    z-index: 10;
    bottom: 0;
    margin-left: -18px;
    margin-right: -18px;
    padding: 13px 18px;
    background: rgba(255, 254, 250, 0.96);
  }

  .site-footer {
    min-height: 112px;
    padding: 25px 20px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    min-height: auto;
    padding: 14px 18px;
    flex-direction: row;
    align-items: center;
  }

  .admin-brand {
    margin: 0;
  }

  .admin-sidebar nav,
  .admin-nav-bottom {
    display: none;
  }

  .admin-main {
    padding: 26px 17px 50px;
  }

  .privacy-modal {
    padding: 14px;
  }

  .privacy-dialog {
    max-height: 92vh;
    padding: 24px 18px;
  }

  .admin-header {
    gap: 20px;
  }

  .admin-header-actions .icon-button {
    display: none;
  }

  .admin-primary {
    padding: 0 12px;
  }

  .admin-primary span {
    display: none;
  }

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

  .metric-grid article:nth-child(2) {
    border-right: 0;
  }

  .metric-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .calculations-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .calculations-toolbar .admin-primary {
    align-self: flex-start;
  }

  .calculation-list-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .calculation-list-metrics article:nth-child(2) {
    border-right: 0;
  }

  .calculation-list-metrics article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .calculation-list-card {
    overflow-x: auto;
  }

  .calculation-list-controls,
  .calculation-list-row {
    min-width: 800px;
  }

  .lead-table {
    overflow-x: auto;
  }

  .lead-row {
    min-width: 760px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
