:root {
  --ink: #16212b;
  --text: #16212b;
  --muted: #667789;
  --line: #d9e2e7;
  --panel: #ffffff;
  --page: #f5f7fa;
  --blue: #1f5f85;
  --teal: #1c7f73;
  --gold: #b9822b;
  --green: #2f7d4f;
  --danger: #b42318;
  --steel: #d8e3ee;
  --sidebar: #03070c;
  --sidebar-panel: #07111b;
  --sidebar-line: #14314d;
  --electric: #00aaff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
}

body.dark-mode {
  --ink: #e7f0f8;
  --text: #e7f0f8;
  --muted: #94a9bb;
  --line: #20384c;
  --panel: #081521;
  --page: #03070c;
  --blue: #59bfff;
  --teal: #38c8b8;
  --gold: #e5ad52;
  --green: #69c58a;
  --danger: #ff7b72;
  --steel: #1b3348;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 4%, rgba(0, 170, 255, 0.16), transparent 340px),
    linear-gradient(180deg, #02070d 0%, #06111c 44%, #03070c 100%);
}

body.module-home-active {
  grid-template-columns: 1fr;
  background: #03070c;
}

body.account-settings-active {
  grid-template-columns: 1fr;
}

body.user-preferences-active {
  grid-template-columns: 1fr;
}

body.module-home-active .sidebar,
body.module-home-active .topbar,
body.module-home-active .legacy-imports,
body.account-settings-active .sidebar,
body.account-settings-active .legacy-imports,
body.user-preferences-active .sidebar,
body.user-preferences-active .topbar,
body.user-preferences-active .legacy-imports {
  display: none !important;
}

body.module-home-active main {
  height: 100vh;
  padding: 0;
  overflow: hidden;
}

body.module-home-active #moduleHome.view.active {
  height: 100vh;
  display: grid;
  grid-template-rows: 1fr;
  position: relative;
  background: #03070c;
}

body.account-settings-active main {
  padding: 22px;
}

body.user-preferences-active main {
  min-height: 100vh;
  padding: 24px;
}

body.user-preferences-active #userPreferences.view.active {
  max-width: 1180px;
  margin: 0 auto;
}

body.auth-required .sidebar,
body.auth-required main {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

.startup-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(145deg, #000 0%, #02080f 42%, #041a2d 100%);
  color: #f4f8fc;
  transition: opacity 520ms ease, visibility 520ms ease;
  animation: startupSplashFailsafe 11.2s ease forwards;
}

.commandpoint-network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.startup-network-canvas {
  z-index: 0;
  opacity: 1;
}

.startup-splash.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes startupSplashFailsafe {
  0%,
  92% {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.auth-shell {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 170, 255, 0.2), transparent 360px),
    linear-gradient(140deg, rgba(0, 0, 0, 0.92), rgba(3, 15, 26, 0.96));
}

.auth-card {
  width: min(460px, 94vw);
  display: grid;
  gap: 14px;
  border: 1px solid rgba(0, 170, 255, 0.28);
  border-radius: 8px;
  padding: 24px;
  background: rgba(4, 13, 22, 0.94);
  color: #f4f8fc;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

.auth-card img {
  width: min(300px, 72vw);
  justify-self: center;
}

.auth-card span {
  color: #67d7ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

.auth-card h2,
.auth-card p {
  margin: 0;
  text-align: center;
}

.auth-card p {
  color: #a9c1d6;
  line-height: 1.42;
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: #c9d9e8;
  font-size: 12px;
  font-weight: 800;
}

.auth-card input {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  border: 1px solid rgba(103, 215, 255, 0.28);
  border-radius: 6px;
  padding: 0 11px;
  background: #06111c;
  color: #f4f8fc;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
}

.auth-password-field { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
#authShell .auth-card { width: min(460px, 100%); min-width: 0; }
.auth-password-field input { padding-right: 52px; }
#authShell .auth-password-toggle {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 38px;
  padding: 0;
  color: #bde8fa;
  background: transparent;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  outline-offset: -2px;
}
#authShell .auth-password-toggle:hover { background: #173346; box-shadow: none; }
.auth-password-toggle svg { width: 20px; height: 20px; }
#authShell .auth-password-toggle:focus-visible { outline: 2px solid #67d7ff; outline-offset: -2px; }

.auth-actions button {
  width: 100%;
}

.auth-local-button {
  justify-self: center;
}

.auth-status {
  min-height: 18px;
  font-size: 12px;
  font-weight: 700;
}

.auth-status.error {
  color: #ffb4b4;
}

.session-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 170, 255, 0.24);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(0, 170, 255, 0.08);
  color: #1f5f85;
  font-size: 12px;
  font-weight: 800;
}

.startup-splash__scan {
  position: absolute;
  inset: -20%;
  z-index: 1;
  background:
    linear-gradient(105deg, transparent 0 42%, rgba(0, 170, 255, 0.16) 48%, rgba(255, 255, 255, 0.08) 50%, transparent 58% 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 7px);
  animation: commandScan 10000ms ease-in-out forwards;
}

.startup-splash__content {
  position: relative;
  z-index: 2;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: minmax(250px, 1fr) auto auto minmax(18px, 0.18fr);
  align-content: center;
  gap: 18px;
  justify-items: center;
  padding: 34px clamp(24px, 5vw, 72px);
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 5, 11, 0.1) 46%, rgba(2, 19, 34, 0.24) 100%);
  box-shadow: none;
  animation: commandIntro 900ms ease-out both;
}

.startup-splash__content img {
  display: block;
  align-self: end;
  width: min(820px, 78vw);
  max-height: min(390px, 40vh);
  object-fit: contain;
  filter: drop-shadow(0 0 34px rgba(0, 170, 255, 0.52));
}

.startup-splash__modules {
  width: min(1280px, 92vw);
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 12px;
}

.startup-splash__modules span {
  min-height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(114, 193, 255, 0.24);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 92, 163, 0.1)),
    rgba(0, 0, 0, 0.28);
  color: #dfeaf4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.32;
  transform: translateY(8px);
  animation: moduleFlash 4700ms ease-in-out var(--delay) both;
  box-shadow: inset 0 0 18px rgba(0, 170, 255, 0.05);
}

.startup-splash__system {
  width: min(700px, 78vw);
  display: grid;
  gap: 10px;
  text-align: center;
}

.startup-splash__system span {
  color: #dce9f5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.startup-splash__system small {
  color: #74b9eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.startup-splash__bar {
  height: 8px;
  border: 1px solid rgba(123, 202, 255, 0.42);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.startup-splash__bar i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #eef7ff, #00aaff 42%, #005fc9);
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.78);
  transform-origin: left;
  animation: commandLoad 9400ms cubic-bezier(0.2, 0.72, 0.18, 1) both;
}

@keyframes commandIntro {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes commandLoad {
  from {
    transform: scaleX(0.04);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes commandScan {
  from {
    transform: translateX(-18%);
  }
  to {
    transform: translateX(18%);
  }
}

@keyframes moduleFlash {
  0% {
    opacity: 0;
    transform: translateY(8px);
    border-color: rgba(114, 193, 255, 0.12);
  }
  22% {
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(0, 170, 255, 0.78);
    box-shadow: 0 0 24px rgba(0, 170, 255, 0.28), inset 0 0 18px rgba(0, 170, 255, 0.16);
    color: #fff;
  }
  100% {
    opacity: 0.72;
    transform: translateY(0);
    border-color: rgba(114, 193, 255, 0.34);
  }
}

@keyframes commandCenterWave {
  0% {
    background-position: -80% 0, center, center, center, center;
  }
  48% {
    background-position: 120% 0, center, center, center, center;
  }
  100% {
    background-position: 120% 0, center, center, center, center;
  }
}

.sidebar {
  background:
    linear-gradient(180deg, #000 0, #02070d 118px, rgba(0, 84, 165, 0.36) 230px, rgba(0, 0, 0, 0) 420px),
    radial-gradient(circle at 85% 4%, rgba(0, 120, 255, 0.26), transparent 250px),
    var(--sidebar);
  color: #fff;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: inset -1px 0 0 rgba(0, 170, 255, 0.22);
}

.brand {
  display: grid;
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--teal);
  border-radius: 6px;
  font-size: 24px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 4px 0 8px;
  box-shadow: none;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 128px;
  object-fit: contain;
  object-position: center;
}

.brand h1,
.brand p,
.topbar h2,
.topbar p,
.panel h3 {
  margin: 0;
}

.brand h1 {
  color: #f4f8fc;
  font-size: 22px;
  letter-spacing: 0;
}

.brand p {
  color: #8bb7de;
  font-size: 12px;
  margin-top: 3px;
}

.sidebar-nav {
  display: grid;
  gap: 16px;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-group-label {
  color: #6aa5d3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 0 4px;
}

button,
.file-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  height: 38px;
  padding: 0 13px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.theme-toggle {
  min-width: 112px;
  border-color: rgba(0, 170, 255, 0.26);
  background: linear-gradient(180deg, #ffffff, #eef5fb);
}

.theme-switch {
  min-width: 96px;
  height: 38px;
  padding: 0 9px 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border-radius: 999px;
  font-weight: 800;
  background: linear-gradient(180deg, #f8fbff, #e8f0f7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.theme-switch-label {
  min-width: 33px;
  font-size: 12px;
  line-height: 1;
}

.theme-switch-track {
  width: 46px;
  height: 24px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #ccd8e2;
  box-shadow: inset 0 1px 4px rgba(13, 34, 51, 0.28);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.theme-switch-knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(13, 34, 51, 0.34);
  transition: transform 0.18s ease;
}

.theme-switch.is-dark .theme-switch-track {
  background: linear-gradient(90deg, #0078d4, #00b8ff);
  box-shadow: inset 0 1px 4px rgba(0, 26, 44, 0.34), 0 0 12px rgba(0, 184, 255, 0.28);
}

.theme-switch.is-dark .theme-switch-knob {
  transform: translateX(22px);
}

.nav-button {
  background: transparent;
  color: #d7e4ef;
  text-align: left;
  border-color: transparent;
  height: 34px;
}

.nav-button.active,
.nav-button:hover {
  background: linear-gradient(90deg, rgba(0, 120, 255, 0.24), rgba(0, 184, 255, 0.08));
  border-color: rgba(0, 170, 255, 0.2);
  color: #fff;
}

.security-note {
  margin-top: auto;
  border: 1px solid var(--sidebar-line);
  border-radius: 6px;
  padding: 12px;
  display: grid;
  gap: 6px;
  color: #d7e4ef;
  background: rgba(7, 17, 27, 0.82);
  font-size: 13px;
}

.export-card {
  border: 1px solid var(--sidebar-line);
  border-radius: 6px;
  padding: 12px;
  display: grid;
  gap: 9px;
  color: #d7e4ef;
  background: rgba(7, 17, 27, 0.82);
}

.report-tools {
  margin-top: 6px;
}

.report-action-bar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.report-action-bar > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.reports-center-hero .panel-head {
  align-items: flex-start;
}

.reports-center-grid,
.report-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.reports-center-card,
.report-template-card,
.reports-schedule-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.reports-center-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px;
  min-height: 190px;
}

.report-card-tag {
  width: fit-content;
  border: 1px solid rgba(0, 120, 212, 0.2);
  border-radius: 999px;
  background: rgba(0, 120, 212, 0.08);
  color: var(--blue);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
}

.reports-center-card h4,
.report-template-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.reports-center-card p,
.report-template-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.report-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.report-template-card {
  display: grid;
  gap: 9px;
}

.reports-schedule-grid {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.reports-schedule-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px minmax(180px, 0.8fr) auto;
  gap: 10px;
  align-items: center;
}

.reports-schedule-card strong {
  color: var(--ink);
}

.reports-schedule-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.reports-schedule-card em {
  justify-self: end;
  border-radius: 999px;
  background: rgba(0, 120, 212, 0.08);
  color: var(--blue);
  padding: 4px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.export-card label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.export-card select,
.export-card button {
  width: 100%;
  height: 34px;
  border-radius: 5px;
}

.security-note strong {
  color: #fff;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.compliance-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: #fbfcfd;
}

.compliance-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.compliance-card strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
}

.compliance-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.compliance-summary {
  padding: 14px 16px 0;
}

.app-modal.vendor-compliance-modal { z-index: 4900; padding: 12px; }

.app-modal-card.vendor-compliance-card {
  width: min(940px, 100%);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
}

.vendor-compliance-card .panel-head { flex-shrink: 0; gap: 12px; }
.vendor-compliance-card .panel-head > div { min-width: 0; }
.vendor-compliance-card h3 { overflow-wrap: anywhere; }
.vendor-compliance-body { padding: 0 16px 16px; overflow: auto; min-height: 0; }
.vendor-compliance-body table { width: 100%; table-layout: fixed; }
.vendor-compliance-body th:nth-child(1) { width: 29%; }
.vendor-compliance-body th:nth-child(2) { width: 19%; }
.vendor-compliance-body td { white-space: normal; overflow-wrap: anywhere; }
.vendor-compliance-body .compliance-file-link { max-width: none; }
.vendor-compliance-body .compliance-doc-cell { min-width: 0; }
.vendor-compliance-body input { max-width: 100%; }
.vendor-compliance-body .small-file-button:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
#vendorComplianceDocumentsStatus { margin: 12px 0; overflow-wrap: anywhere; }
#vendorComplianceTable .project-link-button { white-space: normal; text-align: left; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .vendor-compliance-body { padding: 0 12px 12px; }
  .vendor-compliance-body table, .vendor-compliance-body tbody { display: block; }
  .vendor-compliance-body tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .vendor-compliance-body tr:first-child { display: none; }
  .vendor-compliance-body td { border: 0; padding: 4px; }
  .vendor-compliance-body td:nth-child(3) { grid-column: 1 / -1; }
}

.coi-validation-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 159, 227, 0.06);
  padding: 12px;
  margin: 0 16px 12px;
}

.coi-validation-panel h4,
.coi-validation-panel p {
  margin: 0;
}

.coi-validation-panel textarea {
  min-height: 112px;
  width: 100%;
}

.coi-validation-cell {
  min-width: 220px;
}

.coi-validation-status,
.coi-validation-missing {
  display: block;
}

.coi-validation-missing {
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
  margin-top: 4px;
}

.compliance-doc-cell {
  min-width: 190px;
  white-space: normal;
}

.compliance-file-link {
  display: block;
  max-width: 210px;
  color: var(--blue);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.compliance-file-link:hover {
  text-decoration: underline;
}

.compliance-doc-meta,
.compliance-missing {
  display: block;
  margin: 4px 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.compliance-missing {
  color: var(--danger);
}

.compliance-doc-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.concern-detail {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.field-warning {
  margin-top: 4px;
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
}

main {
  padding: 22px;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar h2 {
  font-size: 26px;
}

.topbar p {
  color: var(--muted);
  margin-top: 4px;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.file-button {
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.import-status {
  background: #eef6f4;
  border: 1px solid #c9e2dc;
  color: #214b44;
  border-radius: 6px;
  padding: 10px 12px;
  margin: -4px 0 16px;
  font-size: 13px;
  font-weight: 700;
}

.import-status.error {
  background: #fff1f0;
  border-color: #f3b8b4;
  color: var(--danger);
}

.version-tags {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.version-tags > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
}

.version-tags span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.version-tags strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.status-strip > div,
.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
}

.dashboard-range {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
}

.dashboard-range span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-range strong {
  font-size: 16px;
}

.status-strip span,
.kpi span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-strip strong,
.kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.prospect-register-panel,
.formal-bid-register-panel,
.bid-workspace-panel {
  scroll-margin-top: 18px;
}

.module-hero {
  min-height: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  align-content: center;
  gap: 14px;
  height: 100vh;
  padding: 20px 28px 330px;
  margin-bottom: 0;
  border: 1px solid rgba(0, 108, 185, 0.22);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(2, 10, 18, 0.24) 48%, rgba(6, 26, 42, 0.38) 100%);
  color: #f4f8fc;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 -1px 0 rgba(0, 170, 255, 0.18), 0 14px 34px rgba(24, 39, 55, 0.08);
}

.module-network-canvas {
  z-index: 0;
  opacity: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, rgba(0, 0, 0, 0.3) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, rgba(0, 0, 0, 0.3) 100%);
}

.module-hero-logo,
.module-hero-copy {
  position: relative;
  z-index: 2;
}

.module-hero-actions {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
}

.module-hero-settings {
  min-width: 148px;
  background: linear-gradient(180deg, rgba(9, 26, 40, 0.94), rgba(4, 15, 24, 0.94));
  color: #dff3ff;
  border-color: rgba(125, 200, 255, 0.34);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(167, 226, 255, 0.08);
}

.module-hero-settings:hover {
  border-color: rgba(0, 170, 255, 0.62);
  box-shadow: 0 0 0 2px rgba(0, 170, 255, 0.1), 0 12px 26px rgba(0, 0, 0, 0.26);
}

.module-hero-logo {
  width: min(790px, 76vw);
  display: grid;
  place-items: center;
  opacity: 1;
  transform: translateY(-14px);
}

.module-hero-logo img {
  display: block;
  width: 100%;
  max-height: min(410px, 42vh);
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(0, 170, 255, 0.28));
}

.module-hero-copy {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100vw - 44px));
  max-width: 820px;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  margin-top: -28px;
  padding: 8px 24px 7px;
  border: 1px solid rgba(125, 200, 255, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 68, 128, 0.34), rgba(0, 0, 0, 0.18)),
    rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 26px rgba(0, 170, 255, 0.14), inset 0 0 18px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(5px);
}

.module-hero-copy span {
  color: #e8f4ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(0, 170, 255, 0.62), 0 0 20px rgba(255, 255, 255, 0.22);
}

.module-hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #8fc8ee;
  font-size: 12px;
}

.module-command-center {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 24px;
  z-index: 4;
  display: grid;
  gap: 10px;
}

.command-pulse-strip {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) repeat(5, minmax(100px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.command-pulse-head,
.command-pulse-item {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 9px 12px;
  border: 1px solid rgba(125, 200, 255, 0.22);
  border-radius: 8px;
  background: rgba(0, 16, 30, 0.54);
  color: #edf6ff;
  text-align: left;
  box-shadow: inset 0 0 18px rgba(0, 170, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.command-pulse-item {
  cursor: pointer;
}

.command-pulse-item:hover {
  border-color: rgba(0, 170, 255, 0.58);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 170, 255, 0.2), transparent 82%),
    rgba(0, 28, 48, 0.46);
  box-shadow: inset 0 0 0 1px rgba(0, 170, 255, 0.2), 0 0 22px rgba(0, 170, 255, 0.14);
}

.command-pulse-head span,
.command-pulse-item span {
  color: #64caff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-pulse-head strong {
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-pulse-item strong {
  color: #edf6ff;
  font-size: 20px;
  line-height: 1;
}

.module-category-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.module-category-panel {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 10px;
  border: 1px solid rgba(125, 200, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 11, 22, 0.36);
}

.module-category-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  color: #8fc8ee;
  font-size: 11px;
}

.module-category-heading strong {
  color: #edf6ff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.module-grid--landing {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.module-card {
  min-height: 62px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 7px 9px;
  border: 1px solid rgba(125, 200, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 89, 160, 0.08)),
    rgba(0, 0, 0, 0.28);
  color: #edf6ff;
  text-align: center;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 18px rgba(0, 170, 255, 0.06), 0 12px 26px rgba(0, 0, 0, 0.18);
}

.module-card.quick-launch-hidden,
.module-category-panel.quick-launch-empty {
  display: none;
}

.module-card:hover {
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 170, 255, 0.2), transparent 82%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 89, 160, 0.12));
  box-shadow: inset 0 0 0 1px rgba(0, 170, 255, 0.42), 0 0 24px rgba(0, 170, 255, 0.14);
}

