html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body.paint-page {
  --paint-accent: #e8650a;
  --paint-accent-dark: #bd4d08;
  --paint-coral: #e8735b;
  --paint-coral-soft: #fff0eb;
  --paint-cream: #fff8f2;
  --paint-warm-gray: #f1eee9;
  --paint-line: #e4ded7;
}

.paint-page-hero {
  position: relative;
  overflow: hidden;
}

.paint-page-hero::before,
.paint-page-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.paint-page-hero::before {
  top: -92px;
  left: 7%;
  width: 190px;
  height: 190px;
  border: 22px solid rgba(232, 101, 10, .07);
  border-radius: 48% 52% 58% 42%;
  transform: rotate(18deg);
}

.paint-page-hero::after {
  right: 6%;
  bottom: -82px;
  width: 230px;
  height: 115px;
  border-radius: 52% 48% 0 0;
  background: rgba(232, 115, 91, .055);
  transform: rotate(-8deg);
}

.paint-page-hero > * {
  position: relative;
  z-index: 1;
}

.paint-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin-bottom: 10px;
  padding: 5px 11px;
  border: 1px solid rgba(232, 101, 10, .42);
  border-radius: 999px;
  background: rgba(232, 101, 10, .13);
  color: #ffd8c0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .45px;
  text-transform: uppercase;
}

.paint-hero-badge > span:first-child {
  color: #ff9148;
  animation: paintBadgePulse 2.8s ease-in-out infinite;
}

.paint-app {
  gap: 14px;
  padding-top: 18px;
}

.paint-app,
.paint-app * {
  min-width: 0;
}

.paint-app .panel {
  border-color: #dedbd5;
  border-radius: 15px;
  box-shadow: 0 8px 28px rgba(30, 43, 60, .055);
}

.paint-mode-panel {
  padding-bottom: 17px;
}

.paint-mode-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.paint-mode-switch button {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 68px;
  padding: 10px 12px;
  column-gap: 10px;
  border: 1.5px solid var(--c-border);
  border-radius: 11px;
  background: #faf9f7;
  color: var(--c-text);
  text-align: left;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
}

.paint-mode-switch button > span,
.paint-mode-switch button > i {
  display: grid;
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: #eeeae5;
  color: #786e68;
  font-size: 20px;
  font-style: normal;
  line-height: 1;
}

.paint-mode-switch button strong {
  align-self: end;
  color: var(--c-navy);
  font-size: 12.5px;
  line-height: 1.25;
}

.paint-mode-switch button small {
  align-self: start;
  margin-top: 2px;
  overflow: hidden;
  color: var(--c-muted);
  font-size: 9.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paint-mode-switch button:hover {
  border-color: #eeb28b;
  transform: translateY(-1px);
}

.paint-mode-switch button.active,
.paint-mode-switch button.is-active,
.paint-mode-switch button[aria-pressed="true"] {
  border-color: var(--paint-accent);
  background: var(--paint-cream);
  box-shadow: 0 0 0 3px rgba(232, 101, 10, .09);
}

.paint-mode-switch button.active > span,
.paint-mode-switch button.is-active > span,
.paint-mode-switch button[aria-pressed="true"] > span,
.paint-mode-switch button.active > i,
.paint-mode-switch button.is-active > i,
.paint-mode-switch button[aria-pressed="true"] > i {
  background: linear-gradient(145deg, var(--paint-accent), var(--paint-coral));
  color: #fff;
}

.paint-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 14px;
}

.paint-controls {
  position: sticky;
  z-index: 2;
  top: 82px;
  align-self: start;
}

.paint-fields-panel {
  animation: paintPanelIn .2s ease-out both;
}

.paint-fields-panel[hidden],
[hidden] {
  display: none !important;
}

.paint-subsection {
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid var(--c-border);
}

.paint-subsection:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.paint-subsection-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.paint-subsection-heading strong {
  color: var(--c-navy);
  font-size: 12px;
}

.paint-subsection-heading small {
  display: block;
  margin-top: 2px;
  color: var(--c-muted);
  font-size: 9.5px;
  line-height: 1.45;
}

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

