:root {
  --bg: #efe7da;
  --bg-2: #ddd0bd;
  --panel: rgba(255, 251, 245, 0.97);
  --panel-alt: rgba(247, 239, 228, 0.99);
  --surface-1: rgba(255, 252, 247, 0.99);
  --surface-2: rgba(241, 232, 218, 0.99);
  --surface-3: rgba(250, 244, 235, 0.99);
  --surface-4: rgba(235, 225, 210, 0.99);
  --surface-5: rgba(255, 249, 241, 0.99);
  --surface-6: rgba(230, 220, 205, 0.99);
  --text: #1f1915;
  --muted: #52463c;
  --line: rgba(95, 79, 63, 0.26);
  --accent: #8b4d10;
  --accent-2: #1c7e78;
  --accent-3: #596eb3;
  --warning: #ba7b15;
  --danger: #b14f61;
  --luxury: #257d73;
  --label-bg: rgba(255, 250, 242, 0.92);
  --label-bg-2: rgba(238, 229, 214, 0.9);
  --label-border: rgba(95, 79, 63, 0.16);
  --input-bg: rgba(255, 255, 255, 1);
  --input-bg-2: rgba(249, 244, 236, 0.99);
  --input-text: #201915;
  --input-border: rgba(139, 77, 16, 0.24);
  --badge-bg: rgba(251, 244, 232, 0.99);
  --badge-bg-2: rgba(236, 227, 212, 0.99);
  --shadow: 0 16px 34px rgba(85, 65, 46, 0.12);
}

body[data-tool-brand="ryobi"] {
  --accent: #4e9a06;
  --accent-2: #81d11f;
  --accent-3: #2f6d05;
  --warning: #6fac10;
  --luxury: #4fa51b;
  --line: rgba(89, 143, 23, 0.34);
  --label-border: rgba(89, 143, 23, 0.2);
  --input-border: rgba(99, 173, 18, 0.32);
  --badge-bg: rgba(242, 252, 226, 0.99);
  --badge-bg-2: rgba(221, 240, 188, 0.99);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top center, rgba(204, 151, 74, 0.16), transparent 22%),
    radial-gradient(circle at top right, rgba(37, 125, 115, 0.1), transparent 18%),
    linear-gradient(180deg, #f6f1e7 0%, #ece3d4 52%, #dfd2bf 100%);
  color: var(--text);
}

body[data-tool-brand="ryobi"] {
  background:
    radial-gradient(circle at top center, rgba(129, 209, 31, 0.16), transparent 22%),
    radial-gradient(circle at top right, rgba(78, 154, 6, 0.12), transparent 18%),
    linear-gradient(180deg, #f4f8e8 0%, #e8efd5 52%, #dbe8bf 100%);
}

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

.page-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

.hero,
.panel,
.hero-card,
.result-card,
.table-card,
.notes-card,
.proposal-sheet,
.step-nav,
.proposal-panel {
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel,
.table-card,
.notes-card,
.proposal-panel {
  position: relative;
  overflow: hidden;
}

.panel::before,
.table-card::before,
.notes-card::before,
.proposal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 209, 94, 0.05), transparent 32%, rgba(226, 140, 255, 0.04) 68%, transparent 100%);
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.5fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
}

.hero > div,
.hero-card {
  background:
    linear-gradient(180deg, var(--surface-1), var(--surface-2)),
    var(--panel);
  padding: 24px;
}

.eyebrow,
.hero-card-label,
.proposal-kicker,
.subtle,
th,
.result-card span,
.callout-label,
.poster-subtitle,
.poster-badge {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow,
.hero-card-label,
.proposal-kicker,
.callout-label {
  color: var(--accent);
  font-size: 0.84rem;
}

h1,
.poster-title,
.step-tab,
.result-card strong,
.proposal-priceband strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 4.5vw, 4.6rem);
  line-height: 0.95;
  color: var(--text);
  text-shadow: 0 2px 10px rgba(139, 77, 16, 0.08);
}

h2,
h3,
h4,
p {
  margin-top: 0;
}