.module-card.module-locked,
.nav-group.module-locked {
  opacity: 0.46;
  filter: grayscale(0.45);
}

.module-card.module-locked {
  cursor: not-allowed;
  border-color: rgba(150, 160, 175, 0.24);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.04);
}

.module-card.module-locked span {
  color: transparent;
  font-size: 0;
}

.module-card.module-locked span::after {
  content: "Locked";
  color: #ff9d9d;
  font-size: 10px;
}

.nav-group.module-locked .nav-button {
  cursor: not-allowed;
}

.account-add-user-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(150px, 0.9fr) minmax(160px, 1fr) minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.account-add-user-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.account-add-user-form .small-button {
  min-height: 38px;
}

.platform-admin-layout {
  display: grid;
  gap: 16px;
}

.platform-admin-card,
.platform-admin-nav {
  border-color: rgba(41, 255, 133, 0.35);
}

.platform-admin-layout .compact-table table {
  min-width: 760px;
}

.module-card span {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 170, 255, 0.12);
  color: #ff8585;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 0 9px rgba(255, 42, 42, 0.9), 0 0 18px rgba(255, 42, 42, 0.6);
  box-shadow: 0 0 12px rgba(255, 42, 42, 0.16), inset 0 0 10px rgba(255, 42, 42, 0.1);
}

.module-card.is-live span {
  background: rgba(41, 255, 133, 0.12);
  color: #75ffad;
  text-shadow: 0 0 9px rgba(41, 255, 133, 0.9), 0 0 18px rgba(41, 255, 133, 0.58);
  box-shadow: 0 0 12px rgba(41, 255, 133, 0.18), inset 0 0 10px rgba(41, 255, 133, 0.1);
}

.module-card strong {
  max-width: 190px;
  font-size: 12px;
  line-height: 1.18;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-card em {
  display: none;
}

body[data-active-module="pmo"] .nav-group:not([data-module="pmo"]),
body[data-active-module="crew"] .nav-group:not([data-module="crew"]),
body[data-active-module="gis"] .nav-group:not([data-module="gis"]),
body[data-active-module="construction"] .nav-group:not([data-module="construction"]),
body[data-active-module="engineering"] .nav-group:not([data-module="engineering"]),
body[data-active-module="fleet"] .nav-group:not([data-module="fleet"]),
body[data-active-module="financial"] .nav-group:not([data-module="financial"]),
body[data-active-module="people"] .nav-group:not([data-module="people"]),
body[data-active-module="employee"] .nav-group:not([data-module="employee"]),
body[data-active-module="bid"] .nav-group:not([data-module="bid"]),
body[data-active-module="materials"] .nav-group:not([data-module="materials"]),
body[data-active-module="customer"] .nav-group:not([data-module="customer"]),
body[data-active-module="executive"] .nav-group:not([data-module="executive"]),
body[data-active-module="platform"] .nav-group:not([data-module="platform"]) {
  display: none;
}

.module-portal {
  min-height: 360px;
}

.executive-intelligence {
  overflow: hidden;
}

#executiveIntelligenceDashboard {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.executive-brief {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.35fr);
  gap: 16px;
  border: 1px solid rgba(0, 120, 212, 0.2);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(2, 28, 48, 0.96), rgba(0, 91, 152, 0.9)),
    #061827;
  color: #eef8ff;
  padding: 18px;
  box-shadow: 0 18px 36px rgba(0, 84, 148, 0.16);
}

.executive-brief h3 {
  margin: 4px 0 7px;
  color: #fff;
  font-size: 22px;
}

.executive-brief p,
.executive-brief li {
  color: #c8e6fb;
  line-height: 1.42;
}

.executive-brief ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.executive-eyebrow {
  color: #68d7ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.executive-module-health {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.executive-module-health div,
.executive-module-health button {
  min-height: 88px;
  display: grid;
  gap: 4px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  padding: 11px;
  color: var(--ink);
  text-align: left;
  font: inherit;
}

.executive-module-health button {
  cursor: pointer;
}

.executive-module-health button:hover {
  border-color: rgba(0, 120, 212, 0.45);
  box-shadow: 0 10px 24px rgba(0, 84, 148, 0.12);
  transform: translateY(-1px);
}

.executive-module-health span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.executive-module-health strong {
  font-size: 16px;
}

.executive-module-health em {
  width: fit-content;
  border-radius: 999px;
  background: #eaf5ff;
  color: #1f5f85;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 3px 8px;
}

.executive-module-health .status-needs-review em,
.executive-module-health .status-approval-needed em {
  background: #fff1d8;
  color: #8a4b00;
}

.executive-module-health .status-clear em,
.executive-module-health .status-stable em,
.executive-module-health .status-active em {
  background: #e7f7ee;
  color: #276749;
}

.executive-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.executive-table-panel .table-wrap {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.module-roadmap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.module-roadmap div {
  min-height: 110px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--blue);
  font-weight: 800;
  text-align: center;
}

.permit-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-top: 1px solid var(--line);
  align-items: start;
  overflow: hidden;
}

.permit-map-workspace {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.permit-workspace > div {
  min-width: 0;
  max-width: 100%;
}

.permit-map-column {
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.hld-list-toolbar { padding: 12px 16px; }
.hld-list-toolbar label { display: grid; gap: 6px; max-width: 400px; font-size: 12px; color: var(--muted); }
#hldProjectTable { min-width: 760px; }
#hldProjectTable small { display: block; color: var(--muted); margin-top: 4px; }
#hldProjectTable .table-link-button { white-space: normal; text-align: left; }
#hldProjectWorkspace { min-width: 0; }
.hld-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); padding: 0 16px; gap: 16px; }
.hld-tabs [role="tab"] { flex: 0 0 auto; color: var(--muted); background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 12px 4px; font-size: 13px; }
.hld-tabs [aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.hld-tab-panel { padding: 16px; min-width: 0; }
.hld-tab-panel > .nested-panel, .hld-output > .nested-panel { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; min-width: 0; }
.hld-section-actions { display: flex; justify-content: flex-end; margin-bottom: 16px; }
#hldPanel-planning .detail-input { width: 100%; max-width: none; min-width: 0; }
#hldPanel-planning .hld-controls > .hld-input-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hld-jurisdiction-card summary { cursor: pointer; font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.hld-jurisdiction-card > button { margin-top: 12px; }
@media (max-width: 1000px) {
  #hldPanel-planning .hld-controls > .hld-input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hld-map-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.hld-map-toolbar > label:first-child { display: grid; gap: 6px; flex: 1 1 260px; max-width: 480px; font-size: 12px; color: var(--muted); min-width: 0; }
.hld-map-toolbar select { width: 100%; max-width: 100%; }
.hld-map-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hld-map-toggle { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 0; }
.hld-map-tools svg, #backToHldProjects svg { width: 15px; height: 15px; vertical-align: middle; }
.hld-icon-button { width: 32px; height: 32px; padding: 6px; }
#drawHldPolygon[aria-pressed="true"] { background: var(--blue); color: white; }
#hldDiscoveryMap { height: min(65vh, 720px); min-height: 390px; width: 100%; }
#hldDiscoveryMap.hld-drawing { cursor: crosshair; }
#hldProjectWorkspace .panel-head > div { min-width: 0; overflow-wrap: anywhere; }
#hldProjectWorkspace .panel-head { flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) {
  #hldPanel-planning .hld-controls > .hld-input-grid { grid-template-columns: minmax(0, 1fr); }
  .hld-tab-panel { padding: 12px; }
  .hld-tabs { gap: 12px; }
  #hldDiscoveryMap { min-height: 340px; }
  .hld-map-tools { gap: 6px; }
}

.hld-controls {
  display: grid;
  gap: 12px;
  align-content: start;
}

.hld-controls label,
.hld-input-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hld-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hld-jurisdiction-card {
  display: block;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hld-jurisdiction-card strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  text-transform: none;
}

.hld-jurisdiction-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.hld-controls textarea {
  min-height: 120px;
  resize: vertical;
  text-transform: none;
}

.hld-output {
  display: grid;
  gap: 14px;
}

.hld-map-panel {
  margin-bottom: 10px;
}

.hld-map-panel .leaflet-map {
  min-height: 390px;
}

.hld-map-actions {
  margin: 0 0 12px;
}

.hld-concept-panel .panel-head span {
  max-width: 980px;
  line-height: 1.5;
}

.permit-mode-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
  border-top: 1px solid var(--line);
}

.permit-mode-tab {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f6f9fb;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.permit-mode-tab.active {
  border-color: var(--blue);
  background: rgba(0, 159, 227, 0.12);
  color: var(--blue);
  box-shadow: 0 0 0 1px rgba(0, 159, 227, 0.12) inset;
}

.permit-mode-panel {
  display: none;
}

.permit-mode-panel.active {
  display: block;
}

#permitTrackerPanel {
  padding: 16px;
}

.permit-inline-actions {
  justify-content: flex-start;
  padding: 0;
  gap: 10px;
}

.permit-inline-actions .small-button {
  width: auto;
  min-width: 148px;
  height: auto;
  min-height: 40px;
  padding: 8px 13px;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}

.permit-inline-actions #runGisBoundaryLookup,
.permit-inline-actions #runPermitDiscovery {
  min-width: 184px;
}

.permit-inline-actions #saveEngineeringScope {
  min-width: 150px;
}

.engineering-map-panel {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
  width: 100%;
  max-width: 100%;
}

.engineering-map-panel .leaflet-map {
  position: relative;
  z-index: 1;
  height: clamp(360px, 46vh, 520px);
  width: 100%;
  max-width: 100%;
  min-height: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.map-action-bar {
  position: relative;
  z-index: 1301;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: rgba(0, 159, 227, 0.08);
  width: 100%;
  max-width: 100%;
}

.engineering-map-panel .gis-map-readout {
  position: relative;
  z-index: 1301;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 7px 7px;
}

.engineering-map-panel .leaflet-control-container,
.engineering-map-panel .leaflet-pane {
  max-width: 100%;
  max-height: 100%;
}

.engineering-map-panel .leaflet-container {
  width: 100% !important;
  max-width: 100% !important;
}

.map-action-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.map-action-bar .primary-map-action {
  min-width: 132px;
  min-height: 38px;
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 159, 227, 0.22);
}

.map-action-bar .primary-map-action.active {
  background: #22c55e;
  border-color: #22c55e;
  color: #052411;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18), 0 10px 22px rgba(34, 197, 94, 0.22);
}

.engineering-map-panel .leaflet-map.polygon-drawing-active {
  cursor: crosshair;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.36) inset;
}

.permit-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  align-content: start;
  position: relative;
  z-index: 2;
}

.permit-controls > .permit-inline-actions,
.permit-controls > .permit-source-grid,
.permit-controls > #permitDiscoveryStatus {
  grid-column: 1 / -1;
}

.permit-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.permit-controls textarea {
  min-height: 88px;
  resize: vertical;
  text-transform: none;
}

.permit-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.permit-source-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  color: var(--ink);
  text-transform: none;
}

.hidden {
  display: none !important;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}

.panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.panel-head h3 {
  font-size: 17px;
}

.panel-head span {
  color: var(--muted);
  font-size: 13px;
}

.panel-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-actions-cell {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.date-control {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.date-control select {
  height: 32px;
  min-width: 160px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 220px);
}

.compact-table {
  max-height: none;
}

body.compact-layout main {
  padding: 14px 18px;
}

body.compact-layout .panel,
body.compact-layout .nested-panel {
  margin-bottom: 12px;
}

body.compact-layout .panel-head {
  padding: 10px 12px;
}

body.compact-layout th,
body.compact-layout td {
  padding: 6px 8px;
}

body.compact-layout .detail-summary-grid {
  gap: 8px;
}

.preferences-grid {
  align-items: end;
}

.preference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
}

.report-note {
  background: #f7fafc;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 16px;
}

.report-note.empty {
  background: #fff8e8;
  color: #7a4b12;
}

.report-note.error {
  background: #fff0f0;
  color: #9f1f1f;
}

.report-assistant-panel .panel-head {
  align-items: flex-start;
}

.report-assistant-box {
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}

.report-assistant-box textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  font: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid #edf1f4;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

th {
  background: #e7eef3;
  color: #233746;
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 1;
}

td.numeric,
th.numeric {
  text-align: center !important;
  vertical-align: middle;
}

.table-wrap td.numeric,
.table-wrap th.numeric {
  text-align: center !important;
}

td.project,
td.description {
  white-space: normal;
  min-width: 240px;
}

.project-summary-row td {
  background: #f7fafc;
  font-weight: 800;
  border-top: 2px solid var(--line);
}

.unit-item-row td {
  background: #fff;
  color: #4b5b68;
}

.vendor-item-row td {
  background: #fbfcf7;
  color: #455a35;
}

.unit-item-row td.description {
  padding-left: 28px;
  font-size: 12px;
}

.vendor-item-row td.description {
  padding-left: 28px;
  font-size: 12px;
  font-weight: 700;
}

.mapping-input {
  width: 240px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 8px;
}

.small-button {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.small-file-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.small-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.small-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.customer-name {
  width: 280px;
}

.customer-market,
.customer-status {
  width: 130px;
}

.customer-notes {
  width: 360px;
}

.manual-project-name {
  width: 300px;
}

.project-id {
  width: 190px;
}

.project-city {
  width: 170px;
}

.project-state {
  width: 90px;
}

.project-region {
  width: 190px;
}

.project-workstream {
  width: 210px;
}

.project-market {
  width: 90px;
}

.project-customer {
  width: 220px;
}

.construction-type-cell {
  min-width: 190px;
  max-width: 260px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.construction-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(0, 159, 227, 0.34);
  border-radius: 999px;
  background: rgba(0, 159, 227, 0.12);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.construction-type-badge.status-bore {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.14);
}

.construction-type-badge.status-trench,
.construction-type-badge.status-plow {
  border-color: rgba(245, 158, 11, 0.46);
  background: rgba(245, 158, 11, 0.14);
}

.construction-type-badge.status-aerial {
  border-color: rgba(34, 197, 94, 0.46);
  background: rgba(34, 197, 94, 0.14);
}

.construction-type-badge.status-splicing,
.construction-type-badge.status-fiber {
  border-color: rgba(168, 85, 247, 0.42);
  background: rgba(168, 85, 247, 0.14);
}

.construction-type-badge.status-structures,
.construction-type-badge.status-conduit {
  border-color: rgba(14, 165, 233, 0.44);
  background: rgba(14, 165, 233, 0.14);
}

.construction-type-missing,
.muted-cell-text {
  color: var(--muted);
}

.project-status {
  width: 140px;
}

.project-link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  height: auto;
  padding: 0;
  text-align: left;
  font-weight: 800;
}

.fleet-asset-link-cell {
  display: grid;
  gap: 4px;
}

.fleet-asset-link-cell span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.inline-actions-cell {
  display: flex;
  gap: 7px;
  align-items: center;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.action-status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(0, 120, 212, 0.24);
  border-radius: 5px;
  background: #eaf5ff;
  color: #1f5f85;
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
  white-space: nowrap;
}

.project-detail-panel {
  min-height: 180px;
}

.project-audit-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}

.project-audit-summary div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 159, 227, 0.06);
  padding: 10px 12px;
}

.project-audit-summary strong,
.project-audit-summary span {
  display: block;
}

.project-audit-summary strong {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.project-audit-summary span {
  margin-top: 4px;
  font-weight: 800;
}

.projects-dashboard {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.ai-widget-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}

.module-ai-widget-panel {
  margin-top: 14px;
}

.ai-dashboard-widget {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.ai-dashboard-widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(0, 145, 214, 0.12), rgba(244, 247, 250, 0.96));
}

.ai-dashboard-widget-head h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.ai-dashboard-widget-head span,
.ai-dashboard-widget-foot {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ai-dashboard-widget-foot {
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.ai-report-pin-target {
  width: min(260px, 100%);
  min-height: 34px;
}

.ai-report-chart-panel {
  margin-top: 12px;
}

.ai-report-chart {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(0, 145, 214, 0.08), rgba(255, 255, 255, 0.96));
}

.ai-report-chart.compact {
  margin: 12px 14px 0;
}

.ai-report-chart > strong {
  font-size: 13px;
}

.ai-report-bars {
  display: grid;
  gap: 8px;
}

.ai-report-bar-row {
  display: grid;
  grid-template-columns: minmax(95px, 1fr) minmax(120px, 2fr) minmax(58px, auto);
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}

.ai-report-bar-row span {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-report-bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 65, 118, 0.13);
  overflow: hidden;
}

.ai-report-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #23d2ff);
}

.ai-report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.ai-report-kpi-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

.ai-report-kpi-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ai-report-kpi-grid b {
  font-size: 18px;
}

.project-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.project-filter-bar .small-button {
  min-height: 38px;
  justify-content: center;
}

.nested-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.account-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.account-settings-card {
  padding: 0;
}

.account-settings-tabbed {
  display: grid;
  gap: 12px;
}

.account-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.account-settings-tab {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  min-height: 36px;
  padding: 8px 12px;
}

.account-settings-tab.active {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(26, 160, 214, 0.18), rgba(0, 92, 174, 0.12));
  color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(26, 160, 214, 0.18) inset;
}

.account-settings-tab-content {
  display: grid;
  gap: 14px;
}

.account-form-grid,
.account-blueprint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  padding: 14px;
}

.account-field,
.account-blueprint-grid div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  padding: 10px;
}

.account-field span,
.account-blueprint-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.account-blueprint-grid strong {
  color: var(--ink);
}

.company-org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.company-org-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.company-org-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.company-org-card strong {
  color: var(--ink);
  font-size: 20px;
}

.company-org-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.company-org-chart-section {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  overflow: hidden;
}

.company-org-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.company-org-panel-head,
.company-org-chart-heading {
  flex-wrap: wrap;
}

.company-org-panel-head .small-button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.company-org-chart-heading h4,
.company-org-chart-heading p {
  margin: 0;
}

.company-org-chart-heading h4 {
  color: var(--ink);
  font-size: 15px;
}

.company-org-chart-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.company-org-chart-legend {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.company-org-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.company-org-chart-legend i,
.company-org-person > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.14);
}

.company-org-chart-legend i.active,
.company-org-person > i.active {
  background: #18a866;
  box-shadow: 0 0 0 3px rgba(24, 168, 102, 0.14);
}

.company-org-chart-scroll {
  overflow: auto;
  padding: 24px 18px 28px;
  scrollbar-gutter: stable;
}

.company-org-editor {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(26, 160, 214, 0.06);
}

.company-org-editor-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.company-org-editor-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.company-org-editor-actions {
  display: flex;
  gap: 8px;
}

.company-org-editor-actions .small-button {
  min-height: 38px;
  white-space: nowrap;
}

.company-org-editor-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.company-org-chart-forest {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 30px;
  min-width: max-content;
}

.company-org-tree,
.company-org-tree ul {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: relative;
}

.company-org-tree ul {
  padding-top: 28px;
}

.company-org-tree li {
  position: relative;
  list-style: none;
  padding: 28px 7px 0;
  text-align: center;
}

.company-org-tree > li {
  padding-top: 0;
}

.company-org-tree li::before,
.company-org-tree li::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 28px;
  border-top: 1px solid var(--line);
}

.company-org-tree li::before {
  right: 50%;
}

.company-org-tree li::after {
  left: 50%;
  border-left: 1px solid var(--line);
}

