@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap");
@import url("https://unpkg.com/leaflet@1.9.4/dist/leaflet.css");

:root {
  --bg: #08060a;
  --bg-soft: #120d16;
  --panel: rgba(17, 12, 23, 0.88);
  --panel-solid: #110d16;
  --text: #f6f1ed;
  --muted: #bfb6c6;
  --border: rgba(255, 255, 255, 0.08);
  --brand: #53c7f0;
  --brand-deep: #1a6b86;
  --accent: #7cdcff;
  --accent-soft: rgba(83, 199, 240, 0.16);
  --brand-rgb: 83, 199, 240;
  --accent-rgb: 124, 220, 255;
  --danger: #ff7a66;
  --success: #73d39c;
  --success-rgb: 115, 211, 156;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.36);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --surface-raised: rgba(17, 12, 23, 0.96);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --input-bg: rgba(8, 6, 10, 0.92);
  --input-border: rgba(255, 255, 255, 0.12);
  --topbar-bg: rgba(10, 7, 13, 0.88);
}

:root[data-theme-mode="light"] {
  --bg: #f5efe6;
  --bg-soft: #efe2d1;
  --panel: rgba(255, 250, 243, 0.86);
  --panel-solid: #fff9f2;
  --text: #1e2833;
  --muted: #5f6b74;
  --border: rgba(30, 40, 51, 0.12);
  --danger: #ba503a;
  --success: #1f7d4f;
  --success-rgb: 31, 125, 79;
  --shadow: 0 22px 65px rgba(31, 31, 31, 0.11);
  --surface-soft: rgba(255, 255, 255, 0.55);
  --surface-raised: rgba(255, 255, 255, 0.74);
  --surface-hover: rgba(255, 255, 255, 0.92);
  --input-bg: rgba(255, 255, 255, 0.78);
  --input-border: rgba(30, 40, 51, 0.14);
  --topbar-bg: rgba(250, 245, 239, 0.86);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(var(--brand-rgb), 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 215, 120, 0.08), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 48%, var(--bg) 100%);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.shell {
  padding-bottom: 56px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 22px;
}

.jobs-container-wide {
  max-width: min(1760px, calc(100vw - 28px));
}

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

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

.row.wrap {
  flex-wrap: wrap;
}

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

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

.field-grow {
  flex: 1 1 320px;
}

.actions-inline {
  align-items: flex-end;
}

.page-header {
  justify-content: space-between;
  margin-bottom: 14px;
}

@media (min-width: 920px) {
  .grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  background: var(--topbar-bg);
}

.topbar-inner {
  width: min(1540px, calc(100vw - 12px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-block {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand-link {
  text-decoration: none;
}

.brand {
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.86rem;
}

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

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  transition: 180ms ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(var(--brand-rgb), 0.14);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--accent);
  font-size: 0.76rem;
}

.topbar-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-signout {
  min-height: 44px;
  padding-inline: 18px;
}

.nav-toggle {
  display: none;
  width: 50px;
  height: 50px;
  padding: 0;
  margin-left: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

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

.hero {
  max-width: 1140px;
  margin: 22px auto 0;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid rgba(var(--brand-rgb), 0.18);
  background:
    linear-gradient(135deg, rgba(17, 25, 36, 0.95), rgba(9, 16, 24, 0.88)),
    linear-gradient(135deg, rgba(var(--brand-rgb), 0.08), rgba(var(--accent-rgb), 0.05));
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

@media (min-width: 920px) {
  .hero {
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    align-items: end;
  }
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1rem;
}

.hero-text,
.muted,
small {
  color: var(--muted);
}

.hero-text {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  gap: 12px;
}

.hero-stat {
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(var(--brand-rgb), 0.1);
}

.hero-stat .label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stat strong {
  font-size: 1.1rem;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.auth-screen {
  width: min(520px, 100%);
}

.auth-card {
  border: 1px solid rgba(var(--brand-rgb), 0.18);
  border-radius: 30px;
  padding: clamp(24px, 4vw, 34px);
  background:
    linear-gradient(180deg, rgba(19, 14, 25, 0.96), rgba(11, 8, 16, 0.98)),
    linear-gradient(135deg, rgba(var(--brand-rgb), 0.08), rgba(255, 215, 120, 0.05));
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.auth-card-header {
  display: grid;
  gap: 8px;
}

.auth-card-header h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 0.98;
}

.auth-card-subtitle {
  margin: 0;
  color: var(--muted);
}

.auth-provider-row {
  display: grid;
  gap: 12px;
}

.auth-form-grid {
  gap: 14px;
}

.auth-action-row {
  justify-content: flex-start;
}

.auth-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--border);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  padding: 0 10px;
  background: rgba(15, 10, 19, 0.96);
}

.panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.route-loading-panel {
  min-height: 180px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.panel-accent {
  background:
    linear-gradient(180deg, rgba(var(--brand-rgb), 0.12), rgba(15, 22, 31, 0.92));
}

.status-card {
  display: grid;
  gap: 8px;
  min-height: 172px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(18, 26, 37, 0.86);
  box-shadow: var(--shadow);
}

.status-card.ready {
  border-color: rgba(var(--brand-rgb), 0.24);
}

.status-card.pending {
  border-color: rgba(var(--accent-rgb), 0.24);
}

.status-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-card.ready .status-pill {
  background: rgba(var(--brand-rgb), 0.16);
  color: var(--brand);
}

.status-card.pending .status-pill {
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--accent);
}

.status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 30, 42, 0.94), rgba(11, 17, 24, 0.84));
  box-shadow: var(--shadow);
}

.metric-card.tone-brand {
  border-color: rgba(var(--brand-rgb), 0.22);
}

.metric-card.tone-accent {
  border-color: rgba(var(--accent-rgb), 0.26);
}

.metric-value {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.metric-label {
  margin-top: 8px;
  color: var(--muted);
}

.dashboard-command-center {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.dashboard-command-card {
  display: grid;
  align-content: space-between;
  gap: 14px;
  min-height: 150px;
  min-width: 0;
  padding: 14px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard-command-card > div {
  min-width: 0;
}

.dashboard-command-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-command-card strong {
  display: block;
  margin-top: 5px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.dashboard-command-card small {
  display: -webkit-box;
  margin-top: 7px;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--muted);
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dashboard-command-card.tone-brand {
  border-color: rgba(var(--brand-rgb), 0.3);
  background: rgba(var(--brand-rgb), 0.055);
}

.dashboard-command-card.tone-brand span {
  color: var(--accent);
}

.dashboard-command-card.tone-warn {
  border-color: rgba(255, 122, 102, 0.28);
  background: rgba(255, 122, 102, 0.045);
}

.dashboard-command-card.tone-warn span {
  color: var(--danger);
}

.dashboard-command-card .button-link {
  justify-self: start;
  max-width: 100%;
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.7rem;
  white-space: normal;
}

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

.dashboard-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.dashboard-secondary-section {
  display: grid;
  gap: 14px;
}

.dashboard-secondary-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-secondary-head h2 {
  margin: 0;
}

.dashboard-secondary-head p {
  margin: 4px 0 0;
}

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

.dashboard-snapshot-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  min-height: 210px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.dashboard-snapshot-card.tone-warn {
  border-color: rgba(255, 122, 102, 0.24);
  background: rgba(255, 122, 102, 0.035);
}

.dashboard-snapshot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-snapshot-head > div {
  min-width: 0;
}

.dashboard-snapshot-head span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-snapshot-head strong {
  display: block;
  margin-top: 4px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.15;
}

.dashboard-snapshot-head .button-link {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.68rem;
}

.dashboard-snapshot-list {
  display: grid;
  gap: 8px;
}

.dashboard-snapshot-row {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
}

.dashboard-snapshot-row strong,
.dashboard-snapshot-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-snapshot-row strong {
  font-size: 0.92rem;
}

.dashboard-snapshot-row span,
.dashboard-snapshot-empty {
  color: var(--muted);
  font-size: 0.86rem;
}

.dashboard-snapshot-empty {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.02);
}

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

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

@media (max-width: 700px) {
  .dashboard-command-center {
    grid-template-columns: 1fr;
  }

  .dashboard-utility-row {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-focus-grid,
  .dashboard-secondary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-secondary-head,
  .dashboard-snapshot-head {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-snapshot-head .button-link {
    justify-self: start;
  }
}

.dashboard-grid {
  align-items: start;
}

.collapsible-header {
  cursor: pointer;
  user-select: none;
}

.collapse-chevron {
  font-size: 0.7rem;
  color: var(--muted);
  flex-shrink: 0;
}

.collapsible-panel.is-collapsed {
  padding-bottom: 14px;
}

.planner-top-grid {
  align-items: stretch;
}

.planner-map {
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(6, 11, 17, 0.92);
}

.planner-panel-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  background: transparent;
  border: 0;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.planner-panel-toggle > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.planner-panel-toggle h2,
.planner-panel-toggle p {
  margin: 0;
}

.planner-panel-toggle:hover,
.planner-panel-toggle:focus-visible {
  transform: none;
  background: transparent;
  border-color: transparent;
}

.planner-panel-toggle:focus-visible {
  outline: 2px solid rgba(var(--brand-rgb), 0.38);
  outline-offset: 6px;
}

.planner-panel-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1;
  flex-shrink: 0;
  transition: 180ms ease;
}

.planner-panel-toggle:hover .planner-panel-pill,
.planner-panel-toggle:focus-visible .planner-panel-pill {
  border-color: rgba(var(--brand-rgb), 0.28);
  color: var(--text);
  background: rgba(var(--brand-rgb), 0.12);
}

.planner-calendar-shell {
  display: grid;
  gap: 14px;
}

.planner-calendar-toolbar,
.planner-calendar-jump {
  justify-content: space-between;
  align-items: center;
}

.planner-calendar-title-wrap {
  display: grid;
  gap: 4px;
  min-width: 180px;
}

.planner-calendar-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.planner-calendar-grid-labels,
.planner-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.planner-calendar-grid-labels span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.planner-calendar-day {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 88px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(16, 24, 34, 0.94), rgba(10, 15, 22, 0.9));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  text-align: left;
}

.planner-calendar-day:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--brand-rgb), 0.26);
}

.planner-calendar-day.selected {
  border-color: rgba(var(--brand-rgb), 0.42);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.18) inset;
}

.planner-calendar-day.today {
  background: linear-gradient(180deg, rgba(var(--brand-rgb), 0.16), rgba(10, 15, 22, 0.92));
}

.planner-calendar-day.outside-month {
  opacity: 0.5;
}

.planner-calendar-date {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.planner-calendar-meta {
  display: grid;
  gap: 6px;
}

.planner-stop-row {
  align-items: flex-start;
}

.planner-stop-side {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 160px;
}

.planner-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

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

.planner-time-labels {
  display: grid;
  grid-template-rows: repeat(var(--planner-hours, 8), 84px);
  position: relative;
}

.planner-time-label {
  min-height: 84px;
  padding-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.planner-time-label-end {
  position: absolute;
  left: 0;
  bottom: -6px;
  min-height: 0;
  padding-top: 0;
}

.planner-time-grid {
  position: relative;
  min-height: calc(var(--planner-hours, 8) * 84px);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.94), rgba(10, 15, 22, 0.88));
}