.hero-copy,
.subtle,
#notesList,
#proposalScopeList,
#proposalTerms {
  color: var(--muted);
}

.flavor-line {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 2px 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-5), var(--surface-4));
  box-shadow: inset 0 0 18px rgba(139, 77, 16, 0.05);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-callouts {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.callout-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 209, 94, 0.16), var(--surface-4));
}

.callout-card.warning {
  border-color: var(--line);
  background: linear-gradient(135deg, rgba(226, 140, 255, 0.16), var(--surface-4));
}

.callout-card.luxury {
  border-color: var(--line);
  background: linear-gradient(135deg, rgba(99, 211, 198, 0.16), var(--surface-4));
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background:
    radial-gradient(circle at top center, rgba(255, 183, 44, 0.22), transparent 22%),
    radial-gradient(circle at top right, rgba(195, 125, 255, 0.2), transparent 22%),
    linear-gradient(180deg, #31112d 0%, #1a0d1d 52%, #110a12 100%);
}

.poster-glow,
.poster-title,
.poster-subtitle,
.poster-badge,
.poster-stack,
.poster-box,
.poster-sign {
  position: absolute;
}

.poster-glow {
  border-radius: 999px;
  filter: blur(12px);
}

.poster-glow-gold {
  width: 180px;
  height: 180px;
  top: 12px;
  left: 18px;
  background: rgba(255, 179, 43, 0.22);
}

.poster-glow-purple {
  width: 220px;
  height: 220px;
  right: -30px;
  bottom: -10px;
  background: rgba(154, 89, 255, 0.22);
}

.poster-glow-red {
  width: 180px;
  height: 180px;
  right: 80px;
  top: 110px;
  background: rgba(255, 79, 138, 0.18);
}

.poster-title {
  top: 24px;
  left: 24px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.9;
  color: transparent;
  background: linear-gradient(180deg, #fff 0%, #dfe0e4 38%, #8d8f9a 68%, #fff6c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 1px #000,
    3px 3px 0 rgba(0, 0, 0, 0.75),
    0 0 18px rgba(255, 209, 94, 0.12);
}

.poster-subtitle {
  top: 200px;
  left: 28px;
  color: #ffe4a1;
  font-size: 0.86rem;
}

.poster-badge {
  top: 22px;
  right: 22px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 209, 94, 0.28);
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff4cf;
  font-size: 0.75rem;
}

.poster-crown {
  position: absolute;
  top: 86px;
  right: 96px;
  width: 110px;
  height: 56px;
  background: linear-gradient(180deg, #ffe9a7, #bb7f13);
  clip-path: polygon(0 100%, 0 54%, 18% 18%, 36% 54%, 50% 10%, 64% 54%, 82% 18%, 100% 54%, 100% 100%);
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.4));
}

.poster-stack {
  border-radius: 12px;
  transform: rotate(-8deg);
  box-shadow: var(--shadow);
}

.poster-stack-cash {
  bottom: 42px;
  left: 28px;
  width: 116px;
  height: 70px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.2), transparent),
    linear-gradient(135deg, #7b8b54, #2c331f);
}

.poster-stack-wire {
  right: 28px;
  bottom: 36px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0f0f14 0 20px, #9c9ea9 21px 26px, #2c2830 27px 100%),
    repeating-radial-gradient(circle at center, transparent 0 8px, rgba(255, 209, 94, 0.16) 8px 10px);
}

.poster-stack-gold {
  right: 138px;
  bottom: 44px;
  width: 100px;
  height: 62px;
  background: linear-gradient(135deg, #f8d36b, #8e5f10);
  transform: rotate(12deg);
}

.poster-emblem {
  position: absolute;
  width: 92px;
  height: 112px;
  top: 178px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.12), transparent 58%),
    linear-gradient(180deg, #1a161d, #0d0b10);
  clip-path: polygon(50% 0, 100% 25%, 88% 100%, 12% 100%, 0 25%);
  border: 2px solid rgba(255, 209, 94, 0.25);
}

.poster-emblem-left {
  left: 44px;
}

.poster-emblem-right {
  right: 44px;
}