.company-org-tree li:only-child::before,
.company-org-tree li:only-child::after,
.company-org-tree > li::before,
.company-org-tree > li::after {
  display: none;
}

.company-org-tree li:first-child::before,
.company-org-tree li:last-child::after {
  border-top: 0;
}

.company-org-tree li:last-child::before {
  border-right: 1px solid var(--line);
  border-radius: 0 6px 0 0;
}

.company-org-tree li:first-child::after {
  border-radius: 6px 0 0 0;
}

.company-org-tree ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 28px;
  border-left: 1px solid var(--line);
}

.company-org-person {
  display: grid;
  grid-template-columns: 34px minmax(118px, 1fr) 8px;
  align-items: center;
  gap: 9px;
  width: 200px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(15, 36, 51, 0.08);
  text-align: left;
}

.company-org-person.is-inactive {
  opacity: 0.68;
}

.company-org-person.is-unassigned {
  width: 190px;
  border-style: dashed;
  box-shadow: none;
}

.company-org-person.is-editable {
  cursor: grab;
  user-select: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.company-org-person.is-editable:hover,
.company-org-person.is-editable:focus-visible,
.company-org-person.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 160, 214, 0.15), 0 7px 18px rgba(15, 36, 51, 0.1);
  outline: none;
}

.company-org-person.is-dragging {
  cursor: grabbing;
  opacity: 0.5;
  transform: scale(0.98);
}

.company-org-person.is-drop-target {
  border-color: #18a866;
  box-shadow: 0 0 0 4px rgba(24, 168, 102, 0.2);
}

.company-org-person.is-protected {
  cursor: default;
}

.company-org-person.is-protected .company-org-avatar {
  background: #164e73;
  box-shadow: 0 0 0 3px rgba(26, 160, 214, 0.16);
}

.company-org-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0b77b7;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.company-org-person-copy {
  display: grid;
  min-width: 0;
}

.company-org-person-copy strong,
.company-org-person-copy span,
.company-org-person-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-org-person-copy strong {
  color: var(--ink);
  font-size: 12px;
}

.company-org-person-copy span {
  margin-top: 2px;
  color: #0b77b7;
  font-size: 11px;
  font-weight: 800;
}

.company-org-person-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.company-org-unassigned {
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 14px;
  border: 1px dashed #d19a32;
  border-radius: 8px;
  background: rgba(209, 154, 50, 0.06);
  text-align: left;
}

.company-org-unassigned > strong {
  color: var(--ink);
  font-size: 13px;
}

.company-org-unassigned > span {
  color: var(--muted);
  font-size: 11px;
}

.company-org-unassigned-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

body.dark-mode .company-org-chart-section,
body.dark-mode .company-org-person {
  background: rgba(8, 21, 33, 0.96);
  border-color: var(--line);
}

body.dark-mode .company-org-unassigned {
  background: rgba(209, 154, 50, 0.08);
}

@media (max-width: 760px) {
  .company-org-chart-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-org-chart-scroll {
    padding-inline: 10px;
  }

  .company-org-editor {
    grid-template-columns: 1fr;
  }

  .company-org-editor-actions {
    flex-wrap: wrap;
  }
}

.account-table-input {
  width: min(260px, 100%);
}

.projects-overview-map {
  min-height: 430px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #e8eef2;
}

.team-capacity-table td:first-child,
.team-capacity-table td:nth-child(2),
.team-capacity-table td:nth-child(3) {
  white-space: nowrap;
}

.coverage-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.coverage-command-panel {
  overflow: hidden;
}

.coverage-command-head {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 94%, var(--steel));
}

.coverage-command-head h3,
.coverage-command-head p {
  margin: 0;
}

.coverage-command-head h3 {
  margin-top: 3px;
  font-size: 24px;
}

.coverage-command-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.coverage-command-eyebrow {
  color: var(--electric);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.coverage-command-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.coverage-kpi {
  position: relative;
  min-height: 64px;
  display: grid;
  grid-template-columns: 10px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-content: center;
  padding: 8px 14px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

.coverage-kpi:last-child {
  border-right: 0;
}

.coverage-kpi > span {
  grid-row: 1 / 3;
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--electric);
}

.coverage-kpi-attention > span { background: var(--gold); }
.coverage-kpi-customers > span { background: var(--teal); }
.coverage-kpi-regions > span { background: #87939d; }

.coverage-kpi strong {
  font-size: 21px;
  line-height: 1;
}

.coverage-kpi small {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.coverage-command-shell {
  display: grid;
  grid-template-columns: 230px minmax(440px, 1fr) 370px;
  min-height: 650px;
  border-bottom: 1px solid var(--line);
}

.coverage-filter-rail,
.coverage-map-panel {
  background: color-mix(in srgb, var(--panel) 96%, var(--steel));
}

.coverage-filter-rail {
  padding: 16px;
  border-right: 1px solid var(--line);
  overflow: auto;
}

.coverage-search-control,
.coverage-assignment-grid label {
  display: grid;
  gap: 6px;
}

.coverage-search-control > span,
.coverage-filter-heading,
.coverage-inspector-field > div:first-child > span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.coverage-filter-section {
  margin-top: 18px;
}

.coverage-filter-heading {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-button {
  padding: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--electric);
  font-size: 10px;
}

.coverage-region-filters,
.coverage-status-legend {
  display: grid;
  gap: 5px;
}

.coverage-filter-button,
.coverage-legend-button {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.coverage-filter-button:hover,
.coverage-filter-button.active,
.coverage-legend-button:hover,
.coverage-legend-button.active {
  border-color: color-mix(in srgb, var(--electric) 55%, var(--line));
  background: color-mix(in srgb, var(--electric) 10%, var(--panel));
}

.coverage-filter-button strong,
.coverage-legend-button strong {
  min-width: 26px;
  text-align: center;
  color: var(--muted);
}

.coverage-legend-button > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.coverage-legend-button i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--legend-color);
}

.coverage-attention-card {
  width: 100%;
  min-height: 72px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--gold) 10%, var(--panel));
  color: var(--ink);
  text-align: left;
}

.coverage-attention-card.active {
  box-shadow: inset 3px 0 0 var(--gold);
}

.coverage-attention-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-weight: 900;
}

.coverage-attention-card > span:last-child {
  display: grid;
  gap: 3px;
}

.coverage-attention-card small {
  color: var(--muted);
  font-size: 10px;
}

.coverage-map-workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(540px, 1fr) auto;
  background: var(--panel);
}

.coverage-map-toolbar,
.coverage-map-hint {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 11px;
}

.coverage-map-toolbar {
  border-bottom: 1px solid var(--line);
}

.coverage-map-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.coverage-map-toolbar select {
  width: 130px;
}

.coverage-map-hint {
  min-height: 34px;
  border-top: 1px solid var(--line);
}

.coverage-map-canvas {
  min-height: 540px;
  border: 0;
}

.coverage-map-canvas .leaflet-interactive,
.coverage-map-canvas .coverage-state-boundary {
  cursor: pointer;
}

.coverage-map-canvas .coverage-state-boundary {
  transition: fill-opacity 120ms ease, stroke-width 120ms ease;
}

.coverage-state-code-label {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--ink) 66%, transparent);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 2px var(--panel), 0 0 4px var(--panel);
  pointer-events: none;
}

.coverage-state-code-label.has-operations {
  color: var(--electric);
  font-size: 10px;
}

.coverage-state-code-label.is-selected span {
  min-width: 24px;
  padding: 3px 4px;
  border-radius: 4px;
  background: var(--electric);
  color: #fff;
  text-shadow: none;
}

.coverage-map-panel {
  min-width: 0;
  padding: 16px;
  display: block;
  overflow: auto;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
}

.coverage-map-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.coverage-map-panel-head > div {
  display: grid;
  gap: 4px;
}

.coverage-map-panel-head strong {
  font-size: 20px;
}

.coverage-map-panel-head small {
  color: var(--muted);
  line-height: 1.35;
}

.coverage-state-stats {
  margin: 14px 0;
}

.coverage-state-stats .detail-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coverage-assignment-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 10px;
}

.coverage-assignment-heading > div {
  display: grid;
  gap: 3px;
}

.coverage-assignment-heading span {
  color: var(--muted);
  font-size: 10px;
}

.coverage-role-count {
  padding: 4px 7px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--electric) 10%, var(--panel));
  color: var(--electric) !important;
  white-space: nowrap;
}

.coverage-inspector-field {
  display: grid;
  gap: 6px;
}

.coverage-inspector-field > div:first-child {
  display: flex;
  justify-content: space-between;
}

.coverage-inspector-field small {
  color: var(--muted);
  font-size: 9px;
}

.coverage-inspector-options {
  max-height: 118px;
  padding: 6px;
  display: grid;
  gap: 3px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.coverage-inspector-option {
  min-height: 28px;
  display: flex !important;
  grid-template: none !important;
  align-items: center;
  gap: 7px !important;
  padding: 3px 5px;
  border-radius: 4px;
}

.coverage-inspector-option:hover {
  background: color-mix(in srgb, var(--electric) 8%, var(--panel));
}

.coverage-inspector-option input {
  accent-color: var(--electric);
}

.coverage-inspector-option span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
}

.coverage-drawer-section {
  margin-top: 16px;
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

.coverage-state-register {
  padding: 16px;
  background: var(--panel);
}

.team-capacity-modal-card {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.gis-projects-filters {
  display: grid;
  grid-template-columns: minmax(230px, 1.3fr) repeat(5, minmax(135px, 0.75fr)) auto;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 95%, var(--steel));
}

.gis-projects-portfolio {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.gis-customer-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.gis-customer-heading {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 92%, var(--steel));
}

.gis-customer-heading > div {
  display: grid;
  gap: 2px;
}

.gis-customer-heading small,
#gisProjectsPortfolio td > small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.gis-project-link {
  padding: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--electric);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gis-project-progress {
  min-width: 88px;
  display: grid;
  gap: 5px;
}

.gis-project-progress strong {
  font-size: 11px;
}

.gis-project-progress > span {
  height: 5px;
  overflow: hidden;
  border-radius: 4px;
  background: color-mix(in srgb, var(--line) 75%, var(--panel));
}

.gis-project-progress i {
  display: block;
  height: 100%;
  background: var(--electric);
}

.gis-projects-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
}

.coverage-map-main,
.team-capacity-entry {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  overflow: hidden;
}

.coverage-map-canvas {
  min-height: 540px;
}

.coverage-map-panel-head span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.coverage-map-panel-head strong {
  font-size: 20px;
  line-height: 1.05;
  color: var(--ink);
}

.coverage-state-stats .detail-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coverage-assignment-grid {
  display: grid;
  gap: 12px;
}

.coverage-assignment-grid label {
  display: grid;
  gap: 6px;
}

.coverage-assignment-grid span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.coverage-assignment-actions {
  display: flex;
  justify-content: flex-end;
}

.selected-row td {
  background: rgba(0, 159, 227, 0.08);
}

.team-capacity-entry {
  margin: 14px 0;
  padding: 16px;
}

.gis-visibility-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(160px, 0.8fr)) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #f7fbfe;
}

.toggle-control {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.toggle-control input {
  accent-color: var(--accent);
}

.fleet-map-panel {
  margin: 0 0 14px;
}

.fleet-nav-button,
.module-icon-nav-button {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fleet-nav-button svg,
.module-icon-nav-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke-width: 2;
}

.fleet-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.fleet-dashboard-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  overflow: hidden;
}

.fleet-dashboard-panel .panel-subhead {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.fleet-alert-card-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.fleet-dashboard-alert {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #1e88c8;
  border-radius: 6px;
  background: var(--panel-soft, #f7fbfe);
}

.fleet-dashboard-alert.critical,
.fleet-dashboard-alert.expired,
.fleet-dashboard-alert.needs-review {
  border-left-color: #c6382d;
}

.fleet-dashboard-alert.due-soon,
.fleet-dashboard-alert.overdue {
  border-left-color: #c7861d;
}

.fleet-dashboard-alert > div {
  min-width: 0;
}

.fleet-dashboard-alert-eyebrow {
  display: block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fleet-dashboard-alert strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

.fleet-dashboard-alert p {
  margin: 5px 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
}

.fleet-dashboard-alert small {
  color: var(--muted);
  font-size: 11px;
}

#fleetDashboardSummary .detail-summary-grid {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.fleet-map-filters,
.fleet-driver-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px)) minmax(130px, 1fr);
  gap: 12px;
  align-items: end;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 120, 212, 0.025);
}

.fleet-map-filters label,
.fleet-driver-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fleet-map-filters select,
.fleet-driver-filters select,
.fleet-driver-filters input,
.fleet-register-filters input {
  width: 100%;
  min-height: 42px;
}

.fleet-map-count {
  justify-self: end;
  min-width: 118px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.fleet-map-workspace-expanded {
  position: fixed;
  inset: 12px;
  z-index: 5200;
  display: block !important;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 22, 38, 0.38);
}

.fleet-map-workspace-expanded .fleet-location-map {
  min-height: calc(100vh - 230px);
}

body.fleet-map-overlay-open {
  overflow: hidden;
}

.fleet-location-map {
  min-height: 430px;
}

.fleet-location-icon span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--fleet-color, #009fe3);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 46, 82, 0.32);
  font-size: 13px;
  font-weight: 900;
}

.fleet-workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fleet-workspace-head > div {
  min-width: 0;
}

.fleet-register-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(0, 120, 212, 0.08), rgba(0, 159, 227, 0.025));
}

.fleet-register-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fleet-register-tab {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
}

.fleet-register-tab.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 120, 212, 0.2);
}

.fleet-register-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) repeat(4, minmax(140px, 1fr));
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 120, 212, 0.025);
}

.fleet-register-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fleet-register-filters select {
  width: 100%;
  min-height: 42px;
}

.fleet-search-filter input {
  min-width: 0;
}

.fleet-register-summary {
  padding: 14px 16px 0;
}

.fleet-register-list {
  display: grid;
  gap: 8px;
  padding: 14px 16px 18px;
}

.fleet-register-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) minmax(140px, 0.95fr) minmax(190px, 1fr) minmax(180px, 1.1fr) minmax(100px, 0.65fr) minmax(190px, 1fr) minmax(135px, 0.75fr);
  gap: 14px;
  align-items: center;
}

.fleet-homebase-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(250px, 1.5fr) minmax(160px, 0.9fr) minmax(80px, 0.5fr) minmax(100px, 0.6fr) minmax(135px, 0.75fr);
  gap: 14px;
  align-items: center;
}

.fleet-driver-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(190px, 1fr) minmax(200px, 1.1fr) minmax(190px, 1.1fr) minmax(190px, 1fr) minmax(100px, 0.6fr) minmax(135px, 0.75fr);
  gap: 14px;
  align-items: center;
}

.fleet-driver-units {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
}

.fleet-register-header {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 120, 212, 0.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fleet-register-record {
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 4px 14px rgba(8, 41, 63, 0.05);
}

.fleet-register-record > div,
.fleet-register-record > strong {
  min-width: 0;
}

.fleet-register-record small {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
}

.fleet-register-link {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fleet-expiration-stack {
  display: grid;
  gap: 5px;
}

.fleet-expiration-stack > div {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.fleet-expiration-stack .mini-status-pill {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fleet-register-empty {
  padding: 28px 16px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
}

body.dark-mode .fleet-register-tab,
body.dark-mode .fleet-register-record,
body.dark-mode .fleet-dashboard-panel,
body.dark-mode .fleet-map-count,
body.dark-mode .fleet-map-workspace-expanded {
  background: #071a2a;
}

body.dark-mode .fleet-register-toolbar,
body.dark-mode .fleet-register-filters,
body.dark-mode .fleet-register-header,
body.dark-mode .fleet-map-filters,
body.dark-mode .fleet-driver-filters {
  background: rgba(0, 159, 227, 0.08);
}

body.dark-mode .fleet-dashboard-alert {
  background: #061522;
}

body.dark-mode .fleet-register-tab.active {
  background: #0078d4;
  color: #fff;
}

@media (max-width: 1180px) {
  .fleet-register-filters {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  #fleetDashboardSummary .detail-summary-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .fleet-register-list {
    overflow-x: auto;
  }

  .fleet-register-row {
    min-width: 1040px;
  }

  .fleet-homebase-row {
    min-width: 900px;
  }

  .fleet-driver-row {
    min-width: 1120px;
  }
}

@media (max-width: 680px) {
  .fleet-register-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .fleet-register-toolbar > button {
    width: 100%;
  }

  .fleet-register-filters {
    grid-template-columns: 1fr;
  }

  .fleet-dashboard-grid,
  .fleet-map-filters,
  .fleet-driver-filters,
  #fleetDashboardSummary .detail-summary-grid {
    grid-template-columns: 1fr;
  }

  .fleet-map-count {
    justify-self: stretch;
  }
}

.fleet-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 14px;
  margin-top: 14px;
}

.fleet-telematics-summary {
  padding: 14px 16px 0;
}

.fleet-telematics-registry {
  margin-top: 14px;
  overflow: hidden;
}

.fleet-telematics-registry .panel-subhead {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.fleet-telematics-registry .table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.fleet-telematics-registry .detail-table {
  min-width: 1120px;
}

.fleet-telematics-registry .empty-cell {
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
}

.fleet-report-grid .nested-panel {
  margin: 0;
  overflow: hidden;
}

.fleet-report-grid .nested-panel > h3 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.fleet-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 132px;
}

.fleet-record-modal-card {
  width: min(980px, 96vw);
}

body:has(.fleet-asset-modal:not(.hidden)) {
  overflow: hidden;
}

.app-modal.fleet-asset-modal {
  padding: 16px;
  overscroll-behavior: contain;
}

.app-modal-card.fleet-asset-modal-card {
  width: min(1120px, calc(100vw - 32px));
  height: min(860px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.fleet-asset-modal-card > .panel-head {
  align-items: flex-start;
  gap: 12px;
}

.fleet-asset-modal-card > .panel-head > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

#closeFleetAssetModal {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 6px;
}

#closeFleetAssetModal svg {
  width: 20px;
  height: 20px;
}

.fleet-asset-modal-body {
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.fleet-asset-modal-body .detail-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.fleet-asset-modal-body > .table-wrap {
  max-height: none;
}

.fleet-asset-fields-table {
  width: 100%;
  table-layout: fixed;
}

.fleet-asset-fields-table th:first-child {
  width: 38%;
}

.fleet-asset-fields-table td,
.fleet-asset-fields-table th {
  white-space: normal;
  overflow-wrap: anywhere;
}

.fleet-asset-fields-table .detail-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.fleet-record-modal-card form {
  padding: 16px;
}

.fleet-record-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fleet-record-fields label,
.fleet-document-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.fleet-record-fields textarea {
  min-height: 86px;
  resize: vertical;
}

.fleet-document-field {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7fbfe;
}

.fleet-existing-document {
  min-height: 20px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.project-overview-icon span {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 999px 999px 999px 3px;
  background: var(--project-color);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(18, 36, 51, 0.35);
  transform: rotate(-45deg);
}

.project-overview-icon span::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  left: 8px;
  top: 8px;
}

.project-map-tooltip {
  border: 1px solid rgba(0, 159, 227, 0.35);
  border-radius: 6px;
  background: rgba(7, 18, 30, 0.94);
  color: #f7fbff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  font-size: 12px;
  line-height: 1.35;
  padding: 7px 9px;
}

.project-map-tooltip strong {
  color: #7bdcff;
}

.project-map-tooltip.leaflet-tooltip-top::before {
  border-top-color: rgba(7, 18, 30, 0.94);
}

.project-overview-legend {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 159, 227, 0.28);
  border-radius: 8px;
  background: rgba(7, 18, 30, 0.92);
  color: #f7fbff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  line-height: 1.2;
}

.project-overview-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.project-overview-legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.weather-watch-panel {
  margin-top: 12px;
}

.weather-watch-panel .table-wrap {
  margin-top: 8px;
}

.customer-scorecard-panel {
  margin: 6px 0 14px;
}

.customer-filter-bar {
  margin: 12px 0;
}

.customer-portfolio-link,
.link-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0;
  text-align: left;
}

.customer-portfolio-link:hover,
.link-button:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.customer-doc-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 230px;
}