.paint-field {
  margin-bottom: 14px;
}

.paint-field:last-child {
  margin-bottom: 0;
}

.paint-field > label,
.paint-field > legend {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  color: var(--c-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .55px;
  line-height: 1.4;
  text-transform: uppercase;
}

.paint-field > label small,
.paint-field > legend small {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.paint-field-hint,
.paint-hint {
  margin: 5px 1px 0;
  color: #7a8189;
  font-size: 9.5px;
  line-height: 1.5;
}

.paint-field-error,
.paint-error {
  min-height: 15px;
  margin: 6px 1px 0;
  color: var(--c-red);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.paint-stepper {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: stretch;
  min-height: 43px;
  overflow: hidden;
  border: 1.5px solid var(--c-border);
  border-radius: 9px;
  background: var(--c-bg);
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.paint-stepper:focus-within {
  border-color: var(--paint-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232, 101, 10, .12);
}

.paint-stepper--error {
  border-color: var(--c-red);
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, .08);
}

.paint-stepper > button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: #e9e7e2;
  color: var(--c-navy);
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  transition: background .18s, color .18s;
}

.paint-stepper > button:last-child {
  background: var(--paint-accent);
  color: #fff;
}

.paint-stepper > button:hover {
  background: #dcd8d2;
  color: #111;
}

.paint-stepper > button:last-child:hover {
  background: var(--paint-accent-dark);
  color: #fff;
}

.paint-stepper > button:focus-visible {
  position: relative;
  z-index: 2;
  outline: 2px solid var(--c-navy);
  outline-offset: -3px;
}

.paint-input-wrap {
  position: relative;
  min-width: 0;
}

.paint-input-wrap input,
.paint-input-wrap select {
  width: 100%;
  height: 100%;
  min-height: 40px;
  padding: 8px 52px 8px 12px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--c-text);
  font-family: var(--font-main);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  box-shadow: none;
  -moz-appearance: textfield;
}

.paint-input-wrap input::-webkit-inner-spin-button,
.paint-input-wrap input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.paint-input-wrap > span {
  position: absolute;
  top: 50%;
  right: 10px;
  max-width: 48px;
  overflow: hidden;
  transform: translateY(-50%);
  color: #74716e;
  font-size: 9.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.paint-select {
  width: 100%;
  min-height: 43px;
  padding: 9px 35px 9px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: 9px;
  outline: 0;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-main);
  font-size: 12px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.paint-select:focus {
  border-color: var(--paint-accent);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(232, 101, 10, .12);
}

.paint-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--paint-line);
  border-radius: 9px;
  background: #faf9f7;
  color: #555d67;
  font-size: 11px;
  line-height: 1.45;
  cursor: pointer;
}

.paint-checkbox input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 0;
  accent-color: var(--paint-accent);
}

.paint-checkbox strong {
  display: block;
  color: var(--c-navy);
  font-size: 11px;
}

.paint-checkbox small {
  display: block;
  margin-top: 2px;
  color: var(--c-muted);
  font-size: 9px;
}

.paint-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paint-row {
  position: relative;
  padding: 10px;
  border: 1px solid var(--paint-line);
  border-radius: 10px;
  background: #faf9f7;
}

.paint-row-grid {
  display: grid;
  grid-template-columns: minmax(112px, 1.18fr) repeat(3, minmax(74px, .82fr)) 34px;
  align-items: end;
  gap: 7px;
}

.paint-row-grid > label,
.paint-row-grid > div {
  min-width: 0;
}