.planner-time-slot {
  height: 84px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.planner-time-slot:first-child {
  border-top: 0;
}

.planner-time-block {
  position: absolute;
  padding: 10px 10px 8px;
  border-radius: 18px;
  border: 1px solid rgba(var(--brand-rgb), 0.24);
  background: linear-gradient(180deg, rgba(var(--brand-rgb), 0.22), rgba(24, 47, 70, 0.94));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.planner-time-block:hover,
.planner-time-block:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(var(--brand-rgb), 0.38);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.planner-time-block:focus-visible {
  outline: 2px solid rgba(var(--brand-rgb), 0.42);
  outline-offset: 2px;
}

.planner-time-block-time,
.planner-time-block-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.planner-time-block-time {
  font-size: 0.82rem;
  color: rgba(255, 248, 243, 0.82);
}

.planner-time-block-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fffaf6;
  line-height: 1.15;
}

.planner-time-block-meta {
  font-size: 0.82rem;
  color: rgba(255, 248, 243, 0.78);
  line-height: 1.28;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.planner-time-block-action {
  margin-top: auto;
  padding-top: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 248, 243, 0.82);
}

.planner-time-block-mini {
  padding: 10px 10px 8px;
  gap: 3px;
}

.planner-time-block-mini .planner-time-block-time {
  font-size: 0.76rem;
}

.planner-time-block-mini .planner-time-block-title {
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.planner-time-block-mini .planner-time-block-meta,
.planner-time-block-mini .planner-time-block-action {
  display: none;
}

.planner-time-block-compact {
  padding-bottom: 9px;
}

.planner-time-block-compact .planner-time-block-title {
  font-size: 0.95rem;
}

.planner-time-block-compact .planner-time-block-meta + .planner-time-block-meta,
.planner-time-block-compact .planner-time-block-action {
  display: none;
}

.planner-time-block-standard .planner-time-block-title,
.planner-time-block-expanded .planner-time-block-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.planner-time-block-expanded .planner-time-block-meta:last-of-type {
  -webkit-line-clamp: 2;
}

.reschedule-week-grid,
.reschedule-shell {
  display: grid;
  gap: 14px;
}

.reschedule-week-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.reschedule-week-summary {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  flex: 1 1 auto;
  min-width: 0;
}

.reschedule-week-summary strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.reschedule-week-summary span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.reschedule-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.reschedule-day-button {
  display: grid;
  justify-items: start;
  gap: 4px;
  min-height: 88px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18, 28, 39, 0.9), rgba(10, 16, 23, 0.82));
  text-align: left;
}

.reschedule-day-button.active {
  border-color: rgba(var(--brand-rgb), 0.34);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.14) inset;
  background: linear-gradient(180deg, rgba(var(--brand-rgb), 0.18), rgba(10, 16, 23, 0.88));
}

.reschedule-day-button-label {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
}

.reschedule-day-button-date,
.reschedule-day-count {
  color: var(--muted);
  font-size: 0.88rem;
}

.reschedule-day-detail {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18, 28, 39, 0.9), rgba(10, 16, 23, 0.84));
}

.reschedule-day-detail-header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}

.reschedule-selection-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.reschedule-selection-bar.compact {
  justify-content: flex-start;
}

.reschedule-selection-summary {
  display: grid;
  gap: 4px;
}

.reschedule-selection-summary strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.98rem;
}

.reschedule-selection-summary span {
  color: var(--muted);
  font-size: 0.92rem;
}

.reschedule-timeline-shell {
  --reschedule-hour-height: 64px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.reschedule-time-labels {
  display: grid;
  grid-template-rows: repeat(12, var(--reschedule-hour-height));
}

.reschedule-time-label {
  height: var(--reschedule-hour-height);
  color: var(--muted);
  font-size: 0.88rem;
  transform: translateY(-0.6rem);
}

.reschedule-time-grid {
  position: relative;
  min-height: calc(12 * var(--reschedule-hour-height));
  border-radius: 22px;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: crosshair;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent calc(var(--reschedule-hour-height) / 4)
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent var(--reschedule-hour-height)
    ),
    linear-gradient(180deg, rgba(9, 15, 22, 0.92), rgba(12, 20, 28, 0.88));
}

.reschedule-time-hour {
  height: var(--reschedule-hour-height);
}

.reschedule-slot-block,
.reschedule-selected-block {
  position: absolute;
  left: 12px;
  right: 12px;
  border-radius: 18px;
}

.reschedule-busy-block {
  position: absolute;
  border-radius: 18px;
  z-index: 2;
  padding: 10px 12px;
  border: 1px solid rgba(104, 175, 255, 0.24);
  background: linear-gradient(180deg, rgba(59, 120, 255, 0.28), rgba(36, 73, 150, 0.22));
  overflow: hidden;
}

.reschedule-busy-title {
  font-weight: 700;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.reschedule-busy-meta {
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(255, 248, 243, 0.82);
}

.reschedule-slot-block {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 14px;
  padding: 0 10px;
  border: 1px dashed rgba(var(--brand-rgb), 0.24);
  background: rgba(var(--brand-rgb), 0.08);
  text-align: left;
  transform: translateY(-50%);
  overflow: hidden;
  box-shadow: none;
}

.reschedule-slot-block.clean {
  border-color: rgba(var(--brand-rgb), 0.34);
  background: rgba(var(--brand-rgb), 0.12);
}

.reschedule-slot-block.watch {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.1);
}

.reschedule-slot-block-time {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 160ms ease;
}

.reschedule-slot-block:hover,
.reschedule-slot-block:focus-visible {
  z-index: 3;
  background: rgba(var(--brand-rgb), 0.2);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.18);
}

.reschedule-slot-block:hover .reschedule-slot-block-time,
.reschedule-slot-block:focus-visible .reschedule-slot-block-time {
  opacity: 1;
}

.reschedule-selected-block {
  z-index: 4;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--brand-rgb), 0.44);
  background: linear-gradient(180deg, rgba(var(--brand-rgb), 0.34), rgba(var(--brand-rgb), 0.18));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  cursor: grab;
}

.reschedule-selected-block.dragging {
  cursor: grabbing;
}

.reschedule-selected-chip {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11, 18, 25, 0.42);
  color: #fff7f2;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.reschedule-selected-time {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fffaf6;
  line-height: 1.1;
}

.planner-map-index {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  border: 0;
  border-radius: 999px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--panel-solid);
  color: var(--text);
}

.leaflet-control-attribution,
.leaflet-control-attribution a {
  color: var(--muted);
}

.section-header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.collapsible-header {
  margin-bottom: 0;
}

.collapsible-panel-body {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.collapsible-panel-body.closed {
  display: none;
}

.activity-list {
  display: grid;
  gap: 12px;
}

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

.dropbox-reuse-summary-panel {
  display: grid;
  gap: 14px;
}

.dropbox-reuse-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.dropbox-reuse-summary-count {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.dropbox-media-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18, 29, 40, 0.9), rgba(10, 17, 25, 0.82));
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.dropbox-media-card:hover {
  border-color: rgba(var(--brand-rgb), 0.28);
  background: linear-gradient(180deg, rgba(var(--brand-rgb), 0.12), rgba(10, 17, 25, 0.9));
  transform: translateY(-1px);
}

.dropbox-media-card.selected {
  border-color: rgba(var(--brand-rgb), 0.42);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.18) inset;
}

.dropbox-media-card input[type="checkbox"] {
  justify-self: start;
}

.dropbox-media-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
}

.dropbox-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dropbox-media-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.dropbox-media-body {
  display: grid;
  gap: 4px;
}

.dropbox-media-body strong {
  font-size: 0.95rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.dropbox-media-body span {
  color: var(--muted);
  font-size: 0.86rem;
}

.dropbox-media-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(3, 8, 13, 0.7);
  backdrop-filter: blur(8px);
}

body.modal-open {
  overflow: hidden;
}

.dropbox-media-modal {
  width: min(1180px, calc(100vw - 40px));
  max-height: min(84vh, 980px);
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(16, 25, 35, 0.98), rgba(8, 14, 20, 0.96));
  box-shadow: var(--shadow);
}

.dropbox-media-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.dropbox-media-modal-head h3 {
  margin-bottom: 6px;
}

.dropbox-media-modal-actions {
  justify-content: flex-start;
}

.dropbox-media-modal-grid {
  overflow: auto;
  padding-right: 6px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.dropbox-media-card-modal {
  gap: 12px;
  padding: 14px;
}

.dropbox-media-thumb-large {
  aspect-ratio: 1 / 1;
  min-height: 180px;
}

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

.ops-preset {
  display: grid;
  justify-items: start;
  gap: 4px;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18, 28, 39, 0.92), rgba(11, 18, 25, 0.84));
  text-align: left;
}

.ops-preset strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.98rem;
}

.ops-preset span {
  color: var(--muted);
  font-size: 0.92rem;
}

.ops-preset.active {
  border-color: rgba(var(--brand-rgb), 0.42);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.18) inset;
  background: linear-gradient(180deg, rgba(var(--brand-rgb), 0.18), rgba(12, 20, 28, 0.88));
}

.ops-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.ops-selection-summary {
  display: grid;
  gap: 4px;
}

.ops-selection-summary strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.ops-selection-summary span {
  color: var(--muted);
}

.ops-lanes {
  display: grid;
  gap: 18px;
}

.ops-lane {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 23, 32, 0.9), rgba(9, 15, 22, 0.82));
}

.ops-lane-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.ops-lane-header h3 {
  margin-bottom: 4px;
}

.ops-lane-count {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--brand-rgb), 0.18);
  background: rgba(var(--brand-rgb), 0.1);
  color: var(--brand);
  font-size: 0.88rem;
  white-space: nowrap;
}

.activity-row {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.activity-row.selectable {
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 18px;
  transition: background 180ms ease, border-color 180ms ease;
}

.activity-row.selectable.selected {
  background: rgba(var(--brand-rgb), 0.08);
  border-color: rgba(var(--brand-rgb), 0.18);
}

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

.activity-select {
  display: flex;
  align-items: flex-start;
  padding-top: 3px;
}

.activity-select input {
  accent-color: var(--brand);
}

.activity-main {
  display: grid;
  gap: 5px;
  flex: 1 1 auto;
}

.activity-title {
  font-weight: 700;
}

.activity-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.status-dot.tone-brand {
  color: var(--brand);
  border-color: rgba(var(--brand-rgb), 0.22);
}

.status-dot.tone-accent {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.24);
}

.status-dot.tone-neutral {
  color: var(--muted);
}

.status-dot.tone-danger {
  color: var(--danger);
  border-color: rgba(255, 122, 102, 0.26);
}

.status-dot.tone-ok {
  color: var(--success);
  border-color: rgba(var(--success-rgb), 0.24);
}

.status-dot.tone-warn {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.24);
}

.status-dot.tone-risk {
  color: var(--danger);
  border-color: rgba(255, 122, 102, 0.26);
}

.status-dot.tone-pending {
  color: var(--muted);
}

.empty-state {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed var(--border);
  color: var(--muted);
  background: var(--surface-soft);
}

.jobs-board-controls-hidden {
  display: none;
}

.jobs-page-shell {
  display: grid;
  gap: 16px;
}

.jobs-page-shell-calendar {
  grid-template-columns: minmax(0, 1fr);
}

.jobs-board-panel-calendar {
  min-width: 0;
}

.jobs-create-panel-wrap {
  display: grid;
  justify-content: center;
}

.jobs-create-panel {
  width: 100%;
}

.jobs-page-shell-calendar .jobs-create-panel {
  max-width: 920px;
}

.jobs-create-toggle {
  width: 100%;
  min-height: 0;
  padding: 0 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}

.jobs-create-toggle:hover,
.jobs-create-toggle:focus-visible {
  transform: none;
  background: transparent;
}

.jobs-create-panel .collapsible-panel-body {
  padding-top: 0;
}

.booking-create-container {
  max-width: min(1440px, calc(100vw - 40px));
}

.booking-create-source {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
  align-items: stretch;
}

.booking-create-source-main,
.booking-create-client-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.booking-create-source-main > span,
.booking-create-client-card > span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.booking-create-source-main h2 {
  margin: 8px 0 8px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.booking-create-source-main p,
.booking-create-client-card p {
  margin: 10px 0 0;
}

.booking-create-source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
}

