:root {
  color-scheme: light dark;
  --cobalt-50: #eef2ff;
  --cobalt-100: #e0e7ff;
  --cobalt-400: #6d83ff;
  --cobalt-600: #2647e8;
  --cobalt-700: #1f39bd;
  --amber-300: #ffd37d;
  --amber-500: #ffb545;
  --ink-950: #131a2a;
  --ink-700: #425066;
  --ink-500: #6d7789;
  --ink-300: #b8c0ce;
  --line: rgba(19, 26, 42, 0.08);
  --line-strong: rgba(38, 71, 232, 0.16);
  --paper: #f8f4ed;
  --paper-alt: #f4efe6;
  --surface: #fffdfa;
  --surface-soft: #fbf8f2;
  --surface-muted: #f4efe8;
  --surface-dark: #10183b;
  --surface-dark-2: #162251;
  --success: #10b981;
  --danger: #ef6b6b;
  --shadow-xs: 0 1px 2px rgba(19, 26, 42, 0.05);
  --shadow-sm: 0 8px 18px rgba(19, 26, 42, 0.06);
  --shadow-md: 0 18px 40px rgba(19, 26, 42, 0.08);
  --shadow-lg: 0 30px 70px rgba(19, 26, 42, 0.1);
  --shadow-blue: 0 14px 34px rgba(38, 71, 232, 0.22);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --radius-full: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #071120;
    --paper-alt: #0b1529;
    --surface: #10192e;
    --surface-soft: #111d34;
    --surface-muted: #16243d;
    --surface-dark: #060d1b;
    --surface-dark-2: #0d1730;
    --ink-950: #edf2ff;
    --ink-700: #cfd7e6;
    --ink-500: #94a0b4;
    --ink-300: #566277;
    --line: rgba(237, 242, 255, 0.09);
    --line-strong: rgba(109, 131, 255, 0.26);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.28);
    --shadow-sm: 0 8px 18px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.34);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top center, rgba(38, 71, 232, 0.08), transparent 34%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-alt) 100%);
  color: var(--ink-700);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 181, 69, 0.12), transparent 18%),
    radial-gradient(circle at 92% 14%, rgba(38, 71, 232, 0.08), transparent 18%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

::selection {
  background: rgba(38, 71, 232, 0.18);
  color: var(--ink-950);
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 120;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  background: var(--surface-dark);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(14px);
}

.topbar-inner,
.page-layout,
.site-footer {
  width: min(1200px, calc(100vw - 48px));
  margin-inline: auto;
}

.site-footer {
  display: grid;
  gap: 12px;
  padding-bottom: 40px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-950);
  text-decoration: none;
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--cobalt-600), var(--cobalt-400));
  box-shadow: 0 0 0 6px rgba(38, 71, 232, 0.1);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.topnav a {
  padding: 8px 10px;
  border-radius: var(--radius-md);
  color: var(--ink-500);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.topnav a:hover,
.topnav a:focus-visible,
.topnav a.is-active {
  color: var(--ink-950);
  background: rgba(255, 255, 255, 0.7);
}

.topnav a.is-active {
  color: var(--cobalt-600);
}

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

.topbar-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 860px) 260px;
  justify-content: center;
  gap: 32px;
  padding: 32px 0 64px;
  align-items: start;
}

.section-card,
.summary-card,
.footer-card,
.mobile-summary-panel {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-sm);
}

.content-column {
  width: 100%;
  min-width: 0;
}

main article {
  display: grid;
  gap: 32px;
}

.section-card,
.footer-card {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.hero {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.calculator-card {
  position: relative;
  display: grid;
  gap: 24px;
  padding: clamp(24px, 2vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(circle at top right, rgba(38, 71, 232, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 250, 0.98), rgba(251, 248, 242, 0.96));
  box-shadow: var(--shadow-lg);
}

.calculator-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(38, 71, 232, 0.06);
  border-radius: calc(var(--radius-2xl) - 8px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  display: grid;
  gap: 16px;
  padding-bottom: 10px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--cobalt-600);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--cobalt-600);
}

.hero-copy h1,
.section-heading h2,
.calculator-head h2,
.summary-card h2,
.mobile-summary-panel h2,
.footer-card h2,
.step-card h3 {
  margin: 0;
  color: var(--ink-950);
  font-family: "Space Grotesk", "Outfit", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
}

.hero-lead {
  max-width: 62ch;
  margin: 0;
  color: var(--ink-500);
  font-size: 1.1rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chips span,
.formula-box {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(19, 26, 42, 0.07);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-xs);
  color: var(--ink-700);
  font-size: 0.875rem;
  font-weight: 600;
}

.formula-box {
  color: var(--ink-950);
  font-family: "IBM Plex Mono", monospace;
}

.calculator-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.calculator-head h2 {
  max-width: 16ch;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
}

.unit-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(19, 26, 42, 0.06);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.72);
}

.unit-toggle,
.module-tab,
.preset-card,
.action-button,
.sheet-size-card {
  transition:
    transform 0.16s ease,
    color 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.unit-toggle {
  min-height: 38px;
  min-width: 92px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.unit-toggle.is-active {
  background: linear-gradient(180deg, var(--cobalt-600), var(--cobalt-700));
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.module-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(19, 26, 42, 0.06);
}

.module-tab {
  flex: 1;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.module-tab.is-active {
  background: rgba(255, 255, 255, 0.94);
  color: var(--cobalt-700);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.module-tab:hover:not(.is-active),
.module-tab:focus-visible:not(.is-active) {
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.55);
}

.module-panel {
  display: grid;
  gap: 20px;
  animation: fade-slide-in 0.2s ease;
}

.module-panel[hidden] {
  display: none;
}

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

.field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.field label {
  display: block;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.field-hint,
.field-error,
.feature-figure figcaption,
.result-note {
  margin: 0;
  color: var(--ink-500);
  font-size: 14px;
}

.field-error {
  color: var(--danger);
  min-height: 1.1rem;
}

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

.field-switch {
  padding: 16px;
  border: 1px solid rgba(19, 26, 42, 0.07);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(244, 239, 232, 0.64));
}

.field label.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.switch {
  position: relative;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
}

.switch-ui {
  flex: 0 0 44px;
  display: inline-block;
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: var(--radius-full);
  background: rgba(19, 26, 42, 0.14);
  transition: background-color 0.2s ease;
}

.switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.switch input:checked + .switch-ui {
  background: linear-gradient(90deg, var(--cobalt-600), var(--cobalt-400));
}

.switch input:checked + .switch-ui::after {
  transform: translateX(18px);
}

.switch input:focus-visible + .switch-ui {
  box-shadow: 0 0 0 3px rgba(38, 71, 232, 0.12);
}

.switch-text {
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 500;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.label-row output {
  color: var(--cobalt-600);
  font-size: 13px;
  font-weight: 600;
}

.input-wrap {
  position: relative;
}

.input-unit,
.input-prefix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-300);
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
}

.input-unit {
  right: 12px;
}

.input-prefix {
  left: 14px;
}

input[type="number"],
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-950);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input[type="number"],
input[type="text"],
input[type="email"],
select {
  height: 46px;
}

textarea {
  min-height: 180px;
  padding: 14px;
  resize: vertical;
}

.input-wrap input[type="number"],
.input-wrap input[type="text"],
.input-wrap input[type="email"] {
  padding-right: 44px;
}

.input-wrap .input-prefix + input[type="number"],
.input-wrap .input-prefix + input[type="text"],
.input-wrap .input-prefix + input[type="email"] {
  padding-left: 30px;
  padding-right: 14px;
}

input[type="number"]:hover,
input[type="text"]:hover,
input[type="email"]:hover,
textarea:hover,
select:hover {
  border-color: rgba(38, 71, 232, 0.18);
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  border-color: var(--cobalt-600);
  box-shadow: 0 0 0 3px rgba(38, 71, 232, 0.12);
}

input.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 107, 107, 0.12);
}

input.value-changed,
textarea.value-changed,
select.value-changed {
  animation: flash 0.3s ease;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-300) 50%),
    linear-gradient(135deg, var(--ink-300) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

input[type="range"] {
  width: 100%;
  height: 44px;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--cobalt-600), var(--amber-500));
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  margin-top: -7px;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--cobalt-700);
  box-shadow: var(--shadow-sm);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--cobalt-600), var(--amber-500));
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--cobalt-700);
  box-shadow: var(--shadow-sm);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(38, 71, 232, 0.18);
  outline-offset: 2px;
}

.result-list,
.summary-list {
  display: grid;
  gap: 12px;
}

.result-row,
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(19, 26, 42, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.result-row span,
.summary-row span {
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-row strong,
.summary-row strong {
  color: var(--ink-950);
  font-size: 16px;
  font-weight: 700;
  text-align: right;
}

.result-row.is-highlight {
  border: 0;
  background: linear-gradient(135deg, var(--cobalt-600), var(--cobalt-700));
  box-shadow: var(--shadow-blue);
}

.result-row.is-highlight span {
  color: rgba(255, 255, 255, 0.82);
}

.result-row.is-highlight strong {
  color: var(--amber-300);
  font-size: 22px;
}

#recommended-purchase-output {
  color: var(--success);
}

.summary-rail {
  position: sticky;
  top: 80px;
}

.summary-card,
.mobile-summary-panel {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 181, 69, 0.12), transparent 34%),
    linear-gradient(180deg, var(--surface-dark), var(--surface-dark-2));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}

.summary-card::before,
.mobile-summary-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--cobalt-600), #7c3aed);
}

.summary-card h2,
.mobile-summary-panel h2 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.summary-card .section-kicker,
.mobile-summary-panel .section-kicker {
  color: rgba(255, 255, 255, 0.62);
}

.summary-card .section-kicker::before,
.mobile-summary-panel .section-kicker::before {
  background: rgba(255, 255, 255, 0.4);
}

.summary-row {
  padding: 10px 14px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.summary-row span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.summary-row strong {
  color: #fff;
  font-size: 16px;
}

.summary-row.is-key strong,
.mobile-summary-value.is-key {
  color: var(--amber-300);
}

.summary-actions {
  display: grid;
  gap: 10px;
}

.action-button {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.action-button-primary {
  border-color: transparent;
  background: linear-gradient(180deg, var(--cobalt-600), var(--cobalt-700));
  box-shadow: var(--shadow-blue);
}

.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-1px);
}

.summary-note {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.mobile-summary-bar,
.mobile-summary-drawer {
  display: none;
}

.presets .section-heading,
.guide-section .section-heading,
.faq-section .section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: 26px;
  font-weight: 700;
}

.section-heading p,
.guide-section p,
.faq-section p {
  margin: 0 0 18px;
  color: var(--ink-500);
  font-size: 15px;
  line-height: 1.72;
}

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

.preset-card {
  position: relative;
  min-height: 44px;
  display: grid;
  gap: 4px;
  padding: 18px 16px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 248, 242, 0.94));
  box-shadow: var(--shadow-xs);
  text-align: left;
}

.preset-card::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(38, 71, 232, 0.14);
  box-shadow: inset 0 0 0 3px var(--cobalt-600);
}

.preset-card strong {
  color: var(--ink-950);
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.preset-card span {
  color: var(--ink-500);
  font-size: 12px;
}

.preset-card:hover,
.preset-card:focus-visible {
  border-color: rgba(38, 71, 232, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 242, 255, 0.86));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.preset-card:active {
  transform: scale(0.97);
}

.feature-figure {
  margin: 24px 0;
  display: grid;
  gap: 10px;
}

.feature-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(19, 26, 42, 0.06);
  box-shadow: var(--shadow-xs);
}

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

.step-card {
  position: relative;
  padding: 24px 20px 20px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 248, 242, 0.94));
  box-shadow: var(--shadow-xs);
}

.step-grid .step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  right: -14px;
  width: 28px;
  height: 2px;
  background: rgba(38, 71, 232, 0.22);
}

.step-grid .step-card:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 34px;
  right: -14px;
  border-left: 6px solid rgba(38, 71, 232, 0.22);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.step-index {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cobalt-50);
  color: var(--cobalt-600);
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.step-card h3 {
  margin: 14px 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.step-card p {
  margin: 0;
}

.sheet-size-visual {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.sheet-size-card {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: end;
  min-height: 260px;
  padding: 18px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 248, 242, 0.96));
  box-shadow: var(--shadow-xs);
  text-align: left;
}

.sheet-size-card::after {
  content: attr(data-sheet-tooltip);
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(100% + 8px);
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-dark);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sheet-size-card:hover::after,
.sheet-size-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.sheet-size-card:hover,
.sheet-size-card:focus-visible,
.sheet-size-card.is-active {
  border-color: rgba(38, 71, 232, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 242, 255, 0.88));
}

.sheet-size-card-top {
  display: grid;
  gap: 4px;
}