.paint-row-grid label > span {
  display: block;
  min-height: 14px;
  margin: 0 1px 4px;
  overflow: hidden;
  color: #77736f;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .35px;
  line-height: 1.3;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.paint-row-grid input,
.paint-row-grid select {
  width: 100%;
  min-height: 37px;
  padding: 7px 9px;
  border: 1px solid #dedbd6;
  border-radius: 7px;
  outline: 0;
  background: #fff;
  color: var(--c-text);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.paint-row-grid input:focus,
.paint-row-grid select:focus {
  border-color: var(--paint-accent);
  box-shadow: 0 0 0 2px rgba(232, 101, 10, .1);
}

.paint-row-remove {
  display: grid;
  width: 34px;
  height: 37px;
  place-items: center;
  align-self: end;
  border: 1px solid #e6d4cc;
  border-radius: 7px;
  background: #fff;
  color: #ad4a37;
  font-size: 17px;
  line-height: 1;
  transition: border-color .18s, background .18s, color .18s;
}

.paint-row-remove:hover {
  border-color: #db8f80;
  background: #fff0ed;
  color: #8f2e21;
}

.paint-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  margin-top: 8px;
  padding: 7px 12px;
  border: 1px dashed #df9f76;
  border-radius: 8px;
  background: var(--paint-cream);
  color: var(--paint-accent-dark);
  font-size: 10.5px;
  font-weight: 600;
  transition: border-color .18s, background .18s;
}

.paint-add-button:hover {
  border-color: var(--paint-accent);
  background: #ffefe3;
}

.paint-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.paint-presets button {
  min-width: 46px;
  padding: 6px 10px;
  border: 1px solid #dedbd6;
  border-radius: 7px;
  background: #faf9f7;
  color: #666d75;
  font-size: 10px;
  font-weight: 600;
  transition: border-color .18s, color .18s, background .18s;
}

.paint-presets button:hover {
  border-color: #eba77a;
  color: var(--paint-accent-dark);
}

.paint-presets button.active,
.paint-presets button.is-active,
.paint-presets button[aria-pressed="true"] {
  border-color: var(--paint-accent);
  background: #fff0e5;
  color: #af4500;
}

.paint-coverage-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.paint-coverage-presets button {
  min-width: 0;
  padding: 8px 9px;
  text-align: left;
}

.paint-coverage-presets button > span {
  display: block;
  color: var(--c-navy);
  font-size: 11px;
  line-height: 1.2;
}

.paint-coverage-presets button > small {
  display: block;
  margin-top: 3px;
  color: #777d83;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.3;
}

.paint-coverage-presets button.active > span,
.paint-coverage-presets button.is-active > span,
.paint-coverage-presets button[aria-pressed="true"] > span {
  color: #af4500;
}

.paint-coverage-help {
  margin: 8px 1px 0;
  padding: 9px 10px;
  border-left: 3px solid #ef9a61;
  border-radius: 0 7px 7px 0;
  background: #fff8f2;
  color: #6c6864;
  font-size: 9px;
  line-height: 1.55;
}

.paint-coverage-help strong {
  color: var(--c-navy);
}

.paint-results {
  position: relative;
  overflow: hidden;
}

.paint-results-content {
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

.paint-results--blocked .paint-results-content {
  filter: blur(5px);
  opacity: .4;
  transform: scale(.993);
  user-select: none;
  pointer-events: none;
}

.paint-error-overlay {
  display: grid;
  position: absolute;
  z-index: 20;
  inset: 0;
  place-items: center;
  padding: 24px;
  background: rgba(246, 244, 240, .7);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.paint-error-overlay[hidden] {
  display: none;
}

.paint-error-overlay > div,
.paint-error-overlay__card {
  width: min(100%, 340px);
  padding: 23px 21px;
  border: 1px solid rgba(194, 66, 50, .28);
  border-radius: 14px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 45px rgba(31, 43, 60, .16);
  text-align: center;
}

.paint-error-overlay__icon,
.paint-error-overlay > div > span:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  background: #fff0ed;
  color: #c64030;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 0 0 6px rgba(198, 64, 48, .07);
}

.paint-error-overlay strong {
  display: block;
  color: var(--c-navy);
  font-size: 17px;
  line-height: 1.3;
}

.paint-error-overlay p {
  margin-top: 8px;
  color: #5f6975;
  font-size: 12px;
  line-height: 1.55;
}

.paint-result-hero {
  position: relative;
  overflow: hidden;
  margin: 0 -20px 14px;
  padding: 19px 20px 20px;
  background:
    linear-gradient(110deg, rgba(232, 101, 10, .1), transparent 42%),
    linear-gradient(125deg, var(--c-navy), #354458);
  color: #fff;
}

.paint-result-hero::before {
  position: absolute;
  top: -38px;
  right: 34px;
  width: 76px;
  height: 126px;
  content: "";
  border-radius: 0 0 42px 42px;
  background: linear-gradient(180deg, rgba(232, 115, 91, .58), rgba(232, 101, 10, .13));
  transform: rotate(14deg);
}

.paint-result-hero::after {
  position: absolute;
  right: -42px;
  bottom: -65px;
  width: 165px;
  height: 165px;
  content: "";
  border: 20px solid rgba(255, 255, 255, .045);
  border-radius: 50%;
}

.paint-result-hero > * {
  position: relative;
  z-index: 1;
}

.paint-result-hero > span,
.paint-result-hero > small {
  display: block;
  max-width: 75%;
  color: rgba(255, 255, 255, .62);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .55px;
  line-height: 1.45;
  text-transform: uppercase;
}

.paint-result-number {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 3px 0 2px;
  color: #fff;
  font-size: clamp(35px, 6vw, 49px);
  font-weight: 600;
  letter-spacing: -1.6px;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}

.paint-result-number span,
.paint-result-number small {
  color: #ff954f;
  font-size: .46em;
  font-weight: 600;
  letter-spacing: 0;
}

.paint-result-hero > .paint-result-split {
  max-width: min(100%, 410px);
  margin: 1px 0 5px;
  color: #ffd2b5;
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.paint-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 13px;
}

.paint-result-grid article {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  min-height: 78px;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid var(--paint-line);
  border-radius: 10px;
  background: #faf9f7;
}

.paint-result-grid article::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: linear-gradient(var(--paint-coral), var(--paint-accent));
}

.paint-result-grid small {
  color: #777d83;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .35px;
  line-height: 1.35;
  text-transform: uppercase;
}

.paint-result-grid strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--c-navy);
  font-size: 14px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.paint-result-grid article > em {
  display: block;
  margin-top: 5px;
  color: #777d83;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
}

.paint-preview-card {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid #ddd8d2;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfaf7, #f1ede8);
}

.paint-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid #e1dcd6;
  background: rgba(255, 255, 255, .78);
}

