:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #64748b;
  --line: #dfe8e6;
  --soft: #f4f7f6;
  --teal: #0f766e;
  --teal-dark: #064e3b;
  --teal-soft: #e8f6f3;
  --current-soft: #f5f8ed;
  --current-light: #e8f0d7;
  --current: #d9e6bc;
  --current-strong: #69843f;
  --current-ink: #3f5621;
  --studied-soft: #f3f7fb;
  --studied-light: #e5eef8;
  --studied: #d4e2f1;
  --studied-strong: #587fae;
  --studied-ink: #31587f;
  --amber-soft: #fff8e7;
  --red: #b42318;
  --shadow: 0 12px 34px rgba(28, 55, 50, .06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--soft); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 80% 10%, rgba(45, 212, 191, .24), transparent 28%), linear-gradient(145deg, #f7fbfa, #e9f3f1); }
.login-card { width: min(100%, 470px); border: 1px solid rgba(15, 118, 110, .16); border-radius: 28px; background: rgba(255, 255, 255, .92); padding: 34px; box-shadow: 0 30px 80px rgba(6, 78, 59, .15); backdrop-filter: blur(18px); }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup span { display: block; color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.brand-lockup strong { display: block; margin-top: 2px; font-size: 18px; }
.brand-mark { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 15px; color: white; background: linear-gradient(145deg, var(--teal), #115e59); font-size: 25px; transform: rotate(-20deg); box-shadow: 0 9px 24px rgba(15, 118, 110, .25); }
.login-copy { margin: 48px 0 28px; }
.login-copy h1 { margin: 8px 0 12px; font-size: clamp(28px, 6vw, 38px); line-height: 1.08; letter-spacing: -.04em; }
.login-copy > p:last-child { color: var(--muted); line-height: 1.55; }
.login-form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; }
label > span:first-child { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
input, select { width: 100%; height: 44px; border: 1px solid #d3dfdc; border-radius: 11px; background: white; padding: 0 12px; color: var(--ink); outline: none; }
input:focus, select:focus { border-color: #2dd4bf; box-shadow: 0 0 0 3px rgba(45, 212, 191, .15); }
input:disabled { cursor: not-allowed; background: #f1f5f4; color: #7b8b87; }
small { color: #94a3b8; font-size: 10px; }
.with-unit { position: relative; display: block; }
.with-unit input { padding-right: 55px; }
.with-unit b { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 11px; }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 10px; padding: 0 14px; color: var(--ink); background: transparent; font-weight: 750; font-size: 13px; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--teal); border-color: var(--teal); }
.button.primary:hover { background: #0b655e; }
.button.secondary { border-color: #d5dfdd; background: white; }
.button.secondary:hover { border-color: #7dd3c7; color: var(--teal); }
.button.ghost:hover { background: #eef5f3; }
.button.small { min-height: 34px; padding-inline: 10px; font-size: 12px; }
.button.wide { width: 100%; height: 47px; }
.button.danger { color: var(--red); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.form-error { min-height: 18px; margin: 0; color: var(--red); font-size: 12px; }
.app-header { position: sticky; top: 0; z-index: 30; display: flex; height: 70px; align-items: center; justify-content: space-between; border-bottom: 1px solid #dce5e3; background: rgba(255, 255, 255, .92); padding: 0 24px; backdrop-filter: blur(18px); }
.brand-lockup.compact .brand-mark { width: 42px; height: 42px; border-radius: 13px; font-size: 22px; }
.user-menu { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.page-shell { width: min(1560px, 100%); margin: 0 auto; padding: 26px 24px 60px; }
.project-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.breadcrumb { margin: 0; color: #94a3b8; font-size: 12px; font-weight: 750; }
.breadcrumb span { margin: 0 6px; }
.breadcrumb strong { color: #475569; }
.project-bar h1 { margin: 4px 0 0; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.035em; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.actions select { width: 230px; height: 38px; }
.notice { margin: -5px 0 18px; border: 1px solid #b7e2d8; border-radius: 12px; background: #ecfdf8; padding: 11px 14px; color: #075e54; font-size: 13px; }
.notice.error { border-color: #f3c7c2; background: #fff1f0; color: var(--red); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 20px; align-items: start; }
.content-stack, .result-stack { display: grid; gap: 18px; }
.result-stack { position: sticky; top: 90px; }
.panel { border: 1px solid var(--line); border-radius: 20px; background: white; padding: 22px; box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.section-heading h2 { margin: 4px 0 0; font-size: 19px; letter-spacing: -.015em; }
.eyebrow { margin: 0; color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.pill { display: inline-flex; min-height: 28px; align-items: center; border: 1px solid #c6e9e1; border-radius: 999px; background: var(--teal-soft); padding: 0 10px; color: #0b655e; font-size: 11px; font-weight: 800; white-space: nowrap; }
.form-grid { display: grid; gap: 15px; margin-top: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field-span-2 { grid-column: 1 / -1; }
.weather-card { margin-top: 18px; border: 1px solid #cde5df; border-radius: 17px; background: linear-gradient(135deg, #f8fcfb, #eef8f5); padding: 16px; }
.weather-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.weather-card-heading h3 { margin: 4px 0 0; font-size: 16px; }
.weather-location-grid { display: grid; grid-template-columns: 150px minmax(180px, .8fr) minmax(280px, 1.5fr); gap: 13px; }
.weather-station-context { margin-top: 13px; }
.weather-manual-context, .weather-library-context { display: grid; align-items: center; gap: 14px; border: 1px solid #d4e5e1; border-radius: 13px; background: white; padding: 12px 14px; }
.weather-manual-context { grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr); }
.weather-context-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.weather-context-copy strong { display: block; margin-bottom: 3px; color: var(--teal-dark); font-size: 12px; }
.weather-library-context { grid-template-columns: minmax(190px, 1fr) repeat(3, minmax(105px, .65fr)) auto; }
.weather-context-fact { min-width: 0; }
.weather-context-fact span { display: block; color: #71817e; font-size: 9px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.weather-context-fact strong { display: block; margin-top: 4px; overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.weather-context-fact.primary strong { color: var(--teal-dark); font-size: 14px; }
.weather-context-fact .weather-source { white-space: normal; }
.weather-coefficient-badge { border: 1px solid #bfded7; border-radius: 11px; background: var(--teal-soft); padding: 7px 10px; color: var(--teal-dark); font-size: 11px; font-weight: 850; white-space: nowrap; }
.weather-context-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
input.weather-library-value { background: #eef5f3; color: #47625d; }
.weather-library-dialog { width: min(1180px, calc(100% - 32px)); max-height: calc(100vh - 44px); overflow: hidden; border: 1px solid #bed8d2; border-radius: 22px; background: #f7faf9; padding: 0; color: var(--ink); box-shadow: 0 30px 90px rgba(16, 50, 44, .26); }
.weather-library-dialog::backdrop { background: rgba(15, 30, 35, .52); backdrop-filter: blur(4px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 1px solid #dce8e5; background: white; padding: 20px 22px; }
.dialog-heading h2 { margin: 4px 0 5px; font-size: 21px; }
.dialog-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.dialog-close { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid #d5dfdd; border-radius: 10px; background: white; color: #475569; font-size: 24px; line-height: 1; }
.dialog-close:hover { border-color: #7dd3c7; color: var(--teal); }
.ecau-export-button { border-color: #d9982a; background: linear-gradient(135deg, #fffaf0, #f2fbef); color: #245d3b; }
.ecau-export-button:hover { border-color: #ea9300; color: #176635; box-shadow: 0 6px 18px rgba(196, 128, 12, .12); }
.gep-v2-editor { margin: 16px 0; border: 1px solid #c8ddd7; border-radius: 14px; background: linear-gradient(135deg, #f7fbfa, #fffaf1); }
.gep-v2-editor summary { display: flex; cursor: pointer; list-style: none; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; color: #245d3b; font-weight: 800; }
.gep-v2-editor summary::-webkit-details-marker { display: none; }
.gep-v2-editor summary::after { content: "+"; display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e6f2ee; color: #17623b; font-size: 17px; }
.gep-v2-editor[open] summary::after { content: "−"; }
.gep-v2-editor summary small { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 500; }
.gep-v2-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border-top: 1px solid #d8e7e3; padding: 14px 15px 15px; }
.gep-v2-editor-grid label { display: grid; gap: 6px; color: #415550; font-size: 11px; font-weight: 700; }
.gep-v2-editor-grid textarea { width: 100%; resize: vertical; border: 1px solid #cbd9d6; border-radius: 10px; background: #fff; padding: 9px 10px; color: var(--ink); font: inherit; font-weight: 400; line-height: 1.45; }
.gep-v2-editor-grid textarea:focus { outline: 2px solid rgba(57, 169, 53, .2); border-color: #39a935; }
.ecau-export-dialog { width: min(830px, calc(100% - 32px)); overflow: hidden; border: 1px solid #bed8d2; border-radius: 22px; background: #f7faf9; padding: 0; color: var(--ink); box-shadow: 0 30px 90px rgba(16, 50, 44, .26); }
.ecau-export-dialog::backdrop { background: rgba(15, 30, 35, .52); backdrop-filter: blur(4px); }
.ecau-export-heading { border-top: 5px solid transparent; border-image: linear-gradient(90deg, #f39200 0 30%, #39a935 70% 100%) 1; }
.ecau-export-body { padding: 19px 22px 22px; }
.ecau-export-status { margin-bottom: 14px; border: 1px solid #cce2dd; border-radius: 12px; background: #eef8f5; padding: 10px 12px; color: #3e5f58; font-size: 11px; line-height: 1.45; }
.ecau-export-status.warning { border-color: #efd29a; background: #fff8e8; color: #7d5715; }
.ecau-export-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.ecau-export-choice { display: grid; min-height: 92px; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid #d7e3e0; border-radius: 16px; background: white; padding: 14px; color: var(--ink); text-align: left; transition: .18s ease; }
.ecau-export-choice:hover { transform: translateY(-2px); border-color: #7bc7b8; box-shadow: 0 12px 26px rgba(28, 55, 50, .08); }
.ecau-export-choice.featured { border-color: #9fcfbd; background: linear-gradient(135deg, #f7fcfa, #fffaf1); box-shadow: inset 4px 0 0 #39a935; }
.ecau-export-choice > span:nth-child(2) { min-width: 0; }
.ecau-export-choice strong, .ecau-export-choice small { display: block; }
.ecau-export-choice strong { font-size: 13px; line-height: 1.3; }
.ecau-export-choice small { margin-top: 4px; color: var(--muted); line-height: 1.35; }
.ecau-export-choice > b { border-radius: 999px; background: #eef4f2; padding: 5px 8px; color: #526762; font-size: 9px; text-transform: uppercase; }
.ecau-export-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; color: white; font-size: 15px; font-weight: 900; }
.ecau-export-icon.word { background: #2b579a; }
.ecau-export-icon.excel { background: #217346; }
.ecau-export-icon.pdf { background: #b42318; font-size: 10px; }
.ecau-export-help { margin: 14px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.weather-library-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); max-height: calc(100vh - 145px); overflow: hidden; }
.station-list-panel { min-height: 0; overflow-y: auto; border-right: 1px solid #dce8e5; background: #f0f6f4; padding: 16px; }
.station-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.station-list-heading h3 { margin: 0; font-size: 14px; }
.station-library-list { display: grid; gap: 8px; margin-top: 13px; }
.station-empty { border: 1px dashed #b9d1cb; border-radius: 13px; background: rgba(255,255,255,.65); padding: 18px 13px; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
.station-list-item { display: grid; gap: 5px; border: 1px solid #d7e4e1; border-radius: 13px; background: white; padding: 11px; }
.station-list-item.is-selected { border-color: #79c7b8; box-shadow: 0 0 0 2px rgba(45, 212, 191, .12); }
.station-list-item strong { color: var(--ink); font-size: 12px; }
.station-list-item p { margin: 0; color: var(--muted); font-size: 10px; }
.station-list-actions { display: flex; justify-content: flex-end; gap: 3px; margin-top: 3px; }
.station-form { min-height: 0; overflow-y: auto; padding: 19px 21px 21px; }
.station-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.station-form-heading h3 { margin: 4px 0 0; font-size: 17px; }
.station-completeness { border-radius: 999px; background: var(--teal-soft); padding: 6px 9px; color: var(--teal-dark); font-size: 9px; font-weight: 850; white-space: nowrap; }
.station-identity-grid { display: grid; grid-template-columns: 130px minmax(170px, .7fr) minmax(210px, 1fr); gap: 12px; }
.station-name-field { grid-column: 1 / -1; }
.station-source-field { grid-column: 2 / -1; }
.station-coefficients-wrap { margin-top: 16px; overflow: hidden; border: 1px solid #cbded9; border-radius: 14px; background: white; }
.station-coefficients-table th, .station-coefficients-table td { padding: 8px 11px; }
.station-coefficients-table thead th { background: #e4f1ee; color: var(--teal-dark); text-align: center; }
.station-coefficients-table tbody th { width: 32%; color: #475569; font-size: 11px; letter-spacing: 0; text-transform: none; }
.station-coefficients-table td { width: 34%; }
.station-coefficients-table input { height: 36px; text-align: right; }
.station-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 13px; }
.basin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.basin-tab { display: inline-flex; height: 36px; align-items: center; gap: 7px; border: 1px solid #d8e2e0; border-radius: 999px; background: white; padding: 0 13px; color: var(--muted); font-size: 12px; font-weight: 800; }
.basin-tab span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.basin-tab.active { border-color: var(--teal); background: var(--teal); color: white; box-shadow: 0 7px 18px rgba(15, 118, 110, .18); }
.basin-toolbar { display: grid; grid-template-columns: minmax(245px, 380px) minmax(250px, 1fr) auto; align-items: center; gap: 12px; border-radius: 15px; background: #f7f9f9; padding: 12px; }
.basin-toolbar > input { max-width: 380px; font-size: 15px; font-weight: 800; }
.basin-area-summary { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #c9e5df; border-radius: 11px; background: linear-gradient(135deg, #f6fbfa, var(--teal-soft)); padding: 7px 12px; }
.basin-area-summary > span { color: #53716b; font-size: 9px; font-weight: 900; letter-spacing: .055em; line-height: 1.25; text-transform: uppercase; }
.basin-area-summary strong { color: var(--teal-dark); font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.basin-area-summary strong small { color: var(--teal); font-size: 10px; font-weight: 850; }
.inline-actions { display: flex; gap: 4px; }
.surface-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 24px 0 10px; }
.surface-header h3 { margin: 0; font-size: 15px; }
.surface-header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.current-rain-choice { margin: 12px 0 4px; border: 1px solid #cdebe4; border-radius: 13px; background: #f0faf8; padding: 12px 14px; }
.current-rain-choice p { margin: 5px 0 0 27px; color: var(--muted); font-size: 11px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.checkbox-row input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--teal); }
.checkbox-row > span:first-child { color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #edf1f0; padding: 9px 7px; text-align: left; font-size: 12px; }
th { color: var(--muted); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
td input { height: 37px; min-width: 110px; }
.surface-name { min-width: 210px; }
.surface-comparison-wrap { margin-top: 10px; border: 1px solid #d7e2df; border-radius: 16px; background: white; box-shadow: 0 7px 22px rgba(31, 55, 50, .035); }
.surface-comparison-table { min-width: 940px; border-collapse: separate; border-spacing: 0; }
.surface-comparison-table th, .surface-comparison-table td { padding: 10px 9px; vertical-align: middle; }
.surface-comparison-table thead th { border-bottom: 1px solid #cfdad7; text-align: center; }
.surface-comparison-table thead th:first-child, .surface-comparison-table thead th:nth-child(2) { text-align: left; }
.surface-comparison-table .rain-group { padding-block: 12px; color: #172033; font-size: 12px; font-weight: 900; letter-spacing: .035em; }
.surface-comparison-table .current-rain-group { border-left: 2px solid #b3c991; background: var(--current); color: var(--current-ink); }
.surface-comparison-table .studied-rain-group { border-left: 2px solid #9eb9d7; background: var(--studied); color: var(--studied-ink); }
.surface-comparison-table .rain-subheader-row th { color: #354154; font-size: 11px; font-weight: 850; text-transform: none; }
.surface-comparison-table abbr { text-decoration: none; }
.surface-comparison-table .current-rain-subheader { background: var(--current-light); color: var(--current-ink); }
.surface-comparison-table .studied-rain-subheader { background: var(--studied-light); color: var(--studied-ink); }
.surface-comparison-table .current-rain-subheader:first-child, .surface-comparison-table tbody td.current-rain-cell:nth-child(3) { border-left: 2px solid #d2dfbf; }
.surface-comparison-table .studied-rain-subheader:nth-child(3), .surface-comparison-table tbody td.studied-rain-cell:nth-child(5) { border-left: 2px solid #c9d9e9; }
.surface-comparison-table tbody .current-rain-cell { background: #fbfcf7; }
.surface-comparison-table tbody .studied-rain-cell { background: #f8fbfe; }
.surface-comparison-table tbody tr:hover td { background-color: #f7faf9; }
.surface-comparison-table tbody tr:hover .current-rain-cell { background-color: #f2f7e9; }
.surface-comparison-table tbody tr:hover .studied-rain-cell { background-color: #eef5fb; }
.surface-comparison-table .surface-name-cell { width: 32%; }
.surface-comparison-table .surface-area-cell { width: 16%; }
.surface-comparison-table .coefficient-cell { width: 10%; }
.surface-comparison-table .active-area-cell { width: 13%; color: #334155; font-weight: 750; text-align: right; white-space: nowrap; }
.surface-comparison-table .surface-actions-cell { width: 9%; text-align: right; }
.surface-comparison-table td input { min-width: 82px; }
.surface-comparison-table tfoot th, .surface-comparison-table tfoot td { border-bottom: 0; padding: 12px 8px; font-weight: 900; }
.surface-comparison-table tfoot th { color: #172033; font-size: 12px; letter-spacing: 0; text-align: left; text-transform: none; }
.surface-comparison-table .current-rain-total { border-left: 1px solid #c6d8aa; background: var(--current); color: var(--current-ink); text-align: right; }
.surface-comparison-table .studied-rain-total { border-left: 1px solid #bfd2e5; background: var(--studied); color: var(--studied-ink); text-align: right; }
.rain-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.rain-result-card { overflow: hidden; border: 1px solid; border-radius: 16px; background: white; box-shadow: 0 8px 22px rgba(35, 55, 51, .045); }
.rain-result-card > header { display: flex; min-height: 65px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid; padding: 13px 15px; }
.rain-result-current { border-color: #d6e2bf; }
.rain-result-current > header { border-color: #d6e2bf; background: linear-gradient(135deg, var(--current-soft), var(--current-light)); }
.rain-result-studied { border-color: #cadbec; }
.rain-result-studied > header { border-color: #cadbec; background: linear-gradient(135deg, var(--studied-soft), var(--studied-light)); }
.rain-result-title { display: flex; min-width: 0; align-items: center; gap: 10px; }
.rain-result-title > div { min-width: 0; }
.rain-result-title p { margin: 0 0 2px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.rain-result-title strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.rain-result-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 255, 255, .75); }
.rain-result-current .rain-result-dot { background: var(--current-strong); }
.rain-result-studied .rain-result-dot { background: var(--studied-strong); }
.rain-coefficient { display: inline-flex; flex: 0 0 auto; align-items: baseline; gap: 5px; border: 1px solid rgba(70, 89, 72, .12); border-radius: 999px; background: rgba(255, 255, 255, .72); padding: 6px 9px; color: var(--muted); font-size: 9px; font-weight: 800; }
.rain-coefficient strong { color: var(--ink); font-size: 12px; }
.rain-result-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.rain-result-card dl > div { min-width: 0; border-right: 1px solid #edf1f0; padding: 14px 13px 15px; }
.rain-result-card dl > div:last-child { border-right: 0; }
.rain-result-card dt { min-height: 25px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .045em; line-height: 1.25; text-transform: uppercase; }
.rain-result-card dd { margin: 5px 0 0; color: var(--ink); font-size: 15px; font-weight: 900; line-height: 1.2; }
.rain-result-card dd span { color: var(--muted); font-size: 11px; }
.rain-result-card small { display: block; margin-top: 4px; color: #83918e; font-size: 9px; line-height: 1.25; }
.rain-result-current .rain-result-highlight { background: var(--current-soft); }
.rain-result-current .rain-result-highlight dd { color: var(--current-ink); }
.rain-result-studied .rain-result-highlight { background: var(--studied-soft); }
.rain-result-studied .rain-result-highlight dd { color: var(--studied-ink); }
.outlet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; border: 1px solid #cdebe4; border-radius: 16px; background: #f0faf8; padding: 16px; }
.series-note { margin: 16px 0 0; border-left: 3px solid #2dd4bf; padding: 8px 12px; color: #46605b; background: #f4fbf9; font-size: 12px; line-height: 1.45; }
.chart { height: 235px; width: 100%; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .grid-line { stroke: #e4ecea; stroke-dasharray: 4 4; }
.chart .axis-label { fill: #718096; font-size: 10px; }
.chart .area { fill: url(#area-fill); }
.chart .line { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .tm-line { stroke: #f59e0b; stroke-width: 2; stroke-dasharray: 6 5; }
.chart .tm-badge { fill: #fff7ed; stroke: #f59e0b; stroke-width: 1; }
.chart .tm-label { fill: #9a3412; font-size: 10px; font-weight: 850; }
.chart .tm-point { fill: #f59e0b; stroke: white; stroke-width: 3; }
.chart .tm-marker.out-of-range .tm-line { stroke-dasharray: 3 4; }
.method-table-card { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.method-table-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.method-table-heading h3 { margin: 4px 0 5px; font-size: 16px; letter-spacing: -.01em; }
.method-table-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.tm-summary { display: grid; min-width: 168px; gap: 3px; border: 1px solid #f4c477; border-radius: 13px; background: #fff8ec; padding: 9px 12px; text-align: right; }
.tm-summary small { color: #9a5d0b; font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.tm-summary strong { color: #8a4b08; font-size: 14px; }
.method-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 15px 0 12px; overflow: hidden; border: 1px solid #cce5df; border-radius: 14px; background: var(--teal-soft); }
.method-facts > div { min-width: 0; border-right: 1px solid #cce5df; padding: 11px 13px; }
.method-facts > div:last-child { border-right: 0; }
.method-facts span { display: block; color: #52706b; font-size: 9px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.method-facts strong { display: block; margin-top: 3px; color: var(--teal-dark); font-size: 14px; }
.method-facts small { display: block; margin-top: 2px; color: #718c87; }
.method-table-wrap { overflow-x: auto; border: 1px solid #cfdedb; border-radius: 15px; background: white; box-shadow: 0 7px 22px rgba(31, 55, 50, .035); }
.method-rain-table { min-width: 1050px; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.method-rain-table th, .method-rain-table td { padding: 9px 10px; text-align: right; vertical-align: middle; }
.method-rain-table thead th { border-right: 1px solid #c8ded9; border-bottom-color: #b9d4ce; background: linear-gradient(180deg, #e7f4f1, #dceee9); color: var(--teal-dark); font-size: 10px; letter-spacing: .025em; text-transform: none; }
.method-rain-table thead th:last-child { border-right: 0; }
.method-rain-table thead th span { display: block; font-weight: 900; }
.method-rain-table thead th small { display: block; margin-top: 5px; color: #58736e; font-size: 8px; font-weight: 700; line-height: 1.3; text-transform: none; }
.method-rain-table th:first-child, .method-rain-table td:first-child { text-align: left; }
.method-rain-table tbody td { color: #334155; }
.method-rain-table tbody tr:nth-child(even):not(.is-critical) td { background: #fafcfb; }
.method-rain-table tbody tr:hover:not(.is-critical) td { background: #f1f8f6; }
.method-rain-table tbody tr.is-critical td { border-top: 1px solid #f4c477; border-bottom: 1px solid #f4c477; background: #fff3e2; color: #713f12; }
.method-rain-table tbody tr.is-critical td:first-child { box-shadow: inset 4px 0 0 #f59e0b; }
.method-rain-table .method-duration { position: relative; min-width: 132px; }
.method-rain-table .method-duration strong { display: block; color: inherit; }
.method-rain-table .method-duration small { display: block; margin-top: 2px; color: #7b8b87; }
.method-rain-table .method-volume strong { color: var(--teal-dark); }
.method-rain-table tr.is-critical .method-volume strong { color: #8a4b08; }
.critical-tag { display: inline-flex; margin-top: 5px; border-radius: 999px; background: #f59e0b; padding: 3px 7px; color: white; font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.method-rain-table tfoot th, .method-rain-table tfoot td { border-bottom: 0; background: #dceee9; color: var(--teal-dark); font-weight: 900; }
.method-rain-table tfoot th { font-size: 11px; letter-spacing: 0; text-transform: none; }
.method-rain-table tfoot td { font-size: 13px; }
.method-table-conclusion { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; border-radius: 12px; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); padding: 11px 14px; color: white; }
.method-table-conclusion span { color: #c7f5ed; font-size: 10px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.method-table-conclusion strong { text-align: right; font-size: 13px; }
.method-table-warning { margin: 10px 0 0; border-left: 3px solid #f59e0b; border-radius: 0 9px 9px 0; background: #fff8ec; padding: 8px 10px; color: #7a5412; font-size: 10px; line-height: 1.45; }
.volume-card { overflow: hidden; border-radius: 22px; color: white; background: radial-gradient(circle at 92% 5%, rgba(94, 234, 212, .3), transparent 32%), linear-gradient(145deg, var(--teal), var(--teal-dark)); padding: 24px; box-shadow: 0 22px 50px rgba(6, 78, 59, .22); }
.volume-card > p { margin: 0; color: #b8fff2; font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.volume-card > div { display: flex; align-items: baseline; gap: 8px; margin: 11px 0 24px; }
.volume-card > div strong { font-size: 51px; letter-spacing: -.055em; }
.volume-card > div span { color: #b8fff2; font-size: 19px; font-weight: 800; }
.volume-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
.volume-card dt { color: #a7f3e7; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.volume-card dd { margin: 4px 0 0; font-weight: 850; }
.summary-card h2 { margin: 4px 0 12px; font-size: 17px; }
.summary-card dl { margin: 0; }
.metric { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #eef2f1; padding: 11px 0; font-size: 12px; }
.metric dt { color: var(--muted); }
.metric dd { margin: 0; font-weight: 850; }
.totals-card { display: flex; align-items: center; justify-content: space-between; }
.totals-card strong { display: block; margin-top: 4px; font-size: 26px; }
.validation { border: 1px solid #bfe5d4; border-radius: 16px; background: #edfbf5; padding: 15px; color: #155d43; font-size: 12px; }
.validation.warning { border-color: #f0d8a0; background: var(--amber-soft); color: #7a5412; }
.validation strong { display: block; margin-bottom: 5px; }
.validation ul { margin: 7px 0 0; padding-left: 18px; }
.swmm-card { display: grid; gap: 12px; }
.swmm-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.swmm-heading strong { display: block; margin-top: 4px; font-size: 16px; }
.swmm-status { border-radius: 999px; background: #e7f0ff; padding: 6px 9px; color: #2459a9; font-size: 10px; font-weight: 850; white-space: nowrap; }
.swmm-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.swmm-result { border-radius: 12px; background: #f0faf8; padding: 12px; color: #155d43; font-size: 12px; line-height: 1.55; }
.swmm-result.error { background: #fff1f0; color: var(--red); }
.swmm-result strong { display: block; font-size: 15px; }
.method-note { border-radius: 15px; background: #e9eff3; padding: 15px; color: #425466; font-size: 11px; line-height: 1.48; }
.method-note p { margin: 5px 0 0; }
.module-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.module-tab { display: flex; min-height: 66px; align-items: center; gap: 12px; border: 1px solid #d7e2df; border-radius: 16px; background: white; padding: 11px 15px; color: var(--muted); text-align: left; box-shadow: 0 5px 18px rgba(28, 55, 50, .035); }
.module-tab:hover { border-color: #8fd5c7; color: var(--teal-dark); }
.module-tab.active { border-color: var(--teal); background: linear-gradient(135deg, #f7fffd, var(--teal-soft)); color: var(--teal-dark); box-shadow: 0 8px 25px rgba(15, 118, 110, .1); }
.module-tab-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: #eef3f2; color: #61726e; font-size: 21px; }
.module-tab-icon.water { font-size: 25px; }
.module-tab.active .module-tab-icon { background: var(--teal); color: white; }
.module-tab > span:last-child { display: grid; gap: 3px; }
.module-tab strong { color: inherit; font-size: 14px; }
.module-tab small { color: var(--muted); font-size: 10px; }
.management-module { display: grid; min-width: 0; gap: 18px; }
.management-module > *, .management-editor-layout > *, .management-visual-panel, .management-hydrograph-panel { min-width: 0; }
.management-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: radial-gradient(circle at 90% 15%, rgba(45, 212, 191, .16), transparent 27%), white; }
.management-hero-copy h2 { margin: 4px 0 7px; font-size: 22px; }
.management-hero-copy > p:last-child, .section-copy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.management-scenario-switch { display: grid; width: min(100%, 520px); flex: 0 0 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.management-scenario-tab { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; align-items: center; border: 1px solid #cfdedb; border-radius: 14px; background: #fff; padding: 10px 12px; color: var(--muted); text-align: left; }
.management-scenario-tab > span { grid-row: 1 / 3; border-radius: 8px; background: #eef4f2; padding: 7px; color: #61736e; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.management-scenario-tab strong { color: var(--ink); font-size: 12px; }
.management-scenario-tab small { font-size: 9px; }
.management-scenario-tab.active { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 6px 18px rgba(15, 118, 110, .12); }
.management-scenario-tab.active > span { background: var(--teal); color: #fff; }
.management-scenario-tab.active strong { color: var(--teal-dark); }
.management-scenario-context { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #cfe2dd; border-left: 5px solid var(--teal); border-radius: 15px; background: #f6fbf9; padding: 13px 16px; }
.management-scenario-context > div { display: grid; gap: 3px; }
.management-scenario-context span { color: var(--teal-dark); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.management-scenario-context strong { font-size: 13px; }
.management-scenario-context p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.management-scenario-context em { border-radius: 999px; background: #e5f3ef; padding: 7px 10px; color: var(--teal-dark); font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.management-scenario-context.design { border-left-color: #4f82c3; background: #f6f9fd; }
.management-scenario-context.needs-sync { border-color: #dfc387; border-left-color: #d2941f; background: #fffaf0; }
.management-outlet-control .section-heading, .management-hydrograph-panel .section-heading { margin-bottom: 14px; }
.management-outlet-control-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)) repeat(2, minmax(150px, .8fr)); gap: 11px; }
.management-outlet-control-grid > label, .management-outlet-control-grid > article { display: grid; min-width: 0; align-content: start; gap: 5px; border: 1px solid #d9e5e2; border-radius: 13px; background: #fbfdfc; padding: 11px; }
.management-outlet-control-grid > label > span, .management-outlet-control-grid > article > span { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
.management-outlet-control-grid > label > small, .management-outlet-control-grid > article > small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.management-outlet-control-grid > article { justify-content: stretch; background: linear-gradient(145deg, #f7fbfa, #edf7f5); }
.management-outlet-control-grid > article strong { align-self: center; color: var(--teal-dark); font-size: 16px; font-variant-numeric: tabular-nums; }
.management-outlet-control-grid > label.is-disabled { opacity: .58; }
.management-outlet-kpis { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.management-outlet-kpis > span { display: grid; gap: 3px; min-width: 135px; border: 1px solid #cfe0dc; border-radius: 11px; background: #f6faf9; padding: 8px 10px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.management-outlet-kpis strong { color: var(--teal-dark); font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; }
.management-hydrograph-actions { display: grid; flex: 0 1 auto; justify-items: end; gap: 8px; }
.management-outlet-hydrograph { position: relative; overflow: auto; width: 100%; height: clamp(230px, 30vh, 290px); min-height: 0; border: 1px solid #d5e2df; border-radius: 15px; background: linear-gradient(180deg, #fbfdfd 0%, #f4f9f8 100%); scrollbar-color: #9bb4ae #edf3f1; scrollbar-width: thin; }
.hydrograph-stage { position: relative; flex: none; margin: 0 auto; transition: width .18s ease, height .18s ease; }
.hydrograph-stage svg { display: block; width: 100%; height: 100%; }
.hydro-grid { stroke: #dce7e5; stroke-width: 1; stroke-dasharray: 3 4; }
.hydro-axis { stroke: #829690; stroke-width: 1.2; }
.hydro-axis-label { fill: #647771; font-size: 9px; font-weight: 750; }
.hydro-title-label { fill: #3f5b55; font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.hydro-area { fill: rgba(79, 130, 195, .10); }
.hydro-total { fill: none; stroke: #0f766e; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.hydro-regulated { fill: none; stroke: #4f82c3; stroke-width: 2.2; stroke-linejoin: round; }
.hydro-residual { fill: none; stroke: #d97706; stroke-width: 2.2; stroke-dasharray: 6 4; }
.hydro-authorized { fill: none; stroke: #b42318; stroke-width: 1.8; stroke-dasharray: 8 5; }
.hydro-peak { fill: #0f766e; stroke: white; stroke-width: 2; }
.hydro-legend text { fill: #536762; font-size: 9px; font-weight: 800; }
.hydro-empty { display: grid; width: 100%; height: 100%; min-height: 0; place-content: center; gap: 5px; padding: 20px; color: var(--muted); text-align: center; }
.hydro-empty strong { color: var(--ink); font-size: 13px; }
.management-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.management-summary article { display: grid; gap: 5px; min-height: 104px; align-content: center; border: 1px solid var(--line); border-radius: 17px; background: white; padding: 16px; box-shadow: var(--shadow); }
.management-summary article > span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .065em; text-transform: uppercase; }
.management-summary article strong { color: var(--teal-dark); font-size: 22px; font-variant-numeric: tabular-nums; }
.management-summary article small { font-size: 10px; }
.management-summary article:last-child strong { color: var(--red); }
.management-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.management-validation { position: sticky; top: 90px; }
.management-validation p { margin: 7px 0 0; }
.management-basin-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 15px; background: linear-gradient(135deg, #f7faf9, var(--teal-soft)); padding: 13px 15px; }
.management-basin-heading > div > span { display: block; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.management-basin-heading > div > strong { display: block; margin-top: 3px; color: var(--teal-dark); font-size: 17px; }
.management-basin-actions { display: flex; gap: 3px; margin-top: 7px; }
.management-basin-heading dl { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 9px; margin: 0; }
.management-basin-heading dl > div { border-left: 1px solid #bddfd7; padding-left: 11px; }
.management-basin-heading dt { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.management-basin-heading dd { margin: 3px 0 0; color: var(--ink); font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.routing-card { margin-top: 15px; border: 1px solid #d7e3e0; border-radius: 16px; background: #fbfdfc; padding: 14px; }
.routing-heading, .facility-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.routing-heading h3, .facility-section-heading h3 { margin: 3px 0 0; font-size: 15px; }
.routing-volume { border-radius: 999px; background: #e4f2ef; padding: 7px 10px; color: var(--teal-dark); font-size: 12px; font-weight: 900; }
.routing-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; margin-top: 12px; }
.facility-section-heading { margin: 23px 0 11px; }
.facility-list { display: grid; gap: 12px; }
.facility-empty { border: 1px dashed #b9ccc7; border-radius: 15px; background: #fafcfb; padding: 22px; color: var(--muted); text-align: center; }
.facility-empty strong { color: var(--ink); }
.facility-empty p { margin: 5px auto 0; max-width: 610px; font-size: 11px; line-height: 1.5; }
.facility-card { overflow: hidden; border: 1px solid #d9e4e1; border-radius: 16px; background: white; }
.facility-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e3ebe9; background: #f8faf9; padding: 12px; }
.facility-edit-fields { min-width: 0; flex: 1; margin: 0; border: 0; padding: 0; }
.facility-edit-fields:disabled { opacity: 1; }
.facility-origin-line { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.facility-origin-line small { color: var(--muted); font-size: 9px; }
.facility-origin { display: inline-flex; width: max-content; border-radius: 999px; padding: 4px 8px; font-size: 8px; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; }
.facility-origin.current { background: #e6f4f0; color: var(--teal-dark); }
.facility-origin.inherited { background: #e6eef9; color: #315f98; }
.facility-origin.complement { background: #fff0d9; color: #8a5b0d; }
.facility-card.is-inherited { border-color: #c8d8ea; }
.facility-card.is-inherited .facility-heading { background: #f7f9fc; }
.facility-card.is-inherited input:disabled, .facility-card.is-inherited select:disabled { border-color: #d6e0eb; background: #edf2f7; color: #496071; opacity: 1; }
.facility-identity { display: grid; flex: 1; grid-template-columns: minmax(170px, 1fr) minmax(220px, 1.25fr) minmax(150px, .75fr); gap: 10px; }
.facility-heading input, .facility-heading select, .facility-parameters input, .facility-parameters select { height: 38px; }
.facility-parameters { display: grid; grid-template-columns: repeat(4, minmax(135px, 1fr)); gap: 11px; padding: 13px; }
.facility-guidance { grid-column: 1 / -1; margin: 0; border-left: 3px solid #4f9d91; border-radius: 8px; background: #eef8f5; padding: 9px 11px; color: #4f625e; font-size: 10px; line-height: 1.5; }
.swale-formula-field { grid-column: span 2; }
.facility-heading select:disabled { border-color: #c8ddd7; background: #eaf5f2; color: var(--teal-dark); cursor: not-allowed; opacity: 1; }
.fixed-parameter { display: grid; min-height: 38px; align-content: center; gap: 4px; border: 1px solid #dce5e3; border-radius: 10px; background: #f4f7f6; padding: 6px 10px; }
.fixed-parameter span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.fixed-parameter strong { color: var(--ink); font-size: 12px; }
.fixed-parameter.wide-parameter { grid-column: span 2; }
.facility-result-row { display: grid; grid-template-columns: repeat(3, minmax(120px, .7fr)) minmax(230px, 1.8fr); align-items: stretch; border-top: 1px solid #e4ebe9; background: #f8fcfb; }
.facility-result-row > div, .facility-result-row > p { display: grid; align-content: center; gap: 3px; margin: 0; border-right: 1px solid #e0e9e7; padding: 10px 13px; }
.facility-result-row > div span { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.facility-result-row > div strong { color: var(--teal-dark); font-size: 14px; font-variant-numeric: tabular-nums; }
.facility-result-row > p { border-right: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.management-visual-panel .section-heading { margin-bottom: 14px; }
.synoptic-panel-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.visual-zoom-controls, .synoptic-zoom-controls { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid #cbdad7; border-radius: 11px; background: #fff; box-shadow: 0 3px 10px rgba(20, 62, 54, .07); }
.visual-zoom-controls button { height: 34px; border: 0; border-right: 1px solid #dbe5e3; background: #fff; color: var(--teal-dark); font-family: inherit; font-weight: 900; cursor: pointer; }
.visual-zoom-controls button:last-child { border-right: 0; }
.visual-zoom-controls button:hover:not(:disabled) { background: #eaf5f2; }
.visual-zoom-controls button:focus-visible { position: relative; z-index: 2; outline: 2px solid #0ea5e9; outline-offset: -2px; }
.visual-zoom-controls button:disabled { color: #a7b7b3; cursor: not-allowed; }
.visual-zoom-button, .synoptic-zoom-button { width: 38px; font-size: 18px; }
.visual-zoom-value, .synoptic-zoom-value { min-width: 62px; padding: 0 9px; font-size: 10px; font-variant-numeric: tabular-nums; }
.visual-zoom-value.is-fit { background: #edf8f5; color: #0b655e; }
.synoptic-legend { display: flex; flex-wrap: wrap; gap: 8px 15px; margin: -3px 0 11px; color: #61736e; font-size: 9px; font-weight: 750; }
.synoptic-legend span { display: inline-flex; align-items: center; gap: 6px; }
.synoptic-legend i { width: 10px; height: 10px; border: 2px solid transparent; border-radius: 50%; background: #75b99b; }
.synoptic-legend i.regulated { background: #4f82c3; }
.synoptic-legend i.transfer { background: #d7ae5b; }
.synoptic-legend i.error { background: #dc776f; }
.synoptic-legend i.active { border-color: #0284c7; background: #e0f2fe; box-shadow: 0 0 0 2px rgba(2, 132, 199, .14); }
.management-synoptic { position: relative; overflow: auto; width: 100%; height: clamp(300px, 42vh, 460px); min-height: 0; border: 1px solid #cfddda; border-radius: 18px; background-color: #f7faf9; background-image: linear-gradient(rgba(87, 113, 107, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(87, 113, 107, .055) 1px, transparent 1px), radial-gradient(circle at 15% 10%, rgba(45, 212, 191, .10), transparent 27%); background-size: 28px 28px, 28px 28px, auto; scrollbar-color: #9bb4ae #edf3f1; scrollbar-width: thin; }
.synoptic-stage { position: relative; flex: none; margin: 0 auto; transition: width .18s ease, height .18s ease; }
.management-synoptic svg { display: block; }
.synoptic-lane rect { fill: rgba(255, 255, 255, .56); stroke: rgba(141, 164, 158, .35); stroke-width: 1; stroke-dasharray: 5 5; }
.synoptic-lane text { fill: #71837e; font-size: 8px; font-weight: 900; letter-spacing: 1px; }
.synoptic-lane.outlet-lane rect { fill: rgba(232, 243, 251, .52); stroke: rgba(83, 135, 174, .30); }
.synoptic-lane.outlet-lane text { fill: #4b7390; }
.synoptic-edge-line { fill: none; stroke: #829b95; stroke-width: 2.4; }
.synoptic-edge-label rect { fill: rgba(255, 255, 255, .96); stroke: #cfddda; stroke-width: 1; }
.synoptic-edge-label text { fill: #536a65; font-size: 9px; font-weight: 900; }
.synoptic-edge.is-active .synoptic-edge-line { stroke: #0284c7; stroke-width: 4; }
.synoptic-edge.is-active .synoptic-edge-label rect { fill: #e7f5fc; stroke: #7dc4e5; }
.synoptic-edge.is-active .synoptic-edge-label text { fill: #075985; }
.synoptic-edge.has-error .synoptic-edge-line { stroke: #d7544a; stroke-dasharray: 7 5; }
.synoptic-edge.has-error .synoptic-edge-label rect { fill: #fff0ee; stroke: #e7a8a3; }
.synoptic-edge.has-error .synoptic-edge-label text { fill: #a52d25; }
.synoptic-flow-dot { fill: #38bdf8; stroke: #fff; stroke-width: 2.5; filter: drop-shadow(0 1px 3px rgba(2, 132, 199, .38)); }
#synoptic-arrow path { fill: #748d87; }
#synoptic-arrow-error path { fill: #d7544a; }
.synoptic-node, .synoptic-outlet { cursor: pointer; }
.synoptic-node .node-card, .synoptic-outlet .node-card { fill: rgba(255, 255, 255, .98); stroke: #c7d7d3; stroke-width: 1.5; filter: url(#synoptic-shadow); }
.synoptic-node .node-accent { fill: #75b99b; }
.synoptic-node.has-transfer .node-accent { fill: #d7ae5b; }
.synoptic-node.has-error .node-accent { fill: #dc776f; }
.synoptic-node.is-selected .node-card { fill: #f0fbf8; stroke: var(--teal); stroke-width: 3; }
.synoptic-node.is-selected .node-accent { fill: #0f766e; }
.synoptic-outlet .node-card { fill: #eef7fd; stroke: #77a6c7; }
.synoptic-outlet .node-accent { fill: #4f82c3; }
.synoptic-outlet.is-selected .node-card { stroke: #0284c7; stroke-width: 3; }
.node-water-icon { fill: #d8f1ec; stroke: #4f9d91; stroke-width: 1.5; }
.synoptic-outlet .node-water-icon { fill: #dceefa; stroke: #4f82c3; }
.synoptic-node text, .synoptic-outlet text { pointer-events: none; }
.synoptic-node .node-kicker, .synoptic-outlet .node-kicker { fill: #627671; font-size: 8px; font-weight: 900; letter-spacing: 1px; }
.synoptic-node .node-title, .synoptic-outlet .node-title { fill: var(--ink); font-size: 14px; font-weight: 900; }
.synoptic-node .node-value, .synoptic-outlet .node-value { fill: var(--teal-dark); font-size: 12px; font-weight: 900; }
.synoptic-node .node-detail { fill: #64748b; font-size: 9px; }
.synoptic-node .node-managed, .synoptic-outlet .node-outlet-balance { fill: #506560; font-size: 8px; font-weight: 800; }
.synoptic-node .node-divider { stroke: #d9e5e2; stroke-width: 1; }
.synoptic-outlet .node-divider { stroke: #c9dce9; stroke-width: 1; }
.node-status rect { fill: #e5f4ee; stroke: #add8c4; stroke-width: 1; }
.node-status text { fill: #286b4e; font-size: 7px; font-weight: 900; }
.has-transfer .node-status rect { fill: #fff5df; stroke: #e7cd94; }
.has-transfer .node-status text { fill: #8a5b0d; }
.has-error .node-status rect { fill: #fff0ee; stroke: #e8b0ab; }
.has-error .node-status text { fill: #a5332b; }
.synoptic-node .node-facilities-title { fill: #71817e; font-size: 6.5px; font-weight: 900; letter-spacing: .65px; }
.node-facility-background { fill: #f6f9f8; stroke: #e0e9e7; stroke-width: 1; }
.node-facility-background.empty { fill: #fff9ee; stroke: #edddb8; stroke-dasharray: 4 3; }
.synoptic-node .node-facility-name { fill: var(--ink); font-size: 9px; font-weight: 850; }
.synoptic-node .node-facility-meta { fill: #61726e; font-size: 7px; font-weight: 700; }
.synoptic-node .node-facility-volume { fill: var(--teal-dark); font-size: 8px; font-weight: 900; font-variant-numeric: tabular-nums; }
.synoptic-node .node-empty { fill: #956617; font-size: 9px; font-weight: 850; }
.water-path-summary { display: flex; align-items: center; gap: 9px; margin-top: 10px; border-radius: 12px; background: #eef6f8; padding: 10px 12px; }
.water-path-summary > span { color: #537182; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.water-path-summary strong { color: #164e63; font-size: 12px; }
.water-path-summary i { margin: 0 4px; color: #0284c7; font-style: normal; }
.water-path-summary em { margin-left: auto; color: var(--muted); font-size: 10px; font-style: normal; }
.pill.is-alert { border-color: #f1cf91; background: #fff5df; color: #8a560a; }
.map-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.file-button { cursor: pointer; }
.map-background-name { margin: -5px 0 9px; color: var(--muted); font-size: 10px; }
.water-path-map { position: relative; overflow: hidden; width: 100%; height: clamp(280px, 42vh, 440px); min-height: 0; border: 1px solid #cad9d6; border-radius: 17px; background: #e8efed; touch-action: none; }
.map-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: white; opacity: .82; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 5px; color: #71817e; text-align: center; background-image: linear-gradient(rgba(93, 120, 114, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(93, 120, 114, .08) 1px, transparent 1px); background-size: 32px 32px; }
.map-placeholder strong { font-size: 14px; }
.map-placeholder span { font-size: 10px; }
.water-path-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-flow-line { fill: none; stroke: rgba(65, 91, 86, .72); stroke-width: 3; vector-effect: non-scaling-stroke; }
.map-flow-line.is-active { stroke: #0284c7; stroke-width: 5; }
#map-arrow path { fill: #526d67; }
.map-water-drop { fill: #38bdf8; stroke: white; stroke-width: 3; vector-effect: non-scaling-stroke; }
.map-basin-node { position: absolute; z-index: 3; display: grid; min-width: 118px; max-width: 160px; transform: translate(-50%, -50%); border: 2px solid #86afa6; border-radius: 13px; background: rgba(255, 255, 255, .94); padding: 8px 10px; color: var(--ink); box-shadow: 0 7px 20px rgba(22, 44, 39, .15); text-align: left; touch-action: none; }
.map-basin-node.is-selected { border-color: #0284c7; box-shadow: 0 0 0 4px rgba(14, 165, 233, .18), 0 8px 22px rgba(22, 44, 39, .16); }
.map-basin-node > span { color: var(--teal); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.map-basin-node > strong { overflow: hidden; margin-top: 2px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.map-basin-node > small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.map-outlet-node { position: absolute; z-index: 3; right: 1%; top: 50%; display: grid; max-width: 120px; transform: translateY(-50%); border: 2px solid #6ca3c5; border-radius: 13px; background: rgba(235, 247, 255, .95); padding: 8px 10px; box-shadow: 0 7px 20px rgba(22, 44, 39, .12); }
.map-outlet-node span { color: #236384; font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.map-outlet-node strong { overflow: hidden; margin-top: 2px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.map-drag-hint { position: absolute; z-index: 2; left: 10px; bottom: 9px; border-radius: 8px; background: rgba(255,255,255,.9); padding: 5px 8px; color: #536762; font-size: 9px; }
.management-balance-table { min-width: 2320px; }
.management-balance-table th, .management-balance-table td { text-align: right; font-variant-numeric: tabular-nums; }
.management-balance-table th:first-child, .management-balance-table td:first-child, .management-balance-table th:nth-child(18), .management-balance-table td:nth-child(18), .management-balance-table th:last-child, .management-balance-table td:last-child { text-align: left; }
.management-balance-table tbody th { color: var(--ink); font-size: 11px; letter-spacing: 0; text-transform: none; }
.management-balance-table tfoot th, .management-balance-table tfoot td { border-bottom: 0; background: var(--teal-soft); color: var(--teal-dark); font-weight: 900; }
.balance-badge { display: inline-flex; border-radius: 999px; padding: 4px 7px; font-size: 8px; font-weight: 900; white-space: nowrap; }
.balance-badge.ok { background: #e5f7ee; color: #176143; }
.balance-badge.transfer { background: #fff3dc; color: #8a570d; }
.balance-badge.error { background: #fff0ee; color: var(--red); }
.management-function-totals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.management-function-totals > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 12px; background: #f2f7f6; padding: 10px 12px; }
.management-function-totals span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.management-function-totals strong { color: var(--teal-dark); font-size: 13px; }
.print-report, .ecau-print-report { display: none; }
@media (max-width: 1180px) { .layout { grid-template-columns: 1fr; } .result-stack { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); } .method-note, .validation, .swmm-card { grid-column: 1 / -1; } .management-editor-layout { grid-template-columns: 1fr; } .management-validation { position: static; } .facility-identity { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facility-identity label:first-child { grid-column: 1 / -1; } .management-outlet-control-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .project-bar { align-items: flex-start; flex-direction: column; } .actions { justify-content: flex-start; } .form-grid.four, .outlet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .weather-location-grid { grid-template-columns: 130px minmax(0, 1fr); } .weather-location-grid label:last-child { grid-column: 1 / -1; } .weather-library-context { grid-template-columns: repeat(2, minmax(0, 1fr)); } .weather-library-context .button { justify-self: start; } .weather-library-layout { grid-template-columns: 240px minmax(0, 1fr); } .station-identity-grid { grid-template-columns: 120px minmax(0, 1fr); } .station-source-field { grid-column: 1 / -1; } .basin-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .basin-toolbar > input { max-width: none; } .basin-toolbar .inline-actions { grid-column: 1 / -1; justify-content: flex-end; } }
@media (max-width: 760px) { .rain-results, .management-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .management-hero { align-items: stretch; flex-direction: column; } .management-scenario-switch { width: 100%; } .management-scenario-context { align-items: stretch; flex-direction: column; } .management-basin-heading { align-items: stretch; flex-direction: column; } .routing-grid, .facility-parameters, .management-outlet-control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facility-result-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .facility-result-row > p { grid-column: 1 / -1; border-top: 1px solid #e0e9e7; } .management-outlet-kpis { justify-content: flex-start; } }
@media (max-width: 640px) { .app-header { height: 62px; padding: 0 14px; } .brand-lockup.compact .brand-mark { width: 36px; height: 36px; } .user-menu #user-name { display: none; } .page-shell { padding: 18px 12px 45px; } .panel { padding: 16px; border-radius: 16px; } .actions { width: 100%; } .actions select { width: 100%; } .actions .button { flex: 1 1 auto; } .form-grid.two, .form-grid.four, .outlet-grid, .result-stack, .weather-location-grid, .weather-manual-context, .weather-library-context { grid-template-columns: 1fr; } .weather-card { padding: 13px; } .weather-card-heading, .dialog-heading { align-items: stretch; flex-direction: column; } .weather-location-grid label:last-child { grid-column: auto; } .weather-library-dialog { width: calc(100% - 18px); max-height: calc(100vh - 18px); } .weather-library-layout { display: block; max-height: calc(100vh - 145px); overflow-y: auto; } .station-list-panel { max-height: 240px; border-right: 0; border-bottom: 1px solid #dce8e5; } .station-form { overflow: visible; } .station-identity-grid { grid-template-columns: 1fr; } .station-name-field, .station-source-field { grid-column: auto; } .station-form-actions { align-items: stretch; flex-direction: column-reverse; } .volume-card dl { grid-template-columns: 1fr 1fr; } .volume-card dl > div:last-child { grid-column: 1 / -1; } .basin-heading, .surface-header, .method-table-heading, .method-table-conclusion, .map-heading { align-items: stretch; flex-direction: column; } .basin-toolbar { grid-template-columns: 1fr; } .basin-toolbar .inline-actions { grid-column: auto; justify-content: flex-start; } .basin-area-summary { align-items: flex-start; flex-direction: column; gap: 3px; } .inline-actions { flex-wrap: wrap; } .rain-result-card dl, .method-facts { grid-template-columns: 1fr; } .rain-result-card dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; border-right: 0; border-bottom: 1px solid #edf1f0; padding: 11px 13px; } .rain-result-card dl > div:last-child { border-bottom: 0; } .rain-result-card dt { min-height: 0; } .rain-result-card dd { margin: 0; text-align: right; } .rain-result-card small { grid-column: 1 / -1; margin: 0; text-align: right; } .method-facts > div { border-right: 0; border-bottom: 1px solid #cce5df; } .method-facts > div:last-child { border-bottom: 0; } .tm-summary { min-width: 0; text-align: left; } .method-table-conclusion strong { text-align: left; } .login-card { padding: 24px; border-radius: 22px; } .module-navigation { grid-template-columns: 1fr; } .management-summary, .routing-grid, .facility-identity, .facility-parameters, .management-basin-heading dl, .management-function-totals, .management-outlet-control-grid { grid-template-columns: 1fr; } .facility-identity label:first-child, .fixed-parameter.wide-parameter, .swale-formula-field { grid-column: auto; } .facility-heading { align-items: stretch; flex-direction: column; } .facility-heading .button { align-self: flex-end; } .facility-result-row { grid-template-columns: 1fr; } .facility-result-row > div, .facility-result-row > p { border-right: 0; border-bottom: 1px solid #e0e9e7; } .synoptic-panel-actions { justify-content: flex-start; } .water-path-summary { align-items: flex-start; flex-direction: column; } .water-path-summary em { margin-left: 0; } .water-path-map { min-height: 330px; } .map-basin-node { min-width: 96px; max-width: 115px; padding: 6px 8px; } }
@media screen and (max-width: 900px) {
  .management-hydrograph-panel .section-heading, .management-visual-panel .section-heading { align-items: stretch; flex-direction: column; }
  .management-hydrograph-actions { justify-items: start; }
  .management-outlet-kpis, .synoptic-panel-actions, .map-actions { justify-content: flex-start; }
  .management-outlet-kpis > span { flex: 1 1 150px; }
  .management-outlet-hydrograph { height: 250px; }
  .management-synoptic { height: 390px; }
  .water-path-map { height: 370px; }
}
@media screen and (max-width: 640px) {
  .management-module { gap: 14px; }
  .management-hydrograph-actions, .management-outlet-kpis { width: 100%; }
  .management-outlet-hydrograph { height: 220px; border-radius: 13px; }
  .management-synoptic { height: 310px; border-radius: 14px; }
  .water-path-map { height: 300px; min-height: 0; border-radius: 14px; }
  .management-visual-panel .section-heading, .management-hydrograph-panel .section-heading { margin-bottom: 11px; }
  .section-copy { overflow-wrap: anywhere; }
}
@media screen and (max-width: 480px) {
  .management-scenario-switch { grid-template-columns: 1fr; }
  .management-outlet-kpis { display: grid; grid-template-columns: 1fr; }
  .management-outlet-kpis > span { min-width: 0; }
  .map-actions { width: 100%; }
  .map-actions .button, .map-actions .file-button { flex: 1 1 135px; }
  .management-synoptic { height: 290px; }
  .water-path-map { height: 280px; }
}
@media print {
  @page { size: A4; margin: 15mm; }
  body { background: white; color: #172033; }
  #login-screen, #workspace, .weather-library-dialog { display: none !important; }
  .print-report { display: block; font-family: Corbel, sans-serif; }
  .print-report * { font-family: Corbel, sans-serif !important; }
  .print-report h1 { margin-bottom: 4px; color: #0f766e; font-size: 23px; }
  .print-report h2 { margin-top: 25px; color: #172033; font-size: 16px; }
  .print-report p { font-size: 11px; line-height: 1.5; }
  .print-report table { margin-top: 12px; }
  .print-report th, .print-report td { border: 1px solid #b8c4c2; padding: 6px; font-size: 8px; }
  .print-report th { background: #e9f5f2; }
  .print-report .rain-current { background: #e7f2cf; }
  .print-report .rain-studied { background: #dceafa; }
  .print-report .rain-results-report { margin-top: 10px; break-inside: avoid; }
  .print-report .rain-results-report td { font-size: 9px; line-height: 1.7; vertical-align: top; }
  .print-report .method-table-card { margin-top: 16px; border-top: 1px solid #b8c4c2; padding-top: 12px; break-inside: avoid; }
  .print-report .method-table-heading h3 { margin: 2px 0; font-size: 13px; }
  .print-report .method-table-heading p { font-size: 8px; }
  .print-report .tm-summary { min-width: 125px; padding: 5px 8px; }
  .print-report .method-facts { margin: 8px 0; }
  .print-report .method-facts > div { padding: 6px 8px; }
  .print-report .method-facts span, .print-report .method-facts small { font-size: 6px; }
  .print-report .method-facts strong { font-size: 9px; }
  .print-report .method-table-wrap { overflow: visible; border-radius: 0; box-shadow: none; }
  .print-report .method-rain-table { min-width: 0; table-layout: fixed; }
  .print-report .method-rain-table th, .print-report .method-rain-table td { padding: 4px 3px; font-size: 6px; }
  .print-report .method-rain-table thead th small { margin-top: 2px; font-size: 5px; }
  .print-report .method-rain-table tfoot th, .print-report .method-rain-table tfoot td { font-size: 7px; }
  .print-report .critical-tag { padding: 1px 4px; font-size: 5px; }
  .print-report .method-table-conclusion { padding: 6px 8px; }
  .print-report .method-table-conclusion span, .print-report .method-table-conclusion strong { font-size: 7px; }
  .print-report .method-table-warning { font-size: 7px; }
  .print-report tfoot th, .print-report tfoot td { font-weight: bold; }
  .print-report .warning-print { margin-top: 24px; border: 1px solid #d8c28b; padding: 10px; }
}

@media (max-width: 640px) {
  .gep-v2-editor summary { align-items: flex-start; flex-wrap: wrap; }
  .gep-v2-editor summary small { width: calc(100% - 40px); margin-left: 0; }
  .gep-v2-editor-grid { grid-template-columns: 1fr; }
  .gep-v2-editor-grid .field-span-2 { grid-column: auto; }
  .ecau-export-dialog { width: calc(100% - 18px); }
  .ecau-export-grid { grid-template-columns: 1fr; }
  .ecau-export-body { padding: 14px; }
}

@media print {
  body.ecau-print-active .print-report { display: none; }
  body.ecau-print-active .ecau-print-report { display: block; font-family: Corbel, sans-serif; }
  body.ecau-print-active .ecau-print-report * { font-family: Corbel, sans-serif !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .ecau-document { color: #111827; font-size: 9.5pt; line-height: 1.38; }
  .ecau-document p { margin: 7px 0; text-align: justify; }
  .ecau-document ul { margin: 7px 0; padding-left: 20px; }
  .ecau-document li { margin: 3px 0; }
  .ecau-cover { position: relative; min-height: 262mm; overflow: hidden; padding: 13mm 14mm 8mm; text-align: center; }
  .ecau-cover-accent { position: absolute; z-index: -1; top: 0; bottom: 0; width: 10mm; border-radius: 50%; }
  .ecau-cover-accent-orange { left: -7mm; border-right: 2.3mm solid #f39200; background: linear-gradient(90deg, rgba(243,146,0,.22), transparent); }
  .ecau-cover-accent-green { right: -7mm; border-left: 2.3mm solid #39a935; background: linear-gradient(270deg, rgba(57,169,53,.20), transparent); }
  .ecau-cover-top { display: grid; gap: 8px; margin-top: 3mm; }
  .ecau-cover-top p { margin: 0; text-align: center; font-size: 13pt; text-transform: uppercase; }
  .ecau-cover-top h1 { margin: 0; color: #111; font-size: 18pt; letter-spacing: .01em; text-transform: uppercase; }
  .ecau-cover-top h2 { max-width: 145mm; margin: 11mm auto 0; color: #111; font-size: 17pt; line-height: 1.2; text-transform: uppercase; }
  .ecau-cover-titlebox { display: grid; width: 135mm; min-height: 42mm; align-content: center; gap: 10px; margin: 13mm auto 0; border: 1.2px solid #89bd4d; padding: 8mm; }
  .ecau-cover-titlebox span { font-size: 13pt; }
  .ecau-cover-titlebox strong { font-size: 15pt; text-transform: uppercase; }
  .ecau-cover-titlebox small { color: #111; font-size: 10pt; font-weight: 700; }
  .ecau-cover-owner { display: grid; width: 105mm; gap: 15mm; margin: 10mm auto 0; }
  .ecau-cover-owner span { border: 1.2px solid #89bd4d; padding: 6mm; font-size: 12pt; font-weight: 800; }
  .ecau-cover-owner strong { font-size: 14pt; text-transform: uppercase; }
  .ecau-cover-bottom { position: absolute; right: 16mm; bottom: 18mm; left: 16mm; display: grid; grid-template-columns: minmax(0, 1fr) 42mm; align-items: end; gap: 8mm; }
  .ecau-revision-table { width: 100%; border-collapse: collapse; }
  .ecau-revision-table th, .ecau-revision-table td { border: .7px solid #7c8582; padding: 4px; font-size: 7.5pt; }
  .ecau-revision-table th { background: #f5f7f6; }
  .ecau-signature { display: grid; gap: 3px; text-align: center; }
  .ecau-signature > span { border-bottom: 1px solid #111; font-size: 8pt; font-weight: 800; }
  .ecau-signature > strong { color: #39a935; font-size: 20pt; font-style: italic; }
  .ecau-signature > strong i { color: #f39200; font-style: italic; }
  .ecau-signature small { color: #111; font-size: 6.5pt; line-height: 1.25; }
  .ecau-cover-reference { position: absolute; right: 42mm; bottom: 5mm; left: 42mm; border: 1px solid #f39200; color: #159447; font-size: 7.5pt; font-weight: 800; }
  .ecau-page { position: relative; min-height: 252mm; padding-bottom: 10mm; }
  .ecau-page-break { break-before: page; }
  .ecau-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9mm; border-bottom: 1px solid #9ca3af; padding: 0 0 4px; color: #53605d; font-size: 7pt; }
  .ecau-page-header strong { color: #1f2937; text-transform: uppercase; }
  .ecau-toc-page { min-height: 252mm; }
  .ecau-toc-intro { max-width: 155mm; color: #5f6d69; }
  .ecau-toc-list { display: grid; margin-top: 8mm; border-top: 1px solid #b8c6c2; }
  .ecau-toc-entry { display: grid; grid-template-columns: 18mm minmax(0, 1fr); align-items: baseline; gap: 4mm; border-bottom: .7px solid #d5dfdc; padding: 3.2mm 2mm; color: #172033; text-decoration: none; break-inside: avoid; }
  .ecau-toc-entry span { color: #17623b; font-size: 10pt; font-weight: 900; }
  .ecau-toc-entry strong { font-size: 10pt; text-transform: uppercase; }
  .ecau-toc-entry.is-subentry { grid-template-columns: 18mm minmax(0, 1fr); padding: 2.2mm 2mm 2.2mm 10mm; background: #f5f8f7; }
  .ecau-toc-entry.is-subentry span { color: #4472c4; font-size: 8.5pt; }
  .ecau-toc-entry.is-subentry strong { color: #44516a; font-size: 8.5pt; font-style: italic; text-transform: none; }
  .ecau-document h2 { margin: 7mm 0 4mm; border-bottom: 1px solid #111; padding-bottom: 3px; color: #111; font-size: 13pt; }
  .ecau-document h3 { margin: 7mm 0 3mm; color: #4472c4; font-size: 11pt; font-style: italic; }
  .ecau-document h4 { margin: 4mm 0 2mm 6mm; color: #111; font-size: 10.5pt; }
  .ecau-table { width: 100%; margin: 4mm 0; border-collapse: collapse; break-inside: auto; font-variant-numeric: tabular-nums; }
  .ecau-table tr { break-inside: avoid; }
  .ecau-table th, .ecau-table td { border: .7px solid #aeb7b4; padding: 4px 5px; text-align: left; vertical-align: top; font-size: 7.4pt; }
  .ecau-table thead th { background: #eaf3ef; color: #174e3c; }
  .ecau-table tfoot th, .ecau-table tfoot td { background: #eef2ef; font-weight: 800; }
  .ecau-key-table th { width: 22%; background: #f3f6f5; }
  .ecau-facility-table th:nth-child(1) { width: 17%; }
  .ecau-facility-table th:nth-child(2) { width: 18%; }
  .ecau-facility-table th:nth-child(3) { width: 35%; }
  .ecau-facility-table small { color: #5f6d69; font-size: 6.8pt; }
  .ecau-summary-table td:not(:first-child), .ecau-summary-table th:not(:first-child), .ecau-method-table td:not(:first-child), .ecau-method-table th:not(:first-child) { text-align: right; }
  .ecau-summary-table tbody th { color: #1f2937; }
  .ecau-basin-section, .ecau-calculation-basin { break-inside: auto; }
  .ecau-basin-facts, .ecau-result-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 4mm 0; border: 1px solid #c7d9d3; background: #f3f8f6; }
  .ecau-basin-facts span, .ecau-result-strip span { display: grid; gap: 2px; border-right: 1px solid #c7d9d3; padding: 5px 6px; color: #65736f; font-size: 6.5pt; text-transform: uppercase; }
  .ecau-basin-facts span:last-child, .ecau-result-strip span:last-child { border-right: 0; }
  .ecau-basin-facts strong, .ecau-result-strip strong { color: #124e3c; font-size: 8.2pt; text-transform: none; }
  .ecau-upstream-origin { margin: 3mm 0 4mm 6mm; border-left: 3px solid #4472c4; background: #f1f5fb; padding: 6px 9px; break-inside: avoid; }
  .ecau-upstream-origin > strong { display: block; margin-bottom: 3px; color: #244d86; font-size: 8pt; }
  .ecau-upstream-origin ul { display: grid; gap: 2px; margin: 0; padding-left: 16px; }
  .ecau-upstream-origin li { color: #37465b; font-size: 7.6pt; }
  .ecau-upstream-origin li b { margin-right: 5px; }
  .ecau-upstream-origin li span { color: #52647c; }
  .ecau-empty { border-left: 3px solid #e9a029; background: #fff9ec; padding: 7px; color: #77551d; }
  .ecau-callout { margin: 5mm 0; border-left: 4px solid #39a935; background: #eef8ef; padding: 8px 10px; break-inside: avoid; }
  .ecau-callout strong, .ecau-callout span { display: block; }
  .ecau-callout.warning { border-left-color: #f39200; background: #fff7e8; }
  .ecau-callout.info { border-left-color: #4472c4; background: #eef4fb; }
  .ecau-callout ul { margin-bottom: 0; }
  .ecau-v2-wide-table th, .ecau-v2-wide-table td { padding: 3px 4px; font-size: 6.6pt; }
  .ecau-gep-v2-document .ecau-cover-owner { gap: 4mm; margin-top: 8mm; }
  .ecau-gep-v2-document .ecau-cover-bottom { position: static; margin: 8mm 16mm 0; }
  .ecau-gep-v2-document .ecau-cover-reference { position: static; margin: 4mm 28mm 0; }
  .ecau-gep-v2-document .ecau-v2-basin-scenarios h3 { margin-top: 5mm; }
  .ecau-gep-v2-document .ecau-v2-basin-scenarios .ecau-facility-table th,
  .ecau-gep-v2-document .ecau-v2-basin-scenarios .ecau-facility-table td { padding: 3px 4px; font-size: 6.7pt; }
  .ecau-formula-box { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 5mm 0; border-left: 4px solid #39a935; background: #f2f8f4; padding: 8px 11px; }
  .ecau-formula-box span { color: #61716c; font-size: 7.5pt; }
  .ecau-formula-box strong { color: #173f33; }
  .ecau-method-table tr.is-critical td { background: #fff0d8; color: #7b4d05; }
  .ecau-method-caption { border-left: 3px solid #4472c4; padding-left: 8px; color: #4b5563; font-size: 7.5pt; }
  .ecau-figure { margin: 5mm 0; border: .7px solid #c8d4d0; border-radius: 3px; background: #fff; padding: 3mm 3.5mm 2.5mm; break-inside: avoid; }
  .ecau-figure h4 { margin: 0 0 2mm; color: #173f33; font-size: 9pt; font-style: normal; }
  .ecau-figure figcaption { margin-top: 1.5mm; color: #5f6d69; font-size: 6.8pt; line-height: 1.3; text-align: left; }
  .ecau-chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
  .ecau-chart-svg text { fill: #4b5563; font-family: Corbel, sans-serif; font-size: 10px; }
  .ecau-chart-svg .ecau-chart-grid { stroke: #dbe3e1; stroke-width: 1; }
  .ecau-chart-svg .ecau-chart-track { fill: #f2f5f4; stroke: #d8e0de; stroke-width: 1; }
  .ecau-chart-svg .ecau-chart-row-label { fill: #25342f; font-size: 10.5px; font-weight: 700; }
  .ecau-chart-svg .ecau-chart-total { fill: #25342f; font-size: 10px; font-weight: 700; }
  .ecau-chart-svg .ecau-chart-value { fill: #fff; font-size: 9px; font-weight: 700; }
  .ecau-chart-svg .ecau-chart-axis-title { fill: #61716c; font-size: 9px; font-weight: 700; }
  .ecau-chart-svg .ecau-chart-critical { fill: #a45d00; font-size: 9.5px; font-weight: 700; }
  .ecau-chart-inline-legend text { fill: #25342f; font-size: 9.5px; }
  .ecau-analysis { border-left: 3px solid #17623b; background: #f3f8f6; padding: 7px 9px; color: #34443f; }
  .ecau-limit { margin-top: 6mm !important; border: 1px solid #d6bd8b; background: #fffaf0; padding: 8px; font-size: 8pt; }
  .ecau-document-footer { position: absolute; right: 0; bottom: 0; left: 0; border-top: 1px solid #9ca3af; padding-top: 3px; color: #5f6d69; font-size: 6.5pt; text-align: right; }
}