.booking-create-client-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.booking-create-client-card strong {
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.jobs-page-shell.booking-create-mode {
  display: block;
}

.jobs-page-shell.booking-create-mode .jobs-board-panel {
  display: none;
}

.jobs-page-shell.booking-create-mode .jobs-create-panel-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.jobs-page-shell.booking-create-mode .jobs-create-panel {
  width: 100%;
}

.jobs-page-shell.booking-create-mode .jobs-create-toggle {
  cursor: default;
}

.booking-create-submit-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.booking-create-submit-row .primary {
  min-width: 220px;
}

.booking-return-choice {
  min-height: 44px;
}

@media (max-width: 900px) {
  .booking-create-container {
    max-width: min(100%, calc(100vw - 24px));
  }

  .booking-create-source {
    grid-template-columns: 1fr;
  }

  .booking-create-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-create-submit-row .primary {
    width: 100%;
  }
}

.jobs-board-filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.jobs-board-filter-grid .notice {
  grid-column: 1 / -1;
}

.jobs-board-calendar-toolbar {
  align-items: stretch;
  padding: 14px 16px;
}

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

.jobs-calendar-layout-stack {
  gap: 18px;
}

.jobs-calendar-surface-panel,
.jobs-calendar-agenda-wrap {
  min-width: 0;
}

.jobs-calendar-surface-panel {
  display: grid;
  gap: 14px;
}

.jobs-calendar-shell {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.jobs-calendar-grid-labels,
.jobs-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.jobs-calendar-grid-labels span {
  padding-left: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.jobs-calendar-day {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 150px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 23, 32, 0.92), rgba(9, 16, 24, 0.84));
  text-align: left;
}

.jobs-calendar-day:hover {
  border-color: rgba(var(--brand-rgb), 0.28);
  background: linear-gradient(180deg, rgba(var(--brand-rgb), 0.12), rgba(9, 16, 24, 0.9));
}

.jobs-calendar-day.selected {
  border-color: rgba(var(--brand-rgb), 0.42);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.16) inset;
}

.jobs-calendar-day.today {
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.22) inset;
}

.jobs-calendar-day.outside-month {
  opacity: 0.56;
}

.jobs-calendar-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.jobs-calendar-date {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.jobs-weather-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(var(--brand-rgb), 0.18);
  background: rgba(var(--brand-rgb), 0.1);
  color: var(--brand);
  font-size: 0.76rem;
  white-space: nowrap;
}

.jobs-weather-icon {
  width: 14px;
  height: 14px;
  position: relative;
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.92;
}

.jobs-weather-icon[data-weather-icon="cloud"] {
  border-radius: 999px;
  width: 16px;
  height: 10px;
  top: 2px;
}

.jobs-weather-icon[data-weather-icon="cloud-sun"]::after,
.jobs-weather-icon[data-weather-icon="fog"]::after,
.jobs-weather-icon[data-weather-icon="drizzle"]::after,
.jobs-weather-icon[data-weather-icon="rain"]::after,
.jobs-weather-icon[data-weather-icon="snow"]::after,
.jobs-weather-icon[data-weather-icon="storm"]::after {
  content: "";
  position: absolute;
  inset: 0;
}

.jobs-weather-icon[data-weather-icon="cloud-sun"] {
  border-radius: 999px;
  width: 16px;
  height: 10px;
  top: 2px;
}

.jobs-weather-icon[data-weather-icon="cloud-sun"]::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 210, 115, 0.9);
  left: -2px;
  top: -3px;
}

.jobs-weather-icon[data-weather-icon="fog"] {
  border-radius: 999px;
  width: 16px;
  height: 8px;
  top: 3px;
}

.jobs-weather-icon[data-weather-icon="fog"]::after {
  width: 16px;
  height: 2px;
  background: currentColor;
  left: 0;
  top: 10px;
  box-shadow: 0 4px 0 currentColor;
  opacity: 0.82;
}

.jobs-weather-icon[data-weather-icon="drizzle"],
.jobs-weather-icon[data-weather-icon="rain"],
.jobs-weather-icon[data-weather-icon="snow"],
.jobs-weather-icon[data-weather-icon="storm"] {
  border-radius: 999px;
  width: 16px;
  height: 10px;
  top: 1px;
}

.jobs-weather-icon[data-weather-icon="drizzle"]::after,
.jobs-weather-icon[data-weather-icon="rain"]::after,
.jobs-weather-icon[data-weather-icon="snow"]::after {
  width: 2px;
  height: 6px;
  left: 3px;
  top: 10px;
  background: currentColor;
  box-shadow: 4px 0 0 currentColor, 8px 0 0 currentColor;
}

.jobs-weather-icon[data-weather-icon="snow"]::after {
  width: 4px;
  height: 4px;
  left: 2px;
  top: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 5px 1px 0 currentColor, 10px -1px 0 currentColor;
}

.jobs-weather-icon[data-weather-icon="storm"]::after {
  width: 8px;
  height: 10px;
  clip-path: polygon(35% 0, 100% 0, 58% 48%, 80% 48%, 28% 100%, 42% 58%, 18% 58%);
  background: rgba(255, 214, 92, 0.94);
  left: 4px;
  top: 8px;
}

.jobs-calendar-day-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.jobs-calendar-day-list {
  display: grid;
  gap: 6px;
}

.jobs-calendar-mini-job {
  display: block;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(var(--brand-rgb), 0.12);
  color: rgba(255, 248, 243, 0.92);
  font-size: 0.8rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jobs-week-calendar {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.jobs-week-scroll {
  overflow: visible;
  padding-bottom: 6px;
  min-width: 0;
}

.jobs-week-time-labels {
  display: grid;
}

.jobs-week-time-label {
  min-height: 52px;
  color: var(--muted);
  font-size: 0.82rem;
}

.jobs-week-columns {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.jobs-week-column {
  display: grid;
  gap: 10px;
}

.jobs-week-column-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.jobs-week-column.selected .jobs-week-column-header {
  border-color: rgba(var(--brand-rgb), 0.42);
  background: rgba(var(--brand-rgb), 0.1);
}

.jobs-week-column-header strong,
.jobs-week-column-header span {
  display: block;
}

.jobs-week-column-header span {
  color: var(--muted);
  font-size: 0.8rem;
}

.jobs-week-column-grid {
  position: relative;
  min-height: calc((20 - 8) * 52px);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.94), rgba(10, 15, 22, 0.88));
}

.jobs-week-hour-slot {
  height: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.jobs-week-hour-slot:first-child {
  border-top: 0;
}

.jobs-week-event {
  position: absolute;
  padding: 10px 10px 8px;
  border-radius: 18px;
  border: 1px solid rgba(var(--brand-rgb), 0.26);
  background: linear-gradient(180deg, rgba(var(--brand-rgb), 0.18), rgba(28, 49, 78, 0.94));
  display: grid;
  align-content: start;
  gap: 4px;
  color: #fffaf6;
  text-decoration: none;
  overflow: hidden;
  min-height: 44px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.jobs-week-event strong {
  font-size: 0.88rem;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jobs-week-event span {
  font-size: 0.75rem;
  color: rgba(255, 248, 243, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jobs-week-event.overlap {
  padding-inline: 8px;
}

.jobs-week-event.tight strong {
  font-size: 0.8rem;
}

.jobs-week-event.tight span {
  display: none;
}

.jobs-calendar-agenda-panel {
  margin: 0;
  position: static;
}

.jobs-calendar-agenda-panel .activity-list {
  display: grid;
  gap: 12px;
}

.job-command-bar {
  display: grid;
  gap: 14px;
}

.job-command-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.job-command-intro {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.job-command-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

.job-command-summary {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.06;
}

.job-primary-actions {
  align-items: center;
}

.job-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-inline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge-danger {
  color: var(--danger);
  border-color: rgba(255, 122, 102, 0.28);
  background: rgba(255, 122, 102, 0.08);
}

.job-detail-shell {
  display: grid;
  gap: 16px;
}

.job-detail-primary-grid {
  display: grid;
  gap: 16px;
  align-items: start;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.job-detail-primary-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.job-overview-panel,
.job-workflow-panel,
.job-workspace-panel {
  padding: 20px;
}

.job-workflow-panel {
  display: grid;
  gap: 14px;
}

.job-workflow-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.58fr);
  gap: 16px;
  align-items: start;
}

.job-workflow-head h2 {
  margin: 0 0 6px;
}

.job-workflow-status-field {
  display: grid;
  gap: 8px;
}

.job-workflow-attention {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(var(--brand-rgb), 0.18);
  background: rgba(255, 255, 255, 0.035);
}

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

.job-step-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 13, 20, 0.36);
}

.job-step-card.active {
  border-color: rgba(var(--brand-rgb), 0.34);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.12) inset;
}

.job-step-card.complete {
  background: linear-gradient(180deg, rgba(var(--brand-rgb), 0.12), rgba(255, 255, 255, 0.03));
}

.job-step-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.job-step-index,
.job-step-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.76rem;
}

.job-workspace-panel {
  display: grid;
  gap: 16px;
}

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

.job-workspace-tab {
  display: grid;
  gap: 4px;
  justify-items: flex-start;
  align-content: start;
  min-height: 0;
  padding: 12px 14px;
  border-radius: 18px;
  text-align: left;
}

.job-workspace-tab small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.job-workspace-tab.active {
  border-color: rgba(var(--brand-rgb), 0.34);
  background: linear-gradient(180deg, rgba(var(--brand-rgb), 0.14), rgba(255, 255, 255, 0.04));
}

.job-workspace-body {
  min-width: 0;
}

.job-workspace-pane {
  display: none;
}

.job-workspace-pane.active {
  display: block;
}

.job-detail-layout {
  display: grid;
  gap: 16px;
  align-items: start;
}

.job-detail-main,
.job-detail-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.job-detail-section {
  padding: 0;
  overflow: hidden;
}

.job-section-toggle {
  width: 100%;
  min-height: 0;
  padding: 18px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  box-shadow: none;
}

.job-section-toggle:hover,
.job-section-toggle:focus-visible {
  transform: none;
  background: rgba(255, 255, 255, 0.03);
}

.job-section-toggle h2 {
  margin: 0;
}

.job-section-toggle p {
  margin: 6px 0 0;
}

.job-section-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.84rem;
}

.job-section-body {
  padding: 0 20px 20px;
}

.job-section-body.closed {
  display: none;
}

.job-section-body.open {
  display: block;
}

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

.job-field-span-2 {
  grid-column: 1 / -1;
}

.job-inline-grid {
  display: grid;
  gap: 14px;
  align-items: start;
}

.job-inline-stack {
  display: grid;
  gap: 12px;
}

.job-subpanel {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  min-width: 0;
}

.job-subpanel h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.job-page-header {
  margin-bottom: 10px;
}

.task-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.task-row-actions button {
  min-height: 38px;
  padding: 8px 12px;
}

.job-task-list {
  display: grid;
  gap: 12px;
}

.job-task-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.job-task-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.job-task-card-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
}

.job-task-card-subtitle {
  margin-top: 4px;
}

.job-task-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.job-task-card-body {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.job-task-due-inline {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.job-task-due-inline label {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.job-task-controls {
  display: grid;
  gap: 10px;
  align-items: stretch;
}

.job-task-status-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.job-task-status-group button,
.job-task-utility-actions button {
  min-height: 38px;
  padding: 8px 12px;
}

.job-task-utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.jobs-board-panel {
  padding: 22px;
}

.jobs-create-panel-wrap {
  justify-content: stretch;
}

.jobs-page-shell-calendar .jobs-create-panel {
  max-width: 100%;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}

input[type="checkbox"] {
  width: auto;
}

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

.job-video-links-list {
  display: grid;
  gap: 10px;
}

.job-video-link-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.36fr) minmax(220px, 1fr) minmax(150px, 0.36fr) auto;
  gap: 10px;
  align-items: center;
}

.job-video-link-remove {
  min-width: 88px;
}

.project-units-panel {
  margin: 0;
}

.project-units-list {
  display: grid;
  gap: 10px;
}

.project-unit-head,
.project-unit-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.project-unit-head {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-unit-remove {
  min-width: 88px;
}

.delivery-folder-scan {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.delivery-folder-scan__head,
.delivery-folder-scan__grid {
  display: grid;
  gap: 10px;
}

.delivery-folder-scan__head {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.delivery-folder-scan__grid {
  margin-top: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.delivery-folder-scan__card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-raised);
}

.delivery-folder-scan__card.has-warnings {
  border-color: rgba(214, 83, 83, 0.45);
}

.delivery-folder-scan__title {
  font-weight: 700;
  margin-bottom: 6px;
}

@media (max-width: 760px) {
  .job-video-link-row {
    grid-template-columns: 1fr;
  }

  .project-unit-head {
    display: none;
  }

  .project-unit-row {
    grid-template-columns: 1fr;
  }

  .job-video-link-remove {
    justify-self: flex-start;
  }

  .project-unit-remove {
    justify-self: flex-start;
  }
}

.mono-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--input-border);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: 180ms ease;
}

button:hover,
.button-link:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--brand-rgb), 0.32);
  background: var(--surface-hover);
}