.mini-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(47, 116, 163, 0.24);
  border-radius: 999px;
  background: rgba(47, 116, 163, 0.08);
  color: #244b68;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.mini-status-pill.at-risk,
.mini-status-pill.overdue,
.mini-status-pill.expired,
.mini-status-pill.needs-review {
  border-color: rgba(184, 35, 35, 0.34);
  background: rgba(184, 35, 35, 0.08);
  color: #8d1f1f;
}

.mini-status-pill.complete,
.mini-status-pill.approved,
.mini-status-pill.received,
.mini-status-pill.healthy {
  border-color: rgba(22, 128, 85, 0.32);
  background: rgba(22, 128, 85, 0.08);
  color: #17633c;
}

.customer-doc-cell {
  min-width: 150px;
  display: grid;
  gap: 6px;
}

.customer-doc-status {
  min-width: 145px;
}

.customer-doc-name {
  max-width: 160px;
  overflow: hidden;
  color: #536677;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hidden-file-input {
  display: none;
}

.protected-access-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(0, 159, 227, 0.32);
  border-radius: 7px;
  background: rgba(0, 159, 227, 0.08);
  color: #0f4f73;
  font-size: 12px;
  font-weight: 800;
}

.account-access-status {
  margin: 0 16px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 159, 227, 0.22);
  border-radius: 7px;
  background: rgba(0, 159, 227, 0.08);
  color: #0f4f73;
  font-size: 12px;
  font-weight: 800;
}

.account-access-status.error {
  border-color: rgba(184, 35, 35, 0.34);
  background: rgba(184, 35, 35, 0.08);
  color: #b42318;
}

.account-module-picker {
  display: grid;
  gap: 8px;
}

.account-module-picker > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.module-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.module-access-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid rgba(0, 159, 227, 0.18);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.module-access-option input {
  margin: 0;
}

.account-user-modal-status {
  margin: 0 0 12px;
}

.project-tabs {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  backdrop-filter: blur(10px);
}

.project-tab {
  height: 32px;
  font-size: 12px;
  background: #f7fafc;
}

.project-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.project-tab-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}

.pmo-dashboard-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.pmo-dashboard-widget {
  position: relative;
  margin: 0;
  min-width: 0;
  cursor: default;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.pmo-dashboard-widget[data-dashboard-widget="award-intake"],
.pmo-dashboard-widget[data-dashboard-widget="critical-milestones"],
.pmo-dashboard-widget[data-dashboard-widget="operational-alerts"],
.pmo-dashboard-widget[data-dashboard-widget="saved-ai-widgets"] {
  grid-column: 1 / -1;
}

.pmo-dashboard-widget.is-dragging {
  opacity: 0.5;
  transform: scale(0.99);
}

.pmo-dashboard-widget.is-collapsed > :not(.panel-head) {
  display: none !important;
}

.pmo-dashboard-widget.is-collapsed .panel-head {
  border-bottom: 0;
}

.pmo-widget-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.pmo-widget-move {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: grab;
}

.pmo-widget-move:active {
  cursor: grabbing;
}

.pmo-widget-collapse {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
}

.unit-cost-bulk-modal-card {
  width: min(820px, 96vw);
}

.unit-cost-bulk-modal-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.unit-cost-bulk-modal-body label:not(.small-file-button) {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.unit-cost-modal-file {
  width: max-content;
}

.project-summary-split {
  align-items: start;
}

.detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.gis-preview {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(135deg, #eef5f4 0%, #f8fbfc 100%);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.gis-empty {
  display: grid;
  place-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
  min-height: 96px;
}

.gis-empty strong {
  color: var(--ink);
}

.gis-segment-card {
  border: 1px solid var(--line);
  border-left: 5px solid var(--muted);
  border-radius: 6px;
  background: #fff;
  padding: 11px;
}

.gis-segment-card.complete {
  border-left-color: var(--green);
}

.gis-segment-card.active {
  border-left-color: var(--blue);
}

.gis-segment-card.blocked {
  border-left-color: var(--danger);
}

.gis-segment-card.pending {
  border-left-color: var(--gold);
}

.gis-segment-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.gis-segment-card strong {
  display: block;
  margin-top: 5px;
}

.gis-segment-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.gis-map-editor {
  display: grid;
  gap: 8px;
}

.gis-plan-overlay {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.drawing-intelligence-panel {
  overflow: hidden;
}

.drawing-intelligence-command {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(130px, 180px) auto auto auto;
  gap: 10px;
  align-items: end;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #f7fbfe;
}

.drawing-intelligence-command > label:not(.small-file-button) {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.drawing-intelligence-command > label:not(.small-file-button) > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.drawing-intelligence-command .detail-input {
  width: 100%;
}

.drawing-intelligence-upload {
  min-height: 38px;
  align-items: center;
}

.drawing-intelligence-panel > .unit-bulk-status {
  margin: 0;
  min-height: 38px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.drawing-intelligence-summary {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.drawing-intelligence-review {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(520px, 1.25fr);
  gap: 0;
}

.drawing-intelligence-review > section {
  min-width: 0;
  padding: 14px 16px 18px;
}

.drawing-intelligence-review > section + section {
  border-left: 1px solid var(--line);
}

.drawing-intelligence-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.drawing-intelligence-facts div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
}

.drawing-intelligence-facts span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.drawing-intelligence-facts strong {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.drawing-intelligence-empty {
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
  font-weight: 700;
}

.plan-overlay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  padding: 12px;
  background: #fbfcfd;
  border-top: 1px solid var(--line);
}

.plan-overlay-grid div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px;
}

.plan-overlay-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-overlay-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}

.plan-overlay-note {
  margin: 0;
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.app-modal.plan-overlay-lab-modal {
  z-index: 7600;
  display: block;
  padding: 0;
}

.app-modal-card.plan-overlay-lab-card {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) minmax(140px, 22vh);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.plan-overlay-lab-head,
.plan-overlay-lab-controls {
  flex: 0 0 auto;
}

.plan-overlay-lab-controls {
  display: grid;
  grid-template-columns: minmax(105px, 135px) minmax(155px, 195px) minmax(120px, 160px) auto minmax(180px, auto) minmax(220px, 1fr) auto auto auto;
  gap: 10px;
  align-items: end;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 92%, #dff4ff);
}

.plan-overlay-lab-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-overlay-control-group {
  display: grid;
  gap: 5px;
}

.plan-overlay-control-group > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-overlay-zoom-controls,
.plan-overlay-map-search {
  display: flex;
  align-items: center;
  gap: 6px;
}

.plan-overlay-map-search-stack {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.plan-overlay-map-search-stack select {
  width: 100%;
  font-size: 11px;
}

.plan-overlay-zoom-controls strong {
  min-width: 52px;
  text-align: center;
}

.plan-overlay-zoom-controls .icon-button {
  width: 34px;
  min-width: 34px;
  padding: 0;
  font-size: 18px;
}

.plan-overlay-map-search .detail-input {
  min-width: 0;
  flex: 1 1 auto;
}

.plan-overlay-lab-controls .plan-overlay-check {
  display: flex;
  align-items: center;
  min-height: 34px;
  gap: 8px;
  white-space: nowrap;
}

.plan-overlay-lab-status {
  margin: 0;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
}

.plan-overlay-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  background: #dce5eb;
}

.plan-overlay-pane {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.plan-overlay-print-redline-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 92%, #ffe5e5);
}

.plan-overlay-print-redline-bar .detail-input {
  width: auto;
  min-width: 112px;
  height: 32px;
  padding: 5px 7px;
}

#planOverlayPrintRedlineText {
  flex: 1 1 180px;
  min-width: 130px;
}

#planOverlayPrintRedlineMode.active {
  border-color: #ff3b30;
  background: #b91c1c;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18);
}

.plan-overlay-pane:last-child {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.plan-overlay-pane-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
}

.plan-overlay-pane-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.plan-overlay-map-head > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.plan-overlay-map-head > div:first-child span {
  text-align: left;
}

.plan-overlay-map-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.plan-overlay-map-tools .plan-overlay-check {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

#planOverlayMovePrint.active {
  border-color: #00aee9;
  background: #007eb5;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(0, 174, 233, 0.18);
}

#planOverlayTieMatch.active {
  border-color: #00aee9;
  background: color-mix(in srgb, #007eb5 84%, var(--panel));
  color: #fff;
  box-shadow: 0 0 0 2px rgba(0, 174, 233, 0.16);
}

.plan-overlay-transform-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 91%, #dff4ff);
}

.plan-overlay-transform-control {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.plan-overlay-transform-control > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-overlay-transform-control > b {
  color: var(--muted);
  font-size: 11px;
}

.plan-overlay-transform-control .detail-input {
  width: 68px;
  min-width: 0;
  height: 32px;
  padding: 5px 7px;
  text-align: center;
}

.plan-overlay-transform-control .icon-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  font-size: 17px;
}

.plan-overlay-lab-map.move-print-mode,
.plan-overlay-lab-map.move-print-mode .leaflet-container,
.plan-overlay-lab-map.move-print-mode .leaflet-interactive {
  cursor: grab !important;
}

.plan-overlay-lab-map.move-print-mode.dragging-print {
  cursor: grabbing !important;
}

.plan-overlay-drawing-stage {
  position: relative;
  min-height: 0;
  overflow: auto;
  background: #68747d;
}

.plan-overlay-drawing-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
}

.plan-overlay-print-redline-layer {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.plan-overlay-print-redline-layer.active {
  pointer-events: auto;
  cursor: crosshair;
}

.plan-overlay-print-line {
  fill: none;
  stroke: #e00000;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.plan-overlay-print-line.draft {
  stroke-dasharray: 12 8;
  opacity: 0.85;
}

.plan-overlay-print-label {
  fill: #d00000;
  stroke: #fff;
  stroke-width: 3px;
  paint-order: stroke fill;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  pointer-events: none;
}

.plan-overlay-drawing-stage.print-redline-mode canvas {
  cursor: default;
}

.plan-overlay-drawing-points {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.plan-overlay-point {
  position: absolute;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  translate: -50% -50%;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #009fe3;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-size: 11px;
  font-weight: 1000;
}

.plan-overlay-point.pending {
  background: #f59e0b;
  animation: planOverlayPointPulse 1s ease-in-out infinite;
}

@keyframes planOverlayPointPulse {
  50% { scale: 1.18; }
}

.plan-overlay-lab-map {
  min-height: 100%;
  height: 100%;
}

.plan-overlay-lab-bottom {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 10px;
  padding: 0 10px 10px;
  overflow: auto;
  background: #dce5eb;
}

.plan-overlay-lab-bottom > .panel {
  margin: 0;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

#planOverlayControlPoints,
#planOverlayAnchorSuggestions {
  min-height: 0;
  overflow: auto;
}

.plan-overlay-anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px;
  align-content: flex-start;
}

.plan-overlay-anchor-list .small-button {
  height: auto;
  min-height: 32px;
  white-space: normal;
  text-align: left;
}

.commandpoint-plan-map-overlay {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
  user-select: none;
}

.plan-overlay-direct-handles {
  position: absolute;
  inset: 0;
  z-index: 720;
  overflow: hidden;
  pointer-events: none;
}

.plan-overlay-handle-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.plan-overlay-handle-outline polygon,
.plan-overlay-handle-outline line {
  fill: none;
  stroke: #00aee9;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 2px rgba(0, 17, 29, 0.75));
}

.plan-overlay-handle-outline polygon {
  stroke-dasharray: 8 5;
}

.plan-overlay-map-handle {
  position: absolute;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  translate: -50% -50%;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #007eb5;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 17, 29, 0.55);
  font-size: 18px;
  line-height: 1;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}

.plan-overlay-map-handle.rotate-handle {
  cursor: grab;
}

.plan-overlay-map-handle.resize-handle {
  border-radius: 5px;
  cursor: nwse-resize;
}

.plan-overlay-direct-handles.adjusting .plan-overlay-map-handle {
  background: #005f8d;
  cursor: grabbing;
}

.gis-draw-toolbar {
  align-items: flex-start;
}

.gis-segment-builder {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfc;
  margin-bottom: 10px;
}

.gis-segment-builder .detail-toolbar {
  border-bottom: 0;
}

.gis-tool-select {
  width: 190px;
}

.gis-unit-select {
  width: 150px;
}

.gis-construction-select {
  width: 165px;
}

.gis-vendor-select {
  width: 190px;
}

.gis-symbol-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 4px;
  border-left: 1px solid var(--line);
}

.gis-name-input {
  width: 210px;
}

.gis-search-input {
  width: 260px;
}

.gis-qty-input {
  width: 95px;
}

.gis-rotation-input {
  width: 108px;
}

.gis-work-date-input,
.gis-redline-date-input {
  width: 142px;
}

.gis-redline-view-select {
  width: 145px;
}

.gis-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.gis-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  padding: 5px 8px;
}

.gis-map-legend i {
  width: 22px;
  height: 5px;
  border-radius: 999px;
  display: inline-block;
}

.gis-redline-label {
  border: 1px solid rgba(215, 25, 32, 0.62);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  color: #c81018;
  box-shadow: 0 2px 7px rgba(96, 0, 4, 0.18);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0;
  padding: 3px 5px;
  white-space: nowrap;
}

.gis-redline-label.leaflet-tooltip::before {
  display: none;
}

.gis-production-label {
  border: 1px solid rgba(25, 48, 67, 0.34);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  color: #193043;
  box-shadow: 0 2px 7px rgba(18, 36, 51, 0.16);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 3px 5px;
  white-space: nowrap;
}

.gis-production-label.leaflet-tooltip::before {
  display: none;
}

.gis-redline-popup-title {
  color: #c81018;
}

.gis-redline-note-icon {
  width: auto !important;
  height: auto !important;
  background: transparent;
  border: 0;
}

.gis-redline-note-icon span {
  position: relative;
  display: block;
  width: max-content;
  width: var(--redline-note-width, 220px);
  max-width: var(--redline-note-width, 220px);
  border-left: 3px solid #d71920;
  background: rgba(255, 255, 255, 0.9);
  color: #c81018;
  box-shadow: 0 2px 8px rgba(96, 0, 4, 0.2);
  padding: 5px 7px;
  font-size: var(--redline-note-size, 12px);
  font-weight: 1000;
  line-height: 1.25;
  white-space: normal;
  cursor: grab;
  transform: rotate(var(--redline-note-rotation, 0deg));
  transform-origin: 8px 50%;
}

.gis-redline-note-icon span em {
  display: block;
  margin-bottom: 2px;
  color: #8d1117;
  font-size: 9px;
  font-style: normal;
  font-weight: 1000;
  text-transform: uppercase;
}

.gis-redline-note-error span {
  border: 2px solid #d71920;
  border-left-width: 7px;
  background: rgba(255, 246, 246, 0.96);
}

.gis-redline-note-leader span::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 50%;
  width: 26px;
  border-top: 3px solid #d71920;
  transform: translateY(-50%);
}

.gis-redline-note-leader span::after {
  content: "";
  position: absolute;
  left: -31px;
  top: 50%;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 9px solid #d71920;
  transform: translateY(-50%);
}

.gis-redline-note-box span {
  border: 2px solid #d71920;
}

.gis-redline-note-text span {
  border: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff;
}

.gis-redline-note-cloud span {
  border: 3px dashed #d71920;
  border-radius: 14px;
  background: rgba(255, 246, 246, 0.95);
}

.gis-redline-note-arrow span {
  width: 96px;
  max-width: 96px;
  height: 0;
  border: 0;
  border-top: 6px solid #d71920;
  background: transparent;
  box-shadow: none;
  padding: 0;
  transform-origin: 8px 50%;
}

.gis-redline-note-arrow span::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -14px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 20px solid #d71920;
}

#gisNoteModal,
#gisStructureModal {
  z-index: 7900;
}

.gis-canvas-wrap {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #edf4f6;
  overflow: hidden;
}

.leaflet-map-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #e8eef2;
}

.leaflet-map {
  width: 100%;
  min-height: 520px;
}