.paint-preview-heading strong {
  color: var(--c-navy);
  font-size: 12px;
}

.paint-preview-heading span {
  overflow: hidden;
  color: #77716d;
  font-size: 9px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#paintPreview,
.paint-preview {
  display: grid;
  width: 100%;
  min-height: 250px;
  place-items: center;
  overflow: hidden;
}

#paintPreview svg,
.paint-preview svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 290px;
}

.paint-preview-card .paint-fill {
  transform-box: fill-box;
  transform-origin: left center;
  animation: paintWallCycle 12s ease-in-out infinite alternate both;
  will-change: transform;
}

.paint-preview-card .paint-roller {
  transform-box: view-box;
  animation: paintRollAcross 12s ease-in-out infinite alternate both;
  will-change: transform;
}

.paint-preview-note {
  padding: 8px 12px;
  border-top: 1px solid #e1dcd6;
  color: #7b7773;
  font-size: 8.5px;
  line-height: 1.5;
  text-align: center;
}

.paint-formula {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid #e3ddd7;
  border-radius: 9px;
  background: #f7f5f2;
  color: #626970;
  font-size: 10px;
  line-height: 1.65;
}

.paint-formula strong {
  color: var(--c-navy);
}

.paint-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 11px;
  padding: 11px 12px;
  border: 1px solid #efd2b8;
  border-radius: 9px;
  background: #fff8ed;
  color: #6c625b;
  font-size: 10px;
  line-height: 1.55;
}

.paint-note > span {
  display: grid;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #ffe1be;
  color: var(--paint-accent-dark);
  font-weight: 700;
}

.paint-note strong {
  color: var(--c-navy);
}

.paint-section-heading {
  margin-bottom: 22px;
}