.sheet-size-card-label {
  color: var(--ink-950);
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.sheet-size-card-meta,
.sheet-size-card-note {
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.5;
}

.sheet-size-bar {
  display: block;
  width: 72px;
  height: calc(var(--sheet-height) * 12px);
  margin-top: auto;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, #c7d2fe, #93c5fd);
}

.sheet-size-card[data-sheet-visual="4x9"] .sheet-size-bar {
  background: linear-gradient(180deg, #93c5fd, #6d83ff);
}

.sheet-size-card[data-sheet-visual="4x10"] .sheet-size-bar {
  background: linear-gradient(180deg, #6d83ff, #4d66ff);
}

.sheet-size-card[data-sheet-visual="4x12"] .sheet-size-bar {
  background: linear-gradient(180deg, #4d66ff, #2647e8);
}

.table-wrap {
  display: grid;
  gap: 24px;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 16px;
  overflow: hidden;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.data-table thead tr {
  background: rgba(255, 255, 255, 0.72);
}

.data-table th {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(19, 26, 42, 0.07);
  color: var(--ink-500);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(19, 26, 42, 0.05);
  color: var(--ink-700);
  vertical-align: top;
}

.data-table tbody tr:last-child td,
.data-table tbody tr:last-child th {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.72);
}

.data-table td:first-child,
.data-table tbody th {
  color: var(--ink-950);
  font-weight: 600;
}

.tip-list {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--ink-700);
}

.tip-list li + li {
  margin-top: 10px;
}

.faq-item {
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 16px;
  margin-bottom: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.faq-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.faq-item.open {
  border-color: rgba(38, 71, 232, 0.18);
}

.faq-question {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--ink-950);
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  user-select: none;
}

.faq-item.open .faq-question {
  color: var(--cobalt-600);
  background: rgba(238, 242, 255, 0.48);
  border-bottom: 1px solid rgba(38, 71, 232, 0.08);
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--ink-500);
  transition: transform 0.25s ease, color 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 3px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item.open .faq-icon {
  color: var(--cobalt-600);
  transform: rotate(180deg);
}

.faq-item.open .faq-icon::after {
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
  margin: 0;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.72;
}

.faq-item.open .faq-answer {
  padding: 16px 20px 20px;
}

.footer-card {
  display: grid;
  gap: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 248, 242, 0.92));
  box-shadow: var(--shadow-xs);
}

.footer-sections {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) 240px;
  gap: 18px;
  align-items: start;
}

.footer-branding {
  display: grid;
  gap: 8px;
}

.footer-brand {
  margin: 0;
  color: var(--ink-950);
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-tagline {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.72;
}

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

.footer-note {
  padding: 14px 16px;
  border: 1px solid rgba(19, 26, 42, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.footer-note-label {
  margin: 0 0 8px;
  color: var(--cobalt-600);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-note p:last-child {
  margin: 0;
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.7;
}

.footer-link-group {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(19, 26, 42, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.footer-link-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link-list a,
.footer-legal-links a {
  color: var(--ink-500);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-link-list a:hover,
.footer-link-list a:focus-visible,
.footer-link-list a.is-active,
.footer-legal-links a:hover,
.footer-legal-links a:focus-visible,
.footer-legal-links a.is-active {
  color: var(--cobalt-600);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 8px;
}

.footer-meta {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.topnav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.topnav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink-500);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.topnav-trigger:hover,
.topnav-trigger:focus-visible,
.topnav-item.has-menu.is-open .topnav-trigger,
.topnav-item.has-menu.is-current .topnav-trigger {
  color: var(--ink-950);
  background: rgba(255, 255, 255, 0.7);
}

.topnav-item.has-menu.is-current .topnav-trigger {
  color: var(--cobalt-600);
}

.nav-caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.18s ease;
}

.topnav-item.has-menu.is-open .nav-caret,
.topnav-item.has-menu:hover .nav-caret {
  transform: rotate(225deg) translateY(-1px);
}

.topnav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 120;
  min-width: 280px;
  padding: 8px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.topnav-item.has-menu.is-open .topnav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: hover) and (min-width: 768px) {
  .topnav-item.has-menu:hover .topnav-menu,
  .topnav-item.has-menu:focus-within .topnav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.topnav-menu-title {
  margin: 0;
  padding: 8px 12px 6px;
  color: var(--ink-500);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topnav-menu a {
  display: block;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--ink-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.topnav-menu a:hover,
.topnav-menu a:focus-visible,
.topnav-menu a.is-active {
  background: #f9fafb;
  color: var(--ink-950);
}

.topnav-menu a.is-active {
  color: var(--cobalt-600);
  background: rgba(38, 71, 232, 0.08);
}

.interior-layout {
  width: min(1200px, calc(100vw - 48px));
  margin-inline: auto;
  padding: 32px 0 64px;
}

body:not([data-page="home"]) .interior-layout > * + * {
  margin-top: 28px;
}

body[data-page="home"] .interior-layout {
  display: grid;
  gap: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--ink-500);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--ink-500);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--cobalt-600);
}

.page-hero {
  display: grid;
  gap: 16px;
}

.page-hero h1,
.landing-hero h1 {
  margin: 0;
  color: var(--ink-950);
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.page-lead,
.landing-hero p {
  margin: 0;
  max-width: 68ch;
  color: var(--ink-500);
  font-size: 16px;
  line-height: 1.8;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
}

.landing-hero,
.section-card.page-hero {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.landing-actions,
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.home-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(19, 26, 42, 0.12);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.home-secondary-button:hover,
.home-secondary-button:focus-visible {
  border-color: rgba(38, 71, 232, 0.2);
  background: rgba(238, 242, 255, 0.92);
}

.interior-grid,
.article-grid,
.blog-index-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 20px;
}

.tool-panel,
.sidebar-card,
.post-card,
.featured-post {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-xs);
}

.tool-panel,
.sidebar-card,
.article-card {
  border-radius: var(--radius-xl);
}

.tool-panel,
.article-card {
  padding: 28px;
}

.sidebar-stack {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
}

.sidebar-card {
  padding: 20px;
}

.home-summary-card {
  display: grid;
  gap: 16px;
}

.home-summary-card .summary-row {
  border-color: rgba(19, 26, 42, 0.07);
  background: rgba(255, 255, 255, 0.84);
}

.home-summary-card .summary-row span {
  color: var(--ink-500);
  font-size: 11px;
}

.home-summary-card .summary-row strong {
  color: var(--ink-950);
  font-size: 16px;
}

.home-summary-card h3 {
  margin: 0;
  color: var(--ink-950);
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.home-summary-row-key {
  border-color: rgba(38, 71, 232, 0.12);
  background: rgba(238, 242, 255, 0.62);
}

.home-summary-row-key span,
.home-summary-row-key strong {
  color: var(--cobalt-600);
}

.home-summary-actions {
  margin-top: 4px;
}

.home-summary-actions .inline-button,
.home-summary-actions .home-secondary-button {
  width: 100%;
}

.home-summary-card .cover-note {
  display: grid;
  gap: 8px;
}

.home-summary-card .cover-note a {
  color: var(--cobalt-600);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.home-summary-card .cover-note a:hover,
.home-summary-card .cover-note a:focus-visible {
  color: var(--cobalt-700);
}

.sidebar-card h3,
.article-header h1,
.featured-post h2,
.tool-card h3,
.post-card h3 {
  margin: 0;
  color: var(--ink-950);
  font-family: "Space Grotesk", "Outfit", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.sidebar-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.sidebar-card p,
.sidebar-card li,
.tool-note,
.landing-note {
  margin: 0;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.72;
}

.sidebar-list,
.toc-list,
.category-list,
.mini-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-list a,
.toc-list a,
.category-list a,
.mini-list a {
  color: var(--ink-700);
  text-decoration: none;
  font-weight: 500;
}

.sidebar-list a:hover,
.sidebar-list a:focus-visible,
.toc-list a:hover,
.toc-list a:focus-visible,
.category-list a:hover,
.category-list a:focus-visible,
.mini-list a:hover,
.mini-list a:focus-visible {
  color: var(--cobalt-600);
}

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

.tool-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover,
.tool-card:focus-visible {
  border-color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-3px);
}

.tool-badge-popular {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #d97706;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tool-card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(38, 71, 232, 0.14), rgba(109, 131, 255, 0.28));
  color: var(--cobalt-700);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.72;
}

.tool-card-footer,
.post-card-footer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cobalt-600);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.metric-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
}

.metric-item {
  flex: 0 1 260px;
  min-width: min(260px, 100%);
  padding: 14px 16px;
  border: 1px solid rgba(19, 26, 42, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}

.metric-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-item strong {
  display: block;
  color: var(--ink-950);
  font-size: 20px;
  font-weight: 700;
}

.post-card,
.featured-post {
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover,
.post-card:focus-visible,
.featured-post:hover,
.featured-post:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

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

.post-cover {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: end;
  padding: 20px;
  overflow: hidden;
}

.post-cover::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
}

.post-cover--blue {
  background: linear-gradient(135deg, #dbeafe, #93c5fd);
}

.post-cover--amber {
  background: linear-gradient(135deg, #fef3c7, #fdba74);
}

.post-cover--navy {
  background: linear-gradient(135deg, #1e293b, #334155);
}

.post-cover--teal {
  background: linear-gradient(135deg, #ccfbf1, #5eead4);
}

.post-cover--cobalt {
  background: linear-gradient(135deg, #c7d2fe, #6d83ff);
}

.post-cover--sage {
  background: linear-gradient(135deg, #dcfce7, #86efac);
}

.post-cover--steel {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
}

.post-cover-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-950);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.post-card-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 500;
}

.post-card p,
.featured-post p,
.article-header p {
  margin: 0;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.72;
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.featured-post .post-cover {
  min-height: 280px;
}

.featured-post-copy {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.article-card {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-sm);
}

.article-header {
  display: grid;
  gap: 14px;
}

.article-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.article-body {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.article-body h2,
.article-body h3 {
  margin: 8px 0 0;
  color: var(--ink-950);
  font-family: "Space Grotesk", "Outfit", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.article-body h2 {
  font-size: 28px;
}

.article-body h3 {
  font-size: 22px;
}

.article-body blockquote {
  margin: 6px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--cobalt-600);
  border-radius: 0 18px 18px 0;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.82), rgba(255, 255, 255, 0.94));
  color: var(--ink-700);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
}

.article-body code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(19, 26, 42, 0.06);
  color: var(--ink-950);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92em;
}

.article-pre,
.formula-card,
.article-checklist {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.96));
  box-shadow: var(--shadow-xs);
}

.article-pre {
  overflow-x: auto;
  color: var(--ink-950);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.formula-card {
  display: grid;
  gap: 10px;
  border-color: rgba(38, 71, 232, 0.14);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.82), rgba(255, 255, 255, 0.96));
}

.formula-card strong {
  color: var(--ink-950);
  font-size: 16px;
  font-weight: 700;
}

.formula-card p,
.formula-card small {
  margin: 0;
  color: var(--ink-500);
  line-height: 1.72;
}

.formula-card .formula-line {
  color: var(--cobalt-700);
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  font-weight: 700;
}

.article-checklist {
  display: grid;
  gap: 10px;
}

.article-checklist strong {
  color: var(--ink-950);
  font-size: 16px;
  font-weight: 700;
}

.article-checklist ul {
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.article-checklist li {
  display: flex;
  align-items: start;
  gap: 10px;
}

.article-checklist li::before {
  content: "□";
  color: var(--cobalt-600);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
}

.source-note {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.7;
}

.room-estimator-hero {
  position: relative;
  overflow: hidden;
}

.room-estimator-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.room-estimator-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.trust-badges span {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.room-estimator-proof {
  margin: 0;
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 600;
}

.hero-support-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.92));
}

.hero-support-kicker,
.print-brand {
  margin: 0;
  color: var(--cobalt-700);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-support-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.7;
}

.room-estimator-grid {
  align-items: start;
}

.room-estimator-wizard {
  display: grid;
  gap: 24px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.step-node.is-active .step-dot,
.step-node.is-completed .step-dot {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.step-node.is-active .step-dot {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.step-labels {
  display: grid;
  gap: 2px;
}

.step-labels strong {
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 700;
}

.step-labels span {
  color: var(--ink-500);
  font-size: 12px;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  transition: background-color 0.3s ease;
}

.step-line.is-completed {
  background: #2563eb;
}

.step-feedback {
  min-height: 1.2rem;
  margin: -6px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
}

.wizard-panel {
  display: grid;
  gap: 22px;
  animation: fade-slide-in 0.24s ease;
}

.wizard-panel[hidden] {
  display: none;
}

.wizard-panel-head {
  display: grid;
  gap: 8px;
}

.wizard-panel-head h3,
.room-preview-head h3,
.comparison-card h3,
.estimate-summary-card h3 {
  margin: 0;
  color: var(--ink-950);
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.field-span-2 {
  grid-column: 1 / -1;
}

.choice-row {
  display: grid;
  gap: 12px;
}

.field-label {
  margin: 0;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.choice-grid,
.pill-card-grid {
  display: grid;
  gap: 14px;
}

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

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

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

.choice-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1.5px solid #dbe3ef;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.choice-card:hover,
.choice-card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow-sm);
}

.choice-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.choice-card strong,
.choice-card span,
.choice-card em {
  position: relative;
  margin: 0;
}

.choice-card strong {
  color: var(--ink-950);
  font-size: 16px;
  font-weight: 700;
  font-style: normal;
}

.choice-card span,
.choice-card em {
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.6;
  font-style: normal;
}

.choice-card.is-selected {
  border-color: #2563eb;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.96));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.choice-card.is-selected strong,
.choice-card.is-selected em {
  color: #1d4ed8;
}

.choice-card-pill {
  min-height: 58px;
  place-items: center;
  padding: 0 14px;
  text-align: center;
}

.choice-card-pill span {
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 600;
}

.choice-card-pill.is-selected span {
  color: #1d4ed8;
}

.info-card {
  padding: 16px 18px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.88), rgba(255, 255, 255, 0.94));
}

.info-card strong,
.range-head strong {
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 700;
}

.info-card p,
.range-head span,
.range-scale span {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.7;
}

.range-head,
.range-scale,
.wizard-actions,
.summary-head,
.summary-head-actions,
.estimate-total-grid,
.summary-metrics,
.per-sqft-grid,
.room-preview-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.range-scale {
  gap: 20px;
}

.wizard-actions {
  margin-top: 4px;
}

.wizard-spacer {
  flex: 1;
}

.action-button-ghost {
  border-color: rgba(19, 26, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-700);
}

.room-preview-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.76), rgba(255, 255, 255, 0.94));
}

.room-preview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.room-preview-stats {
  flex-wrap: wrap;
  justify-content: end;
}

.room-preview-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
}

.room-preview-svg {
  width: 100%;
  min-height: 220px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(240, 244, 255, 0.78)),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.room-preview-svg path,
.room-preview-svg rect,
.room-preview-svg polyline {
  fill: rgba(96, 165, 250, 0.14);
  stroke: #2563eb;
  stroke-width: 4;
  stroke-linejoin: round;
}

.room-preview-svg text {
  fill: var(--ink-950);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
}

.room-preview-svg .room-measure {
  fill: var(--ink-500);
}

.comparison-section {
  display: grid;
  gap: 22px;
}

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

.comparison-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.comparison-card h3 {
  font-size: 38px;
}

.comparison-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.7;
}

.comparison-card-pro {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.96));
}

