@font-face {
  font-family: "Switzer";
  font-style: normal;
  font-weight: 500 950;
  font-display: swap;
  src: url("./assets/fonts/Switzer-Variable.ttf") format("truetype");
}

@font-face {
  font-family: "Switzer";
  font-style: italic;
  font-weight: 500 950;
  font-display: swap;
  src: url("./assets/fonts/Switzer-VariableItalic.ttf") format("truetype");
}

:root {
  --green: #1c3328;
  --white: #ffffff;
  --yellow: #ffbd59;
  --cyan: #7ee8ff;
  --normal: #32c36c;
  --red: #ff4d4d;
  --ink: #12241c;
  --line: rgba(28, 51, 40, 0.16);
  --soft: rgba(28, 51, 40, 0.06);
  --shadow: 0 18px 50px rgba(28, 51, 40, 0.1);
  --rail-width: 244px;
  --client-width: 280px;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: "Switzer", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  display: block;
  margin-left: var(--rail-width);
  min-height: 100vh;
}

.brandRail {
  background: #f7faf8;
  border-right: 1px solid var(--line);
  bottom: 0;
  color: var(--green);
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  left: 0;
  overflow: hidden;
  padding: 22px 18px;
  position: fixed;
  top: 0;
  width: var(--rail-width);
  z-index: 20;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brandLogo {
  display: block;
  height: 58px;
  object-fit: contain;
  width: 58px;
}

.driveBrand {
  align-items: center;
  display: flex;
  min-height: 62px;
}

.hqRailLogo {
  height: 64px;
  width: 64px;
}

.newActionButton {
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(28, 51, 40, 0.1);
  border-radius: 22px;
  box-shadow: 0 8px 22px rgba(28, 51, 40, 0.14);
  color: var(--green);
  display: inline-flex;
  gap: 14px;
  justify-content: flex-start;
  min-height: 58px;
  padding: 0 22px;
  width: 142px;
}

.newActionButton span {
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.newActionButton strong {
  font-size: 17px;
  font-weight: 750;
}

.brandLogoOnWhite {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.coachPill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.coachPill strong {
  font-size: 15px;
}

.coachPill span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 650;
}

.nav {
  display: grid;
  gap: 7px;
}

.nav a,
.nav button,
.returnButton {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: rgba(28, 51, 40, 0.78);
  display: flex;
  gap: 10px;
  min-height: 42px;
  padding: 10px 16px;
  text-decoration: none;
  text-align: left;
  width: 100%;
}

.nav a.active,
.nav button.active {
  background: rgba(255, 189, 89, 0.32);
  color: var(--green);
  font-weight: 800;
}

.navIcon {
  align-items: center;
  display: inline-flex;
  font-size: 19px;
  justify-content: center;
  width: 22px;
}

.returnButton {
  border: 1px solid var(--line);
  justify-content: center;
  margin-top: auto;
}

.driveExternalLink {
  border-top: 1px solid var(--line);
  color: rgba(28, 51, 40, 0.72);
  font-size: 13px;
  font-weight: 750;
  margin-top: 8px;
  padding: 16px 12px 0;
  text-decoration: none;
}

.clientList {
  border-right: 1px solid var(--line);
  height: 100vh;
  overflow: auto;
  padding: 22px 14px;
  position: sticky;
  top: 0;
}

.panelTitle,
.topBar,
.chartHead,
.statusRow {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.panelTitle {
  margin-bottom: 14px;
}

.panelTitle h1,
.panelTitle h2,
.card h2,
.card h3 {
  margin: 0;
}

.panelTitle h2,
.card h2 {
  font-size: 20px;
}

.iconButton {
  align-items: center;
  background: var(--yellow);
  border: 0;
  border-radius: 8px;
  color: var(--green);
  display: inline-flex;
  font-size: 22px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.search,
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.filterSelect {
  color: rgba(28, 51, 40, 0.68);
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.clients {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.clientCard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  display: grid;
  gap: 8px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.clientCard.active {
  background: var(--green);
  color: var(--white);
}

.muted,
.clientMeta {
  color: rgba(28, 51, 40, 0.68);
  font-size: 13px;
  font-weight: 650;
}

.clientCard.active .muted,
.clientCard.active .clientMeta {
  color: rgba(255, 255, 255, 0.72);
}

.badge {
  background: var(--soft);
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
  text-transform: uppercase;
}

.clientCard.active .badge {
  background: rgba(255, 255, 255, 0.14);
  color: var(--yellow);
}

.emptyClientState {
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--green);
  display: grid;
  gap: 6px;
  padding: 14px;
}

.emptyClientState span {
  color: rgba(28, 51, 40, 0.68);
  font-size: 13px;
  font-weight: 650;
}

.main {
  background: var(--white);
  padding: 26px 28px 40px;
}

.hqMain {
  max-width: 1480px;
}

.main [id] {
  scroll-margin-top: 18px;
}

.sectionFocus {
  outline: 2px solid rgba(255, 189, 89, 0.72);
  outline-offset: 4px;
  transition: outline-color 160ms ease;
}

.topBar {
  gap: 16px;
  margin-bottom: 20px;
}

.hqTopBar {
  align-items: flex-start;
  border-bottom: 1px solid rgba(28, 51, 40, 0.08);
  padding-bottom: 18px;
}

.titleBlock h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
}

.titleBlock p {
  color: rgba(28, 51, 40, 0.68);
  font-size: 15px;
  margin: 6px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary,
.secondary,
.danger {
  border-radius: 8px;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 14px;
}

.primary {
  background: var(--green);
  border: 1px solid var(--green);
  color: var(--white);
}

.secondary {
  background: var(--yellow);
  border: 1px solid var(--yellow);
  color: var(--green);
}

.danger {
  background: var(--white);
  border: 1px solid rgba(166, 42, 42, 0.34);
  color: #a62a2a;
}

.compactButton {
  min-height: 34px;
  padding: 7px 10px;
}

.grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.stack,
.formGrid {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

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

.coachCommand {
  align-items: stretch;
  background: var(--green);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 0.9fr) minmax(480px, 1.4fr);
  margin-bottom: 16px;
  padding: 18px;
}

.commandLead {
  display: grid;
  gap: 8px;
}

.sectionEyebrow {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commandLead h2 {
  color: var(--white);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.commandLead p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.4;
  margin: 0;
  max-width: 560px;
}

.commandGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
}

.commandMetric {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 86px;
  padding: 12px;
}

.commandMetric span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 650;
}

.commandMetric strong {
  color: var(--white);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.05;
}

.score {
  align-items: end;
  display: flex;
  gap: 8px;
}

.score strong {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.score span {
  color: rgba(28, 51, 40, 0.68);
  font-weight: 700;
  padding-bottom: 7px;
}

.signal {
  background: rgba(255, 189, 89, 0.28);
  border-radius: 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 750;
  padding: 10px;
}

.signal.ok {
  background: rgba(28, 51, 40, 0.08);
}

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

.hqHomeGrid {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  margin-bottom: 16px;
}

.commandHome {
  min-height: 100%;
}

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

.quickCommandGrid button,
.quickCommandGrid a {
  background: rgba(28, 51, 40, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 14px;
  text-align: left;
  text-decoration: none;
}

.quickCommandGrid strong {
  font-size: 18px;
  font-weight: 850;
}

.quickCommandGrid span {
  color: rgba(28, 51, 40, 0.62);
  font-size: 13px;
  font-weight: 650;
}

.clientDirectory {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
}

.clientDirectoryToolbar {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: 220px minmax(240px, 1fr);
}

.clientDirectoryGrid,
.clientDriveGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.directoryClientCard {
  background: rgba(28, 51, 40, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  display: grid;
  gap: 5px;
  justify-items: start;
  min-height: 128px;
  padding: 14px;
  text-align: left;
}

.directoryClientCard:hover {
  border-color: rgba(255, 189, 89, 0.72);
  box-shadow: 0 12px 30px rgba(28, 51, 40, 0.08);
}

.directoryClientCard strong {
  font-size: 18px;
  font-weight: 850;
}

.directoryClientCard span:not(.avatarDot),
.directoryClientCard small {
  color: rgba(28, 51, 40, 0.62);
  font-weight: 650;
}

.avatarDot {
  align-items: center;
  background: var(--green);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.stat {
  background: linear-gradient(180deg, var(--soft), rgba(28, 51, 40, 0.03));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.stat strong {
  display: block;
  font-size: 24px;
  font-weight: 850;
}

.stat span {
  color: rgba(28, 51, 40, 0.66);
  font-size: 13px;
  font-weight: 700;
}

.stat.watchWarning {
  background: rgba(255, 77, 77, 0.1);
  border-color: rgba(255, 77, 77, 0.36);
}

.stat.watchCaution {
  background: rgba(255, 189, 89, 0.2);
  border-color: rgba(255, 189, 89, 0.58);
}

.fleetOverview {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
}

.overviewStats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.overviewStats article {
  background: rgba(28, 51, 40, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.overviewStats span,
.overviewTable th,
.overviewTodo article span {
  color: rgba(28, 51, 40, 0.62);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.overviewStats strong {
  font-size: 24px;
  font-weight: 850;
}

.overviewGrid {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 290px;
}

.overviewTableWrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

.overviewTable {
  border-collapse: collapse;
  min-width: 1120px;
  width: 100%;
}

.overviewTable th,
.overviewTable td {
  border-bottom: 1px solid rgba(28, 51, 40, 0.1);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

.overviewTable tbody tr:last-child td {
  border-bottom: 0;
}

.overviewTable td {
  color: rgba(28, 51, 40, 0.78);
  font-size: 13px;
  font-weight: 600;
}

.overviewTable td:first-child {
  min-width: 180px;
}

.overviewTable td:first-child span {
  color: rgba(28, 51, 40, 0.58);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.overviewTable tr.needsAttention {
  background: rgba(255, 189, 89, 0.1);
}

.overviewSignal {
  background: rgba(28, 51, 40, 0.07);
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  padding: 5px 8px;
  white-space: nowrap;
}

.textLink {
  background: transparent;
  border: 0;
  color: var(--green);
  font-weight: 800;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.textLink:hover {
  text-decoration: underline;
}

.overviewTodo {
  background: rgba(28, 51, 40, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.overviewTodo h3 {
  font-size: 18px;
  font-weight: 850;
  margin: 0;
}

.overviewTodo article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 10px;
}

.overviewTodo article strong {
  font-weight: 800;
}

.overviewTodo article p {
  color: rgba(28, 51, 40, 0.68);
  font-size: 13px;
  margin: 0;
}

.hqOpsGrid {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}

.hqOpsGrid.singleWide {
  grid-template-columns: minmax(0, 1fr);
}

.hqOpsCard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.driveQuickLinks,
.todoistList {
  display: grid;
  gap: 8px;
}

.driveQuickLinks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.driveTile,
.todoistList article,
.driveClientMatch {
  background: rgba(28, 51, 40, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  display: grid;
  gap: 5px;
  padding: 11px;
  text-decoration: none;
}

.driveTile span,
.todoistList article span,
.driveClientMatch span {
  color: rgba(28, 51, 40, 0.62);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.driveTile strong,
.todoistList article strong,
.driveClientMatch strong {
  font-weight: 850;
  line-height: 1.15;
}

.driveTilePrimary {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.driveTilePrimary span,
.driveTilePrimary strong {
  color: var(--white);
}

.todoistList article p {
  color: rgba(28, 51, 40, 0.62);
  font-size: 12px;
  margin: 0;
}

.driveClientMatch .compactButton {
  justify-self: start;
  margin-top: 4px;
  text-decoration: none;
}

.watchtowerPanel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
}

.watchtowerActions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watchtowerSummary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}

.watchtowerCount {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.watchtowerCount strong {
  color: var(--green);
  font-size: 26px;
  font-weight: 950;
}

.watchtowerCount span {
  color: rgba(28, 51, 40, 0.68);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.watchtowerTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watchtowerTabs button {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
}

.watchtowerTabs button.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.watchtowerTabs span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.watchtowerTabs strong {
  background: rgba(255, 189, 89, 0.34);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  min-width: 24px;
  padding: 3px 7px;
  text-align: center;
}

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

.foodBaseMetrics div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 12px;
}

.foodBaseMetrics strong {
  color: var(--green);
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.foodBaseMetrics span {
  color: rgba(28, 51, 40, 0.64);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.watchtowerCount.master_warning,
.interventionItem.master_warning {
  border-color: rgba(255, 77, 77, 0.48);
  box-shadow: inset 5px 0 0 var(--red);
}

.watchtowerCount.master_caution,
.interventionItem.master_caution {
  border-color: rgba(255, 189, 89, 0.7);
  box-shadow: inset 5px 0 0 var(--yellow);
}

.watchtowerCount.caution,
.interventionItem.caution {
  border-color: rgba(255, 189, 89, 0.42);
  box-shadow: inset 5px 0 0 rgba(255, 189, 89, 0.7);
}

.watchtowerCount.advisory,
.interventionItem.advisory {
  border-color: rgba(126, 232, 255, 0.58);
  box-shadow: inset 5px 0 0 var(--cyan);
}

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

.interventionItem {
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 168px;
  padding: 14px 14px 14px 18px;
}

.interventionMain {
  display: grid;
  gap: 7px;
}

.interventionMain h3 {
  color: var(--green);
  font-size: 20px;
  font-weight: 950;
  margin: 0;
}

.interventionMain p {
  color: rgba(28, 51, 40, 0.76);
  line-height: 1.42;
  margin: 0;
}

.interventionSeverity {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.interventionMeta {
  align-content: start;
  display: grid;
  gap: 8px;
}

.interventionMeta span {
  color: rgba(28, 51, 40, 0.68);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.managerBriefing {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
}

.managerBriefing.master_warning {
  border-color: rgba(255, 77, 77, 0.42);
}

.managerBriefing.master_caution,
.managerBriefing.caution {
  border-color: rgba(255, 189, 89, 0.58);
}

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

.managerBriefingLead > div:first-child {
  background: var(--green);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  gap: 8px;
  min-height: 140px;
  padding: 16px;
}

.managerBriefingLead > div:first-child strong {
  color: var(--white);
  font-size: 54px;
  font-weight: 950;
  line-height: 1;
}

.managerBriefingLead h3 {
  color: var(--green);
  font-size: 24px;
  font-weight: 950;
  margin: 0 0 8px;
}

.managerBriefingLead p {
  color: rgba(28, 51, 40, 0.76);
  line-height: 1.45;
  margin: 0 0 10px;
}

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

.managerSourceGrid div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.managerSourceGrid strong {
  color: var(--green);
  font-size: 20px;
  font-weight: 950;
}

.managerSourceGrid span {
  color: rgba(28, 51, 40, 0.66);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.managerBriefingColumns section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.managerBriefingColumns h3 {
  color: var(--green);
  font-size: 15px;
  font-weight: 950;
  margin: 0 0 8px;
}

.clientDeepDive {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
}

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

.deepDiveCard {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 12px;
  text-align: left;
}

.deepDiveCard.active {
  background: var(--green);
  border-color: var(--green);
}

.deepDiveCard strong {
  color: var(--green);
  font-size: 18px;
  font-weight: 950;
}

.deepDiveCard p {
  color: rgba(28, 51, 40, 0.72);
  line-height: 1.4;
  margin: 0;
}

.deepDiveCard.active strong,
.deepDiveCard.active p,
.deepDiveCard.active .accessState {
  color: var(--white);
}

.deepDiveCard.active .accessTier {
  background: var(--yellow);
  color: var(--green);
}

.deepDiveActivePanel {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.deepDiveActivePanel h3 {
  color: var(--green);
  font-size: 22px;
  font-weight: 950;
  margin: 0;
}

.deepDiveActivePanel > p {
  color: rgba(28, 51, 40, 0.76);
  line-height: 1.45;
  margin: 0;
}

.accessLadder {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
}

.eyebrow {
  color: rgba(28, 51, 40, 0.6);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

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

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

.accessRow {
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.accessRow.unlocked {
  background: rgba(50, 195, 108, 0.12);
  border: 1px solid rgba(50, 195, 108, 0.46);
}

.accessRow.locked {
  background: rgba(255, 189, 89, 0.18);
  border: 1px solid rgba(255, 189, 89, 0.62);
}

.accessRow strong {
  color: var(--green);
  font-size: 16px;
  font-weight: 900;
}

.accessRow p {
  color: rgba(28, 51, 40, 0.72);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  margin: 0;
}

.accessTier {
  background: var(--green);
  border-radius: 999px;
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
  text-transform: uppercase;
}

.accessRow.locked .accessTier {
  background: var(--yellow);
  color: var(--green);
}

.accessState {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.resourceLink {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.privacyOps {
  border-color: rgba(28, 51, 40, 0.16);
}

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

.privacyMetrics div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.privacyMetrics strong {
  color: var(--green);
  font-size: 26px;
  font-weight: 950;
}

.privacyMetrics span {
  color: rgba(28, 51, 40, 0.62);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.privacyColumns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compliance {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.complianceRow {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 86px 1fr;
}

.dots {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(7, 22px);
}

.dot {
  align-items: center;
  background: var(--soft);
  border-radius: 50%;
  color: var(--green);
  display: flex;
  font-size: 12px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.dot.good {
  background: var(--green);
  color: var(--white);
}

.dot.bad,
.dot.warn {
  background: var(--yellow);
}

.activity {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  padding-right: 4px;
}

.activityItem {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 48px 1fr auto;
  padding: 12px 0;
}

.bioFratAdmin {
  display: grid;
  gap: 12px;
}

.bioFratAdminGrid {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 104px 1fr;
}

.bioFratAdminScore {
  align-items: center;
  border: 2px solid var(--green);
  border-radius: 8px;
  display: grid;
  height: 92px;
  justify-content: center;
  text-align: center;
}

.bioFratAdminScore strong {
  color: var(--green);
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
}

.bioFratAdminScore span {
  color: rgba(28, 51, 40, 0.66);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.bioFratAdmin h3 {
  color: var(--green);
  font-size: 20px;
  margin: 4px 0 6px;
}

.bioFratAdmin p {
  color: rgba(28, 51, 40, 0.72);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  margin: 0;
}

.riskBadge.green {
  background: var(--normal);
  color: var(--white);
}

.riskBadge.amber {
  background: var(--yellow);
  color: var(--green);
}

.riskBadge.red {
  background: var(--red);
  color: var(--white);
}

.bioFratInputs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bioFratInputs span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  padding: 7px 10px;
}

.exceedanceAdmin {
  display: grid;
  gap: 12px;
}

.exceedanceReport {
  background: var(--yellow);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  padding: 12px;
}

.exceedanceReport strong {
  color: var(--green);
  font-size: 18px;
  font-weight: 950;
}

.exceedanceReport p {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.riskBadge.advisory {
  background: var(--normal);
  color: var(--white);
}

.riskBadge.caution {
  background: var(--yellow);
  color: var(--green);
}

.riskBadge.warning {
  background: var(--red);
  color: var(--white);
}

.foqaBox {
  background: var(--white);
  border-radius: 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  padding: 12px;
}

.clientIntel {
  display: grid;
  gap: 12px;
}

.profileSnapshot {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.profileSnapshot div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 10px;
}

.profileSnapshot span {
  color: rgba(28, 51, 40, 0.58);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.profileSnapshot strong {
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}

.coachActionForms {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.coachActionForm {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.coachActionForm .panelTitle {
  margin-bottom: 0;
}

.coachActionForm strong {
  color: var(--green);
  display: block;
  font-weight: 900;
}

.twoColumn {
  grid-template-columns: 1fr 1fr;
}

.intelBlock {
  background: var(--soft);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 11px;
}

.intelBlock p,
.intelBrief p,
.intelListItem p {
  line-height: 1.45;
  margin: 0;
}

.intelBrief {
  background: var(--green);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  gap: 7px;
  padding: 12px;
}

.intelBrief span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.intelColumns {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.intelColumns > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.intelListItem {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-top: 8px;
}

.intelListItem span {
  color: rgba(28, 51, 40, 0.62);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.actionItemRow {
  align-items: start;
  grid-template-columns: 1fr auto;
}

.iconTextButton {
  min-height: 30px;
  padding: 7px 10px;
}

.intelImport {
  display: grid;
  gap: 12px;
}

.flightPlanAssignment {
  display: grid;
  gap: 12px;
}

.layoverOps {
  display: grid;
  gap: 14px;
}

.medicalAdminCard,
.physiologicalPlanCard,
.scheduleOpsCard {
  display: grid;
  gap: 12px;
}

.medicalAdminMetrics,
.planZoneStats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.medicalAdminMetrics div,
.planZoneStats div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.medicalAdminMetrics strong,
.planZoneStats strong {
  color: var(--green);
  font-size: 18px;
  font-weight: 950;
}

.medicalAdminMetrics span,
.planZoneStats span {
  color: rgba(28, 51, 40, 0.68);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.medicalAdminMetrics p,
.physiologicalPlanCard p {
  color: rgba(28, 51, 40, 0.72);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.protocolLine {
  background: rgba(255, 189, 89, 0.28);
  border-radius: 8px;
  color: var(--green);
  font-weight: 850;
  padding: 10px;
}

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

.planRisk {
  border: 1px solid var(--line);
  border-left: 5px solid var(--normal);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 10px;
}

.planRisk.holding {
  border-left-color: var(--yellow);
}

.planRisk.red {
  border-left-color: var(--red);
}

.planRisk h3 {
  color: var(--green);
  font-size: 17px;
}

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

.scheduleOpsGrid section {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.layoverHeader {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  padding: 14px;
}

.layoverHeader h3 {
  color: var(--white);
  font-size: 22px;
  margin: 8px 0 2px;
}

.layoverHeader .muted {
  color: rgba(255, 255, 255, 0.76);
}

.layoverHeader .badge {
  background: rgba(126, 232, 255, 0.18);
  color: var(--cyan);
}

.layoverNumbers {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: grid;
  min-width: 96px;
  padding: 10px;
  text-align: center;
}

.layoverNumbers strong {
  color: var(--yellow);
  font-size: 24px;
  font-weight: 950;
}

.layoverNumbers span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
}

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

.layoverStats div,
.layoverGrid section {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.layoverStats strong {
  color: var(--green);
  font-size: 16px;
  font-weight: 950;
}

.layoverStats span {
  color: rgba(28, 51, 40, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.tightList {
  display: grid;
  gap: 8px;
}

.tightList p {
  background: var(--white);
  border: 1px solid rgba(28, 51, 40, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  line-height: 1.35;
  margin: 0;
  padding: 9px;
}

.tightList p strong {
  color: var(--green);
  font-weight: 950;
}

.tightList p span {
  color: rgba(28, 51, 40, 0.68);
  font-size: 12px;
  font-weight: 750;
}

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

.compactForm label {
  display: grid;
  gap: 6px;
}

.intelImport p {
  line-height: 1.45;
  margin: 0;
}

.fileDrop {
  background: var(--soft);
  border: 1px dashed rgba(28, 51, 40, 0.28);
  border-radius: 8px;
  cursor: pointer;
  display: block;
  font-weight: 900;
  padding: 14px;
}

.fileDrop input {
  display: none;
}

.scannerReview {
  display: grid;
  gap: 12px;
}

.scannerQueue {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

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

.scannerSubmission h3 {
  font-size: 17px;
  margin: 4px 0 0;
}

.monoLine,
.submissionText,
.submissionNote {
  border-radius: 8px;
  font-size: 13px;
  margin: 0;
  padding: 10px;
}

.monoLine {
  background: var(--green);
  color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight: 800;
}

.submissionText {
  background: var(--soft);
  color: rgba(28, 51, 40, 0.82);
  line-height: 1.45;
}

.submissionNote {
  background: rgba(255, 189, 89, 0.22);
  color: var(--green);
  font-weight: 800;
}

.reviewActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.emptyState {
  background: var(--soft);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.dateBlock {
  background: var(--soft);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 0;
  text-align: center;
}

.chartGrid {
  display: grid;
  align-items: start;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  margin-bottom: 14px;
}

.chartCard.wide {
  grid-column: auto;
}

.chart {
  height: 78px;
  margin-top: 6px;
  overflow: hidden;
}

.chartCard {
  min-height: 0;
  padding: 10px;
}

.chartCard h2 {
  font-size: 15px;
}

.chartCard .range span {
  font-size: 10px;
  padding: 2px 6px;
}

.chartCard .legend {
  gap: 8px;
  margin-top: 5px;
}

.chartCard .legend span {
  font-size: 11px;
}

svg {
  display: block;
  height: 100%;
  overflow: visible;
  width: 100%;
}

.range {
  display: inline-flex;
  gap: 4px;
}

.range span {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: rgba(28, 51, 40, 0.5);
  font-size: 12px;
  font-weight: 900;
  padding: 4px 7px;
}

.range span.active {
  background: var(--cyan);
  color: var(--green);
}

.legend {
  display: flex;
  gap: 18px;
  margin-top: 8px;
}

.legend span {
  align-items: center;
  color: rgba(28, 51, 40, 0.72);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
}

.legend i {
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.drawer {
  background: rgba(28, 51, 40, 0.28);
  display: none;
  inset: 0;
  position: fixed;
  z-index: 10;
}

.drawer.open {
  display: block;
}

.drawerPanel {
  background: var(--white);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  margin-left: auto;
  min-height: 100%;
  padding: 24px;
  width: min(480px, 100%);
}

label {
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
  text-transform: uppercase;
}

.emailPreview,
.authPanel {
  background: var(--soft);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.authGate {
  align-items: center;
  background: var(--green);
  display: grid;
  min-height: 100vh;
  padding: 28px;
  place-items: center;
}

.authCard {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 380px;
  padding: 0;
  width: 100%;
}

.hqAuthLogo {
  display: block;
  height: auto;
  justify-self: center;
  margin-bottom: 20px;
  object-fit: contain;
  width: min(188px, 48vw);
}

.authField {
  display: block;
}

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

.authCard input {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--green);
  min-height: 54px;
  padding: 0 16px;
}

.authCard input::placeholder {
  color: rgba(28, 51, 40, 0.58);
}

.authCard .primary {
  background: var(--yellow);
  border: 0;
  border-radius: 10px;
  color: var(--green);
  min-height: 54px;
}

.authCard .toast {
  background: rgba(255, 255, 255, 0.94);
  color: var(--green);
}

.toast {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: none;
  font-weight: 750;
  padding: 12px;
}

.toast.show {
  display: block;
}

@media (max-width: 1180px) {
  :root {
    --rail-width: 220px;
  }

  .shell {
    grid-template-columns: minmax(760px, 1fr);
    margin-left: var(--rail-width);
  }

  .clientList {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .coachCommand {
    grid-template-columns: 1fr;
  }

  .commandGrid {
    grid-template-columns: repeat(3, 1fr);
  }

  .overviewGrid {
    grid-template-columns: 1fr;
  }

  .hqOpsGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .shell {
    display: block;
    margin-left: 0;
  }

  .brandRail {
    min-height: auto;
    height: auto;
    overflow: visible;
    position: static;
    width: auto;
  }

  .nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .main {
    padding: 20px 14px 34px;
  }

  .topBar,
  .chartGrid,
  .miniStats,
  .overviewStats,
  .watchtowerSummary,
  .interventionItem,
  .managerBriefingLead,
  .managerSourceGrid,
  .managerBriefingColumns,
  .deepDiveGrid,
  .privacyMetrics,
  .privacyColumns,
  .accessRows,
  .retentionGrid,
  .commandGrid,
  .profileSnapshot,
  .medicalAdminMetrics,
  .planZoneStats,
  .scheduleOpsGrid,
  .layoverStats,
  .layoverGrid,
  .driveQuickLinks,
  .hqOpsGrid,
  .twoColumn,
  .intelColumns {
    display: grid;
    grid-template-columns: 1fr;
  }
}