.paint-section-heading > span {
  display: block;
  margin-bottom: 5px;
  color: var(--paint-accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.paint-section-heading h2 {
  margin-bottom: 7px;
}

.paint-section-heading p {
  max-width: 780px;
  color: var(--c-muted);
  font-size: 12px;
  line-height: 1.7;
}

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

.paint-guide-grid article {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 19px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 43, 60, .035);
}

.paint-guide-grid article::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--paint-accent), var(--paint-coral));
}

.paint-guide-grid article > span {
  display: block;
  margin-bottom: 13px;
  color: #e4d9d1;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.paint-guide-grid h3 {
  margin-bottom: 6px;
  color: var(--c-navy);
  font-size: 13px;
}

.paint-guide-grid p {
  color: var(--c-muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.paint-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 43, 60, .035);
  -webkit-overflow-scrolling: touch;
}

table.paint-table,
.paint-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.paint-table th,
.paint-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--c-border);
  font-size: 11px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.paint-table th {
  background: var(--c-navy);
  color: rgba(255, 255, 255, .76);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .45px;
  text-transform: uppercase;
}

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

.paint-table tbody tr:nth-child(even) {
  background: #faf9f7;
}

.paint-table tbody tr {
  transition: background .16s;
}

.paint-table tbody tr:hover {
  background: #fff3ea;
}

.paint-table td strong {
  color: var(--paint-accent-dark);
}

.paint-table button,
.paint-table a {
  padding: 5px 8px;
  border: 1px solid #e5a77f;
  border-radius: 6px;
  background: #fff7f1;
  color: var(--paint-accent-dark);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.paint-table-caption {
  margin-top: 8px;
  color: #777d82;
  font-size: 9.5px;
  line-height: 1.55;
}

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

.paint-content-grid article {
  padding: 21px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: #fff;
}

.paint-content-grid article h2,
.paint-content-grid article h3 {
  margin-bottom: 9px;
  color: var(--c-navy);
  font-size: 17px;
  line-height: 1.35;
}

.paint-content-grid article h3 {
  font-size: 14px;
}

.paint-content-grid article p {
  margin-bottom: 9px;
  color: var(--c-muted);
  font-size: 11.5px;
  line-height: 1.75;
}

.paint-content-grid article p:last-child {
  margin-bottom: 0;
}

.paint-content-grid ul {
  margin: 9px 0 0 18px;
  color: var(--c-muted);
  font-size: 11px;
  line-height: 1.75;
}

.paint-content-grid strong {
  color: var(--c-text);
}

.paint-source-card {
  display: flex;
  gap: 15px;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid #e7d9cf;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffaf6, #f5efea);
}

.paint-source-card > span {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--paint-accent), var(--paint-coral));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.paint-source-card strong {
  color: var(--c-navy);
  font-size: 12px;
}

.paint-source-card p {
  margin: 5px 0 9px;
  color: #6d6966;
  font-size: 10.5px;
  line-height: 1.65;
}

.paint-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.paint-source-links a {
  overflow-wrap: anywhere;
  color: var(--paint-accent-dark);
  font-size: 10px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.paint-related-grid a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 43, 60, .035);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}

.paint-related-grid a:hover {
  border-color: #edaf86;
  box-shadow: 0 8px 23px rgba(232, 101, 10, .08);
  transform: translateY(-2px);
}

.paint-related-grid a > span {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: #fff0e5;
  font-size: 19px;
}

.paint-related-grid a > div {
  flex: 1;
  min-width: 0;
}

.paint-related-grid strong {
  display: block;
  color: var(--c-navy);
  font-size: 11px;
  line-height: 1.4;
}