.gis-map-readout {
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

.gis-measure-box {
  position: absolute;
  z-index: 1200;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  min-width: 180px;
  border: 1px solid rgba(18, 36, 51, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 18px rgba(18, 36, 51, 0.18);
  padding: 9px 11px;
  text-align: center;
  pointer-events: none;
}

.gis-measure-box span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.gis-measure-box strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 20px;
}

.gis-measure-box.active {
  border-color: rgba(31, 95, 133, 0.45);
}

.gis-saved-segments {
  background: #fbfcfd;
  border-top: 1px solid var(--line);
  padding: 10px 12px 12px;
  display: grid;
  gap: 8px;
}

.gis-saved-segments > strong {
  font-size: 13px;
}

.gis-saved-segments > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.gis-saved-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.gis-saved-item {
  height: auto;
  min-height: 98px;
  display: grid;
  gap: 4px;
  justify-items: start;
  align-content: center;
  text-align: left;
  border-color: var(--line);
  background: #fff;
}

.gis-saved-item span,
.gis-saved-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.gis-saved-item strong {
  font-size: 13px;
}

.gis-map-notes {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 10px 12px;
}

.gis-map-notes-head,
.gis-map-note-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gis-map-notes-head > div,
.gis-map-note-row > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.gis-map-notes-head span,
.gis-map-note-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.gis-map-note-row small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.redline-workspace {
  display: grid;
  gap: 10px;
}

.redline-editor-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.redline-editor-launch > div {
  display: grid;
  gap: 4px;
}

.redline-editor-launch h3,
.redline-editor-launch span {
  margin: 0;
}

.redline-editor-launch span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.app-modal.redline-editor-modal {
  z-index: 7600;
  display: block;
  padding: 0;
}

.app-modal-card.redline-editor-card {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.redline-editor-head {
  min-height: 64px;
}

.redline-editor-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
  gap: 0;
  overflow: hidden;
}

.redline-editor-workspace > .redline-workspace {
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  padding: 10px;
  overflow: hidden;
}

.redline-editor-workspace .redline-map-panel,
.redline-editor-workspace .redline-map {
  min-height: 0;
  height: 100%;
}

.redline-editor-workspace > .gis-map-notes {
  min-width: 0;
  overflow: auto;
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding: 12px;
}

.redline-workspace-toolbar {
  border-color: rgba(215, 25, 32, 0.34);
}

.redline-workspace-guidance {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid #d71920;
  background: color-mix(in srgb, #d71920 7%, var(--panel));
  padding: 9px 12px;
}

.redline-workspace-guidance strong {
  color: #c81018;
  white-space: nowrap;
}

.redline-workspace-guidance span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.redline-map {
  min-height: 650px;
}

.gis-map-note-list {
  display: grid;
  gap: 6px;
}

.gis-map-note-row {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.gis-map-note-row strong {
  color: #c81018;
  font-size: 13px;
}

.gis-note-modal-card {
  width: min(650px, calc(100vw - 32px));
}

.gis-note-modal-body {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(190px, 0.55fr);
  gap: 12px;
  padding: 16px;
}

.gis-note-modal-body label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.gis-note-text-field,
.gis-note-modal-body .report-note {
  grid-column: 1 / -1;
}

.gis-note-text-field textarea {
  min-height: 100px;
  resize: vertical;
  text-transform: none;
}

.gis-note-rotation-field {
  grid-column: 1 / -1;
  grid-template-columns: minmax(120px, 0.3fr) minmax(180px, 1fr) auto !important;
  align-items: center;
}

.gis-note-rotation-field > span:first-child {
  grid-column: 1 / -1;
}

.gis-note-rotation-field input[type="range"] {
  width: 100%;
}

.gis-note-rotate-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 900px) {
  .redline-editor-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(580px, 1fr) minmax(220px, 34vh);
    overflow: auto;
  }

  .redline-editor-workspace > .gis-map-notes {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .redline-workspace-toolbar,
  .redline-workspace-toolbar .inline-controls,
  .redline-editor-launch {
    align-items: stretch;
    flex-direction: column;
  }
}

.gis-point-icon span {
  display: block;
  background: color-mix(in srgb, var(--gis-color) 18%, #fff);
  border: 3px solid var(--gis-color);
  box-shadow: 0 1px 4px rgba(18, 36, 51, 0.35);
  cursor: grab;
  transform: rotate(var(--gis-rotation, 0deg));
  transform-origin: 50% 50%;
}

.gis-point-handhole span {
  width: 36px;
  height: 22px;
  border-radius: 3px;
}

.gis-point-pedestal span {
  width: 26px;
  height: 26px;
  border-radius: 3px;
}

.gis-point-flower-pot span,
.gis-point-circle span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
}

.gis-point-pole-transfer span,
.gis-point-make-ready span {
  position: relative;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.gis-point-pole-transfer span::after,
.gis-point-make-ready span::after {
  color: var(--gis-color);
  font-size: 9px;
  font-weight: 1000;
  line-height: 1;
}

.gis-point-pole-transfer span::after {
  content: "PT";
}

.gis-point-make-ready span::after {
  content: "MR";
}

.gis-structure-modal-card {
  width: min(620px, calc(100vw - 32px));
}

.gis-structure-modal-body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.gis-structure-preview {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, var(--steel));
}

.gis-structure-preview > span {
  width: 74px;
  height: 46px;
  display: block;
  border: 5px solid var(--electric);
  border-radius: 5px;
  background: color-mix(in srgb, var(--electric) 16%, var(--panel));
  box-shadow: 0 4px 12px rgba(18, 36, 51, 0.2);
  transform: rotate(var(--gis-rotation, 0deg));
  transform-origin: 50% 50%;
}

.gis-structure-preview[data-shape="pedestal"] > span {
  width: 58px;
  height: 58px;
}

.gis-structure-preview[data-shape="flower-pot"] > span,
.gis-structure-preview[data-shape="pole-transfer"] > span,
.gis-structure-preview[data-shape="make-ready"] > span,
.gis-structure-preview[data-shape="circle"] > span {
  width: 62px;
  height: 62px;
  border-radius: 999px;
}

.gis-structure-preview > strong {
  color: var(--ink);
  font-size: 13px;
  text-align: center;
}

.gis-structure-fields {
  display: grid;
  gap: 12px;
}

.gis-structure-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.gis-structure-rotation-slider {
  width: 100%;
  accent-color: var(--electric);
}

.gis-structure-rotate-actions {
  justify-content: center;
}

.gis-popup-edit-structure {
  margin-top: 7px;
}

.leaflet-map-empty {
  min-height: 520px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  padding: 22px;
}

.gis-canvas {
  display: block;
  width: 100%;
  min-height: 360px;
  touch-action: none;
  cursor: crosshair;
}

.gis-canvas-label {
  fill: #667789;
  font-size: 18px;
  font-weight: 800;
}

.gis-drawn-feature {
  vector-effect: non-scaling-stroke;
}

.gis-draft-feature {
  fill: rgba(31, 95, 133, 0.12);
  stroke: var(--blue);
  stroke-width: 4;
  stroke-dasharray: 10 7;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.gis-map-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.inline-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vendor-add-input {
  width: 220px;
}

.vendor-assignment-picker {
  display: grid;
  gap: 8px;
}

.vendor-multi-select {
  width: 100%;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  font: inherit;
  background: #fff;
}

.vendor-role-select {
  width: 260px;
}

.vendor-assignment-select {
  width: 260px;
}

.vendor-name {
  width: 260px;
}

.vendor-contact,
.vendor-region,
.vendor-trade {
  width: 170px;
}

.vendor-phone,
.vendor-status {
  width: 130px;
}

.vendor-dashboard-filters {
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.75fr)) minmax(120px, 0.45fr);
}

.vendor-dashboard-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.vendor-dashboard-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
  padding: 12px;
}

.vendor-dashboard-panel h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vendor-dashboard-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.vendor-dashboard-list-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, max-content);
  gap: 4px 10px;
  align-items: start;
  margin-top: 8px;
  border: 1px solid rgba(0, 120, 212, 0.18);
  border-radius: 6px;
  background: rgba(0, 120, 212, 0.06);
  padding: 9px 10px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.vendor-dashboard-list-item:hover {
  border-color: rgba(0, 120, 212, 0.38);
  background: rgba(0, 120, 212, 0.11);
}

.vendor-dashboard-list-item strong,
.vendor-dashboard-list-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vendor-dashboard-list-item strong {
  white-space: normal;
  line-height: 1.2;
}

.vendor-dashboard-list-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.vendor-dashboard-list-item em {
  justify-self: end;
  grid-row: span 2;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.table-action-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.empty-table-message {
  padding: 18px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .vendor-dashboard-list-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .vendor-dashboard-list-item em {
    grid-row: auto;
    justify-self: start;
  }
}

.vendor-email,
.vendor-notes {
  width: 260px;
}

.unit-import-tools {
  display: grid;
  gap: 8px;
}

.unit-bulk-text {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  font: inherit;
}

.unit-bulk-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.unit-bulk-status.error {
  color: var(--danger);
}

.detail-table th,
.detail-table td {
  white-space: nowrap;
}

.detail-input {
  width: 145px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 8px;
  font: inherit;
  background: #fff;
}

.detail-input[type="number"] {
  width: 105px;
}

.detail-input[type="date"] {
  width: 145px;
  cursor: pointer;
}

.date-picker-input {
  cursor: pointer;
}

.detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.detail-summary-grid div,
.detail-summary-grid button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #fbfcfd;
  display: grid;
  gap: 5px;
  text-align: center;
  min-height: 74px;
  align-content: center;
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-summary-grid button {
  width: 100%;
  height: auto;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.detail-summary-grid button:hover {
  border-color: rgba(0, 120, 212, 0.45);
  box-shadow: 0 10px 24px rgba(0, 84, 148, 0.12);
  transform: translateY(-1px);
}

.detail-summary-grid button.active-summary {
  border-color: rgba(0, 168, 255, 0.76);
  box-shadow: 0 0 0 1px rgba(0, 168, 255, 0.2), 0 12px 26px rgba(0, 84, 148, 0.18);
}

.detail-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
}

.detail-summary-grid strong {
  font-size: 18px;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

#permitDiscoverySummary .detail-summary-grid,
#permitTrackerSummary .detail-summary-grid,
#engineeringDashboard .detail-summary-grid,
#hldSummary .detail-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.engineering-filter-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
}

.engineering-phase-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 12px 0 14px;
}

.engineering-phase-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.engineering-phase-tab span {
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--muted);
}

.engineering-phase-tab strong {
  font-size: 18px;
  color: var(--text);
}

.engineering-phase-tab:hover,
.engineering-phase-tab.active {
  border-color: rgba(0, 168, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(0, 168, 255, 0.14), 0 12px 26px rgba(0, 84, 148, 0.14);
}

.engineering-metric-link {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 6px 8px;
  background: rgba(47, 134, 216, 0.08);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.engineering-metric-link strong {
  font-size: 13px;
  font-weight: 900;
}

.engineering-metric-link span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.engineering-metric-link:hover {
  border-color: rgba(0, 168, 255, 0.58);
}

.pole-loading-table-wrap {
  max-height: 68vh;
}

.pole-loading-main-map-panel {
  margin: 0 16px 14px;
}

.pole-loading-main-map {
  min-height: 360px;
}

.pole-loading-tracker-table-wrap {
  margin: 0 16px 16px;
  max-height: 58vh;
}

.pole-loading-tracker-table-wrap table {
  min-width: 860px;
}

.pole-loading-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 0 16px 14px;
}

.pole-loading-jobs {
  display: grid;
  gap: 10px;
  padding: 0 16px 14px;
}

.pole-loading-jobs-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.pole-loading-jobs-head strong {
  color: var(--ink);
  font-size: 15px;
}

.pole-loading-jobs-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pole-loading-job-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.pole-loading-job-tab {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 159, 227, 0.06);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.pole-loading-job-tab strong,
.pole-loading-job-tab em,
.pole-loading-job-tab span {
  display: block;
}

.pole-loading-job-tab strong {
  font-size: 13px;
}

.pole-loading-job-tab em {
  margin-top: 3px;
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.pole-loading-job-tab span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.pole-loading-job-tab.active {
  border-color: var(--blue);
  background: rgba(0, 159, 227, 0.16);
  box-shadow: 0 0 0 1px rgba(0, 159, 227, 0.18) inset;
}

.pole-loading-job-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.pole-loading-workspace-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.pole-loading-workspace-title strong,
.pole-loading-workspace-title span {
  display: block;
}

.pole-loading-workspace-title strong {
  color: var(--ink);
  font-size: 16px;
}

.pole-loading-workspace-title span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pole-loading-workspace-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 0.7fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 0 16px 14px;
}

.pole-loading-workspace-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pole-loading-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 260px;
}

.pole-loading-pagination span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .pole-loading-workspace-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pole-loading-pagination {
    justify-content: flex-start;
  }
}

.table-link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.table-link-button:hover {
  text-decoration: underline;
}

.table-link-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.pole-loading-library-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 159, 227, 0.07);
  padding: 11px 12px;
}

.pole-loading-library-card span,
.pole-loading-library-card p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pole-loading-library-card strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 15px;
}

.pole-loading-library-card p {
  margin: 0;
}

.pole-loading-modal-card {
  width: min(1120px, 96vw);
}

.pole-loading-form textarea {
  min-height: 94px;
  resize: vertical;
}

.pole-loading-bulk-box {
  display: grid;
  gap: 12px;
}

.pole-loading-bulk-box label:not(.file-button) {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pole-loading-bulk-box textarea {
  min-height: 260px;
  font-family: Consolas, "Courier New", monospace;
}

.pole-loading-file-button {
  width: fit-content;
}

.pole-loading-preview {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.pole-loading-preview.hidden {
  display: none;
}

.pole-loading-preview-summary .detail-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

.pole-loading-package-review {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel) 94%, #dff4ff);
}

.pole-loading-package-review.hidden {
  display: none;
}

.pole-loading-package-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pole-loading-package-head > div {
  display: grid;
  gap: 3px;
}

.pole-loading-package-head strong {
  color: var(--ink);
  font-size: 15px;
}

.pole-loading-package-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pole-loading-package-review .table-wrap {
  max-height: 260px;
}

.pole-loading-package-note {
  margin: 0;
}

.pole-loading-preview-map-panel {
  min-height: 330px;
}

.pole-loading-preview-map {
  min-height: 330px;
}

.pole-loading-preview-table-wrap {
  max-height: 360px;
  overflow: auto;
}

.pole-preview-approved {
  color: #168055;
}

.pole-preview-pass {
  color: #168055;
}

.pole-preview-rejected {
  color: var(--danger);
}

.pole-preview-fail {
  color: var(--danger);
}

.pole-preview-in-review {
  color: #8a94a6;
}

.pole-preview-review {
  color: #8a94a6;
}

.pole-loading-row td {
  vertical-align: top;
}

.pole-loading-table-wrap table {
  min-width: 1320px;
}

.pole-loading-table-wrap .mini-input-grid {
  min-width: 180px;
}

.pole-loading-pole-link-wrap {
  min-width: 150px;
}

.pole-loading-pole-link {
  font-size: 13px;
}

.pole-loading-cell-summary {
  display: grid;
  gap: 5px;
  min-width: 128px;
  font-size: 11px;
}

.pole-loading-cell-summary div {
  display: grid;
  gap: 2px;
}

.pole-loading-cell-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.pole-loading-cell-summary strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.pole-loading-factor-list {
  display: grid;
  gap: 3px;
  min-width: 130px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.pole-loading-pass {
  background: rgba(34, 197, 94, 0.04);
}

.pole-loading-pass .status-pill-cell,
.status-pass {
  color: #168055;
}

.pole-loading-review {
  background: rgba(245, 158, 11, 0.05);
}

.pole-loading-review .status-pill-cell,
.status-review {
  color: #b36b00;
}

.pole-loading-fail {
  background: rgba(239, 68, 68, 0.05);
}

.pole-loading-fail .status-pill-cell,
.status-fail {
  color: var(--danger);
}

.pole-loading-status-card {
  width: min(1120px, 96vw);
  max-height: 92vh;
  transition: width 0.18s ease, max-width 0.18s ease;
}

.pole-loading-status-card.modal-size-compact {
  width: min(880px, 94vw);
}

.pole-loading-status-card.modal-size-standard {
  width: min(1120px, 96vw);
}

.pole-loading-status-card.modal-size-wide {
  width: min(1380px, 98vw);
}

.pole-loading-status-card.modal-size-full {
  width: 98vw;
  max-height: 96vh;
}

.pole-loading-status-body {
  display: grid;
  gap: 14px;
  padding: 16px;
  overflow-x: hidden;
}

.pole-loading-status-card.modal-size-full .pole-loading-status-body {
  max-height: calc(96vh - 150px);
}

.make-ready-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.app-modal-card.make-ready-workspace-card {
  width: 100%;
  max-width: 1440px;
  min-width: 0;
  max-height: 94vh;
  overflow: auto;
}

#makeReadyWorkspaceModal,
#poleLoadingStatusModal[data-make-ready-record-id] {
  padding: 12px;
  grid-template-columns: minmax(0, 1fr);
}

#poleLoadingStatusModal[data-make-ready-record-id] .pole-loading-status-card { max-width: 100%; min-width: 0; }
.make-ready-list-filters { display: grid; grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(150px, 220px)); gap: 12px; }
.make-ready-list-filters label { display: grid; gap: 6px; min-width: 0; font-size: 12px; color: var(--muted); font-weight: 700; }
.make-ready-list-filters .detail-input { width: 100%; max-width: none; min-width: 0; }
.make-ready-pole-table-wrap { min-width: 0; max-height: 52vh; overflow: auto; }
.make-ready-pole-table { width: 100%; min-width: 850px; table-layout: fixed; }
.make-ready-pole-table th:nth-child(1) { width: 14%; }
.make-ready-pole-table th:nth-child(2) { width: 29%; }
.make-ready-pole-table th:nth-child(3) { width: 10%; }
.make-ready-pole-table th:nth-child(4) { width: 19%; }
.make-ready-pole-table th:nth-child(5) { width: 16%; }
.make-ready-pole-table th:nth-child(6) { width: 12%; }
.make-ready-pole-table th { position: sticky; top: 0; z-index: 1; background: var(--panel); }
.make-ready-pole-table td { vertical-align: middle; padding: 10px; overflow-wrap: anywhere; }
.make-ready-pole-table .table-link-button { max-width: 100%; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.make-ready-pole-table .status-pill-cell { white-space: normal; }
.make-ready-pole-summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.make-ready-rollup-severity { font-size: 12px; font-weight: 700; }
.make-ready-level-critical { color: var(--danger); }
.make-ready-level-high { color: #996200; }
.make-ready-level-review { color: var(--accent); }
.make-ready-level-no-flags { color: var(--muted); }
body.dark-mode .make-ready-level-high { color: #f4bf55; }
.make-ready-list-pager { display: flex; align-items: center; gap: 8px; }
.make-ready-list-pager > span { margin-right: auto; font-size: 12px; color: var(--muted); }
.make-ready-page-button { width: 32px; height: 32px; padding: 6px; }
.make-ready-page-button svg { width: 18px; height: 18px; }
.make-ready-issue-details { margin: 12px 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.make-ready-issue-details summary { cursor: pointer; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.make-ready-issue-details dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 12px; font-size: 12px; }
.make-ready-issue-details dt { font-weight: 700; color: var(--muted); }
.make-ready-issue-details dd { margin: 0; overflow-wrap: anywhere; }
.make-ready-modal-review .make-ready-action-controls { grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(220px, 2fr); }
.make-ready-modal-review .make-ready-action-controls label { min-width: 0; }
.make-ready-modal-review .make-ready-action-controls .detail-input { width: 100%; max-width: none; min-width: 0; }

@media (max-width: 640px) {
  .make-ready-list-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .make-ready-list-filters > label:first-child { grid-column: 1 / -1; }
  .make-ready-workspace-card .panel-head { align-items: flex-start; gap: 12px; }
  .make-ready-workspace-card .panel-head > div { min-width: 0; overflow-wrap: anywhere; }
  .make-ready-issue-details dl { grid-template-columns: minmax(0, 1fr); }
  .make-ready-modal-review .make-ready-action-controls { grid-template-columns: minmax(0, 1fr); }
  #poleLoadingStatusModal[data-make-ready-record-id] .panel-head { flex-wrap: wrap; gap: 10px; }
  #poleLoadingStatusModal[data-make-ready-record-id] .pole-status-factor-grid,
  #poleLoadingStatusModal[data-make-ready-record-id] .pole-detail-grid { grid-template-columns: minmax(0, 1fr); }
}

.make-ready-workspace-card .make-ready-workspace {
  padding: 0 16px 16px;
}

.make-ready-workspace-card .pole-loading-workspace-actions {
  margin: 14px 16px;
}

.make-ready-empty {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.make-ready-card {
  border: 1px solid var(--border);
  border-left: 5px solid #2f86d8;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(5, 23, 39, 0.08);
  overflow: hidden;
}

.make-ready-critical {
  border-left-color: var(--danger);
}

.make-ready-high {
  border-left-color: #f59e0b;
}

.make-ready-review {
  border-left-color: #2f86d8;
}

.make-ready-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(47, 134, 216, 0.08);
}

.make-ready-card-head span,
.make-ready-section-title span,
.make-ready-info-card span,
.make-ready-action-controls span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.make-ready-card-head strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.make-ready-pole-link {
  display: inline-flex;
  width: fit-content;
  border: 0;
  border-bottom: 2px solid rgba(47, 134, 216, 0.65);
  padding: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.make-ready-pole-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.make-ready-card-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.make-ready-severity {
  align-self: flex-start;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--panel);
  font-weight: 900;
}

.make-ready-issue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
}

.make-ready-info-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.make-ready-info-card strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.make-ready-stack-section {
  padding: 0 16px 14px;
}

.make-ready-section-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
  margin-bottom: 8px;
}

.make-ready-section-title strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.make-ready-stack {
  display: grid;
  gap: 7px;
}

.make-ready-stack-item {
  display: grid;
  grid-template-columns: 92px minmax(180px, 1fr) minmax(180px, 1.2fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.66);
}

.make-ready-stack-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.make-ready-stack-item strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.make-ready-stack-item em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.make-ready-stack-item.proposed {
  border-color: rgba(47, 134, 216, 0.55);
  background: rgba(47, 134, 216, 0.1);
}

.make-ready-stack-item.violation {
  border-color: rgba(239, 68, 68, 0.75);
  background: rgba(239, 68, 68, 0.1);
}

.make-ready-action-controls {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(160px, 0.6fr) minmax(280px, 1.3fr) auto;
  gap: 10px;
  align-items: start;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: rgba(3, 18, 32, 0.03);
}

.make-ready-notes-field textarea {
  min-height: 68px;
  resize: vertical;
}

.make-ready-modal-review {
  border-left: 5px solid #2f86d8;
  background: rgba(47, 134, 216, 0.08);
}

.make-ready-modal-head h4 {
  margin: 0;
}

.make-ready-modal-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

body.dark-mode .make-ready-card,
body.dark-mode .make-ready-severity,
body.dark-mode .make-ready-info-card,
body.dark-mode .make-ready-stack-item {
  background: rgba(5, 19, 31, 0.92);
}

body.dark-mode .make-ready-card-head,
body.dark-mode .make-ready-action-controls {
  background: rgba(13, 148, 236, 0.08);
}

@media (max-width: 1100px) {
  .make-ready-issue-grid,
  .make-ready-action-controls {
    grid-template-columns: 1fr 1fr;
  }

  .make-ready-stack-item {
    grid-template-columns: 80px 1fr;
  }

  .make-ready-stack-item em {
    grid-column: 2;
  }
}

.modal-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.modal-size-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-size-controls .small-button.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 163, 255, 0.28);
}

