:root {
  --ink: #2d3955;
  --ink-2: #4b5870;
  --muted: #748096;
  --line: #dde3e9;
  --line-strong: #bdc7d2;
  --surface: #ffffff;
  --surface-2: #f4f7fa;
  --surface-3: #eaf0f5;
  --navy: #243354;
  --navy-2: #2d3955;
  --accent: #13c5bd;
  --accent-dark: #079c97;
  --accent-soft: #e4f9f8;
  --danger: #b9383f;
  --danger-soft: #fff0f0;
  --success: #14765a;
  --shadow: 0 16px 44px rgba(24, 49, 77, 0.1);
  --radius: 12px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface-2);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--surface-2); color: var(--ink); font-size: 16px; line-height: 1.5; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(19, 197, 189, 0.3); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 22px; color: #f8fbfd; background:
  radial-gradient(circle at 8% 4%, rgba(19, 197, 189, .18), transparent 30%),
  linear-gradient(155deg, #34415f, var(--navy) 62%); overflow: hidden; }
.sidebar::after { content: ""; position: absolute; inset: auto -125px -125px auto; width: 320px; height: 320px; border: 1px solid rgba(19, 197, 189, .16); border-radius: 50%; box-shadow: 0 0 0 45px rgba(19, 197, 189, .035), 0 0 0 90px rgba(255, 255, 255, .025); pointer-events: none; }
.brand { position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; width: fit-content; text-decoration: none; }
.brand-logo-frame { display: block; }
.brand-logo { display: block; width: 220px; max-width: 100%; height: auto; object-fit: contain; }
.brand-product { color: var(--accent-dark); font-size: .67rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.brand--sidebar { width: 100%; gap: 9px; }
.brand--sidebar .brand-logo-frame { width: 100%; padding: 3px 2px 2px; }
.brand--sidebar .brand-logo { width: 100%; filter: brightness(0) invert(1); opacity: .96; }
.brand--sidebar .brand-product { padding-left: 2px; color: #77e1dc; }
.brand--dark { color: var(--ink); }

.step-nav { position: relative; z-index: 1; margin-top: 42px; display: grid; gap: 5px; }
.step-link { width: 100%; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 9px; border: 0; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; padding: 11px 12px; color: #aab7c8; background: transparent; text-align: left; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.step-link span { color: #71849b; font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.step-link:hover { color: #f3fafb; background: rgba(255, 255, 255, .05); }
.step-link.is-active { color: white; background: rgba(19, 197, 189, .11); border-left-color: var(--accent); }
.step-link.is-active span, .step-link.is-complete span { color: #62d9d3; }
.step-link.is-complete { color: #d0d8e2; }
.sidebar-note { position: relative; z-index: 1; margin-top: auto; padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; color: white; background: rgba(255,255,255,.045); }
.sidebar-note .eyebrow { color: var(--accent); }
.sidebar-note p { margin: 6px 0 14px; color: #bac5d2; font-size: .84rem; }
.sidebar-note a { color: var(--accent); font-size: .84rem; font-weight: 700; text-decoration: none; }

.workspace { min-width: 0; padding: 30px clamp(28px, 5vw, 76px) 54px; }
.workspace > * { max-width: 1040px; margin-inline: auto; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.eyebrow { margin: 0; color: var(--accent-dark); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.topbar h1 { margin: 2px 0 0; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.03em; }
.save-state { margin-top: 7px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.progress-track { height: 3px; margin-top: 24px; background: #dce5ec; overflow: hidden; }
.progress-track span { display: block; width: 14.28%; height: 100%; background: linear-gradient(90deg, var(--navy), var(--accent)); transition: width .25s ease; }

.global-error { margin-top: 20px; padding: 12px 15px; border: 1px solid #e6a9ad; border-radius: 8px; color: #8b2028; background: var(--danger-soft); font-weight: 600; }
.form-step { display: none; animation: enter .22s ease-out; }
.form-step.is-active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.section-heading { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; margin: 52px 0 42px; }
.section-index { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid #a9e5e1; border-radius: 50%; color: var(--navy); background: var(--accent-soft); font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.section-heading h2 { margin: -2px 0 7px; font-size: clamp(1.7rem, 3.6vw, 2.65rem); line-height: 1.08; letter-spacing: -.045em; }
.section-heading p { max-width: 700px; margin: 0; color: var(--muted); font-size: 1rem; }

.field-group { min-width: 0; margin: 0 0 42px; padding: 0; border: 0; }
.field-group > legend, .field-label { display: block; margin-bottom: 10px; font-size: .98rem; font-weight: 750; }
.hint { margin: -5px 0 15px; color: var(--muted); font-size: .85rem; }
.required { margin-left: 7px; color: var(--accent-dark); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.choice-grid { display: grid; gap: 9px; }
.choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-grid--2, .two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card { position: relative; min-height: 58px; display: flex; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; transition: border-color .16s, background .16s, transform .16s; }
.choice-card:hover { border-color: #9dbfc9; transform: translateY(-1px); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card:has(input:checked) { border-color: var(--accent-dark); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.choice-card span { font-size: .87rem; font-weight: 620; line-height: 1.25; }

.field { display: block; margin-bottom: 30px; }
.field--short { max-width: 360px; }
.field--medium { max-width: 520px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), textarea, select { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px 13px; background: var(--surface); transition: border-color .16s, box-shadow .16s; }
textarea { resize: vertical; min-height: 112px; }
input:hover, textarea:hover, select:hover { border-color: #94a9b8; }
input:focus, textarea:focus, select:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(19,197,189,.12); outline: 0; }
input[type="file"] { width: 100%; padding: 9px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: .84rem; }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 7px 10px; border: 0; border-radius: 6px; color: var(--ink); background: var(--surface-3); font-weight: 650; cursor: pointer; }
.field-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 6px; color: var(--muted); font-size: .75rem; }
.input-suffix { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.input-suffix input { border-radius: 8px 0 0 8px !important; }
.input-suffix > span { display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 8px 8px 0; color: var(--muted); background: var(--surface-3); font-size: .85rem; }
.field-error { display: block; min-height: 1em; margin: 7px 0 0; color: var(--danger); font-size: .78rem; font-weight: 600; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--danger) !important; }
.has-error > legend { color: #922b32; }

.compact-choices { padding: 6px 0; column-gap: 32px; row-gap: 1px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 2px; cursor: pointer; }
.check-row input, .radio-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.check-row span { font-size: .9rem; }
.radio-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.radio-row { position: relative; display: flex; align-items: flex-start; gap: 10px; min-height: 78px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; }
.radio-row:has(input:checked) { border-color: var(--accent-dark); background: var(--accent-soft); }
.radio-row strong, .radio-row small { display: block; }
.radio-row strong { font-size: .87rem; }
.radio-row small { margin-top: 3px; color: var(--muted); font-size: .75rem; line-height: 1.3; }
.segmented { display: grid; gap: 0; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); overflow: hidden; }
.segmented--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.segmented--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.segmented--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.segmented label { position: relative; min-width: 0; cursor: pointer; }
.segmented label + label { border-left: 1px solid var(--line); }
.segmented input { position: absolute; opacity: 0; }
.segmented span { height: 100%; display: grid; place-items: center; padding: 12px 8px; color: var(--ink-2); text-align: center; font-size: .82rem; font-weight: 650; }
.segmented input:checked + span { color: var(--navy); background: var(--accent-soft); box-shadow: inset 0 -3px 0 var(--accent); }

.rank-list { max-width: 720px; display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.rank-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.rank-number { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: var(--accent-dark); background: var(--accent-soft); font-size: .73rem; font-weight: 800; }
.rank-actions { display: inline-flex; gap: 4px; }
.rank-actions button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); cursor: pointer; }

.location-card { margin-bottom: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 6px 20px rgba(29,53,78,.04); }
.location-card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.location-card__header > div { display: flex; align-items: baseline; gap: 11px; }
.location-card__header h3 { margin: 0; font-size: 1.05rem; }
.location-number { color: var(--accent-dark); font-size: .69rem; font-weight: 800; letter-spacing: .08em; }
.location-grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 0 16px; }
.location-grid .field { margin-bottom: 18px; }
.location-notes { grid-column: 1 / -1; }
.icon-button { border: 0; padding: 6px; color: var(--danger); background: transparent; font-size: .79rem; font-weight: 650; cursor: pointer; }
.existing-file { display: block; margin-top: 5px; color: var(--success); font-size: .72rem; }
.privacy-line { color: var(--muted); font-size: .78rem; }

.product-levels { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; max-width: 940px; }
.product-card { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 12px; min-height: 82px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; transition: border-color .16s, background .16s, transform .16s; }
.product-card:hover { border-color: #9dbfc9; transform: translateY(-1px); }
.product-card input { position: static; width: 18px; height: 18px; margin: 1px 0 0; opacity: 1; accent-color: var(--accent-dark); }
.product-card:has(input:checked) { border-color: var(--accent-dark); background: var(--accent-soft); }
.product-card > span { min-width: 0; width: 100%; }
.product-card strong, .product-card small { display: block; }
.product-card strong { font-size: .9rem; line-height: 1.3; }
.product-card small { margin-top: 4px; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.two-column { display: grid; gap: 26px; }
.contact-grid { column-gap: 26px; row-gap: 8px; align-items: start; }
.contact-grid .field { margin-bottom: 8px; }
.delivery-grid { align-items: stretch; gap: 16px; margin-bottom: 42px; }
.option-panel { margin: 0; padding: 20px 22px 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 5px 18px rgba(29, 53, 78, .035); }
.option-panel > legend { margin: 0 0 11px -7px; padding: 0 7px; color: var(--ink); background: var(--surface); }
.option-panel .check-row { padding-block: 7px; }
.option-panel--plain { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.option-panel--plain > legend { margin: 0 0 11px; padding: 0; background: transparent; }
.option-panel--plain .inline-other { margin-left: 28px; }

.location-map-section { grid-column: 1 / -1; margin: 2px 0 19px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.location-map-intro { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.location-map-intro .field-label { margin-bottom: 2px; }
.location-map-intro p { margin: 0; color: var(--muted); font-size: .79rem; }
.location-map-actions { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.map-drawing-status { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.map-drawing-status.has-drawing { color: var(--success); font-weight: 700; }
.map-toggle { min-height: 36px; padding: 7px 13px; background: var(--surface); }
.location-map-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 18px; margin-bottom: 10px; }
.map-tool-group { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.map-tool-label { margin-right: 4px; color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.map-tool { min-height: 32px; border: 1px solid var(--line-strong); border-radius: 7px; padding: 5px 10px; color: var(--ink-2); background: var(--surface); font-size: .75rem; font-weight: 700; cursor: pointer; transition: border-color .16s, background .16s, color .16s; }
.map-tool:hover { border-color: #8199aa; }
.map-tool.is-active, .map-tool[aria-pressed="true"] { border-color: var(--accent-dark); color: var(--navy); background: var(--accent-soft); }
.map-tool--danger { color: var(--danger); }
.location-map { width: 100%; height: 390px; border: 1px solid var(--line-strong); border-radius: 9px; background: #dfe7e8; overflow: hidden; }
.location-map .leaflet-control-attribution { max-width: calc(100% - 12px); color: #536272; font-size: 9px; }
.location-map .leaflet-bar a { color: var(--ink); }
.location-map .leaflet-interactive { stroke-linejoin: round; }
.map-help { margin: 8px 0 0; color: var(--muted); font-size: .72rem; }
.conditional-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: -18px 0 38px; padding: 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.conditional-panel .field-group, .conditional-panel .field { margin-bottom: 0; }
.inline-other { grid-column: 1 / -1; margin: 2px 0 5px 28px; max-width: 560px; }
.inline-other input, .inline-other textarea { border-color: #aab8c5; background: #fbfcfd; }
.inline-other textarea { min-height: 76px; }
.inline-other .field-meta { margin-top: 4px; }
.inline-other--wide { max-width: none; margin-right: 2px; }
.conditional-response { max-width: 620px; margin-top: 15px; padding: 15px 17px 1px; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.conditional-response .field { margin-bottom: 14px; }
#priority-count { margin-left: 5px; color: var(--accent-dark); font-weight: 700; }
.preference-note { max-width: 780px; margin: -20px 0 38px; padding: 13px 15px; border-left: 3px solid var(--accent); color: var(--ink-2); background: var(--accent-soft); font-size: .81rem; }
.data-note, .submit-note { max-width: 750px; padding: 17px 19px; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.data-note strong, .submit-note strong { font-size: .84rem; }
.data-note p, .submit-note p { margin: 4px 0 0; color: var(--ink-2); font-size: .85rem; }

.review-summary { border-top: 1px solid var(--line); }
.review-row { width: 100%; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: start; gap: 18px; padding: 19px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.review-row:hover { background: rgba(255,255,255,.65); }
.review-label { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.review-row strong, .review-row small { display: block; }
.review-row strong { font-size: .94rem; }
.review-row small { margin-top: 4px; color: var(--muted); font-size: .81rem; }
.review-edit { color: var(--accent-dark); font-size: .8rem; font-weight: 700; }
.submit-note { margin-top: 30px; }

.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); }
.action-spacer { flex: 1; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; padding: 9px 16px; font-size: .86rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .16s, border-color .16s, transform .16s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button--primary { color: white; background: var(--navy-2); border-color: var(--navy-2); }
.button--primary:hover { background: #1d2942; }
.button--secondary { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
.button--secondary:hover { border-color: #8199aa; }
.button--ghost { color: var(--ink-2); background: transparent; border-color: transparent; }

/* Register */
.list-page, .detail-page { max-width: 1260px; margin: 0 auto; padding: 30px clamp(22px,5vw,70px) 70px; }
.list-header, .detail-nav { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.list-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin: 78px 0 32px; }
.list-intro h1 { margin: 4px 0; font-size: clamp(2rem,5vw,3.8rem); letter-spacing: -.055em; }
.list-intro p:last-child { margin: 0; color: var(--muted); }
.metric { min-width: 120px; padding-left: 22px; border-left: 1px solid var(--line-strong); }
.metric strong, .metric span { display: block; }
.metric strong { font-size: 2.2rem; line-height: 1; }
.metric span { margin-top: 4px; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.request-table-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow-x: auto; box-shadow: var(--shadow); }
.request-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.request-table th { padding: 13px 16px; color: var(--muted); background: var(--surface-3); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; text-align: left; }
.request-table td { padding: 15px 16px; border-top: 1px solid var(--line); vertical-align: top; font-size: .84rem; }
.request-table strong, .request-table small { display: block; }
.request-table small { max-width: 340px; margin-top: 3px; color: var(--muted); }
.mono-link { color: var(--accent-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; font-weight: 700; text-decoration: none; }
.text-link { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.status-pill { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.status-pill--draft { color: #66551a; background: #fff4c4; }
.status-pill--submitted { color: #0e684f; background: #d9f6eb; }
.empty-state { display: grid; justify-items: center; padding: 80px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: var(--accent-dark); background: var(--accent-soft); font-weight: 800; }
.empty-state h2 { margin-bottom: 3px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }

/* Submission confirmation */
.confirmation-page { max-width: 1160px; min-height: 100vh; margin: 0 auto; padding: 30px clamp(22px, 5vw, 70px) 70px; }
.confirmation-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.confirmation-card { max-width: 790px; margin: 78px auto 0; padding: clamp(34px, 6vw, 64px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.confirmation-mark { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 24px; border-radius: 50%; color: white; background: var(--accent-dark); font-size: 1.45rem; font-weight: 800; }
.confirmation-card h1 { max-width: 650px; margin: 7px 0 14px; font-size: clamp(2rem, 5vw, 3.45rem); line-height: 1.03; letter-spacing: -.05em; }
.confirmation-copy { max-width: 650px; margin: 0; color: var(--ink-2); font-size: 1rem; }
.confirmation-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; margin: 36px 0 30px; }
.confirmation-summary div { padding: 13px 0; border-top: 1px solid var(--line); }
.confirmation-summary dt { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.confirmation-summary dd { margin: 4px 0 0; font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; }

/* Role-separated workflow */
.workflow-pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 10px; border-radius: 999px; color: #32516b; background: #e8f0f6; font-size: .68rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.workflow-pill--finalised, .workflow-pill--feasibility_completed { color: #0e684f; background: #d9f6eb; }
.workflow-pill--feasibility_pending, .workflow-pill--feasibility_in_progress { color: #66551a; background: #fff4c4; }
.workflow-pill--b_in_progress, .workflow-pill--b_client_in_progress, .workflow-pill--b_client_submitted { color: #075b78; background: #dff6ff; }
.workflow-pill--transferred { color: #0e684f; background: #d9f6eb; }
.workflow-pill--pending, .workflow-pill--not_queued { color: #66551a; background: #fff4c4; }
.staff-page { --accent: #13c5bd; }
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 1.05fr) minmax(360px, .95fr); background: #fff; }
.auth-brand { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 8vw, 120px); color: #fff; background: radial-gradient(circle at 10% 10%, rgba(19,197,189,.28), transparent 32%), linear-gradient(145deg,#34415f,#243354); }
.auth-brand img { width: min(420px, 82%); margin-bottom: 65px; filter: brightness(0) invert(1); }
.auth-brand h1 { max-width: 580px; margin: 8px 0 18px; font-size: clamp(2.8rem, 6vw, 5rem); line-height: .98; letter-spacing: -.06em; }
.auth-brand p:last-child { max-width: 610px; color: rgba(255,255,255,.74); }
.auth-card { align-self: center; width: min(520px, calc(100% - 48px)); margin: auto; padding: clamp(30px, 5vw, 56px); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.auth-card h2 { margin: 4px 0 28px; font-size: 2rem; }
.stack-form { display: grid; gap: 20px; }
.stack-form .button { margin-top: 6px; }
.workflow-strip { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; margin: 34px 0; }
.workflow-step { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; }
.workflow-step span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); font-size: .72rem; font-weight: 800; }
.workflow-step strong { font-size: .79rem; }
.workflow-step.is-done { color: var(--success); border-color: #bce6d7; background: #f1fbf7; }
.workflow-step.is-current { color: var(--navy); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.staff-action-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 0 0 28px; }
.action-card { min-height: 210px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.action-card--accent { background: linear-gradient(145deg,#eefbfa,#fff); border-color: #a8e4df; }
.action-card h2 { margin: 8px 0; }
.action-card p { color: var(--muted); }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 20px; }
.copy-output { display: block; margin-top: 14px; padding: 12px; border-radius: 8px; background: var(--surface-2); font-family: ui-monospace,monospace; font-size: .75rem; overflow-wrap: anywhere; }
.client-next-step { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 0 0 28px; padding: 25px 28px; border: 1px solid #afe4df; border-radius: var(--radius); background: linear-gradient(120deg,#eafaf8,#fff); }
.client-next-step h2 { margin: 5px 0; }
.client-next-step p { margin: 0; color: var(--muted); }

/* Form B and feasibility editors */
.b-section { display: none; padding: 38px 0 52px; }
.b-section.is-active { display: block; }
.b-section > .field, .b-section > .field-group, .b-section > .two-column, .b-section > .three-column { margin-top: 28px; }
.three-column { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.section-divider { height: 1px; margin: 42px 0; background: var(--line); }
.repeater-card { margin: 22px 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 24px rgba(24,49,77,.05); }
.repeater-card header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.repeater-card h3 { margin: 2px 0 0; }
.editor-page { max-width: 1180px; margin: 0 auto; padding: 30px clamp(22px,5vw,70px) 80px; }
.editor-heading { max-width: 850px; margin: 60px 0 30px; }
.editor-heading h1 { margin: 6px 0 12px; font-size: clamp(2.5rem,5vw,4.5rem); line-height: 1; letter-spacing: -.055em; }
.editor-heading > p:last-child { color: var(--muted); }
.editor-card { padding: clamp(25px,5vw,52px); border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.editor-card > * + * { margin-top: 30px; }
.report-section { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.decision-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 16px 0 22px; padding: 18px 20px; color: #fff; background: var(--navy); border-radius: 8px; }
.decision-banner span { color: rgba(255,255,255,.7); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.decision-banner strong { font-size: 1.05rem; }
.report-section table { width: 100%; border-collapse: collapse; }
.report-section th { padding: 8px 10px; color: var(--muted); background: var(--surface-3); font-size: .64rem; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.report-section td { padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: .72rem; vertical-align: top; }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { min-height: 42vh; padding: 48px 28px; }
  .auth-brand img { width: 280px; margin-bottom: 35px; }
  .auth-card { margin: 40px auto; }
  .workflow-strip { grid-template-columns: 1fr; }
  .staff-action-grid, .three-column { grid-template-columns: 1fr; }
  .client-next-step { align-items: flex-start; flex-direction: column; }
}
.confirmation-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.confirmation-note { margin: 18px 0 0; color: var(--muted); font-size: .76rem; }

/* Request detail */
.detail-actions { display: flex; gap: 8px; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, .65fr); gap: 70px; margin: 76px 0 34px; padding-bottom: 36px; border-bottom: 1px solid var(--line-strong); }
.detail-kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .77rem; }
.detail-hero h1 { margin: 14px 0 10px; font-size: clamp(2.2rem,5vw,4.2rem); line-height: 1.02; letter-spacing: -.06em; }
.detail-hero > div > p { max-width: 760px; margin: 0; color: var(--ink-2); font-size: 1.1rem; }
.contact-block { margin: 0; padding-left: 26px; border-left: 1px solid var(--line-strong); }
.contact-block div + div { margin-top: 14px; }
.contact-block dt, .card-label { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-block dd { margin: 2px 0 0; font-size: .86rem; overflow-wrap: anywhere; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.detail-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.detail-card--wide { grid-column: 1 / -1; }
.detail-card h2 { margin: 7px 0 18px; font-size: 1.25rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.tag { padding: 5px 9px; border-radius: 999px; color: var(--navy); background: var(--accent-soft); font-size: .76rem; font-weight: 650; text-transform: capitalize; }
.definition-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 0; }
.definition-grid div { padding-top: 11px; border-top: 1px solid var(--line); }
.definition-grid dt, .stacked-definitions dt { color: var(--muted); font-size: .72rem; }
.definition-grid dd, .stacked-definitions dd { margin: 4px 0 0; font-size: .85rem; font-weight: 650; }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.plain-list strong, .plain-list span, .plain-list small { display: block; }
.plain-list span, .plain-list small { color: var(--muted); font-size: .78rem; }
.stacked-definitions { margin: 0; }
.stacked-definitions div { padding: 10px 0; border-top: 1px solid var(--line); }

/* Printable sheet */
.sheet-page { min-height: 100vh; padding: 28px; background: #dfe6eb; }
.print-toolbar { max-width: 980px; display: flex; justify-content: flex-end; gap: 8px; margin: 0 auto 18px; }
.use-case-sheet { width: min(980px, 100%); min-height: 1240px; margin: 0 auto; padding: 44px 50px 32px; background: white; box-shadow: 0 22px 70px rgba(20,40,60,.18); }
.sheet-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 3px solid var(--navy-2); }
.sheet-brand { display: flex; align-items: center; gap: 12px; }
.sheet-brand-logo { width: 210px; height: auto; }
.sheet-brand strong, .sheet-brand small { display: block; }
.sheet-brand strong { font-size: .82rem; letter-spacing: .09em; }
.sheet-brand small { color: var(--muted); font-size: .65rem; letter-spacing: .12em; }
.sheet-id { text-align: right; }
.sheet-id span, .sheet-id strong { display: block; }
.sheet-id span { color: var(--muted); font-family: ui-monospace, monospace; font-size: .75rem; }
.sheet-id strong { margin-top: 4px; color: var(--accent-dark); font-size: .68rem; letter-spacing: .1em; }
.sheet-title { padding: 30px 0 26px; }
.sheet-title > p { margin: 0 0 5px; color: var(--accent-dark); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sheet-title h1 { margin: 0; font-size: 2.65rem; line-height: 1.05; letter-spacing: -.05em; }
.sheet-title blockquote { max-width: 760px; margin: 14px 0 0; padding-left: 16px; border-left: 2px solid var(--accent); color: var(--ink-2); font-size: 1.02rem; }
.sheet-band { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); color: white; background: var(--navy-2); }
.sheet-band > div { min-height: 95px; padding: 16px; }
.sheet-band > div + div { border-left: 1px solid rgba(255,255,255,.18); }
.sheet-band span, .sheet-band strong, .sheet-band small { display: block; }
.sheet-band span { color: #8fb4cc; font-size: .63rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.sheet-band strong { margin-top: 8px; font-size: .86rem; }
.sheet-band small { margin-top: 2px; color: #a9c1d1; font-size: .66rem; }
.sheet-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin: 28px 0; }
.use-case-sheet h2 { margin: 0 0 12px; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
.sheet-definitions { margin: 0; }
.sheet-definitions div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.sheet-definitions dt { color: var(--muted); font-size: .7rem; }
.sheet-definitions dd { margin: 0; font-size: .74rem; }
.sheet-locations { margin-top: 12px; }
.sheet-section-title { display: flex; justify-content: space-between; align-items: baseline; }
.sheet-section-title span { color: var(--muted); font-size: .7rem; }
.sheet-locations table { width: 100%; border-collapse: collapse; }
.sheet-locations th { padding: 8px 10px; color: var(--muted); background: var(--surface-3); font-size: .64rem; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.sheet-locations td { padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: .72rem; }
.sheet-commercial { margin-top: 26px; padding: 17px; border: 1px solid var(--line); background: var(--surface-2); }
.sheet-commercial p { margin: 6px 0; font-size: .72rem; }
.sheet-footer { display: flex; justify-content: space-between; margin-top: 34px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .62rem; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 18px 22px; }
  .brand--sidebar { width: 230px; }
  .step-nav { margin-top: 20px; display: flex; overflow-x: auto; }
  .step-link { min-width: 130px; grid-template-columns: 26px 1fr; border-left: 0; border-bottom: 2px solid transparent; border-radius: 7px 7px 0 0; }
  .step-link.is-active { border-left-color: transparent; border-bottom-color: var(--accent); }
  .sidebar-note { display: none; }
  .choice-grid--3, .radio-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .location-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-hero { gap: 30px; }
  .definition-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .workspace { padding: 20px 16px 36px; }
  .topbar { align-items: flex-end; }
  .topbar h1 { font-size: 1.25rem; }
  .save-state { font-size: .72rem; }
  .section-heading { grid-template-columns: 42px 1fr; gap: 12px; margin: 38px 0 30px; }
  .section-index { width: 38px; height: 38px; }
  .choice-grid--3, .choice-grid--2, .two-column, .radio-list, .product-levels, .location-grid, .conditional-panel, .detail-grid, .sheet-columns { grid-template-columns: 1fr; }
  .detail-card--wide { grid-column: auto; }
  .option-panel:not(.option-panel--plain) { padding: 18px; }
  .inline-other { margin-left: 28px; }
  .location-map-intro { align-items: flex-start; flex-direction: column; gap: 12px; }
  .location-map-actions { width: 100%; justify-content: space-between; }
  .map-toolbar { align-items: flex-start; flex-direction: column; }
  .location-map { height: 330px; }
  .segmented--5, .segmented--4 { grid-template-columns: 1fr 1fr; }
  .segmented label + label { border-left: 0; border-top: 1px solid var(--line); }
  .review-row { grid-template-columns: 1fr auto; }
  .review-label { grid-column: 1 / -1; }
  .form-actions { position: sticky; bottom: 0; z-index: 3; margin-inline: -16px; padding: 12px 16px; background: rgba(244,247,250,.96); backdrop-filter: blur(10px); }
  .form-actions .button { padding-inline: 12px; }
  .list-page, .detail-page { padding: 20px 16px 50px; }
  .list-header, .detail-nav { align-items: flex-start; }
  .detail-actions { flex-wrap: wrap; justify-content: flex-end; }
  .detail-hero { grid-template-columns: 1fr; margin-top: 48px; }
  .contact-block { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .sheet-page { padding: 0; }
  .confirmation-page { padding: 20px 16px 50px; }
  .confirmation-card { margin-top: 42px; padding: 28px 22px; }
  .confirmation-summary { grid-template-columns: 1fr; }
  .print-toolbar { padding: 10px; }
  .use-case-sheet { min-height: 0; padding: 28px 20px; box-shadow: none; }
  .sheet-band { grid-template-columns: 1fr 1fr; }
  .sheet-band > div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .sheet-band > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.18); }
}

@media print {
  @page { size: A4; margin: 10mm; }
  body { background: white; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-toolbar { display: none; }
  .sheet-page { padding: 0; background: white; }
  .use-case-sheet { width: 100%; min-height: 0; padding: 0; box-shadow: none; }
  .sheet-title { padding-block: 18px; }
  .sheet-title h1 { font-size: 2.1rem; }
  .sheet-band > div { min-height: 76px; padding: 12px; }
  .sheet-columns { margin: 18px 0; }
  .sheet-commercial { margin-top: 16px; }
  .sheet-footer { margin-top: 18px; }
}
