:root {
  --ink: #17302e;
  --ink-soft: #526966;
  --paper: #f7faf9;
  --panel: #ffffff;
  --line: #dbe6e3;
  --line-strong: #bdd0cc;
  --teal-950: #0c3532;
  --teal-900: #10443f;
  --teal-800: #14564f;
  --teal-700: #176a61;
  --teal-600: #1b7d72;
  --teal-500: #27978a;
  --teal-100: #dff2ee;
  --teal-50: #eff9f7;
  --sand-50: #fff9ed;
  --sand-200: #f0d49d;
  --sand-600: #9a6617;
  --rose-50: #fff1ef;
  --rose-500: #b9574d;
  --blue-50: #eff6fb;
  --blue-500: #31769d;
  --shadow-sm: 0 1px 2px rgba(17, 54, 50, 0.06), 0 3px 10px rgba(17, 54, 50, 0.04);
  --shadow-lg: 0 22px 70px rgba(9, 48, 43, 0.18);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 21px;
  --topbar: 72px;
  --sidebar: 254px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: var(--teal-700); }

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

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  grid-template-rows: var(--topbar) 1fr;
  grid-template-areas: "topbar topbar" "sidebar workspace";
}

.topbar {
  grid-area: topbar;
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(310px, 1.25fr) minmax(350px, 1.2fr);
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  color: white;
  background: linear-gradient(105deg, #0c3532 0%, #10463f 58%, #13584f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand-lockup { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; color: #8dd0c5; flex: 0 0 auto; }
.brand-mark svg { width: 39px; height: 39px; }
.brand-title { font-size: 14px; font-weight: 760; letter-spacing: .01em; white-space: nowrap; }
.brand-subtitle { margin-top: 2px; color: #a9c8c2; font-size: 11px; white-space: nowrap; }

.project-toolbar { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.project-selector {
  width: min(380px, 100%);
  height: 38px;
  padding: 0 34px 0 12px;
  color: white;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  outline: none;
  text-overflow: ellipsis;
}
.project-selector option { color: var(--ink); background: white; }
.project-selector:focus { border-color: #79bdb3; box-shadow: 0 0 0 3px rgba(102, 190, 176, .16); }

.header-status { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; }
.save-state { display: flex; align-items: center; gap: 6px; margin-right: 4px; color: #b9d5d0; font-size: 11px; white-space: nowrap; }
.save-state span { width: 6px; height: 6px; background: #72c4b7; border-radius: 50%; box-shadow: 0 0 0 3px rgba(114,196,183,.12); }
.save-state.saving span { background: #e9c16d; }

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 680;
  font-size: 13px;
  line-height: 1;
  transition: transform .15s ease, background .15s ease, border .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:focus-visible, .nav-item:focus-visible, .chip:focus-visible, .text-button:focus-visible, .icon-button:focus-visible { outline: 3px solid rgba(40, 151, 138, .25); outline-offset: 2px; }
.button.primary { color: white; background: var(--teal-600); box-shadow: 0 6px 16px rgba(11, 92, 83, .18); }
.button.primary:hover { background: var(--teal-700); }
.button.secondary { color: var(--teal-700); background: var(--teal-50); border-color: #b7ddd6; }
.button.ghost { color: #d9ebe7; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.button.ghost:hover { background: rgba(255,255,255,.12); }
.button.ghost-on-dark { color: white; background: transparent; border-color: rgba(255,255,255,.28); }
.button.light { color: var(--teal-900); background: white; }
.button.compact { min-height: 34px; padding: 0 11px; font-size: 11.5px; }
.button.full-button { width: 100%; margin-top: 18px; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.sidebar {
  grid-area: sidebar;
  position: sticky;
  top: var(--topbar);
  height: calc(100vh - var(--topbar));
  display: flex;
  flex-direction: column;
  padding: 18px 13px 15px;
  overflow-y: auto;
  background: #f1f6f4;
  border-right: 1px solid var(--line);
}

.route-card {
  display: grid;
  gap: 3px;
  margin: 0 5px 16px;
  padding: 14px 15px;
  color: white;
  background: linear-gradient(145deg, #175f57, #10443f);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.route-kicker { color: #a8d2cb; font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.route-card strong { font-size: 14px; }
.route-card > span:last-child { color: #c3dad6; font-size: 10.5px; line-height: 1.35; }

.side-nav { display: grid; gap: 3px; }
.nav-item {
  width: 100%;
  min-height: 43px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  color: #536a67;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  transition: background .15s ease, color .15s ease;
}
.nav-item:hover { color: var(--teal-800); background: #e5f0ed; }
.nav-item.active { color: var(--teal-800); background: white; box-shadow: var(--shadow-sm); font-weight: 700; }
.nav-index { color: #90a5a1; font-size: 9px; font-weight: 760; letter-spacing: .05em; }
.nav-item.active .nav-index { color: var(--teal-500); }
.nav-status { color: #7b918d; font-size: 9px; font-variant-numeric: tabular-nums; }
.nav-status.complete { color: var(--teal-700); }

.sidebar-footnote { display: grid; gap: 5px; margin: auto 7px 0; padding-top: 17px; border-top: 1px solid var(--line); }
.sidebar-footnote strong { color: #536d68; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.sidebar-footnote span { color: #718581; font-size: 9.5px; line-height: 1.45; }

.workspace {
  grid-area: workspace;
  min-width: 0;
  min-height: calc(100vh - var(--topbar));
  padding: 34px clamp(24px, 4vw, 62px) 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 4%, rgba(88, 171, 158, .08), transparent 29%),
    var(--paper);
}
.view { display: none; width: min(1300px, 100%); margin: 0 auto; }
.view.active { display: block; animation: enter .22s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}
.page-heading h1 { margin: 4px 0 6px; color: var(--teal-950); font-size: clamp(27px, 3vw, 39px); line-height: 1.08; letter-spacing: -.035em; }
.page-heading p { max-width: 790px; margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }
.eyebrow { display: block; color: var(--teal-600); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-counter { flex: 0 0 auto; margin-top: 8px; padding: 7px 10px; color: var(--teal-700); background: var(--teal-50); border: 1px solid #c9e7e1; border-radius: 20px; font-size: 10.5px; font-weight: 700; }

.overview-heading { align-items: center; padding: 8px 0 2px; }
.overview-heading h1 { font-size: clamp(30px, 3.3vw, 45px); }
.readiness-dial { position: relative; width: 116px; height: 116px; flex: 0 0 116px; }
.readiness-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.readiness-dial circle { fill: none; stroke-width: 8; }
.dial-track { stroke: #e1ebe8; }
.dial-value { stroke: var(--teal-500); stroke-linecap: round; stroke-dasharray: 307.9; stroke-dashoffset: 307.9; transition: stroke-dashoffset .4s ease; }
.readiness-dial > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.readiness-dial strong { color: var(--teal-800); font-size: 24px; letter-spacing: -.04em; }
.readiness-dial span { color: #708481; font-size: 8.5px; text-transform: uppercase; letter-spacing: .06em; }

.scope-banner {
  display: grid;
  grid-template-columns: 37px 1fr;
  align-items: start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 15px 17px;
  background: var(--sand-50);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
}
.scope-icon { width: 31px; height: 31px; display: grid; place-items: center; color: #81530e; background: #f8dfaa; border-radius: 50%; font-family: Georgia, serif; font-size: 18px; font-weight: bold; }
.scope-banner strong { color: #754c11; font-size: 12.5px; }
.scope-banner p { margin: 3px 0 0; color: #755f3b; font-size: 11.5px; line-height: 1.45; }

.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.dashboard-card, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.dashboard-card { min-height: 230px; padding: 21px; }
.dashboard-card h2 { margin: 25px 0 8px; color: var(--teal-900); font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.dashboard-card > p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.route-dashboard-card { position: relative; overflow: hidden; background: linear-gradient(145deg, #fff 0%, #f5fbf9 100%); }
.route-dashboard-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; bottom: -85px; border: 32px solid rgba(39,151,138,.07); border-radius: 50%; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.card-label { color: #69807c; font-size: 9.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.status-pill, .count-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 20px; font-weight: 730; }
.status-pill { min-height: 25px; padding: 0 9px; font-size: 9.5px; }
.status-pill.neutral { color: #5c726e; background: #edf3f1; }
.status-pill.warning { color: #82550d; background: #fff0cb; }
.status-pill.positive { color: #0f6b60; background: #daf1ec; }
.count-badge { min-width: 26px; height: 26px; padding: 0 7px; color: white; background: var(--rose-500); font-size: 10px; }
.text-button { position: relative; z-index: 1; margin-top: 19px; padding: 0; color: var(--teal-700); background: transparent; border: 0; cursor: pointer; font-size: 11px; font-weight: 750; }
.text-button span { margin-left: 4px; transition: margin .15s ease; }
.text-button:hover span { margin-left: 8px; }

.gap-list { min-height: 144px; display: grid; align-content: start; gap: 7px; margin-top: 15px; }
.gap-item { display: grid; grid-template-columns: 7px 1fr; gap: 9px; align-items: start; color: #556a67; font-size: 10.5px; line-height: 1.35; }
.gap-item::before { content: ""; width: 6px; height: 6px; margin-top: 4px; background: #d27b56; border-radius: 50%; }
.gap-empty { display: grid; place-items: center; min-height: 125px; color: var(--teal-700); font-size: 11px; text-align: center; }

.workstream-list { display: grid; gap: 13px; margin-top: 18px; }
.workstream { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; align-items: center; }
.workstream span { color: #4f6662; font-size: 10.5px; }
.workstream strong { color: #617874; font-size: 9.5px; }
.workstream-bar { grid-column: 1/-1; height: 5px; overflow: hidden; background: #e8efed; border-radius: 5px; }
.workstream-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-600), #52ad9f); border-radius: inherit; }

.guidance-links { display: grid; gap: 8px; margin-top: 16px; }
.guidance-link { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 10px 11px; color: var(--ink); text-decoration: none; background: #f6f9f8; border: 1px solid #e2ebe8; border-radius: 8px; font-size: 10.5px; }
.guidance-link:hover { color: var(--teal-700); border-color: #b8d9d3; }
.guidance-link::after { content: "↗"; color: var(--teal-600); }

.section-footer-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 17px 19px; color: #607672; background: #eaf3f0; border-radius: 11px; font-size: 10.5px; }

.panel { padding: 22px; margin-bottom: 16px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 19px; padding-bottom: 14px; border-bottom: 1px solid #e8efed; }
.panel h2, .panel-heading h2 { margin: 0; color: var(--teal-900); font-size: 16px; letter-spacing: -.015em; }
.panel-heading p { margin: 4px 0 0; color: var(--ink-soft); font-size: 10.5px; line-height: 1.45; }

.form-grid { display: grid; gap: 15px 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { min-width: 0; display: grid; gap: 6px; color: #516663; font-size: 10.5px; font-weight: 670; }
.field.full { grid-column: 1/-1; }
.field.wide-2 { grid-column: span 2; }
.field > span b { color: #b24f42; }
.field input, .field select, .field textarea, .inline-input {
  width: 100%;
  color: var(--ink);
  background: #fbfdfc;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: none;
  font-weight: 440;
  transition: border .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input, .field select { height: 40px; padding: 0 11px; }
.field textarea { min-height: 82px; padding: 10px 11px; line-height: 1.47; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .inline-input:focus { background: white; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(39,151,138,.11); }
.field input::placeholder, .field textarea::placeholder { color: #9baba8; }
.field small { color: #81928f; font-weight: 450; }
.top-gap { margin-top: 16px; }

.screening-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.screening-category { margin-bottom: 14px; }
.screen-question { min-height: 58px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px; padding: 9px 10px 9px 13px; background: #f7faf9; border: 1px solid #e2ebe8; border-radius: 9px; }
.screen-question > span { color: #435b57; font-size: 10.5px; line-height: 1.3; }
.segmented { display: flex; padding: 2px; background: #e8efed; border-radius: 7px; }
.segmented button { min-width: 42px; height: 27px; padding: 0 7px; color: #71827f; background: transparent; border: 0; border-radius: 5px; cursor: pointer; font-size: 8.5px; font-weight: 700; }
.segmented button.active { color: var(--teal-800); background: white; box-shadow: 0 1px 4px rgba(20,70,64,.13); }

.callout { margin-bottom: 16px; padding: 13px 15px; border-radius: 10px; font-size: 11px; line-height: 1.5; }
.callout.info { color: #315d76; background: var(--blue-50); border: 1px solid #c8dfec; }
.callout.warning { color: #72521e; background: var(--sand-50); border: 1px solid var(--sand-200); }

.stack-list { display: grid; gap: 12px; }
.list-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.list-card-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 17px; background: #f4f8f7; border-bottom: 1px solid var(--line); }
.list-card-header > div:first-child { min-width: 0; display: flex; align-items: center; gap: 10px; }
.list-card-header h3 { margin: 0; overflow: hidden; color: var(--teal-900); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.list-card-body { padding: 18px; }
.card-actions { display: flex; align-items: center; gap: 7px; }
.icon-button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; color: #6d7e7b; background: transparent; border: 1px solid #cedbd8; border-radius: 7px; cursor: pointer; font-size: 17px; }
.icon-button:hover { color: #9b4038; background: #fff4f2; border-color: #e2b4ae; }
.selection-control { display: inline-flex; align-items: center; gap: 7px; color: #4a6762; font-size: 9.5px; font-weight: 700; }
.selection-control input { accent-color: var(--teal-600); }
.add-row { margin-top: 13px; }

.impact-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.filter-group { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 31px; padding: 0 11px; color: #627773; background: white; border: 1px solid var(--line); border-radius: 20px; cursor: pointer; font-size: 9.5px; font-weight: 700; }
.chip.active { color: white; background: var(--teal-700); border-color: var(--teal-700); }
.impact-summary { color: #667d79; font-size: 10.5px; }
.resource-list { display: grid; gap: 9px; }
.resource-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm); }
.resource-card[hidden] { display: none; }
.resource-summary { width: 100%; min-height: 57px; display: grid; grid-template-columns: 34px 1fr auto 23px; align-items: center; gap: 10px; padding: 8px 14px; color: var(--ink); background: white; border: 0; cursor: pointer; text-align: left; }
.resource-summary:hover { background: #f7faf9; }
.resource-number { width: 28px; height: 28px; display: grid; place-items: center; color: var(--teal-700); background: var(--teal-50); border-radius: 8px; font-size: 9px; font-weight: 800; }
.resource-title { font-size: 11.5px; font-weight: 700; }
.resource-meta { color: #728481; font-size: 9px; }
.resource-chevron { color: #738783; font-size: 15px; transition: transform .15s ease; }
.resource-card.open .resource-chevron { transform: rotate(180deg); }
.resource-body { display: none; padding: 17px; border-top: 1px solid var(--line); background: #fcfefd; }
.resource-card.open .resource-body { display: block; }
.resource-status { min-width: 106px; height: 31px; padding: 0 8px; color: #49615d; background: #f5f9f8; border: 1px solid #cfddda; border-radius: 7px; font-size: 9px; }
.significance-badge { min-width: 65px; padding: 5px 7px; border-radius: 14px; text-align: center; font-size: 8.5px; font-weight: 750; }
.significance-badge.unknown { color: #6f6252; background: #f2eee7; }
.significance-badge.none, .significance-badge.minor { color: #11675d; background: #dff2ee; }
.significance-badge.moderate { color: #86570f; background: #fff0cb; }
.significance-badge.major { color: #993f37; background: #fde5e2; }

.table-shell { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.data-table { width: 100%; min-width: 1040px; border-collapse: collapse; }
.data-table th { padding: 11px 10px; color: #627873; background: #f3f7f6; border-bottom: 1px solid var(--line); text-align: left; font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; }
.data-table td { padding: 10px; vertical-align: top; border-bottom: 1px solid #e8efed; font-size: 9.5px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .permit-name { min-width: 210px; }
.data-table .permit-name strong { display: block; color: var(--teal-900); font-size: 10.5px; }
.data-table .permit-name span { display: block; margin-top: 3px; color: #728582; font-size: 8.5px; line-height: 1.35; }
.inline-input { min-height: 34px; padding: 7px 8px; font-size: 9.5px; }
textarea.inline-input { min-width: 210px; min-height: 58px; resize: vertical; }
select.inline-input { min-width: 105px; }

.check-field { display: flex; align-items: flex-start; gap: 10px; color: #425c57; font-size: 11px; cursor: pointer; }
.check-field input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--teal-600); flex: 0 0 auto; }
.check-field span { display: grid; gap: 3px; }
.check-field small { color: #718582; font-size: 9.5px; line-height: 1.4; }

.review-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 16px; }
.review-grid .panel { margin: 0; }
.review-score-panel { display: flex; align-items: center; gap: 18px; }
.large-score { min-width: 100px; color: var(--teal-600); font-size: 50px; font-weight: 800; letter-spacing: -.06em; }
.review-score-panel h2 { margin-bottom: 5px; }
.review-score-panel p { margin: 0; color: var(--ink-soft); font-size: 10.5px; line-height: 1.45; }
.validation-groups { display: grid; gap: 10px; }
.validation-group { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 10px; }
.validation-group-header { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; color: #46605c; background: #f5f8f7; font-size: 11px; font-weight: 750; }
.validation-group-header span:last-child { color: #70837f; font-size: 9.5px; }
.validation-checks { display: grid; }
.validation-check { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-top: 1px solid #ecf1f0; color: #586f6b; font-size: 10px; }
.validation-check i { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 9px; font-weight: 800; }
.validation-check.ok i { color: white; background: var(--teal-500); }
.validation-check.missing i { color: #9a5c18; background: #f9e5bc; }
.validation-check button { padding: 0; color: var(--teal-700); background: transparent; border: 0; cursor: pointer; font-size: 9px; font-weight: 700; }

.export-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 18px; padding: 25px 27px; color: white; background: linear-gradient(120deg, #10473f, #17695f); border-radius: var(--radius); box-shadow: 0 16px 35px rgba(12,66,59,.16); }
.export-panel .eyebrow { color: #8fcfc5; }
.export-panel h2 { margin: 5px 0 4px; font-size: 21px; }
.export-panel p { max-width: 620px; margin: 0; color: #bfdbd5; font-size: 10.5px; line-height: 1.45; }
.export-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

dialog { padding: 0; }
dialog::backdrop { background: rgba(7, 29, 27, .68); backdrop-filter: blur(3px); }
.welcome-dialog { width: min(520px, calc(100vw - 32px)); color: var(--ink); background: white; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.welcome-dialog form { padding: 34px; }
.welcome-mark { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 20px; color: var(--teal-600); background: var(--teal-50); border-radius: 15px; }
.welcome-mark svg { width: 42px; height: 42px; }
.welcome-dialog h1 { margin: 6px 0 12px; color: var(--teal-950); font-size: 28px; letter-spacing: -.03em; }
.welcome-dialog p, .welcome-dialog li { color: #5a706c; font-size: 11.5px; line-height: 1.55; }
.welcome-dialog ul { margin: 15px 0 20px; padding-left: 18px; }
.welcome-dialog li { margin: 6px 0; }
.welcome-dialog .consent { padding: 12px; background: #f4f8f7; border-radius: 9px; }

.report-dialog { width: min(1120px, calc(100vw - 28px)); height: calc(100vh - 28px); overflow: hidden; background: #dfe7e5; border: 0; border-radius: 12px; box-shadow: var(--shadow-lg); }
.report-dialog-bar { height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 18px; color: white; background: var(--teal-950); }
.report-dialog-bar > div { display: flex; align-items: center; gap: 9px; }
.report-dialog-bar strong { font-size: 12px; }
.report-dialog-bar span { padding: 4px 8px; color: #c2dbd6; background: rgba(255,255,255,.09); border-radius: 12px; font-size: 8.5px; }
.report-dialog-bar .icon-button { color: white; border-color: rgba(255,255,255,.24); }
.report-dialog iframe { width: 100%; height: calc(100% - 54px); background: white; border: 0; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: 340px; padding: 11px 14px; color: white; background: #173f3b; border-radius: 9px; box-shadow: var(--shadow-lg); font-size: 10.5px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  :root { --sidebar: 222px; }
  .topbar { grid-template-columns: 250px 1fr auto; padding: 0 16px; }
  .brand-subtitle, .save-state { display: none; }
  .header-status .button.ghost { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-card { min-height: auto; }
  .form-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field.wide-2 { grid-column: span 2; }
  .screening-grid { grid-template-columns: 1fr; }
  .export-panel { align-items: flex-start; flex-direction: column; }
  .export-actions { justify-content: flex-start; }
}

@media (max-width: 760px) {
  :root { --topbar: auto; --sidebar: auto; }
  .app-shell { display: block; }
  .topbar { position: static; min-height: 138px; grid-template-columns: 1fr auto; grid-template-rows: 56px 56px; gap: 4px 10px; padding: 8px 14px; }
  .brand-lockup { grid-column: 1; }
  .project-toolbar { grid-row: 2; grid-column: 1/-1; }
  .header-status { grid-row: 1; grid-column: 2; }
  .header-status .button { display: none; }
  .header-status #open-report { display: inline-flex; }
  .sidebar { position: sticky; top: 0; z-index: 20; height: auto; padding: 8px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .route-card, .sidebar-footnote { display: none; }
  .side-nav { display: flex; min-width: max-content; }
  .nav-item { width: auto; grid-template-columns: auto; min-height: 36px; padding: 0 12px; }
  .nav-index, .nav-status { display: none; }
  .workspace { min-height: 0; padding: 24px 14px 55px; }
  .page-heading { gap: 12px; }
  .page-heading h1 { font-size: 28px; }
  .page-heading p { font-size: 12px; }
  .section-counter { display: none; }
  .overview-heading { align-items: flex-start; }
  .readiness-dial { width: 82px; height: 82px; flex-basis: 82px; }
  .readiness-dial strong { font-size: 18px; }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .field.full, .field.wide-2 { grid-column: auto; }
  .screen-question { grid-template-columns: 1fr; }
  .segmented { width: max-content; }
  .resource-summary { grid-template-columns: 30px 1fr 20px; }
  .resource-summary .resource-status, .resource-summary .significance-badge { display: none; }
  .impact-toolbar { align-items: flex-start; flex-direction: column; }
  .review-grid { grid-template-columns: 1fr; }
  .section-footer-actions { align-items: flex-start; flex-direction: column; }
  .export-actions { width: 100%; flex-direction: column; }
  .export-actions .button { width: 100%; }
}

@media print {
  .app-shell { display: none; }
}
