:root {
  --ink: #17313b;
  --ink-soft: #49626b;
  --teal: #087e83;
  --teal-dark: #05666a;
  --glass: #d8edef;
  --orange: #f06b3d;
  --paper: #f4f7f6;
  --white: #ffffff;
  --line: #cbd8d9;
  --line-dark: #a8bcbe;
  --shadow: 0 22px 60px rgba(23, 49, 59, 0.11);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(8, 126, 131, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 126, 131, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 15px;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button,
label,
input[type="radio"],
input[type="checkbox"] {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(240, 107, 61, 0.35);
  outline-offset: 2px;
}

.page-frame {
  min-height: 100vh;
}

.topbar {
  height: 78px;
  padding: 0 clamp(22px, 4vw, 64px);
  border-bottom: 1px solid rgba(168, 188, 190, 0.65);
  background: rgba(244, 247, 246, 0.9);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 4px;
  border: 2px solid var(--ink);
  transform: skewY(-4deg);
}

.brand-mark i {
  background: linear-gradient(145deg, rgba(255,255,255,.9), var(--glass));
  border: 1px solid #9cbfc1;
}

.brand strong {
  display: block;
  font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  font-size: 22px;
  font-stretch: condensed;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.save-state {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.save-state span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #39a56a;
  box-shadow: 0 0 0 4px rgba(57, 165, 106, 0.12);
}

.workspace {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 48px clamp(22px, 4vw, 64px) 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(370px, 0.8fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: start;
}

.intro {
  margin-bottom: 38px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.intro h1 {
  margin: 0;
  max-width: 650px;
  color: var(--ink);
  font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  font-size: clamp(48px, 6vw, 82px);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 0.89;
  text-transform: uppercase;
}

.intro h1 em {
  color: var(--teal);
  font-style: normal;
}

.intro > p:last-child {
  max-width: 555px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

.setup-panel,
.measurements {
  padding-top: 30px;
  border-top: 2px solid var(--ink);
}

.measurements {
  margin-top: 46px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 26px;
}

.section-heading > span {
  margin-top: 3px;
  color: var(--orange);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
}

.section-heading h2 {
  margin: 0;
  font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  font-size: 25px;
  letter-spacing: -0.4px;
  text-transform: uppercase;
}

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

.section-heading-row {
  align-items: center;
}

.formula-pill {
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.6);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
}

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

.field,
.choice-field,
.count-field {
  min-width: 0;
}

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

.field > span,
.choice-field legend,
.count-field > div:first-child > span {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.field > span small {
  margin-left: 4px;
  color: #829397;
  font-size: 9px;
  font-weight: 700;
}

.field input[type="text"] {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:hover,
.field input:focus {
  border-color: var(--teal);
  box-shadow: 0 5px 18px rgba(8, 126, 131, 0.08);
}

.choice-field {
  padding: 0;
  margin: 0;
  border: 0;
}

.shape-options,
.system-options {
  display: grid;
  gap: 8px;
}

.shape-options {
  grid-template-columns: repeat(3, 1fr);
}

.shape-options input,
.system-options input,
.mini-system-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shape-card {
  height: 75px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: 160ms ease;
}

.shape-card b {
  font-size: 11px;
}

.shape-options input:checked + .shape-card {
  color: var(--teal-dark);
  border: 2px solid var(--teal);
  background: #edf8f8;
  box-shadow: 0 4px 15px rgba(8, 126, 131, 0.08);
}

.shape-options input:focus-visible + .shape-card,
.system-options input:focus-visible + span,
.mini-system-toggle input:focus-visible + span {
  outline: 3px solid rgba(240, 107, 61, 0.35);
  outline-offset: 2px;
}

.shape {
  width: 29px;
  height: 20px;
  display: block;
  border-color: currentColor;
}

.shape-straight {
  height: 2px;
  margin-top: 9px;
  border-top: 3px solid;
}

.shape-l {
  border-left: 3px solid;
  border-bottom: 3px solid;
}

.shape-u {
  border: 3px solid;
  border-top: 0;
}

.system-options {
  grid-template-columns: repeat(2, 1fr);
}

.system-options label > span {
  height: 75px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  grid-template-columns: 26px 1fr;
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: 8px;
  transition: 160ms ease;
}

.system-options input:checked + span {
  border: 2px solid var(--teal);
  background: #edf8f8;
}

.system-options b {
  font-size: 12px;
}

.system-options small {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  align-self: start;
}

.fold-icon,
.slide-icon {
  grid-row: 1 / -1;
  width: 24px;
  height: 28px;
  display: inline-block;
  position: relative;
  align-self: center;
}

.fold-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid currentColor;
  background: repeating-linear-gradient(90deg, transparent 0 5px, currentColor 6px 7px);
}

.slide-icon::before,
.slide-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 24px;
  border: 2px solid currentColor;
}

.slide-icon::before { left: 0; top: 0; }
.slide-icon::after { right: 0; bottom: 0; background: rgba(216,237,239,.8); }

.count-field {
  grid-column: 1 / -1;
  min-height: 68px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.count-field > div:first-child > span {
  margin: 0 0 4px;
}

.count-field small {
  color: var(--ink-soft);
  font-size: 11px;
}

.stepper {
  min-width: 132px;
  height: 43px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: var(--white);
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  overflow: hidden;
}

.stepper button {
  height: 100%;
  padding: 0;
  color: var(--teal);
  background: transparent;
  border: 0;
  font-size: 24px;
}

.stepper button:hover {
  background: var(--glass);
}

.stepper output {
  font-family: "Courier New", monospace;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.systems-list {
  display: grid;
  gap: 11px;
}

.system-row {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  grid-template-columns: 110px minmax(110px, 1fr) minmax(110px, 1fr) 90px;
  align-items: end;
  gap: 13px;
  animation: row-in 220ms ease both;
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.system-identity {
  align-self: center;
}

.system-identity small {
  display: block;
  color: var(--teal);
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.system-identity strong {
  display: block;
  margin: 4px 0 9px;
  font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  font-size: 18px;
  text-transform: uppercase;
}

.mini-system-toggle {
  display: flex;
  gap: 4px;
}

.mini-system-toggle span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
}

.mini-system-toggle input:checked + span {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.measure-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.measure-input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.measure-input:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 126, 131, 0.1);
}

.measure-input input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 4px 0 12px;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-family: "Courier New", monospace;
  font-size: 16px;
  font-weight: 700;
}

.measure-input b {
  padding-right: 10px;
  color: #829397;
  font-size: 10px;
}

.row-area {
  min-height: 44px;
  padding: 7px 0 5px 12px;
  border-left: 1px solid var(--line);
}

.row-area span {
  display: block;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.row-area strong {
  display: block;
  margin-top: 3px;
  font-family: "Courier New", monospace;
  font-size: 17px;
}

.result-column {
  position: sticky;
  top: 110px;
}

.result-card {
  padding: clamp(22px, 3vw, 34px);
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.result-card::after {
  content: "";
  width: 170px;
  height: 170px;
  position: absolute;
  top: -85px;
  right: -85px;
  border: 1px solid rgba(216, 237, 239, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(216, 237, 239, 0.025), 0 0 0 56px rgba(216, 237, 239, 0.02);
  pointer-events: none;
}

.result-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.result-topline .eyebrow {
  color: #7ad0d2;
}

.result-topline h2 {
  margin: 0;
  font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  font-size: 25px;
  text-transform: uppercase;
}

.date-badge {
  padding: 6px 8px;
  color: #b6c8ca;
  border: 1px solid rgba(216, 237, 239, 0.18);
  border-radius: 5px;
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: 700;
}

.glass-plan {
  height: 112px;
  margin: 30px 0 20px;
  display: flex;
  align-items: stretch;
  gap: 5px;
  perspective: 600px;
  position: relative;
}

.glass-plan::before,
.glass-plan::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(216, 237, 239, 0.23);
}

.glass-plan::before { top: -8px; }
.glass-plan::after { bottom: -8px; }

.plan-panel {
  min-width: 18px;
  border: 1px solid rgba(216, 237, 239, 0.58);
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), transparent 35%),
    linear-gradient(180deg, rgba(122,208,210,.22), rgba(216,237,239,.07));
  position: relative;
  transition: flex 240ms ease;
}

.plan-panel::after {
  content: "";
  position: absolute;
  top: 48%;
  right: 4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d8edef;
}

.plan-panel span {
  position: absolute;
  left: 50%;
  bottom: 5px;
  color: rgba(255,255,255,.8);
  font-family: "Courier New", monospace;
  font-size: 8px;
  transform: translateX(-50%);
}

.plan-panel.is-empty {
  opacity: .32;
}

.project-label {
  min-height: 20px;
  color: #a8bcbf;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.grand-total {
  padding: 13px 0 26px;
  border-bottom: 1px solid rgba(216, 237, 239, 0.18);
}

.grand-total > span {
  display: block;
  color: #b6c8ca;
  font-size: 11px;
  font-weight: 600;
}

.grand-total strong {
  display: block;
  margin: 5px 0;
  color: var(--white);
  font-family: "Courier New", monospace;
  font-size: clamp(35px, 4.2vw, 53px);
  letter-spacing: -2.5px;
  line-height: 1;
}

.grand-total small {
  color: #7ad0d2;
  font-size: 10px;
  font-weight: 700;
}

.quick-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 20px 0;
  border-bottom: 1px solid rgba(216, 237, 239, 0.18);
}

.quick-totals > div + div {
  padding-left: 20px;
  border-left: 1px solid rgba(216, 237, 239, 0.18);
}

.quick-totals span {
  display: block;
  margin-bottom: 4px;
  color: #93aaad;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.quick-totals strong {
  font-family: "Courier New", monospace;
  font-size: 15px;
}

.breakdown {
  padding: 19px 0;
}

.breakdown-head,
.breakdown-row {
  display: grid;
  grid-template-columns: 1fr .72fr 1fr;
  gap: 8px;
}

.breakdown-head {
  padding-bottom: 8px;
  color: #758f93;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.breakdown-head span:nth-child(n+2),
.breakdown-row span:nth-child(n+2) {
  text-align: right;
}

.breakdown-row {
  padding: 8px 0;
  color: #d8e4e5;
  border-top: 1px dashed rgba(216, 237, 239, 0.13);
  font-family: "Courier New", monospace;
  font-size: 10px;
}

.breakdown-row b {
  color: var(--white);
  font-weight: 700;
}

.breakdown-row small {
  display: block;
  margin-top: 2px;
  color: #789295;
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 8px;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.button {
  min-height: 43px;
  padding: 0 15px;
  border: 0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

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

.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.button-primary {
  color: var(--white);
  background: var(--orange);
}

.button-primary:hover {
  background: #db5930;
}

.button-secondary {
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
}

.result-card .button-secondary {
  color: #c7d7d9;
  border-color: rgba(216, 237, 239, 0.32);
}

.button-ghost {
  min-height: 39px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.result-note {
  margin: 16px 6px 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
  display: flex;
  gap: 9px;
}

.result-note span {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: serif;
  font-weight: 700;
}

.price-dialog {
  width: min(530px, calc(100vw - 28px));
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(23,49,59,.28);
}

.price-dialog::backdrop {
  background: rgba(16, 42, 51, 0.65);
  backdrop-filter: blur(4px);
}

.price-dialog form {
  padding: 30px;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-header h2 {
  margin: 0;
  font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  font-size: 28px;
  text-transform: uppercase;
}

.dialog-header p:last-child {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.price-fields {
  margin: 27px 0 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.price-field {
  padding: 15px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.price-field > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
}

.price-field .fold-icon,
.price-field .slide-icon {
  width: 18px;
  height: 21px;
}

.price-field .slide-icon::before,
.price-field .slide-icon::after {
  width: 11px;
  height: 18px;
}

.price-field > div {
  margin-top: 13px;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
}

.price-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 4px 0 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.price-field > div b {
  padding-right: 8px;
  color: var(--ink-soft);
  font-size: 8px;
  white-space: nowrap;
}

.tax-check {
  padding: 13px;
  background: rgba(216, 237, 239, .45);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tax-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.tax-check b,
.tax-check small {
  display: block;
}

.tax-check b { font-size: 11px; }
.tax-check small { margin-top: 2px; color: var(--ink-soft); font-size: 9px; }

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

.dialog-actions .button-secondary {
  color: var(--ink-soft);
  border-color: var(--line-dark);
}

.toast {
  padding: 12px 17px;
  color: var(--white);
  background: var(--teal-dark);
  border-radius: 7px;
  box-shadow: var(--shadow);
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 200ms ease;
}

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

@media (max-width: 1040px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
  }

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

  .field-wide,
  .count-field {
    grid-column: auto;
  }

  .system-row {
    grid-template-columns: 1fr 1fr;
  }

  .system-identity {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 780px) {
  .topbar {
    height: 68px;
  }

  .save-state {
    display: none;
  }

  .workspace {
    padding-top: 32px;
    grid-template-columns: 1fr;
  }

  .intro h1 {
    font-size: clamp(45px, 14vw, 68px);
  }

  .result-column {
    position: static;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 0 16px;
  }

  .brand small {
    display: none;
  }

  .button-ghost {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

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

  .workspace {
    padding: 27px 16px 55px;
  }

  .intro {
    margin-bottom: 30px;
  }

  .intro > p:last-child {
    font-size: 14px;
  }

  .section-heading-row {
    flex-wrap: wrap;
  }

  .formula-pill {
    width: 100%;
    margin: 2px 0 0 28px;
    text-align: center;
  }

  .system-row {
    grid-template-columns: 1fr 1fr;
    gap: 13px 8px;
    padding: 14px 12px;
  }

  .row-area {
    grid-column: 1 / -1;
    padding: 8px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .result-card {
    margin: 0 -2px;
  }

  .grand-total strong {
    font-size: 35px;
  }

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

  .price-dialog form {
    padding: 22px 18px;
  }

  .price-fields {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page { margin: 16mm; }

  body {
    color: #000;
    background: #fff;
  }

  .topbar,
  .calculator,
  .result-actions,
  .result-note {
    display: none !important;
  }

  .workspace {
    display: block;
    width: 100%;
    padding: 0;
  }

  .result-column {
    position: static;
  }

  .result-card {
    color: #000;
    background: #fff;
    border: 1px solid #aaa;
    box-shadow: none;
  }

  .result-card *,
  .grand-total strong,
  .result-topline .eyebrow,
  .grand-total small,
  .breakdown-row b {
    color: #000 !important;
  }

  .glass-plan {
    border: 1px solid #aaa;
    padding: 8px;
  }

  .plan-panel {
    border-color: #555;
    background: #eee;
  }
}