.comparison-points {
  gap: 8px;
}

.comparison-action {
  border: 0;
  cursor: pointer;
}

.estimate-summary-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 181, 69, 0.14), transparent 34%),
    linear-gradient(180deg, var(--surface-dark), var(--surface-dark-2));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}

.estimate-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.estimate-summary-card h3,
.estimate-summary-card .section-kicker,
.estimate-summary-card p,
.estimate-summary-card span,
.estimate-summary-card small,
.estimate-summary-card strong {
  color: #fff;
}

.estimate-summary-card .section-kicker::before {
  background: rgba(255, 255, 255, 0.4);
}

.summary-head {
  align-items: start;
}

.summary-head-actions {
  flex-wrap: wrap;
  justify-content: end;
}

.summary-head-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.estimate-total-card,
.per-sqft-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.estimate-total-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.estimate-total-value {
  color: var(--amber-300) !important;
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.estimate-total-grid {
  align-items: stretch;
}

.estimate-total-grid div {
  display: grid;
  gap: 6px;
}

.estimate-total-grid span,
.summary-metric span,
.per-sqft-grid span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.estimate-band {
  position: relative;
  height: 8px;
}

.estimate-band-track,
.estimate-band-fill {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
}

.estimate-band-track {
  background: rgba(255, 255, 255, 0.12);
}

.estimate-band-fill {
  width: 68%;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
}

.estimate-band-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.summary-metrics {
  align-items: stretch;
}

.summary-metric {
  flex: 1;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.summary-metric strong,
.per-sqft-grid strong {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.cost-breakdown-list {
  display: grid;
  gap: 14px;
}

.cost-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.cost-breakdown-label {
  display: grid;
  gap: 4px;
}

.cost-breakdown-label span {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.cost-breakdown-row strong {
  justify-self: end;
  font-size: 15px;
  font-weight: 700;
}

.cost-breakdown-row small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.6;
}

.cost-breakdown-row .cost-bar-container,
.cost-breakdown-row small:last-child {
  grid-column: 1 / -1;
}

.per-sqft-grid {
  align-items: stretch;
}

.per-sqft-grid div {
  flex: 1;
  display: grid;
  gap: 6px;
}

.room-estimator-sidebar .sidebar-card:not(.estimate-summary-card) {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.cost-bar-container {
  position: relative;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
}

.cost-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 0.32s ease, background-color 0.2s ease;
}

.cost-bar-fill.materials {
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.cost-bar-fill.supplies {
  background: linear-gradient(90deg, #67e8f9, #0891b2);
}

.cost-bar-fill.labor {
  background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.cost-bar-fill.tax {
  background: linear-gradient(90deg, #fda4af, #fb7185);
}

.cost-bar-fill.is-saving {
  background: linear-gradient(90deg, #34d399, #16a34a);
}

.waste-calculator-hero {
  position: relative;
  overflow: hidden;
}

.waste-calculator-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #ea580c, #f59e0b);
}

.waste-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
  gap: 24px;
  align-items: start;
}

.waste-trust-badges span {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.waste-hero-support {
  border-color: rgba(234, 88, 12, 0.14);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.96));
}

.waste-tool-grid {
  align-items: start;
}

.waste-tool-grid > div {
  display: grid;
  gap: 24px;
}

.waste-tool-card {
  display: grid;
  gap: 24px;
}

.waste-form-section {
  display: grid;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(234, 88, 12, 0.12);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 245, 0.96), rgba(255, 255, 255, 0.96));
}

.waste-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.waste-section-head .section-kicker {
  display: inline-grid;
  min-width: 34px;
  min-height: 34px;
  margin: 0;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(234, 88, 12, 0.18);
  border-radius: 14px;
  background: rgba(255, 247, 237, 0.92);
  color: #c2410c;
}

.waste-section-head .section-kicker::before {
  display: none;
}

.waste-section-head h3 {
  margin: 0;
  color: var(--ink-950);
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

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

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

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

.choice-card-illustrated {
  align-content: start;
}

.choice-illustration {
  display: grid;
  place-items: center;
  min-height: 90px;
  margin-bottom: 4px;
  border: 1px dashed rgba(234, 88, 12, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.86), rgba(255, 255, 255, 0.92));
}

.shape-icon {
  width: 72px;
  height: 48px;
  fill: none;
  stroke: #c2410c;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.choice-card.is-selected .choice-illustration {
  border-color: rgba(234, 88, 12, 0.34);
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.92), rgba(255, 255, 255, 0.96));
}

.choice-card.is-selected .shape-icon {
  stroke: #ea580c;
}

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

.feature-toggle {
  position: relative;
  display: block;
  padding: 16px;
  border: 1.5px solid #eadfce;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 242, 0.96));
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.feature-toggle:hover,
.feature-toggle:focus-within {
  transform: translateY(-1px);
  border-color: rgba(234, 88, 12, 0.3);
  box-shadow: var(--shadow-sm);
}

.feature-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.feature-toggle.is-selected {
  border-color: #ea580c;
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.94), rgba(255, 255, 255, 0.98));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.12);
}

.feature-copy {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.feature-copy strong,
.feature-copy span {
  position: relative;
  margin: 0;
}

.feature-copy strong {
  color: var(--ink-950);
  font-size: 15px;
  line-height: 1.4;
}

.feature-copy > span:last-child {
  color: #9a3412;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.feature-toggle.is-selected .feature-copy strong,
.feature-toggle.is-selected .feature-copy > span:last-child {
  color: #c2410c;
}

.waste-tool-actions {
  margin-top: 6px;
}

.waste-summary-card::before {
  background: linear-gradient(90deg, #ea580c, #f59e0b);
}

.waste-gauge-card,
.waste-breakdown-card,
.waste-material-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.waste-gauge-card {
  justify-items: center;
  text-align: center;
}

.waste-gauge-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.waste-gauge-track,
.waste-gauge-fill {
  fill: none;
  stroke-width: 16;
  stroke-linecap: round;
}

.waste-gauge-track {
  stroke: rgba(255, 255, 255, 0.12);
}

.waste-gauge-fill {
  stroke: #f59e0b;
  stroke-dasharray: 0 999;
  transition: stroke 0.24s ease, stroke-dasharray 0.32s ease;
}

.waste-gauge-svg text {
  fill: rgba(255, 255, 255, 0.62);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.waste-gauge-needle {
  transform-origin: 160px 170px;
  transition: transform 0.34s ease;
}

.waste-gauge-needle line {
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
}

.waste-gauge-needle circle {
  fill: #fff;
}

.waste-gauge-label,
.waste-gauge-reasons,
.waste-gauge-risk {
  margin: 0;
}

.waste-gauge-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waste-gauge-value {
  color: var(--amber-300) !important;
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.waste-gauge-risk {
  display: grid;
  gap: 4px;
}

.waste-gauge-risk strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waste-gauge-risk span,
.waste-gauge-reasons {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.7;
}

.waste-breakdown-list {
  display: grid;
  gap: 12px;
}

.waste-breakdown-item {
  display: grid;
  gap: 8px;
}

.waste-breakdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.waste-breakdown-head span {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.waste-breakdown-head strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}

.waste-breakdown-item.is-saving .waste-breakdown-head span,
.waste-breakdown-item.is-saving .waste-breakdown-head strong {
  color: #bef264;
}

.waste-summary-metrics {
  align-items: stretch;
}

.waste-summary-list .cost-breakdown-row {
  background: rgba(255, 255, 255, 0.05);
}

.waste-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.waste-action-row .summary-head-button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.waste-tips-card {
  display: grid;
  gap: 12px;
}

.waste-tips-card > p {
  margin: 0;
}

.waste-tip-list {
  display: grid;
  gap: 12px;
}

.waste-tip-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(234, 88, 12, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 0.94));
}

.waste-tip-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.14), rgba(245, 158, 11, 0.22));
  color: #9a3412;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waste-tip-copy {
  display: grid;
  gap: 6px;
}

.waste-tip-copy strong,
.waste-tip-copy p,
.waste-tip-saving {
  margin: 0;
}

