:root {
  color-scheme: light;
  --bg: #eef4f1;
  --body-bg: #eef4f1;
  --panel: rgba(255,255,255,.94);
  --panel-solid: #ffffff;
  --ink: #0d2528;
  --muted: #5f7375;
  --line: #ccddd7;
  --brand-green: #42695B;
  --brand-deep: #224242;
  --brand: #42695B;
  --brand-dark: #224242;
  --brand-2: #6f9388;
  --accent: #b8d53d;
  --success: #14b877;
  --warning: #f59e0b;
  --danger: #d92d20;
  --label: #18383c;
  --field-bg: rgba(248,250,252,.94);
  --button-bg: rgba(255,255,255,.90);
  --list-bg: rgba(248,250,252,.88);
  --hero-text: rgba(255,255,255,.90);
  --hero-chip-bg: rgba(255,255,255,.10);
  --hero-chip-border: rgba(255,255,255,.22);
  --hero-chip-text: rgba(255,255,255,.90);
  --card-border: rgba(207,224,223,.86);
  --soft-card: rgba(255,255,255,.92);
  --locked-bg: #edf1f5;
  --success-soft: #dff4ef;
  --success-ink: #0d6b4f;
  --success-border: #b9e5d8;
  --current-soft: #eaf3c8;
  --current-ink: #50650e;
  --current-border: #d8e99b;
  --internal-badge-bg: #d7eeee;
  --internal-badge-ink: #42695B;
  --external-badge-bg: #e9f6d2;
  --external-badge-ink: #4f650d;
  --sidebar-bg: rgba(255,255,255,.94);
  --sidebar-border: rgba(204,221,215,.82);
  --sidebar-nav-bg: rgba(66,105,91,.07);
  --sidebar-nav-text: #224242;
  --sidebar-nav-active-bg: #42695B;
  --sidebar-nav-active-text: #ffffff;
  --shadow: 0 24px 70px rgba(34, 66, 66, 0.14);
  --soft-shadow: 0 14px 36px rgba(34, 66, 66, 0.10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071c20;
  --body-bg: #071c20;
  --panel: rgba(11,35,40,.94);
  --panel-solid: #0b2328;
  --ink: #eef8f6;
  --muted: #a8c2c2;
  --line: #284a50;
  --brand-green: #42695B;
  --brand-deep: #224242;
  --brand: #9fcbbf;
  --brand-dark: #42695B;
  --brand-2: #b2d9cf;
  --accent: #d3ed68;
  --success: #54d8a6;
  --warning: #ffc85a;
  --danger: #ff8a80;
  --label: #d9eeee;
  --field-bg: rgba(7,24,28,.96);
  --button-bg: rgba(12,43,49,.96);
  --list-bg: rgba(10,32,37,.92);
  --hero-text: rgba(255,255,255,.92);
  --hero-chip-bg: rgba(255,255,255,.12);
  --hero-chip-border: rgba(255,255,255,.24);
  --hero-chip-text: rgba(255,255,255,.92);
  --card-border: rgba(159,203,191,.34);
  --soft-card: rgba(11,35,40,.94);
  --locked-bg: #102b31;
  --success-soft: #123a33;
  --success-ink: #95f0c8;
  --success-border: #256a5a;
  --current-soft: #3c451d;
  --current-ink: #eff9ac;
  --current-border: #76873a;
  --internal-badge-bg: #123d44;
  --internal-badge-ink: #9ee5e3;
  --external-badge-bg: #344019;
  --external-badge-ink: #e3f59a;
  --sidebar-bg: #224242;
  --sidebar-border: rgba(255,255,255,.08);
  --sidebar-nav-bg: rgba(255,255,255,.06);
  --sidebar-nav-text: rgba(255,255,255,.86);
  --sidebar-nav-active-bg: rgba(255,255,255,.94);
  --sidebar-nav-active-text: #224242;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--body-bg); }
body.app-page {
  background:
    linear-gradient(180deg, var(--body-bg), var(--body-bg)),
    radial-gradient(circle at 76% 8%, rgba(66,105,91,.20), transparent 34%),
    var(--body-bg);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(66,105,91,.06), transparent 36%),
    radial-gradient(circle at 80% 8%, rgba(66,105,91,.18), transparent 32%);
  z-index: -2;
}
button, input { font: inherit; }

.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  border-color: var(--card-border);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}
.inline-theme-toggle { position: static; flex: 0 0 auto; }

.landing-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(34,66,66,.95) 0 45%, rgba(34,66,66,.48) 45% 100%),
    linear-gradient(180deg, rgba(34,66,66,.08), rgba(34,66,66,.35)),
    url('/assets/order-journey-hero.png') center / cover no-repeat;
}