.poster-box {
  right: 48px;
  top: 126px;
  width: 110px;
  height: 90px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8d5215, #c3771c);
  color: #fff0d5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: 1.6rem;
  box-shadow: var(--shadow);
}

.poster-sign {
  left: 24px;
  right: 24px;
  bottom: 124px;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 209, 94, 0.36);
  color: #fff4cf;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.1;
}

.poster-sign.lower {
  bottom: 32px;
}

.hero-card {
  background:
    linear-gradient(180deg, var(--surface-1), var(--surface-2)),
    var(--panel-alt);
}

.hero-card-value {
  margin: 6px 0 10px;
  font-size: 2rem;
  color: var(--accent);
}

.hero-stats {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.hero-stats > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface-5), var(--surface-4));
  border: 1px solid var(--line);
}

.hero-stats span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--surface-5), var(--surface-4));
}

.nav-status span {
  color: var(--accent);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.nav-status strong {
  color: var(--text);
}

.step-tab {
  background: linear-gradient(180deg, var(--surface-3), var(--surface-4));
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
}

.step-tab.active {
  background: linear-gradient(180deg, #ffd15e, #d28d13);
  color: #22150e;
  border-color: rgba(255, 209, 94, 0.6);
  box-shadow: 0 0 18px rgba(255, 209, 94, 0.18);
}

.sound-toggle {
  margin-right: 8px;
}

.step-stack {
  display: grid;
  gap: 18px;
}

.step-page {
  display: none;
  padding: 22px;
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
}

.step-page.active {
  display: block;
}

.pricing-subtabs {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  padding: 6px;
  background: linear-gradient(180deg, var(--surface-5), var(--surface-6));
  border: 1px solid var(--line);
}

.section-tab {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-5), var(--surface-4));
  color: var(--text);
  border-radius: 12px;
  padding: 10px 16px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.03em;
}

.section-tab.active {
  background: linear-gradient(180deg, #ffd15e, #d28d13);
  color: #22150e;
  border-color: rgba(255, 209, 94, 0.6);
  box-shadow: 0 0 18px rgba(255, 209, 94, 0.18);
}

.pricing-tab-panel {
  display: none;
  margin-top: 14px;
}

.pricing-tab-panel.active {
  display: block;
}

.pricing-tab-panel > .subtle {
  margin: 0 0 14px;
}

.scenario-panel {
  display: none;
}

.scenario-panel.visible {
  display: block;
}

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

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 10, 17, 0.78);
  backdrop-filter: blur(3px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
  box-shadow: 0 24px 64px rgba(68, 49, 31, 0.22);
}

.panel-heading,
.results-header,
.action-row,
.proposal-meta,
.proposal-priceband,
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.form-grid,
.results-grid,
.breakdown-grid,
.proposal-columns,
.subpanel-grid {
  display: grid;
  gap: 16px;
}

.visual-strip,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.visual-strip {
  margin-bottom: 2px;
}

.visual-card {
  flex: 1 1 220px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--surface-3), var(--surface-4));
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.visual-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 77, 16, 0.3);
  box-shadow: 0 16px 28px rgba(68, 49, 31, 0.18);
}

.visual-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.flyer-preview-panel {
  margin-top: 0;
}

.flyer-preview-sheet {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
}

.flyer-preview-sheet h2 {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.flyer-preview-sheet .poster-sign {
  display: inline-block;
}

.visual-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.04em;
  color: #140d12;
  flex: 0 0 auto;
}

