:root {
  --ink: #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;
  --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:
    radial-gradient(circle at 50% 30%, rgba(0, 166, 255, 0.28), transparent 420px),
    radial-gradient(circle at 18% 78%, rgba(12, 70, 128, 0.42), transparent 460px),
    radial-gradient(circle at 82% 88%, rgba(0, 92, 163, 0.28), transparent 360px),
    linear-gradient(145deg, #000 0%, #02080f 42%, #041a2d 100%);
  color: #f4f8fc;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.startup-splash.is-hiding {
  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-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%;
  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;
  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.9) 0%, rgba(0, 5, 11, 0.72) 36%, rgba(2, 19, 34, 0.52) 100%),
    radial-gradient(circle at 50% 12%, rgba(0, 170, 255, 0.22), transparent 56%);
  box-shadow: none;
  animation: commandIntro 900ms ease-out both;
}

.startup-splash__content img {
  display: block;
  align-self: end;
  width: min(920px, 82vw);
  max-height: min(430px, 42vh);
  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:
    linear-gradient(180deg, #000 0, #000 52%, rgba(0, 65, 130, 0.28) 100%),
    radial-gradient(circle at 62% 58%, rgba(0, 153, 255, 0.2), transparent 64%);
  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;
}

.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: 0;
  height: 100vh;
  padding: 8px 28px 330px;
  margin-bottom: 0;
  border: 1px solid rgba(0, 108, 185, 0.22);
  border-radius: 0;
  background:
    linear-gradient(100deg, transparent 0 38%, rgba(0, 170, 255, 0.1) 45%, rgba(255, 255, 255, 0.08) 48%, transparent 57% 100%),
    linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.94) 48%, rgba(2, 28, 48, 0.86) 100%),
    radial-gradient(circle at 50% 24%, rgba(0, 170, 255, 0.24), transparent 340px),
    radial-gradient(circle at 78% 72%, rgba(0, 93, 180, 0.2), transparent 260px),
    #03070c;
  background-size: 220% 100%, auto, auto, auto, auto;
  color: #f4f8fc;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(0, 170, 255, 0.18), 0 14px 34px rgba(24, 39, 55, 0.08);
  animation: commandCenterWave 8200ms ease-in-out infinite;
}

.module-hero-logo {
  width: min(1180px, 94vw);
  display: grid;
  place-items: center;
  opacity: 0.72;
  transform: translateY(-28px);
}

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

.module-hero-copy {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  width: min(820px, calc(100vw - 44px));
  max-width: 820px;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  margin-top: 0;
  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);
  transform: translateX(-50%);
}

.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-grid {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 66px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.module-card {
  min-height: 72px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 8px 10px;
  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: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;
}

.module-card[data-module="executive"] {
  grid-column: 2 / 3;
}

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="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(320px, 0.82fr) minmax(520px, 1.3fr);
  gap: 14px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.hld-workspace {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(560px, 1.35fr);
  gap: 14px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.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: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 159, 227, 0.08);
}

.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 {
  margin-bottom: 12px;
}

.map-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  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);
}

.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;
  gap: 12px;
  align-content: start;
}

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

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

.permit-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 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;
}

.selected-project-row td {
  background: #eef6f6;
}

.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;
}

.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;
}

.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-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);
}

.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;
}

.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-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;
}

.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 {
  padding: 0 16px 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.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: 0 16px 16px;
  display: grid;
  gap: 12px;
}

.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;
}

.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;
}

.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: 115px;
}

.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-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-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-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;
}

.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;
}

.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;
}

.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);
}

.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,
.bid-dashboard,
.materials-dashboard {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.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);
}

.project-edit-modal-card {
  width: min(820px, 96vw);
}

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

.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-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;
}