.waste-tip-copy strong {
  color: var(--ink-950);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.waste-tip-copy p {
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.7;
}

.waste-tip-saving {
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.waste-tip-empty {
  padding: 16px;
  border: 1px dashed rgba(19, 26, 42, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.7;
}

.waste-mobile-bar {
  display: none;
}

.waste-mobile-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.waste-mobile-stats span {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.ceiling-calculator-hero {
  position: relative;
  overflow: hidden;
}

.ceiling-calculator-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #2563eb);
}

.ceiling-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
  gap: 24px;
  align-items: start;
}

.ceiling-trust-badges span {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
}

.ceiling-hero-support {
  border-color: rgba(124, 58, 237, 0.14);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(245, 243, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.ceiling-tool-grid {
  align-items: start;
}

.ceiling-tool-grid > div {
  display: grid;
  gap: 24px;
}

.ceiling-wizard {
  display: grid;
  gap: 24px;
}

.ceiling-calculator-page .step-node.is-active .step-dot,
.ceiling-calculator-page .step-node.is-completed .step-dot {
  border-color: #7c3aed;
  background: #7c3aed;
}

.ceiling-calculator-page .step-node.is-active .step-dot {
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.16);
}

.ceiling-calculator-page .step-line.is-completed {
  background: #7c3aed;
}

.ceiling-calculator-page .unit-toggle.is-active,
.ceiling-calculator-page .action-button-primary,
.ceiling-calculator-page .cta-button {
  background: linear-gradient(180deg, #7c3aed, #5b21b6);
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.22);
}

.ceiling-calculator-page input[type="number"]:focus,
.ceiling-calculator-page select:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.ceiling-calculator-page input:focus-visible,
.ceiling-calculator-page select:focus-visible,
.ceiling-calculator-page button:focus-visible {
  outline-color: rgba(124, 58, 237, 0.18);
}

.ceiling-calculator-page input[type="range"]::-webkit-slider-runnable-track,
.ceiling-calculator-page input[type="range"]::-moz-range-track {
  background: linear-gradient(90deg, #7c3aed, #2563eb);
}

.ceiling-calculator-page input[type="range"]::-webkit-slider-thumb,
.ceiling-calculator-page input[type="range"]::-moz-range-thumb {
  background: #6d28d9;
}

.ceiling-calculator-page .choice-card.is-selected {
  border-color: #7c3aed;
  background: linear-gradient(180deg, rgba(245, 243, 255, 0.98), rgba(237, 233, 254, 0.98));
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.12);
}

.ceiling-calculator-page .choice-card.is-selected strong,
.ceiling-calculator-page .choice-card.is-selected em,
.ceiling-calculator-page .choice-card-pill.is-selected span {
  color: #6d28d9;
}

.ceiling-type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.ceiling-type-card {
  align-content: start;
  min-height: 220px;
}

.ceiling-type-illustration {
  display: grid;
  place-items: center;
  min-height: 86px;
  margin-bottom: 4px;
  border: 1px dashed rgba(124, 58, 237, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(245, 243, 255, 0.84), rgba(255, 255, 255, 0.94));
}

.ceiling-type-illustration svg {
  width: 78px;
  height: 52px;
}

.ceiling-type-illustration svg line,
.ceiling-type-illustration svg polyline,
.ceiling-type-illustration svg rect {
  fill: none;
  stroke: #7c3aed;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ceiling-type-illustration svg .ceiling-guide {
  stroke: #94a3b8;
  stroke-width: 2;
}

.ceiling-type-card.is-selected .ceiling-type-illustration {
  border-color: rgba(124, 58, 237, 0.3);
  background: linear-gradient(180deg, rgba(237, 233, 254, 0.94), rgba(255, 255, 255, 0.96));
}

.ceiling-type-badge,
.ceiling-type-cost {
  position: relative;
  margin: 0;
}

.ceiling-type-badge {
  color: #6d28d9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ceiling-type-cost {
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
}

.ceiling-selected-note,
.ceiling-recommendation-card {
  border-color: rgba(124, 58, 237, 0.12);
  background: linear-gradient(180deg, rgba(245, 243, 255, 0.9), rgba(255, 255, 255, 0.96));
}

.ceiling-selected-note p,
.ceiling-recommendation-card p {
  margin: 0;
}

.ceiling-dimension-section {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(250, 250, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.ceiling-dimension-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
}

.ceiling-dimension-art {
  padding: 18px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(245, 243, 255, 0.82), rgba(255, 255, 255, 0.92));
}

.ceiling-dimension-art svg {
  width: 100%;
  height: auto;
}

.ceiling-dimension-art svg line,
.ceiling-dimension-art svg polyline,
.ceiling-dimension-art svg rect {
  fill: none;
  stroke: #7c3aed;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ceiling-dimension-art svg .ceiling-guide {
  stroke: #94a3b8;
  stroke-width: 2;
}

.ceiling-dimension-art svg .ceiling-measure {
  stroke: #64748b;
  stroke-width: 2;
  marker-start: none;
  marker-end: none;
}

.ceiling-dimension-art svg marker path {
  fill: #64748b;
}

.ceiling-dimension-art svg text {
  fill: var(--ink-700);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
}

.ceiling-dimension-fields {
  display: grid;
  gap: 18px;
}

.ceiling-dimension-meta p {
  margin: 0;
}

.ceiling-summary-card::before {
  background: linear-gradient(90deg, #7c3aed, #2563eb);
}

.ceiling-type-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.ceiling-type-summary strong,
.ceiling-type-summary span {
  color: #fff;
}

.ceiling-type-summary strong {
  font-size: 18px;
  font-weight: 700;
}

.ceiling-type-summary span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.ceiling-summary-metrics {
  align-items: stretch;
}

.ceiling-estimate-card {
  display: grid;
  gap: 10px;
}

.ceiling-breakdown-list .cost-breakdown-row {
  background: rgba(255, 255, 255, 0.05);
}

.ceiling-difficulty-card,
.ceiling-compare-card {
  display: grid;
  gap: 14px;
}

.ceiling-difficulty-stars {
  display: flex;
  gap: 6px;
  font-size: 26px;
  line-height: 1;
}

.ceiling-difficulty-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ceiling-difficulty-meta strong {
  color: var(--ink-950);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ceiling-difficulty-meta span {
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 600;
}

.ceiling-difficulty-bar {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: rgba(19, 26, 42, 0.08);
}

.ceiling-difficulty-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 0.32s ease, background-color 0.2s ease;
}

.ceiling-difficulty-reasons {
  display: grid;
  gap: 8px;
}

.ceiling-difficulty-reason {
  position: relative;
  padding-left: 16px;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.7;
}

.ceiling-difficulty-reason::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7c3aed;
}

.ceiling-labor-callout,
.ceiling-difficulty-warning {
  border-color: rgba(124, 58, 237, 0.12);
  background: linear-gradient(180deg, rgba(245, 243, 255, 0.9), rgba(255, 255, 255, 0.96));
}

.ceiling-labor-callout p,
.ceiling-difficulty-warning p {
  margin: 0;
}

.ceiling-compare-list {
  display: grid;
  gap: 12px;
}

.ceiling-compare-row {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.ceiling-compare-row.is-current {
  border-color: rgba(124, 58, 237, 0.24);
  background: linear-gradient(180deg, rgba(245, 243, 255, 0.94), rgba(255, 255, 255, 0.98));
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.1);
}

.ceiling-compare-copy,
.ceiling-compare-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ceiling-compare-copy strong,
.ceiling-compare-amount {
  color: var(--ink-950);
  font-size: 15px;
  font-weight: 700;
}

.ceiling-compare-copy span,
.ceiling-compare-row small {
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.6;
}

.ceiling-mobile-bar {
  display: none;
}

.ceiling-mobile-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ceiling-mobile-stats span {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.mud-calculator-hero {
  position: relative;
  overflow: hidden;
}

.mud-calculator-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #059669, #10b981);
}

.mud-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(280px, 0.86fr);
  gap: 24px;
  align-items: start;
}

.mud-trust-badges span {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

.mud-hero-support {
  border-color: rgba(16, 185, 129, 0.16);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.96));
}

.mud-tool-grid {
  align-items: start;
}

.mud-tool-grid > div {
  display: grid;
  gap: 24px;
}

.mud-wizard {
  display: grid;
  gap: 24px;
}

.mud-calculator-page .action-button-primary,
.mud-calculator-page .cta-button {
  background: linear-gradient(180deg, #059669, #047857);
  box-shadow: 0 14px 34px rgba(5, 150, 105, 0.22);
}

.mud-calculator-page input[type="number"]:focus,
.mud-calculator-page select:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

.mud-calculator-page input:focus-visible,
.mud-calculator-page select:focus-visible,
.mud-calculator-page button:focus-visible {
  outline-color: rgba(5, 150, 105, 0.22);
}

.mud-calculator-page input[type="range"]::-webkit-slider-runnable-track,
.mud-calculator-page input[type="range"]::-moz-range-track {
  background: linear-gradient(90deg, #059669, #10b981);
}

.mud-calculator-page input[type="range"]::-webkit-slider-thumb,
.mud-calculator-page input[type="range"]::-moz-range-thumb {
  background: #047857;
}

.mud-calculator-page .choice-card.is-selected {
  border-color: #059669;
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(209, 250, 229, 0.98));
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.12);
}

.mud-calculator-page .choice-card.is-selected strong,
.mud-calculator-page .choice-card.is-selected em,
.mud-calculator-page .choice-card-pill.is-selected span {
  color: #047857;
}

.mud-calculator-page .cta-card {
  border-left-color: #059669;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.mud-form-section {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(16, 185, 129, 0.14);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(250, 255, 252, 0.96), rgba(255, 255, 255, 0.96));
}

.mud-section-head {
  display: grid;
  gap: 8px;
}

.mud-section-head h3,
.mud-shopping-card h2 {
  margin: 0;
  color: var(--ink-950);
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.mud-sheet-preview p,
.mud-level-summary p,
.mud-primer-note p,
.mud-warning-card p {
  margin: 0;
}

.mud-type-grid {
  align-items: stretch;
}

.mud-type-card {
  align-content: start;
  min-height: 206px;
}

.mud-type-meta {
  position: relative;
  margin: 4px 0 0;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
}

.mud-warning-card,
.mud-level-summary,
.mud-primer-note {
  border-color: rgba(16, 185, 129, 0.14);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.96));
}

.mud-level-list {
  display: grid;
  gap: 12px;
}

.mud-level-card {
  gap: 8px;
}

