:root {
  color-scheme: light;
  --ink: #17221f;
  --muted: #66736f;
  --paper: #f5f7f4;
  --surface: #ffffff;
  --line: #dfe6e1;
  --green: #0d6b52;
  --green-deep: #084c3c;
  --green-soft: #e5f2ed;
  --amber: #a46612;
  --amber-soft: #fff3d8;
  --shadow: 0 18px 55px rgba(23, 34, 31, 0.08);
  --access-navy: #1f497d;
  --access-ink: #10253f;
  --access-gray: #f2f2f2;
  --access-border: #c3d9dd;
}

* { box-sizing: border-box; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.5; }
a { color: inherit; }

.app-header {
  height: 76px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 7px; background: var(--access-navy); color: white; font-weight: 800; letter-spacing: -.04em; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-size: 1.05rem; }
.brand small { color: var(--muted); margin-top: 5px; font-size: .72rem; }
.header-context { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .82rem; }
.database-link { color: var(--access-navy); font-weight: 700; text-decoration: none; }
.database-link:hover { text-decoration: underline; }
.header-signout { display: flex; align-items: center; gap: 10px; margin: 0; }
.header-signout button { border: 0; background: none; padding: 0; font-family: inherit; font-size: inherit; cursor: pointer; }
.environment-badge, .read-only-pill { border: 1px solid #a7cabc; color: var(--green-deep); background: var(--green-soft); border-radius: 999px; padding: 7px 11px; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.environment-badge.is-local-write { border-color: #4d9470; background: #e2f5e9; color: #185b38; }
.header-rule { width: 1px; height: 24px; background: var(--line); }
.app-main { max-width: 1440px; margin: 0 auto; padding: clamp(28px, 5vw, 72px) clamp(20px, 4vw, 64px) 80px; }

.access-window {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--access-gray);
  border: 1px solid #a6a6a6;
  box-shadow: 0 18px 48px rgba(16, 37, 63, .16);
  color: var(--access-ink);
  font-family: Calibri, "Segoe UI", sans-serif;
}

.access-titlebar {
  min-height: 78px;
  background: var(--access-navy);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
}

.utiliviz-wordmark {
  padding: 12px 24px 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 310px;
}

.utiliviz-wordmark strong {
  font-size: 2.15rem;
  line-height: .95;
  letter-spacing: -.05em;
  font-style: italic;
}

.utiliviz-wordmark span {
  margin-top: 8px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: #d9e7f2;
}