.pole-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pole-status-hero,
.pole-status-section,
.pole-status-factor-grid div,
.pole-status-check-grid div {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.pole-status-hero span,
.pole-status-factor-grid span,
.pole-status-check-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pole-status-hero strong {
  display: block;
  margin: 5px 0;
  font-size: 24px;
}

.pole-status-hero p,
.pole-status-section h4,
.pole-status-section ul {
  margin: 0;
}

.pole-status-pass strong {
  color: #168055;
}

.pole-status-review strong {
  color: #b36b00;
}

.pole-status-fail strong {
  color: var(--danger);
}

.pole-status-section {
  display: grid;
  gap: 9px;
}

.pole-status-section ul {
  padding-left: 18px;
}

.pole-status-factor-grid,
.pole-status-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.pole-status-factor-grid strong,
.pole-status-check-grid strong {
  display: block;
  margin-top: 4px;
}

.pole-detail-section {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.pole-detail-section h4 {
  margin: 0;
  font-size: 13px;
}

.pole-detail-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.pole-detail-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
}

.pole-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.pole-detail-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.pole-detail-field em {
  color: var(--muted);
  font-style: normal;
  text-transform: none;
}

.pole-detail-field textarea {
  min-height: 96px;
  resize: vertical;
}

.pole-existing-stack {
  display: grid;
  gap: 10px;
}

.pole-existing-attachment-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.6fr) minmax(170px, 1.4fr) minmax(140px, 1fr) minmax(100px, 0.8fr) minmax(110px, 0.8fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(2, 12, 22, 0.38);
}

.pole-existing-attachment-row .detail-input {
  min-width: 0;
}

.pole-weight-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.pole-weight-controls .small-button {
  min-height: 34px;
  padding: 6px 10px;
}

@media (max-width: 980px) {
  .pole-existing-attachment-row {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}
.mini-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(76px, 1fr));
  gap: 6px;
  min-width: 260px;
}

.mini-input-label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-input-label .detail-input {
  min-height: 32px;
  padding: 6px 7px;
}

.health-label,
.status-pill-cell {
  font-weight: 800;
}

.status-complete,
.status-healthy,
.status-base-scope,
.status-active,
.status-clear,
.status-strong {
  color: var(--green);
}

.status-in-progress,
.status-change-order,
.status-monitor {
  color: var(--blue);
}

.status-at-risk,
.status-blocked,
.status-concern,
.status-outside-unit-cost-plan,
.status-over-approved-qty,
.status-expired,
.status-1-missing,
.status-2-missing,
.status-3-missing,
.status-4-missing,
.status-5-missing,
.status-6-missing {
  color: var(--danger);
}

.status-not-started,
.status-no-unit-plan,
.status-no-forecast-qty,
.status-on-deck,
.status-unscheduled,
.status-refresh-soon,
.status-refresh-needed,
.status-needs-expiration,
.status-draft,
.status-submitted {
  color: var(--gold);
}

.status-ready-for-811 {
  color: var(--green);
}

.milestone-overdue-date {
  color: var(--danger);
  font-weight: 800;
}

.score-rating {
  font-weight: 900;
  letter-spacing: 0;
}

.score-rating-1,
.score-rating-2 {
  color: var(--danger);
}

.score-rating-3 {
  color: var(--gold);
}

.score-rating-4,
.score-rating-5 {
  color: var(--green);
}

.locate-package-row td {
  background: #fbfcfd;
  white-space: normal;
  padding: 0;
}

.locate-package-card {
  border-top: 1px solid var(--line);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.locate-package-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.locate-package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.locate-package-grid div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 4px;
}

.locate-package-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.locate-package-grid strong {
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.construction-dashboard-summary {
  display: grid;
  gap: 14px;
}

.financial-dashboard,
.people-dashboard,
.bid-dashboard,
.materials-dashboard {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.business-launch-grid,
.business-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.business-launch-card,
.business-status-card {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel) 88%, var(--page));
  color: var(--text);
  padding: 14px;
  text-align: left;
  display: grid;
  align-content: start;
  gap: 7px;
}

.business-launch-card {
  cursor: pointer;
}

.business-launch-card:hover,
.business-launch-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}

.business-launch-card strong,
.business-status-card strong {
  font-size: 15px;
}

.business-launch-card span,
.business-status-card p,
.business-status-card span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.business-status-card > span {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

.business-control-banner {
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.business-control-banner strong {
  color: var(--text);
}

.business-control-banner span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.people-dashboard .company-org-chart-section {
  margin-top: 12px;
}

.people-dashboard .table-wrap,
.financial-dashboard .table-wrap {
  max-width: 100%;
}

.materials-grid {
  align-items: start;
}

.materials-panel .table-wrap {
  max-height: 430px;
}

.materials-input {
  width: min(180px, 100%);
}

.material-record-form {
  display: grid;
  gap: 12px;
}

.material-record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.material-record-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bid-bond-cell {
  min-width: 220px;
  display: grid;
  grid-template-columns: 92px 110px;
  gap: 7px;
  align-items: center;
}

.bid-bond-cell .detail-input {
  width: 100%;
}

.bid-workspace-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 14px;
}

.bid-workspace-panel .file-button {
  position: relative;
  overflow: hidden;
}

.bid-workspace-panel .file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.bid-unit-panel .detail-input {
  min-width: 130px;
}

.bid-crm-panel {
  margin-bottom: 14px;
}

.bid-tracker-dashboard-panel,
.bid-crm-pipeline-panel {
  margin-bottom: 14px;
}

.bid-crm-notes {
  min-height: 92px;
  width: 100%;
  resize: vertical;
}

.construction-forecast-workspace {
  margin-bottom: 14px;
}

.construction-forecast-panel {
  background: #fff;
}

.forecast-control-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.forecast-control-strip label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.construction-rollup-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.construction-rollup-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  overflow: hidden;
}

.construction-rollup-card h4 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.construction-rollup-card .table-wrap {
  max-height: 230px;
}

.construction-project-board {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  overflow: hidden;
}

.construction-schedule-assistant {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  overflow: hidden;
}

.construction-schedule-assistant .detail-summary-grid {
  padding: 12px;
}

.construction-schedule-assistant .table-wrap {
  max-height: 390px;
}

.construction-board-head {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.construction-board-head h4 {
  margin: 0;
  font-size: 14px;
}

.construction-board-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.construction-project-board .table-wrap {
  max-height: 360px;
}

.schedule-group-row td {
  background: #edf3f6;
  font-weight: 800;
}

.schedule-child {
  padding-left: 24px;
}

.bulk-customer-box {
  padding: 14px 16px;
}

.bulk-customer-box textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  font: inherit;
}

.bulk-customer-box p {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 12, 0.68);
}

.email-connection-modal {
  z-index: 6200;
}

.email-proposal-modal {
  z-index: 9800;
}

#emailIntelModal {
  z-index: 5600;
}

.app-modal-card {
  width: min(680px, 96vw);
  max-height: 88vh;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.ai-report-modal-card {
  width: min(1080px, 96vw);
}

.email-intel-modal-card {
  width: min(1180px, 96vw);
}

.account-user-modal-card {
  width: min(620px, 96vw);
}

.account-role-modal-card {
  width: min(880px, 96vw);
}

.platform-company-modal-card {
  width: min(760px, 96vw);
}

.platform-tenant-account-card {
  width: min(980px, 96vw);
}

.platform-tenant-user-modal {
  z-index: 5400;
}

.project-edit-modal-card {
  width: min(820px, 96vw);
}

.bid-record-modal-card {
  width: min(980px, 100%);
  min-width: 0;
}

.bid-record-modal-card > .panel-head { align-items: flex-start; }
.bid-record-modal-card h3 { overflow-wrap: anywhere; }
.bid-record-tabs { position: static; }
.bid-record-form [data-bid-record-pane] { min-height: 260px; }
.bid-record-form .incident-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bid-record-form label { min-width: 0; letter-spacing: 0; }
.bid-record-form .mapping-input { width: 100%; min-width: 0; box-sizing: border-box; }
.bid-record-readonly .mapping-input { display: none; }
.bid-record-value {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bid-record-form .modal-actions { flex-wrap: wrap; }
#editBidRecordModal { display: inline-flex; gap: 6px; align-items: center; }
#editBidRecordModal svg { width: 16px; height: 16px; }
.crm-view-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.crm-view-button { display: grid; place-items: center; width: 38px; height: 36px; padding: 0; border: 0; border-radius: 0; background: var(--panel); color: var(--muted); }
.crm-view-button svg { width: 18px; height: 18px; }
.crm-view-button[aria-pressed="true"] { color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, var(--panel)); box-shadow: inset 0 -2px var(--blue); }
.crm-view-button:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.prospect-register-panel .panel-actions { flex-wrap: wrap; }
.bid-dashboard { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.bid-dashboard > * { min-width: 0; }
.prospect-register-panel { width: 100%; min-width: 0; }
.prospect-register-panel > .panel-head { flex-wrap: wrap; }
.prospect-register-panel > .panel-head > div { min-width: 0; }
.prospect-register-panel > .panel-head > div:first-child { flex: 1 1 440px; }
.prospect-register-panel .panel-actions { max-width: 100%; }
.prospect-list-scroll {
  --prospect-id-width: 96px;
  --prospect-customer-width: 220px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: min(62vh, 680px);
  overflow-x: scroll;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.prospect-list-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.prospect-list-table { min-width: 2100px; table-layout: fixed; }
.prospect-list-table col:first-child { width: var(--prospect-id-width); }
.prospect-list-table col:nth-child(2) { width: var(--prospect-customer-width); }
.prospect-list-table col:last-child { width: 220px; }
.prospect-list-table :is(th, td) { white-space: normal; overflow-wrap: anywhere; }
.prospect-list-table .inline-actions-cell { display: table-cell; }
.prospect-list-table .inline-actions-cell button { white-space: nowrap; margin: 0 7px 4px 0; }
.prospect-list-table .inline-actions-cell button:last-child { margin-right: 0; }
.prospect-list-table :is(th, td):nth-child(-n+2) { position: sticky; left: 0; z-index: 2; background: var(--panel); }
.prospect-list-table :is(th, td):nth-child(2) { left: var(--prospect-id-width); box-shadow: 1px 0 var(--line); }
.prospect-list-table th:nth-child(-n+2) { z-index: 3; }
.prospect-list-scroll::-webkit-scrollbar { width: 12px; height: 12px; }
.prospect-list-scroll::-webkit-scrollbar-track { background: var(--page); }
.prospect-list-scroll::-webkit-scrollbar-thumb { background: var(--muted); border: 3px solid var(--page); border-radius: 6px; }
.prospect-list-scroll::-webkit-scrollbar-thumb:hover { background: var(--blue); }
@media (max-width: 600px) {
  .prospect-list-scroll { --prospect-id-width: 72px; --prospect-customer-width: 144px; }
  .prospect-list-table :is(th, td):nth-child(-n+2) { padding-inline: 6px; }
}
.prospect-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; padding: 16px; }
.prospect-contact-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); display: flex; flex-direction: column; }
.prospect-contact-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.prospect-stage { color: #1d6e5c; background: #edf7f2; padding: 4px 7px; border-radius: 4px; font-size: 12px; }
.prospect-contact-card h4 { font-size: 16px; margin: 14px 0 4px; }
.prospect-company { margin: 0; color: var(--muted); font-size: 13px; }
.prospect-contact-card dl { display: grid; grid-template-columns: 106px minmax(0, 1fr); gap: 8px; font-size: 13px; margin: 16px 0; }
.prospect-contact-card dt { color: var(--muted); }
.prospect-contact-card dd { margin: 0; }
.prospect-contact-card :is(h4, p, dd, button) { overflow-wrap: anywhere; }
.prospect-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.prospect-contact-actions:empty { display: none; }
@media (max-width: 600px) {
  .bid-record-form .incident-form-grid { grid-template-columns: minmax(0, 1fr); }
  .bid-record-tabs { gap: 6px; padding: 10px; }
  .bid-record-tabs .project-tab { padding: 0 9px; }
  .bid-record-modal-card .panel-head { flex-wrap: wrap; }
  .prospect-register-panel > .panel-head { flex-wrap: wrap; gap: 12px; }
  .prospect-contact-grid { padding: 10px; }
}

.pole-road-view-card {
  width: min(1180px, 96vw);
}

.pole-road-view-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.pole-road-view-body iframe {
  width: 100%;
  min-height: min(68vh, 720px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #061522;
}

.road-view-fallback {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(76, 154, 255, 0.08);
}

.leaflet-popup-action {
  margin-top: 6px;
  margin-right: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(14, 119, 210, 0.45);
  border-radius: 6px;
  color: #075d9f;
  background: #eef8ff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.bid-record-form textarea {
  min-height: 92px;
  resize: vertical;
}

.bid-record-ai-section {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.05);
  padding: 10px 14px 12px;
}

.bid-record-upload-button {
  min-width: 150px;
  justify-content: center;
}

.bid-record-document-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.bid-record-document-empty,
.bid-record-document-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 10px 12px;
}

.bid-record-document-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bid-record-document-row strong,
.bid-record-document-row span {
  display: block;
}

.bid-record-document-row span,
.bid-record-document-empty {
  color: var(--muted);
  font-size: 12px;
}

.customer-modal-card {
  width: min(1040px, 96vw);
}

.customer-rate-card-modal-card,
.project-rate-card-modal-card {
  width: 100%;
  max-width: 1180px;
  min-width: 0;
}

#customerRateCardModal, #projectRateCardModal { padding: 12px; grid-template-columns: minmax(0, 1fr); }

.customer-rate-card-form,
.project-rate-card-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.customer-rate-card-form {
  padding-bottom: 0;
}

.rate-card-default-label {
  align-content: center;
}

.rate-card-default-label input {
  width: 20px;
  height: 20px;
}

.rate-card-import-bar,
.rate-card-selection-meta,
.project-rate-card-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rate-card-import-bar strong,
.rate-card-import-bar span,
.rate-card-selection-meta strong,
.rate-card-selection-meta span,
.project-rate-card-copy strong,
.project-rate-card-copy span {
  display: block;
}

.rate-card-import-bar span,
.rate-card-selection-meta span,
.project-rate-card-copy span,
.rate-card-apply-note {
  color: var(--muted);
  font-size: 12px;
}

.customer-rate-card-unit-table-wrap table,
.project-rate-card-modal-body .table-wrap table {
  min-width: 920px;
}