.mud-coat-selectors {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px dashed rgba(16, 185, 129, 0.3);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.mud-coat-select-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.mud-coat-select-row label {
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 700;
}

.mud-summary-card::before {
  background: linear-gradient(90deg, #059669, #10b981);
}

.mud-summary-project {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.mud-summary-project strong,
.mud-summary-project span {
  color: #fff;
}

.mud-summary-project strong {
  font-size: 18px;
  font-weight: 700;
}

.mud-summary-project span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.mud-summary-card .cost-bar-fill.material {
  background: linear-gradient(90deg, #34d399, #059669);
}

.mud-summary-card .cost-bar-fill.finish {
  background: linear-gradient(90deg, #5eead4, #0f766e);
}

.mud-summary-card .cost-bar-fill.labor {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}

.mud-summary-card .cost-bar-fill.screws {
  background: linear-gradient(90deg, #93c5fd, #2563eb);
}

.mud-breakdown-card,
.mud-seam-card,
.mud-shopping-card {
  display: grid;
  gap: 18px;
}

.mud-coat-list {
  display: grid;
  gap: 14px;
}

.mud-coat-item {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
}

.mud-coat-head,
.mud-coat-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.mud-coat-head > div {
  display: grid;
  gap: 4px;
}

.mud-coat-head strong {
  color: var(--ink-950);
  font-size: 16px;
  font-weight: 700;
}

.mud-coat-head span,
.mud-coat-meta span,
.mud-coat-item p,
.mud-leftover-note {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.7;
}

.mud-coat-bar {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: rgba(19, 26, 42, 0.08);
}

.mud-coat-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.mud-coat-fill.coat1 {
  background: linear-gradient(90deg, #059669, #34d399);
}

.mud-coat-fill.coat2 {
  background: linear-gradient(90deg, #0f766e, #2dd4bf);
}

.mud-coat-fill.coat3 {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.mud-coat-fill.coat4 {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.mud-coat-fill.coat5 {
  background: linear-gradient(90deg, #334155, #94a3b8);
}

.mud-seam-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
  gap: 20px;
  align-items: start;
}

.mud-seam-visual {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 18px;
  border: 1px solid rgba(16, 185, 129, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(236, 253, 245, 0.86)),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
}

.mud-seam-svg {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.mud-seam-svg rect {
  fill: rgba(16, 185, 129, 0.08);
  stroke: rgba(5, 150, 105, 0.5);
  stroke-width: 2;
}

.mud-seam-svg .mud-seam-joint {
  stroke: rgba(19, 26, 42, 0.18);
  stroke-width: 2;
}

.mud-seam-svg .mud-seam-edge {
  stroke: #059669;
  stroke-width: 2.5;
}

.mud-seam-metrics {
  display: grid;
  gap: 12px;
}

.mud-seam-metrics .info-card p {
  margin: 0;
}

.mud-shopping-list {
  display: grid;
  gap: 12px;
}

.mud-shopping-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.mud-shopping-item p {
  margin: 6px 0 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.7;
}

.mud-shopping-item-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.mud-shopping-item-meta span {
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mud-shopping-item-meta strong {
  color: var(--ink-950);
  font-size: 15px;
  font-weight: 700;
}

.mud-shopping-total {
  margin: 0;
  color: var(--ink-950);
  font-size: 15px;
  font-weight: 700;
}

.mud-side-note {
  background: color-mix(in srgb, #ecfdf5 62%, white);
}

.mud-side-note .sidebar-list {
  display: grid;
  gap: 10px;
}

.mud-mobile-bar {
  display: none;
}

.mud-mobile-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mud-mobile-stats span {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.weight-calculator-hero {
  position: relative;
  overflow: hidden;
}

.weight-calculator-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #1e40af, #0ea5e9);
}

.weight-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(280px, 0.86fr);
  gap: 24px;
  align-items: start;
}

.weight-trust-badges span {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.weight-hero-support {
  border-color: rgba(30, 64, 175, 0.14);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.weight-tool-grid {
  align-items: start;
}

.weight-tool-grid > div {
  display: grid;
  gap: 24px;
}

.weight-wizard {
  display: grid;
  gap: 24px;
}

.weight-calculator-page .action-button-primary,
.weight-calculator-page .cta-button {
  background: linear-gradient(180deg, #1d4ed8, #1e3a8a);
  box-shadow: 0 14px 34px rgba(30, 64, 175, 0.22);
}

.weight-calculator-page input[type="number"]:focus,
.weight-calculator-page select:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.14);
}

.weight-calculator-page input:focus-visible,
.weight-calculator-page select:focus-visible,
.weight-calculator-page button:focus-visible {
  outline-color: rgba(30, 64, 175, 0.2);
}

.weight-calculator-page .choice-card.is-selected {
  border-color: #1d4ed8;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.98));
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.12);
}

.weight-calculator-page .choice-card.is-selected strong,
.weight-calculator-page .choice-card.is-selected em,
.weight-calculator-page .choice-card-pill.is-selected span {
  color: #1d4ed8;
}

.weight-calculator-page .choice-card.is-disabled {
  opacity: 0.52;
  cursor: not-allowed;
  box-shadow: none;
}

.weight-calculator-page .choice-card.is-disabled:hover,
.weight-calculator-page .choice-card.is-disabled:focus-within {
  transform: none;
  border-color: #dbe3ef;
}

.weight-calculator-page .cta-card {
  border-left-color: #1d4ed8;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.weight-form-section {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(30, 64, 175, 0.12);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(251, 253, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.weight-section-head {
  display: grid;
  gap: 8px;
}

.weight-section-head h3,
.weight-summary-card h3,
.weight-comparison-card h3,
.weight-guide-card h3 {
  margin: 0;
}

.weight-pill-card {
  min-height: 112px;
  place-content: center;
  text-align: center;
}

.weight-type-grid,
.weight-use-grid {
  align-items: stretch;
}

.weight-type-card {
  align-content: start;
  min-height: 180px;
}

.weight-use-card {
  min-height: 150px;
}

.weight-type-note p {
  margin: 0;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
}

.quantity-stepper input {
  text-align: center;
}

.stepper-button {
  min-height: 48px;
  border: 1px solid rgba(19, 26, 42, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-950);
  font-size: 22px;
  font-weight: 700;
}

.weight-result-card {
  display: grid;
  gap: 20px;
}

.weight-gauge-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 20px;
  align-items: start;
}

.weight-gauge-shell {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(30, 64, 175, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.98));
}

.weight-gauge-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.weight-gauge-labels span {
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weight-gauge-svg {
  width: 100%;
  height: auto;
}

.weight-gauge-track,
.weight-gauge-band {
  fill: none;
  stroke-linecap: round;
  stroke-width: 16;
}

.weight-gauge-track {
  stroke: rgba(19, 26, 42, 0.1);
}

.weight-gauge-band.light {
  stroke: rgba(22, 163, 74, 0.9);
}

.weight-gauge-band.medium {
  stroke: rgba(217, 119, 6, 0.92);
}

.weight-gauge-band.heavy {
  stroke: rgba(234, 88, 12, 0.92);
}

.weight-gauge-svg text {
  fill: var(--ink-500);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
}

.weight-gauge-needle {
  stroke: #1d4ed8;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke 0.2s ease;
}

.weight-gauge-hub {
  fill: #1d4ed8;
  transition: fill 0.2s ease;
}

.weight-gauge-readout {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.weight-gauge-readout strong {
  color: var(--ink-950);
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.weight-gauge-readout span {
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 700;
}

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

.weight-metric-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.weight-metric-card span {
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weight-metric-card strong {
  color: var(--ink-950);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.weight-selection-line {
  margin: 0;
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 600;
}

.weight-summary-card::before {
  background: linear-gradient(90deg, #1e40af, #0ea5e9);
}

.weight-summary-project {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.weight-summary-project strong,
.weight-summary-project span {
  color: #fff;
}

.weight-summary-project strong {
  font-size: 18px;
  font-weight: 700;
}

.weight-summary-project span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.weight-comparison-card,
.weight-guide-card {
  display: grid;
  gap: 16px;
}

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

.weight-compare-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.weight-compare-box.is-current {
  border-color: rgba(30, 64, 175, 0.2);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.98));
  box-shadow: 0 12px 26px rgba(30, 64, 175, 0.1);
}

.weight-compare-kicker {
  margin: 0;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weight-compare-box strong {
  color: var(--ink-950);
  font-size: 18px;
  font-weight: 700;
}

.weight-compare-box span,
.weight-compare-box small,
.weight-savings-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.7;
}

.weight-savings-card {
  border-color: rgba(30, 64, 175, 0.12);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.98));
}

.weight-switch-button {
  width: 100%;
}

.weight-guide-stack {
  display: grid;
  gap: 12px;
}

.weight-guide-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.weight-guide-head,
.weight-guide-row,
.weight-guide-row-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.weight-guide-head strong,
.weight-guide-row strong {
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 700;
}

.weight-guide-head span,
.weight-guide-panel p,
.weight-guide-panel small,
.weight-guide-row span,
.weight-guide-footnote {
  margin: 0;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.7;
}

.weight-guide-row {
  display: grid;
  gap: 8px;
}

.weight-guide-row > div:first-child,
.weight-guide-row-meta {
  display: grid;
  gap: 2px;
}

.weight-guide-meter {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: rgba(19, 26, 42, 0.08);
}

.weight-guide-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.weight-guide-list {
  display: grid;
  gap: 12px;
}

.weight-guide-footnote {
  margin-top: 4px;
}

.weight-side-note {
  background: color-mix(in srgb, #eff6ff 60%, white);
}

.weight-mobile-bar {
  display: none;
}

.weight-mobile-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.weight-mobile-stats span {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.print-estimate-sheet {
  display: none;
}

.print-sheet-head,
.print-block {
  display: grid;
  gap: 8px;
}

.print-block h3 {
  margin: 0;
  color: var(--ink-950);
  font-size: 16px;
  font-weight: 700;
}

.print-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #d1d5db;
}

.print-row-total {
  font-size: 18px;
  font-weight: 700;
}

.print-note {
  margin: 0;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.6;
}

.room-estimator-mobile-bar {
  display: none;
}

@media (max-width: 1199px) {
  .weight-hero-grid,
  .weight-gauge-grid {
    grid-template-columns: 1fr;
  }

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

  .mud-hero-grid,
  .mud-seam-layout {
    grid-template-columns: 1fr;
  }

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

  .ceiling-hero-grid,
  .ceiling-dimension-grid {
    grid-template-columns: 1fr;
  }

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

  .room-estimator-hero-grid,
  .waste-hero-grid,
  .room-estimator-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .choice-grid-wide,
  .choice-grid-sheet,
  .choice-grid-3,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .weight-type-grid,
  .weight-use-grid,
  .weight-compare-grid,
  .weight-metric-grid {
    grid-template-columns: 1fr;
  }

  .weight-form-section,
  .weight-result-card,
  .weight-comparison-card,
  .weight-guide-card,
  .weight-print-sheet {
    padding: 20px;
  }

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

  .weight-guide-head,
  .weight-guide-row,
  .weight-guide-row-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .weight-mobile-bar.is-visible {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #1e3a5f, #172d47);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.18);
  }

  .weight-mobile-bar .mobile-summary-button {
    flex: 0 0 auto;
  }

  .weight-mobile-stats {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .weight-mobile-stats::-webkit-scrollbar {
    display: none;
  }

  .mud-type-grid {
    grid-template-columns: 1fr;
  }

  .mud-form-section,
  .mud-breakdown-card,
  .mud-seam-card,
  .mud-shopping-card,
  .mud-print-sheet {
    padding: 20px;
  }

  .mud-coat-select-row,
  .mud-shopping-item {
    grid-template-columns: 1fr;
  }

  .mud-coat-head,
  .mud-coat-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .mud-shopping-item-meta {
    justify-items: start;
  }

  .mud-mobile-bar.is-visible {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #065f46, #064e3b);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.18);
  }

  .mud-mobile-bar .mobile-summary-button {
    flex: 0 0 auto;
  }

  .mud-mobile-stats {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mud-mobile-stats::-webkit-scrollbar {
    display: none;
  }

  .step-indicator {
    flex-direction: column;
    align-items: stretch;
  }

  .step-line {
    width: 2px;
    height: 14px;
    margin-left: 15px;
    flex: 0 0 auto;
  }

  .step-node,
  .room-preview-head,
  .summary-head,
  .summary-head-actions,
  .estimate-total-grid,
  .summary-metrics,
  .per-sqft-grid,
  .room-preview-stats,
  .wizard-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .step-labels span,
  .wizard-spacer {
    display: none;
  }

  .choice-grid,
  .choice-grid-wide,
  .pill-card-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .choice-grid-sheet,
  .choice-grid-3,
  .pill-card-grid-2,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .room-preview-card,
  .hero-support-card,
  .comparison-card,
  .estimate-summary-card {
    padding: 20px;
  }

  .summary-head-actions {
    justify-content: stretch;
  }

  .summary-head-button,
  .wizard-actions .action-button,
  .comparison-action {
    width: 100%;
  }

  .comparison-card h3,
  .estimate-total-value {
    font-size: 32px;
  }

  .waste-form-section,
  .waste-summary-card,
  .waste-tips-card,
  .waste-print-sheet {
    padding: 20px;
  }

  .waste-section-head,
  .waste-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .waste-tip-item {
    grid-template-columns: 1fr;
  }

  .waste-tip-icon {
    width: 40px;
    height: 40px;
  }

  .ceiling-type-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 82vw);
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .ceiling-type-grid::-webkit-scrollbar,
  .ceiling-mobile-stats::-webkit-scrollbar {
    display: none;
  }

  .ceiling-type-card {
    min-height: 208px;
    scroll-snap-align: start;
  }

  .ceiling-dimension-grid {
    grid-template-columns: 1fr;
  }

  .ceiling-difficulty-meta,
  .ceiling-compare-copy,
  .ceiling-compare-amount {
    flex-direction: column;
    align-items: flex-start;
  }

  .ceiling-dimension-section,
  .ceiling-difficulty-card,
  .ceiling-compare-card,
  .ceiling-print-sheet {
    padding: 20px;
  }

  .ceiling-mobile-bar.is-visible {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    padding: 12px 16px;
    background: linear-gradient(180deg, var(--surface-dark), var(--surface-dark-2));
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.18);
  }

  .ceiling-mobile-bar .mobile-summary-button {
    flex: 0 0 auto;
  }

  .ceiling-mobile-stats {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .room-estimator-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    padding: 12px 16px;
    background: linear-gradient(180deg, var(--surface-dark), var(--surface-dark-2));
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.18);
  }

  .room-estimator-mobile-bar strong,
  .room-estimator-mobile-label {
    display: block;
    color: #fff;
  }

  .room-estimator-mobile-label {
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
  }

  .waste-mobile-bar.is-visible {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    padding: 12px 16px;
    background: linear-gradient(180deg, var(--surface-dark), var(--surface-dark-2));
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.18);
  }

  .waste-mobile-bar .mobile-summary-button {
    flex: 0 0 auto;
  }
}

@media print {
  body[data-tool-page="drywall-waste-calculator"] .topbar,
  body[data-tool-page="drywall-waste-calculator"] .breadcrumb,
  body[data-tool-page="drywall-waste-calculator"] .waste-calculator-hero,
  body[data-tool-page="drywall-waste-calculator"] .waste-tool-grid > div,
  body[data-tool-page="drywall-waste-calculator"] .waste-summary-card,
  body[data-tool-page="drywall-waste-calculator"] .waste-sidebar > .sidebar-card,
  body[data-tool-page="drywall-waste-calculator"] .waste-mobile-bar,
  body[data-tool-page="drywall-waste-calculator"] .site-footer {
    display: none !important;
  }

  body[data-tool-page="drywall-waste-calculator"] .waste-calculator-page {
    width: auto;
    margin: 0;
    padding: 0;
  }

  body[data-tool-page="drywall-waste-calculator"] .waste-tool-grid {
    display: block;
  }

  body[data-tool-page="drywall-waste-calculator"] .waste-sidebar {
    display: block;
    position: static;
  }

  body[data-tool-page="drywall-waste-calculator"] .waste-print-sheet {
    display: grid;
    gap: 18px;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
    color: #000;
  }

  body[data-tool-page="drywall-waste-calculator"] .waste-print-sheet *,
  body[data-tool-page="drywall-waste-calculator"] .waste-print-sheet .print-brand {
    color: #000 !important;
  }

  body[data-tool-page="room-cost-estimator"] .breadcrumb,
  body[data-tool-page="room-cost-estimator"] .room-estimator-hero,
  body[data-tool-page="room-cost-estimator"] .room-estimator-grid > div,
  body[data-tool-page="room-cost-estimator"] .estimate-summary-card,
  body[data-tool-page="room-cost-estimator"] .room-estimator-sidebar > .sidebar-card,
  body[data-tool-page="room-cost-estimator"] .room-estimator-mobile-bar,
  body[data-tool-page="room-cost-estimator"] .site-footer {
    display: none !important;
  }

  body[data-tool-page="room-cost-estimator"] .room-estimator-page {
    width: auto;
    margin: 0;
    padding: 0;
  }

  body[data-tool-page="room-cost-estimator"] .room-estimator-grid {
    display: block;
  }

  body[data-tool-page="room-cost-estimator"] .room-estimator-sidebar {
    display: block;
    position: static;
  }

  body[data-tool-page="room-cost-estimator"] .print-estimate-sheet {
    display: grid;
    gap: 18px;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
    color: #000;
  }

  body[data-tool-page="room-cost-estimator"] .print-estimate-sheet *,
  body[data-tool-page="room-cost-estimator"] .print-estimate-sheet .print-brand {
    color: #000 !important;
  }

  body[data-tool-page="ceiling-drywall-calculator"] .topbar,
  body[data-tool-page="ceiling-drywall-calculator"] .breadcrumb,
  body[data-tool-page="ceiling-drywall-calculator"] .ceiling-calculator-hero,
  body[data-tool-page="ceiling-drywall-calculator"] .ceiling-tool-grid > div,
  body[data-tool-page="ceiling-drywall-calculator"] .ceiling-summary-card,
  body[data-tool-page="ceiling-drywall-calculator"] .ceiling-difficulty-card,
  body[data-tool-page="ceiling-drywall-calculator"] .ceiling-compare-card,
  body[data-tool-page="ceiling-drywall-calculator"] .ceiling-mobile-bar,
  body[data-tool-page="ceiling-drywall-calculator"] .site-footer {
    display: none !important;
  }

  body[data-tool-page="ceiling-drywall-calculator"] .ceiling-calculator-page {
    width: auto;
    margin: 0;
    padding: 0;
  }

  body[data-tool-page="ceiling-drywall-calculator"] .ceiling-tool-grid {
    display: block;
  }

  body[data-tool-page="ceiling-drywall-calculator"] .ceiling-sidebar {
    display: block;
    position: static;
  }

  body[data-tool-page="ceiling-drywall-calculator"] .ceiling-print-sheet {
    display: grid;
    gap: 18px;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
    color: #000;
  }

  body[data-tool-page="ceiling-drywall-calculator"] .ceiling-print-sheet *,
  body[data-tool-page="ceiling-drywall-calculator"] .ceiling-print-sheet .print-brand {
    color: #000 !important;
  }

  body[data-tool-page="drywall-mud-calculator"] .topbar,
  body[data-tool-page="drywall-mud-calculator"] .breadcrumb,
  body[data-tool-page="drywall-mud-calculator"] .mud-calculator-hero,
  body[data-tool-page="drywall-mud-calculator"] .mud-tool-grid,
  body[data-tool-page="drywall-mud-calculator"] .mud-mobile-bar,
  body[data-tool-page="drywall-mud-calculator"] .site-footer {
    display: none !important;
  }

  body[data-tool-page="drywall-mud-calculator"] .mud-calculator-page {
    width: auto;
    margin: 0;
    padding: 0;
  }

  body[data-tool-page="drywall-mud-calculator"] .mud-print-sheet {
    display: grid;
    gap: 18px;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
    color: #000;
  }

  body[data-tool-page="drywall-mud-calculator"] .mud-print-sheet *,
  body[data-tool-page="drywall-mud-calculator"] .mud-print-sheet .print-brand {
    color: #000 !important;
  }

  body[data-tool-page="drywall-weight-calculator"] .topbar,
  body[data-tool-page="drywall-weight-calculator"] .breadcrumb,
  body[data-tool-page="drywall-weight-calculator"] .weight-calculator-hero,
  body[data-tool-page="drywall-weight-calculator"] .weight-tool-grid,
  body[data-tool-page="drywall-weight-calculator"] .weight-mobile-bar,
  body[data-tool-page="drywall-weight-calculator"] .site-footer {
    display: none !important;
  }

  body[data-tool-page="drywall-weight-calculator"] .weight-calculator-page {
    width: auto;
    margin: 0;
    padding: 0;
  }

  body[data-tool-page="drywall-weight-calculator"] .weight-print-sheet {
    display: grid;
    gap: 18px;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
    color: #000;
  }

  body[data-tool-page="drywall-weight-calculator"] .weight-print-sheet *,
  body[data-tool-page="drywall-weight-calculator"] .weight-print-sheet .print-brand {
    color: #000 !important;
  }
}

.article-body p,
.article-body li {
  margin: 0;
  color: var(--ink-700);
  font-size: 16px;
  line-height: 1.86;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
  width: min(100%, 600px);
}

.contact-form-intro,
.contact-card p,
.legal-note p {
  margin: 0;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.72;
}

.contact-card {
  display: grid;
  gap: 18px;
}

.contact-card h2 {
  margin: 0;
  color: var(--ink-950);
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.contact-card h3,
.legal-note h3 {
  margin: 0;
  color: var(--ink-950);
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.contact-card ul,
.contact-card ol,
.legal-note ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.contact-methods {
  display: grid;
  gap: 12px;
}

.contact-method {
  padding: 16px 18px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.contact-method dt {
  margin: 0 0 6px;
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 700;
}

.contact-method dd {
  margin: 0;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.72;
}

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  border: 1px solid rgba(16, 185, 129, 0.24);
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.form-status.is-error {
  border: 1px solid rgba(239, 107, 107, 0.28);
  background: rgba(239, 107, 107, 0.1);
  color: #b91c1c;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-links a {
  color: var(--ink-700);
  font-weight: 500;
  text-decoration: none;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--cobalt-600);
}

.legal-note {
  display: grid;
  gap: 12px;
}

.legal-note ul {
  padding-left: 18px;
}

.cta-card {
  display: grid;
  gap: 12px;
  padding: 20px 24px;
  border-left: 4px solid #2563eb;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.cta-card p {
  margin: 0;
}

.cta-button,
.inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, var(--cobalt-600), var(--cobalt-700));
  box-shadow: var(--shadow-blue);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.pro-tip {
  display: grid;
  gap: 8px;
  padding: 16px 20px;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
}

.pro-tip strong {
  color: #d97706;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cover-note,
.section-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.section-link-row a {
  color: var(--cobalt-600);
  font-weight: 600;
  text-decoration: none;
}

.mini-faq-intro {
  margin: 0 0 16px;
  color: var(--ink-500);
  font-size: 14px;
}

.count-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  background: rgba(38, 71, 232, 0.08);
  color: var(--cobalt-600);
  font-size: 12px;
  font-weight: 700;
}

.hub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.hub-row p {
  margin: 0;
}

.mobile-summary-bar,
.mobile-summary-drawer {
  display: none;
}

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

.pulse-change {
  animation: value-pulse 0.36s ease;
}

@keyframes value-pulse {
  0% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-1px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes fade-slide-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flash {
  0% {
    background: rgba(238, 242, 255, 0.85);
  }

  100% {
    background: rgba(255, 255, 255, 0.9);
  }
}

@media (max-width: 1199px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 72px;
  }

  body:not([data-page="home"]) .interior-layout > * + * {
    margin-top: 20px;
  }

  body {
    padding-bottom: 84px;
  }

  .topbar-inner,
  .page-layout,
  .site-footer {
    width: min(100vw - 24px, 1200px);
  }

  .topbar-badge {
    display: none;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0 10px;
  }

  .topnav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .topnav-item {
    position: static;
  }

  .topnav-menu {
    position: static;
    display: none;
    min-width: 0;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .topnav-item.has-menu.is-open .topnav-menu {
    display: grid;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 20px;
  }

  .interior-layout {
    width: min(100vw - 24px, 1200px);
    padding-top: 20px;
  }

  .summary-rail {
    display: none;
  }

  .mobile-summary-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 12px 16px;
    background: linear-gradient(180deg, var(--surface-dark), var(--surface-dark-2));
    color: #fff;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  }

  .mobile-summary-values {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .mobile-summary-value {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
  }

  .mobile-summary-separator {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.18);
  }

  .mobile-summary-button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
  }

  .mobile-summary-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
  }

  .mobile-summary-drawer[hidden] {
    display: none;
  }

  .mobile-summary-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19, 26, 42, 0.55);
  }

  .mobile-summary-panel {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-height: calc(100vh - 96px);
    overflow: auto;
  }

  .mobile-summary-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
  }

  .mobile-summary-close {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-full);
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
  }

  .calculator-card,
  .section-card,
  .footer-card {
    padding: 20px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 32px;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .calculator-head,
  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }

  .module-tabs,
  .form-grid,
  .preset-grid,
  .step-grid,
  .footer-sections,
  .footer-notes,
  .sheet-size-visual,
  .tool-layout,
  .tool-cards-grid,
  .related-grid,
  .posts-grid,
  .featured-post,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    flex-direction: column;
  }

  .interior-grid,
  .article-grid,
  .blog-index-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-stack {
    position: static;
  }

  .landing-hero,
  .page-hero,
  .tool-panel,
  .article-card {
    padding: 20px;
  }

  .footer-meta,
  .footer-legal-links {
    justify-content: center;
    text-align: center;
  }

  .hub-row {
    flex-direction: column;
    align-items: stretch;
  }

  .step-grid .step-card::after,
  .step-grid .step-card::before {
    display: none;
  }

  .result-row,
  .summary-row {
    align-items: start;
  }

  .result-row strong,
  .summary-row strong {
    max-width: 12ch;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .ceiling-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .interior-grid,
  .article-grid,
  .blog-index-grid {
    grid-template-columns: 1fr;
  }

  .tool-layout,
  .featured-post {
    grid-template-columns: 1fr;
  }

  .sidebar-stack {
    position: static;
  }

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

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

@media print {
  body {
    padding-bottom: 0;
    background: #fff;
    color: #000;
  }

  .topbar,
  .mobile-summary-bar,
  .mobile-summary-drawer,
  .summary-actions,
  .preset-grid {
    display: none !important;
  }

  .page-layout {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
  }

  .section-card,
  .summary-card,
  .footer-card,
  .calculator-card {
    margin-bottom: 1rem;
    border: 1px solid #d1d5db;
    box-shadow: none;
    background: #fff !important;
    color: #000 !important;
    break-inside: avoid;
  }

  .summary-rail {
    display: block;
    position: static;
    margin-top: 1rem;
  }

.summary-card *,
.footer-card * {
  color: #000 !important;
}
}

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

.paint-calculator-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #dc2626, #f97316);
}

.paint-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(280px, 0.86fr);
  gap: 24px;
  align-items: start;
}

.paint-trust-badges span {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.paint-hero-support {
  border-color: rgba(220, 38, 38, 0.14);
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.96));
}

.paint-tool-grid {
  align-items: start;
}

.paint-tool-grid > div {
  display: grid;
  gap: 24px;
}

.paint-room-manager,
.paint-wizard,
.paint-layer-card,
.paint-alert-card {
  display: grid;
  gap: 24px;
}

.paint-room-manager-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.paint-calculator-page .action-button-primary,
.paint-calculator-page .cta-button {
  background: linear-gradient(180deg, #ea580c, #b91c1c);
  box-shadow: 0 14px 34px rgba(185, 28, 28, 0.24);
}

.paint-calculator-page input[type="number"]:focus,
.paint-calculator-page input[type="text"]:focus,
.paint-calculator-page select:focus,
.paint-calculator-page input[type="range"]:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.14);
}

.paint-calculator-page input:focus-visible,
.paint-calculator-page select:focus-visible,
.paint-calculator-page button:focus-visible {
  outline-color: rgba(234, 88, 12, 0.2);
}

.paint-calculator-page .choice-card.is-selected {
  border-color: #ea580c;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(254, 215, 170, 0.72));
  box-shadow: 0 12px 28px rgba(194, 65, 12, 0.12);
}

.paint-calculator-page .choice-card.is-selected strong,
.paint-calculator-page .choice-card.is-selected em,
.paint-calculator-page .choice-card-pill.is-selected span {
  color: #c2410c;
}

.paint-form-section {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(220, 38, 38, 0.12);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 247, 0.96), rgba(255, 255, 255, 0.96));
}

.paint-section-head {
  display: grid;
  gap: 8px;
}

.paint-section-head h3,
.paint-summary-card h3,
.paint-breakdown-card h3,
.paint-shopping-card h3 {
  margin: 0;
}

.paint-room-list,
.paint-layer-list,
.paint-alert-list,
.paint-shopping-list {
  display: grid;
  gap: 14px;
}

.paint-room-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-xs);
}

.paint-room-card.is-active {
  border-color: rgba(234, 88, 12, 0.22);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 30px rgba(194, 65, 12, 0.1);
}

.paint-room-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.paint-room-card-title {
  display: grid;
  gap: 4px;
}

.paint-room-card-title strong {
  color: var(--ink-950);
  font-size: 18px;
  font-weight: 700;
}

.paint-room-card-title span,
.paint-room-card-meta {
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.6;
}

.paint-room-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.paint-room-card-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(234, 88, 12, 0.12);
  border-radius: var(--radius-full);
  background: rgba(255, 247, 237, 0.72);
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
}