button.primary,
.primary-link {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff8f3;
  border-color: transparent;
}

button.danger {
  background: rgba(255, 122, 102, 0.1);
  border-color: rgba(255, 122, 102, 0.24);
  color: var(--danger);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.kpi {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.kpi .value {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
}

.notice {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(var(--brand-rgb), 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.notice.danger {
  border-color: rgba(255, 122, 102, 0.28);
  color: var(--danger);
}

.notice.success {
  border-color: rgba(var(--success-rgb), 0.34);
  background: rgba(var(--success-rgb), 0.12);
  color: var(--success);
}

.code,
.code-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.code {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(18, 24, 28, 0.92);
  color: #f7f1e8;
}

.code-inline {
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  background: rgba(var(--brand-rgb), 0.14);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

.checklist {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.checkpoint-list,
.timeline {
  display: grid;
  gap: 12px;
}

.checkpoint-row,
.timeline-entry {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

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

.checkpoint-main {
  display: grid;
  gap: 4px;
}

.checkpoint-title,
.timeline-title {
  font-weight: 700;
}

.checkpoint-meta,
.timeline-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.timeline-body {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  width: 100%;
  margin: 8px 0;
}

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

.theme-swatch {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--input-border);
  background: transparent;
}

.theme-swatch.active {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(var(--brand-rgb), 0.32);
  border-color: rgba(var(--brand-rgb), 0.62);
}

.theme-preview {
  display: flex;
  align-items: stretch;
}

.theme-preview-card {
  width: 100%;
  border-radius: 22px;
  padding: 18px;
  border: 1px solid rgba(var(--brand-rgb), 0.18);
  background:
    linear-gradient(180deg, rgba(var(--brand-rgb), 0.08), rgba(255, 255, 255, 0.03)),
    rgba(11, 17, 24, 0.82);
  box-shadow: var(--shadow);
}

@media (min-width: 960px) {
  .job-delivery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jobs-calendar-agenda-panel .activity-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1240px) {
  .job-command-bar {
    position: sticky;
    top: 82px;
    z-index: 8;
  }
}

@media (min-width: 1460px) {
  .job-production-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  }
}

@media (max-width: 1100px) {
  .brand-subtitle {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .topbar-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 18px;
    right: 18px;
    display: none;
    padding: 18px;
    border-radius: 26px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(19, 14, 25, 0.98), rgba(11, 8, 16, 0.98));
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  body.nav-open .topbar-menu {
    display: flex;
  }

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

  .nav a,
  .topbar-signout {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .job-overview-grid {
    grid-template-columns: 1fr;
  }

  .job-field-span-2 {
    grid-column: auto;
  }

  .job-task-card-head {
    align-items: flex-start;
  }

  .job-task-card-body {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .job-task-status-group {
    min-width: 0;
    width: 100%;
  }

  .job-detail-primary-grid,
  .job-workflow-head,
  .job-workspace-tabs {
    grid-template-columns: 1fr;
  }
}

:root[data-theme-mode="light"] .hero {
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.92), rgba(245, 232, 216, 0.84)),
    linear-gradient(135deg, rgba(var(--brand-rgb), 0.06), rgba(var(--accent-rgb), 0.05));
}

:root[data-theme-mode="light"] .hero-stat {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(var(--brand-rgb), 0.08);
}

:root[data-theme-mode="light"] .panel-accent {
  background:
    linear-gradient(180deg, rgba(var(--brand-rgb), 0.09), rgba(255, 250, 243, 0.95));
}

:root[data-theme-mode="light"] .status-card {
  background: rgba(255, 250, 243, 0.78);
}

:root[data-theme-mode="light"] .metric-card {
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(255, 255, 255, 0.7));
}

:root[data-theme-mode="light"] .ops-preset,
:root[data-theme-mode="light"] .ops-lane {
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(255, 255, 255, 0.76));
}

:root[data-theme-mode="light"] .planner-calendar-day {
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(255, 255, 255, 0.76));
}

:root[data-theme-mode="light"] .planner-time-grid {
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.86), rgba(255, 255, 255, 0.7));
}

:root[data-theme-mode="light"] .status-dot,
:root[data-theme-mode="light"] .badge,
:root[data-theme-mode="light"] .notice,
:root[data-theme-mode="light"] .empty-state,
:root[data-theme-mode="light"] button,
:root[data-theme-mode="light"] .button-link {
  background: var(--surface-raised);
}

:root[data-theme-mode="light"] .theme-preview-card {
  background:
    linear-gradient(180deg, rgba(var(--brand-rgb), 0.08), rgba(255, 255, 255, 0.7)),
    rgba(255, 250, 243, 0.85);
}

.location-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.location-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

@media (max-width: 760px) {
  .topbar {
    padding: 0 12px;
  }

  .topbar-inner {
    min-height: 68px;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .topbar-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    display: none;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(19, 14, 25, 0.98), rgba(11, 8, 16, 0.98));
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  body.nav-open .topbar-menu {
    display: flex;
  }

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

  .nav a,
  .topbar-signout {
    justify-content: center;
    width: 100%;
  }

  .section-header,
  .activity-row,
  .ops-bulk-bar,
  .ops-lane-header,
  .checkpoint-row,
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .panel,
  .status-card {
    border-radius: 20px;
  }

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

  .planner-time-labels {
    display: none;
  }

  .planner-calendar-grid-labels,
  .planner-calendar-grid {
    gap: 6px;
  }

  .planner-calendar-day {
    min-height: 72px;
    padding: 10px;
  }

  .planner-panel-toggle {
    gap: 12px;
  }

  .planner-panel-pill {
    min-width: 64px;
    min-height: 34px;
    padding: 7px 10px;
  }

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

  .reschedule-week-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .reschedule-week-summary {
    justify-items: start;
    text-align: left;
  }

  .reschedule-timeline-shell {
    grid-template-columns: 1fr;
  }

  .reschedule-time-labels {
    display: none;
  }

  .reschedule-day-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .jobs-calendar-layout {
    grid-template-columns: 1fr;
  }

  .jobs-calendar-agenda-panel {
    position: static;
  }

  .jobs-week-calendar {
    min-width: 680px;
  }
}

#lineItems {
  display: grid;
  gap: 12px;
}

.invoice-line-row {
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(113, 139, 168, 0.18);
  border-radius: 18px;
  background: rgba(14, 21, 30, 0.42);
}

.invoice-estimate-card {
  gap: 10px;
}

.invoice-estimate-grid {
  gap: 14px;
  align-items: center;
}

.invoice-estimate-grid > span {
  min-width: 120px;
}

.invoice-estimate-total {
  margin-left: auto;
}

.email-compose-body {
  min-height: 260px;
}

.datetime-picker {
  color-scheme: dark;
}

.datetime-picker::-webkit-calendar-picker-indicator {
  filter: invert(0.88);
  opacity: 0.9;
}

/* Snowchimp admin refresh — cyan/navy identity */
:root {
  --bg: #071019;
  --bg-soft: #0d1721;
  --panel: rgba(14, 21, 30, 0.82);
  --panel-solid: #0e151e;
  --text: #e7eef5;
  --muted: #8ea1b4;
  --border: rgba(255, 255, 255, 0.08);
  --brand: #53c7f0;
  --brand-deep: #1a6b86;
  --accent: #53c7f0;
  --accent-strong: #7cdcff;
  --accent-soft: rgba(83, 199, 240, 0.14);
  --brand-rgb: 83, 199, 240;
  --accent-rgb: 83, 199, 240;
  --danger: #ff7a66;
  --danger-rgb: 255, 122, 102;
  --warning: #ffc072;
  --success: #73d39c;
  --success-rgb: 115, 211, 156;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --surface-raised: rgba(14, 21, 30, 0.92);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --input-bg: rgba(7, 16, 25, 0.9);
  --input-border: rgba(255, 255, 255, 0.1);
  --topbar-bg: rgba(7, 12, 18, 0.78);
}

:root[data-theme-mode="light"] {
  --bg: #f4eee6;
  --bg-soft: #eadfce;
  --panel: rgba(255, 250, 243, 0.92);
  --panel-solid: #fff8ef;
  --text: #1e181d;
  --muted: #675d67;
  --border: rgba(30, 24, 29, 0.12);
  --surface-soft: rgba(255, 255, 255, 0.6);
  --surface-raised: rgba(255, 255, 255, 0.78);
  --surface-hover: rgba(255, 255, 255, 0.94);
  --input-bg: rgba(255, 255, 255, 0.9);
  --input-border: rgba(30, 24, 29, 0.16);
  --topbar-bg: rgba(249, 243, 235, 0.86);
  --shadow: 0 18px 44px rgba(31, 24, 30, 0.12);
}

body {
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(83, 199, 240, 0.10), transparent 30%),
    radial-gradient(circle at bottom right, rgba(83, 199, 240, 0.06), transparent 35%),
    linear-gradient(180deg, #071019 0%, #0d1721 48%, #071019 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 6, 10, 0.34), rgba(8, 6, 10, 0.72));
  opacity: 1;
}