.legacy-logo-wrap {
  width: 260px;
  padding: 6px 10px;
  background: #fff;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.legacy-logo-wrap img { width: 210px; height: auto; display: block; }

.access-toolbar {
  min-height: 42px;
  padding: 7px 16px;
  background: #e6e6e6;
  border-bottom: 1px solid #b7b7b7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
}

.access-toolbar > strong { letter-spacing: .08em; }
.access-mode { display: inline-flex; align-items: center; gap: 7px; color: #675629; }
.access-mode i { width: 8px; height: 8px; border-radius: 50%; background: #b38a20; }
.access-mode.is-online { color: #245b3b; }
.access-mode.is-online i { background: #2b7b4b; }

.access-menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 26px;
  padding: 30px 34px 34px;
}

.access-column { display: flex; flex-direction: column; gap: 17px; }
.access-group { padding: 15px 16px 16px; border: 1px solid #bfc7cd; background: #fafafa; box-shadow: inset 0 1px 0 #fff; }
.access-group h2 { margin: 0 0 15px; font-size: .91rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .025em; color: var(--access-ink); }
.compact-group h2 { margin-bottom: 10px; }
.access-field { min-height: 29px; display: grid; grid-template-columns: 142px minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 7px; }
.wide-field { grid-template-columns: 150px minmax(0, 1fr); }
.access-field label { font-size: .78rem; text-align: right; color: #293b4e; }
.access-combo { min-width: 0; height: 27px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #8799a8; background: #fff; color: #3f5161; text-decoration: none; font-size: .78rem; line-height: 1; }
.access-combo span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 8px; }
.access-combo b { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-left: 1px solid #9aa7b2; background: #e9eef2; color: #263b50; font-size: .62rem; }
.access-combo:hover { border-color: var(--access-navy); box-shadow: 0 0 0 1px var(--access-navy); }
.lookup-combo { position: relative; overflow: visible; z-index: 1; }
.lookup-combo.is-open { z-index: 30; border-color: var(--access-navy); box-shadow: 0 0 0 1px var(--access-navy); }
.lookup-combo > input { min-width: 0; width: 100%; height: 25px; border: 0; outline: 0; padding: 3px 8px; background: transparent; color: #25384a; font: inherit; }
.lookup-combo > input::placeholder { color: #667786; opacity: 1; }
.lookup-toggle { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-left: 1px solid #9aa7b2; background: #e9eef2; color: #263b50; font-size: .62rem; cursor: pointer; }
.lookup-menu { position: absolute; top: calc(100% + 2px); left: -1px; right: -1px; max-height: 275px; overflow: auto; border: 1px solid #6d8192; background: #fff; box-shadow: 0 8px 20px rgba(16,37,63,.22); }
.lookup-menu[hidden] { display: none; }
.lookup-option { width: 100%; min-height: 38px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; border: 0; border-bottom: 1px solid #e2e7eb; padding: 6px 9px; background: #fff; color: #1b2f42; text-align: left; font: inherit; cursor: pointer; }
.lookup-option:last-child { border-bottom: 0; }
.lookup-option:hover, .lookup-option.is-active { background: #dbe8f4; }
.lookup-option strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.lookup-option small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #607183; font-size: .68rem; }
.lookup-message { padding: 10px; color: #667786; font-size: .73rem; line-height: 1.35; }
.lookup-message.is-error { color: #8a2525; background: #fff0f0; }
.id-field .access-combo { max-width: 175px; }
.account-group .access-secondary-link { display: inline-block; margin: 14px 0 0 152px; font-size: .76rem; font-weight: 700; color: #315f8c; }

.access-action-row { min-height: 31px; display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 12px; align-items: center; padding: 3px 0; font-size: .79rem; }
.access-action-row button { height: 25px; border: 1px solid #9da7ad; background: linear-gradient(#fff,#e4e4e4); color: #6d7478; font-family: inherit; font-size: .74rem; }
.access-action-row button:disabled { opacity: .72; }
.access-entry-link { height: 25px; display: grid; place-items: center; border: 1px solid #708a9b; background: linear-gradient(#fff,#dce7ed); color: #173c52; font-family: inherit; font-size: .74rem; text-decoration: none; }
.access-entry-link:hover { background: #eef5f8; }

.report-window { max-width: 1500px; margin: 0 auto; border: 1px solid #9fb0ba; background: #f7f9fa; box-shadow: 0 12px 30px rgba(29, 53, 66, .12); }
.report-filter { display: flex; align-items: end; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #c7d2d8; background: #edf2f4; }
.report-filter label { font-weight: 700; color: #24485c; }
.report-filter select, .report-filter input { min-width: 230px; height: 34px; border: 1px solid #97aab5; background: #fff; padding: 5px 8px; }
.report-filter button { height: 34px; border: 1px solid #55798c; background: #2f6078; color: #fff; padding: 0 18px; font-weight: 700; }
.report-table-shell { overflow: auto; max-height: 68vh; border-top: 1px solid #cad4d9; }
.report-table-shell table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: .78rem; }
.report-table-shell th { position: sticky; top: 0; z-index: 1; background: #2f5367; color: #fff; text-align: left; padding: 8px; }
.report-table-shell td { border-bottom: 1px solid #dde4e7; padding: 7px 8px; text-align: right; }
.report-table-shell td:first-child, .report-table-shell td:nth-child(2), .report-table-shell td:nth-child(3) { text-align: left; }
.report-table-shell tr:nth-child(even) td { background: #f1f5f6; }
.report-shortcuts { display: flex; gap: 12px; align-items: center; padding: 9px 18px; border-bottom: 1px solid #c7d2d8; background: #f5f0df; font-size: .8rem; }
.report-shortcuts a { color: #174f6b; font-weight: 700; }

.maintenance-button { height: 25px; display: grid; place-items: center; border: 1px solid #17395f; background: linear-gradient(#315f91, #1f497d); color: #fff; font-family: inherit; font-size: .74rem; font-weight: 700; text-decoration: none; }
.section-action { padding: 0; }
.section-action h2 { margin: 0; }
.access-footnote { padding: 11px 17px; border-top: 1px solid #b7b7b7; background: #e7e7e7; color: #53606a; font-size: .74rem; }

.record-window { max-width: 1180px; margin: 0 auto; border: 1px solid #a6a6a6; background: #f2f2f2; box-shadow: 0 18px 48px rgba(16,37,63,.16); color: var(--access-ink); font-family: Calibri, "Segoe UI", sans-serif; }
.record-titlebar { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 15px 22px; background: var(--access-navy); color: white; }
.record-titlebar span:first-child { display: block; margin-bottom: 3px; color: #d9e7f2; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.record-titlebar h1 { margin: 0; max-width: none; font: 700 1.6rem Calibri, "Segoe UI", sans-serif; letter-spacing: 0; }
.record-titlebar .read-only-pill { flex: 0 0 auto; border-color: #b9d2e5; background: #fff; color: var(--access-navy); }
.record-toolbar { min-height: 42px; display: flex; justify-content: space-between; align-items: center; padding: 8px 17px; border-bottom: 1px solid #b7b7b7; background: #e6e6e6; color: #5b6873; font-size: .76rem; }
.record-toolbar a { color: var(--access-navy); font-weight: 700; text-decoration: none; }
.record-toolbar-actions { display: flex; align-items: center; gap: 12px; }
.link-button { border: 0; padding: 0; background: transparent; color: var(--access-navy); font: 700 .76rem Calibri, "Segoe UI", sans-serif; text-decoration: none; cursor: pointer; }
.link-button:hover, .record-toolbar a:hover { text-decoration: underline; }
.record-body { padding: 22px; }
.record-group, .related-group { margin-bottom: 18px; border: 1px solid #bdc6cd; background: #fff; }
.record-group > h2, .related-heading { min-height: 35px; margin: 0; padding: 8px 12px; border-bottom: 1px solid #c8d0d6; background: #e8edf1; color: #1d3a58; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.record-group dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; margin: 0; }
.record-field { min-height: 48px; display: grid; grid-template-columns: 145px minmax(0,1fr); align-items: center; border-bottom: 1px solid #e4e7ea; padding: 7px 11px; }
.record-field:nth-child(odd) { border-right: 1px solid #e4e7ea; }
.record-field.is-wide { grid-column: 1 / -1; border-right: 0; }
.record-field dt { color: #596b7b; font-size: .72rem; font-weight: 700; }
.record-field dd { min-width: 0; margin: 0; color: #172b3e; font-size: .82rem; overflow-wrap: anywhere; }
.record-field dd a, .related-group td a, .record-link { color: #285c8d; font-weight: 700; }
.related-heading { display: flex; align-items: center; justify-content: space-between; }
.related-heading h2 { margin: 0; font-size: inherit; letter-spacing: inherit; }
.related-heading span { color: #647583; font-size: .7rem; letter-spacing: 0; text-transform: none; }
.related-table-shell { overflow: auto; }
.related-group table { box-shadow: none; font-size: .78rem; }
.related-group th, .related-group td { padding: 9px 11px; }
.related-note { margin: 0; padding: 17px; color: #64717c; font-size: .78rem; }
.record-error { margin: 22px; padding: 18px; border: 1px solid #d4a2a2; background: #fff1f1; color: #7d2929; }
.record-error strong, .record-error span { display: block; }
.record-error span { margin-top: 5px; font-size: .82rem; }

.write-pill { flex: 0 0 auto; border: 1px solid #7fb18f; border-radius: 999px; background: #e7f6eb; color: #185b38; padding: 7px 11px; font-size: .75rem; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .05em; }
.write-success { margin: 0 22px 18px; border: 1px solid #8fbea0; background: #e8f6ed; color: #205f3c; padding: 11px 14px; font-size: .84rem; }
.page-action { text-decoration: none; }
.customer-form { padding: 22px; }
.customer-form .validation-summary { margin-bottom: 16px; }
.editor-group { margin-bottom: 18px; border: 1px solid #bdc6cd; background: #fff; }
.editor-group h2 { min-height: 35px; margin: 0; padding: 8px 12px; border-bottom: 1px solid #c8d0d6; background: #e8edf1; color: #1d3a58; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; padding: 16px; }
.editor-grid label { display: grid; gap: 5px; color: #596b7b; font-size: .75rem; font-weight: 700; }
.editor-grid input, .editor-grid textarea, .editor-grid select { width: 100%; border: 1px solid #8799a8; background: #fff; color: #172b3e; padding: 7px 9px; font: 400 .86rem Calibri, "Segoe UI", sans-serif; }
.editor-grid input { height: 34px; }
.editor-grid select { height: 34px; }
.editor-grid input:focus, .editor-grid textarea:focus, .editor-grid select:focus { outline: 2px solid #b7cee2; border-color: var(--access-navy); }
.editor-grid small { color: #962e2e; font-weight: 400; }
.editor-grid .checkbox-field { grid-template-columns: auto 1fr; align-items: center; align-self: end; min-height: 34px; }
.editor-grid .checkbox-field input { width: 17px; height: 17px; }
.wide-editor-field { grid-column: 1 / -1; }
.editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.editor-actions > a { margin-right: auto; color: #3e5f7c; font-weight: 700; text-decoration: none; }
.save-button, .delete-button { min-height: 36px; border: 1px solid #17395f; border-radius: 4px; background: linear-gradient(#315f91, #1f497d); color: #fff; padding: 7px 16px; font: 700 .82rem Calibri, "Segoe UI", sans-serif; cursor: pointer; }
.delete-button { border-color: #7d3333; background: linear-gradient(#a15151, #7b3434); }

.maintenance-window { max-width: 1180px; margin: 0 auto; border: 1px solid #a6a6a6; background: #f2f2f2; box-shadow: 0 18px 48px rgba(16,37,63,.16); color: var(--access-ink); font-family: Calibri, "Segoe UI", sans-serif; }
.maintenance-body { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; padding: 22px; }
.maintenance-section { border: 1px solid #bdc6cd; background: #fff; }
.maintenance-section > h2 { margin: 0; padding: 9px 12px; border-bottom: 1px solid #c8d0d6; background: #e8edf1; color: #1d3a58; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.wide-maintenance-section { grid-column: 1 / -1; }
.maintenance-list { display: grid; }
.export-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
.maintenance-action { min-height: 54px; display: grid; grid-template-columns: minmax(0,1fr) 50px; align-items: center; gap: 12px; padding: 8px 11px; border-bottom: 1px solid #e3e7ea; }
.maintenance-action:last-child { border-bottom: 0; }
.export-list .maintenance-action:nth-child(odd) { border-right: 1px solid #e3e7ea; }
.maintenance-action div { min-width: 0; }
.maintenance-action strong, .maintenance-action small { display: block; }
.maintenance-action strong { color: #233b51; font-size: .8rem; }
.maintenance-title-link { color: #233b51; font-size: .8rem; font-weight: 700; text-decoration: none; }
.maintenance-title-link:hover { color: #285c8d; text-decoration: underline; }
.maintenance-action small { margin-top: 2px; color: #8a9298; font-size: .69rem; }
.maintenance-action a, .maintenance-action button { min-width: 38px; height: 28px; display: grid; place-items: center; border: 1px solid #9da7ad; background: linear-gradient(#fff,#e4e4e4); color: #6d7478; font: 700 .78rem Calibri, "Segoe UI", sans-serif; text-decoration: none; }
.maintenance-action.is-ready { background: #f4fbf6; }
.maintenance-action.is-ready small { color: #357050; }
.maintenance-action.is-ready a { border-color: #285f43; background: linear-gradient(#3b835c,#286b48); color: #fff; }
.maintenance-action button:disabled { cursor: not-allowed; opacity: .6; }
.schema-note { margin: 0; padding: 12px 16px 0; color: #667580; font-size: .76rem; }
.import-window { max-width: 1180px; margin: 0 auto; }
.import-step-body { padding: 16px; }
.import-step-body > p:first-child { margin-top: 0; }
.download-template-button { display: inline-flex; align-items: center; text-decoration: none; }
.upload-form { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
.upload-form label { display: grid; gap: 6px; min-width: min(100%, 460px); color: #596b7b; font-size: .78rem; font-weight: 700; }
.upload-form input[type="file"] { border: 1px solid #8799a8; background: #fff; padding: 8px; }
.import-table-wrap { max-height: 430px; overflow: auto; border: 1px solid #bdc6cd; }
.import-grid { min-width: 840px; }
.import-row-error td { background: #fff0f0; color: #7d2525; }
.import-actions { margin-top: 16px; }
.maintenance-manage-body { padding: 0 22px 22px; }
.manage-list { border: 1px solid #bdc6cd; background: #fff; }
.manage-list > a { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 12px; border-bottom: 1px solid #e3e7ea; color: #233b51; font-size: .82rem; text-decoration: none; }
.manage-list > a:last-child { border-bottom: 0; }
.manage-list > a:hover { background: #eef5fa; }
.manage-list strong { color: #285c8d; font-size: .74rem; }

.connect-shell { max-width: 650px; margin: 0 auto; border: 1px solid #a6a6a6; background: #f2f2f2; box-shadow: 0 18px 48px rgba(16, 37, 63, .14); font-family: Calibri, "Segoe UI", sans-serif; }
.connect-header { display: flex; align-items: center; gap: 16px; padding: 22px 25px; background: var(--access-navy); color: #fff; }
.connect-header p { margin: 0 0 3px; font-size: .68rem; font-weight: 700; letter-spacing: .13em; color: #d8e4ee; }
.connect-header h1 { margin: 0; font-size: 1.45rem; letter-spacing: -.02em; }
.connect-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #bed0df; background: #fff; color: var(--access-navy); font-weight: 800; }
.connect-form { display: grid; gap: 15px; padding: 26px; }
.connect-form label { display: grid; grid-template-columns: 125px minmax(0, 1fr); align-items: center; gap: 14px; }
.connect-form label span { text-align: right; font-size: .86rem; font-weight: 700; }
.connect-form input { height: 34px; border: 1px solid #8799a8; background: #fff; padding: 6px 9px; font: inherit; }
.connect-form input:focus { outline: 2px solid #b7cee2; border-color: var(--access-navy); }
.access-primary { min-height: 36px; border: 1px solid #17395f; background: linear-gradient(#315f91, #1f497d); color: #fff; padding: 7px 16px; font: 700 .85rem Calibri, "Segoe UI", sans-serif; cursor: pointer; }
.connect-form .access-primary { justify-self: end; min-width: 180px; }
.access-primary.danger { margin: 24px; background: linear-gradient(#8e4c4c,#713737); border-color: #5b2727; }
.validation-summary { color: #8a2525; background: #fdeaea; border: 1px solid #e2abab; padding: 10px 12px; font-size: .82rem; }
.validation-summary:empty { display: none; }
.connect-notice { margin: 22px 24px 0; padding: 11px 13px; border: 1px solid #9db8a8; background: #e6f0e9; color: #28593a; font-size: .84rem; }
.connect-safety { margin: 0 25px 22px; padding: 17px 19px; border: 1px solid #c6cbd0; background: #fff; }
.connect-safety h2 { margin: 0 0 9px; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.connect-safety ul { margin: 0; padding-left: 18px; color: #4f5b65; font-size: .8rem; }
.connect-safety li + li { margin-top: 5px; }
.connect-shell > .back-link { margin: 0 25px 24px; font-size: .82rem; }

.page-header { border-top: 9px solid var(--access-navy); padding-top: 24px; }
.page-header .eyebrow { color: var(--access-navy); }
.page-header .read-only-pill { border-color: #9fb1c2; background: #e5edf4; color: var(--access-ink); }
.search-bar button { background: var(--access-navy); }
.empty-icon { background: #e5edf4; color: var(--access-navy); }

.hero-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 48px; align-items: end; padding: 12px 0 44px; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-weight: 800; font-size: .74rem; letter-spacing: .14em; }
h1, h2 { letter-spacing: -.035em; margin-top: 0; }
h1 { font-size: clamp(2.25rem, 4vw, 4.15rem); line-height: 1.02; margin-bottom: 20px; max-width: 900px; }
h2 { font-size: clamp(1.55rem, 2.2vw, 2.25rem); line-height: 1.1; margin-bottom: 0; }
.hero-copy { max-width: 720px; font-size: 1.12rem; color: var(--muted); margin: 0; }
.connection-card { display: flex; gap: 13px; align-items: flex-start; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); padding: 18px; box-shadow: var(--shadow); }
.connection-card strong, .connection-card span { display: block; }
.connection-card span:not(.status-dot) { color: var(--muted); font-size: .82rem; margin-top: 3px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; margin-top: 6px; background: var(--amber); box-shadow: 0 0 0 5px var(--amber-soft); }
.connection-card.is-online .status-dot { background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }

.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.summary-strip > div { padding: 22px 25px; border-right: 1px solid var(--line); }
.summary-strip > div:last-child { border-right: 0; }
.summary-strip strong { display: block; font-size: 1.7rem; color: var(--green-deep); }
.summary-strip span { color: var(--muted); font-size: .82rem; }
.section-heading, .page-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 64px 0 24px; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.module-card { display: flex; align-items: center; gap: 16px; padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.module-card:hover { transform: translateY(-2px); border-color: #9fc4b5; box-shadow: var(--shadow); }
.module-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; background: var(--green-soft); color: var(--green-deep); font-weight: 800; font-size: .78rem; }
.module-content { display: flex; flex-direction: column; min-width: 0; }
.module-content strong { font-size: 1rem; }
.module-content small { color: var(--muted); margin-top: 4px; }
.module-arrow { margin-left: auto; color: var(--green); font-size: 1.4rem; }

.workflow-panel { margin-top: 72px; padding: clamp(25px, 4vw, 48px); border-radius: 20px; background: var(--green-deep); color: white; display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; }
.workflow-panel .eyebrow { color: #8ed0b8; }
.workflow-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.workflow-list li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; }
.workflow-list li > span { color: #8ed0b8; font-size: .75rem; font-weight: 800; letter-spacing: .08em; }
.workflow-list strong, .workflow-list small { display: block; }
.workflow-list small { color: #c7ddd5; margin-top: 5px; line-height: 1.5; }

.page-header { margin-top: 8px; align-items: center; }
.page-header h1 { font-size: clamp(2rem, 3.5vw, 3.4rem); margin-bottom: 10px; }
.page-header p:last-child { color: var(--muted); margin: 0; }
.back-link { display: inline-block; color: var(--green); text-decoration: none; font-weight: 700; margin-bottom: 32px; }
.search-bar { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 20px; margin: 28px 0 22px; }
.search-bar label { display: block; font-size: .77rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 9px; color: var(--muted); }
.search-bar > div { display: flex; gap: 10px; }
.search-bar input { flex: 1; min-width: 0; border: 1px solid #c9d4ce; border-radius: 10px; padding: 12px 14px; font: inherit; }
.search-bar input:focus { outline: 3px solid var(--green-soft); border-color: var(--green); }
.search-bar button { border: 0; border-radius: 10px; padding: 0 20px; background: var(--green); color: white; font-weight: 800; cursor: pointer; }
.search-bar a { align-self: center; color: var(--muted); padding: 0 8px; }
.empty-state { min-height: 320px; display: grid; place-items: center; align-content: center; text-align: center; border: 1px dashed #bdcbc4; border-radius: 18px; background: rgba(255,255,255,.55); padding: 40px; }
.empty-state h2 { margin: 18px 0 8px; }
.empty-state p { color: var(--muted); margin: 0 0 8px; }
.empty-state small { color: #89938f; }
.empty-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--green-soft); color: var(--green-deep); font-weight: 800; }
.table-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; margin: 16px 2px 10px; }
.table-meta strong { color: var(--ink); }
.table-shell { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: .86rem; }
th { text-align: left; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; background: #f8faf8; }
th, td { padding: 14px 16px; border-bottom: 1px solid #e8ede9; }
tbody tr:hover { background: #f4f9f6; }
tbody tr:last-child td { border-bottom: 0; }
.app-footer { max-width: 1440px; margin: 0 auto; padding: 24px clamp(20px, 4vw, 64px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; }

@media (max-width: 850px) {
  .hero-panel, .workflow-panel { grid-template-columns: 1fr; gap: 28px; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .summary-strip > div:nth-child(2) { border-right: 0; }
  .summary-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .module-grid { grid-template-columns: 1fr; }
  .header-note, .header-rule { display: none; }
  .access-menu-grid { grid-template-columns: 1fr; }
  .access-titlebar { min-height: 70px; }
  .legacy-logo-wrap { width: 220px; }
  .legacy-logo-wrap img { width: 175px; }
}

@media (max-width: 560px) {
  .app-header { height: 68px; }
  .environment-badge { display: none; }
  .summary-strip { grid-template-columns: 1fr; }
  .summary-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-strip > div:last-child { border-bottom: 0; }
  .section-heading, .page-header { align-items: flex-start; flex-direction: column; margin-top: 42px; }
  .search-bar > div { flex-wrap: wrap; }
  .search-bar input { flex-basis: 100%; }
  .search-bar button { min-height: 44px; flex: 1; }
  .app-footer { flex-direction: column; gap: 5px; }
  .access-titlebar { align-items: stretch; }
  .utiliviz-wordmark { min-width: 0; padding-left: 15px; }
  .utiliviz-wordmark strong { font-size: 1.55rem; }
  .utiliviz-wordmark span { display: none; }
  .legacy-logo-wrap { width: 160px; }
  .legacy-logo-wrap img { width: 125px; }
  .access-menu-grid { padding: 18px 14px 24px; gap: 14px; }
  .access-field, .wide-field { grid-template-columns: 1fr; gap: 3px; }
  .access-field label { text-align: left; }
  .id-field .access-combo { max-width: none; }
  .account-group .access-secondary-link { margin-left: 0; }
  .connect-form label { grid-template-columns: 1fr; gap: 4px; }
  .connect-form label span { text-align: left; }
}

@media print {
  body { background: #fff !important; }
  header, footer, .record-toolbar, .report-filter, .read-only-pill { display: none !important; }
  .report-window, .report-table-shell { box-shadow: none !important; border: 0 !important; overflow: visible !important; }
  .report-table-shell table { font-size: 9pt; }
  .record-titlebar { color: #000 !important; background: #fff !important; padding: 0 0 12px !important; }
}