.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:not(.assistant-orb):not(.assistant-core) {
  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:not(.assistant-orb):not(.assistant-core) {
  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;
  border-radius: 16px;
  border-color: rgba(138, 235, 255, 0.92);
  background:
    radial-gradient(circle at 50% 44%, rgba(95, 226, 255, 0.42), transparent 36%),
    linear-gradient(145deg, #07131f 0%, #064a8b 48%, #00a7ee 100%);
  box-shadow:
    0 0 20px rgba(0, 159, 227, 0.68),
    0 0 54px rgba(0, 159, 227, 0.32);
}

.assistant-orb {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 13px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.96), transparent 25%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(0, 150, 232, 0.32) 48%, rgba(1, 12, 24, 0.9));
  box-shadow:
    inset 0 1px 5px rgba(255, 255, 255, 0.38),
    inset 0 -10px 18px rgba(0, 0, 0, 0.34);
  transform-style: preserve-3d;
}

.assistant-orb::before,
.assistant-orb::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(113, 225, 255, 0.55);
  border-radius: 19px;
  transform: rotate(45deg);
}

.assistant-orb::after {
  inset: 8px;
  border-color: rgba(0, 159, 227, 0.72);
  background: rgba(1, 12, 24, 0.48);
}

.assistant-core,
.assistant-cp-mark span,
.assistant-welcome-mark span {
  position: relative;
  z-index: 1;
  color: #061827;
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.74),
    0 7px 12px rgba(0, 0, 0, 0.36),
    0 0 10px rgba(0, 174, 255, 0.42);
  transform: translateZ(10px);
}

.assistant-core {
  font-size: 12px;
}

.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);
}

.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));
}

.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;
  border: 1px solid rgba(160, 239, 255, 0.78);
  border-radius: 13px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.94), transparent 23%),
    linear-gradient(145deg, rgba(239, 246, 255, 0.92), rgba(0, 159, 227, 0.36) 47%, rgba(1, 12, 24, 0.94));
  box-shadow:
    inset 0 0 14px rgba(255, 255, 255, 0.2),
    0 0 24px rgba(0, 159, 227, 0.34);
  transform-style: preserve-3d;
}

.assistant-cp-mark::before,
.assistant-cp-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(113, 225, 255, 0.5);
  border-radius: 16px;
  inset: -5px;
  transform: rotate(45deg) translateZ(-2px);
}

.assistant-cp-mark::after {
  inset: 7px;
  border-color: rgba(0, 159, 227, 0.72);
  background: rgba(1, 12, 24, 0.5);
}

.assistant-cp-mark span {
  font-size: 12px;
}

.assistant-thinking .assistant-cp-mark,
.assistant-thinking .assistant-welcome-mark {
  animation: cp-thinking-rotate 1.1s linear infinite;
}

@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;
}

.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;
  border: 1px solid rgba(160, 239, 255, 0.76);
  border-radius: 16px;
  background:
    radial-gradient(circle at 40% 28%, rgba(255, 255, 255, 0.9), transparent 22%),
    linear-gradient(145deg, rgba(239, 246, 255, 0.92), rgba(0, 159, 227, 0.42) 48%, rgba(1, 12, 24, 0.94));
  box-shadow: 0 0 32px rgba(0, 159, 227, 0.34);
}

.assistant-welcome-mark span {
  font-size: 15px;
}

.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(4, 18, 32, 0.96), rgba(4, 18, 32, 0.72));
}

.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: rgba(1, 12, 24, 0.58);
  color: var(--text);
  text-align: left;
  font-size: 12px;
}

.assistant-prompt-grid button strong,
.assistant-prompt-grid button span {
  display: block;
  min-width: 0;
}

.assistant-prompt-grid button strong {
  color: #e9f8ff;
  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: rgba(0, 159, 227, 0.14);
}

.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-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) {
  .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%;
}

#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 .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 .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 .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,
body.dark-mode .selected-project-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 .toggle-control {
  background: #0b1d2b;
  border-color: var(--line);
  color: var(--ink);
}

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));
  }
}

@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;
  }

  .sidebar {
    position: static;
  }

  .status-strip,
  .kpi-grid,
  .module-grid,
  .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-card[data-module="executive"] {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .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);
  }
}