:root[data-theme-mode="light"] body {
  background:
    radial-gradient(circle at top left, rgba(83, 199, 240, 0.08), transparent 28%),
    linear-gradient(180deg, #f4eee6 0%, #eadfce 48%, #f4eee6 100%);
}

h1,
h2,
h3,
.job-command-summary,
.auth-card-header h1,
.metric-value,
.jobs-calendar-date,
.planner-calendar-date,
.planner-calendar-title,
.jobs-week-event strong,
.job-step-card .checkpoint-title {
  font-family: "Space Grotesk", "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.brand-kicker,
.eyebrow,
.job-command-kicker,
.status-pill {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand-block {
  gap: 2px;
}

.brand {
  font-size: clamp(1.08rem, 1.4vw, 1.32rem);
  font-weight: 800;
}

.topbar {
  padding: 0 20px;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  background: transparent;
  transition:
    background 0.24s ease,
    border-color 0.24s ease,
    backdrop-filter 0.24s ease;
}

.topbar.scrolled {
  background: rgba(10, 7, 13, 0.88);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  width: min(1600px, calc(100vw - 20px));
  min-height: 84px;
  gap: 24px;
}

.topbar-menu {
  margin-left: auto;
  gap: 20px;
}

.nav {
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  position: relative;
  padding: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.active {
  background: transparent;
  color: var(--accent);
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav-pill {
  border-radius: 2px;
  background: rgba(83, 199, 240, 0.14);
  color: var(--accent);
}

.nav-toggle {
  width: 52px;
  height: 52px;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
}

.nav-toggle span {
  border-radius: 0;
  background: var(--text);
}

.hero,
.panel,
.status-card,
.metric-card,
.notice,
.empty-state,
.auth-card,
.jobs-calendar-day,
.jobs-week-column-header,
.jobs-week-column-grid,
.job-step-card,
.job-task-card,
.job-subpanel,
.planner-time-grid,
.planner-calendar-day,
.ops-preset,
.ops-lane,
.checkpoint-row,
.theme-preview-card {
  border-radius: 0;
}

.panel,
.status-card,
.metric-card,
.notice,
.empty-state,
.job-subpanel {
  background: linear-gradient(180deg, rgba(19, 14, 25, 0.94), rgba(12, 9, 17, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.hero {
  max-width: min(1520px, calc(100vw - 28px));
  padding: 30px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(19, 14, 25, 0.94), rgba(12, 9, 17, 0.98));
  box-shadow: var(--shadow);
}

.hero-text,
.muted,
small,
.metric-label,
.section-header p,
.job-workspace-tab small,
.job-step-card .muted,
.job-task-card-subtitle {
  color: var(--muted);
}

.metric-grid {
  gap: 14px;
}

.metric-card {
  min-height: 158px;
  padding: 22px;
}

.metric-value {
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.jobs-page-shell-calendar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.jobs-board-panel {
  padding: 28px 30px;
}

.jobs-board-panel-calendar {
  padding-bottom: 24px;
}

.jobs-board-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.jobs-board-filter-grid .notice {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.jobs-board-calendar-toolbar {
  padding: 0;
}

.jobs-calendar-layout,
.jobs-calendar-layout-stack {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.jobs-calendar-surface-panel {
  gap: 18px;
}

.jobs-calendar-agenda-wrap,
.jobs-calendar-agenda-panel {
  max-width: 100%;
}

.jobs-calendar-shell {
  gap: 14px;
}

.jobs-calendar-grid-labels span,
.jobs-week-time-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.jobs-calendar-day {
  min-height: 142px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.jobs-calendar-day:hover,
.jobs-calendar-day.selected {
  background: rgba(83, 199, 240, 0.08);
  border-color: rgba(83, 199, 240, 0.34);
  box-shadow: none;
}

.jobs-calendar-mini-job {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.jobs-weather-badge {
  border-radius: 0;
  border-color: rgba(83, 199, 240, 0.2);
  background: rgba(83, 199, 240, 0.12);
  color: var(--accent);
}

.jobs-week-scroll {
  overflow-x: hidden;
  padding-bottom: 0;
}

.jobs-week-calendar {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
}

.jobs-week-columns {
  gap: 12px;
}

.jobs-week-column {
  min-width: 0;
}

.jobs-week-column-header {
  min-height: 74px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
}

.jobs-week-column.selected .jobs-week-column-header {
  background: rgba(83, 199, 240, 0.08);
  border-color: rgba(83, 199, 240, 0.34);
}

.jobs-week-column-grid {
  min-height: calc((20 - 8) * 60px);
  background: linear-gradient(180deg, rgba(8, 6, 10, 0.94), rgba(14, 11, 18, 0.96));
}

.jobs-week-hour-slot {
  height: 60px;
}

.jobs-week-time-label {
  min-height: 60px;
}

.jobs-week-event {
  min-height: 42px;
  padding: 10px 12px 9px;
  border-radius: 0;
  border-color: rgba(83, 199, 240, 0.22);
  background: linear-gradient(180deg, rgba(83, 199, 240, 0.18), rgba(20, 40, 56, 0.88));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  color: var(--text);
}

.jobs-week-event strong {
  font-size: 0.82rem;
}

.jobs-week-event span {
  color: rgba(246, 241, 237, 0.76);
}

.jobs-calendar-agenda-panel {
  padding: 24px;
}

.job-command-bar {
  position: sticky;
  top: 92px;
  z-index: 8;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(19, 14, 25, 0.98), rgba(12, 9, 17, 0.98));
  box-shadow: var(--shadow);
}

.job-command-summary {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.job-detail-primary-grid {
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.job-detail-primary-grid > * {
  align-self: start;
}

.job-overview-panel,
.job-workflow-panel,
.job-workspace-panel {
  padding: 24px;
}

.job-workflow-attention,
.job-workflow-summary,
.job-step-card,
.job-task-card,
.job-subpanel {
  background: rgba(255, 255, 255, 0.03);
}

.job-step-card,
.job-task-card,
.job-subpanel,
.job-section-pill,
.job-workspace-tab {
  border-radius: 0;
}

.job-workspace-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.job-workspace-tab {
  min-height: 72px;
  padding: 14px 16px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.job-workspace-tab:last-child {
  border-right: 0;
}

.job-workspace-tab small {
  display: none;
}

.job-workspace-tab.active {
  background: rgba(83, 199, 240, 0.1);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.job-section-toggle {
  padding: 16px 0 14px;
}

.job-section-toggle:hover,
.job-section-toggle:focus-visible {
  background: transparent;
}

.job-section-pill {
  min-width: 72px;
  padding: 7px 12px;
  border-color: rgba(255, 255, 255, 0.12);
}

.job-overview-grid {
  gap: 16px;
}

.job-task-list {
  gap: 10px;
}

.job-task-card {
  padding: 16px;
}

.job-task-status-group {
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.job-task-status-group button {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  min-height: 44px;
  padding: 10px 14px;
  background: transparent;
}

.job-task-status-group button:last-child {
  border-right: 0;
}

.job-task-status-group button.primary {
  background: var(--accent);
  color: #111;
}

.job-task-utility-actions {
  gap: 6px;
}

.job-task-utility-actions button {
  min-height: 40px;
  border-radius: 0;
}

.auth-shell {
  padding: 76px 18px 42px;
}

.auth-screen {
  width: min(460px, 100%);
}

.auth-card {
  padding: 30px;
  background: linear-gradient(180deg, rgba(19, 14, 25, 0.96), rgba(12, 9, 17, 0.98));
}

.auth-card-header {
  gap: 4px;
}

.auth-provider-row {
  gap: 10px;
}

.auth-divider span {
  background: rgba(15, 10, 19, 0.98);
}

button,
.button-link {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

button:hover,
.button-link:hover,
button:focus-visible,
.button-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(83, 199, 240, 0.5);
  color: var(--accent);
  background: transparent;
}

button.primary,
.primary-link {
  background: var(--accent);
  border-color: transparent;
  color: #111;
}

button.primary:hover,
.primary-link:hover,
button.primary:focus-visible,
.primary-link:focus-visible {
  background: var(--accent-strong);
  color: #111;
}

button.danger {
  background: transparent;
  border-color: rgba(255, 122, 102, 0.36);
  color: var(--danger);
}

button:disabled,
.button-link[aria-disabled="true"] {
  opacity: 0.55;
  transform: none;
}

input,
select,
textarea {
  min-height: 56px;
  padding: 0 18px;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(12, 9, 17, 0.96);
  color: var(--text);
}

textarea {
  min-height: 140px;
  padding: 16px 18px;
}

label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.badge,
.status-dot,
.job-section-pill,
.planner-panel-pill,
.jobs-weather-badge {
  border-radius: 0;
}

.notice,
.empty-state {
  padding: 16px 18px;
}

.section-header {
  gap: 16px;
  align-items: flex-start;
}

@media (min-width: 1280px) {
  .jobs-calendar-layout {
    gap: 26px;
  }

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

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

@media (max-width: 1180px) {
  .topbar {
    padding: 0 14px;
  }

  .topbar-inner {
    min-height: 76px;
  }

  .nav-toggle {
    display: inline-grid;
    place-content: center;
    margin-left: auto;
  }

  .topbar-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    padding: 18px 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 9, 16, 0.98);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  body.nav-open .topbar-menu {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
  }

  .nav a {
    width: auto;
  }

  .nav a::after {
    bottom: -6px;
  }

  .topbar-signout {
    width: 100%;
  }

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

  .job-detail-primary-grid,
  .job-workflow-head {
    grid-template-columns: 1fr;
  }

  .job-command-bar {
    position: static;
  }
}

@media (max-width: 900px) {
  .container,
  .jobs-container-wide {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero,
  .panel,
  .status-card,
  .metric-card,
  .jobs-board-panel,
  .job-overview-panel,
  .job-workflow-panel,
  .job-workspace-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .metric-grid,
  .status-grid,
  .jobs-board-filter-grid {
    grid-template-columns: 1fr;
  }

  .jobs-week-scroll {
    overflow-x: auto;
  }

  .jobs-week-calendar {
    min-width: 960px;
  }

  .job-workspace-tabs {
    grid-template-columns: 1fr;
  }

  .job-workspace-tab {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .job-workspace-tab:last-child {
    border-bottom: 0;
  }
}

/* Snowchimp Admin Refresh — layout tokens only (identity tokens live above) */
:root {
  --content: min(1400px, calc(100vw - 40px));
  --content-wide: min(1760px, calc(100vw - 40px));
}

body {
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
}

body::before {
  opacity: 0.14;
}

.container,
.jobs-container-wide {
  width: min(100%, var(--content-wide));
}

.shell,
.hero,
.panel,
.metric-card,
.status-card,
.notice,
.empty-state,
.activity-row,
.job-overview-panel,
.job-workflow-panel,
.job-workspace-panel,
.job-subpanel,
.job-step-card,
.job-task-card,
.jobs-board-panel,
.planner-panel,
.ops-preset-card,
.ops-lane,
.delivery-board,
.delivery-card {
  border-radius: 0;
}

.hero,
.panel,
.metric-card,
.status-card,
.notice,
.empty-state,
.activity-row,
.job-subpanel,
.job-step-card,
.job-task-card,
.jobs-board-panel,
.planner-panel,
.delivery-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(19, 14, 25, 0.94), rgba(12, 9, 17, 0.98));
}

.metric-card,
.status-card,
.activity-row,
.job-subpanel,
.job-step-card,
.job-task-card,
.jobs-week-column-grid,
.jobs-month-day,
.calendar-mini-event,
.planner-day-card {
  box-shadow: none;
}

h1,
h2,
h3,
.metric-value,
.hero-copy h1,
.brand {
  letter-spacing: -0.05em;
}

.eyebrow,
.brand-kicker,
label,
.job-command-kicker,
.planner-panel-kicker,
.jobs-week-column-header span,
.job-task-card-subtitle {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

button,
.button-link,
.badge,
.status-dot,
.job-section-pill,
.planner-panel-pill,
.jobs-weather-badge,
.metric-card,
.status-card,
.notice {
  border-radius: 0;
}

button,
.button-link {
  min-height: 50px;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

button.primary,
.primary-link {
  background: var(--accent);
  border-color: transparent;
  color: #111;
}

button.primary:hover,
.primary-link:hover,
button.primary:focus-visible,
.primary-link:focus-visible {
  background: var(--accent-strong);
  color: #111;
}

input,
select,
textarea {
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(12, 9, 17, 0.96);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 6, 10, 0.72);
  backdrop-filter: blur(14px);
}

.topbar.scrolled {
  background: rgba(8, 6, 10, 0.94);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.topbar-inner {
  width: min(100%, var(--content-wide));
  min-height: 74px;
  margin: 0 auto;
  align-items: center;
  gap: 18px;
}

.brand-block {
  gap: 2px;
}

.brand-kicker {
  margin: 0;
}

.brand {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 800;
  line-height: 0.94;
}

.topbar-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.nav {
  flex: 1;
  justify-content: flex-end;
  gap: 22px;
  min-width: 0;
}

.nav a {
  position: relative;
  padding: 10px 0;
  color: rgba(246, 241, 237, 0.74);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.active {
  color: var(--text);
  background: transparent;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.active::after {
  transform: scaleX(1);
}

.topbar-signout {
  min-height: 46px;
  padding-inline: 18px;
}

.nav-toggle {
  display: none;
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  margin-left: auto;
}

.auth-shell {
  min-height: calc(100vh - 74px);
  padding: 56px 20px 40px;
  align-items: center;
}

.auth-screen {
  width: min(460px, 100%);
}

.auth-card {
  padding: 36px 34px;
  background: linear-gradient(180deg, rgba(19, 14, 25, 0.94), rgba(12, 9, 17, 0.98));
}

.auth-card-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.3rem);
  line-height: 0.96;
}

.auth-card-header .eyebrow {
  margin-bottom: 10px;
}

.auth-provider-row {
  grid-template-columns: 1fr;
}

.auth-footer-links {
  justify-content: flex-end;
}

.jobs-container-wide {
  padding-top: 28px;
  padding-bottom: 48px;
}

.jobs-page-shell-calendar {
  display: grid;
  gap: 26px;
}

.jobs-board-panel {
  padding: 24px;
}

.jobs-board-panel .section-header {
  align-items: start;
  gap: 20px;
}

.jobs-board-filter-grid {
  grid-template-columns: minmax(240px, 1.1fr) repeat(4, minmax(0, 0.72fr));
  gap: 18px;
}

.jobs-board-calendar-toolbar {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.jobs-calendar-layout,
.jobs-calendar-layout-stack {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.jobs-calendar-surface-panel,
.jobs-calendar-agenda-panel {
  padding: 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.jobs-week-scroll {
  overflow-x: clip;
  padding-bottom: 0;
}

.jobs-week-calendar {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.jobs-week-time-label,
.jobs-week-hour-slot {
  height: 58px;
  min-height: 58px;
}

.jobs-week-columns {
  gap: 12px;
}

.jobs-week-column {
  min-width: 0;
}

.jobs-week-column-header {
  min-height: 88px;
  padding: 14px 14px 12px;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.jobs-week-column.selected .jobs-week-column-header {
  background: rgba(83, 199, 240, 0.09);
  border-color: rgba(83, 199, 240, 0.38);
}

.jobs-week-column-grid {
  min-height: calc((20 - 8) * 58px);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(10, 8, 14, 0.96), rgba(12, 9, 17, 0.98));
}

.jobs-week-event {
  min-height: 38px;
  padding: 8px 10px 9px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(83, 199, 240, 0.18), rgba(18, 36, 54, 0.88));
  border-color: rgba(83, 199, 240, 0.18);
}

.jobs-week-event strong {
  font-size: 0.84rem;
  -webkit-line-clamp: 3;
}

.jobs-week-event span {
  font-size: 0.72rem;
}

.jobs-week-event.overlap {
  padding-inline: 8px;
}

.jobs-week-event.tight strong {
  font-size: 0.76rem;
}

.jobs-calendar-agenda-wrap {
  order: 2;
}

.jobs-calendar-agenda-panel .activity-row {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.jobs-calendar-agenda-panel .activity-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.jobs-calendar-agenda-panel .activity-row:last-child {
  padding-bottom: 0;
}

.jobs-create-panel-wrap {
  order: 3;
}

.jobs-create-panel {
  padding: 22px 24px;
}

.job-page-header {
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.job-page-header h1 {
  margin-bottom: 4px;
}

.job-command-bar {
  position: sticky;
  top: 86px;
  z-index: 8;
  padding: 20px 22px;
  border-radius: 0;
}

.job-command-top {
  align-items: end;
}

.job-command-intro {
  max-width: 880px;
}

.job-command-summary {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1.02;
}

.job-summary-pills {
  gap: 10px;
}

.job-summary-pills .badge {
  padding: 9px 12px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.job-detail-shell {
  display: grid;
  gap: 24px;
}

.job-detail-primary-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 24px;
  align-items: start;
}

.job-detail-primary-grid.job-detail-primary-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.job-overview-panel,
.job-workflow-panel,
.job-workspace-panel {
  padding: 24px;
}

.job-overview-panel,
.job-workspace-panel {
  min-width: 0;
}

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

.job-workspace-panel .section-header {
  align-items: start;
}

.job-workspace-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.job-workspace-tab {
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 0;
}

.job-workspace-body {
  padding-top: 18px;
}

.job-subpanel {
  padding: 18px;
}

.job-task-list {
  display: grid;
  gap: 10px;
}

.job-task-card {
  padding: 14px 16px;
}

.job-task-card-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.job-task-card-badges {
  align-items: center;
}

.job-task-card-body {
  display: grid;
  gap: 12px;
}

.job-task-due-inline {
  display: grid;
  gap: 8px;
}

.job-task-due-input-wrap {
  max-width: 320px;
}

.job-task-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.job-task-status-group {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 0;
  align-items: stretch;
}

.job-task-status-group button {
  min-width: 88px;
  min-height: 42px;
  padding: 0 12px;
}

.job-task-utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-task-utility-actions button {
  min-height: 40px;
}

.checkpoint-row {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.checkpoint-row:last-child {
  padding-bottom: 0;
}

.activity-list {
  gap: 0;
}

.activity-row {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

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

.timeline-entry {
  border-top-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1440px) {
  .job-detail-primary-grid {
    grid-template-columns: 1fr;
  }

  .job-workflow-panel {
    order: 2;
  }
}

@media (max-width: 1180px) {
  .topbar {
    padding: 0 14px;
  }

  .topbar-inner {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .topbar-menu {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 6, 10, 0.98);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .topbar-menu[data-open="true"],
  body.nav-open .topbar-menu {
    display: grid;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 12px 18px;
    width: 100%;
  }

  .nav a {
    padding: 8px 0;
  }

  .topbar-signout {
    width: 100%;
  }

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

  .jobs-week-scroll {
    overflow-x: auto;
  }

  .jobs-week-calendar {
    min-width: 900px;
  }
}

@media (max-width: 900px) {
  .container,
  .jobs-container-wide {
    width: min(100%, calc(100vw - 24px));
    padding-left: 0;
    padding-right: 0;
  }

  .topbar {
    padding: 0 12px;
  }

  .topbar-inner {
    min-height: 62px;
  }

  .brand {
    font-size: 1.6rem;
  }

  .auth-shell {
    padding-top: 36px;
  }

  .jobs-board-panel,
  .jobs-create-panel,
  .job-command-bar,
  .job-overview-panel,
  .job-workflow-panel,
  .job-workspace-panel {
    padding: 18px;
  }

  .jobs-board-filter-grid,
  .job-overview-grid,
  .metric-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .job-workspace-tabs {
    grid-template-columns: 1fr;
  }

  .job-workspace-tab {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .job-workspace-tab:last-child {
    border-bottom: 0;
  }

  .job-command-bar {
    position: static;
  }

  .jobs-calendar-agenda-panel {
    padding: 18px;
  }

  .jobs-week-scroll {
    overflow-x: auto;
  }
}

.feature-sheet-template-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-link:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Compact page header (replaces hero + metric-grid) ── */
.page-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 12px 0 8px;
}
.page-header h1 {
  font-size: 1.25rem;
  margin: 0;
  white-space: nowrap;
}
.page-header-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.page-header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1.3;
  background: var(--surface-2);
  color: var(--text-secondary);
}
.stat-badge-value {
  font-weight: 700;
  color: var(--text-primary);
}
.stat-badge.tone-accent {
  background: var(--accent-bg, var(--surface-2));
  color: var(--accent-fg, var(--text-primary));
}
.stat-badge.tone-accent .stat-badge-value {
  color: var(--accent-fg, var(--accent));
}
.stat-badge.tone-brand {
  background: var(--brand-bg, var(--surface-2));
  color: var(--brand-fg, var(--text-primary));
}
.stat-badge.tone-brand .stat-badge-value {
  color: var(--brand-fg, var(--brand));
}
.stat-badge.tone-warning {
  background: var(--warning-bg, var(--surface-2));
  color: var(--warning-fg, var(--text-primary));
}
.stat-badge.tone-warning .stat-badge-value {
  color: var(--warning-fg, var(--warning));
}
.metric-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}
@media (max-width: 600px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-header-actions {
    margin-left: 0;
  }
}

/* ── Nav dividers (group separators) ── */
.nav .nav-divider {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--border, rgba(255,255,255,0.12));
  margin: 0 4px;
  vertical-align: middle;
}

/* ── Skeleton / shimmer loading placeholders ── */
.skeleton-header {
  height: 36px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.skeleton-panel {
  height: 180px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.shimmer {
  background: linear-gradient(
    90deg,
    var(--surface-2, #1e1e1e) 25%,
    var(--surface-3, #2a2a2a) 50%,
    var(--surface-2, #1e1e1e) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Settings tabs ── */
.settings-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.1));
  margin-bottom: 16px;
}
.settings-tab {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.settings-tab:hover {
  color: var(--text-primary);
}
.settings-tab.active {
  color: var(--accent, #53c7f0);
  border-bottom-color: var(--accent, #53c7f0);
}

/* === Redesign primitives === */

/* ---- WAVE R7: MORE DROPDOWN ---- */

/* Wrapper — sits inline in .nav like any other chip */
.nav-more {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* The "More ▾" button mimics .nav a chip styling */
.nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: inherit;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: 180ms ease;
  white-space: nowrap;
  line-height: 1;
}
.nav-more-btn:hover,
.nav-more.active .nav-more-btn {
  color: var(--text);
  background: rgba(var(--brand-rgb), 0.14);
}
.nav-more-btn[aria-expanded="true"] {
  color: var(--text);
  background: rgba(var(--brand-rgb), 0.14);
}

/* Dropdown panel */
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 160px;
  background: var(--surface-2, #1a1a1a);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 12px;
  padding: 6px;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-panel[hidden] {
  display: none;
}

/* Dropdown items */
.nav-dropdown-item {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: 150ms ease;
  white-space: nowrap;
}
.nav-dropdown-item:hover,
.nav-dropdown-item:focus-visible {
  color: var(--text);
  background: rgba(var(--brand-rgb), 0.12);
  outline: none;
}
.nav-dropdown-item.active {
  color: var(--text);
  background: rgba(var(--brand-rgb), 0.18);
}

/* Settings gear — far-right icon button with optional text label */
.nav-settings-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  transition: 180ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-settings-btn:hover,
.nav-settings-btn.active {
  color: var(--text);
  background: rgba(var(--brand-rgb), 0.14);
}
/* On wide viewports just show icon; label visible on medium breakpoint */
@media (min-width: 900px) {
  .nav-settings-label { display: none; }
}
@media (max-width: 899px) {
  .nav-settings-label { display: inline; }
}

/* Mobile: dropdown panel shifts to prevent overflow */
@media (max-width: 600px) {
  .nav-dropdown-panel {
    left: auto;
    right: 0;
  }
}

/* ---- PAGE RAIL ---- */
.page-rail {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0 12px;
  border-bottom: 1px solid rgba(var(--brand-rgb), 0.18);
  margin-bottom: 22px;
}
.page-rail h1 {
  font-size: 1.4rem;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.page-rail-day {
  color: var(--muted);
  font-weight: 400;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.95rem;
}
.page-rail-chips {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
}
.rail-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.08);
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  font-size: 0.84rem;
  color: var(--text);
}
.rail-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.rail-chip.warn {
  background: rgba(255, 122, 102, 0.08);
  border-color: rgba(255, 122, 102, 0.22);
}
.rail-chip.warn .rail-chip-dot {
  background: var(--danger);
}
.page-rail-actions {
  display: flex;
  gap: 8px;
}
@media (max-width: 700px) {
  .page-rail {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0 10px;
  }
  .page-rail-chips {
    flex: unset;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .page-rail-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ---- OPS TILE ---- */
.ops-tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.15s, background 0.15s;
}
.ops-tile:hover {
  border-color: rgba(var(--brand-rgb), 0.28);
  background: var(--surface-hover);
}
.ops-tile-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.ops-tile-title {
  flex: 1;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ops-tile-menu {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}
.ops-tile:hover .ops-tile-menu {
  opacity: 1;
}
.ops-tile-menu:hover {
  color: var(--text);
}
.ops-tile-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.ops-tile-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.ops-tile-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0 8px;
}
.ops-tile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(var(--brand-rgb), 0.08);
  border: 1px solid rgba(var(--brand-rgb), 0.22);
  color: var(--accent);
}
.service-pill--warn {
  background: rgba(255, 122, 102, 0.08);
  border-color: rgba(255, 122, 102, 0.24);
  color: var(--danger);
}
.service-pill--ok {
  background: rgba(var(--success-rgb), 0.1);
  border-color: rgba(var(--success-rgb), 0.26);
  color: var(--success);
}
.service-pill--pending {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--muted);
}
.next-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(var(--brand-rgb), 0.06);
  border: 1px solid rgba(var(--brand-rgb), 0.16);
  font-size: 0.84rem;
}
.next-strip-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}
.next-strip-text {
  flex: 1;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.next-strip-meta {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.ops-tile .status-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.ops-tile .status-dot.tone-ok {
  background: var(--success);
  box-shadow: 0 0 8px rgba(var(--success-rgb), 0.5);
}
.ops-tile .status-dot.tone-warn {
  background: #ffc072;
  box-shadow: 0 0 8px rgba(255, 192, 114, 0.5);
}
.ops-tile .status-dot.tone-risk {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(255, 122, 102, 0.5);
}
.ops-tile .status-dot.tone-pending {
  background: var(--muted);
}

/* ---- PHASE TIMELINE ---- */
.phase-timeline-wrap {
  padding: 28px 22px 8px;
}
.phase-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
  margin-bottom: 28px;
}
.phase-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  cursor: pointer;
  padding: 0 8px;
}
.phase-node-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  z-index: 2;
  transition: all 0.2s;
  background: var(--bg-soft);
}
.phase-node.done .phase-node-dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #041018;
  box-shadow: 0 0 20px rgba(var(--brand-rgb), 0.4);
}
.phase-node.done .phase-node-dot::after {
  content: "✓";
  font-weight: 700;
  color: #041018;
}
.phase-node.current .phase-node-dot {
  background: rgba(var(--accent-rgb), 0.2);
  border-color: var(--accent);
  width: 38px;
  height: 38px;
  margin: -5px 0;
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.08), 0 0 24px rgba(var(--accent-rgb), 0.5);
  animation: phase-pulse 2.2s infinite ease-in-out;
}
.phase-node.current .phase-node-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes phase-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.08), 0 0 24px rgba(var(--accent-rgb), 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0.12), 0 0 30px rgba(var(--accent-rgb), 0.65); }
}
.phase-node-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.phase-node.done .phase-node-label { color: var(--text); }
.phase-node.current .phase-node-label { color: var(--accent); }
.phase-node-meta {
  font-size: 0.74rem;
  color: var(--muted);
  min-height: 18px;
}
/* Connector lines */
.phase-node::before {
  content: "";
  position: absolute;
  top: 13px;
  left: calc(-50% + 14px);
  width: calc(100% - 28px);
  height: 2px;
  z-index: 1;
}
.phase-node:first-child::before { display: none; }
.phase-node::before {
  background: linear-gradient(90deg, var(--brand-deep) 0%, var(--brand-deep) 100%);
  opacity: 0.25;
}
.phase-node.done::before,
.phase-node.current::before {
  background: var(--brand);
  opacity: 0.7;
}
.phase-node:not(.done):not(.current)::before {
  background-image: repeating-linear-gradient(90deg, var(--muted) 0, var(--muted) 3px, transparent 3px, transparent 8px);
  background-size: 8px 2px;
  background-color: transparent;
  opacity: 0.3;
}
@media (max-width: 700px) {
  .phase-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 0;
  }
  .phase-node::before {
    left: calc(-50% + 10px);
    width: calc(100% - 20px);
  }
}

/* ---- DRAWER ---- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 11, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  z-index: 50;
  align-items: center;
  justify-content: flex-end;
}
.drawer-backdrop.open {
  display: flex;
  animation: fade-in 0.2s ease;
}
.drawer {
  height: 100vh;
  width: min(640px, 100%);
  background: var(--panel-solid);
  border-left: 1px solid rgba(var(--brand-rgb), 0.2);
  overflow-y: auto;
  box-shadow: -40px 0 80px rgba(0, 0, 0, 0.5);
  animation: drawer-slide 0.25s ease;
  display: flex;
  flex-direction: column;
}
@keyframes drawer-slide {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.drawer-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--panel-solid);
  z-index: 2;
  flex-shrink: 0;
}
.drawer-body {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
}
.drawer-footer {
  position: sticky;
  bottom: 0;
  background: var(--panel-solid);
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .drawer {
    width: 100%;
    height: 92vh;
    align-self: flex-end;
    border-left: none;
    border-top: 1px solid rgba(var(--brand-rgb), 0.2);
    border-radius: 22px 22px 0 0;
  }
  .drawer-backdrop {
    align-items: flex-end;
    justify-content: center;
  }
}

/* ---- CHIP-CHECK (service selector toggles) ---- */
.chip-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-check {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.88rem;
  user-select: none;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
}
.chip-check:hover { border-color: rgba(var(--brand-rgb), 0.3); }
.chip-check.checked {
  background: rgba(var(--brand-rgb), 0.15);
  border-color: rgba(var(--brand-rgb), 0.55);
  color: var(--accent);
}
.chip-check.checked::before {
  content: "✓";
  font-weight: 700;
}

/* ---- UNIT CARD (multi-unit project creation) ---- */
.unit-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
  position: relative;
}
.unit-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.unit-card-head h3 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.unit-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.unit-card-grid > div:first-child { grid-column: 1 / -1; }
.unit-dropbox-path {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(var(--brand-rgb), 0.06);
  padding: 6px 10px;
  border-radius: 8px;
  margin-top: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

/* ---- CLIENTS SPLIT LAYOUT (Wave R3) ---- */
.clients-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.clients-filter-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}
.clients-search-input {
  min-width: 220px;
  flex: 1;
}
.clients-filter-select {
  flex-shrink: 0;
}
.clients-import-bar {
  margin-bottom: 10px;
}
.clients-split {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 0;
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.clients-list-pane {
  overflow-y: auto;
  max-height: 70vh;
  border-right: 1px solid var(--border);
  padding: 8px 0;
}
.client-preview-pane {
  position: sticky;
  top: 0;
  overflow-y: auto;
  max-height: 70vh;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.02);
}

/* Client card */
.client-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  outline: none;
}
.client-card:last-child { border-bottom: none; }
.client-card:hover { background: rgba(var(--brand-rgb), 0.06); }
.client-card.selected { background: rgba(var(--brand-rgb), 0.12); }
.client-card:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.client-card-monogram {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(var(--brand-rgb), 0.18);
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
}
.client-card-body {
  flex: 1;
  min-width: 0;
}
.client-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.client-card-contact {
  font-size: 0.82rem;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.client-card-stats {
  font-size: 0.8rem;
  margin-top: 4px;
}
.client-card-open-jobs {
  color: var(--accent);
  font-weight: 600;
}
.client-card-chips { gap: 4px; }
.client-card-arrow {
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--muted);
  align-self: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.client-card:hover .client-card-arrow,
.client-card.selected .client-card-arrow { opacity: 1; }

/* Preview pane */
.client-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  gap: 12px;
}
.client-preview-empty-icon { font-size: 2.5rem; opacity: 0.3; }
.client-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.client-preview-monogram {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(var(--brand-rgb), 0.22);
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-preview-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.client-preview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.client-preview-stat {
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 6px;
}
.client-preview-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}
.client-preview-stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}
.client-preview-section { margin-bottom: 16px; }
.client-preview-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.client-preview-activity-row {
  padding: 6px 0;
  border-bottom: 1px solid rgba(var(--border-rgb, 255,255,255), 0.06);
}
.client-preview-activity-row:last-child { border-bottom: none; }
.client-preview-activity-label {
  font-size: 0.85rem;
  color: var(--text);
}
.client-preview-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Add client collapsible panel */
.client-add-panel { display: none; }
.client-add-panel.open { display: block; }

/* ---- JOB TOOLS RAIL ---- */
.job-tools-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.tool-chip:hover {
  border-color: rgba(var(--brand-rgb), 0.45);
  background: rgba(var(--brand-rgb), 0.07);
}
.tool-chip:active {
  background: rgba(var(--brand-rgb), 0.14);
}
@media (max-width: 700px) {
  .job-tools-rail {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .tool-chip {
    flex-shrink: 0;
  }
}

/* ---- BOOKINGS TRIAGE WORKSPACE ---- */
.booking-inbox-command {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.booking-inbox-command h2,
.booking-queue-head h2,
.booking-detail-head h2 {
  margin: 0;
}

.booking-inbox-command p,
.booking-queue-head p {
  margin: 4px 0 0;
}

.booking-inbox-state {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.booking-inbox-state span,
.booking-event-status,
.booking-queue-status {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  border-radius: 999px;
}

.booking-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.booking-queue-panel,
.booking-detail-panel {
  min-width: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.booking-detail-mount {
  min-width: 0;
}

.booking-queue-panel {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.booking-queue-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.85fr);
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.booking-filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.booking-filter-tab {
  min-width: 0;
  min-height: 58px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  display: grid;
  gap: 3px;
  justify-items: start;
  padding: 10px 12px;
  text-align: left;
}

.booking-filter-tab:last-child {
  border-right: 0;
}

.booking-filter-tab span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.booking-filter-tab strong {
  font-size: 1.05rem;
  line-height: 1;
}

.booking-filter-tab.active {
  background: rgba(var(--brand-rgb), 0.09);
  color: var(--text);
}

.booking-queue-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  overflow: auto;
}

.booking-queue-item {
  display: grid;
  justify-items: stretch;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.booking-queue-item.selected {
  border-color: rgba(var(--brand-rgb), 0.44);
  background: rgba(var(--brand-rgb), 0.09);
}

.booking-queue-item strong,
.booking-queue-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-queue-item small,
.booking-queue-foot {
  color: var(--muted);
  font-size: 0.86rem;
}

.booking-queue-status,
.booking-event-status {
  display: inline-flex;
  width: fit-content;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.booking-queue-status.high,
.booking-event-status.high {
  border-color: rgba(var(--success-rgb), 0.34);
  color: var(--success);
}

.booking-queue-status.partial,
.booking-event-status.partial {
  border-color: rgba(var(--brand-rgb), 0.32);
  color: var(--accent);
}

.booking-queue-status.none,
.booking-event-status.none {
  border-color: rgba(255, 122, 102, 0.28);
  color: var(--danger);
}

.booking-queue-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.booking-detail-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.booking-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.booking-detail-head h2 {
  margin-top: 10px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.booking-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

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

.booking-detail-fact,
.booking-detail-block {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.booking-detail-fact span,
.booking-detail-block-head span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.booking-detail-fact strong,
.booking-detail-block strong {
  display: block;
  margin-top: 5px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.booking-detail-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.booking-event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.booking-event-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(var(--brand-rgb), 0.22);
  background: rgba(var(--brand-rgb), 0.075);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-event-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.deliveries-container-wide,
.bookings-container-wide {
  max-width: var(--content-wide);
  width: min(100%, var(--content-wide));
}

.delivery-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.delivery-queue-panel,
.delivery-cockpit-shell {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}
.delivery-queue-panel {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.delivery-queue-head {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.delivery-queue-head h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.delivery-filter-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.delivery-queue-list {
  overflow-y: auto;
  min-height: 0;
  padding: 10px;
  display: grid;
  gap: 8px;
}
.delivery-queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  align-content: start;
  align-items: start;
  justify-content: stretch;
  justify-items: stretch;
  gap: 7px;
  width: 100%;
  min-height: 88px;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  line-height: 1.22;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0;
}
.delivery-queue-item.active,
.delivery-queue-item:hover {
  border-color: rgba(var(--brand-rgb), 0.42);
  background: rgba(var(--brand-rgb), 0.08);
}
.delivery-queue-title {
  display: -webkit-box;
  min-width: 0;
  max-width: 100%;
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: anywhere;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-height: 2.36em;
}
.delivery-queue-meta,
.delivery-queue-foot {
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.delivery-queue-next {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.delivery-queue-meta {
  display: block;
  max-width: 100%;
  overflow: hidden;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.delivery-queue-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}
.delivery-queue-foot .status-dot {
  width: auto;
  height: auto;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}
.delivery-cockpit-shell {
  min-width: 0;
  min-height: 620px;
  padding: 18px;
}
.delivery-cockpit {
  display: grid;
  gap: 18px;
}
.delivery-cockpit-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.delivery-cockpit-head h2 {
  margin: 4px 0;
  font-size: 1.25rem;
  line-height: 1.12;
  display: -webkit-box;
  overflow-wrap: anywhere;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.delivery-cockpit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 520px;
}
.delivery-next-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
}
.delivery-next-panel.tone-danger {
  border-color: rgba(255, 122, 102, 0.28);
  background: rgba(255, 122, 102, 0.055);
}
.delivery-next-panel.tone-brand {
  border-color: rgba(var(--brand-rgb), 0.26);
  background: rgba(var(--brand-rgb), 0.06);
}
.delivery-next-copy {
  min-width: 0;
}
.delivery-next-copy h3 {
  margin: 4px 0;
  font-size: 1.06rem;
  line-height: 1.15;
}
.delivery-next-copy p {
  margin: 0;
  color: var(--muted);
}
.delivery-next-action {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.delivery-progress {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}
.delivery-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}
.delivery-progress-copy strong {
  color: var(--text);
}
.delivery-progress-track {
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
}
.delivery-progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--brand));
}
.delivery-cockpit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.delivery-cockpit-panel {
  padding: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}
.delivery-cockpit-panel-wide {
  grid-column: 1 / -1;
}
.delivery-cockpit-panel h3 {
  margin: 0 0 12px;
  font-size: 0.96rem;
}
.delivery-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.delivery-panel-head h3 {
  margin: 0;
}
.delivery-handoff-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.delivery-handoff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.delivery-handoff-card {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 108px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.delivery-handoff-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.delivery-handoff-card strong,
.delivery-handoff-card small {
  display: block;
  min-width: 0;
  line-height: 1.24;
  overflow-wrap: anywhere;
}
.delivery-handoff-card small {
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.delivery-handoff-card.ok span {
  color: var(--success);
}
.delivery-handoff-card.attention {
  border-color: rgba(255, 192, 114, 0.28);
}
.delivery-handoff-card.attention span {
  color: var(--warning, #ffc072);
}
.delivery-handoff-card.danger {
  border-color: rgba(255, 122, 102, 0.28);
}
.delivery-handoff-card.danger span {
  color: var(--danger);
}
.delivery-handoff-card.neutral span {
  color: var(--muted);
}
.delivery-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.delivery-check {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 126px;
  padding: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.delivery-check .button-link {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.delivery-check span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.delivery-check strong,
.delivery-check small {
  display: block;
  line-height: 1.24;
  overflow-wrap: anywhere;
}
.delivery-check.ok span {
  color: var(--success);
}
.delivery-check.warn span {
  color: var(--danger);
}
.delivery-check.attention span {
  color: var(--warning, #ffc072);
}
.delivery-check small {
  color: var(--muted);
}
.delivery-issue-list {
  margin-top: 10px;
}
.delivery-link-list {
  display: grid;
  gap: 8px;
}
.delivery-link-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
}
.delivery-link-row span {
  color: var(--muted);
  font-size: 0.78rem;
}
.delivery-link-row strong {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}
.delivery-asset-path,
.delivery-recipient-line {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}
.delivery-link-editor {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(148px, auto);
  gap: 10px;
  align-items: end;
}
.delivery-link-editor .primary {
  min-width: 148px;
}
.delivery-link-editor label {
  display: grid;
  gap: 6px;
}
.delivery-video-link-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}
.delivery-video-links-list {
  display: grid;
  gap: 8px;
}
.delivery-video-link-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.delivery-video-link-remove {
  min-width: 88px;
}
.delivery-tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.delivery-email-preview {
  display: grid;
  gap: 8px;
}
.delivery-email-preview pre {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  white-space: pre-wrap;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.86rem;
}
.delivery-preflight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.delivery-preflight-card {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 108px;
  padding: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.delivery-preflight-card.warn {
  border-color: rgba(255, 122, 102, 0.26);
}
.delivery-preflight-card.ok span,
.delivery-preflight-card.warn span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.delivery-preflight-card.ok span {
  color: var(--success);
}
.delivery-preflight-card.warn span {
  color: var(--danger);
}
.delivery-preflight-card strong,
.delivery-preflight-card small {
  display: block;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.delivery-preflight-card small {
  color: var(--muted);
}
.delivery-preflight-card .button-link {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}
.delivery-drawer-email-preview {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}
.delivery-email-addresses {
  display: grid;
  gap: 6px;
}
.delivery-email-addresses div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}
.delivery-email-addresses span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.delivery-email-addresses strong,
.delivery-email-subject {
  overflow-wrap: anywhere;
}
.delivery-email-subject {
  font-weight: 800;
}
.delivery-drawer-email-preview pre {
  max-height: 280px;
  overflow: auto;
  margin: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.delivery-after-send-note {
  padding: 10px 12px;
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  background: rgba(var(--brand-rgb), 0.06);
  color: var(--muted);
  font-size: 0.86rem;
}
.deliveries-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.delivery-lane {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.delivery-lane-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.delivery-lane-icon {
  font-size: 0.9rem;
}
.delivery-lane-label {
  flex: 1;
}
.delivery-lane-count {
  background: rgba(var(--brand-rgb), 0.14);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.8rem;
  font-weight: 700;
}
.delivery-lane-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
  max-height: 75vh;
  overflow-y: auto;
}

/* Lane card */
.lane-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.15s;
}
.lane-card:hover {
  border-color: rgba(var(--brand-rgb), 0.28);
}
.lane-card-ready {
  border-color: rgba(var(--brand-rgb), 0.22);
}
.lane-card-sent {
  opacity: 0.85;
}
.lane-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.lane-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}
.lane-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.lane-card-issues {
  margin-bottom: 6px;
}
.lane-card-issue {
  font-size: 0.8rem;
  padding: 2px 0;
}
.lane-card-issue.danger { color: var(--danger, #ff7a66); }
.lane-card-issue.warn   { color: var(--accent); }
.lane-card-assets {
  margin-bottom: 6px;
}
.lane-card-asset-ok {
  font-size: 0.8rem;
  color: var(--brand);
  padding: 2px 0;
}
.lane-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(var(--border-rgb, 255,255,255), 0.07);
  align-items: center;
}
.lane-card-primary-btn {
  background: rgba(var(--brand-rgb), 0.18);
  border: 1px solid rgba(var(--brand-rgb), 0.4);
  color: var(--accent);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.lane-card-primary-btn:hover {
  background: rgba(var(--brand-rgb), 0.28);
  border-color: rgba(var(--brand-rgb), 0.6);
}

/* Lane empty state */
.lane-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  text-align: center;
  gap: 6px;
  color: var(--muted);
}
.lane-empty-icon {
  font-size: 1.6rem;
  opacity: 0.35;
}
.lane-empty-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}

/* Responsive: collapse to single column below 860px */
@media (max-width: 1100px) {
  .booking-workspace,
  .booking-detail-head,
  .booking-detail-grid,
  .delivery-workspace,
  .delivery-cockpit-grid,
  .delivery-handoff-grid,
  .delivery-link-editor,
  .delivery-video-link-row {
    grid-template-columns: 1fr;
  }
  .delivery-video-link-remove {
    justify-self: flex-start;
  }
  .delivery-queue-panel {
    position: static;
    max-height: none;
  }
  .booking-queue-panel {
    position: static;
    max-height: none;
  }
  .booking-detail-actions {
    justify-content: flex-start;
  }
  .deliveries-board {
    grid-template-columns: 1fr 1fr;
  }
  .delivery-lane:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 700px) {
  .booking-inbox-command,
  .booking-queue-head,
  .delivery-cockpit-head {
    display: grid;
    grid-template-columns: 1fr;
  }
  .delivery-cockpit-head,
  .delivery-next-panel {
    grid-template-columns: 1fr;
  }
  .delivery-preflight-grid {
    grid-template-columns: 1fr;
  }
  .delivery-cockpit-actions,
  .delivery-handoff-actions,
  .delivery-next-action {
    justify-content: flex-start;
  }
  .delivery-panel-head {
    display: grid;
  }
  .booking-inbox-state {
    justify-content: flex-start;
  }
  .booking-filter-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .delivery-filter-row {
    grid-template-columns: 1fr;
  }
  .delivery-cockpit-shell {
    padding: 12px;
  }
  .deliveries-board {
    grid-template-columns: 1fr;
  }
  .delivery-lane:last-child {
    grid-column: unset;
  }
  .delivery-lane-body {
    max-height: none;
  }
}

/* ── Wave R5: Calendar Workspace overlays ─────────────────────────────────── */

/* Timetable header row: sun markers + weather chip + leave-by pin */
.planner-timetable-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

/* Travel band — muted diagonal-stripe connector between consecutive stops */
.travel-band {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 3px 10px;
  margin: 2px 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(var(--brand-rgb), 0.06) 4px,
    rgba(var(--brand-rgb), 0.06) 8px
  );
  border-radius: 4px;
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
}

/* Sun markers — sunrise / sunset inline chips */
.sun-marker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  background: rgba(255, 200, 80, 0.08);
  border: 1px solid rgba(255, 200, 80, 0.14);
}
.sun-marker-rise { border-color: rgba(255, 180, 60, 0.22); }
.sun-marker-set  { border-color: rgba(140, 100, 200, 0.22); background: rgba(140, 100, 200, 0.07); }
.sun-marker-note {
  font-size: 0.68rem;
  opacity: 0.6;
}

/* Weather chip — per-day/per-block stub; wired by future wave */
.weather-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.07);
  border: 1px solid rgba(var(--brand-rgb), 0.14);
  white-space: nowrap;
}

/* Leave-by pin — floats inline before first event */
.leave-by-pin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.12);
  border: 1px solid rgba(var(--brand-rgb), 0.28);
}

/* Day Plan strip */
.day-plan-strip {
  padding: 14px 18px 12px;
  border-radius: 16px;
  border: 1px solid rgba(var(--brand-rgb), 0.18);
  background: rgba(var(--brand-rgb), 0.04);
  display: grid;
  gap: 10px;
}
.day-plan-strip-empty {
  text-align: center;
  padding: 12px;
}
.day-plan-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.day-plan-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.day-plan-date {
  font-weight: 500;
  text-transform: none;
  color: var(--muted);
  margin-left: 6px;
}
.day-plan-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.82rem;
  color: var(--muted);
}
.day-plan-stats strong { color: var(--text); }

/* Horizontal stop rail with arrows */
.day-plan-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  padding: 8px 0;
  font-size: 0.84rem;
}
.day-plan-stop {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  color: var(--text);
  white-space: nowrap;
}
.day-plan-sep {
  color: var(--muted);
  font-size: 0.9rem;
}

.day-plan-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.day-plan-actions {
  margin-left: auto;
}
.day-plan-btn {
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.14);
  border: 1px solid rgba(var(--brand-rgb), 0.32);
  color: var(--accent);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.day-plan-btn:hover {
  background: rgba(var(--brand-rgb), 0.24);
  border-color: rgba(var(--brand-rgb), 0.5);
}

/* Route map modal (inside drawer) */
.route-modal-body { display: grid; gap: 14px; }
.route-modal-map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 180px;
  border-radius: 14px;
  border: 2px dashed var(--border);
  background: rgba(var(--brand-rgb), 0.04);
  color: var(--muted);
  text-align: center;
  padding: 20px;
}
.route-modal-map-icon { font-size: 2.2rem; opacity: 0.4; }
.route-modal-stop-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.route-modal-stop {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text);
}

/* === Projects board === */
.projects-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.project-lane {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.project-lane-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin: 0;
}

.lane-count {
  background: rgba(var(--brand-rgb), 0.14);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.project-lane-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100px;
  max-height: 72vh;
  overflow-y: auto;
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(var(--brand-rgb), 0.12);
}

.project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.project-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.25;
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

.project-card-meta {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.project-stats .chip {
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.8rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.project-stats .chip.muted {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.project-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  align-self: stretch;
}

/* Responsive */
@media (max-width: 1100px) {
  .projects-board {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .projects-board {
    grid-template-columns: 1fr;
  }
  .project-lane-body {
    max-height: none;
  }
}