.paint-room-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.paint-room-card-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(19, 26, 42, 0.1);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-950);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.paint-room-rollup,
.paint-surface-note,
.paint-primer-note {
  background: color-mix(in srgb, #fff7ed 70%, white);
}

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

.paint-live-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.paint-live-card span {
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paint-live-card strong {
  color: var(--ink-950);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.paint-live-card small,
.paint-color-note small {
  margin: 0;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.6;
}

.paint-surface-grid,
.paint-primer-grid {
  align-items: stretch;
}

.paint-surface-card,
.paint-primer-card {
  align-content: start;
  min-height: 200px;
}

.paint-coat-card {
  min-height: 114px;
  place-content: center;
  text-align: center;
}

.paint-surface-visual {
  display: block;
  width: 100%;
  height: 56px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(243, 244, 246, 0.92), rgba(229, 231, 235, 0.98));
}

.paint-surface-visual.smooth {
  background: linear-gradient(180deg, #f8fafc, #e5e7eb);
}

.paint-surface-visual.light {
  background:
    radial-gradient(circle at 18% 30%, rgba(234, 88, 12, 0.16) 0 6%, transparent 7%),
    radial-gradient(circle at 52% 48%, rgba(234, 88, 12, 0.14) 0 5%, transparent 6%),
    radial-gradient(circle at 80% 26%, rgba(234, 88, 12, 0.15) 0 5%, transparent 6%),
    linear-gradient(180deg, #fff7ed, #fed7aa);
}

.paint-surface-visual.heavy {
  background:
    linear-gradient(135deg, rgba(194, 65, 12, 0.12) 20%, transparent 20% 40%, rgba(194, 65, 12, 0.12) 40% 60%, transparent 60% 80%, rgba(194, 65, 12, 0.12) 80%),
    linear-gradient(180deg, #ffedd5, #fdba74);
  background-size: 26px 26px, auto;
}

.paint-surface-visual.brick {
  background:
    linear-gradient(90deg, rgba(127, 29, 29, 0.16) 0 2px, transparent 2px 100%),
    linear-gradient(180deg, rgba(127, 29, 29, 0.16) 0 2px, transparent 2px 100%),
    linear-gradient(180deg, #fed7aa, #f97316);
  background-size: 28px 18px, 28px 18px, auto;
}

.paint-surface-visual.board {
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.22) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(148, 163, 184, 0.22) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #f8fafc, #dbe4ef);
  background-size: 22px 22px, 22px 22px, auto;
}

.paint-color-section {
  display: grid;
  gap: 16px;
}

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

.paint-color-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.paint-color-group legend {
  padding: 0;
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 700;
}

.paint-color-card {
  min-height: 58px;
}

.range-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.paint-summary-card::before {
  background: linear-gradient(90deg, #dc2626, #f97316);
}

.paint-summary-project {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.paint-summary-project strong,
.paint-summary-project span {
  color: #fff;
}

.paint-summary-project strong {
  font-size: 18px;
  font-weight: 700;
}

.paint-summary-project span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.paint-breakdown-card,
.paint-shopping-card {
  display: grid;
  gap: 16px;
}

.paint-layer-row {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.paint-layer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.paint-layer-head strong,
.paint-alert-head strong {
  color: var(--ink-950);
  font-size: 16px;
  font-weight: 700;
}

.paint-layer-head span,
.paint-layer-buy,
.paint-alert-item p,
.paint-alert-item small {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.7;
}

.paint-layer-meta {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.7;
}

.paint-layer-meter {
  position: relative;
  height: 14px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: rgba(19, 26, 42, 0.08);
}

.paint-layer-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.coat-bar-primer {
  background: linear-gradient(90deg, #9ca3af, #d1d5db);
}

.coat-bar-coat1 {
  background: linear-gradient(90deg, #dc2626, #f97316);
}

.coat-bar-coat2 {
  background: linear-gradient(90deg, #f97316, #fb923c);
}

.coat-bar-coat3 {
  background: linear-gradient(90deg, #fb923c, #fcd34d);
}

.coat-bar-coat4 {
  background: linear-gradient(90deg, #f59e0b, #fde68a);
}

div.paint-layer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.paint-layer-buy {
  color: var(--ink-950);
  font-weight: 600;
}

.paint-alert-item {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(220, 38, 38, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 0.98));
}

.paint-alert-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.paint-alert-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.paint-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.paint-alert-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #ea580c, #b91c1c);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.paint-shopping-group {
  display: grid;
  gap: 10px;
}

.paint-shopping-group h4 {
  margin: 0;
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.paint-shopping-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(19, 26, 42, 0.08);
}

.paint-shopping-item strong {
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 700;
}

.paint-shopping-item span,
.paint-shopping-item small {
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.6;
}

.paint-shopping-item small {
  grid-column: 1 / -1;
  margin: 0;
}

.paint-shopping-total {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 247, 237, 0.8);
}

.paint-shopping-total strong {
  color: var(--ink-950);
  font-size: 18px;
  font-weight: 700;
}

.paint-shopping-total span,
.paint-shopping-total small {
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.6;
}

.paint-side-note {
  background: color-mix(in srgb, #fff7ed 60%, white);
}

.paint-mobile-bar {
  display: none;
}

.paint-mobile-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.paint-mobile-stats span {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.paint-print-pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--ink-700);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 1199px) {
  .paint-hero-grid,
  .paint-color-grid {
    grid-template-columns: 1fr;
  }

  .paint-room-card-head {
    flex-direction: column;
  }

  .paint-room-card-stats {
    justify-content: start;
  }
}

@media (max-width: 767px) {
  .paint-live-grid,
  .paint-color-grid {
    grid-template-columns: 1fr;
  }

  .paint-room-manager,
  .paint-form-section,
  .paint-layer-card,
  .paint-alert-card,
  .paint-breakdown-card,
  .paint-shopping-card,
  .paint-print-sheet {
    padding: 20px;
  }

  .paint-room-manager-head,
  .paint-layer-head,
  .paint-alert-head {
    flex-direction: column;
    align-items: stretch;
  }

  .paint-room-card-actions,
  .paint-alert-actions {
    width: 100%;
  }

  .paint-room-card-button,
  .paint-alert-button {
    width: 100%;
  }

  .paint-mobile-bar.is-visible {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #7c1d1d, #5f1717);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.18);
  }

  .paint-mobile-bar .mobile-summary-button {
    flex: 0 0 auto;
  }

  .paint-mobile-stats {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .paint-mobile-stats::-webkit-scrollbar {
    display: none;
  }
}

@media print {
  body[data-tool-page="paint-calculator"] .topbar,
  body[data-tool-page="paint-calculator"] .breadcrumb,
  body[data-tool-page="paint-calculator"] .paint-calculator-hero,
  body[data-tool-page="paint-calculator"] .paint-tool-grid,
  body[data-tool-page="paint-calculator"] .paint-mobile-bar,
  body[data-tool-page="paint-calculator"] .site-footer {
    display: none !important;
  }

  body[data-tool-page="paint-calculator"] .paint-calculator-page {
    width: auto;
    margin: 0;
    padding: 0;
  }

  body[data-tool-page="paint-calculator"] .paint-print-sheet {
    display: grid;
    gap: 18px;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
    color: #000;
  }

  body[data-tool-page="paint-calculator"] .paint-print-sheet *,
  body[data-tool-page="paint-calculator"] .paint-print-sheet .print-brand {
    color: #000 !important;
  }
}

.cost-sqft-hero {
  position: relative;
  overflow: hidden;
}

.cost-sqft-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #065f46, #059669);
}

.cost-sqft-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.cost-sqft-hero-pills span {
  border-color: rgba(5, 150, 105, 0.18);
  background: #ecfdf5;
  color: #065f46;
}

.cost-sqft-hero-support {
  border-color: rgba(6, 95, 70, 0.14);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.96));
}

.cost-sqft-tool-grid {
  align-items: start;
}

.cost-sqft-tool-grid > div {
  display: grid;
  gap: 24px;
}

.cost-sqft-sidebar {
  display: grid;
  gap: 24px;
}

.cost-sqft-wizard,
.cost-finish-table-card,
.cost-breakdown-card,
.cost-diy-card,
.cost-budget-card {
  display: grid;
  gap: 24px;
}

.cost-sqft-calculator-page .action-button-primary,
.cost-sqft-calculator-page .cta-button {
  background: linear-gradient(180deg, #059669, #065f46);
  box-shadow: 0 14px 34px rgba(6, 95, 70, 0.2);
}

.cost-sqft-calculator-page input[type="number"]:focus,
.cost-sqft-calculator-page input[type="text"]:focus,
.cost-sqft-calculator-page select:focus,
.cost-sqft-calculator-page input[type="range"]:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
}

.cost-sqft-calculator-page input:focus-visible,
.cost-sqft-calculator-page select:focus-visible,
.cost-sqft-calculator-page button:focus-visible {
  outline-color: rgba(5, 150, 105, 0.2);
}

.cost-sqft-calculator-page .choice-card.is-selected {
  border-color: #059669;
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(209, 250, 229, 0.78));
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.12);
}

.cost-sqft-calculator-page .choice-card.is-selected strong,
.cost-sqft-calculator-page .choice-card.is-selected em,
.cost-sqft-calculator-page .choice-card.is-selected span,
.cost-sqft-calculator-page .choice-card-pill.is-selected span {
  color: #065f46;
}

.cost-sqft-calculator-page .choice-card.is-disabled {
  opacity: 0.52;
  cursor: not-allowed;
  box-shadow: none;
}

.cost-sqft-calculator-page .choice-card.is-disabled:hover,
.cost-sqft-calculator-page .choice-card.is-disabled:focus-within {
  transform: none;
  border-color: #dbe3ef;
}

.cost-sqft-form-section {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(6, 95, 70, 0.12);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(248, 255, 251, 0.98), rgba(255, 255, 255, 0.96));
}

.cost-sqft-section-head {
  display: grid;
  gap: 8px;
}

.cost-sqft-section-head h3,
.cost-finish-table-card h2,
.cost-summary-card h3,
.cost-breakdown-card h3,
.cost-diy-card h3,
.cost-budget-card h3 {
  margin: 0;
}

.cost-room-panel,
.cost-room-list {
  display: grid;
  gap: 14px;
}

.cost-room-panel-head,
.cost-room-card-head,
.cost-breakdown-head,
.cost-compare-card-head,
.cost-budget-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.cost-room-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-xs);
}

.cost-room-card-title {
  display: grid;
  gap: 4px;
}

.cost-room-card-title strong {
  color: var(--ink-950);
  font-size: 18px;
  font-weight: 700;
}

.cost-room-card-title span,
.cost-room-card-meta,
.cost-breakdown-row p,
.cost-breakdown-row small,
.cost-compare-current span,
.cost-compare-footnote p,
.cost-budget-head span,
.cost-budget-row span,
.cost-budget-row small,
.cost-budget-total span,
.cost-budget-total small {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.7;
}

.cost-room-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.cost-room-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(5, 150, 105, 0.12);
  border-radius: var(--radius-full);
  background: rgba(236, 253, 245, 0.78);
  color: #065f46;
  font-size: 12px;
  font-weight: 700;
}

.cost-room-remove,
.cost-compare-switch {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(19, 26, 42, 0.12);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-950);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cost-drywall-type-grid,
.cost-finish-grid,
.cost-install-grid,
.cost-diy-task-grid {
  align-items: stretch;
}

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

.cost-diy-task-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cost-finish-card,
.cost-drywall-type-grid .choice-card,
.cost-install-grid .choice-card,
.cost-diy-task-grid .choice-card {
  align-content: start;
}

.cost-finish-card {
  min-height: 156px;
}

.cost-install-grid .choice-card {
  min-height: 132px;
}

.cost-drywall-type-grid .choice-card {
  min-height: 124px;
}

.cost-material-note,
.cost-finish-note,
.cost-room-rollup,
.cost-summary-footnote {
  background: color-mix(in srgb, #ecfdf5 68%, white);
}

.cost-summary-footnote strong,
.cost-summary-footnote p,
.cost-summary-footnote small {
  color: #052e2b !important;
}

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

.cost-finish-table-card .data-table tbody tr.is-selected-row {
  background: rgba(236, 253, 245, 0.92);
}

.cost-finish-table-card .data-table tbody tr.is-selected-row td {
  color: #065f46;
  font-weight: 700;
}

.cost-summary-card::before {
  background: linear-gradient(90deg, #065f46, #059669);
}

.cost-summary-project {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.cost-summary-project strong,
.cost-summary-project span {
  color: #fff;
}

.cost-summary-project strong {
  font-size: 18px;
  font-weight: 700;
}

.cost-summary-project span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

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

.cost-phase-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.cost-phase-card > span,
.cost-phase-card small {
  color: rgba(255, 255, 255, 0.76);
}

.cost-phase-card > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-phase-card strong {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.cost-phase-card small {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.cost-phase-meter,
.cost-breakdown-meter {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
}

.cost-phase-fill,
.cost-breakdown-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.cost-phase-fill.materials,
.cost-breakdown-fill.materials {
  background: linear-gradient(90deg, #065f46, #10b981);
}

.cost-phase-fill.hanging,
.cost-breakdown-fill.hanging {
  background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}

.cost-phase-fill.finishing,
.cost-breakdown-fill.finishing {
  background: linear-gradient(90deg, #a16207, #f59e0b);
}

.cost-breakdown-fill.taping {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.cost-breakdown-fill.mudding {
  background: linear-gradient(90deg, #b45309, #f59e0b);
}

.cost-breakdown-fill.ceiling {
  background: linear-gradient(90deg, #6d28d9, #8b5cf6);
}

.cost-breakdown-fill.regional {
  background: linear-gradient(90deg, #dc2626, #ef4444);
}

.cost-breakdown-list {
  display: grid;
  gap: 14px;
}

.cost-breakdown-row {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.cost-breakdown-head strong,
.cost-compare-card strong,
.cost-budget-row strong,
.cost-budget-total strong {
  color: var(--ink-950);
}

.cost-breakdown-head span {
  color: var(--ink-500);
  font-size: 13px;
}

.cost-breakdown-total,
.cost-compare-current,
.cost-compare-footnote,
.cost-budget-total {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(236, 253, 245, 0.84);
}

.cost-breakdown-total span {
  color: var(--ink-500);
  font-size: 12px;
}

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

.cost-compare-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.cost-compare-card.is-selected {
  border-color: rgba(5, 150, 105, 0.18);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 30px rgba(5, 150, 105, 0.1);
}

.cost-compare-card-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background: rgba(5, 150, 105, 0.08);
  color: #065f46;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cost-compare-metrics {
  display: grid;
  gap: 8px;
}

.cost-compare-metrics span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1.5;
}

.cost-budget-sheet {
  display: grid;
  gap: 18px;
}

.cost-budget-group {
  display: grid;
  gap: 10px;
}

.cost-budget-group h4 {
  margin: 0;
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cost-budget-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(19, 26, 42, 0.08);
}

.cost-budget-row span {
  display: grid;
  gap: 4px;
}

.cost-budget-row small {
  font-size: 12px;
}

.cost-budget-row.total {
  padding-top: 16px;
}

.cost-mobile-bar {
  display: none;
}

.cost-mobile-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cost-mobile-stats span {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 1199px) {
  .cost-sqft-hero-grid,
  .cost-finish-grid,
  .cost-state-grid,
  .cost-phase-grid,
  .cost-compare-grid {
    grid-template-columns: 1fr;
  }

  .cost-room-card-head,
  .cost-breakdown-head,
  .cost-compare-card-head,
  .cost-budget-head {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .cost-sqft-wizard,
  .cost-sqft-form-section,
  .cost-finish-table-card,
  .cost-summary-card,
  .cost-breakdown-card,
  .cost-diy-card,
  .cost-budget-card,
  .cost-print-sheet {
    padding: 20px;
  }

  .cost-drywall-type-grid,
  .cost-install-grid,
  .cost-diy-task-grid,
  .cost-room-card .form-grid,
  .cost-room-card-meta,
  .cost-budget-row,
  .cost-compare-grid {
    grid-template-columns: 1fr;
  }

  .cost-room-panel-head,
  .cost-room-card-head,
  .cost-breakdown-head,
  .cost-compare-card-head,
  .cost-budget-head {
    align-items: stretch;
  }

  .cost-room-remove,
  .cost-compare-switch {
    width: 100%;
  }

  .cost-mobile-bar.is-visible {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #065f46, #064e3b);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.18);
  }

  .cost-mobile-bar .mobile-summary-button {
    flex: 0 0 auto;
  }

  .cost-mobile-stats {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cost-mobile-stats::-webkit-scrollbar {
    display: none;
  }
}

@media print {
  body[data-tool-page="drywall-cost-per-sqft"] .topbar,
  body[data-tool-page="drywall-cost-per-sqft"] .breadcrumb,
  body[data-tool-page="drywall-cost-per-sqft"] .cost-sqft-hero,
  body[data-tool-page="drywall-cost-per-sqft"] .cost-sqft-tool-grid,
  body[data-tool-page="drywall-cost-per-sqft"] .faq-section,
  body[data-tool-page="drywall-cost-per-sqft"] .related-grid,
  body[data-tool-page="drywall-cost-per-sqft"] .cost-mobile-bar,
  body[data-tool-page="drywall-cost-per-sqft"] .site-footer {
    display: none !important;
  }

  body[data-tool-page="drywall-cost-per-sqft"] .cost-sqft-calculator-page {
    width: auto;
    margin: 0;
    padding: 0;
  }

  body[data-tool-page="drywall-cost-per-sqft"] .cost-print-sheet {
    display: grid;
    gap: 18px;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
    color: #000;
  }

  body[data-tool-page="drywall-cost-per-sqft"] .cost-print-sheet *,
  body[data-tool-page="drywall-cost-per-sqft"] .cost-print-sheet .print-brand {
    color: #000 !important;
  }
}

.stud-calculator-hero {
  position: relative;
  overflow: hidden;
}

.stud-calculator-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #92400e, #d97706);
}

.stud-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 24px;
  align-items: start;
}

.stud-trust-badges span {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}

.stud-hero-support {
  border-color: rgba(146, 64, 14, 0.14);
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.96));
}

.stud-tool-grid {
  align-items: start;
}

.stud-tool-grid > div {
  display: grid;
  gap: 24px;
}

.stud-wall-manager,
.stud-wizard,
.stud-breakdown-card {
  display: grid;
  gap: 24px;
}

.stud-wall-manager-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.stud-calculator-page .action-button-primary,
.stud-calculator-page .cta-button {
  background: linear-gradient(180deg, #d97706, #92400e);
  box-shadow: 0 14px 34px rgba(146, 64, 14, 0.22);
}

.stud-calculator-page input[type="number"]:focus,
.stud-calculator-page input[type="text"]:focus,
.stud-calculator-page select:focus,
.stud-calculator-page input[type="range"]:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14);
}

.stud-calculator-page input:focus-visible,
.stud-calculator-page select:focus-visible,
.stud-calculator-page button:focus-visible {
  outline-color: rgba(217, 119, 6, 0.24);
}

.stud-calculator-page .choice-card.is-selected {
  border-color: #d97706;
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(253, 230, 138, 0.78));
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.12);
}

.stud-calculator-page .choice-card.is-selected strong,
.stud-calculator-page .choice-card.is-selected em,
.stud-calculator-page .choice-card.is-selected span,
.stud-calculator-page .choice-card-pill.is-selected span {
  color: #92400e;
}

.stud-form-section {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(146, 64, 14, 0.12);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.07), transparent 36%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(255, 255, 255, 0.96));
}

.stud-section-head {
  display: grid;
  gap: 8px;
}

.stud-section-head h3,
.stud-layout-card h3,
.stud-summary-card h3,
.stud-compare-card h3,
.stud-materials-card h3,
.stud-breakdown-card h3 {
  margin: 0;
}

.stud-length-grid,
.stud-corner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.stud-spacing-grid {
  align-items: stretch;
}

.stud-spacing-card,
.stud-size-card,
.stud-wall-type-card,
.stud-corner-card,
.stud-height-card,
.stud-opening-type-card {
  align-content: start;
}

.stud-load-note,
.stud-spacing-note,
.stud-length-note,
.stud-corner-note,
.stud-fastener-note,
.stud-wall-rollup {
  background: color-mix(in srgb, #fffbeb 72%, white);
}

.stud-wall-list,
.stud-opening-list {
  display: grid;
  gap: 14px;
}

.stud-wall-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
}

.stud-wall-card.is-active {
  border-color: rgba(217, 119, 6, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.94), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 30px rgba(146, 64, 14, 0.1);
}

.stud-wall-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.stud-wall-card-title {
  display: grid;
  gap: 4px;
}

.stud-wall-card-title strong {
  color: var(--ink-950);
  font-size: 18px;
  font-weight: 700;
}

.stud-wall-card-title span,
.stud-wall-card-meta,
.stud-opening-card-head span,
.stud-opening-breakdown p,
.stud-compare-option p,
.stud-material-item span,
.stud-material-item small,
.stud-material-total span,
.stud-opening-empty p {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.65;
}

.stud-wall-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.stud-wall-card-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: var(--radius-full);
  background: rgba(255, 251, 235, 0.82);
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
}

.stud-wall-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stud-wall-card-button,
.stud-opening-remove,
.stud-compare-switch {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(19, 26, 42, 0.12);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-950);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.stud-opening-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stud-opening-empty {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed rgba(146, 64, 14, 0.18);
  border-radius: 18px;
  background: rgba(255, 251, 235, 0.56);
}

.stud-opening-empty strong,
.stud-opening-card strong,
.stud-breakdown-head strong,
.stud-compare-option-head strong,
.stud-material-group h4,
.stud-material-item strong,
.stud-material-total strong {
  color: var(--ink-950);
}

.stud-opening-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.stud-opening-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.stud-opening-card-head > div {
  display: grid;
  gap: 4px;
}

.stud-opening-breakdown {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 16px;
  background: rgba(255, 251, 235, 0.78);
}

.stud-opening-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.stud-opening-breakdown-grid span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1.5;
}

.stud-opening-breakdown-grid strong {
  font-size: 13px;
}

.stud-opening-card .is-muted {
  opacity: 0.72;
}

.stud-opening-card input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.stud-sidebar {
  display: grid;
  gap: 24px;
}

.stud-layout-card,
.stud-compare-card,
.stud-materials-card {
  display: grid;
  gap: 16px;
}

.stud-layout-project,
.stud-summary-project {
  display: grid;
  gap: 4px;
  margin: 0;
}

.stud-layout-project strong,
.stud-layout-project span {
  color: var(--ink-950);
}

.stud-layout-project strong {
  font-size: 18px;
  font-weight: 700;
}

.stud-layout-project span {
  font-size: 13px;
  color: var(--ink-500);
}

.stud-layout-frame {
  padding: 16px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
}

.stud-layout-canvas {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.stud-layout-canvas svg {
  display: block;
  width: max-content;
  height: auto;
}

.stud-layout-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.stud-layout-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-600);
  font-size: 12px;
}

.legend-swatch {
  display: inline-flex;
  width: 20px;
  height: 10px;
  border-radius: 999px;
}

.legend-swatch.regular {
  background: #7c8a98;
}

.legend-swatch.king {
  background: #1f2937;
}

.legend-swatch.header {
  background: #d97706;
}

.legend-swatch.cripple {
  background: #cbd5e1;
}

.legend-swatch.opening {
  background: linear-gradient(90deg, #dbeafe, #d1fae5);
}

.legend-swatch.corner {
  background: #7c3aed;
}

.stud-summary-card::before {
  background: linear-gradient(90deg, #92400e, #d97706);
}

.stud-summary-project {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.stud-summary-project strong,
.stud-summary-project span {
  color: #fff;
}

.stud-summary-project strong {
  font-size: 18px;
  font-weight: 700;
}

.stud-summary-project span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.stud-breakdown-list {
  display: grid;
  gap: 14px;
}

.stud-breakdown-row {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.stud-breakdown-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.stud-breakdown-head span {
  color: var(--ink-500);
  font-size: 13px;
}

.stud-breakdown-row p,
.stud-compare-guidance p {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.7;
}

.stud-breakdown-meter {
  position: relative;
  height: 14px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: rgba(19, 26, 42, 0.08);
}

.stud-breakdown-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.stud-breakdown-fill.regular {
  background: linear-gradient(90deg, #92400e, #d97706);
}

.stud-breakdown-fill.door {
  background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}

.stud-breakdown-fill.window {
  background: linear-gradient(90deg, #065f46, #10b981);
}

.stud-breakdown-fill.corner {
  background: linear-gradient(90deg, #6d28d9, #8b5cf6);
}

.stud-breakdown-total {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 251, 235, 0.84);
}

.stud-breakdown-total span {
  color: var(--ink-500);
  font-size: 12px;
}

.stud-compare-grid {
  display: grid;
  gap: 14px;
}

.stud-compare-option {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.stud-compare-option.is-selected {
  border-color: rgba(217, 119, 6, 0.18);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.98));
}

.stud-compare-option-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.stud-compare-option-head span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background: rgba(217, 119, 6, 0.08);
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stud-compare-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.stud-compare-stats span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-600);
  font-size: 12px;
}

.stud-compare-guidance {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(146, 64, 14, 0.12);
  border-radius: 18px;
  background: rgba(255, 251, 235, 0.8);
}

.stud-material-group {
  display: grid;
  gap: 10px;
}

.stud-material-group h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stud-material-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(19, 26, 42, 0.08);
}

.stud-material-item > div {
  display: grid;
  gap: 4px;
}

.stud-material-item small {
  grid-column: 1 / -1;
}

.stud-material-total {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(19, 26, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 251, 235, 0.82);
}

.stud-mobile-bar {
  display: none;
}

.stud-mobile-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stud-mobile-stats span {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 1199px) {
  .stud-hero-grid,
  .stud-length-grid,
  .stud-corner-grid {
    grid-template-columns: 1fr;
  }

  .stud-wall-card-head,
  .stud-opening-card-head {
    flex-direction: column;
  }

  .stud-wall-card-stats {
    justify-content: start;
  }
}

@media (max-width: 767px) {
  .stud-wall-manager,
  .stud-form-section,
  .stud-breakdown-card,
  .stud-layout-card,
  .stud-summary-card,
  .stud-compare-card,
  .stud-materials-card,
  .stud-print-sheet {
    padding: 20px;
  }

  .stud-wall-manager-head,
  .stud-breakdown-head,
  .stud-compare-option-head {
    flex-direction: column;
    align-items: stretch;
  }

  .stud-opening-breakdown-grid,
  .stud-compare-stats,
  .stud-material-item,
  .stud-length-grid,
  .stud-corner-grid {
    grid-template-columns: 1fr;
  }

  .stud-wall-card-actions,
  .stud-opening-actions {
    width: 100%;
  }

  .stud-wall-card-button,
  .stud-opening-remove,
  .stud-compare-switch {
    width: 100%;
  }

  .stud-mobile-bar.is-visible {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #451a03, #78350f);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.18);
  }

  .stud-mobile-bar .mobile-summary-button {
    flex: 0 0 auto;
  }

  .stud-mobile-stats {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .stud-mobile-stats::-webkit-scrollbar {
    display: none;
  }
}

@media print {
  body[data-tool-page="stud-spacing-calculator"] .topbar,
  body[data-tool-page="stud-spacing-calculator"] .breadcrumb,
  body[data-tool-page="stud-spacing-calculator"] .stud-calculator-hero,
  body[data-tool-page="stud-spacing-calculator"] .stud-tool-grid,
  body[data-tool-page="stud-spacing-calculator"] .stud-mobile-bar,
  body[data-tool-page="stud-spacing-calculator"] .site-footer {
    display: none !important;
  }

  body[data-tool-page="stud-spacing-calculator"] .stud-calculator-page {
    width: auto;
    margin: 0;
    padding: 0;
  }

  body[data-tool-page="stud-spacing-calculator"] .stud-print-sheet {
    display: grid;
    gap: 18px;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
    color: #000;
  }

  body[data-tool-page="stud-spacing-calculator"] .stud-print-sheet *,
  body[data-tool-page="stud-spacing-calculator"] .stud-print-sheet .print-brand {
    color: #000 !important;
  }
}
