/* Copyright 2026 RX Group. All rights reserved. */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  color-scheme: light;
  --ground: #f2f4f3;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --ink: #192126;
  --ink-soft: #3f4b51;
  --muted: #6d7a80;
  --line: #d8e0e2;
  --line-strong: #bcc8cc;
  --accent: #e96a26;
  --accent-dark: #a94716;
  --accent-soft: #fff0e8;
  --disabled: #eef1f1;
  --radius: 8px;
  --content-width: 1440px;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ground);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--ground);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
label,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
summary:focus-visible,
label:has(input:focus-visible) {
  outline: 3px solid rgba(233, 106, 38, 0.3);
  outline-offset: 2px;
}

.app-shell {
  width: min(100%, var(--content-width));
  min-height: 100vh;
  margin: 0 auto;
}

.add-room,
.stepper-button,
.icon-button,
.button {
  border: 0;
  cursor: pointer;
}

.workspace {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 32px;
  padding: 30px 28px 56px;
  align-items: start;
}

.rooms-panel {
  position: sticky;
  top: 24px;
  min-width: 0;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.panel-heading,
.calculator-header,
.estimate-header,
.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading {
  padding: 4px 0 18px;
}

.room-context {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 0;
  font-weight: 500;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
}

h2 {
  font-size: 19px;
  line-height: 1.2;
}

.room-count {
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.room-list {
  display: grid;
}

.room-item {
  width: 100%;
  min-height: 58px;
  padding: 10px 10px 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.room-item:hover {
  background: var(--surface-soft);
}

.room-item.is-active {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.room-item-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.room-item-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-item-index {
  color: var(--muted);
  font-size: 12px;
}

.room-item-price {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.add-room {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  background: transparent;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 500;
  transition: color 160ms ease;
}

.add-room:hover {
  color: var(--ink);
}

.add-room svg {
  width: 18px;
  height: 18px;
}

.project-total {
  margin-top: 26px;
  padding-top: 17px;
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.project-total strong {
  color: var(--ink);
  font-size: 21px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.calculator-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.calculator-panel.room-switch .form-section,
.calculator-panel.room-switch .estimate {
  animation: room-switch 180ms ease-out both;
}

@keyframes room-switch {
  from {
    opacity: 0.45;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calculator-header {
  padding: 28px 32px 26px;
  border-bottom: 1px solid var(--line);
}

.help-details {
  max-width: 260px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.help-details summary {
  color: var(--ink-soft);
  cursor: pointer;
  list-style-position: inside;
  text-align: right;
}

.help-details p {
  margin: 8px 0 0;
}

.form-section {
  padding: 25px 32px 28px;
  border-bottom: 1px solid var(--line);
}

.picker-section {
  padding-top: 18px;
  padding-bottom: 18px;
}

.picker-accordion {
  margin: 0;
}

.picker-accordion > summary {
  min-height: 54px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.picker-accordion > summary::-webkit-details-marker {
  display: none;
}

.picker-accordion > summary:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.picker-accordion[open] > summary {
  border-color: var(--accent);
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  background: var(--accent-soft);
}

.picker-summary-label {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.picker-summary-value {
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  color: var(--accent-dark);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--muted);
  transition: transform 160ms ease, color 160ms ease;
}

.picker-accordion[open] .picker-chevron {
  transform: rotate(180deg);
  color: var(--accent-dark);
}

.picker-content {
  padding-top: 12px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.section-heading {
  margin-bottom: 17px;
}

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

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

.field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.field > label,
.inline-choice-fieldset legend,
.curtain-length-field > label {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.25;
}

.input-with-unit,
.stepper {
  min-height: 48px;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.input-with-unit:focus-within,
.stepper:focus-within {
  border-color: var(--accent);
  background: var(--surface-soft);
}

.input-with-unit input,
.stepper input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.input-with-unit input::-webkit-outer-spin-button,
.input-with-unit input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.input-with-unit input[type="number"],
.stepper input[type="number"] {
  appearance: textfield;
}

.input-with-unit span {
  min-width: 45px;
  padding-right: 13px;
  display: grid;
  place-items: center end;
  color: var(--muted);
  font-size: 14px;
}

.stepper-button {
  width: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--ink-soft);
  transition: background-color 160ms ease, color 160ms ease;
}

.stepper-button:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.stepper-button svg {
  width: 18px;
  height: 18px;
}

.stepper input {
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  text-align: center;
}

.choice-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-fieldset legend {
  margin-bottom: 15px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.choice-fieldset legend.sr-only {
  margin: -1px !important;
  font-size: 1px;
}

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

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

.choice {
  min-width: 0;
  min-height: 60px;
  padding: 12px 13px;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.choice:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice input,
.binary-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice-mark {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  /* deslop-ignore-next-line 19 — radio control shape is functional, not decoration. */
  border-radius: 50%;
  background: var(--surface);
}

.choice:has(input:checked) .choice-mark {
  border: 4px solid var(--accent);
}

.choice-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.choice-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.choice-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.inline-choice-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.binary-choice {
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  overflow: hidden;
}

.binary-option {
  min-width: 0;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.binary-option + .binary-option {
  border-left: 1px solid var(--line-strong);
}

.binary-option:has(input:checked) {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 500;
}

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

.curtain-length-field {
  max-width: 310px;
  margin-top: 17px;
}

.input-with-unit:has(input:disabled) {
  border-color: var(--line);
  background: var(--disabled);
}

.input-with-unit input:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.estimate {
  margin: 25px 32px 32px;
  padding: 23px 24px 13px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
}

.estimate h2 {
  color: var(--surface);
}

.estimate-total {
  color: var(--accent);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.breakdown {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.breakdown-line {
  min-height: 47px;
  padding: 11px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #eef2f2;
  font-size: 14px;
}

.breakdown-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breakdown-line small {
  display: inline-block;
  margin-left: 8px;
  color: #aab6ba;
  font-size: 12px;
}

.breakdown-line strong {
  flex: 0 0 auto;
  color: var(--surface);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.empty-estimate {
  margin: 14px 0 0;
  color: #aab6ba;
  font-size: 13px;
}

.room-dialog {
  width: min(calc(100% - 32px), 430px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.room-dialog::backdrop {
  background: rgba(25, 33, 38, 0.38);
}

.room-dialog form {
  padding: 24px;
}

.dialog-header {
  align-items: center;
  margin-bottom: 28px;
}

.dialog-header h2 {
  font-size: 22px;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  transition: background-color 160ms ease, color 160ms ease;
}

.icon-button:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.dialog-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.dialog-input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
}

.dialog-input:focus {
  border-color: var(--accent);
}

.dialog-actions {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.button {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-quiet {
  background: var(--surface);
  color: var(--ink-soft);
}

.button-quiet:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--surface);
}

.button-primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

@media (max-width: 1060px) {
  .workspace {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .rooms-panel {
    padding-right: 18px;
  }

  .calculator-header,
  .form-section {
    padding-right: 24px;
    padding-left: 24px;
  }

  .estimate {
    margin-right: 24px;
    margin-left: 24px;
  }

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

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

@media (max-width: 720px) {
  .workspace {
    display: block;
    padding: 16px 12px 36px;
  }

  .rooms-panel {
    position: static;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .panel-heading {
    padding-top: 0;
  }

  .room-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
  }

  .room-item {
    min-height: 55px;
    border: 1px solid var(--line);
    border-left-width: 2px;
    border-radius: 5px;
  }

  .add-room {
    width: auto;
    margin-top: 12px;
  }

  .project-total {
    margin-top: 13px;
    padding-top: 13px;
  }

  .calculator-panel {
    margin-top: 18px;
    border-radius: 6px;
  }

  .calculator-header {
    padding: 22px 18px 21px;
  }

  .help-details {
    max-width: 140px;
  }

  .help-details summary {
    text-align: right;
  }

  .form-section {
    padding: 22px 18px 24px;
  }

  .field-grid,
  .field-grid-four {
    grid-template-columns: 1fr;
  }

  .choice-grid,
  .choice-grid-two,
  .curtain-grid {
    grid-template-columns: 1fr;
  }

  .choice {
    min-height: 52px;
    align-items: center;
  }

  .choice-mark {
    margin-top: 0;
  }

  .curtain-length-field {
    max-width: none;
  }

  .estimate {
    margin: 18px 18px 22px;
    padding: 20px 16px 10px;
  }

  .estimate-header {
    align-items: flex-end;
  }

  .estimate-total {
    font-size: 32px;
  }

  .breakdown-line {
    gap: 12px;
  }
}

/* Purposeful motion: state change in, state change out. */
.picker-accordion[open] .picker-content {
  animation: picker-reveal 180ms ease-out both;
  transform-origin: top center;
}

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

.number-pop {
  animation: number-pop 220ms ease-out both;
}

@keyframes number-pop {
  from {
    filter: blur(2px);
    opacity: 0.3;
    transform: translateY(4px);
  }
  to {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
  }
}

.add-room:active,
.stepper-button:active,
.button:active,
.icon-button:active {
  transform: translateY(1px);
}

.stepper-button,
.button,
.icon-button {
  transition-property: background-color, border-color, color, transform;
}

/* Line-free refinement: hierarchy comes from space and type, not separators. */
.calculator-header {
  border-bottom: 0;
}

.form-section,
.picker-section {
  border-bottom: 0;
}

.picker-accordion > summary,
.picker-accordion[open] > summary {
  border: 0;
  background: transparent;
}

.picker-accordion > summary:hover,
.picker-accordion[open] > summary:hover {
  border: 0;
  background: transparent;
}

.choice-grid,
.choice-grid-two,
.curtain-grid {
  gap: 2px 28px;
}

.choice {
  min-height: 42px;
  padding: 8px 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
}

.choice:hover {
  padding-right: 8px;
  padding-left: 8px;
  border: 0;
  background: var(--accent-soft);
}

.choice:has(input:checked) {
  border: 0;
  background: transparent;
}

.binary-choice {
  border: 0;
  border-radius: 0;
}

.binary-option:has(input:checked)::after {
  display: none;
}

.room-item {
  border: 0;
  border-radius: 0;
}

.project-total,
.estimate,
.breakdown,
.breakdown-line {
  border-top: 0;
  border-bottom: 0;
}

.estimate {
  margin-top: 33px;
}

@media (max-width: 720px) {
  .form-section {
    padding-top: 25px;
    padding-bottom: 18px;
  }

  .picker-section {
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .estimate {
    margin-top: 28px;
    padding-top: 0;
  }
}

/* Rounded system: calm surfaces, one radius language, no nested hard edges. */
.workspace {
  gap: 40px;
}

.rooms-panel {
  padding: 20px 18px 22px;
  border: 1px solid rgba(183, 197, 202, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(25, 33, 38, 0.05);
}

.calculator-panel {
  padding: 34px 38px 38px;
  border: 1px solid rgba(183, 197, 202, 0.72);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(25, 33, 38, 0.06);
}

.calculator-header {
  padding-top: 0;
}

.form-section,
.form-section + .form-section {
  padding-top: 22px;
  padding-bottom: 22px;
}

.picker-section {
  padding-top: 12px;
  padding-bottom: 12px;
}

.picker-accordion > summary,
.picker-accordion[open] > summary {
  min-height: 50px;
  padding: 10px 16px;
  border-radius: 15px;
  background: var(--surface-soft);
  transition: background-color 160ms ease, color 160ms ease;
}

.picker-accordion > summary:hover,
.picker-accordion[open] > summary:hover {
  background: var(--accent-soft);
}

.picker-accordion[open] > summary {
  color: var(--accent-dark);
}

.picker-content {
  padding: 10px 10px 0;
}

.choice-grid,
.choice-grid-two,
.curtain-grid {
  gap: 8px;
}

.choice {
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--surface-soft);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.choice:hover {
  margin: 0;
  padding: 10px 13px;
  border-color: var(--line-strong);
  background: var(--surface);
}

.choice:has(input:checked) {
  border-color: rgba(233, 106, 38, 0.5);
  background: var(--accent-soft);
}

.choice:active {
  transform: translateY(1px);
}

.input-with-unit,
.stepper {
  min-height: 54px;
  border-radius: 14px;
}

.input-with-unit input,
.stepper input {
  height: 52px;
}

.stepper-button {
  width: 50px;
  min-height: 52px;
  border-radius: 12px;
}

.binary-choice {
  min-height: 54px;
  padding: 4px;
  border-radius: 14px;
}

.binary-option {
  min-height: 46px;
  border-radius: 11px;
}

.curtain-length-field {
  max-width: 340px;
}

.estimate {
  margin-top: 30px;
  padding: 25px 24px 20px;
  border: 1px solid rgba(183, 197, 202, 0.72);
  border-radius: 20px;
  background: #f8fbfa;
  box-shadow: 0 10px 28px rgba(25, 33, 38, 0.04);
}

.breakdown {
  margin-top: 18px;
}

.breakdown-line {
  min-height: 44px;
  padding: 9px 0;
}

.room-item {
  min-height: 60px;
  border-radius: 13px;
}

.room-item.is-active {
  border-left-color: var(--accent);
}

.add-room {
  min-height: 46px;
  padding: 9px 12px;
  border-radius: 12px;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.add-room:hover {
  background: var(--accent-soft);
}

.project-total {
  margin-top: 24px;
  padding: 17px 12px 0;
}

.room-dialog {
  border-radius: 18px;
}

@media (max-width: 1100px) {
  .calculator-panel {
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 720px) {
  .workspace {
    padding: 18px 14px 40px;
  }

  .rooms-panel {
    padding: 16px 12px 18px;
    border-radius: 18px;
    box-shadow: none;
  }

  .calculator-panel {
    margin-top: 22px;
    padding: 21px 17px 24px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(25, 33, 38, 0.05);
  }

  .calculator-header {
    padding-bottom: 18px;
  }

  .form-section,
  .form-section + .form-section {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .picker-section {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .picker-content {
    padding-right: 0;
    padding-left: 0;
  }

  .choice {
    min-height: 50px;
  }

  .estimate {
    margin-top: 23px;
    padding: 21px 16px 16px;
    border-radius: 17px;
  }
}

@media (max-width: 390px) {
  .workspace {
    padding-right: 10px;
    padding-left: 10px;
  }

  .calculator-panel {
    padding-right: 14px;
    padding-left: 14px;
    border-radius: 17px;
  }

  .rooms-panel {
    border-radius: 16px;
  }
}

/* Final interaction polish: soft corners only where a person touches. */
.input-with-unit,
.stepper,
.dialog-input {
  border-radius: 10px;
}

.binary-choice {
  border-radius: 10px;
  padding: 2px;
  background: var(--surface-soft);
}

.binary-option {
  min-height: 41px;
  border-radius: 8px;
}

.binary-option:has(input:checked) {
  background: var(--surface);
}

.choice:hover {
  border-radius: 8px;
}

.button {
  border-radius: 9px;
}

.icon-button {
  border-radius: 8px;
}

.room-dialog {
  border-radius: 14px;
}

@media (max-width: 390px) {
  .calculator-header {
    align-items: flex-start;
    gap: 12px;
  }

  .help-details {
    max-width: 120px;
    font-size: 12px;
  }

  .estimate-total {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Flat product pass: one working surface, no stacked cards. */
.calculator-panel {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.calculator-header {
  padding: 8px 0 28px;
  border-bottom-color: var(--line-strong);
}

.form-section {
  padding: 27px 0 28px;
}

.picker-section {
  padding-top: 16px;
  padding-bottom: 16px;
}

.picker-accordion > summary,
.picker-accordion[open] > summary {
  min-height: 45px;
  padding: 7px 0 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.picker-accordion > summary:hover,
.picker-accordion[open] > summary:hover {
  border-bottom-color: var(--line-strong);
  background: transparent;
}

.picker-accordion[open] > summary {
  border-bottom-color: var(--line-strong);
}

.picker-summary-label {
  font-size: 17px;
}

.picker-summary-value {
  color: var(--accent-dark);
}

.picker-content {
  padding-top: 2px;
}

.choice-grid,
.choice-grid-two,
.curtain-grid {
  gap: 0 28px;
}

.choice {
  min-height: 46px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.choice:hover,
.choice:has(input:checked) {
  border-color: var(--line);
  background: transparent;
}

.choice:has(input:checked) .choice-copy strong {
  color: var(--accent-dark);
}

.choice-mark {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}

.binary-choice {
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  overflow: visible;
}

.binary-option {
  min-height: 45px;
}

.binary-option + .binary-option {
  border-left: 0;
}

.binary-option:has(input:checked) {
  position: relative;
  background: transparent;
  color: var(--accent-dark);
}

.binary-option:has(input:checked)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
}

.room-count {
  min-width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 14px;
}

.room-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  border-radius: 0;
}

.room-item.is-active {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.estimate {
  margin: 27px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.estimate h2 {
  color: var(--ink);
}

.estimate-total {
  color: var(--accent-dark);
}

.breakdown {
  border-top-color: var(--line);
}

.breakdown-line {
  border-bottom-color: var(--line);
  color: var(--ink-soft);
}

.breakdown-line small {
  color: var(--muted);
}

.breakdown-line strong {
  color: var(--ink);
}

.empty-estimate {
  color: var(--muted);
}

@media (max-width: 720px) {
  .rooms-panel {
    padding-bottom: 18px;
  }

  .room-list {
    gap: 0;
  }

  .room-item {
    min-height: 53px;
    padding-right: 4px;
    padding-left: 10px;
  }

  .calculator-panel {
    margin-top: 18px;
  }

  .calculator-header {
    padding: 4px 0 21px;
  }

  .form-section {
    padding: 21px 0 23px;
  }

  .picker-section {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .estimate {
    margin-top: 21px;
    padding-top: 21px;
  }
}

/* Keep the final surface quiet: no duplicate rails around interactive rows. */
.calculator-header,
.form-section,
.picker-section {
  border-bottom: 0;
}

.rooms-panel {
  border-right: 0;
}

.picker-accordion > summary,
.picker-accordion[open] > summary {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.picker-accordion > summary:hover,
.picker-accordion[open] > summary:hover {
  border: 0;
  background: transparent;
}

.choice {
  border: 0;
}

.binary-choice,
.room-item,
.project-total,
.estimate,
.breakdown,
.breakdown-line {
  border-top: 0;
  border-bottom: 0;
}

@media (max-width: 720px) {
  .rooms-panel {
    border-bottom: 0;
  }

  .form-section {
    padding-top: 25px;
    padding-bottom: 18px;
  }

  .picker-section {
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .estimate {
    margin-top: 28px;
    padding-top: 0;
  }
}

/* Last visual layer: rounded cards are intentional product surfaces. */
.workspace {
  gap: 40px;
}

.rooms-panel {
  padding: 20px 18px 22px;
  border: 1px solid rgba(183, 197, 202, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(25, 33, 38, 0.05);
}

.calculator-panel {
  padding: 34px 38px 38px;
  border: 1px solid rgba(183, 197, 202, 0.72);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(25, 33, 38, 0.06);
}

.form-section,
.form-section + .form-section {
  padding-top: 22px;
  padding-bottom: 22px;
}

.picker-section {
  padding-top: 12px;
  padding-bottom: 12px;
}

.picker-accordion > summary,
.picker-accordion[open] > summary {
  min-height: 50px;
  padding: 10px 16px;
  border-radius: 15px;
  background: var(--surface-soft);
}

.picker-accordion > summary:hover,
.picker-accordion[open] > summary:hover {
  background: var(--accent-soft);
}

.picker-accordion[open] > summary {
  color: var(--accent-dark);
}

.picker-content {
  padding: 10px 10px 0;
}

.choice-grid,
.choice-grid-two,
.curtain-grid {
  gap: 8px;
}

.choice {
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--surface-soft);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.choice:hover {
  margin: 0;
  padding: 10px 13px;
  border-color: var(--line-strong);
  background: var(--surface);
}

.choice:has(input:checked) {
  border-color: rgba(233, 106, 38, 0.5);
  background: var(--accent-soft);
}

.choice:active {
  transform: translateY(1px);
}

.input-with-unit,
.stepper {
  min-height: 54px;
  border-radius: 14px;
}

.input-with-unit input,
.stepper input {
  height: 52px;
}

.stepper-button {
  width: 50px;
  min-height: 52px;
  border-radius: 12px;
}

.binary-choice {
  min-height: 54px;
  padding: 4px;
  border-radius: 14px;
}

.binary-option {
  min-height: 46px;
  border-radius: 11px;
}

.binary-option:has(input:checked) {
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(183, 197, 202, 0.65);
}

.curtain-length-field {
  max-width: 340px;
}

.estimate {
  margin-top: 30px;
  padding: 25px 24px 20px;
  border: 1px solid rgba(183, 197, 202, 0.72);
  border-radius: 20px;
  background: #f8fbfa;
  box-shadow: 0 10px 28px rgba(25, 33, 38, 0.04);
}

.breakdown {
  margin-top: 18px;
}

.room-item {
  min-height: 60px;
  border-radius: 13px;
}

.add-room {
  min-height: 46px;
  padding: 9px 12px;
  border-radius: 12px;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.add-room:hover {
  background: var(--accent-soft);
}

.project-total {
  margin-top: 24px;
  padding: 17px 12px 0;
}

@media (max-width: 1100px) {
  .calculator-panel {
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 720px) {
  .workspace {
    padding: 18px 14px 40px;
  }

  .rooms-panel {
    padding: 16px 12px 18px;
    border-radius: 18px;
    box-shadow: none;
  }

  .calculator-panel {
    margin-top: 22px;
    padding: 21px 17px 24px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(25, 33, 38, 0.05);
  }

  .calculator-header {
    padding-bottom: 18px;
  }

  .form-section,
  .form-section + .form-section {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .picker-section {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .picker-content {
    padding-right: 0;
    padding-left: 0;
  }

  .choice {
    min-height: 50px;
  }

  .estimate {
    margin-top: 23px;
    padding: 21px 16px 16px;
    border-radius: 17px;
  }
}

@media (max-width: 390px) {
  .workspace {
    padding-right: 10px;
    padding-left: 10px;
  }

  .calculator-panel {
    padding-right: 14px;
    padding-left: 14px;
    border-radius: 17px;
  }

  .rooms-panel {
    border-radius: 16px;
  }
}