.project-rate-card-selector {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(260px, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-rate-card-controls {
  border-left: 4px solid var(--accent);
}

.project-rate-card-copy {
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.rate-card-apply-note {
  margin: 0;
}

.rate-card-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
}

.customer-rate-card-form .incident-form-grid > label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.customer-rate-card-form .incident-form-grid .mapping-input,
.customer-rate-card-form > label .mapping-input,
.rate-card-field .mapping-input {
  width: 100%;
  max-width: none;
  min-width: 0;
  font: inherit;
  font-weight: 400;
}

.customer-rate-card-form > label textarea,
.rate-card-field textarea { min-height: 64px; resize: vertical; }

.rate-card-choices {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.rate-card-choices legend {
  margin-bottom: 8px;
  font-weight: 700;
}

.rate-card-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.rate-card-choice input,
.project-rate-card-modal-body td input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.rate-card-choice span { min-width: 0; overflow-wrap: anywhere; }
.rate-card-choice strong, .rate-card-choice small { display: block; }
.rate-card-choice small { color: var(--muted); margin-top: 4px; }
.rate-card-edit-button { margin-left: 8px; width: 30px; height: 30px; padding: 5px; }
.rate-card-edit-button svg { width: 16px; height: 16px; }
.assigned-rate-cards { padding-left: 18px; margin: 8px 0; }
.assigned-rate-cards li { margin: 6px 0; overflow-wrap: anywhere; }
.project-rate-card-controls > button { margin: 4px 8px 4px 0; }
.project-rate-card-modal-body .table-wrap, .customer-rate-card-unit-table-wrap { min-width: 0; }
.project-rate-card-modal-body td select { width: 250px; }
.project-rate-card-modal-body .unit-bulk-status:empty { display: none; }
.customer-rate-card-form input:disabled,
.customer-rate-card-form select:disabled,
.customer-rate-card-form textarea:disabled { opacity: 1; color: var(--muted); }

@media (max-width: 640px) {
  .customer-rate-card-form .incident-form-grid { grid-template-columns: minmax(0, 1fr); }
  .rate-card-import-bar { flex-wrap: wrap; }
  .customer-rate-card-form, .project-rate-card-modal-body { padding: 12px; }
  .customer-rate-card-modal-card .panel-head,
  .project-rate-card-modal-card .panel-head { gap: 8px; }
  .customer-rate-card-modal-card .panel-head > div,
  .project-rate-card-modal-card .panel-head > div { min-width: 0; overflow-wrap: anywhere; }
  .customer-rate-card-modal-card .modal-actions,
  .project-rate-card-modal-card .modal-actions { flex-wrap: wrap; }
}

.customer-modal-summary {
  padding: 14px 16px 0;
}

.customer-form {
  border-bottom: 1px solid var(--line);
}

.customer-modal-section {
  padding: 0 16px 16px;
}

.compact-panel-head {
  padding: 12px 0 8px;
  border-bottom: 0;
}

.danger-button {
  border-color: rgba(184, 35, 35, 0.36);
  color: #8d1f1f;
}

body.dark-mode .danger-button {
  color: #ff9f9f;
}

body.dark-mode .mini-status-pill {
  border-color: rgba(89, 200, 255, 0.28);
  background: rgba(89, 200, 255, 0.08);
  color: #b8e9ff;
}

body.dark-mode .mini-status-pill.at-risk,
body.dark-mode .mini-status-pill.overdue,
body.dark-mode .mini-status-pill.expired,
body.dark-mode .mini-status-pill.needs-review {
  border-color: rgba(255, 112, 112, 0.35);
  background: rgba(255, 112, 112, 0.1);
  color: #ffb5b5;
}

body.dark-mode .mini-status-pill.complete,
body.dark-mode .mini-status-pill.approved,
body.dark-mode .mini-status-pill.received,
body.dark-mode .mini-status-pill.healthy {
  border-color: rgba(77, 221, 151, 0.35);
  background: rgba(77, 221, 151, 0.1);
  color: #9af3c7;
}

.document-viewer-card {
  width: min(1180px, 97vw);
}

.weather-modal-card {
  width: min(1120px, 97vw);
}

.weather-modal-body {
  display: grid;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.weather-radar-panel,
.weather-alert-panel,
.weather-alert-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.weather-modal-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.weather-modal-section-title strong {
  font-size: 15px;
}

.weather-modal-section-title span,
.weather-source-note,
.weather-clear-message {
  color: var(--muted);
  font-size: 12px;
}

.weather-radar-frame {
  width: 100%;
  height: min(58vh, 560px);
  min-height: 360px;
  border: 1px solid rgba(115, 179, 230, 0.28);
  border-radius: 8px;
  background: #07111b;
}

.weather-alert-panel {
  display: grid;
  gap: 10px;
}

.weather-alert-card h4 {
  margin: 0 0 8px;
}

.weather-alert-card p {
  margin: 8px 0 0;
  line-height: 1.45;
}

.weather-alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weather-alert-meta span {
  border: 1px solid rgba(0, 159, 227, 0.28);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.document-viewer-body {
  min-height: min(72vh, 760px);
  padding: 12px 16px;
  background: #07111b;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.document-viewer-frame,
.document-viewer-image {
  width: 100%;
  height: min(72vh, 760px);
  border: 1px solid rgba(115, 179, 230, 0.28);
  border-radius: 6px;
  background: #ffffff;
}

.document-viewer-image {
  object-fit: contain;
  display: block;
  background: #06101a;
}

.document-viewer-placeholder {
  display: grid;
  min-height: 300px;
  place-items: center;
  text-align: center;
  color: #d8edff;
  border: 1px dashed rgba(115, 179, 230, 0.45);
  border-radius: 6px;
  padding: 24px;
}

.document-viewer-note {
  padding: 10px 16px 16px;
}

.floating-action-dock {
  position: fixed;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  z-index: 4200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  padding: 10px 8px 10px 10px;
  border: 1px solid rgba(0, 159, 227, 0.42);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, rgba(1, 12, 24, 0.96), rgba(4, 43, 73, 0.9));
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3), 0 0 22px rgba(0, 159, 227, 0.2);
  transition: translate 0.18s ease, opacity 0.18s ease;
}

.floating-action-dock:not(.is-collapsed) {
  display: grid;
  grid-template-columns: 36px 50px;
  align-items: center;
}

.floating-action-dock:not(.is-collapsed) .quick-tools-toggle {
  grid-column: 1;
  grid-row: 1 / span 5;
  align-self: center;
}

.floating-action-dock:not(.is-collapsed) .floating-action-button {
  grid-column: 2;
}

.quick-tools-rail.is-collapsed {
  translate: 0 -50%;
  padding: 8px 0 8px 8px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.quick-tools-toggle {
  position: relative;
  width: 36px;
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(121, 226, 255, 0.6);
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, rgba(0, 159, 227, 0.94), rgba(6, 24, 39, 0.96));
  color: #eaf8ff;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 159, 227, 0.3);
}

.quick-tools-toggle span {
  width: 11px;
  height: 11px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: rotate(135deg);
  transition: transform 0.18s ease;
}

.quick-tools-rail.is-collapsed .quick-tools-toggle span {
  transform: rotate(-45deg);
}

.quick-tools-toggle.has-unread {
  border-color: rgba(74, 222, 128, 0.98);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.54), 0 0 38px rgba(0, 159, 227, 0.28);
  animation: quickToolsFlash 1.2s ease-in-out infinite;
}

.quick-tools-unread {
  position: absolute;
  top: -8px;
  left: -8px;
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: #22c55e;
  color: #02121f;
  font-size: 10px;
  font-style: normal;
  font-weight: 1000;
}

@keyframes quickToolsFlash {
  0%, 100% {
    background: linear-gradient(180deg, rgba(0, 159, 227, 0.94), rgba(6, 24, 39, 0.96));
  }
  50% {
    background: linear-gradient(180deg, rgba(74, 222, 128, 0.98), rgba(6, 55, 39, 0.98));
  }
}

.quick-tools-rail.is-collapsed .floating-action-button {
  display: none;
}

.floating-action-button {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(0, 159, 227, 0.64);
  background: linear-gradient(145deg, rgba(2, 18, 34, 0.96), rgba(0, 80, 145, 0.78));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 26px rgba(0, 159, 227, 0.45);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.floating-action-button:hover {
  transform: translateX(-2px);
  border-color: rgba(121, 226, 255, 0.96);
  box-shadow: 0 0 34px rgba(0, 159, 227, 0.66);
}

.floating-action-button.has-unread {
  border-color: rgba(74, 222, 128, 0.98);
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.58), 0 0 42px rgba(0, 159, 227, 0.44);
  animation: chatPulse 1.5s ease-in-out infinite;
}

.floating-action-button.has-unread::after {
  content: attr(data-unread-count);
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: #22c55e;
  color: #02121f;
  font-size: 11px;
  font-weight: 1000;
}

@keyframes chatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.floating-action-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-action-button > span {
  position: absolute;
  right: 62px;
  top: 50%;
  translate: 0 -50%;
  min-width: 86px;
  padding: 7px 9px;
  border: 1px solid rgba(0, 159, 227, 0.42);
  border-radius: 8px;
  background: rgba(1, 12, 24, 0.92);
  color: #dff6ff;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.floating-action-button:hover > span {
  opacity: 1;
  transform: translateX(-4px);
}

.report-toggle {
  color: #eaf8ff;
  background: linear-gradient(145deg, rgba(7, 25, 44, 0.96), rgba(0, 128, 210, 0.76));
}

.email-intel-toggle {
  color: #ecfeff;
  background: linear-gradient(145deg, rgba(6, 32, 48, 0.96), rgba(14, 165, 233, 0.72));
  border-color: rgba(125, 211, 252, 0.72);
}

.floating-action-button.has-unread::after {
  content: attr(data-unread-count);
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: #22c55e;
  color: #03131f;
  font-size: 11px;
  font-weight: 1000;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.66);
}

.assistant-toggle {
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 16px;
  border-color: rgba(138, 235, 255, 0.92);
  background: rgba(6, 24, 39, 0.96);
  box-shadow:
    0 0 20px rgba(0, 159, 227, 0.68),
    0 0 54px rgba(0, 159, 227, 0.32);
}

.assistant-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0, 159, 227, 0.24));
}

.assistant-toggle .assistant-logo {
  width: 46px;
  height: 46px;
}

.chat-toggle {
  color: #ecfeff;
  background: linear-gradient(145deg, rgba(4, 28, 35, 0.96), rgba(18, 132, 121, 0.74));
  border-color: rgba(79, 209, 197, 0.72);
}

.task-toggle {
  color: #f8fdff;
  background: linear-gradient(145deg, rgba(16, 24, 39, 0.98), rgba(14, 116, 144, 0.78));
  border-color: rgba(103, 232, 249, 0.72);
}

.chat-notification-toast {
  position: fixed;
  right: 74px;
  top: 50%;
  translate: 0 112px;
  z-index: 4300;
  width: min(360px, calc(100vw - 130px));
  border: 1px solid rgba(74, 222, 128, 0.74);
  border-radius: 10px;
  padding: 12px 14px;
  background: linear-gradient(145deg, rgba(1, 14, 27, 0.98), rgba(4, 45, 75, 0.96));
  color: #eafff3;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.44), 0 0 24px rgba(74, 222, 128, 0.26);
  cursor: pointer;
}

.chat-notification-toast strong,
.chat-notification-toast span {
  display: block;
}

.chat-notification-toast strong {
  margin-bottom: 4px;
  font-size: 13px;
}

.chat-notification-toast span {
  color: #b8f7cb;
  font-size: 12px;
  line-height: 1.35;
}

.assistant-panel {
  position: fixed;
  right: 72px;
  top: 50%;
  translate: 0 -50%;
  z-index: 4300;
  width: min(470px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid rgba(0, 159, 227, 0.46);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.chat-panel {
  width: min(760px, calc(100vw - 28px));
}

.task-panel {
  width: min(520px, calc(100vw - 28px));
}

.assistant-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(1, 12, 24, 0.96), rgba(0, 78, 140, 0.4));
}

.assistant-brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.assistant-cp-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transform-style: preserve-3d;
}

.assistant-thinking .assistant-cp-mark,
.assistant-thinking .assistant-welcome-mark {
  animation: cp-thinking-rotate 1.1s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .assistant-thinking .assistant-cp-mark,
  .assistant-thinking .assistant-welcome-mark {
    animation: none;
  }
}

@keyframes cp-thinking-rotate {
  0% {
    transform: perspective(320px) rotateY(0deg) rotateX(0deg);
    filter: drop-shadow(0 0 0 rgba(0, 159, 227, 0));
  }
  50% {
    transform: perspective(320px) rotateY(180deg) rotateX(12deg);
    filter: drop-shadow(0 0 12px rgba(0, 159, 227, 0.74));
  }
  100% {
    transform: perspective(320px) rotateY(360deg) rotateX(0deg);
    filter: drop-shadow(0 0 0 rgba(0, 159, 227, 0));
  }
}

.assistant-panel-head h3 {
  margin: 0 0 4px;
}

.assistant-head-actions {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.assistant-panel-head span,
.assistant-status {
  color: var(--muted);
}

.assistant-thread {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.task-center-toolbar {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.task-center-list {
  display: grid;
  gap: 10px;
  max-height: 56vh;
  overflow: auto;
  padding: 12px 14px;
}

.task-center-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.task-center-summary div,
.task-empty-state,
.task-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.task-center-summary div {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 10px;
}

.task-center-summary strong {
  color: var(--ink);
  font-size: 20px;
}

.task-center-summary span,
.task-item-head span,
.task-item p {
  color: var(--muted);
  font-size: 12px;
}

.task-item {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.task-item.status-overdue {
  border-color: rgba(248, 113, 113, 0.64);
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.14);
}

.task-item.status-due-soon {
  border-color: rgba(250, 204, 21, 0.58);
}

.task-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.task-item-head strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.task-status-pill {
  border: 1px solid rgba(121, 226, 255, 0.3);
  border-radius: 999px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
  white-space: nowrap;
}

.task-status-pill.overdue {
  border-color: rgba(248, 113, 113, 0.8);
  color: #fecaca;
}

.task-status-pill.due-soon {
  border-color: rgba(250, 204, 21, 0.72);
  color: #fde68a;
}

.task-status-pill.complete {
  border-color: rgba(74, 222, 128, 0.72);
  color: #bbf7d0;
}

.task-item p {
  margin: 0;
  line-height: 1.45;
}

.task-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-empty-state {
  color: var(--muted);
  font-weight: 800;
  padding: 14px;
  text-align: center;
}

.team-chat-workspace {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: 10px;
}

.team-chat-list,
.team-chat-pane {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.team-chat-list {
  display: grid;
  align-content: start;
}

.team-chat-list-title {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.team-chat-target {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.team-chat-target.active,
.team-chat-target:hover {
  background: rgba(0, 159, 227, 0.14);
}

.team-chat-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 159, 227, 0.52);
  background: linear-gradient(145deg, rgba(0, 159, 227, 0.28), rgba(1, 12, 24, 0.84));
  color: #e9f8ff;
  font-size: 11px;
  font-weight: 1000;
}

.team-chat-target strong,
.team-chat-target em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-chat-target strong {
  font-size: 12px;
}

.team-chat-target em,
.team-chat-target small {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.team-chat-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.team-chat-head {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 159, 227, 0.08);
}

.team-chat-head strong {
  font-size: 13px;
}

.team-chat-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.team-chat-messages {
  min-height: 0;
  overflow: auto;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.assistant-welcome-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 159, 227, 0.42);
  border-radius: 10px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(0, 159, 227, 0.16), transparent 36%),
    radial-gradient(circle at 85% 20%, rgba(103, 232, 249, 0.22), transparent 28%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 28px rgba(0, 159, 227, 0.08);
}

.assistant-welcome-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.72), transparent 70%);
  pointer-events: none;
}

.assistant-welcome-mark {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.assistant-welcome-copy {
  position: relative;
}

.assistant-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #7ddfff;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.assistant-welcome-copy h4 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.08;
}

.assistant-welcome-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.assistant-prompt-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 16px;
  max-height: 285px;
  overflow: auto;
  padding-right: 2px;
}

.assistant-prompt-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0 6px;
  background: linear-gradient(180deg, rgba(245, 247, 250, 0.98), rgba(245, 247, 250, 0.78));
}

.assistant-prompt-head strong {
  color: #7ddfff;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.assistant-prompt-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.assistant-prompt-grid button {
  display: grid;
  gap: 3px;
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  border-color: rgba(0, 159, 227, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 244, 251, 0.96));
  color: var(--ink);
  text-align: left;
  font-size: 12px;
  box-shadow: 0 8px 18px rgba(10, 31, 49, 0.08);
}

.assistant-prompt-grid button strong,
.assistant-prompt-grid button span {
  display: block;
  min-width: 0;
}

.assistant-prompt-grid button strong {
  color: var(--ink);
  font-size: 12px;
}

.assistant-prompt-grid button span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  white-space: normal;
}

.assistant-prompt-grid button:hover {
  border-color: rgba(125, 223, 255, 0.82);
  background: linear-gradient(180deg, rgba(232, 245, 255, 1), rgba(220, 238, 250, 1));
}

.assistant-reminders-card {
  border: 1px solid rgba(0, 159, 227, 0.32);
  border-radius: 10px;
  padding: 12px;
  background: rgba(0, 159, 227, 0.065);
}

.assistant-reminders-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.assistant-reminders-head strong {
  color: var(--blue);
}

.assistant-reminders-head span,
.assistant-reminders-card p,
.assistant-reminder-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.assistant-reminder-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.assistant-reminder-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.assistant-reminder-row.status-overdue strong {
  color: #f87171;
}

.assistant-reminder-row.status-due-now strong {
  color: #f87171;
}

.assistant-reminder-row.status-due-soon strong {
  color: #fbbf24;
}

.assistant-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.assistant-message.is-user {
  border-color: rgba(0, 159, 227, 0.42);
  background: rgba(0, 159, 227, 0.1);
}

.assistant-message strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--blue);
}

.assistant-message span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-top: 6px;
}

.assistant-proposal-box {
  border-top: 1px solid var(--line);
  padding: 12px;
  background: rgba(0, 159, 227, 0.08);
}

.assistant-proposal-preview {
  margin-top: 10px;
  border: 1px solid rgba(0, 159, 227, 0.28);
  border-radius: 8px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.04);
}

.assistant-proposal-preview-title {
  padding: 8px 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(0, 159, 227, 0.18);
}

.assistant-proposal-preview-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 11px;
}

.assistant-proposal-preview-table th,
.assistant-proposal-preview-table td {
  padding: 7px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.assistant-proposal-preview-table th {
  color: var(--muted);
  background: rgba(0, 0, 0, 0.16);
  font-size: 10px;
  text-transform: uppercase;
}

.proposal-waiting-note {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.assistant-compose {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.assistant-compose textarea {
  min-height: 72px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #101924;
  resize: vertical;
}

body.dark-mode .assistant-prompt-head {
  background: linear-gradient(180deg, rgba(4, 18, 32, 0.96), rgba(4, 18, 32, 0.72));
}

body.dark-mode .assistant-prompt-grid button {
  background: rgba(1, 12, 24, 0.58);
  color: var(--text);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

body.dark-mode .assistant-prompt-grid button strong {
  color: #e9f8ff;
}

body.dark-mode .assistant-prompt-grid button:hover {
  background: rgba(0, 159, 227, 0.14);
}

body.dark-mode .assistant-compose textarea {
  background: #07131e;
  color: #eef7ff;
  border-color: rgba(0, 159, 227, 0.38);
}

.chat-attachment-tray,
.chat-attachment-list {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 10px;
}

.chat-attachment-list {
  padding: 8px 0 0;
}

.chat-attachment-chip,
.chat-attachment-link {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  max-width: 260px;
  border: 1px solid rgba(0, 159, 227, 0.34);
  border-radius: 8px;
  padding: 7px 30px 7px 9px;
  background: rgba(0, 159, 227, 0.08);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.chat-attachment-link {
  grid-template-columns: 1fr;
  padding-right: 9px;
}

.chat-attachment-chip strong,
.chat-attachment-link strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.chat-attachment-chip span,
.chat-attachment-link span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.chat-attachment-remove {
  position: absolute;
  right: 7px;
  top: 50%;
  translate: 0 -50%;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 1000;
}

.assistant-status {
  margin: 0;
  padding: 0 12px 12px;
}

@media (max-width: 760px) {
  .pmo-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .pmo-dashboard-widget {
    grid-column: 1 !important;
  }

  .team-chat-workspace {
    grid-template-columns: 1fr;
  }

  .team-chat-list {
    max-height: 180px;
    overflow: auto;
  }
}

.account-user-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 16px;
}

.account-user-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-user-form label:first-child {
  grid-column: 1 / -1;
}

.account-user-form input,
.account-user-form select {
  width: 100%;
}

.account-role-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.account-role-form > label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-role-permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.account-role-permission-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 159, 227, 0.05);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.account-role-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #9aa9b5;
  cursor: pointer;
  position: relative;
  transition: background 140ms ease, border-color 140ms ease;
}

.account-role-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 140ms ease;
}

.account-role-toggle:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.account-role-toggle:checked::after {
  transform: translateX(16px);
}

.module-access-option-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.module-access-option-disabled input {
  cursor: not-allowed;
}

.platform-company-modal-card .account-module-picker,
.platform-tenant-user-modal .account-module-picker,
.platform-admin-replace {
  grid-column: 1 / -1;
}

.account-user-form .platform-admin-replace {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 159, 227, 0.06);
  color: var(--text);
}

.account-user-form .platform-admin-replace input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.platform-admin-layout .compact-table td:last-child {
  white-space: nowrap;
}

.platform-admin-layout .compact-table td:last-child .small-button + .small-button {
  margin-left: 6px;
}

.platform-delete-modal-card {
  width: min(560px, calc(100vw - 32px));
}

.platform-tenant-link {
  font-size: 13px;
}

.platform-tenant-summary {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.platform-tenant-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.platform-tenant-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.platform-tenant-section-head > div {
  display: grid;
  gap: 2px;
}

.platform-tenant-section-head h4 {
  margin: 0;
  font-size: 14px;
}

.platform-tenant-section-head span {
  color: var(--muted);
  font-size: 12px;
}

.platform-tenant-section-head .small-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.platform-tenant-section-head .small-button span {
  color: inherit;
  font-size: inherit;
}

.platform-tenant-section-head .small-button svg {
  width: 15px;
  height: 15px;
}

.platform-tenant-module-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.platform-tenant-module-chip {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--blue) 8%, var(--panel));
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.platform-tenant-actions {
  padding-top: 16px;
}

.platform-tenant-actions .danger-button {
  margin-right: auto;
}

.platform-delete-warning {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--danger) 48%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--danger) 8%, var(--panel));
}

.platform-delete-warning strong {
  display: block;
  margin-bottom: 6px;
  color: var(--danger);
  font-size: 1.05rem;
}

.platform-delete-warning p {
  margin: 0;
  color: var(--text);
}

.platform-delete-confirmation {
  display: grid;
  gap: 6px;
}

#projectEditInternalId {
  opacity: 0.72;
}

.email-intel-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.2fr);
  gap: 14px;
  padding: 14px;
}

.email-connection-panel {
  border-top: 1px solid var(--line);
}

.email-intel-compose {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  padding: 12px;
}

.email-intel-compose input,
.email-intel-compose textarea {
  width: 100%;
  margin-bottom: 10px;
}

.email-intel-compose textarea {
  min-height: 230px;
  resize: vertical;
}