.paint-related-grid p {
  margin-top: 3px;
  color: var(--c-muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.paint-related-grid b {
  flex: 0 0 auto;
  color: var(--paint-accent);
  font-size: 18px;
}

.paint-page .faq-item {
  border-radius: 11px;
}

.paint-page .faq-q:focus-visible {
  outline: 2px solid var(--paint-accent);
  outline-offset: -3px;
}

@keyframes paintBadgePulse {
  0%,
  100% {
    opacity: .55;
    transform: scale(.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

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

@keyframes paintWallCycle {
  0%,
  12% {
    transform: scaleX(.04);
  }
  15%,
  27% {
    transform: scaleX(.20);
  }
  30%,
  42% {
    transform: scaleX(.36);
  }
  45%,
  57% {
    transform: scaleX(.52);
  }
  60%,
  72% {
    transform: scaleX(.68);
  }
  75%,
  87% {
    transform: scaleX(.84);
  }
  90%,
  100% {
    transform: scaleX(1);
  }
}

@keyframes paintRollAcross {
  0% {
    transform: translate(155px, 82px);
  }
  12% {
    transform: translate(155px, 185px);
  }
  15% {
    transform: translate(223px, 185px);
  }
  27% {
    transform: translate(223px, 82px);
  }
  30% {
    transform: translate(291px, 82px);
  }
  42% {
    transform: translate(291px, 185px);
  }
  45% {
    transform: translate(359px, 185px);
  }
  57% {
    transform: translate(359px, 82px);
  }
  60% {
    transform: translate(427px, 82px);
  }
  72% {
    transform: translate(427px, 185px);
  }
  75% {
    transform: translate(493px, 185px);
  }
  87%,
  100% {
    transform: translate(493px, 82px);
  }
}

@media (max-width: 1040px) {
  .paint-layout {
    grid-template-columns: 1fr;
  }

  .paint-controls {
    position: static;
    top: auto;
  }

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

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

@media (max-width: 760px) {
  .paint-row-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: 40px;
  }

  .paint-row-grid > :first-child {
    grid-column: 1 / -1;
  }

  .paint-row-remove {
    position: absolute;
    top: 10px;
    right: 10px;
  }

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

  .paint-content-grid,
  .paint-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .paint-page-hero {
    padding-right: 14px;
    padding-left: 14px;
  }

  .paint-hero-badge {
    justify-content: center;
    text-align: center;
  }

  .paint-app {
    padding-right: 10px;
    padding-left: 10px;
  }

  .paint-app .panel {
    padding: 14px;
    border-radius: 13px;
  }

  .paint-mode-switch {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .paint-mode-switch button {
    grid-template-columns: 35px minmax(0, 1fr);
    min-height: 58px;
    padding: 8px 10px;
  }

  .paint-mode-switch button > span,
  .paint-mode-switch button > i {
    width: 35px;
    height: 35px;
    font-size: 17px;
  }

  .paint-mode-switch button small {
    white-space: normal;
  }

  .paint-fields-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .paint-coverage-presets {
    grid-template-columns: 1fr;
  }

  .paint-coverage-presets button {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
  }

  .paint-coverage-presets button > small {
    margin-top: 0;
  }

  .paint-stepper {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .paint-row-grid {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .paint-row-grid > :first-child {
    grid-column: auto;
    padding-right: 40px;
  }

  .paint-result-hero {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .paint-result-hero::before {
    right: 12px;
    opacity: .65;
  }

  .paint-result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .paint-preview-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .paint-preview-heading span {
    width: 100%;
    text-align: left;
    white-space: normal;
  }

  #paintPreview,
  .paint-preview {
    min-height: 210px;
  }

  .paint-guide-grid {
    grid-template-columns: 1fr;
  }

  .paint-guide-grid article {
    min-height: 0;
  }

  .paint-source-card {
    display: block;
  }

  .paint-source-card > span {
    margin-bottom: 10px;
  }
}

@media (max-width: 390px) {
  .paint-app {
    padding-right: 8px;
    padding-left: 8px;
  }

  .paint-app .panel {
    padding-right: 12px;
    padding-left: 12px;
  }

  .paint-stepper {
    grid-template-columns: 39px minmax(0, 1fr) 39px;
  }

  .paint-result-hero {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .paint-result-grid {
    grid-template-columns: 1fr;
  }

  .paint-result-grid article {
    min-height: 68px;
  }

  .paint-subsection-heading {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .paint-hero-badge > span:first-child,
  .paint-fields-panel,
  .paint-preview-card .paint-fill,
  .paint-preview-card .paint-roller {
    animation: none !important;
  }

  .paint-mode-switch button,
  .paint-stepper,
  .paint-add-button,
  .paint-related-grid a {
    transition: none;
  }
}

@media print {
  .nav,
  .page-hero,
  .paint-mode-panel,
  .paint-controls,
  .paint-error-overlay,
  .info-section,
  .faq-section,
  .footer {
    display: none !important;
  }

  html,
  body.paint-page {
    display: block;
    overflow: visible;
    background: #fff;
  }

  .main-content,
  .paint-app,
  .paint-layout,
  .paint-results {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .paint-result-hero {
    margin: 0 0 12px;
    background: #fff;
    color: #111;
    border: 1px solid #bbb;
  }

  .paint-result-number,
  .paint-result-hero > span,
  .paint-result-hero > small {
    color: #111;
  }
}

/* Index markup compatibility and paint-specific result details */
.paint-row-grid > div > label {
  display: block;
  min-height: 14px;
  margin: 0 1px 4px;
  overflow: hidden;
  color: #77736f;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .35px;
  line-height: 1.3;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.paint-row-input {
  position: relative;
}

.paint-row-input input {
  padding-right: 39px;
}

.paint-row-input > span {
  position: absolute;
  top: 50%;
  right: 8px;
  max-width: 32px;
  overflow: hidden;
  transform: translateY(-50%);
  color: #77736f;
  font-size: 8px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.paint-row input[aria-invalid="true"],
.paint-row select[aria-invalid="true"] {
  border-color: var(--c-red);
  background: #fffafa;
  box-shadow: 0 0 0 2px rgba(217, 48, 37, .08);
}

.paint-preview-heading > div {
  min-width: 0;
}

.paint-preview-heading > div strong,
.paint-preview-heading > div small {
  display: block;
}

.paint-preview-heading > div small {
  margin-top: 2px;
  color: #77716d;
  font-size: 8.5px;
}

.paint-breakdown {
  margin-top: 13px;
  overflow: hidden;
  border: 1px solid var(--paint-line);
  border-radius: 10px;
  background: #fff;
}

.paint-breakdown h3 {
  padding: 10px 12px;
  border-bottom: 1px solid var(--paint-line);
  background: #faf9f7;
  color: var(--c-navy);
  font-size: 11px;
}

.paint-breakdown dl {
  margin: 0;
}

.paint-breakdown dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #efebe7;
  font-size: 10px;
}

.paint-breakdown dl > div:last-child {
  border-bottom: 0;
}

.paint-breakdown dt {
  color: #68717b;
}

.paint-breakdown dd {
  margin: 0;
  color: var(--c-navy);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.paint-formula {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.paint-formula > span {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #ece8e3;
  color: var(--paint-accent-dark);
  font-weight: 700;
}

.paint-formula p,
.paint-note p {
  margin: 0;
}

.paint-table-note {
  margin: 9px 2px 0;
  color: #777d83;
  font-size: 9px;
  line-height: 1.55;
}

.paint-print-header,
.paint-print-source {
  display: none;
}

.paint-print-actions {
  margin-top: 13px;
}

.paint-print-button {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--c-navy);
  border-radius: 9px;
  background: var(--c-navy);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.paint-print-button:hover {
  background: #2d4055;
  box-shadow: 0 8px 18px rgba(30, 43, 60, .14);
  transform: translateY(-1px);
}

.paint-print-button:focus-visible {
  outline: 3px solid rgba(232, 101, 10, .25);
  outline-offset: 2px;
}

.paint-print-button:active {
  transform: translateY(0);
}

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

  html,
  body.paint-page,
  .main-content,
  .paint-app,
  .paint-layout,
  .paint-results,
  .paint-results-content,
  .paint-result-hero,
  .paint-result-grid article,
  .paint-preview-card,
  .paint-preview-heading,
  .paint-breakdown,
  .paint-breakdown h3,
  .paint-formula,
  .paint-note {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body.paint-page {
    margin: 0 !important;
  }

  .paint-results {
    overflow: visible !important;
  }

  .paint-results-content {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .paint-print-actions,
  .paint-preview-card,
  .paint-results > .paint-error-overlay {
    display: none !important;
  }

  .paint-print-header,
  .paint-print-source {
    display: block !important;
    color: #000 !important;
  }

  .paint-print-header {
    margin-bottom: 13px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
  }

  .paint-print-header span {
    display: block;
    margin-bottom: 3px;
    font-size: 9pt;
    font-weight: 700;
  }

  .paint-print-header h2 {
    margin: 0;
    color: #000 !important;
    font-size: 19pt;
    line-height: 1.2;
  }

  .paint-print-header p {
    margin: 4px 0 0;
    color: #000 !important;
    font-size: 8.5pt;
  }

  .paint-results .panel__title {
    margin-bottom: 6px;
    color: #000 !important;
  }

  .paint-results .panel__title svg {
    stroke: #000 !important;
  }

  .paint-result-hero {
    margin-bottom: 7px;
    padding: 9px 12px;
    border: 2px solid #000;
  }

  .paint-result-number {
    margin: 1px 0;
    font-size: 30pt;
  }

  .paint-result-hero::before,
  .paint-result-hero::after {
    display: none !important;
  }

  .paint-result-number,
  .paint-result-number b,
  .paint-result-hero > span,
  .paint-result-hero > small,
  .paint-result-hero > .paint-result-split,
  .paint-result-grid small,
  .paint-result-grid strong,
  .paint-result-grid article > em,
  .paint-preview-heading strong,
  .paint-preview-heading small,
  .paint-preview-heading span,
  .paint-preview-note,
  .paint-breakdown h3,
  .paint-breakdown dt,
  .paint-breakdown dd,
  .paint-formula,
  .paint-formula strong,
  .paint-note,
  .paint-note strong {
    color: #000 !important;
  }

  .paint-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
  }

  .paint-result-grid article,
  .paint-preview-card,
  .paint-preview-heading,
  .paint-preview-note,
  .paint-breakdown,
  .paint-breakdown h3,
  .paint-breakdown dl > div,
  .paint-formula,
  .paint-note {
    border-color: #000 !important;
  }

  .paint-result-grid article {
    min-height: 43px;
    padding: 6px 9px;
  }

  .paint-result-grid article::before {
    background: #000 !important;
  }

  .paint-preview-card {
    margin-top: 6px;
    break-inside: avoid;
  }

  #paintPreview,
  .paint-preview {
    min-height: 130px;
  }

  #paintPreview svg,
  .paint-preview svg {
    max-height: 150px;
  }

  .paint-preview-heading {
    padding: 6px 10px;
  }

  .paint-preview-note {
    display: none !important;
  }

  #paintPreview svg *,
  .paint-preview svg * {
    animation: none !important;
    filter: none !important;
  }

  #paintPreview svg [fill],
  .paint-preview svg [fill] {
    fill: #fff !important;
  }

  #paintPreview svg [stroke],
  .paint-preview svg [stroke] {
    stroke: #000 !important;
  }

  #paintPreview svg .paint-fill,
  .paint-preview svg .paint-fill {
    fill: #000 !important;
    opacity: .12 !important;
    transform: none !important;
  }

  #paintPreview svg .paint-roller rect,
  #paintPreview svg .paint-roller path,
  .paint-preview svg .paint-roller rect,
  .paint-preview svg .paint-roller path,
  #paintPreview svg text,
  .paint-preview svg text {
    fill: #000 !important;
  }

  .paint-formula,
  .paint-note {
    margin-top: 6px;
    padding: 6px 9px;
    font-size: 8pt;
  }

  .paint-breakdown {
    margin-top: 7px;
  }

  .paint-breakdown h3 {
    padding: 6px 9px;
  }

  .paint-breakdown dl > div {
    padding: 5px 9px;
  }

  .paint-formula > span,
  .paint-note > span {
    border: 1px solid #000;
    background: #fff !important;
    color: #000 !important;
  }

  .paint-print-source {
    margin-top: 9px;
    padding-top: 6px;
    border-top: 1px solid #000;
    font-size: 8pt;
    line-height: 1.45;
  }

  .paint-print-source a {
    color: #000 !important;
    font-weight: 700;
    text-decoration: underline;
  }

  .paint-print-source a[href]::after {
    content: none !important;
  }
}