.landing-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,.06) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.06) 87.5%, rgba(255,255,255,.06)),
    linear-gradient(150deg, rgba(255,255,255,.06) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.06) 87.5%, rgba(255,255,255,.06));
  background-size: 44px 76px;
  opacity: .28;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 430px;
  gap: 40px;
  align-items: center;
  padding: 56px;
}

.brand-panel { color: white; max-width: 720px; position: relative; z-index: 1; }
.logo-switch { display: block; line-height: 0; }
.logo-switch img { width: 100%; height: auto; }
.logo-switch .logo-colour { display: block; }
.logo-switch .logo-white { display: none; }
.hero-logo { width: min(370px, 78vw); margin-bottom: 30px; filter: drop-shadow(0 18px 22px rgba(0,0,0,.24)); }
.brand-panel .logo-colour { display: none; }
.brand-panel .logo-white { display: block; }
[data-theme="dark"] .logo-switch .logo-colour { display: none; }
[data-theme="dark"] .logo-switch .logo-white { display: block; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--brand-2); font-weight: 900; }
h1 { margin: 10px 0 0; font-size: clamp(34px, 5vw, 62px); line-height: .96; letter-spacing: -.04em; }
h2 { margin: 0 0 8px; font-size: 28px; }
h3 { margin: 0 0 8px; }
.lead { font-size: 20px; line-height: 1.55; color: rgba(255,255,255,.9); max-width: 650px; }
.muted { color: var(--muted); line-height: 1.45; }
.hero-metrics { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 24px; }
.hero-metrics span { border: 1px solid var(--hero-chip-border); border-radius: 999px; padding: 9px 12px; background: var(--hero-chip-bg); color: var(--hero-chip-text); font-weight: 800; font-size: 13px; backdrop-filter: blur(10px); }

.status-card, .auth-card, .card, .notice {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.status-card { color: var(--ink); display: flex; gap: 14px; padding: 18px; max-width: 500px; }
.status-card p { margin: 4px 0 0; color: var(--muted); }
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--success); margin-top: 4px; box-shadow: 0 0 0 6px rgba(20,184,119,.14); }

.auth-card { padding: 32px; position: relative; z-index: 1; }
.auth-card::before { content: ''; display: block; height: 5px; width: 84px; border-radius: 999px; margin-bottom: 22px; background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent)); }
.auth-card label { display: block; margin: 18px 0 8px; font-weight: 800; color: var(--label); }
input { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; background: var(--field-bg); color: var(--ink); }
input:focus, select:focus { outline: 3px solid rgba(66,105,91,.22); border-color: var(--brand-2); }
button { border: 1px solid var(--line); background: var(--button-bg); border-radius: 14px; padding: 12px 16px; cursor: pointer; font-weight: 800; color: var(--brand); }
button:hover { transform: translateY(-1px); box-shadow: var(--soft-shadow); }
.small-button { padding: 7px 10px; border-radius: 999px; font-size: 12px; }
button.primary { width: 100%; margin-top: 20px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: white; border-color: var(--brand); }
button:disabled { opacity: .55; cursor: not-allowed; }
.form-message { min-height: 22px; margin: 14px 0 0; color: var(--muted); font-weight: 750; }
.form-message.success { color: var(--success); }
.form-message.error { color: var(--danger); }
.divider { height: 1px; background: var(--line); margin: 28px 0; }

.app-layout { min-height: 100vh; display: grid; grid-template-columns: 300px 1fr; }
.sidebar {
  background: var(--sidebar-bg);
  color: var(--ink);
  padding: 24px;
  border-right: 1px solid var(--sidebar-border);
}
.sidebar-brand { display: block; margin-bottom: 32px; }
.sidebar-logo { width: 100%; max-width: 220px; height: auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.16)); }
.logo-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-2); font-weight: 900; }
.nav-item { display: block; width: 100%; text-align: left; margin: 8px 0; background: var(--sidebar-nav-bg); color: var(--sidebar-nav-text); border-color: var(--sidebar-border); }
.nav-item.active, .nav-item:hover { background: var(--sidebar-nav-active-bg); color: var(--sidebar-nav-active-text); }
.nav-item.internal-only::after { content: " internal"; color: var(--brand-2); font-size: 11px; }
.nav-item.admin-only::after { content: " admin"; color: var(--accent); font-size: 11px; }