.email-intel-help {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.email-proposal-summary {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.email-intel-modal-status {
  margin: 0;
  padding: 12px 16px 0;
}

.email-intel-modal-grid {
  display: grid;
  gap: 14px;
  padding: 14px 16px 16px;
}

.email-intel-modal-grid .nested-panel {
  margin: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 16px 16px;
}

.incident-form {
  padding: 16px;
}

.incident-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.incident-form label,
.incident-form-wide {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.incident-form-wide {
  margin-top: 12px;
}

.incident-form textarea {
  min-height: 96px;
  resize: vertical;
}

body.dark-mode .topbar,
body.dark-mode .report-action-bar,
body.dark-mode .panel,
body.dark-mode .status-strip > div,
body.dark-mode .kpi,
body.dark-mode .compliance-card,
body.dark-mode .detail-summary-grid div,
body.dark-mode .detail-summary-grid button,
body.dark-mode .executive-module-health div,
body.dark-mode .vendor-dashboard-panel,
body.dark-mode .reports-center-card,
body.dark-mode .report-template-card,
body.dark-mode .reports-schedule-card,
body.dark-mode .app-modal-card,
body.dark-mode .email-intel-compose,
body.dark-mode .project-filter-bar,
body.dark-mode .account-field,
body.dark-mode .account-blueprint-grid div,
body.dark-mode .company-org-card,
body.dark-mode .permit-source-grid label,
body.dark-mode .permit-mode-tab,
body.dark-mode .hld-controls,
body.dark-mode .nested-panel,
body.dark-mode .construction-forecast-panel,
body.dark-mode .ai-dashboard-widget,
body.dark-mode .ai-report-chart,
body.dark-mode .ai-report-kpi-grid div,
body.dark-mode .module-portal {
  background: rgba(8, 21, 33, 0.96);
  border-color: var(--line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

body.dark-mode .fleet-document-field {
  background: rgba(0, 159, 227, 0.08);
  border-color: var(--line);
}

@media (max-width: 900px) {
  .fleet-report-grid,
  .fleet-record-fields {
    grid-template-columns: 1fr;
  }

  .fleet-workspace-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 1380px) {
  .coverage-command-shell {
    grid-template-columns: 205px minmax(380px, 1fr) 330px;
  }

  .coverage-command-summary {
    grid-template-columns: repeat(2, minmax(125px, 1fr));
  }

  .coverage-kpi:nth-child(2) {
    border-right: 0;
  }

  .coverage-kpi:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .gis-projects-filters {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
}

@media (max-width: 1100px) {
  .coverage-command-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .coverage-command-summary {
    width: 100%;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
  }

  .coverage-kpi:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .coverage-kpi:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .coverage-command-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .coverage-map-panel {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .coverage-command-summary,
  .coverage-command-shell,
  .gis-projects-filters {
    grid-template-columns: 1fr;
  }

  .coverage-kpi {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .coverage-kpi:last-child {
    border-bottom: 0;
  }

  .coverage-filter-rail {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .coverage-map-panel {
    grid-column: auto;
  }

  .coverage-map-toolbar,
  .coverage-map-hint {
    align-items: flex-start;
    flex-direction: column;
  }
}

body.dark-mode .ai-report-bar-track {
  background: rgba(148, 163, 184, 0.18);
}

body.dark-mode .detail-summary-grid div,
body.dark-mode .detail-summary-grid button {
  color: #eef7ff;
}

body.dark-mode .detail-summary-grid button.active-summary {
  background: linear-gradient(180deg, rgba(0, 168, 255, 0.18), rgba(8, 21, 33, 0.96));
  border-color: rgba(0, 196, 255, 0.82);
}

body.dark-mode .vendor-dashboard-list-item {
  background: rgba(0, 159, 227, 0.08);
  border-color: rgba(73, 170, 220, 0.26);
}

body.dark-mode .vendor-dashboard-list-item:hover {
  background: rgba(0, 159, 227, 0.14);
  border-color: rgba(73, 170, 220, 0.44);
}

body.dark-mode .vendor-dashboard-list-item em {
  background: rgba(8, 24, 38, 0.82);
}

body.dark-mode .report-card-tag,
body.dark-mode .reports-schedule-card em {
  background: rgba(0, 159, 227, 0.12);
  border-color: rgba(73, 170, 220, 0.28);
}

body.dark-mode .permit-mode-tab.active {
  border-color: var(--blue);
  background: rgba(0, 159, 227, 0.18);
  color: #9bdcff;
  box-shadow: 0 0 14px rgba(0, 159, 227, 0.18);
}

body.dark-mode .topbar {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

body.dark-mode .panel-head,
body.dark-mode .ai-dashboard-widget-head,
body.dark-mode .ai-dashboard-widget-foot,
body.dark-mode .report-note,
body.dark-mode th,
body.dark-mode .project-summary-row td,
body.dark-mode .schedule-group-row td {
  background: #0d2233;
  border-color: var(--line);
  color: var(--ink);
}

body.dark-mode td,
body.dark-mode th,
body.dark-mode .detail-table th,
body.dark-mode .detail-table td {
  border-color: #172d40;
}

body.dark-mode .unit-item-row td,
body.dark-mode .vendor-item-row td {
  background: #091927;
  color: var(--ink);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .mapping-input,
body.dark-mode .detail-input,
body.dark-mode .date-control select {
  background: #06111c;
  border-color: #27455e;
  color: var(--ink);
}

body.dark-mode button,
body.dark-mode .file-button,
body.dark-mode .small-file-button,
body.dark-mode .small-button {
  background: #0d2233;
  border-color: #2d5573;
  color: var(--ink);
}

body.dark-mode .action-status-pill {
  background: #0d2233;
  border-color: #2d5573;
  color: var(--ink);
}

body.dark-mode .executive-module-health em {
  background: #0d2233;
  border: 1px solid #2d5573;
  color: var(--ink);
}

body.dark-mode button:hover,
body.dark-mode .small-button:hover,
body.dark-mode .theme-toggle:hover {
  border-color: rgba(0, 170, 255, 0.62);
  box-shadow: 0 0 0 2px rgba(0, 170, 255, 0.1);
}

body.dark-mode .theme-toggle {
  background: linear-gradient(180deg, #0f324c, #061827);
  color: #dff3ff;
}

body.dark-mode .theme-switch {
  background: linear-gradient(180deg, #071c2e, #04101c);
  border-color: rgba(0, 184, 255, 0.42);
  color: #dff3ff;
  box-shadow: inset 0 1px 0 rgba(121, 226, 255, 0.12), 0 0 14px rgba(0, 159, 227, 0.12);
}

body.dark-mode .theme-switch:not(.is-dark) .theme-switch-track {
  background: #31485b;
}

body.dark-mode .theme-switch:hover {
  border-color: rgba(121, 226, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(121, 226, 255, 0.12), 0 0 0 2px rgba(0, 170, 255, 0.1);
}

body.dark-mode .report-note.empty {
  background: rgba(185, 130, 43, 0.16);
  color: #ffd28b;
}

body.dark-mode .construction-rollup-card,
body.dark-mode .construction-project-board,
body.dark-mode .construction-schedule-assistant,
body.dark-mode .locate-package-row td,
body.dark-mode .locate-package-grid div {
  background: #081521;
  border-color: var(--line);
  color: var(--ink);
}

body.dark-mode .construction-rollup-card h4,
body.dark-mode .construction-board-head,
body.dark-mode .forecast-control-strip,
body.dark-mode .locate-package-card {
  background: #0d2233;
  border-color: var(--line);
  color: var(--ink);
}

body.dark-mode .construction-board-head span,
body.dark-mode .forecast-control-strip label,
body.dark-mode .locate-package-grid span {
  color: var(--muted);
}

body.dark-mode .construction-project-board .table-wrap,
body.dark-mode .construction-schedule-assistant .table-wrap,
body.dark-mode .construction-rollup-card .table-wrap,
body.dark-mode .construction-forecast-workspace,
body.dark-mode .construction-gis-workspace,
body.dark-mode .construction-segment-panel,
body.dark-mode .construction-map-editor {
  background: #06111c;
  border-color: var(--line);
}

body.dark-mode .gis-preview,
body.dark-mode .gis-visibility-controls,
body.dark-mode .gis-segment-card,
body.dark-mode .gis-plan-overlay,
body.dark-mode .plan-overlay-grid,
body.dark-mode .plan-overlay-grid div,
body.dark-mode .gis-segment-builder,
body.dark-mode .gis-map-legend span,
body.dark-mode .gis-map-readout,
body.dark-mode .gis-saved-segments,
body.dark-mode .gis-saved-item {
  background: #081521;
  border-color: var(--line);
  color: var(--ink);
}

body.dark-mode .drawing-intelligence-command,
body.dark-mode .drawing-intelligence-facts div {
  background: #081521;
  border-color: var(--line);
  color: var(--ink);
}

@media (max-width: 1050px) {
  .drawing-intelligence-command {
    grid-template-columns: minmax(220px, 1fr) minmax(130px, 170px) repeat(3, auto);
  }

  .drawing-intelligence-review {
    grid-template-columns: 1fr;
  }

  .drawing-intelligence-review > section + section {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .drawing-intelligence-command {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .drawing-intelligence-command > button,
  .drawing-intelligence-command > .small-file-button {
    width: 100%;
  }

  .drawing-intelligence-facts {
    grid-template-columns: 1fr;
  }
}

body.dark-mode .plan-overlay-lab-controls,
body.dark-mode .plan-overlay-workspace,
body.dark-mode .plan-overlay-lab-bottom,
body.dark-mode .plan-overlay-pane,
body.dark-mode .plan-overlay-print-redline-bar {
  background: #06111c;
  border-color: var(--line);
  color: var(--ink);
}

body.dark-mode .toggle-control {
  background: #0b1d2b;
  border-color: var(--line);
  color: var(--ink);
}

body.dark-mode .coverage-map-main,
body.dark-mode .coverage-map-panel,
body.dark-mode .team-capacity-entry {
  background: #081521;
  border-color: var(--line);
}

body.dark-mode .selected-row td {
  background: rgba(0, 159, 227, 0.14);
}

body.dark-mode .gis-measure-box {
  background: rgba(8, 21, 33, 0.94);
  border-color: #2d5573;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
}

body.dark-mode .gis-measure-box strong,
body.dark-mode .gis-empty strong,
body.dark-mode .gis-saved-item strong {
  color: var(--ink);
}

body.dark-mode .gis-canvas-wrap,
body.dark-mode .leaflet-map-panel {
  background: #06111c;
  border-color: var(--line);
}

body.dark-mode .leaflet-map-panel,
body.dark-mode .projects-overview-map,
body.dark-mode .leaflet-map,
body.dark-mode .gis-drawing-space {
  border-color: var(--line);
  background: #06111c;
}

body.dark-mode .app-modal {
  background: rgba(0, 0, 0, 0.78);
}

@media (max-width: 1200px) {
  .gis-visibility-controls {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .coverage-map-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .floating-action-dock {
    top: auto;
    bottom: 0;
    translate: 0 0;
    flex-direction: row;
    border-radius: 14px 0 0 0;
  }

  .quick-tools-rail.is-collapsed {
    translate: 0 0;
  }

  .quick-tools-toggle {
    min-height: 48px;
    height: 48px;
  }

  .assistant-panel {
    right: 10px;
    top: auto;
    bottom: 70px;
    translate: 0 0;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 92px);
  }

  .chat-notification-toast {
    right: 54px;
    top: auto;
    bottom: 12px;
    translate: 0 0;
    width: min(320px, calc(100vw - 72px));
  }
}

@media (max-width: 1050px) {
  .startup-splash__content {
    grid-template-rows: minmax(190px, 1fr) auto auto minmax(12px, 0.12fr);
    gap: 14px;
    padding: 24px 18px;
  }

  .startup-splash__content img {
    width: min(760px, 90vw);
    max-height: 34vh;
  }

  .startup-splash__modules {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    width: min(760px, 92vw);
  }

  .startup-splash__modules span {
    min-height: 58px;
  }

  body {
    grid-template-columns: 1fr;
  }

  body.module-home-active main {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
  }

  body.module-home-active #moduleHome.view.active {
    display: block;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .module-hero {
    height: auto;
    min-height: 56vh;
    padding: 82px 20px 28px;
  }

  .sidebar {
    position: static;
  }

  .status-strip,
  .kpi-grid,
  .module-grid,
  .module-category-panels,
  .command-pulse-strip,
  .module-roadmap,
  .version-tags,
  .dashboard-range,
  .reports-schedule-card,
  .split,
  .executive-brief,
  .executive-grid-2,
  .forecast-control-strip,
  .permit-workspace,
  .hld-workspace,
  .hld-input-grid,
  .compliance-grid,
  .detail-summary-grid {
    grid-template-columns: 1fr;
  }

  .module-command-center {
    position: relative;
    inset: auto;
    width: auto;
    margin: 0;
    padding: 18px;
    background: rgba(2, 12, 21, 0.72);
  }

  .module-category-heading {
    display: grid;
  }
}

@media (max-width: 900px) {
  .app-modal-card.plan-overlay-lab-card {
    grid-template-rows: auto auto auto minmax(620px, 1fr) auto;
  }

  .plan-overlay-lab-controls,
  .plan-overlay-workspace,
  .plan-overlay-lab-bottom {
    grid-template-columns: 1fr;
  }

  .plan-overlay-workspace {
    overflow: auto;
  }

  .plan-overlay-pane {
    min-height: 500px;
  }

  .plan-overlay-transform-bar {
    flex-wrap: wrap;
  }

  .plan-overlay-print-redline-bar {
    flex-wrap: wrap;
  }

  .module-hero-actions {
    top: 14px;
    right: 14px;
  }

  .command-pulse-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .command-pulse-head {
    grid-column: 1 / -1;
  }

  .module-grid--landing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .module-hero-actions {
    left: 14px;
    right: 14px;
  }

  .module-hero-settings {
    width: 100%;
    min-width: 0;
  }

  .command-pulse-strip {
    grid-template-columns: 1fr;
  }

  .module-grid--landing {
    grid-template-columns: 1fr;
  }

  .startup-splash__content {
    grid-template-rows: minmax(150px, 0.85fr) auto auto minmax(8px, 0.08fr);
    gap: 10px;
  }

  .startup-splash__content img {
    max-height: 26vh;
  }

  .startup-splash__modules {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 8px;
  }

  .startup-splash__modules span {
    min-height: 46px;
    font-size: 10px;
  }

  .startup-splash__system {
    width: min(440px, 88vw);
  }
}
.vendor-pricing-modal-card {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.vendor-pricing-filters {
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 260px) auto;
}

.vendor-pricing-upload-toolbar {
  margin-top: 14px;
}

.vendor-pricing-rate-table-wrap {
  max-height: min(46vh, 520px);
  overflow: auto;
}

.vendor-pricing-rate-input {
  min-width: 120px;
  text-align: right;
}

@media (max-width: 760px) {
  .vendor-pricing-filters {
    grid-template-columns: 1fr;
  }
}
.billing-access-card {
  width: min(540px, 94vw);
}

.billing-access-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.billing-access-summary div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(103, 215, 255, 0.2);
  border-radius: 6px;
  background: rgba(7, 29, 46, 0.78);
}

.billing-access-summary span {
  color: #67d7ff;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: left;
}

.billing-access-summary strong {
  overflow-wrap: anywhere;
  color: #f4f8fc;
  font-size: 13px;
}

.platform-billing-modal-card {
  width: min(820px, 96vw);
}

.platform-billing-form input[readonly] {
  background: color-mix(in srgb, var(--panel) 88%, var(--steel));
  color: var(--muted);
}

.billing-checkout-result {
  display: grid;
  gap: 10px;
  margin: 0 16px 4px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, #00aaff 52%, var(--line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel) 91%, #dff5ff);
}

.billing-checkout-result label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 620px) {
  .billing-access-summary {
    grid-template-columns: 1fr;
  }
}
.field-onboarding-review-card {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.field-onboarding-review-card .detail-summary-grid {
  margin-bottom: 16px;
}

.field-onboarding-document-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
}

.field-onboarding-document-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1.4fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel, #fff);
}

@media (max-width: 720px) {
  .field-onboarding-document-row {
    grid-template-columns: 1fr;
  }

  .gis-structure-modal-body {
    grid-template-columns: 1fr;
  }

  .gis-structure-preview {
    min-height: 140px;
  }
}

.employee-detail-page-view {
  width: 100%;
}

.employee-detail-page {
  width: 100%;
  min-height: calc(100vh - 142px);
  overflow: hidden;
}

.employee-detail-head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--panel);
}

.employee-detail-tabs {
  position: sticky;
  top: 73px;
  z-index: 2;
  margin: 0;
  padding: 10px 16px 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.employee-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.employee-detail-back svg {
  width: 16px;
  height: 16px;
}

.employee-detail-body,
.employee-detail-stack {
  display: grid;
  gap: 14px;
}

.employee-detail-body {
  padding: 16px;
}

.employee-detail-actions,
.employee-form-resource-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.employee-resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.employee-detail-status {
  margin: 0 16px 16px;
}

.employee-profile-link {
  min-width: 0;
  max-width: 240px;
  overflow-wrap: anywhere;
  text-align: left;
}

@media (max-width: 720px) {
  .employee-detail-page {
    min-height: calc(100vh - 116px);
  }

  .employee-detail-tabs {
    top: 92px;
    overflow-x: auto;
  }

  .employee-detail-tabs .account-settings-tab {
    flex: 0 0 auto;
  }
}
.hld-address-search { display: grid; gap: 6px; max-width: 480px; margin: 16px 0; }
.hld-address-search input { width: 100%; min-width: 0; }
#hldPanel-addresses > .detail-summary-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.hld-network-settings { border-block: 1px solid var(--line); padding: 16px 0; }
.hld-network-settings .hld-input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.hld-network-settings label { display: grid; gap: 6px; min-width: 0; }
.hld-network-settings .hld-network-check { display: flex; align-items: center; gap: 8px; }
.hld-network-check input { width: 18px; height: 18px; }
.hld-network-settings .detail-input { width: 100%; min-width: 0; }
.hld-network-source { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.hld-network-source span { overflow-wrap: anywhere; }
.hld-network-assumptions { margin-top: 16px; }
.hld-network-assumptions > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.hld-network-assumptions > .detail-input { max-width: 320px; margin: 8px 0; }
.hld-network-section { padding: 18px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.hld-network-section h3 { margin: 0 0 12px; font-size: 16px; }
.hld-network-section .detail-summary-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.hld-network-section ul { padding-left: 20px; line-height: 1.5; }
.hld-network-section td { max-width: 520px; white-space: normal; overflow-wrap: anywhere; }
.hld-network-section table { min-width: 720px; }
.hld-network-version { margin-top: 18px; }
.hld-network-version label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hld-network-version select { max-width: 100%; }
.hld-network-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 12px 0; font-size: 12px; }
.hld-network-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hld-network-legend i { width: 18px; height: 4px; display: inline-block; background: #38bdf8; }
.hld-network-legend .hld-legend-distribution { background: #6366f1; }
.hld-network-legend .hld-legend-cabinet { background: #0ea5e9; height: 10px; width: 10px; }
.hld-network-legend .hld-legend-address { background: #007d77; height: 8px; width: 8px; border-radius: 50%; }
.hld-network-legend .hld-legend-source { background: #b45309; height: 10px; width: 10px; border-radius: 50%; }
#hldPanel-network button svg { width: 16px; height: 16px; flex: 0 0 16px; }
#hldPanel-network .panel-head { flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) {
  .hld-network-settings .hld-input-grid { grid-template-columns: 1fr; }
  .hld-network-section .detail-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #hldPanel-network .panel-actions { flex-wrap: wrap; }
}
