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

@font-face {
  font-family: "Switzer";
  font-style: italic;
  font-weight: 400 700;
  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;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

table {
  max-width: 100%;
}

pre,
code {
  overflow-wrap: anywhere;
}

pre {
  max-width: 100%;
  overflow-x: hidden;
  white-space: pre-wrap;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: "Switzer", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 480;
  letter-spacing: 0;
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

.shell {
  display: block;
  margin-left: var(--rail-width);
  min-height: 100vh;
  max-width: calc(100vw - var(--rail-width));
  min-width: 0;
  overflow-x: hidden;
}

.brandRail {
  background: var(--green);
  border-right: 0;
  bottom: 0;
  color: var(--white);
  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;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2));
  width: 64px;
}

.newActionButton {
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(28, 51, 40, 0.1);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  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: 500;
}

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

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

.nav a,
.nav button,
.returnButton {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  display: flex;
  min-height: 42px;
  padding: 10px 22px;
  text-decoration: none;
  text-align: left;
  width: 100%;
}

.nav a.active,
.nav button.active {
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
  font-weight: 500;
}

.returnButton {
  border: 1px solid rgba(255, 255, 255, 0.2);
  justify-content: center;
  margin-top: auto;
}

.driveExternalLink {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  margin-top: 8px;
  padding: 16px 22px 0;
  text-decoration: none;
}

.clientList {
  border-right: 1px solid var(--line);
  height: 100vh;
  overflow-x: hidden;
  overflow-y: 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: 500;
  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: 500;
  gap: 6px;
  margin-bottom: 10px;
}

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: 500;
}

.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: 500;
  padding: 5px 8px;
}

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

.main {
  background: var(--white);
  min-width: 0;
  overflow-x: hidden;
  padding: 26px 28px 40px;
}

.hqMain {
  max-width: 1480px;
  min-width: 0;
  width: 100%;
}

.hqMain > *,
.card,
.deepDiveShell,
.overviewTableWrap,
.activityFeed,
.clientCommandPanel,
.clientDeepGrid,
.clientDirectory,
.commandGrid,
.hqHomeGrid,
.overviewGrid {
  min-width: 0;
}

.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;
  position: relative;
}

.leadHeaderToast {
  align-items: center;
  background: #1c3328;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(28, 51, 40, 0.18);
  color: #ffffff;
  display: flex;
  font-size: 13px;
  font-weight: 650;
  gap: 8px;
  left: 50%;
  max-width: min(420px, 44vw);
  opacity: 0;
  padding: 10px 16px;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translate(-50%, -8px) scale(0.97);
  transition: opacity 180ms ease, transform 180ms ease;
  visibility: hidden;
  z-index: 8;
}

.leadHeaderToast span {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.leadHeaderToast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  visibility: visible;
}

.titleBlock h1 {
  font-size: 34px;
  font-weight: 500;
  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: 12px;
  font-weight: 500;
  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: 12px;
  min-width: 0;
  padding: 16px;
}

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

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

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

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

.commandLead h2 {
  color: var(--white);
  font-size: 28px;
  font-weight: 500;
  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(auto-fit, minmax(120px, 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: 500;
}

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

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

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

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

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

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

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

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

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

.commandHome {
  min-height: 100%;
}

.quickCommandGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 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: 500;
}

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

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

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

.clientDirectoryCompact {
  padding: 14px 16px;
}

.clientDirectoryCount {
  color: rgba(28, 51, 40, 0.6);
  font-size: 11px;
  font-weight: 650;
  padding-bottom: 12px;
  white-space: nowrap;
}

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

.crewRoomLayout {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
}

.crewRoomPanel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  min-height: 520px;
  padding: 16px;
}

.crewRoomPanelHead {
  align-items: center;
  display: flex;
  font-weight: 500;
  justify-content: space-between;
}

.crewRoomStatus {
  color: rgba(28, 51, 40, 0.62);
  font-size: 12px;
}

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

.crewRoomChannelTab {
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--green);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  text-align: left;
}

.crewRoomChannelTab strong {
  display: block;
  font-weight: 500;
}

.crewRoomChannelTab small {
  color: rgba(28, 51, 40, 0.65);
  display: block;
  font-size: 12px;
}

.crewRoomChannelTab.active {
  background: rgba(126, 200, 255, 0.12);
  border-color: rgba(126, 200, 255, 0.66);
}

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

.crewRoomComposer textarea {
  min-height: 76px;
}

.crewRoomPosts,
.crewRoomMemberDirectory,
.crewRoomThread {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding: 12px;
}

.crewRoomPosts .muted,
.crewRoomThread .muted {
  margin: 0;
}

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

.crewRoomPostHeader {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.crewRoomPostAuthor {
  font-weight: 500;
}

.crewRoomPostMeta {
  color: rgba(28, 51, 40, 0.62);
  font-size: 11px;
  white-space: nowrap;
}

.crewRoomPostBody {
  color: rgba(28, 51, 40, 0.9);
  font-size: 14px;
  line-height: 1.35;
}

.crewRoomThread {
  background: rgba(28, 51, 40, 0.03);
  border: 0;
}

.crewRoomThreadLabel {
  color: rgba(28, 51, 40, 0.72);
  font-size: 12px;
  font-weight: 500;
}

.crewRoomPostReply {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid rgba(28, 51, 40, 0.13);
  display: grid;
  gap: 7px;
  padding: 8px;
}

.crewRoomSearchRow {
  display: block;
}

.crewRoomSearchRow input {
  width: 100%;
}

.crewRoomMemberDirectory {
  max-height: 240px;
}

.crewRoomMember {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--green);
  cursor: pointer;
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
  width: 100%;
}

.crewRoomMember.active,
.crewRoomMember:active {
  background: rgba(28, 51, 40, 0.065);
  border-color: rgba(28, 51, 40, 0.18);
}

.crewRoomMember:hover {
  border-color: rgba(28, 51, 40, 0.18);
}

.crewRoomMemberName {
  font-size: 14px;
  font-weight: 500;
}

.crewRoomMemberSub {
  color: rgba(28, 51, 40, 0.64);
  font-size: 12px;
}

.crewRoomMemberBadge {
  background: rgba(28, 51, 40, 0.08);
  border-radius: 999px;
  color: rgba(28, 51, 40, 0.8);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  width: fit-content;
}

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

.crewRoomThreadMessage.isMine {
  border-color: rgba(126, 200, 255, 0.6);
  margin-left: 12px;
}

.crewRoomThreadMessage p,
.crewRoomThreadMessage .muted {
  margin: 0;
}

.crewRoomThreadMeta {
  color: rgba(28, 51, 40, 0.62);
  font-size: 11px;
}

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

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

.avatarDot {
  align-items: center;
  background: var(--green);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  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: 12px;
  padding: 14px;
}

.hqStats button.stat {
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hqStats button.stat:hover,
.hqStats button.stat:focus-visible {
  border-color: rgba(28, 51, 40, 0.28);
  box-shadow: 0 10px 26px rgba(28, 51, 40, 0.08);
  outline: none;
  transform: translateY(-1px);
}

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

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

.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: 12px;
  box-shadow: 0 14px 34px rgba(28, 51, 40, 0.06);
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
}

.overviewStats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 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: 500;
}

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

.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-x: auto;
}

.overviewTable {
  border-collapse: collapse;
  min-width: 980px;
  table-layout: fixed;
  width: 100%;
}

.overviewTable th,
.overviewTable td {
  border-bottom: 1px solid rgba(28, 51, 40, 0.1);
  overflow-wrap: anywhere;
  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: 500;
}

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

.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: 500;
  padding: 5px 8px;
  white-space: normal;
}

.textLink {
  background: transparent;
  border: 0;
  color: var(--green);
  font-weight: 500;
  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: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

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

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

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

.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(auto-fit, minmax(280px, 1fr));
  margin: 16px 0;
}

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

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

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

.driveQuickLinks {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.driveTile,
.todoistList article,
.driveClientMatch {
  background: rgba(28, 51, 40, 0.045);
  border: 1px solid var(--line);
  border-radius: 12px;
  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: 500;
}

.driveTile strong,
.todoistList article strong,
.driveClientMatch strong {
  font-weight: 500;
  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: 12px;
  box-shadow: 0 14px 34px rgba(28, 51, 40, 0.06);
  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(auto-fit, minmax(145px, 1fr));
}

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

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

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

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

.watchtowerTabs button {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  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: 500;
}

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

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

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

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

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

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

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

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

.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: 500;
  line-height: 1;
}

.managerBriefingLead h3 {
  color: var(--green);
  font-size: 24px;
  font-weight: 500;
  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(auto-fit, minmax(120px, 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: 500;
}

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

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

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

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

.compactManagerBriefing {
  gap: 12px;
}

.snapshotLead {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: 104px minmax(0, 1.35fr) minmax(220px, 1fr);
}

.snapshotScore,
.snapshotSummary,
.snapshotPriority {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  padding: 14px;
}

.snapshotScore {
  align-content: center;
  background: var(--green);
  color: var(--white);
  display: grid;
  text-align: center;
}

.snapshotScore strong {
  color: var(--white);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
}

.snapshotScore span,
.snapshotPriority > span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.snapshotSummary {
  background: var(--white);
}

.snapshotPriority {
  background: #fff7e5;
  border-color: rgba(255, 189, 89, 0.65);
  display: grid;
  gap: 8px;
}

.snapshotPriority strong {
  color: var(--green);
  font-size: 15px;
  line-height: 1.35;
}

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

.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(5, minmax(0, 1fr));
}

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

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

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

.deepDiveCard p {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: rgba(28, 51, 40, 0.72);
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
}

.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: 500;
  margin: 0;
}

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

.activeCardSummary {
  background: var(--soft);
  border-radius: 10px;
  padding: 12px 14px;
}