.main-panel { padding: 30px; position: relative; overflow: hidden; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.topbar h1 { color: var(--ink); font-size: 34px; }
.user-context { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.badge { border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 850; }
.badge.internal { background: var(--internal-badge-bg); color: var(--internal-badge-ink); }
.badge.external { background: var(--external-badge-bg); color: var(--external-badge-ink); }
.notice { padding: 16px 18px; margin-bottom: 22px; border-left: 5px solid var(--brand-2); }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; position: relative; z-index: 1; }
.client-hero {
  grid-column: span 3;
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .75fr);
  gap: 28px;
  align-items: end;
  padding: 32px;
  border-radius: 28px;
  color: white;
  background:
    linear-gradient(90deg, rgba(5,35,41,.95), rgba(5,35,41,.72) 48%, rgba(5,35,41,.34)),
    url('/assets/order-journey-hero.png') center / cover no-repeat;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.client-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(30deg, rgba(255,255,255,.06) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.06) 87.5%, rgba(255,255,255,.06));
  background-size: 42px 72px;
  opacity: .25;
  pointer-events: none;
}
.client-hero > * { position: relative; z-index: 1; }
.client-hero h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1; letter-spacing: -.04em; margin: 10px 0 14px; }
.client-hero p { max-width: 620px; color: rgba(255,255,255,.86); line-height: 1.55; }
.client-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.client-summary-grid span { padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.10); backdrop-filter: blur(12px); }
.client-summary-grid strong { display: block; font-size: 28px; color: white; }
.client-summary-grid small { color: rgba(255,255,255,.74); font-weight: 750; }
.stage-card, .order-preview-card {
  background: var(--soft-card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
  color: var(--ink);
}
.stage-card-header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: var(--muted); }
.stage-card-header strong { color: var(--brand); }
.progress-track, .journey-strip { display: grid; gap: 10px; }
.progress-track span, .journey-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  background: var(--list-bg);
  color: var(--muted);
  font-weight: 850;
  font-size: 13px;
}
.progress-track .done, .journey-strip .complete { background: var(--success-soft); color: var(--success-ink); border-color: var(--success-border); }
.progress-track .active, .journey-strip .current { background: var(--current-soft); color: var(--current-ink); border-color: var(--current-border); box-shadow: 0 0 0 4px rgba(184,213,61,.16); }
.order-preview-card { grid-column: span 3; display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; align-items: center; box-shadow: var(--soft-shadow); }
.products-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.product-range-nav { position: sticky; top: 24px; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 24px; padding: 16px; background: var(--panel); box-shadow: var(--soft-shadow); }
.product-range-nav-title span { display: block; color: var(--ink); font-weight: 950; }
.product-range-nav-title small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 800; }
.product-range-nav-list { display: grid; gap: 8px; }
.product-range-tab { display: grid; gap: 3px; width: 100%; text-align: left; border-color: var(--line); background: var(--list-bg); color: var(--ink); }
.product-range-tab span { font-weight: 900; }
.product-range-tab small { color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.product-range-tab.active { background: var(--brand); border-color: var(--brand); color: white; box-shadow: var(--soft-shadow); }
.product-range-tab.active small { color: rgba(255,255,255,.78); }
.product-range-tab.coming-soon { opacity: .78; }
.products-range-content { min-width: 0; }
.product-range-panel { display: grid; gap: 20px; box-shadow: var(--soft-shadow); }
.product-range-header { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.range-count { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; background: var(--list-bg); color: var(--brand); font-weight: 900; }
.coming-soon-box { border: 1px dashed var(--line); border-radius: 18px; padding: 18px; background: var(--list-bg); }
.coming-soon-box strong { display: block; color: var(--brand); font-size: 20px; margin-bottom: 4px; }
.lead-time-gantt-panel { display: grid; gap: 14px; }
.lead-time-calculator-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, .9fr); gap: 14px; align-items: stretch; border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: linear-gradient(135deg, var(--panel-solid), var(--list-bg)); box-shadow: var(--soft-shadow); min-width: 0; }
.lead-time-calculator-copy, .lead-time-calculator-form, .lead-time-calculator-result { min-width: 0; }
.lead-time-calculator-copy h4 { margin: 4px 0 6px; color: var(--ink); font-size: 20px; }
.lead-time-calculator-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; align-content: center; }
.lead-time-calculator-form label { color: var(--muted); font-size: 10px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.lead-time-calculator-form input { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--input-bg); color: var(--ink); font: inherit; font-weight: 850; }
.lead-time-calculator-result { display: grid; align-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: var(--brand); color: #fff; }
.lead-time-calculator-result span { font-size: 10px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.76); }
.lead-time-calculator-result strong { font-size: 20px; line-height: 1.15; }
.lead-time-calculator-result small { color: rgba(255,255,255,.82); font-weight: 800; line-height: 1.3; }
.lead-time-calculator-result strong, .lead-time-calculator-result small { overflow-wrap: anywhere; }
.lead-time-summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lead-time-summary-strip div { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: var(--list-bg); min-width: 0; }
.lead-time-summary-strip span { display: block; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.lead-time-summary-strip strong { display: block; margin-top: 4px; color: var(--ink); font-size: 17px; line-height: 1.2; }
.lead-time-qty-section { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; background: var(--panel-solid); }
.lead-time-qty-section h4, .lead-time-gantt-head h4 { margin: 0 0 4px; }
.lead-time-qty-picker { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.lead-time-qty-pill { width: 38px; height: 34px; padding: 0; border-radius: 999px; border-color: var(--line); background: var(--list-bg); color: var(--ink); font-weight: 950; }
.lead-time-qty-pill.active { background: var(--brand); border-color: var(--brand); color: white; box-shadow: var(--soft-shadow); }
.lead-time-gantt-card { border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: var(--panel-solid); display: grid; gap: 12px; min-width: 0; }
.lead-time-gantt-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.lead-time-gantt-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.lead-time-edit-pill { width: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font-weight: 950; box-shadow: var(--soft-shadow); }
.lead-time-edit-modal[hidden] { display: none; }
.lead-time-edit-modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; }
.lead-time-edit-backdrop { position: absolute; inset: 0; background: rgba(15, 24, 21, .46); backdrop-filter: blur(3px); }
.lead-time-edit-window { position: relative; z-index: 1; width: min(980px, calc(100vw - 28px)); max-height: min(820px, calc(100vh - 28px)); overflow: auto; display: grid; gap: 16px; border: 1px solid var(--line); border-radius: 22px; padding: 18px; background: var(--panel-solid); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.lead-time-edit-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.lead-time-edit-header h4, .lead-time-edit-group h5 { margin: 0 0 4px; }
.lead-time-edit-group { display: grid; gap: 10px; }
.lead-time-edit-grid { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(110px, 150px) minmax(110px, 150px); gap: 8px; align-items: center; }
.lead-time-edit-grid-head { color: var(--muted); font-size: 10px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.lead-time-edit-label { color: var(--ink); font-weight: 850; font-size: 13px; line-height: 1.25; }
.lead-time-edit-grid input { width: 100%; min-height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--input-bg); color: var(--ink); padding: 8px 10px; font-weight: 850; }
.lead-time-edit-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.lead-time-edit-actions .form-message { margin-right: auto; }
.lead-time-gantt-scroll { overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.lead-time-gantt { min-width: 0; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 8px 14px; align-items: center; }
.lead-time-axis { grid-column: 2; position: relative; height: 30px; border-bottom: 1px solid var(--line); }
.lead-time-axis span { position: absolute; top: 0; transform: translateX(-50%); color: var(--muted); font-size: 11px; font-weight: 900; white-space: nowrap; }
.lead-time-gantt-row { display: contents; }
.lead-time-stage-label { min-width: 0; padding: 6px 0; }
.lead-time-stage-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lead-time-stage-label strong { display: block; color: var(--ink); font-size: 13px; line-height: 1.2; }
.lead-time-stage-day { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 4px 9px; border-radius: 999px; background: var(--brand); color: white; font-size: 11px; line-height: 1; font-weight: 950; box-shadow: 0 3px 10px rgba(66,105,91,.18); }
.lead-time-gantt-row.sequential .lead-time-stage-day { background: var(--current-border); color: var(--deep); }
.lead-time-gantt-row.milestone .lead-time-stage-day { background: var(--ink); color: var(--panel-solid); }
.lead-time-stage-label small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.25; }
.lead-time-bar-track { position: relative; height: 34px; border-radius: 999px; background: linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(127,139,132,.16) calc(100% - 1px)); }
.lead-time-gridline { position: absolute; inset: 0; border-left: 1px solid rgba(127,139,132,.18); border-right: 1px solid rgba(127,139,132,.18); pointer-events: none; }
.lead-time-gantt-bar { position: absolute; top: 8px; height: 18px; border-radius: 999px; background: var(--brand); box-shadow: 0 4px 14px rgba(66,105,91,.18); }
.lead-time-gantt-bar.sequential { background: var(--current-border); }
.lead-time-gantt-bar.milestone { width: 16px !important; min-width: 16px; border-radius: 999px; background: var(--ink); }
.lead-time-gantt-bar.milestone.at-end { transform: translateX(-100%); }
.lead-time-gantt-bar.milestone.at-start { transform: none; }
.lead-time-note { font-size: 13px; }
.lead-time-graph-card { border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: var(--panel-solid); display: grid; gap: 12px; min-width: 0; }
.lead-time-graph-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--list-bg), var(--panel-solid)); }
.lead-time-graph { display: block; width: 100%; min-width: 0; height: auto; }
.lead-time-graph-grid { stroke: rgba(127,139,132,.22); stroke-width: 1; }
.lead-time-graph-axis { stroke: var(--muted); stroke-width: 1.4; }
.lead-time-graph-bar { fill: var(--brand); opacity: .82; }
.lead-time-graph-bar.active { fill: var(--current-border); opacity: 1; filter: drop-shadow(0 5px 9px rgba(66,105,91,.22)); }
.lead-time-graph-y-label, .lead-time-graph-x-label, .lead-time-graph-axis-label { fill: var(--muted); font-size: 12px; font-weight: 900; }
.lead-time-graph-value { fill: var(--ink); font-size: 13px; font-weight: 950; }
.lead-time-graph-workdays { fill: rgba(255,255,255,.9); font-size: 11px; font-weight: 950; }
.lead-time-graph-workdays.active { fill: var(--deep); }
.supplier-kits-panel { display: grid; gap: 14px; }
.supplier-kits-summary { display: grid; grid-template-columns: .8fr 1.4fr 1fr; gap: 10px; }
.supplier-kits-summary div { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: var(--list-bg); min-width: 0; }
.supplier-kits-summary span { display: block; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.supplier-kits-summary strong { display: block; margin-top: 4px; color: var(--ink); font-size: 15px; line-height: 1.25; }
.kit-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kit-card { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: var(--panel-solid); display: grid; gap: 10px; min-width: 0; }
.kit-card-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kit-price-field { justify-items: end; }
.kit-price-field input { width: 130px; text-align: right; }
.tower-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; border-radius: 999px; padding: 6px 10px; background: var(--brand); color: #fff; font-weight: 950; font-size: 13px; }
.kit-card h4 { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.25; }
.kit-meta-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kit-meta-grid div { min-width: 0; }
.kit-meta-grid div:nth-child(2) { grid-column: 1 / -1; }
.kit-meta-grid dt { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.kit-meta-grid dd { margin: 2px 0 0; color: var(--ink); font-size: 12px; font-weight: 850; overflow-wrap: anywhere; }
.kit-components-details { border-top: 1px solid var(--line); padding-top: 8px; }
.kit-components-details summary { cursor: pointer; color: var(--brand); font-weight: 900; font-size: 13px; list-style-position: inside; }
.kit-components-wrap { margin-top: 8px; max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.kit-components-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.kit-components-table th, .kit-components-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink); }
.kit-components-table th { position: sticky; top: 0; background: var(--list-bg); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.kit-components-table td:first-child { overflow-wrap: anywhere; }
.kit-components-table td:last-child, .kit-components-table th:last-child { width: 42px; text-align: right; font-weight: 900; }
.kit-components-table tbody tr:last-child td { border-bottom: 0; }
.supplier-materials-panel { display: grid; gap: 14px; }
.supplier-filter-bar { border: 1px solid var(--line); border-radius: 18px; padding: 12px; background: var(--list-bg); display: grid; gap: 10px; }
.supplier-filter-title { color: var(--muted); font-size: 10px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.supplier-filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.supplier-filter-pill { width: auto; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 12px; border-color: var(--line); background: var(--panel-solid); color: var(--ink); white-space: nowrap; }
.supplier-filter-pill span { font-weight: 950; }
.supplier-filter-pill small { color: var(--muted); font-size: 11px; font-weight: 850; }
.supplier-filter-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--soft-shadow); }
.supplier-filter-pill.active small { color: rgba(255,255,255,.78); }
.supplier-record-card { border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: var(--panel-solid); display: grid; gap: 14px; min-width: 0; }
.supplier-record-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.supplier-record-header h4 { margin: 3px 0 6px; color: var(--ink); font-size: 20px; }
.supplier-record-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.supplier-record-summary div { border: 1px solid var(--line); border-radius: 16px; padding: 11px 13px; background: var(--list-bg); min-width: 0; }
.supplier-record-summary span { display: block; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.supplier-record-summary strong { display: block; margin-top: 4px; color: var(--ink); font-size: 14px; line-height: 1.25; }
.supplier-parts-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; -webkit-overflow-scrolling: touch; }
.supplier-parts-table { width: 100%; border-collapse: collapse; min-width: 0; font-size: 11.5px; table-layout: fixed; }
.supplier-parts-table th, .supplier-parts-table td { padding: 8px 7px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; color: var(--ink); }
.supplier-parts-table th { position: sticky; top: 0; background: var(--list-bg); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; z-index: 1; }
.supplier-parts-table th:nth-child(1), .supplier-parts-table td:nth-child(1) { width: 104px; }
.supplier-parts-table th:nth-child(2), .supplier-parts-table td:nth-child(2) { width: auto; }
.supplier-parts-table th:nth-child(3), .supplier-parts-table td:nth-child(3) { width: 82px; }
.supplier-parts-table th:nth-child(4), .supplier-parts-table td:nth-child(4) { width: 82px; }
.supplier-parts-table th:nth-child(5), .supplier-parts-table td:nth-child(5) { width: 78px; }
.supplier-parts-table th:nth-child(6), .supplier-parts-table td:nth-child(6) { width: 100px; }
.supplier-parts-table td:first-child { white-space: nowrap; font-weight: 850; }
.supplier-parts-table td:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.supplier-parts-table tbody tr:last-child td { border-bottom: 0; }
.supplier-tower-chip { min-width: auto; padding: 4px 8px; font-size: 11px; }
.supplier-tower-chip-list { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
.supplier-record-towers { justify-content: flex-end; max-width: 360px; }
.supplier-price-field { display: grid; gap: 3px; min-width: 0; }
.supplier-price-field span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.supplier-price-field input { width: 88px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 7px; background: var(--panel-solid); color: var(--ink); font: inherit; font-weight: 850; }
.bom-shell { grid-template-columns: minmax(0, 1fr); }
.bom-content { width: 100%; min-width: 0; }
.bom-panel { min-width: 0; }
.bom-product-bar { background: var(--panel-solid); }
.bom-record-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bom-parts-wrap { overflow-x: auto; }
.bom-parts-table { min-width: 1120px; table-layout: fixed; }
.bom-parts-table th:nth-child(1), .bom-parts-table td:nth-child(1) { width: 110px; }
.bom-parts-table th:nth-child(2), .bom-parts-table td:nth-child(2) { width: 170px; }
.bom-parts-table th:nth-child(3), .bom-parts-table td:nth-child(3) { width: 150px; }
.bom-parts-table th:nth-child(4), .bom-parts-table td:nth-child(4) { width: auto; }
.bom-parts-table th:nth-child(5), .bom-parts-table td:nth-child(5) { width: 92px; text-align: right; }
.bom-parts-table th:nth-child(6), .bom-parts-table td:nth-child(6) { width: 92px; text-align: right; }
.bom-parts-table th:nth-child(7), .bom-parts-table td:nth-child(7) { width: 112px; text-align: right; font-weight: 950; }
.bom-parts-table td { white-space: normal; overflow-wrap: anywhere; }
.bom-parts-table td:nth-child(1), .bom-parts-table td:nth-child(3) { overflow-wrap: normal; word-break: normal; }
.bom-section-chip { white-space: nowrap; }
.tower-product-intro { display: grid; gap: 10px; }
.product-model-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.product-model-card { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: var(--list-bg); display: grid; gap: 12px; }
.product-model-header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 0; }
.tower-diagram-panel { min-height: 280px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--panel-solid), var(--list-bg)); display: flex; align-items: flex-end; justify-content: center; padding: 18px 12px; overflow: hidden; }
.tower-diagram { display: block; height: auto; object-fit: contain; object-position: center bottom; }
.tower-diagram.single { width: 72px; }
.tower-diagram.double { width: 144px; }
.tower-diagram-dark { display: none; }
[data-theme="dark"] .tower-diagram-panel { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }
[data-theme="dark"] .tower-diagram-light { display: none; }
[data-theme="dark"] .tower-diagram-dark { display: block; }
.pcs-model-grid { grid-template-columns: minmax(260px, 420px); }
.pcs-cabinet-diagram-panel { min-height: 260px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--panel-solid), var(--list-bg)); display: flex; align-items: flex-end; justify-content: center; padding: 22px 12px; overflow: hidden; }
.pcs-cabinet-diagram { display: block; height: 182px; width: auto; object-fit: contain; object-position: center bottom; }
.pcs-cabinet-diagram-dark { display: none; }
[data-theme="dark"] .pcs-cabinet-diagram-panel { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }
[data-theme="dark"] .pcs-cabinet-diagram-light { display: none; }
[data-theme="dark"] .pcs-cabinet-diagram-dark { display: block; }
.product-model-header h4 { margin: 0; color: var(--ink); font-size: 22px; }
.product-model-header span { color: var(--brand); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.product-model-card dl { margin: 0; display: grid; gap: 8px; }
.product-model-card dl div { display: grid; grid-template-columns: minmax(92px, .9fr) minmax(0, 1fr); gap: 8px; }
.product-model-card dt { color: var(--muted); font-size: 12px; font-weight: 850; }
.product-model-card dd { margin: 0; color: var(--ink); font-weight: 850; font-size: 13px; }
.product-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--panel-solid); }
.product-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.product-table th, .product-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink); }
.product-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; background: var(--list-bg); }
.product-table tbody tr:last-child td { border-bottom: 0; }
.product-table strong { color: var(--brand); }
.scope-bullet-list { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.scope-bullet-list li { padding-left: 2px; line-height: 1.35; }
.scope-bullet-list li::marker { color: var(--brand); }
.pcs-scope-table { min-width: 0; table-layout: fixed; }
.pcs-scope-table th, .pcs-scope-table td { vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.pcs-scope-table th:nth-child(1), .pcs-scope-table td:nth-child(1) { width: 16%; }
.pcs-scope-table th:nth-child(2), .pcs-scope-table td:nth-child(2) { width: 14%; }
.pcs-scope-table th:nth-child(3), .pcs-scope-table td:nth-child(3) { width: 16%; }
.pcs-scope-table th:nth-child(4), .pcs-scope-table td:nth-child(4) { width: 9%; }
.pcs-scope-table th:nth-child(5), .pcs-scope-table td:nth-child(5) { width: 30%; }
.pcs-scope-table th:nth-child(6), .pcs-scope-table td:nth-child(6) { width: 15%; }
.journey-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { padding: 20px; min-height: 150px; }
.card h3 { margin-top: 0; }
.card .big { font-size: 30px; font-weight: 950; margin: 12px 0; color: var(--brand); letter-spacing: -.02em; }
.card.warning { border-color: #fde68a; }
.card.private { border-color: #fecaca; }
.card:hover { transform: translateY(-2px); box-shadow: 0 26px 70px rgba(8,47,54,.16); }
.form-card { min-height: 0; }
.wide-card { grid-column: span 3; }
.stack-form label { display: block; margin: 12px 0 6px; font-weight: 750; }
.inline-form { display: grid; grid-template-columns: 1fr 180px auto; gap: 10px; align-items: center; margin: 12px 0 16px; }
select { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; background: var(--field-bg); font: inherit; color: var(--ink); }
.simple-list { display: grid; gap: 8px; margin-top: 12px; }
.list-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--list-bg); }
.list-row span { color: var(--muted); }
.company-row, .request-row { display: block; }
.company-row summary, .request-row summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.company-row summary::-webkit-details-marker, .request-row summary::-webkit-details-marker { display: none; }
.company-row strong, .request-row strong { display: block; color: var(--ink); }
.company-row small, .request-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
.edit-label { color: var(--brand); font-weight: 850; font-size: 13px; }
.company-edit-form, .access-review-form { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.company-edit-form button { width: 100%; margin-top: 12px; }
.review-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-top: 12px; }
.review-actions .primary { margin-top: 0; }
.type-locked select:disabled { opacity: .65; color: var(--muted); cursor: not-allowed; background: var(--locked-bg); }
.locked-note { margin: 6px 0 0; color: var(--muted); font-size: 13px; font-weight: 750; }

@media (max-width: 900px) {
  .auth-shell, .app-layout { grid-template-columns: 1fr; }
  .auth-shell { padding: 24px; }
  .app-layout { display: block; }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 12px 14px 10px;
    box-shadow: 0 10px 30px rgba(11, 31, 58, .18);
  }

  .sidebar-brand {
    margin-bottom: 10px;
    gap: 10px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 14px;
    flex: 0 0 auto;
  }

  .sidebar-brand strong { font-size: 15px; }
  .sidebar-brand span { font-size: 11px; }

  .sidebar nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 2px 6px;
  }

  .sidebar nav::-webkit-scrollbar { display: none; }

  .nav-item {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 9px 12px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 13px;
    background: var(--sidebar-nav-bg);
  }

  .nav-item.active,
  .nav-item:hover {
    background: var(--sidebar-nav-active-bg);
    color: var(--sidebar-nav-active-text);
  }

  .nav-item.internal-only::after,
  .nav-item.admin-only::after {
    content: '';
  }

  .main-panel { padding: 18px 14px 28px; }
  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 14px;
  }
  .topbar h1 { font-size: 32px; }
  .user-context { flex-wrap: wrap; gap: 8px; }
  .notice { margin-bottom: 14px; }
  .content-grid { grid-template-columns: 1fr; gap: 12px; }
  .products-shell { grid-column: auto; grid-template-columns: 1fr; gap: 12px; }
  .product-range-nav { position: static; margin: -2px -14px 2px; border-radius: 0; border-left: 0; border-right: 0; padding: 10px 14px; box-shadow: none; background: var(--panel-solid); }
  .product-range-nav-title { display: none; }
  .product-range-nav-list { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 2px 0 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .product-range-nav-list::-webkit-scrollbar { display: none; }
  .product-range-tab { width: auto; flex: 0 0 auto; border-radius: 999px; padding: 9px 12px; white-space: nowrap; }
  .product-range-tab small { display: none; }
  .client-hero, .order-preview-card, .product-range-panel { grid-column: auto; grid-template-columns: 1fr; padding: 20px; }
  .product-range-header { display: grid; }
  .product-model-grid { grid-template-columns: 1fr; }
  .lead-time-calculator-card { grid-template-columns: 1fr; padding: 12px; border-radius: 18px; }
  .lead-time-calculator-form { grid-template-columns: 1fr; }
  .lead-time-calculator-result strong { font-size: 18px; }
  .lead-time-summary-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lead-time-qty-section { display: grid; gap: 10px; padding: 12px; }
  .lead-time-qty-picker { justify-content: flex-start; }
  .lead-time-gantt-card { padding: 12px; margin: 0; }
  .lead-time-gantt-head { display: grid; }
  .lead-time-gantt-actions { justify-content: flex-start; }
  .lead-time-edit-window { width: min(720px, calc(100vw - 18px)); max-height: calc(100vh - 18px); padding: 14px; border-radius: 18px; }
  .lead-time-edit-header { display: grid; }
  .lead-time-edit-grid { grid-template-columns: 1fr 1fr; }
  .lead-time-edit-grid-head:first-child { display: none; }
  .lead-time-edit-label { grid-column: 1 / -1; margin-top: 6px; }
  .lead-time-edit-actions { justify-content: stretch; }
  .lead-time-edit-actions .form-message { width: 100%; }
  .lead-time-gantt-scroll { overflow-x: hidden; }
  .lead-time-gantt { min-width: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
  .lead-time-axis { display: none; }
  .lead-time-gantt-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--list-bg); }
  .lead-time-stage-label { padding: 0; }
  .lead-time-stage-label strong { font-size: 13px; }
  .lead-time-stage-label small { font-size: 11px; }
  .lead-time-bar-track { height: 30px; background: rgba(127,139,132,.08); }
  .lead-time-gantt-bar { top: 7px; height: 16px; }
  .lead-time-graph-card { padding: 12px; }
  .supplier-kits-summary { grid-template-columns: 1fr; gap: 8px; }
  .kit-card-grid { grid-template-columns: 1fr; gap: 10px; }
  .kit-card { padding: 12px; border-radius: 16px; }
  .supplier-record-card { padding: 12px; border-radius: 16px; }
  .supplier-filter-bar { padding: 10px; border-radius: 16px; }
  .supplier-filter-pills { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding-bottom: 3px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .supplier-filter-pills::-webkit-scrollbar { display: none; }
  .supplier-filter-pill { flex: 0 0 auto; padding: 8px 11px; }
  .supplier-filter-pill small { display: none; }
  .supplier-record-header { display: grid; }
  .supplier-record-summary { grid-template-columns: 1fr; }
  .supplier-parts-wrap { overflow: visible; border: 0; border-radius: 0; }
  .supplier-parts-table { display: block; min-width: 0; width: 100%; border-collapse: separate; border-spacing: 0; }
  .supplier-parts-table thead { display: none; }
  .supplier-parts-table tbody { display: grid; gap: 10px; }
  .supplier-parts-table tr { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 11px; background: var(--list-bg); }
  .supplier-parts-table td { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; align-items: start; border: 0; padding: 0; font-size: 12px; }
  .supplier-parts-table td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
  .supplier-parts-table td:nth-child(2) { min-width: 0; }
  .bom-record-summary { grid-template-columns: 1fr; }
  .bom-parts-table th:nth-child(n),
  .bom-parts-table td:nth-child(n) { width: 100%; text-align: left; }
  .bom-parts-table td:nth-child(1),
  .bom-parts-table td:nth-child(3) { overflow-wrap: anywhere; }
  .bom-section-chip { white-space: normal; }
  .supplier-price-field { min-width: 0; }
  .supplier-price-field input { width: 100%; max-width: 150px; }
  .kit-meta-grid { grid-template-columns: 1fr 1fr; }
  .kit-components-wrap { max-height: 220px; }
  .kit-components-table { font-size: 11px; }
  .product-model-card dl div { grid-template-columns: 1fr; gap: 2px; }
  .pcs-scope-table,
  .pcs-scope-table thead,
  .pcs-scope-table tbody,
  .pcs-scope-table tr,
  .pcs-scope-table th,
  .pcs-scope-table td { display: block; width: 100%; }
  .pcs-scope-table thead { display: none; }
  .pcs-scope-table { border-collapse: separate; border-spacing: 0; }
  .pcs-scope-table tbody { display: grid; gap: 12px; padding: 10px; }
  .pcs-scope-table tr { border: 1px solid var(--line); border-radius: 16px; background: var(--list-bg); overflow: hidden; }
  .pcs-scope-table th:nth-child(n),
  .pcs-scope-table td:nth-child(n) { width: 100%; }
  .pcs-scope-table td { border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .pcs-scope-table td:last-child { border-bottom: 0; }
  .pcs-scope-table td::before { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
  .pcs-scope-table td:nth-child(1)::before { content: 'Model'; }
  .pcs-scope-table td:nth-child(2)::before { content: 'Supported inverter'; }
  .pcs-scope-table td:nth-child(3)::before { content: 'Dimensions'; }
  .pcs-scope-table td:nth-child(4)::before { content: 'Weight'; }
  .pcs-scope-table td:nth-child(5)::before { content: 'Included'; }
  .pcs-scope-table td:nth-child(6)::before { content: 'Excluded'; }
  .client-summary-grid, .journey-strip { grid-template-columns: 1fr; }
  .client-hero { min-height: 0; }
  .wide-card { grid-column: auto; }
  .inline-form, .review-actions { grid-template-columns: 1fr; }
  .list-row { display: grid; }
  .card { min-height: 0; padding: 16px; }
}