.visual-card-gold .visual-icon {
  background: linear-gradient(180deg, #ffd15e, #d28d13);
}

.visual-card-purple .visual-icon {
  background: linear-gradient(180deg, #efb0ff, #9c59ff);
}

.visual-card-teal .visual-icon {
  background: linear-gradient(180deg, #8af1e5, #33a89b);
}

.visual-card-red .visual-icon {
  background: linear-gradient(180deg, #ff9bb9, #d64269);
}

.scope-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--badge-bg), var(--badge-bg-2));
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  font-size: 0.82rem;
}

.bom-controls {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  min-width: min(100%, 420px);
}

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

.subpanel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

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

.scope-stack,
.scope-stack-inner {
  grid-template-columns: minmax(0, 1fr);
}

.scope-stack > .subpanel,
.scope-stack-inner > .subpanel {
  width: 100%;
}

.subpanel {
  background: linear-gradient(180deg, var(--surface-3), var(--surface-4));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.results-grid {
  margin-top: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.breakdown-grid {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.result-card,
.table-card,
.notes-card,
.proposal-panel {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-3), var(--surface-6));
  border: 1px solid var(--line);
}

.result-card.accent {
  background:
    linear-gradient(180deg, rgba(255, 209, 94, 0.96), rgba(190, 118, 14, 0.98)),
    linear-gradient(135deg, rgba(226, 140, 255, 0.18), transparent);
  color: #20130d;
}

.result-card:not(.accent) {
  background: linear-gradient(180deg, var(--surface-5), var(--surface-4));
  color: var(--text);
}

.result-card p {
  color: var(--muted);
}

.result-card strong {
  display: block;
  font-size: 2rem;
  margin: 6px 0;
  color: inherit;
}

.result-card span {
  display: block;
  color: var(--muted);
}

.result-card.accent p,
.result-card.accent span {
  color: rgba(32, 19, 13, 0.8);
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.95rem;
  padding: 10px 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--label-border);
  background: linear-gradient(180deg, var(--label-bg), var(--label-bg-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.span-2 {
  grid-column: span 2;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, var(--input-bg), var(--input-bg-2));
  color: var(--input-text);
  padding: 11px 13px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 6px 16px rgba(20, 12, 10, 0.08);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(255, 209, 94, 0.28);
  border-color: rgba(226, 140, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 4px rgba(255, 209, 94, 0.09),
    0 10px 22px rgba(24, 11, 24, 0.16);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 84px;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #7a5011 50%),
    linear-gradient(135deg, #7a5011 50%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0));
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px),
    100% 0;
  background-size: 6px 6px, 6px 6px, 2.8em 100%;
  background-repeat: no-repeat;
}

label:hover {
  border-color: var(--line);
  filter: brightness(1.04);
}

button {
  border: 1px solid rgba(255, 209, 94, 0.45);
  background:
    linear-gradient(180deg, #ffd15e, #b87410);
  color: #24160c;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: Impact, Haettenschweiler, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 0 16px rgba(255, 209, 94, 0.04);
}

button.secondary,
.prev-step {
  background: linear-gradient(180deg, var(--badge-bg), var(--badge-bg-2));
  color: var(--text);
  border-color: var(--line);
}

.step-caption {
  color: var(--muted);
  font-size: 0.92rem;
}

.table-wrap {
  overflow-x: auto;
}

.room-table,
.crew-table {
  min-width: 980px;
}

.calc-table {
  min-width: 1120px;
}

.calc-table td {
  white-space: nowrap;
}

.calc-table input {
  min-width: 92px;
}

.room-input {
  min-width: 84px;
}

.room-name {
  min-width: 180px;
}

.room-area-cell {
  min-width: 160px;
}

.room-row-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.room-row-tools button {
  padding: 5px 8px;
  font-size: 0.72rem;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compact-top {
  margin-top: 16px;
}

.warning-row {
  background: rgba(167, 28, 39, 0.18);
}

.warning-row td {
  border-color: rgba(255, 108, 120, 0.28);
}

.warning-text {
  margin-top: 6px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(126, 12, 26, 0.9);
  color: #ffe4e7;
  font-size: 0.82rem;
  font-weight: 700;
}

.warning-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.item-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 6px;
  vertical-align: -3px;
  position: relative;
  border: 1px solid rgba(255, 209, 94, 0.28);
  background: rgba(255, 244, 223, 0.08);
}

.item-icon::before,
.item-icon::after {
  content: "";
  position: absolute;
}

.item-icon-wire::before {
  left: 3px;
  right: 3px;
  top: 8px;
  height: 2px;
  background: linear-gradient(90deg, #ffda62, #f48d2a, #8f66d9);
  border-radius: 999px;
}

.item-icon-wire::after {
  width: 6px;
  height: 6px;
  right: 2px;
  top: 5px;
  border: 2px solid #f4f1ea;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(45deg);
}

.item-icon-conduit::before {
  left: 2px;
  right: 2px;
  top: 4px;
  bottom: 4px;
  border: 2px solid #8aa7c8;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(186, 204, 224, 0.75), rgba(84, 111, 142, 0.75));
}

.item-icon-conduit::after {
  left: 5px;
  right: 5px;
  top: 7px;
  bottom: 7px;
  border-radius: 999px;
  background: rgba(28, 20, 17, 0.65);
}

.item-icon-box::before {
  left: 3px;
  right: 3px;
  top: 3px;
  bottom: 3px;
  border-radius: 3px;
  border: 2px solid #f0c05a;
  background: linear-gradient(180deg, rgba(132, 88, 24, 0.78), rgba(71, 45, 14, 0.86));
}

.item-icon-box::after {
  width: 4px;
  height: 4px;
  left: 7px;
  top: 7px;
  border-radius: 999px;
  background: rgba(255, 246, 223, 0.9);
}

.cable-chip {
  display: inline-block;
  min-width: 46px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(36, 25, 20, 0.28);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.cable-white {
  background: #f4f1ea;
  color: #221814;
}

.cable-yellow {
  background: #f4cf3c;
  color: #2b1d05;
}

.cable-orange {
  background: #ef8d2f;
  color: #2c1304;
}

.cable-pink {
  background: #f27ec9;
  color: #341023;
}

.cable-purple {
  background: #8f66d9;
  color: #f8f2ff;
}

.cable-blue {
  background: #4e7fd9;
  color: #f4f8ff;
}

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

th,
td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 209, 94, 0.12);
  padding: 10px 0;
}

th {
  color: var(--accent);
}

td {
  color: var(--text);
}

.table-card p,
.subpanel p,
.proposal-panel p,
.notes-card p,
.table-card h3,
.table-card h4,
.subpanel h3,
.subpanel h4,
.proposal-panel h2,
.proposal-panel h3,
.proposal-panel h4 {
  color: var(--text);
}

.table-card .subtle,
.subpanel .subtle,
.proposal-panel .subtle,
.notes-card .subtle {
  color: var(--muted);
}

tbody tr:last-child td {
  border-bottom: 0;
}

#notesList,
#proposalScopeList,
#proposalTerms {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.proposal-panel {
  margin-top: 18px;
  background: linear-gradient(180deg, var(--surface-3), var(--surface-6));
}

.proposal-sheet {
  padding: 24px;
  margin-top: 14px;
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
}

.proposal-meta {
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.proposal-priceband {
  background:
    linear-gradient(180deg, rgba(255, 209, 94, 0.16), rgba(124, 70, 16, 0.12));
  border: 1px solid rgba(255, 209, 94, 0.16);
  border-radius: 14px;
  padding: 18px;
  margin: 18px 0;
  box-shadow: inset 0 0 24px rgba(255, 209, 94, 0.05);
}

.proposal-priceband strong {
  font-size: 2rem;
}

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

.proposal-columns > div {
  background: linear-gradient(180deg, var(--surface-5), var(--surface-4));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

@media (max-width: 1200px) {
  .hero,
  .subpanel-grid,
  .subpanel-grid.two-col,
  .results-grid,
  .breakdown-grid,
  .breakdown-grid.triple,
  .proposal-columns,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .panel-heading,
  .results-header,
  .proposal-meta,
  .proposal-priceband,
  .step-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .span-2 {
    grid-column: auto;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .page-shell {
    padding: 0;
    max-width: none;
  }

  .step-nav,
  .step-actions,
  button,
  .hero-poster {
    display: none;
  }

  .hero,
  .panel,
  .hero-card,
  .result-card,
  .table-card,
  .notes-card,
  .proposal-sheet,
  .proposal-panel {
    background: #fff;
    color: #000;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .step-page {
    display: block;
    background: #fff;
    border: 0;
    padding: 0;
  }
}