.sourceDetail {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.sourceDetail summary {
  color: rgba(28, 51, 40, 0.64);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.sourceDetail .deepDiveBriefing {
  background: var(--soft);
  border-radius: 8px;
  font-size: 12px;
  margin: 10px 0 0;
  max-height: 280px;
  overflow: auto;
  padding: 12px;
}

.briefBullets {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.briefBullets li {
  color: var(--green);
  font-size: 13px;
  line-height: 1.35;
  padding-left: 14px;
  position: relative;
}

.briefBullets li::before {
  background: var(--yellow);
  border-radius: 50%;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  top: 7px;
  width: 5px;
}

.compactEmpty {
  font-size: 13px;
  margin: 0;
}

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

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

.callBrief:first-child {
  border-top: 0;
  padding-top: 0;
}

.callBriefHeader {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.callBriefHeader strong {
  color: var(--green);
  font-size: 13px;
}

.callBriefHeader span {
  color: rgba(28, 51, 40, 0.58);
  font-size: 12px;
  text-align: right;
}

.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: 500;
  letter-spacing: 0;
  margin: 0 0 4px;
}

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

.retentionGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 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: 500;
}

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

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

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

.accessState {
  color: var(--green);
  font-size: 11px;
  font-weight: 500;
}

.resourceLink {
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
}

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

.privacyMetrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 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: 500;
}

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

.privacyColumns {
  grid-template-columns: repeat(auto-fit, minmax(180px, 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(auto-fit, minmax(22px, 22px));
}

.dot {
  align-items: center;
  background: var(--soft);
  border-radius: 50%;
  color: var(--green);
  display: flex;
  font-size: 12px;
  font-weight: 500;
  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-x: hidden;
  overflow-y: 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: 500;
  line-height: 1;
}

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

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

.exceedanceReport p {
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  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: 500;
  line-height: 1.45;
  padding: 12px;
}

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

.profileSnapshot {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 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: 500;
}

.profileSnapshot strong {
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  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: 500;
}

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

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

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

.intelBlock > span {
  color: rgba(28, 51, 40, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.intelBlock.risk {
  background: #fff7e5;
  box-shadow: inset 3px 0 0 var(--yellow);
}

.intelBlock.win {
  background: #eef7f0;
  box-shadow: inset 3px 0 0 #6ea67d;
}

.intelBlock.help {
  background: #fff9ed;
  box-shadow: inset 3px 0 0 #dca23a;
}

.intelBlock.next {
  background: #eef3f0;
  box-shadow: inset 3px 0 0 var(--green);
}

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

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

.intelBrief summary {
  color: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intelBrief[open] summary {
  margin-bottom: 10px;
}

.intelBrief .briefBullets li {
  color: var(--white);
}

.intelNext {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.intelNext > span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intelColumns {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.5fr 1fr 1fr;
}

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

.intelWorkspace {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.8fr);
}

.recentCallWorkspace,
.actionWorkspace {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.workspaceHeading {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.workspaceHeading h3 {
  color: var(--green);
  font-size: 18px;
  margin: 2px 0 0;
}

.workspaceHeading span {
  color: rgba(28, 51, 40, 0.56);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fathomCallCard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}

.fathomCallHeader {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 12px;
}

.fathomCallHeader::-webkit-details-marker {
  display: none;
}

.fathomCallHeader > span:first-child {
  display: grid;
  gap: 3px;
}

.fathomCallHeader small {
  color: rgba(28, 51, 40, 0.54);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.fathomCallHeader strong {
  color: var(--green);
  font-size: 15px;
}

.callExpandLabel {
  background: var(--soft);
  border-radius: 999px;
  color: var(--green);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 9px;
}

.fathomCallCard[open] .callExpandLabel {
  background: var(--green);
  color: var(--white);
}

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

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

.meetingPurpose > span {
  color: rgba(28, 51, 40, 0.56);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meetingPurpose p {
  color: var(--green);
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

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

.callBriefSection h4,
.callTopic h4 {
  color: var(--green);
  font-size: 14px;
  margin: 0;
}

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

.callTopic {
  border-left: 2px solid var(--yellow);
  display: grid;
  gap: 7px;
  padding-left: 10px;
}

.callActionList,
.openActionList {
  display: grid;
  gap: 7px;
}

.callAction {
  align-items: start;
  color: var(--green);
  display: grid;
  gap: 8px;
  grid-template-columns: 16px 1fr;
  text-decoration: none;
}

.callAction > span:last-child {
  display: grid;
  gap: 2px;
}

.callAction strong {
  font-size: 13px;
  line-height: 1.35;
}

.callAction small {
  color: rgba(28, 51, 40, 0.58);
  font-size: 11px;
}

.callActionCheck {
  border: 1.5px solid rgba(28, 51, 40, 0.36);
  border-radius: 4px;
  height: 13px;
  margin-top: 2px;
  width: 13px;
}

.callActionCheck.done {
  background: var(--green);
  border-color: var(--green);
}

.callFooter {
  align-items: center;
  border-top: 1px solid var(--line);
  color: rgba(28, 51, 40, 0.56);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  padding-top: 10px;
}

.callFooter a {
  color: var(--green);
  font-weight: 700;
}

.openActionCard {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  padding-top: 9px;
}

.openActionCard > div {
  display: grid;
  gap: 3px;
}

.openActionCard span,
.openActionCard small {
  color: rgba(28, 51, 40, 0.55);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.openActionCard strong {
  color: var(--green);
  font-size: 13px;
  line-height: 1.35;
}

.actionDoneButton {
  align-items: center;
  background: var(--yellow);
  border: 0;
  border-radius: 50%;
  color: var(--green);
  display: flex;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.recentNotes {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.recentNotes summary {
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

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

.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(auto-fit, minmax(130px, 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: 500;
}

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

.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: 500;
  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(auto-fit, minmax(180px, 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: 500;
}

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

.layoverStats,
.layoverGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 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: 500;
}

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

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

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

.signalList {
  gap: 8px;
}

.signalItem {
  background: var(--white);
  border: 1px solid rgba(28, 51, 40, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.signalItem > strong {
  color: var(--green);
  font-size: 13px;
}

.signalItemHeader {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.signalItemHeader strong {
  color: var(--green);
  font-size: 13px;
}

.signalItemHeader span,
.signalPair > span {
  color: rgba(28, 51, 40, 0.56);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signalPair {
  display: grid;
  gap: 5px;
  grid-template-columns: 44px 1fr;
}

.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: 500;
  padding: 14px;
}

.fileDrop input {
  display: none;
}

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

.scannerQueue {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow-x: hidden;
  overflow-y: 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: 500;
}

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

.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: 500;
  padding: 8px 0;
  text-align: center;
}

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

.clientInsightsDashboard {
  background: linear-gradient(145deg, #ffffff 0%, #fbfcfb 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(28, 51, 40, 0.065);
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
  padding: 20px;
}

.clientInsightsHead,
.insightWidgetHead,
.photoCompareHead,
.insightsCustomizerHead,
.insightsCustomizerActions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.clientInsightsHead h2 {
  font-size: 22px;
  margin: 2px 0 4px;
}

.clientInsightsHead p:last-child,
.insightsCustomizer > p {
  color: rgba(28, 51, 40, 0.62);
  font-size: 13px;
  margin: 0;
}

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

.insightWidget {
  background: #fff;
  border: 1px solid rgba(28, 51, 40, 0.11);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.insightWidgetWide {
  grid-column: 1 / -1;
}

.insightWidgetHead > div {
  display: grid;
  gap: 2px;
}

.insightWidgetHead span,
.photoCompareHead span {
  color: rgba(28, 51, 40, 0.54);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insightWidgetHead h3,
.photoCompareHead h4 {
  font-size: 16px;
  margin: 0;
}

.insightWidgetHead > strong {
  color: var(--green);
  font-size: 22px;
}

.insightWidget > .chartCard {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.insightWidget > small,
.insightWidgetValue,
.photoCompareHead small {
  color: rgba(28, 51, 40, 0.6);
  font-size: 11px;
  margin: 0;
}

.complianceAccuracyLead {
  align-items: baseline;
  display: flex;
  gap: 10px;
}

.complianceAccuracyLead strong {
  color: var(--green);
  font-size: 30px;
}

.complianceAccuracyLead span {
  color: rgba(28, 51, 40, 0.58);
  font-size: 12px;
}

.insightCompliance .complianceRow > div:first-child {
  display: grid;
  gap: 2px;
}

.insightCompliance .complianceRow small {
  color: rgba(28, 51, 40, 0.5);
  font-size: 9px;
}

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

.insightMiniList > span {
  align-items: center;
  background: rgba(28, 51, 40, 0.045);
  border-radius: 10px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 8px 10px;
}

.insightMiniList strong,
.insightMiniList small {
  font-size: 10px;
}

.insightMiniList small {
  color: rgba(28, 51, 40, 0.55);
}

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

.insightMetricTriplet span {
  background: rgba(28, 51, 40, 0.045);
  border-radius: 10px;
  display: grid;
  gap: 3px;
  padding: 10px;
}

.insightMetricTriplet small {
  color: rgba(28, 51, 40, 0.52);
  font-size: 9px;
}

.insightMetricTriplet strong {
  font-size: 11px;
}

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

.insightPhotoPreview img {
  aspect-ratio: 4 / 3;
  border-radius: 11px;
  height: 96px;
  object-fit: cover;
  width: 100%;
}

.insightsCustomizerBackdrop {
  align-items: center;
  background: rgba(10, 20, 15, 0.44);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 1000;
}

.insightsCustomizer {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(10, 20, 15, 0.25);
  display: grid;
  gap: 16px;
  max-height: min(760px, calc(100vh - 40px));
  max-width: 620px;
  overflow: auto;
  padding: 22px;
  width: 100%;
}

.iconClose {
  align-items: center;
  background: rgba(28, 51, 40, 0.07);
  border: 0;
  border-radius: 999px;
  color: var(--green);
  cursor: pointer;
  display: flex;
  font-size: 24px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

.insightsWidgetChoices {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.insightsWidgetChoices label {
  align-items: center;
  background: rgba(28, 51, 40, 0.035);
  border: 1px solid rgba(28, 51, 40, 0.08);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 11px 12px;
}

.insightsWidgetChoices label > span {
  display: grid;
  gap: 2px;
}

.insightsWidgetChoices strong {
  font-size: 13px;
}

.insightsWidgetChoices small {
  color: rgba(28, 51, 40, 0.58);
  font-size: 10px;
}

.insightsWidgetChoices input {
  accent-color: var(--green);
  height: 20px;
  width: 20px;
}

.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: 500;
  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: 500;
  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: flex;
  justify-content: flex-end;
}

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

label {
  display: grid;
  font-size: 13px;
  font-weight: 500;
  gap: 6px;
}

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

.authTitle {
  color: #ffffff;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
  text-align: center;
}

.authCopy {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 4px;
  text-align: center;
}

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

.authTextButton {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  justify-self: center;
  padding: 4px 8px;
}

.authTextButton:hover {
  color: #ffffff;
}

.backButton {
  justify-self: start;
  margin-bottom: -4px;
}

.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: 500;
  padding: 12px;
}

.toast.show {
  display: block;
}

.clientSectionNav {
  background: rgba(28, 51, 40, 0.045);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  margin-bottom: 18px;
  overflow-x: auto;
  padding: 6px;
}

.clientSectionNav button {
  background: transparent;
  border: 0;
  border-radius: 13px;
  color: rgba(28, 51, 40, 0.62);
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
}

.clientSectionNav button strong {
  color: inherit;
  font-size: 13px;
  font-weight: 650;
}

.clientSectionNav button span {
  font-size: 10px;
  font-weight: 500;
}

.clientSectionNav button.active {
  background: var(--green);
  box-shadow: 0 8px 20px rgba(28, 51, 40, 0.16);
  color: var(--white);
}

.clientSectionBody {
  display: grid;
  gap: 16px;
}

.clientSectionCharts {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.dataUnavailable {
  background: rgba(28, 51, 40, 0.045);
  border: 1px dashed rgba(28, 51, 40, 0.2);
  border-radius: 12px;
  display: grid;
  gap: 5px;
  padding: 16px;
}

.dataUnavailable > span {
  color: rgba(28, 51, 40, 0.56);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dataUnavailable strong {
  font-size: 14px;
}

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

.trainerizeDeck {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(28, 51, 40, 0.055);
  display: grid;
  gap: 16px;
  padding: 20px;
}

.trainerizeDeckHead {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.trainerizeDeckHead h2,
.trainerizeDeckHead h3 {
  margin: 0;
}

.trainerizeDeckHead h3 {
  font-size: 15px;
}

.clientDataNotice {
  align-items: center;
  background: rgba(228, 178, 74, 0.12);
  border: 1px solid rgba(178, 128, 26, 0.25);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.clientDataNotice strong {
  color: #7a5710;
  font-size: 12px;
}

.clientDataNotice span {
  color: rgba(80, 56, 10, 0.75);
  font-size: 11px;
}

.parityStatGrid,
.habitHistoryGrid,
.programHistoryGrid,
.milestoneGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.parityStat,
.habitHistoryGrid article,
.programHistoryGrid article,
.milestoneGrid article {
  background: rgba(28, 51, 40, 0.045);
  border: 1px solid rgba(28, 51, 40, 0.08);
  border-radius: 13px;
  display: grid;
  gap: 5px;
  min-height: 94px;
  padding: 14px;
}

.parityStat span,
.habitHistoryGrid article span,
.programHistoryGrid article span,
.milestoneGrid article span {
  color: rgba(28, 51, 40, 0.58);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.parityStat strong,
.habitHistoryGrid article strong {
  font-size: 22px;
}

.parityStat small,
.habitHistoryGrid article small,
.programHistoryGrid article small,
.milestoneGrid article small {
  color: rgba(28, 51, 40, 0.62);
  font-size: 10px;
}

.programHistoryGrid article strong,
.milestoneGrid article strong {
  font-size: 13px;
  line-height: 1.35;
}

.programHistoryGrid article em {
  color: var(--green);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.goalFocus,
.paritySubsection {
  background: rgba(28, 51, 40, 0.025);
  border: 1px solid rgba(28, 51, 40, 0.075);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.goalFocus > strong {
  font-size: 13px;
}

.parityTimeline,
.compactRecordList {
  display: grid;
}

.parityTimelineRow,
.compactRecordList > div {
  align-items: center;
  border-bottom: 1px solid rgba(28, 51, 40, 0.08);
  display: grid;
  gap: 12px;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  padding: 11px 2px;
}

.parityTimelineRow:last-child,
.compactRecordList > div:last-child {
  border-bottom: 0;
}

.parityTimelineRow time,
.compactRecordList time {
  color: rgba(28, 51, 40, 0.56);
  font-size: 10px;
}

.parityTimelineRow div {
  display: grid;
  gap: 2px;
}

.parityTimelineRow div span,
.compactRecordList span {
  color: rgba(28, 51, 40, 0.58);
  font-size: 10px;
}

.parityTimelineRow div strong,
.compactRecordList strong {
  font-size: 12px;
}

.parityTimelineRow > small {
  color: var(--green);
  font-size: 10px;
  font-weight: 650;
  text-transform: capitalize;
}

.calendarConnectionRow {
  align-items: center;
  background: rgba(28, 51, 40, 0.035);
  border-radius: 14px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 14px;
  padding: 14px 16px;
}

.calendarConnectionRow > div {
  display: grid;
  gap: 3px;
}

.calendarConnectionRow strong {
  font-size: 12px;
}

.calendarConnectionRow span {
  color: rgba(28, 51, 40, 0.6);
  font-size: 11px;
}

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

.nutritionHistoryTable,
.biometricTable {
  display: grid;
  overflow-x: auto;
}

.nutritionHistoryRow,
.biometricRow {
  align-items: center;
  border-bottom: 1px solid rgba(28, 51, 40, 0.075);
  display: grid;
  gap: 10px;
  min-width: 650px;
  padding: 10px 2px;
}

.nutritionHistoryRow {
  grid-template-columns: 140px repeat(5, minmax(70px, 1fr));
}

.biometricRow {
  grid-template-columns: 140px repeat(5, minmax(90px, 1fr));
}

.measurementSnapshotIntro {
  color: rgba(28, 51, 40, 0.6);
  font-size: 11px;
  line-height: 1.5;
  margin: 5px 0 0;
  max-width: 620px;
}

.measurementSnapshotGrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.measurementSnapshotCard {
  background: linear-gradient(145deg, rgba(28, 51, 40, 0.045), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(28, 51, 40, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 13px;
  padding: 15px;
}

.measurementSnapshotHead {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.measurementSnapshotHead div {
  display: grid;
  gap: 2px;
}

.measurementSnapshotHead span,
.measurementSnapshotHead small {
  color: rgba(28, 51, 40, 0.55);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.measurementSnapshotHead strong {
  color: var(--green);
  font-size: 15px;
}

.measurementSnapshotHead small {
  background: rgba(255, 189, 89, 0.24);
  border-radius: 999px;
  color: var(--green);
  padding: 6px 8px;
}

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

.measurementPriorityGrid div {
  background: var(--white);
  border: 1px solid rgba(28, 51, 40, 0.07);
  border-radius: 11px;
  display: grid;
  gap: 3px;
  padding: 9px;
}

.measurementPriorityGrid span {
  color: rgba(28, 51, 40, 0.52);
  font-size: 9px;
}

.measurementPriorityGrid strong {
  color: var(--green);
  font-size: 11px;
}

.measurementCaliper {
  color: rgba(28, 51, 40, 0.68);
  font-size: 10px;
  margin: 0;
}

.measurementDetailList {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.measurementDetailList > span {
  align-items: center;
  background: rgba(28, 51, 40, 0.06);
  border-radius: 999px;
  display: flex;
  gap: 5px;
  padding: 6px 8px;
}

.measurementDetailList small {
  color: rgba(28, 51, 40, 0.58);
  font-size: 9px;
}

.measurementDetailList strong {
  color: var(--green);
  font-size: 9px;
}

.nutritionHistoryRow span,
.biometricRow span {
  color: rgba(28, 51, 40, 0.68);
  font-size: 11px;
}

.nutritionHistoryHead,
.biometricHead {
  color: rgba(28, 51, 40, 0.48);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.progressPhotoGrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.progressPhotoGrid article {
  display: grid;
  gap: 5px;
}

.progressPhotoGrid img,
.photoUnavailable {
  aspect-ratio: 3 / 4;
  background: rgba(28, 51, 40, 0.06);
  border-radius: 12px;
  height: auto;
  object-fit: cover;
  overflow: hidden;
  width: 100%;
}

.photoUnavailable {
  align-items: center;
  color: rgba(28, 51, 40, 0.5);
  display: grid;
  font-size: 10px;
  justify-items: center;
  padding: 12px;
  text-align: center;
}

.progressPhotoGrid strong {
  font-size: 12px;
  text-transform: capitalize;
}

.progressPhotoGrid span,
.progressPhotoGrid small {
  color: rgba(28, 51, 40, 0.6);
  font-size: 10px;
}

.progressPhotoComparison {
  background: rgba(28, 51, 40, 0.035);
  border: 1px solid rgba(28, 51, 40, 0.09);
  border-radius: 16px;
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
}

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

.photoCompareControls label {
  display: grid;
  gap: 5px;
}

.photoCompareControls label > span {
  color: rgba(28, 51, 40, 0.55);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.photoCompareControls select {
  background: #fff;
  border: 1px solid rgba(28, 51, 40, 0.13);
  border-radius: 10px;
  color: var(--green);
  font: inherit;
  font-size: 12px;
  padding: 10px;
  width: 100%;
}

.photoCompareGrid figure {
  display: grid;
  gap: 7px;
  margin: 0;
  min-width: 0;
}

.photoCompareGrid img {
  aspect-ratio: 3 / 4;
  border-radius: 13px;
  height: min(520px, 48vw);
  object-fit: cover;
  width: 100%;
}

.photoCompareGrid figcaption {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.photoCompareGrid figcaption span {
  background: var(--yellow);
  border-radius: 999px;
  color: #16261f;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  text-transform: uppercase;
}

.photoCompareGrid figcaption strong {
  font-size: 12px;
  text-transform: capitalize;
}

.photoCompareGrid figcaption small {
  color: rgba(28, 51, 40, 0.58);
  font-size: 10px;
}

@media (max-width: 720px) {
  .measurementPriorityGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insightsWidgetGrid,
  .photoCompareControls,
  .photoCompareGrid {
    grid-template-columns: 1fr;
  }

  .clientInsightsHead,
  .insightsCustomizerActions {
    align-items: stretch;
    flex-direction: column;
  }

  .photoCompareGrid img {
    height: auto;
  }
}

/* Shared client plan */
.clientPlanDeck,
.nutritionTargetDeck,
.clientCalendarDeck {
  display: grid;
  gap: 22px;
}

.clientPlanHead,
.clientCalendarHead {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.clientPlanHead p,
.clientCalendarHead p {
  color: rgba(28, 51, 40, 0.58);
  margin: 5px 0 0;
}

.clientPlanActions,
.clientCalendarControls {
  display: flex;
  gap: 8px;
}

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

.clientPlanForm {
  background: #f7f7f3;
  border: 1px solid rgba(28, 51, 40, 0.08);
  border-radius: 24px;
  display: grid;
  gap: 13px;
  padding: 18px;
}

.clientPlanFormHead,
.clientPlanFieldRow,
.nutritionTargetForm {
  display: grid;
  gap: 10px;
}

.clientPlanFormHead {
  align-items: center;
  grid-template-columns: 1fr auto;
}

.clientPlanFormHead span,
.clientPlanForm label > span,
.nutritionTargetForm label > span {
  color: rgba(28, 51, 40, 0.53);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.clientPlanForm h3,
.clientPlanSection h3 {
  margin: 2px 0 0;
}

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

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

.clientPlanForm input,
.clientPlanForm select,
.clientPlanForm textarea,
.nutritionTargetForm input {
  background: #fff;
  border: 1px solid rgba(28, 51, 40, 0.11);
  border-radius: 13px;
  color: var(--green);
  font: inherit;
  padding: 11px 12px;
  width: 100%;
}

.clientPlanForm input:focus,
.clientPlanForm select:focus,
.clientPlanForm textarea:focus,
.nutritionTargetForm input:focus {
  border-color: var(--yellow);
  outline: 3px solid rgba(255, 189, 89, 0.18);
}

.habitDayPicker {
  border: 0;
  display: flex;
  gap: 7px;
  margin: 0;
  padding: 0;
}

.habitDayPicker legend {
  color: rgba(28, 51, 40, 0.53);
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.habitDayPicker label input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.habitDayPicker label span {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(28, 51, 40, 0.1);
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.habitDayPicker label input:checked + span {
  background: var(--green);
  color: #fff;
}

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

.clientGoalGrid,
.clientHabitGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.clientGoalPill,
.clientHabitPill {
  background: #fff;
  border: 1px solid rgba(28, 51, 40, 0.09);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(28, 51, 40, 0.06);
  display: grid;
  gap: 10px;
  padding: 16px;
}

.clientGoalPill {
  align-items: center;
  grid-template-columns: 1fr auto auto;
}

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

.clientGoalPill h4,
.clientHabitPill h4,
.clientHabitPill p {
  margin: 0;
}

.clientGoalPill span,
.clientGoalPill small,
.clientHabitPill small,
.clientHabitPill p,
.clientHabitPill time {
  color: rgba(28, 51, 40, 0.55);
  font-size: 11px;
}

.clientGoalPill > div:last-child,
.clientHabitPill > div:nth-last-of-type(1) {
  display: flex;
  gap: 5px;
}

.clientGoalPill button,
.clientHabitPill button,
.textButton {
  background: #f1f3ee;
  border: 0;
  border-radius: 999px;
  color: var(--green);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 11px;
}

.habitPillStatus i {
  background: #38a75a;
  border-radius: 50%;
  display: block;
  height: 12px;
  margin-top: 4px;
  width: 12px;
}

.clientHabitPill > strong {
  font-size: 24px;
  text-align: center;
}

.clientHabitPill > strong span {
  color: rgba(28, 51, 40, 0.48);
  display: block;
  font-size: 9px;
}

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

.nutritionTargetPills > div {
  background: #f7f7f3;
  border-radius: 18px;
  display: grid;
  gap: 3px;
  padding: 15px;
}

.nutritionTargetPills span,
.nutritionTargetPills small {
  color: rgba(28, 51, 40, 0.53);
  font-size: 10px;
}

.nutritionTargetPills strong {
  font-size: 24px;
}

.nutritionTargetForm {
  align-items: end;
  grid-template-columns: repeat(5, minmax(100px, 1fr)) auto;
}

.clientCalendarWeekdays,
.clientCalendarGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.clientCalendarWeekdays span {
  color: rgba(28, 51, 40, 0.48);
  font-size: 10px;
  font-weight: 800;
  padding: 0 8px 8px;
  text-align: center;
  text-transform: uppercase;
}

.clientCalendarGrid {
  border-left: 1px solid rgba(28, 51, 40, 0.09);
  border-top: 1px solid rgba(28, 51, 40, 0.09);
}

.clientCalendarDay {
  background: #fff;
  border-bottom: 1px solid rgba(28, 51, 40, 0.09);
  border-right: 1px solid rgba(28, 51, 40, 0.09);
  min-height: 132px;
  padding: 9px;
}

.clientCalendarDay.outside {
  background: #fafaf7;
  opacity: 0.55;
}

.clientCalendarDay.today {
  box-shadow: inset 0 0 0 2px var(--yellow);
}

.clientCalendarDate {
  align-items: center;
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

.clientCalendarDate span {
  color: rgba(28, 51, 40, 0.44);
  font-size: 9px;
  text-transform: uppercase;
}

.clientCalendarDate strong {
  align-items: center;
  background: #f1f3ee;
  border-radius: 50%;
  display: flex;
  font-size: 11px;
  height: 25px;
  justify-content: center;
  width: 25px;
}

.clientCalendarEvents {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.calendarEvent {
  align-items: center;
  background: #f6f7f3;
  border-radius: 999px;
  display: flex;
  font-size: 9px;
  gap: 5px;
  overflow: hidden;
  padding: 5px 7px;
}

.calendarEvent i {
  background: var(--yellow);
  border-radius: 50%;
  flex: 0 0 6px;
  height: 6px;
  width: 6px;
}

.calendarEvent.meal i { background: #d54a41; }
.calendarEvent.workout i { background: #367fc2; }
.calendarEvent.form i { background: #9b68c9; }
.calendarEvent.done i { background: #38a75a; }

.calendarEvent span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendarNavButton,
.calendarTodayButton {
  background: #f1f3ee;
  border: 0;
  border-radius: 999px;
  color: var(--green);
  cursor: pointer;
  font-weight: 800;
  min-width: 40px;
  padding: 10px 14px;
}

.activityItemPremium {
  background: #f7f7f3;
  border: 0;
  border-radius: 20px;
  grid-template-columns: 40px minmax(180px, 1fr) minmax(140px, auto) minmax(155px, auto);
  padding: 12px 14px;
}

.activityTypeIcon {
  align-items: center;
  background: var(--green);
  border-radius: 13px;
  color: #fff;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.activityItemCopy {
  min-width: 0;
}

.activityItemCopy h3 {
  font-size: 14px;
  margin: 4px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activityTypePill,
.activityStatus,
.activityDatePill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  padding: 7px 10px;
}

.activityTypePill {
  background: rgba(28, 51, 40, 0.08);
  padding: 4px 8px;
}

.activityStatus {
  color: rgba(28, 51, 40, 0.62);
  justify-self: end;
}

.activityDatePill {
  background: #fff;
  box-shadow: 0 5px 16px rgba(28, 51, 40, 0.07);
  justify-self: end;
  white-space: nowrap;
}

.dashboardActivityPreview .activity {
  max-height: 280px;
}

.dashboardActivityPreview .activityItemPremium {
  grid-template-columns: 34px 1fr auto;
  padding: 9px 10px;
}

.dashboardActivityPreview .activityTypeIcon {
  border-radius: 11px;
  height: 32px;
  width: 32px;
}

.dashboardActivityPreview .activityStatus {
  display: none;
}

@media (max-width: 1100px) {
  .clientPlanEditorGrid,
  .nutritionTargetForm {
    grid-template-columns: 1fr 1fr;
  }

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

  .clientCalendarDeck {
    overflow-x: auto;
  }

  .clientCalendarWeekdays,
  .clientCalendarGrid {
    min-width: 940px;
  }
}

@media (max-width: 720px) {
  .clientPlanHead,
  .clientCalendarHead {
    align-items: stretch;
    flex-direction: column;
  }

  .clientPlanEditorGrid,
  .clientPlanFieldRow,
  .clientPlanFieldRow.two,
  .nutritionTargetForm,
  .nutritionTargetPills {
    grid-template-columns: 1fr;
  }

  .clientGoalPill,
  .clientHabitPill {
    grid-template-columns: 1fr;
  }

  .activityItemPremium,
  .dashboardActivityPreview .activityItemPremium {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .activityStatus,
  .activityDatePill {
    grid-column: 2;
    justify-self: start;
  }
}

/* Lead Command Center */
.leadCommandCenter {
  display: grid;
  gap: 22px;
  min-width: 0;
}

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

.leadRefreshButton > span:first-child {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
}

.leadRefreshButton.refreshing > span:first-child {
  animation: leadRefreshSpin 0.75s linear infinite;
}

@keyframes leadRefreshSpin {
  to { transform: rotate(360deg); }
}

.leadExecutionHero {
  align-items: center;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 189, 89, 0.2), transparent 34%),
    var(--green);
  border-radius: 26px;
  color: var(--white);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 190px;
  overflow: hidden;
  padding: 28px;
}

.leadDailyTargets {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  min-width: 0;
}

.leadExecutionTarget {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
}

.leadCompletionRing {
  align-items: center;
  background: conic-gradient(var(--yellow) var(--lead-progress), rgba(255, 255, 255, 0.13) 0);
  border-radius: 50%;
  display: flex;
  height: 124px;
  justify-content: center;
  position: relative;
  width: 124px;
}

.leadCompletionRing::after {
  background: var(--green);
  border-radius: inherit;
  content: "";
  inset: 10px;
  position: absolute;
}

.leadCompletionRing span {
  display: grid;
  gap: 2px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.leadCompletionRing strong {
  font-size: 28px;
}

.leadCompletionRing small,
.leadExecutionCopy p,
.leadGameStats span {
  color: rgba(255, 255, 255, 0.68);
}

.leadExecutionCopy {
  display: grid;
  gap: 6px;
}

.leadExecutionCopy h2,
.leadExecutionCopy p {
  margin: 0;
}

.leadExecutionCopy .eyebrow {
  color: var(--yellow);
}

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

.leadGameStats div {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.leadGameStats strong {
  font-size: 20px;
}

.leadScorecardSection,
.leadDataPanel,
.leadQueuePanel,
.leadCallPerformance,
.leadBoardPanel,
.leadStageFocusPanel,
.leadArchivePanel,
.leadContentPanel,
.leadIntakeCard,
.leadMetricDrilldown {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(28, 51, 40, 0.055);
  padding: 22px;
}

.leadScorecardHeader,
.leadDataHeader,
.leadBoardToolbar {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.leadScorecardHeader h2,
.leadScorecardHeader p,
.leadDataHeader h2,
.leadDataHeader p,
.leadBoardToolbar h2,
.leadBoardToolbar p {
  margin: 0;
}

.leadScorecardHeader > div,
.leadDataHeader > div,
.leadBoardToolbar > div:first-child {
  display: grid;
  gap: 4px;
}

.leadScorecardHeader select,
.leadDataHeader select,
.leadSearchField input,
.leadStageSelect select {
  background: #f7f7f3;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 44px;
  padding: 0 12px;
}

.leadBoardTools {
  align-items: center;
  display: flex;
  gap: 10px;
}

.leadArchiveDropZone {
  align-items: center;
  background: #f7f7f3;
  border: 1px dashed rgba(184, 50, 44, 0.42);
  border-radius: 999px;
  color: #1c3328;
  display: flex;
  gap: 9px;
  min-height: 44px;
  padding: 6px 15px 6px 7px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.leadArchiveDropZone > span {
  align-items: center;
  background: rgba(184, 50, 44, 0.1);
  border-radius: 50%;
  color: #b8322c;
  display: inline-flex;
  font-size: 18px;
  font-weight: 760;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.leadArchiveDropZone > div {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.leadArchiveDropZone strong {
  font-size: 12px;
  font-weight: 800;
}

.leadArchiveDropZone small {
  color: rgba(28, 51, 40, 0.54);
  font-size: 10px;
  font-weight: 650;
}

.leadArchiveDropZone.dragOver {
  background: #b8322c;
  border-color: #b8322c;
  box-shadow: 0 10px 24px rgba(184, 50, 44, 0.24);
  color: #ffffff;
  transform: translateY(-1px) scale(1.02);
}

.leadArchiveDropZone.dragOver > span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.leadArchiveDropZone.dragOver small {
  color: rgba(255, 255, 255, 0.78);
}

.leadMetricGrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  min-width: 0;
}

.leadMetricCard {
  background: #f7f7f3;
  border: 1px solid transparent;
  border-radius: 18px;
  color: var(--ink);
  display: grid;
  gap: 5px;
  min-height: 150px;
  padding: 17px;
  text-align: left;
}

.leadMetricCard:hover,
.leadMetricCard:focus-visible {
  border-color: var(--green);
}

.leadMetricCard > span,
.leadMetricCard small {
  color: rgba(28, 51, 40, 0.58);
}

.leadMetricCard strong {
  font-size: 27px;
}

.leadMetricCard em {
  align-self: end;
  color: rgba(28, 51, 40, 0.64);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  text-transform: uppercase;
}

.leadMetricStatus {
  align-items: center;
  align-self: end;
  display: flex;
  gap: 7px;
}

.leadMetricStatus i {
  background: rgba(28, 51, 40, 0.28);
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.leadMetricCard.in_target .leadMetricStatus i,
.leadMetricCard.above .leadMetricStatus i {
  background: #23945a;
  box-shadow: 0 0 0 4px rgba(35, 148, 90, 0.11);
}

.leadMetricCard.below .leadMetricStatus i {
  background: #d34444;
  box-shadow: 0 0 0 4px rgba(211, 68, 68, 0.1);
}

.leadMetricCard.in_target {
  background: rgba(50, 195, 108, 0.1);
}

.leadMetricCard.below {
  background: rgba(255, 77, 77, 0.08);
}

.leadMetricCard.above {
  background: rgba(50, 195, 108, 0.07);
}

.leadMetricCard.not_tracked {
  background: rgba(28, 51, 40, 0.045);
  cursor: default;
  opacity: 0.78;
}

.leadDataPanel {
  display: grid;
  gap: 18px;
}

.leadFollowUpEffectiveness {
  background: #f7f7f3;
  border: 1px solid rgba(28, 51, 40, 0.07);
  border-radius: 20px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.leadFollowUpEffectiveness .panelTitle {
  margin: 0;
}

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

.leadFollowUpEffectivenessGrid article {
  background: var(--white);
  border: 1px solid rgba(28, 51, 40, 0.07);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  padding: 13px 14px;
}

.leadFollowUpEffectivenessGrid article.needsAttention {
  background: rgba(211, 68, 68, 0.07);
  border-color: rgba(211, 68, 68, 0.13);
}

.leadFollowUpEffectivenessGrid span,
.leadFollowUpEffectivenessGrid small {
  color: rgba(28, 51, 40, 0.55);
  font-size: 11px;
}

.leadFollowUpEffectivenessGrid strong {
  font-size: 24px;
}

.leadReplyByTouch {
  background: #f7f7f3;
  border: 1px solid rgba(28, 51, 40, 0.07);
  border-radius: 20px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.leadReplyByTouch .panelTitle {
  margin: 0;
}

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

.leadReplyTouchGrid article {
  background: var(--white);
  border: 1px solid rgba(28, 51, 40, 0.07);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
}

.leadReplyTouchGrid span,
.leadReplyTouchGrid small,
.leadReplyTouchNote {
  color: rgba(28, 51, 40, 0.55);
  font-size: 11px;
}

.leadReplyTouchGrid strong {
  font-size: 20px;
}

.leadReplyTouchNote {
  margin: 0;
}

.leadDataHeader {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.leadFunnelPanel {
  background: #f7f7f3;
  border: 1px solid rgba(28, 51, 40, 0.07);
  border-radius: 20px;
  padding: 20px;
}

.leadFunnelChart {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.leadFunnelChart article {
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(28, 51, 40, 0.07);
  border-radius: 15px;
  display: grid;
  gap: 12px 18px;
  grid-template-columns: minmax(220px, 1fr) auto;
  overflow: hidden;
  padding: 14px 15px 12px;
}

.leadFunnelChart article > div:first-child {
  align-items: center;
  display: grid;
  gap: 2px 10px;
  grid-template-columns: 26px 1fr;
}

.leadFunnelChart article > div:first-child > span {
  align-items: center;
  background: rgba(28, 51, 40, 0.075);
  border-radius: 50%;
  display: flex;
  font-size: 11px;
  font-weight: 760;
  grid-row: 1 / span 2;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.leadFunnelChart article small,
.leadFunnelMeasure span {
  color: rgba(28, 51, 40, 0.52);
  font-size: 11px;
}

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

.leadFunnelMeasure strong {
  font-size: 24px;
}

.leadFunnelBar {
  background: rgba(28, 51, 40, 0.07);
  border-radius: 999px;
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
}

.leadFunnelBar span {
  background: linear-gradient(90deg, var(--green), #3aa56f);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.leadMetricDrilldown {
  box-shadow: none;
  margin-top: 14px;
}

.leadMetricDrilldown > div:last-child {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.leadMetricDrilldown section {
  display: grid;
  gap: 8px;
}

.leadMetricDrilldown section button {
  background: #f7f7f3;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  text-align: left;
}

.leadMetricDrilldown section button span {
  color: rgba(28, 51, 40, 0.54);
}

.leadCommandTabs {
  background: #f2f3ef;
  border-radius: 15px;
  display: flex;
  gap: 4px;
  padding: 5px;
  width: max-content;
}

.leadCommandTabs button {
  background: transparent;
  border: 0;
  border-radius: 11px;
  color: rgba(28, 51, 40, 0.65);
  font-weight: 680;
  min-height: 40px;
  padding: 0 16px;
}

.leadCommandTabs button.active {
  background: var(--white);
  box-shadow: 0 5px 15px rgba(28, 51, 40, 0.08);
  color: var(--green);
}

.leadContentPanel {
  display: grid;
  gap: 24px;
}

.leadContentHeader {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.leadContentHeader > div:first-child {
  display: grid;
  gap: 4px;
}

.leadContentHeader h2,
.leadContentHeader p,
.leadContentHistoryHeader h3,
.leadContentHistoryHeader p {
  margin: 0;
}

.leadContentHeader > div:first-child > p:last-child {
  color: rgba(28, 51, 40, 0.6);
  max-width: 660px;
}

.leadContentDateControl {
  display: grid;
  gap: 6px;
  min-width: min(100%, 300px);
}

.leadContentDateControl label,
.leadContentFieldset legend {
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
}

.leadContentDateControl > div {
  display: flex;
  gap: 8px;
}

.leadContentDateControl input {
  background: #f7f7f3;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  flex: 1;
  min-height: 46px;
  padding: 0 13px;
}

.leadTodayButton {
  background: #1c3328;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-weight: 760;
  padding: 0 18px;
}

.leadContentForm {
  background: #f7f7f3;
  border: 1px solid rgba(28, 51, 40, 0.07);
  border-radius: 20px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px;
}

.leadContentFieldset {
  border: 0;
  display: grid;
  gap: 10px;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.leadContentTypeFieldset {
  grid-column: 1 / -1;
}

.leadCountPills,
.leadChoicePills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.leadContentPill,
.leadContentChoice {
  background: var(--white);
  border: 1px solid rgba(28, 51, 40, 0.1);
  border-radius: 999px;
  color: var(--green);
  font-weight: 730;
  min-height: 40px;
  padding: 0 16px;
}

.leadContentPill {
  min-width: 46px;
}

.leadContentPill.selected,
.leadContentChoice.selected {
  background: #1c3328;
  border-color: #1c3328;
  box-shadow: 0 8px 18px rgba(28, 51, 40, 0.14);
  color: var(--white);
}

.leadContentSave {
  border-radius: 999px;
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 44px;
  padding-inline: 24px;
}

.leadContentHistoryHeader {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
}

.leadContentHistoryHeader > div {
  display: grid;
  gap: 3px;
}

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

.leadContentDay {
  align-items: center;
  background: #f7f7f3;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(170px, 1fr) minmax(90px, auto) minmax(150px, auto) minmax(90px, auto);
  min-height: 48px;
  padding: 8px 16px;
  text-align: left;
}

.leadContentDay:hover,
.leadContentDay:focus-visible,
.leadContentDay.selected {
  background: rgba(28, 51, 40, 0.06);
  border-color: rgba(28, 51, 40, 0.13);
}

.leadContentDay span,
.leadContentDay em {
  color: rgba(28, 51, 40, 0.62);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

.leadContentDay em {
  text-align: right;
}

.leadContentDay > span:last-child {
  text-align: right;
}

.leadQueueList,
.leadArchiveList {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.leadCoachPrompt {
  align-items: center;
  background: linear-gradient(135deg, rgba(28, 51, 40, 0.055), rgba(255, 189, 89, 0.12));
  border: 1px solid rgba(28, 51, 40, 0.08);
  border-radius: 16px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.leadCoachPrompt > div {
  display: grid;
  gap: 3px;
}

.leadCoachPrompt span {
  color: rgba(28, 51, 40, 0.5);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.leadCoachPrompt p {
  color: rgba(28, 51, 40, 0.62);
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
  max-width: 720px;
  text-align: right;
}

.leadCallPerformance {
  margin-top: 18px;
}

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

.leadCallStats > div {
  background: #f7f7f3;
  border-radius: 14px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.leadCallStats span {
  color: rgba(28, 51, 40, 0.52);
  font-size: 11px;
}

.leadCallStats strong {
  font-size: 23px;
}

.leadQueueItem {
  align-items: center;
  background: #f8f8f5;
  border: 1px solid transparent;
  border-radius: 16px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(200px, 1.1fr) minmax(130px, 0.7fr) auto;
  padding: 14px;
}

.leadQueueItem.overdue {
  background: rgba(255, 77, 77, 0.055);
  border-color: rgba(255, 77, 77, 0.18);
}

.leadIdentity {
  background: transparent;
  border: 0;
  color: var(--ink);
  display: grid;
  gap: 3px;
  padding: 0;
  text-align: left;
}

.leadIdentity span,
.leadDueBlock span {
  color: rgba(28, 51, 40, 0.55);
  font-size: 12px;
}

.leadDueBlock {
  display: grid;
  gap: 5px;
}

.leadAttemptLabel {
  color: rgba(28, 51, 40, 0.5) !important;
  font-size: 10px !important;
  font-weight: 760;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

.leadDuePill {
  background: rgba(28, 51, 40, 0.08);
  border-radius: 999px;
  color: rgba(28, 51, 40, 0.68) !important;
  display: inline-flex;
  font-size: 9px !important;
  font-weight: 780;
  line-height: 1;
  padding: 5px 8px;
  width: max-content;
}

.leadDuePill.overdue {
  background: rgba(211, 68, 68, 0.11);
  color: #a13232 !important;
}

.leadDuePill.dueToday {
  background: rgba(255, 189, 89, 0.22);
  color: #8b5900 !important;
}

.leadDuePill.dueLater {
  background: rgba(78, 120, 165, 0.11);
  color: #3f668f !important;
}

.leadDuePill.upcoming {
  background: rgba(35, 148, 90, 0.1);
  color: #227a4c !important;
}

.leadDuePill.missing {
  background: rgba(255, 189, 89, 0.2);
  color: #7f5200 !important;
}

.leadRecommendation {
  line-height: 1.35;
}

.leadQuickActions {
  display: flex;
  gap: 7px;
}

.leadQueueOpenButton {
  background: #1c3328;
  border: 1px solid #1c3328;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
}

.leadQueueOpenButton:hover,
.leadQueueOpenButton:focus-visible {
  background: #28483a;
  border-color: #28483a;
  color: #ffffff;
}

.leadBoard {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 0;
  overflow: visible;
}

.leadStageColumn {
  background: #f5f6f2;
  border: 1px solid rgba(28, 51, 40, 0.08);
  border-radius: 18px;
  min-height: 280px;
  padding: 12px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.leadStageColumn.dragOver {
  background: rgba(255, 189, 89, 0.11);
  border-color: rgba(210, 139, 10, 0.45);
  box-shadow: inset 0 0 0 2px rgba(255, 189, 89, 0.2);
}

.leadHotStage {
  grid-column: 1 / -1;
  min-height: 220px;
}

.leadHotStage .leadStageCards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.leadStageOpen {
  align-items: flex-start;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 4px 3px 12px;
  text-align: left;
  width: 100%;
}

.leadStageOpen:hover strong,
.leadStageOpen:focus-visible strong {
  color: #b87400;
}

.leadStageOpen div {
  display: grid;
  gap: 2px;
}

.leadStageOpen span,
.leadBoardHint,
.leadEmptyStage {
  color: rgba(28, 51, 40, 0.5);
  font-size: 11px;
}

.leadStageOpen em {
  align-items: center;
  background: rgba(28, 51, 40, 0.08);
  border-radius: 50%;
  display: flex;
  font-size: 11px;
  font-style: normal;
  height: 25px;
  justify-content: center;
  width: 25px;
}

.leadStageFocusPanel {
  display: grid;
  gap: 18px;
}

.leadStageFocusHeader {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.leadStageFocusHeader > div {
  display: grid;
  gap: 4px;
}

.leadStageFocusHeader h2,
.leadStageFocusHeader p {
  margin: 0;
}

.leadStageFocusHeader button {
  margin-bottom: 10px;
  width: max-content;
}

.leadStageFocusList {
  display: grid;
  gap: 9px;
}

.leadStageFocusList > article {
  align-items: center;
  background: #f7f7f3;
  border: 1px solid rgba(28, 51, 40, 0.07);
  border-radius: 15px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(150px, 1.1fr) minmax(90px, 0.5fr) minmax(160px, 1fr) minmax(150px, 0.8fr) minmax(120px, 0.8fr) auto;
  padding: 14px;
}

.leadStageFocusMeta {
  display: grid;
  gap: 3px;
}

.leadStageFocusMeta span {
  color: rgba(28, 51, 40, 0.48);
  font-size: 10px;
  font-weight: 720;
  text-transform: uppercase;
}

.leadStageFocusMeta strong {
  font-size: 12px;
}

.leadStageFocusTags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.leadStageFocusTags span {
  background: rgba(28, 51, 40, 0.07);
  border-radius: 999px;
  color: rgba(28, 51, 40, 0.67);
  font-size: 9px;
  font-weight: 720;
  padding: 5px 7px;
}

.leadDetailTags {
  margin: 2px 0;
}

.leadStageCards {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 420px;
  overflow-y: auto;
  padding: 1px 2px 2px 1px;
  scrollbar-color: rgba(28, 51, 40, 0.18) transparent;
  scrollbar-width: thin;
}

.leadBoardCard {
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(28, 51, 40, 0.1);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(28, 51, 40, 0.035);
  cursor: grab;
  display: flex;
  gap: 5px;
  min-width: 0;
  padding: 7px 9px;
  position: relative;
  transition: border-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.leadBoardCard:hover {
  border-color: rgba(28, 51, 40, 0.2);
  box-shadow: 0 5px 14px rgba(28, 51, 40, 0.07);
}

.leadBoardCard.dragging {
  cursor: grabbing;
  opacity: 0.45;
  transform: scale(0.98);
}

.leadBoardCard > button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}

.leadCardPerson {
  align-items: baseline;
  display: flex;
  gap: 5px;
  min-width: 0;
}

.leadCardPerson strong {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.1;
}

.leadCardPerson span {
  color: rgba(28, 51, 40, 0.52);
  font-size: 9px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leadBoardCard time {
  color: rgba(28, 51, 40, 0.48);
  font-size: 9px;
  font-weight: 680;
  white-space: nowrap;
}

.leadBoardCard time.cadence {
  background: rgba(28, 51, 40, 0.07);
  border-radius: 999px;
  color: rgba(28, 51, 40, 0.72);
  padding: 4px 6px;
}

.leadBoardCard time.cadence.overdue {
  background: rgba(211, 68, 68, 0.11);
  color: #a13232;
}

.leadBoardCard time.cadence.dueToday {
  background: rgba(255, 189, 89, 0.22);
  color: #8b5900;
}

.leadBoardCard time.cadence.dueLater {
  background: rgba(78, 120, 165, 0.11);
  color: #3f668f;
}

.leadBoardCard time.cadence.upcoming {
  background: rgba(35, 148, 90, 0.1);
  color: #227a4c;
}

.leadBoardCard .leadSignal {
  background: #32c36c;
  border: 2px solid var(--white);
  border-radius: 50%;
  height: 8px;
  position: absolute;
  right: 3px;
  top: 2px;
  width: 8px;
}

.leadArchiveList article {
  align-items: center;
  background: #f7f7f3;
  border-radius: 14px;
  display: grid;
  gap: 15px;
  grid-template-columns: minmax(180px, 0.8fr) 1fr auto;
  padding: 14px;
}

.leadArchiveList p {
  color: rgba(28, 51, 40, 0.62);
  margin: 0;
}

.leadArchiveHeader {
  align-items: end;
  gap: 18px;
}

.leadArchiveTools {
  align-items: center;
  display: flex;
  gap: 10px;
}

.leadArchiveTools .leadSearchField {
  min-width: min(280px, 45vw);
}

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

.leadIntakeCard:last-child {
  grid-column: 1 / -1;
}

.leadAutomationList {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.leadAutomationList li {
  background: #f7f7f3;
  border-radius: 12px;
  display: grid;
  gap: 3px;
  padding: 12px;
}

.leadAutomationList span {
  color: rgba(28, 51, 40, 0.62);
  font-size: 12px;
}

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

.leadImportPreview > div {
  display: grid;
  gap: 6px;
}

.leadImportPreview span {
  background: #f7f7f3;
  border-radius: 9px;
  color: rgba(28, 51, 40, 0.66);
  font-size: 12px;
  padding: 8px 10px;
}

.leadImportPreview span.invalid {
  background: rgba(255, 77, 77, 0.08);
  color: #8c2f2f;
}

.toggleField {
  align-items: center;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between;
}

.toggleField input {
  height: 22px;
  width: 42px;
}

.leadDrawer .drawerPanel {
  animation: leadDrawerSlideIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  max-width: 660px;
  padding-top: 24px;
  position: relative;
  width: min(660px, 100%);
}

.leadDrawer.open {
  animation: leadDrawerBackdropIn 260ms ease-out both;
}

@keyframes leadDrawerBackdropIn {
  from { background: rgba(28, 51, 40, 0); }
  to { background: rgba(28, 51, 40, 0.28); }
}

@keyframes leadDrawerSlideIn {
  from { opacity: 0.55; transform: translate3d(72px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.leadDrawer .drawerClose {
  align-items: center;
  background: rgba(28, 51, 40, 0.065);
  border: 0;
  border-radius: 50%;
  color: var(--green);
  display: flex;
  font-size: 20px;
  font-weight: 450;
  height: 34px;
  justify-content: center;
  left: 24px;
  line-height: 1;
  min-height: 34px;
  padding: 0 0 2px;
  position: absolute;
  top: 22px;
  width: 34px;
  z-index: 2;
}

.leadDrawer .drawerClose:hover,
.leadDrawer .drawerClose:focus-visible {
  background: rgba(28, 51, 40, 0.12);
}

.leadCreatePanel {
  padding: 24px 24px 34px !important;
}

.leadCreateHeader {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.leadCreateHeader h2 {
  font-size: 24px;
  margin: 0;
}

.leadCreateHeader .drawerClose {
  flex: 0 0 auto;
  left: auto;
  position: static;
  top: auto;
}

.leadDateField {
  display: grid;
  gap: 6px;
}

.leadDateField > label {
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
}

.leadDateField > div {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.leadDetailDateField {
  background: #f7f7f3;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.leadDetailDateField > small {
  color: rgba(28, 51, 40, 0.55);
  font-size: 11px;
}

.leadTodayButton {
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--white);
  font-weight: 760;
  min-height: 44px;
  padding: 0 18px;
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.leadTodayButton:hover,
.leadTodayButton:focus-visible,
.leadTodayButton.selected {
  background: #244c3a;
  box-shadow: 0 7px 18px rgba(28, 51, 40, 0.18);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .leadDrawer.open,
  .leadDrawer .drawerPanel,
  .leadTimelineContent,
  .leadArchiveConfirm {
    animation: none;
  }

  .leadTimelineArrow {
    transition: none;
  }
}

/* Back End Data */
.newActionSpacer {
  height: 64px;
  margin: 18px 20px 14px;
}

.businessDataPage {
  display: grid;
  gap: 22px;
}

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

.businessMissionPanel,
.businessFinancePanel,
.businessInputPanel,
.businessFunnelPanel,
.businessTrendsPanel,
.businessDisclosurePanel {
  background: #fff;
  border: 1px solid #dce3de;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(28, 51, 40, 0.06);
}

.businessMissionPanel {
  align-items: center;
  background: linear-gradient(118deg, #1c3328 0%, #294936 58%, #4a5130 100%);
  border-color: rgba(255, 190, 87, 0.45);
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 152px;
  padding: 28px 32px;
}

.businessMissionPanel .eyebrow {
  color: #ffbe57;
}

.businessMissionPanel h2 {
  color: #fff;
  font-size: clamp(25px, 3vw, 38px);
  margin: 4px 0 8px;
}

.businessMissionPanel p:last-child {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.businessMissionProgress {
  display: grid;
  gap: 10px;
  min-width: min(390px, 42vw);
}

.businessMissionProgressTop,
.businessMissionProgressMeta {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.businessMissionProgressTop strong {
  color: #fff;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.businessMissionProgressTop span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

.businessMissionTrack {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: inset 0 1px 3px rgba(10, 27, 19, 0.38);
  height: 13px;
  overflow: hidden;
  position: relative;
}

.businessMissionTrack span {
  background: linear-gradient(90deg, #ffb94f 0%, #ffd58c 70%, #fff0c7 100%);
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(255, 190, 87, 0.46);
  display: block;
  height: 100%;
  min-width: 13px;
  position: relative;
  transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.businessMissionTrack span::after {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  content: "";
  height: 7px;
  position: absolute;
  right: 3px;
  top: 2px;
  width: 7px;
}

.businessMissionProgressMeta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 750;
}

.businessMissionProgressMeta small {
  color: rgba(255, 255, 255, 0.58);
}

.businessFinancePanel,
.businessInputPanel,
.businessFunnelPanel,
.businessTrendsPanel {
  padding: 26px;
}

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

.businessPanelHeader h2 {
  margin: 4px 0 0;
}

.businessSyncBadge {
  background: #f1f3f1;
  border-radius: 999px;
  color: #67776e;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 13px;
}

.businessSyncBadge.connected {
  background: #e3f4e9;
  color: #1f6d40;
}

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

.businessMoneyGrid article,
.businessInputGrid article,
.businessLeakGrid article,
.businessTrendCard {
  background: #f6f7f5;
  border: 1px solid #e3e7e3;
  border-radius: 20px;
  display: grid;
  gap: 6px;
  padding: 18px;
}

.businessMoneyGrid span,
.businessInputGrid span,
.businessLeakGrid span,
.businessTrendCard span {
  color: #718078;
  font-size: 13px;
  font-weight: 750;
}

.businessMoneyGrid strong {
  color: #ffffff;
  font-size: clamp(34px, 4vw, 48px);
}

.businessMoneyGrid article {
  background: #1c3328;
  border-color: #1c3328;
  box-shadow: 0 14px 34px rgba(28, 51, 40, 0.14);
  min-height: 132px;
}

.businessMoneyGrid span {
  color: rgba(255, 255, 255, 0.72);
}

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

.businessInputGrid strong {
  color: #1c3328;
  font-size: 30px;
}

.businessMoneyGrid small,
.businessInputGrid small {
  color: #859088;
  line-height: 1.4;
}

.businessGoalBlock {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.businessGoalBlock > div:first-child {
  align-items: center;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
}

.businessGoalBar {
  background: #e5e9e5;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.businessGoalBar span {
  background: linear-gradient(90deg, #ffb94f, #ffd58c);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 420ms ease;
}

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

.businessGoalLadder span {
  background: #f1f3f1;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #78857e;
  font-size: 11px;
  font-weight: 850;
  padding: 7px 10px;
}

.businessGoalLadder span.complete {
  background: #e3f4e9;
  border-color: #c9e7d3;
  box-shadow: 0 5px 14px rgba(31, 109, 64, 0.1);
  color: #1f6d40;
}

.businessGoalLadder span.complete i {
  font-style: normal;
  margin-right: 4px;
}

.businessGoalLadder span.active {
  background: #fff6e5;
  border-color: #ffbe57;
  color: #8b5d12;
}

.businessSyncCopy {
  color: #849089;
  font-size: 12px;
  margin: 14px 0 0;
}

.businessDataWarning,
.businessStripeEmpty {
  background: #fff7e9;
  border: 1px solid #f3d08e;
  border-radius: 18px;
  color: #75501b;
  margin: 16px 0 0;
  padding: 16px;
}

.businessStripeEmpty {
  display: grid;
  gap: 6px;
}

.businessStripeEmpty p,
.businessStripeEmpty small {
  margin: 0;
}

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

.businessFunnelPath article {
  align-items: center;
  background: #f6f7f5;
  border: 1px solid #e2e6e2;
  border-radius: 20px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  min-width: 0;
  padding: 16px;
}

.businessFunnelPath article > span {
  align-items: center;
  background: #1c3328;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 850;
  height: 25px;
  justify-content: center;
  width: 25px;
}

.businessFunnelPath article div {
  display: grid;
  min-width: 0;
}

.businessFunnelPath small {
  color: #7e8a83;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.businessFunnelPath em {
  color: #1c3328;
  font-size: 25px;
  font-style: normal;
  font-weight: 900;
}

.businessLeakGrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.businessLeakGrid article {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.businessLeakGrid strong {
  color: #1c3328;
  font-size: 20px;
}

.businessDataPage .leadDataPanel {
  margin: 0;
}

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

.businessTrendCard > div:first-child {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.businessTrendCard strong {
  color: #1c3328;
  font-size: 21px;
}

.businessSparkBars {
  align-items: end;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(12, minmax(2px, 1fr));
  height: 78px;
}

.businessSparkBars i {
  background: linear-gradient(180deg, #ffbe57, #e19d35);
  border-radius: 999px 999px 4px 4px;
  display: block;
  height: var(--business-bar);
  min-height: 2px;
}

.businessDisclosurePanel {
  overflow: hidden;
}

.businessDisclosurePanel > button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #1c3328;
  cursor: pointer;
  display: flex;
  font-size: 15px;
  font-weight: 900;
  justify-content: space-between;
  padding: 20px 24px;
  text-align: left;
  width: 100%;
}

.businessDisclosurePanel > button i {
  font-size: 27px;
  font-style: normal;
  transform: rotate(0deg);
  transition: transform 200ms ease;
}

.businessDisclosurePanel > button i.open {
  transform: rotate(90deg);
}

.businessHistoryTableWrap {
  border-top: 1px solid #e2e6e2;
  overflow-x: auto;
  padding: 0 22px 22px;
}

.businessHistoryTable {
  border-collapse: collapse;
  min-width: 860px;
  width: 100%;
}

.businessHistoryTable th,
.businessHistoryTable td {
  border-bottom: 1px solid #edf0ed;
  font-size: 12px;
  padding: 13px 10px;
  text-align: right;
  white-space: nowrap;
}

.businessHistoryTable th:first-child,
.businessHistoryTable td:first-child {
  text-align: left;
}

.businessGuideGrid {
  border-top: 1px solid #e2e6e2;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 20px 24px 24px;
}

.businessGuideGrid article {
  background: #f6f7f5;
  border-radius: 16px;
  padding: 16px;
}

.businessGuideGrid p {
  color: #718078;
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 0;
}

@media (max-width: 1180px) {
  .businessInputGrid,
  .businessTrendGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .newActionSpacer {
    display: none;
  }

  .businessDataPage {
    gap: 14px;
  }

  .businessMissionPanel {
    align-items: flex-start;
    border-radius: 22px;
    flex-direction: column;
    gap: 22px;
    padding: 22px;
  }

  .businessMissionProgress {
    min-width: 0;
    width: 100%;
  }

  .businessFinancePanel,
  .businessInputPanel,
  .businessFunnelPanel,
  .businessTrendsPanel {
    border-radius: 22px;
    padding: 18px;
  }

  .businessPanelHeader {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .businessMoneyGrid,
  .businessInputGrid,
  .businessFunnelPath,
  .businessLeakGrid,
  .businessTrendGrid,
  .businessGuideGrid {
    grid-template-columns: 1fr;
  }

  .businessGoalBlock > div:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .businessFunnelPath small {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .businessGoalBar span,
  .businessMissionTrack span,
  .businessDisclosurePanel > button i {
    transition: none;
  }
}

.leadTagSelector {
  border: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.leadTagSelector legend {
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 8px;
  padding: 0;
}

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

.leadTagOption {
  cursor: pointer;
  position: relative;
}

.leadTagOption input {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.leadTagOption span {
  align-items: center;
  background: #f7f7f3;
  border: 1px solid rgba(28, 51, 40, 0.12);
  border-radius: 12px;
  color: var(--green);
  display: flex;
  font-size: 14px;
  font-weight: 650;
  justify-content: center;
  min-height: 46px;
  padding: 10px 12px;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.leadTagOption:hover span {
  border-color: rgba(28, 51, 40, 0.3);
}

.leadTagOption input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: white;
  transform: translateY(-1px);
}

.leadTagOption input:focus-visible + span {
  outline: 3px solid rgba(242, 173, 47, 0.38);
  outline-offset: 2px;
}

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

.leadDetailHeader {
  align-items: center;
  display: flex;
  gap: 15px;
  justify-content: space-between;
}

.leadDetailHeader h2,
.leadDetailHeader p {
  margin: 0;
}

.leadDetailHeaderMain {
  display: grid;
  flex: 1;
  gap: 8px;
  min-width: 0;
}

.leadDetailTopline,
.leadDetailIdentity,
.websiteLeadHeader,
.leadCallOutcomeHeader {
  align-items: center;
  display: flex;
  gap: 10px;
}

.leadDetailTopline .drawerClose {
  flex: 0 0 auto;
  left: auto;
  position: static;
  top: auto;
}

.leadDetailIdentity {
  flex-wrap: wrap;
}

.leadDetailIdentity h2 {
  line-height: 1.05;
}

.leadDetailHeader a {
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
}

.leadIdentityEditor {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.leadIdentityEditor > summary {
  background: var(--green);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  list-style: none;
  padding: 8px 14px;
}

.leadIdentityEditor > summary::-webkit-details-marker {
  display: none;
}

.leadIdentityEditor[open] > summary {
  margin-bottom: 12px;
}

.leadIdentityEditor form {
  background: #f7f7f3;
  border: 1px solid var(--line);
  border-radius: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
}

.leadIdentityActions {
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.leadIdentityActions .compactButton {
  border-radius: 999px;
}

@media (max-width: 560px) {
  .leadIdentityEditor form {
    grid-template-columns: 1fr;
  }
}

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

.leadDetailFacts > div {
  background: #f7f7f3;
  border-radius: 14px;
  display: grid;
  gap: 3px;
  padding: 12px 14px;
}

.leadDetailFacts .leadNextMoveFact {
  align-content: start;
}

.leadNextMoveFact .leadDuePill {
  margin-top: 3px;
}

.leadNextMoveFact small {
  line-height: 1.35;
  margin-top: 2px;
}

.websiteLeadIntake {
  gap: 10px;
}

.websiteLeadHeader,
.leadCallOutcomeHeader {
  justify-content: space-between;
}

.websiteLeadHeader p,
.leadCallOutcomeHeader p {
  margin: 0;
}

.leadDetailFacts span,
.leadDetailFacts small {
  color: rgba(28, 51, 40, 0.52);
  font-size: 11px;
}

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

.websiteLeadFacts > div,
.websiteLeadMessage {
  background: #f7f7f3;
  border: 1px solid rgba(28, 51, 40, 0.08);
  border-radius: 14px;
  display: grid;
  gap: 4px;
  padding: 13px 14px;
}

.websiteLeadFacts span,
.websiteLeadMessage span {
  color: rgba(28, 51, 40, 0.52);
  font-size: 11px;
  font-weight: 700;
}

.websiteLeadFacts strong,
.websiteLeadMessage p {
  overflow-wrap: anywhere;
}

.websiteLeadMessage p {
  margin: 0;
  white-space: pre-wrap;
}

.leadStageSelect {
  display: grid;
  gap: 6px;
}

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

.leadArchiveConfirmBackdrop {
  align-items: center;
  background: rgba(28, 51, 40, 0.22);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 1001;
}

.leadArchiveConfirm {
  animation: leadArchiveConfirmIn 180ms ease-out both;
  background: #ffffff;
  border: 1px solid rgba(28, 51, 40, 0.1);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(28, 51, 40, 0.2);
  display: grid;
  gap: 18px;
  max-width: 420px;
  padding: 22px;
  width: 100%;
}

.leadArchiveConfirm h3,
.leadArchiveConfirm p {
  margin: 0;
}

.leadArchiveConfirm label > span {
  color: rgba(28, 51, 40, 0.5);
  font-size: 11px;
  font-weight: 650;
}

.leadArchiveConfirm textarea {
  min-height: 92px;
}

.leadArchiveConfirm > div:last-child {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.leadArchiveConfirm > div:last-child .compactButton {
  border-radius: 999px;
  min-height: 44px;
}

.leadArchiveCancel {
  background: #f1f3f1;
  border: 1px solid rgba(28, 51, 40, 0.12);
  color: #1c3328;
  font-weight: 720;
}

.leadArchiveCancel:hover,
.leadArchiveCancel:focus-visible {
  background: #e7ebe7;
  border-color: rgba(28, 51, 40, 0.2);
  color: #1c3328;
}

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

.leadGreenAction {
  background: #1c3328;
  border: 1px solid #1c3328;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 720;
}

.leadGreenAction:hover,
.leadGreenAction:focus-visible {
  background: #244c3a;
  border-color: #244c3a;
  color: #ffffff;
}

.leadRedAction {
  background: #b8322c;
  border: 1px solid #b8322c;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 720;
}

.leadRedAction:hover,
.leadRedAction:focus-visible {
  background: #982923;
  border-color: #982923;
  color: #ffffff;
}

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

.leadCallDateField {
  min-width: 0;
}

.leadCallDateField input {
  min-width: 0;
}

.leadCallDateField .leadTodayButton {
  min-height: 42px;
  padding: 0 15px;
}

.leadTimelineDisclosure > summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr);
  list-style: none;
  min-height: 42px;
  user-select: none;
}

.leadTimelineDisclosure > summary::-webkit-details-marker {
  display: none;
}

.leadTimelineDisclosure > summary:focus-visible {
  border-radius: 12px;
  outline: 2px solid rgba(28, 51, 40, 0.38);
  outline-offset: 4px;
}

.leadTimelineArrow {
  color: var(--green);
  display: inline-block;
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 180ms ease;
}

.leadTimelineDisclosure[open] .leadTimelineArrow {
  transform: rotate(90deg);
}

.leadTimelineContent {
  animation: leadTimelineReveal 180ms ease both;
  padding-top: 12px;
}

@keyframes leadTimelineReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

.leadCallHistory article {
  background: #f7f7f3;
  border-radius: 12px;
  display: grid;
  gap: 3px;
  padding: 12px;
}

.leadCallHistory span,
.leadCallHistory small {
  color: rgba(28, 51, 40, 0.56);
  font-size: 11px;
}

.leadTimeline article {
  border-left: 2px solid rgba(28, 51, 40, 0.14);
  display: grid;
  gap: 3px;
  padding: 3px 0 3px 13px;
}

.leadTimeline span,
.leadTimeline time {
  color: rgba(28, 51, 40, 0.52);
  font-size: 11px;
}

.leadTimeline span {
  font-weight: 760;
  text-transform: capitalize;
}

.leadCommandLoading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  min-height: 340px;
}

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

@media (max-width: 1180px) {
  .leadExecutionHero {
    grid-template-columns: 1fr;
  }

  .leadGameStats {
    grid-column: auto;
  }

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

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

  .leadHotStage .leadStageCards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .leadStageFocusList > article {
    align-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leadStageFocusList > article > .compactButton {
    width: 100%;
  }

  .leadQuickActions {
    grid-column: 1 / -1;
  }

  .leadCoachPrompt {
    align-items: flex-start;
    flex-direction: column;
  }

  .leadCoachPrompt p {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .websiteLeadFacts {
    grid-template-columns: 1fr;
  }

  .leadHeaderToast {
    left: auto;
    max-width: 100%;
    right: 0;
    top: 54px;
    transform: translateY(-6px) scale(0.97);
  }

  .leadHeaderToast.show {
    transform: translateY(0) scale(1);
  }

  .leadExecutionHero {
    align-items: start;
    grid-template-columns: 1fr;
    padding: 22px;
  }

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

  .leadStageCards,
  .leadHotStage .leadStageCards {
    grid-template-columns: 1fr;
  }

  .leadBoardCard {
    cursor: pointer;
  }

  .leadCompletionRing {
    height: 104px;
    width: 104px;
  }

  .leadGameStats,
  .leadMetricGrid,
  .leadFollowUpEffectivenessGrid,
  .leadMetricDrilldown > div:last-child,
  .leadIntakeGrid,
  .leadDetailFacts,
  .leadCallStats {
    grid-template-columns: 1fr;
  }

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

  .leadActionGrid .compactButton {
    font-size: 11px;
    padding-inline: 8px;
  }

  .leadIntakeCard:last-child {
    grid-column: auto;
  }

  .leadScorecardHeader,
  .leadDataHeader,
  .leadContentHeader,
  .leadStageFocusHeader,
  .leadBoardToolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .leadBoardTools {
    width: 100%;
  }

  .leadBoardTools .leadSearchField {
    width: 100%;
  }

  .leadBoardTools .leadSearchField input {
    width: 100%;
  }

  .leadArchiveDropZone {
    display: none;
  }

  .leadCommandTabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .leadContentForm {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .leadContentTypeFieldset,
  .leadContentSave {
    grid-column: auto;
  }

  .leadContentDateControl {
    min-width: 0;
    width: 100%;
  }

  .leadContentDay {
    border-radius: 18px;
    gap: 4px;
    grid-template-columns: 1fr auto;
    padding: 12px 14px;
  }

  .leadContentDay em {
    grid-column: 1;
    text-align: left;
  }

  .leadQueueItem,
  .leadArchiveList article {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

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

  .leadQuickActions button:first-child {
    grid-column: 1 / -1;
  }

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

  .leadHotStage {
    grid-column: auto;
  }

  .leadArchiveHeader,
  .leadArchiveTools {
    align-items: stretch;
    flex-direction: column;
  }

  .leadArchiveTools .leadSearchField {
    min-width: 0;
  }

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

  .leadStageFocusList > article {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

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

  .leadFunnelMeasure {
    justify-content: space-between;
  }

  .leadDrawer .drawerPanel {
    max-width: 100%;
  }
}

.workoutScheduleRows {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.workoutLibraryCardWrap {
  display: grid;
  gap: 6px;
  min-width: 230px;
}

.workoutScheduleRows label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 6px;
}

.exerciseDetailCard {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(28, 51, 40, 0.13);
  border-radius: 18px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.exerciseDetailCard video {
  background: #0d1f17;
  border-radius: 14px;
  max-height: 360px;
  width: 100%;
}

.fleetCoachBoard,
.fleetFeedCard,
.clientCoachingBrief {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(28, 51, 40, 0.055);
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  padding: 20px;
}

.fleetCoachList,
.fleetFeedList {
  display: grid;
}

.fleetCoachRow {
  align-items: center;
  border-bottom: 1px solid rgba(28, 51, 40, 0.08);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1.15fr) minmax(220px, 1.15fr) minmax(110px, auto);
  padding: 13px 4px;
}

.fleetCoachRow:last-child {
  border-bottom: 0;
}

.fleetCoachRow.needsAttention {
  background: linear-gradient(90deg, rgba(255, 189, 89, 0.12), transparent 70%);
  border-left: 3px solid rgba(211, 148, 47, 0.75);
  padding-left: 12px;
}

.fleetCoachIdentity,
.fleetCoachSignal {
  display: grid;
  gap: 4px;
}

.fleetCoachIdentity .textLink {
  font-size: 14px;
  justify-self: start;
}

.fleetCoachIdentity span,
.fleetCoachSignal span,
.clientBriefMeta span,
.clientProgressStrip span {
  color: rgba(28, 51, 40, 0.56);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fleetCoachSignal strong {
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
}

.fleetCoachSignal.win strong {
  color: #23583d;
}

.fleetCoachSignal.help strong {
  color: #7a5710;
}

.fleetCoachAttention {
  justify-self: end;
}

.fleetCoachAttention span {
  background: rgba(28, 51, 40, 0.07);
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  padding: 7px 9px;
}

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

.fleetFeedList article {
  border-bottom: 1px solid rgba(28, 51, 40, 0.08);
  display: grid;
  gap: 7px;
  padding: 13px 2px;
}

.fleetFeedList article:last-child {
  border-bottom: 0;
}

.fleetFeedMeta {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.fleetFeedMeta time,
.fleetFeedList article > span {
  color: rgba(28, 51, 40, 0.56);
  font-size: 10px;
}

.fleetFeedList article > strong {
  font-size: 13px;
}

.fleetFeedList article > p {
  color: rgba(28, 51, 40, 0.72);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.checkInSignals {
  display: grid;
  gap: 6px;
}

.checkInSignals span {
  background: rgba(28, 51, 40, 0.045);
  border-radius: 8px;
  color: rgba(28, 51, 40, 0.75);
  display: grid;
  font-size: 11px;
  gap: 2px;
  padding: 8px 10px;
}

.checkInSignals b {
  color: rgba(28, 51, 40, 0.52);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.clientBriefHead {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.clientBriefHead h2 {
  font-size: 26px;
  margin: 0 0 5px;
}

.clientBriefHead p {
  color: rgba(28, 51, 40, 0.64);
  margin: 0;
}

.clientBriefMeta {
  align-items: flex-end;
  display: grid;
  gap: 5px;
  min-width: 210px;
  text-align: right;
}

.clientBriefMeta strong {
  color: var(--green);
  font-size: 13px;
}

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

.dashboardSignalGrid > article {
  background: rgba(28, 51, 40, 0.04);
  border: 1px solid rgba(28, 51, 40, 0.08);
  border-radius: 13px;
  min-height: 150px;
  padding: 14px;
}

.dashboardSignalGrid > article.win {
  background: rgba(57, 139, 91, 0.075);
}

.dashboardSignalGrid > article.risk,
.dashboardSignalGrid > article.help {
  background: rgba(255, 189, 89, 0.11);
}

.dashboardSignalGrid > article > span,
.dashboardEvidenceCard .trainerizeDeckHead span,
.clientActionSummary > div > span {
  color: rgba(28, 51, 40, 0.56);
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.05em;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.dashboardSignalGrid .briefBullets {
  font-size: 11px;
  gap: 7px;
  line-height: 1.35;
}

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

.dashboardEvidenceCard {
  background: rgba(28, 51, 40, 0.025);
  border: 1px solid rgba(28, 51, 40, 0.08);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.dashboardEvidenceCard > strong {
  font-size: 14px;
}

.dashboardEvidenceCard .secondary {
  justify-self: start;
}

.coachNextLine {
  background: rgba(255, 189, 89, 0.14);
  border-radius: 9px;
  display: grid;
  gap: 3px;
  padding: 10px;
}

.coachNextLine span {
  color: rgba(28, 51, 40, 0.5);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.coachNextLine strong {
  font-size: 11px;
  line-height: 1.4;
}

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

.clientProgressStrip article {
  background: var(--green);
  border-radius: 12px;
  color: var(--white);
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 13px;
}

.clientProgressStrip span,
.clientProgressStrip small {
  color: rgba(255, 255, 255, 0.64);
}

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

.clientProgressStrip small {
  font-size: 9px;
}

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

.clientActionSummary > div {
  border-top: 1px solid rgba(28, 51, 40, 0.1);
  padding-top: 14px;
}

.clientActionSummary .briefBullets {
  font-size: 11px;
}

.overviewTable th:nth-child(1) { width: 13%; }
.overviewTable th:nth-child(2) { width: 10%; }
.overviewTable th:nth-child(3) { width: 8%; }
.overviewTable th:nth-child(4) { width: 12%; }
.overviewTable th:nth-child(5) { width: 20%; }
.overviewTable th:nth-child(6) { width: 20%; }
.overviewTable th:nth-child(7) { width: 7%; }
.overviewTable th:nth-child(8) { width: 10%; }

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

  .shell {
    margin-left: var(--rail-width);
    max-width: calc(100vw - var(--rail-width));
  }

  .clientList {
    display: none;
  }

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

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

  .commandGrid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

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

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

  .clientSectionNav {
    grid-template-columns: repeat(7, minmax(120px, 1fr));
  }

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

  .fleetCoachRow {
    grid-template-columns: minmax(160px, 0.7fr) repeat(2, minmax(180px, 1fr));
  }

  .fleetCoachAttention {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

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

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

  .brandRail {
    gap: 10px;
    min-height: auto;
    height: auto;
    overflow: visible;
    padding: 12px 14px;
    position: static;
    width: auto;
  }

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

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

  .newActionButton,
  .driveExternalLink {
    display: none;
  }

  .nav button {
    font-size: 12px;
    justify-content: center;
    min-height: 36px;
    padding: 7px 8px;
  }

  .returnButton {
    font-size: 12px;
    margin-top: 0;
    min-height: 34px;
    padding: 6px 12px;
  }

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

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

  .trainerizeDeck {
    padding: 16px;
  }

  .trainerizeDeckHead,
  .clientDataNotice,
  .clientBriefHead {
    align-items: flex-start;
    display: grid;
  }

  .clientBriefMeta {
    align-items: start;
    min-width: 0;
    text-align: left;
  }

  .fleetFeedGrid,
  .dashboardSignalGrid,
  .dashboardEvidenceGrid,
  .clientActionSummary,
  .clientProgressStrip {
    grid-template-columns: 1fr;
  }

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

  .parityTimelineRow,
  .compactRecordList > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .calendarConnectionRow {
    align-items: stretch;
    flex-direction: column;
  }

  .snapshotLead,
  .compactMetrics,
  .intelSignalGrid {
    grid-template-columns: 1fr;
  }

  .actions .primary,
  .actions .secondary,
  .actions .danger {
    width: 100%;
  }

}
/* AP Workout Studio */
.workoutBuilderDeck {
  display: grid;
  gap: 18px;
  margin: 18px 0 24px;
}

.workoutBuilderHero {
  align-items: center;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 189, 89, 0.22), transparent 34%),
    #1c3328;
  border-radius: 26px;
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 26px;
}

.workoutBuilderHero h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.04em;
  margin: 4px 0 8px;
}

.workoutBuilderHero p:last-child {
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
  max-width: 680px;
}

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

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

.workoutLibraryActions,
.workoutBuilderSaveBar > div,
.phasePrintRow {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.workoutLibraryCard {
  appearance: none;
  background: #fff;
  border: 1px solid rgba(28, 51, 40, 0.1);
  border-radius: 18px;
  color: #1c3328;
  cursor: pointer;
  display: grid;
  gap: 5px;
  padding: 16px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.workoutLibraryCard:hover,
.workoutLibraryCard.active {
  border-color: #ffbd59;
  box-shadow: 0 12px 28px rgba(28, 51, 40, 0.09);
  transform: translateY(-1px);
}

.workoutLibraryCard span {
  color: rgba(28, 51, 40, 0.48);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workoutLibraryCard strong {
  font-size: 16px;
}

.workoutLibraryCard small {
  color: rgba(28, 51, 40, 0.6);
}

.workoutBuilderForm {
  background: #fff;
  border: 1px solid rgba(28, 51, 40, 0.1);
  border-radius: 26px;
  display: grid;
  gap: 18px;
  padding: 22px;
}

.workoutBuilderForm label,
.workoutAssignmentBar label {
  color: rgba(28, 51, 40, 0.64);
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workoutBuilderForm input,
.workoutBuilderForm select,
.workoutBuilderForm textarea,
.workoutAssignmentBar input,
.workoutAssignmentBar select {
  background: #f7f7f3;
  border: 1px solid rgba(28, 51, 40, 0.11);
  border-radius: 12px;
  color: #1c3328;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  padding: 11px 12px;
  text-transform: none;
  width: 100%;
}

.workoutBuilderForm input:focus,
.workoutBuilderForm select:focus,
.workoutBuilderForm textarea:focus,
.workoutAssignmentBar input:focus,
.workoutAssignmentBar select:focus {
  border-color: #ffbd59;
  outline: 3px solid rgba(255, 189, 89, 0.18);
}

.workoutBuilderMetaGrid {
  display: grid;
  gap: 12px;
  grid-template-columns: 2fr 1.4fr 1.2fr 0.6fr;
}

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

.workoutDayTabs button {
  background: #f4f5f1;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #1c3328;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
}

.workoutDayTabs button.active {
  background: #1c3328;
  color: #fff;
}

.workoutDayTabs button.add {
  background: rgba(255, 189, 89, 0.2);
}

.workoutDayBuilder {
  display: none;
  gap: 16px;
}

.workoutDayBuilder.active {
  display: grid;
}

.workoutDayBuilderHead {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.workoutDayMeta {
  display: grid;
  flex: 1;
  gap: 12px;
  grid-template-columns: 2fr 1fr 0.7fr;
}

.exerciseBuilderTable {
  border: 1px solid rgba(28, 51, 40, 0.1);
  border-radius: 18px;
  overflow: hidden;
}

.exerciseGroupToolbar {
  align-items: center;
  background: rgba(28, 51, 40, 0.06);
  border: 1px solid rgba(28, 51, 40, 0.1);
  border-radius: 999px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
  padding: 8px 10px 8px 16px;
}

.exerciseGroupToolbar span {
  color: var(--muted);
  margin-right: auto;
}

.exerciseSelectToggle {
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.72rem;
  gap: 5px;
  margin-bottom: 5px;
}

.exerciseSelectToggle input {
  accent-color: var(--green);
  height: 15px;
  margin: 0;
  width: 15px;
}

.exerciseBuilderTable.dragReady {
  border-color: var(--yellow);
  box-shadow: inset 0 0 0 3px rgba(255, 189, 89, 0.18);
}

.exerciseBuilderRow[draggable="true"] {
  cursor: grab;
}

.exerciseBuilderHeader,
.exerciseBuilderRow {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(190px, 2fr) 70px minmax(150px, 1.4fr) 80px minmax(140px, 1.2fr) 100px;
  padding: 12px 14px;
}

.exerciseBuilderHeader {
  background: #1c3328;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.exerciseBuilderRow {
  border-top: 1px solid rgba(28, 51, 40, 0.08);
}

.exerciseBuilderRow:first-of-type {
  border-top: 0;
}

.exerciseBuilderRow > div:first-child {
  display: grid;
  gap: 5px;
}

.exerciseBuilderRow small {
  color: rgba(28, 51, 40, 0.5);
}

.exerciseTargetFields {
  display: grid;
  gap: 6px;
}

.exerciseRowActions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

.exerciseRowActions button {
  align-items: center;
  background: #f4f5f1;
  border: 0;
  border-radius: 9px;
  color: #1c3328;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.workoutExerciseFinder {
  background: #f7f3eb;
  border-radius: 20px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.workoutExerciseFinder h3 {
  margin: 2px 0 0;
}

.workoutExerciseSearch {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
}

.workoutExerciseResults {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.workoutExerciseResults button {
  background: #fff;
  border: 1px solid rgba(28, 51, 40, 0.1);
  border-radius: 14px;
  color: #1c3328;
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 13px;
  text-align: left;
}

.workoutExerciseResults button:hover {
  border-color: #ffbd59;
}

.workoutExerciseResults span {
  color: rgba(28, 51, 40, 0.48);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.workoutExerciseResults small {
  color: rgba(28, 51, 40, 0.55);
}

.workoutBuilderSaveBar {
  align-items: center;
  border-top: 1px solid rgba(28, 51, 40, 0.1);
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
}

.workoutBuilderSaveBar span {
  color: rgba(28, 51, 40, 0.55);
  font-size: 12px;
  font-weight: 700;
}

.workoutAssignmentBar {
  align-items: end;
  background: #fff;
  border: 1px solid rgba(28, 51, 40, 0.1);
  border-radius: 20px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(190px, 1.3fr) minmax(190px, 1.3fr) 160px 160px auto;
  padding: 18px;
}

.copyWorkoutProgramBar {
  align-items: end;
  background: #f7f3eb;
  border-radius: 20px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1.5fr) 1fr 1fr 160px auto;
  padding: 18px;
}

.copyWorkoutProgramBar > div {
  display: grid;
  gap: 3px;
}

.copyWorkoutProgramBar small {
  color: rgba(28, 51, 40, 0.54);
}

.copyWorkoutProgramBar input,
.copyWorkoutProgramBar select {
  background: #fff;
  border: 1px solid rgba(28, 51, 40, 0.11);
  border-radius: 12px;
  color: var(--green);
  font: inherit;
  padding: 11px 12px;
  width: 100%;
}

.phasePrintRow {
  background: #f7f7f3;
  border-radius: 14px;
  color: rgba(28, 51, 40, 0.6);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 12px;
}

.workoutAssignmentBar > div {
  display: grid;
  gap: 3px;
}

.workoutAssignmentBar small {
  color: rgba(28, 51, 40, 0.5);
}

.workoutBuilderEmpty {
  background: #f7f7f3;
  border-radius: 14px;
  display: grid;
  gap: 4px;
  padding: 18px;
}

.workoutBuilderEmpty span {
  color: rgba(28, 51, 40, 0.58);
  font-size: 13px;
}

.ghost.danger {
  color: #a33a32;
}

@media (max-width: 1100px) {
  .workoutBuilderMetaGrid {
    grid-template-columns: 1fr 1fr;
  }

  .exerciseBuilderTable {
    overflow-x: auto;
  }

  .exerciseBuilderHeader,
  .exerciseBuilderRow {
    min-width: 920px;
  }

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

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

@media (max-width: 720px) {
  .workoutBuilderHero,
  .workoutDayBuilderHead,
  .workoutBuilderSaveBar {
    align-items: stretch;
    flex-direction: column;
  }

  .workoutBuilderMetaGrid,
  .workoutDayMeta,
  .workoutAssignmentBar,
  .copyWorkoutProgramBar {
    grid-template-columns: 1fr;
  }

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

/* Content HQ */
.contentWorkflowLoading,
.contentWorkflowUnavailable {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 360px;
}

.contentWorkflowLoading {
  color: rgba(28, 51, 40, 0.58);
  flex-direction: column;
  font-size: 13px;
  font-weight: 750;
  gap: 12px;
}

.contentWorkflowShell {
  display: grid;
  gap: 20px;
}

.contentCategoryTabs {
  background: #f1f2ee;
  border-radius: 18px;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 5px;
}

.contentCategoryTabs button {
  background: transparent;
  border: 0;
  border-radius: 14px;
  color: rgba(28, 51, 40, 0.62);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  min-height: 46px;
  padding: 10px 12px;
  transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.contentCategoryTabs button:hover {
  color: #1c3328;
}

.contentCategoryTabs button:active {
  transform: scale(0.985);
}

.contentCategoryTabs button.active {
  background: #fff;
  box-shadow: 0 6px 18px rgba(28, 51, 40, 0.08);
  color: #1c3328;
}

.contentWorkflowPanel {
  background: #fff;
  border: 1px solid rgba(28, 51, 40, 0.1);
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(28, 51, 40, 0.05);
  display: grid;
  gap: 14px;
  padding: 22px;
}

.contentWorkflowHeader,
.contentStageHeader {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.contentWorkflowHeader h2 {
  margin: 2px 0 0;
}

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

.contentStageColumn,
.contentRefilmStage {
  background: #f6f7f3;
  border: 1px solid rgba(28, 51, 40, 0.08);
  border-radius: 20px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contentStageColumn {
  min-height: 280px;
  padding: 15px;
}

.contentStageColumn.dragOver,
.contentRefilmStage.dragOver {
  background: #f0f5f1;
  border-color: #1c3328;
  box-shadow: inset 0 0 0 2px rgba(28, 51, 40, 0.1);
}

.contentStageHeader {
  gap: 12px;
}

.contentStageHeader > div {
  display: grid;
  gap: 2px;
}

.contentStageHeader strong {
  color: #1c3328;
  font-size: 14px;
}

.contentStageHeader span {
  color: rgba(28, 51, 40, 0.5);
  font-size: 11px;
  font-weight: 650;
}

.contentStageHeader em,
.contentArchiveToggle em {
  align-items: center;
  background: rgba(28, 51, 40, 0.07);
  border-radius: 999px;
  color: #1c3328;
  display: inline-flex;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  height: 26px;
  justify-content: center;
  min-width: 26px;
  padding: 0 8px;
}

.contentStageItems,
.contentRefilmItems {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.contentStageItems > p,
.contentRefilmItems > p {
  color: rgba(28, 51, 40, 0.42);
  font-size: 11px;
  font-weight: 650;
  margin: 6px 2px;
}

.contentItemPill {
  min-width: 0;
}

.contentItemPill[draggable="true"] {
  cursor: grab;
}

.contentItemPill.dragging {
  opacity: 0.45;
}

.contentItemPill button {
  background: #fff;
  border: 1px solid rgba(28, 51, 40, 0.09);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(28, 51, 40, 0.05);
  color: #1c3328;
  cursor: pointer;
  display: block;
  font: inherit;
  min-height: 34px;
  overflow: hidden;
  padding: 7px 12px;
  text-align: left;
  text-overflow: ellipsis;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  white-space: nowrap;
  width: 100%;
}

.contentItemPill button:hover {
  border-color: rgba(28, 51, 40, 0.28);
  box-shadow: 0 7px 18px rgba(28, 51, 40, 0.09);
  transform: translateY(-1px);
}

.contentItemPill strong {
  font-size: 12px;
  font-weight: 850;
}

.contentRefilmStage {
  min-height: 124px;
  padding: 17px;
}

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

.contentArchiveSection {
  background: #f6f7f3;
  border: 1px solid rgba(28, 51, 40, 0.08);
  border-radius: 18px;
  overflow: hidden;
}

.contentArchiveToggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #1c3328;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 9px;
  grid-template-columns: auto 1fr auto;
  padding: 15px 17px;
  text-align: left;
  width: 100%;
}

.contentArchiveArrow {
  display: inline-block;
  font-size: 24px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 180ms ease;
}

.contentArchiveArrow.open {
  transform: rotate(90deg);
}

.contentArchiveItems {
  border-top: 1px solid rgba(28, 51, 40, 0.08);
  display: grid;
  gap: 7px;
  padding: 12px 16px 16px;
}

.contentArchiveItems article {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(28, 51, 40, 0.08);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 5px 6px 5px 12px;
}

.contentArchiveItems article > button:first-child {
  background: transparent;
  border: 0;
  color: #1c3328;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 8px;
  min-width: 0;
  padding: 5px 0;
  text-align: left;
}

.contentArchiveItems article > button:first-child strong,
.contentArchiveItems article > button:first-child span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contentArchiveItems article > button:first-child span {
  color: rgba(28, 51, 40, 0.48);
  font-size: 11px;
}

.contentRestoreButton,
.contentRestoreDrawerButton,
.contentArchiveButton,
.contentDeleteButton {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.contentRestoreButton {
  background: #1c3328;
  color: #fff;
  padding: 8px 13px;
}

.contentWorkflowHint {
  font-size: 11px;
  margin: 1px 2px 0;
}

.contentDrawerPanel {
  max-width: 620px;
  padding: 24px;
}

.contentDrawerHeader {
  align-items: flex-start;
  display: flex;
  gap: 13px;
  margin-bottom: 25px;
}

.contentDrawerHeader h2 {
  margin: 2px 0 0;
}

.contentItemForm {
  display: grid;
  gap: 15px;
}

.contentItemForm label {
  color: #1c3328;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
}

.contentItemForm input,
.contentItemForm select,
.contentItemForm textarea {
  background: #f8f8f5;
  border: 1px solid rgba(28, 51, 40, 0.12);
  border-radius: 15px;
  color: #1c3328;
  font: inherit;
  font-size: 14px;
  outline: none;
  padding: 13px 14px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.contentItemForm input:focus,
.contentItemForm select:focus,
.contentItemForm textarea:focus {
  background: #fff;
  border-color: #1c3328;
  box-shadow: 0 0 0 4px rgba(28, 51, 40, 0.08);
}

.contentItemForm textarea {
  line-height: 1.55;
  min-height: 270px;
  resize: vertical;
}

.contentItemForm small {
  color: rgba(28, 51, 40, 0.45);
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.contentSaveButton {
  border-radius: 999px;
  min-height: 48px;
}

.contentDrawerActions {
  border-top: 1px solid rgba(28, 51, 40, 0.09);
  display: grid;
  gap: 9px;
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
  padding-top: 18px;
}

.contentRestoreDrawerButton,
.contentArchiveButton {
  background: #1c3328;
  color: #fff;
  min-height: 44px;
}

.contentDeleteButton {
  background: #c33228;
  color: #fff;
  min-height: 44px;
}

@media (max-width: 1100px) {
  .contentCategoryTabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 720px) {
  .contentCategoryTabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .contentCategoryTabs button {
    flex: 0 0 min(76vw, 240px);
    scroll-snap-align: start;
  }

  .contentWorkflowPanel {
    border-radius: 21px;
    padding: 14px;
  }

  .contentWorkflowBoard,
  .contentRefilmItems {
    grid-template-columns: 1fr;
  }

  .contentStageColumn {
    min-height: 150px;
  }

  .contentDrawerPanel {
    max-width: none;
    padding: 18px;
    width: 100%;
  }

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

  .contentWorkflowHint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contentCategoryTabs button,
  .contentItemPill button,
  .contentArchiveArrow,
  .contentStageColumn,
  .contentRefilmStage {
    transition: none;
  }
}
+
/* Daily non negotiables */
.personalPage { display: grid; gap: 22px; }
.personalLoading {
  align-items: center; background: #f7f8f5; border: 1px solid rgba(28, 51, 40, 0.1);
  border-radius: 24px; color: rgba(28, 51, 40, 0.62); display: flex; font-weight: 750;
  justify-content: center; min-height: 220px;
}
.personalSummaryBar {
  background: linear-gradient(112deg, #1c3328 0%, #34442d 100%);
  border: 1px solid rgba(255, 186, 82, 0.42); border-radius: 28px; color: #fff;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden;
}
.personalSummaryBar article {
  align-items: center; display: flex; flex-direction: column; gap: 6px; justify-content: center;
  min-height: 132px; padding: 22px; position: relative;
}
.personalSummaryBar article + article::before {
  background: rgba(255, 255, 255, 0.1); content: ""; inset: 22px auto 22px 0;
  position: absolute; width: 1px;
}
.personalSummaryBar strong {
  color: #ffba52; font-size: clamp(34px, 4vw, 50px); letter-spacing: -0.05em; line-height: 0.95;
}
.personalSummaryBar strong small {
  color: rgba(255, 255, 255, 0.65); font-size: 16px; letter-spacing: 0; margin-left: 4px;
}
.personalSummaryBar span {
  color: rgba(255, 255, 255, 0.66); font-size: 11px; font-weight: 850;
  letter-spacing: 0.11em; text-transform: uppercase;
}
.personalWorkspace {
  display: grid; gap: 20px; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.8fr);
}
.personalChecklistPanel, .personalCalendarPanel {
  background: #fff; border: 1px solid rgba(28, 51, 40, 0.11); border-radius: 26px;
  box-shadow: 0 18px 46px rgba(28, 51, 40, 0.07); padding: 24px;
}
.personalPanelHeader {
  align-items: flex-start; display: flex; gap: 18px; justify-content: space-between; margin-bottom: 18px;
}
.personalPanelHeader p {
  color: rgba(28, 51, 40, 0.5); font-size: 10px; font-weight: 850; letter-spacing: 0.11em;
  margin: 0 0 5px; text-transform: uppercase;
}
.personalPanelHeader h2 { color: #1c3328; font-size: 20px; margin: 0; }
.personalPanelHeader > span {
  background: #eef1ed; border-radius: 999px; color: #1c3328; flex: 0 0 auto;
  font-size: 11px; font-weight: 850; padding: 8px 12px;
}
.personalPastNotice {
  align-items: center; background: #fff7e9; border: 1px solid rgba(255, 186, 82, 0.5);
  border-radius: 16px; color: #6d5129; display: flex; font-size: 12px; font-weight: 750;
  gap: 12px; justify-content: space-between; margin-bottom: 14px; padding: 10px 12px 10px 15px;
}
.personalPastNotice button {
  background: #ffba52; border: 0; border-radius: 999px; color: #1c3328; cursor: pointer;
  font: inherit; font-size: 11px; font-weight: 850; padding: 8px 13px;
}
.personalChecklist { display: grid; gap: 9px; }
.personalChecklistRow {
  align-items: center; appearance: none; background: #f6f7f4; border: 1px solid rgba(28, 51, 40, 0.08);
  border-radius: 17px; color: #1c3328; display: grid; font: inherit; gap: 12px;
  grid-template-columns: 28px minmax(0, 1fr) auto; min-height: 58px; padding: 10px 14px;
  text-align: left; transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; width: 100%;
}
button.personalChecklistRow { cursor: pointer; }
button.personalChecklistRow:hover {
  background: #fff; border-color: rgba(28, 51, 40, 0.22);
  box-shadow: 0 8px 22px rgba(28, 51, 40, 0.08); transform: translateY(-1px);
}
button.personalChecklistRow:disabled { cursor: wait; opacity: 0.75; }
.personalChecklistRow.complete { background: #edf8f0; border-color: rgba(42, 147, 78, 0.24); }
.personalChecklistRow.automatic { cursor: default; }
.personalChecklistRow strong { font-size: 14px; font-weight: 800; }
.personalChecklistRow small {
  color: rgba(28, 51, 40, 0.5); font-size: 10px; font-weight: 750; text-align: right;
}
.personalCheckBox {
  align-items: center; background: #fff; border: 2px solid rgba(28, 51, 40, 0.25);
  border-radius: 8px; color: #fff; display: flex; font-size: 14px; font-weight: 900;
  height: 25px; justify-content: center; width: 25px;
}
.personalChecklistRow.complete .personalCheckBox { background: #2a934e; border-color: #2a934e; }
.personalChecklistRow.automatic .personalCheckBox { border-style: dashed; }
.personalCompletionTrack {
  background: #e8ece7; border-radius: 999px; height: 8px; margin-top: 20px; overflow: hidden;
}
.personalCompletionTrack span {
  background: linear-gradient(90deg, #1c3328, #ffba52); border-radius: inherit;
  display: block; height: 100%; transition: width 220ms ease;
}
.personalCompletionCopy {
  color: rgba(28, 51, 40, 0.56); display: flex; font-size: 11px; font-weight: 800;
  justify-content: space-between; margin-top: 8px;
}
.personalCompletionCopy strong { color: #1c3328; }
.personalWeekdays, .personalCalendarGrid {
  display: grid; gap: 7px; grid-template-columns: repeat(7, minmax(0, 1fr));
}
.personalWeekdays {
  color: rgba(28, 51, 40, 0.43); font-size: 10px; font-weight: 850; margin-bottom: 7px; text-align: center;
}
.personalCalendarGrid button {
  aspect-ratio: 1 / 1; background: #f1f3ef; border: 1px solid transparent; border-radius: 12px;
  color: rgba(28, 51, 40, 0.72); cursor: pointer; display: grid; font: inherit; font-size: 12px;
  font-weight: 800; place-content: center; transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.personalCalendarGrid button:hover { transform: translateY(-1px); }
.personalCalendarGrid button.complete { background: #dff3e5; color: #1f783d; }
.personalCalendarGrid button.partial { background: #fff1d8; color: #735422; }
.personalCalendarGrid button.zero { background: #f0f1ee; }
.personalCalendarGrid button.future {
  background: #f7f8f6; color: rgba(28, 51, 40, 0.2); cursor: default;
}
.personalCalendarGrid button.future:hover { transform: none; }
.personalCalendarGrid button.selected {
  border-color: #ffba52; box-shadow: 0 0 0 2px rgba(255, 186, 82, 0.4);
}
.personalCalendarGrid button small { font-size: 8px; margin-top: 1px; opacity: 0.56; }
.personalCalendarLegend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.personalCalendarLegend span {
  align-items: center; color: rgba(28, 51, 40, 0.55); display: inline-flex;
  font-size: 10px; font-weight: 750; gap: 5px;
}
.personalCalendarLegend i { border-radius: 4px; display: block; height: 10px; width: 10px; }
.personalCalendarLegend i.complete { background: #78c78d; }
.personalCalendarLegend i.partial { background: #f4bd62; }
.personalCalendarLegend i.zero { background: #d8dcd6; }
.personalAutomaticNote {
  color: rgba(28, 51, 40, 0.48); font-size: 10px; font-weight: 700; line-height: 1.45; margin: 16px 0 0;
}
@media (max-width: 1040px) {
  .personalWorkspace { grid-template-columns: 1fr; }
  .personalCalendarPanel { max-width: 560px; }
}
@media (max-width: 680px) {
  .personalSummaryBar { border-radius: 22px; }
  .personalSummaryBar article { min-height: 98px; padding: 15px 8px; }
  .personalSummaryBar strong { font-size: 31px; }
  .personalSummaryBar span { font-size: 8px; letter-spacing: 0.06em; text-align: center; }
  .personalChecklistPanel, .personalCalendarPanel { border-radius: 21px; padding: 15px; }
  .personalChecklistRow { grid-template-columns: 27px minmax(0, 1fr); }
  .personalChecklistRow small { grid-column: 2; text-align: left; }
  .personalPastNotice { align-items: flex-start; flex-direction: column; }
  .personalCalendarGrid { gap: 5px; }
  .personalCalendarGrid button { border-radius: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .personalChecklistRow, .personalCompletionTrack span, .personalCalendarGrid button { transition: none; }
}
