/* THR Platform Design Foundation
   Shared visual behavior for every authenticated role and viewport. */

:root {
  --platform-content-max: 1320px;
  --platform-focus: rgba(68, 126, 181, .34);
  --platform-shadow-low: 0 6px 18px rgba(13, 48, 77, .065);
  --platform-shadow-mid: 0 14px 34px rgba(13, 48, 77, .11);
  --platform-shadow-high: 0 24px 64px rgba(8, 29, 45, .22);
  --platform-radius-sm: 6px;
  --platform-radius: 8px;
  --platform-control-height: 44px;
}

/* Company Schedule V10: conflict-aware dispatch and capacity controls. */
.schedule-dispatch-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 260px) auto;
  gap: 10px;
  align-items: end;
  margin: 2px 0 10px;
  border-bottom: 1px solid rgba(13, 48, 77, .1);
  padding: 0 0 12px;
}

.schedule-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  min-height: 46px;
  border: 1px solid rgba(13, 48, 77, .16);
  border-radius: 8px;
  background: #fff;
}

.schedule-search-control input,
.schedule-assignee-control select {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font-size: 12px;
  font-weight: 750;
}

.schedule-search-control input {
  padding: 0 13px;
}

.schedule-search-control button,
.schedule-clear-control {
  min-height: 44px;
  border: 0;
  background: var(--navy);
  color: #fff;
  padding: 0 16px;
  font-size: 10px;
  font-weight: 950;
  cursor: pointer;
  text-transform: uppercase;
}

.schedule-assignee-control {
  display: grid;
  min-height: 46px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(13, 48, 77, .16);
  border-radius: 8px;
  background: #fff;
  padding: 0 9px 0 12px;
}

.schedule-assignee-control span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.schedule-filter-rail {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding: 0 0 2px;
  scrollbar-width: none;
}

.schedule-filter-rail::-webkit-scrollbar {
  display: none;
}

.schedule-filter-rail button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(13, 48, 77, .14);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 7px 11px;
  font-size: 9px;
  font-weight: 950;
  cursor: pointer;
}

.schedule-filter-rail button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 7px 16px rgba(13, 48, 77, .16);
}

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

.schedule-health-card {
  display: grid;
  min-height: 82px;
  align-content: center;
  gap: 3px;
  border: 1px solid rgba(13, 48, 77, .11);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--navy);
  padding: 10px 12px;
  text-align: left;
}

button.schedule-health-card {
  cursor: pointer;
}

.schedule-health-card.danger {
  border-left-color: #b8141c;
  background: #fff5f5;
}

.schedule-health-card.warning {
  border-left-color: #b67000;
  background: #fffaf0;
}

.schedule-health-card.clear {
  border-left-color: #16805a;
}

.schedule-health-card.workload {
  border-left-color: var(--navy);
  background: #eef4f8;
}

.schedule-health-card span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.schedule-health-card strong {
  font-size: 22px;
  line-height: 1;
}

.schedule-health-card small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.schedule-day-load {
  display: flex !important;
  grid-column: 1 / -1;
  align-items: center !important;
  justify-content: space-between;
  gap: 5px !important;
  border-top: 1px solid rgba(13, 48, 77, .07);
  padding-top: 6px;
}

.schedule-day-load strong,
.schedule-day-load span {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 8px !important;
  line-height: 1 !important;
}

.schedule-entry-warnings {
  display: flex !important;
  flex-wrap: wrap;
  gap: 4px;
  border-top: 0 !important;
  padding-top: 1px !important;
}

.schedule-entry-warning {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #b8141c;
  color: #fff;
  padding: 4px 6px;
  font-size: 7px !important;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.schedule-entry-warning.unassigned {
  background: #9a6200;
}

.schedule-entry-warning.caution {
  background: #7a4d00;
}

.schedule-entry.has-conflict,
.mobile-schedule-entry.has-conflict {
  border-left-color: #b8141c !important;
  background: #fff6f6;
}

.schedule-entry.is-unassigned:not(.has-conflict),
.mobile-schedule-entry.is-unassigned:not(.has-conflict) {
  border-left-color: #b67000 !important;
}

.schedule-legend .schedule-legend-conflict::before {
  background: #b8141c;
}

.schedule-entry.schedule-type-vehicle-dropoff,
.schedule-entry.schedule-type-customer-pickup,
.mobile-schedule-entry.schedule-type-vehicle-dropoff,
.mobile-schedule-entry.schedule-type-customer-pickup {
  border-left-color: #b8141c;
}

.schedule-entry.schedule-type-diagnostic-appointment,
.schedule-entry.schedule-type-repair-appointment,
.mobile-schedule-entry.schedule-type-diagnostic-appointment,
.mobile-schedule-entry.schedule-type-repair-appointment {
  border-left-color: #2f728c;
}

.schedule-entry.schedule-type-parts-delivery,
.schedule-entry.schedule-type-sublet-appointment,
.mobile-schedule-entry.schedule-type-parts-delivery,
.mobile-schedule-entry.schedule-type-sublet-appointment {
  border-left-color: #2d7a52;
}

.mobile-schedule-entry-copy b {
  display: inline-flex;
  margin: 4px 4px 0 0;
  border-radius: 999px;
  background: #b8141c;
  color: #fff;
  padding: 3px 6px;
  font-size: 7px;
  font-weight: 950;
  text-transform: uppercase;
}

@media (min-width: 901px) {
  .company-schedule-page .schedule-day-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    min-height: 96px;
  }

  .company-schedule-page .schedule-day-head > div:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .company-schedule-page .schedule-day-count {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
  }

  .company-schedule-page .schedule-day-load {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Workflow Impact V2: immutable completion analytics. */
.impact-v2-hero {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 35%, #fff);
  border-top: 5px solid var(--red);
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--platform-shadow-mid);
}

.impact-v2-hero-copy {
  max-width: 820px;
  padding: 28px 30px 18px;
}

.impact-v2-hero-copy small,
.impact-v2-panel header small,
.impact-v2-section-head small,
.impact-v2-ledger > header small,
.impact-v2-details summary small {
  display: block;
  color: color-mix(in srgb, var(--red) 78%, #fff);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .06em;
}

.impact-v2-hero-copy h2 {
  margin: 6px 0 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: 0;
}

.impact-v2-hero-copy p {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(255,255,255,.73);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
}

.impact-v2-hero-actions {
  display: flex;
  gap: 8px;
  padding: 0 30px 22px;
}

.impact-v2-hero-actions button {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 9px 15px;
  font-weight: 900;
  cursor: pointer;
}

.impact-v2-hero-actions button:first-child {
  border-color: var(--red);
  background: var(--red);
}

.impact-v2-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border-top: 1px solid rgba(255,255,255,.14);
}

.impact-v2-kpis article {
  display: grid;
  min-width: 0;
  gap: 4px;
  border-right: 1px solid rgba(255,255,255,.14);
  padding: 18px 20px;
}

.impact-v2-kpis article:last-child { border-right: 0; }
.impact-v2-kpis small { color: rgba(255,255,255,.58); font-size: 9px; font-weight: 900; }
.impact-v2-kpis strong { overflow-wrap: anywhere; color: #fff; font-size: 25px; line-height: 1.05; }
.impact-v2-kpis span { color: rgba(255,255,255,.63); font-size: 10px; font-weight: 700; }

.impact-v2-trust,
.impact-v2-alert {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 20%, #d8e2e8);
  border-left: 4px solid var(--blue);
  border-radius: 7px;
  background: #fff;
  padding: 13px 16px;
  box-shadow: var(--platform-shadow-low);
}

.impact-v2-trust strong,
.impact-v2-alert strong { flex: 0 0 auto; color: var(--navy); font-size: 12px; }
.impact-v2-trust span,
.impact-v2-alert span { color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.45; }
.impact-v2-alert { border-left-color: var(--red); background: color-mix(in srgb, var(--red) 5%, #fff); }

.impact-v2-filterbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 210px) minmax(190px, auto);
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
  border: 1px solid #d6e0e6;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: var(--platform-shadow-low);
}

.impact-v2-periods { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 1px; }
.impact-v2-periods button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid #ccd8df;
  border-radius: 6px;
  background: #f6f9fa;
  color: var(--navy);
  padding: 8px 13px;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.impact-v2-periods button.active { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: inset 0 -3px var(--red); }
.impact-v2-filterbar > label,
.impact-v2-custom-range label,
.impact-v2-settings label,
.impact-v2-rule-layout form label,
.impact-v2-event-actions label { display: grid; gap: 5px; color: #526976; font-size: 9px; font-weight: 900; }
.impact-v2-filterbar select,
.impact-v2-custom-range input,
.impact-v2-settings input,
.impact-v2-settings select,
.impact-v2-rule-layout input,
.impact-v2-rule-layout select,
.impact-v2-event-actions select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #c8d5dc;
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  padding: 8px 10px;
  font-size: 12px;
}
.impact-v2-range-label { display: grid; gap: 3px; align-self: center; }
.impact-v2-range-label small { color: var(--muted); font-size: 8px; font-weight: 900; }
.impact-v2-range-label strong { color: var(--navy); font-size: 11px; }
.impact-v2-custom-range { display: grid; grid-template-columns: minmax(160px, 220px) minmax(160px, 220px) auto; gap: 10px; align-items: end; margin: -2px 0 12px; border-left: 4px solid var(--blue); background: #fff; padding: 12px; box-shadow: var(--platform-shadow-low); }

.impact-v2-main-grid,
.impact-v2-breakdown-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr); gap: 12px; margin-bottom: 16px; }
.impact-v2-breakdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.impact-v2-panel,
.impact-v2-ledger,
.impact-v2-details {
  overflow: hidden;
  border: 1px solid #d4dfe5;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--platform-shadow-low);
}
.impact-v2-panel > header,
.impact-v2-ledger > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid #dbe4e8;
  padding: 17px 18px;
}
.impact-v2-panel header h3,
.impact-v2-ledger header h2 { margin: 4px 0 0; color: var(--navy); font-size: 18px; letter-spacing: 0; }
.impact-v2-panel header p,
.impact-v2-ledger header p { margin: 5px 0 0; color: var(--muted); font-size: 10px; font-weight: 700; }
.impact-v2-panel > header > strong,
.impact-v2-ledger > header > strong { color: var(--red); font-size: 20px; white-space: nowrap; }
.impact-v2-panel > header > strong small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; text-align: right; }

.impact-v2-trend-bars {
  display: grid;
  min-height: 245px;
  grid-auto-flow: column;
  grid-auto-columns: minmax(48px, 1fr);
  gap: 8px;
  align-items: end;
  overflow-x: auto;
  padding: 22px 18px 16px;
}
.impact-v2-trend-bars article { display: grid; min-width: 0; gap: 5px; text-align: center; }
.impact-v2-trend-bars article > span { display: flex; height: 166px; align-items: flex-end; border-bottom: 1px solid #bfcdd5; background: #f3f7f8; padding: 0 7px; }
.impact-v2-trend-bars article i { display: block; width: 100%; min-height: 4px; border-radius: 4px 4px 0 0; background: var(--blue); box-shadow: inset 0 -3px var(--red); }
.impact-v2-trend-bars article b { overflow: hidden; color: var(--navy); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.impact-v2-trend-bars article small { color: var(--muted); font-size: 8px; }

.impact-v2-pending > div { max-height: 300px; overflow: auto; }
.impact-v2-pending > footer { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #dbe4e8; padding: 12px 14px; color: var(--navy); font-size: 10px; font-weight: 900; }
.impact-v2-pending > footer small { color: var(--muted); }
.impact-v2-pending-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 9px; align-items: center; border-bottom: 1px solid #e3e9ed; padding: 11px 13px; }
.impact-v2-pending-row:last-child { border-bottom: 0; }
.impact-v2-pending-row > div { display: grid; min-width: 0; gap: 3px; }
.impact-v2-pending-row > div strong { overflow: hidden; color: var(--navy); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.impact-v2-pending-row > div span { color: var(--muted); font-size: 8px; font-weight: 700; }
.impact-v2-pending-row > b { color: var(--navy); font-size: 10px; }
.impact-v2-pending-row > button { min-height: 34px; border: 1px solid #c7d4db; border-radius: 6px; background: #fff; color: var(--navy); padding: 6px 9px; font-size: 9px; font-weight: 900; cursor: pointer; }
.impact-v2-doc-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 7px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 950; box-shadow: inset 0 -3px var(--red); }

.impact-v2-section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin: 22px 0 10px; border-bottom: 1px solid #d4dee4; padding-bottom: 9px; }
.impact-v2-section-head h2 { margin: 4px 0 0; color: var(--navy); font-size: 23px; }
.impact-v2-section-head p { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; }
.impact-v2-breakdown { padding: 4px 16px 12px; }
.impact-v2-breakdown-row { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) auto auto; gap: 5px 12px; align-items: center; border: 0; border-bottom: 1px solid #e1e8ec; background: transparent; padding: 11px 0; color: inherit; text-align: left; }
button.impact-v2-breakdown-row { cursor: pointer; }
button.impact-v2-breakdown-row:hover { background: #f4f8fa; }
button.impact-v2-breakdown-row:focus-visible { border-radius: 5px; outline: 3px solid color-mix(in srgb, var(--blue) 38%, transparent); outline-offset: 2px; }
.impact-v2-breakdown-row:last-child { border-bottom: 0; }
.impact-v2-breakdown-row > div { display: grid; gap: 2px; }
.impact-v2-breakdown-row strong { color: var(--navy); font-size: 11px; }
.impact-v2-breakdown-row span { color: var(--muted); font-size: 8px; font-weight: 700; }
.impact-v2-breakdown-row > b { color: var(--navy); font-size: 11px; }
.impact-v2-breakdown-row > i { grid-column: 1 / -1; overflow: hidden; height: 5px; border-radius: 3px; background: #e7eef2; }
.impact-v2-breakdown-row > i span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.impact-v2-breakdown-row > em { color: var(--red); font-size: 8px; font-style: normal; font-weight: 950; text-transform: uppercase; }
.impact-v2-empty { padding: 26px 18px; color: var(--muted); font-size: 11px; font-weight: 750; text-align: center; }

.impact-v2-drilldown {
  overflow: hidden;
  margin: 0 0 16px;
  border: 1px solid color-mix(in srgb, var(--blue) 34%, #d6e1e6);
  border-top: 5px solid var(--red);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--platform-shadow-mid);
}
.impact-v2-drilldown.loading { display: flex; min-height: 150px; gap: 16px; align-items: center; justify-content: center; padding: 24px; }
.impact-v2-drilldown.loading h2 { margin: 4px 0; color: var(--navy); font-size: 20px; }
.impact-v2-drilldown.loading p { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; }
.impact-v2-drilldown > header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; background: var(--navy); padding: 20px 22px; color: #fff; }
.impact-v2-drilldown > header small { color: color-mix(in srgb, var(--red) 76%, #fff); font-size: 9px; font-weight: 950; }
.impact-v2-drilldown > header h2 { margin: 5px 0 0; color: #fff; font-size: 25px; }
.impact-v2-drilldown > header p { margin: 6px 0 0; color: rgba(255,255,255,.67); font-size: 10px; font-weight: 700; }
.impact-v2-drilldown > header button { min-width: 82px; min-height: 42px; border: 1px solid rgba(255,255,255,.24); border-radius: 6px; background: rgba(255,255,255,.08); color: #fff; font-weight: 900; cursor: pointer; }
.impact-v2-drill-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #d7e1e6; }
.impact-v2-drill-kpis article { display: grid; min-width: 0; gap: 4px; border-right: 1px solid #d7e1e6; padding: 15px 18px; }
.impact-v2-drill-kpis article:last-child { border-right: 0; }
.impact-v2-drill-kpis small { color: var(--muted); font-size: 8px; font-weight: 900; }
.impact-v2-drill-kpis strong { overflow-wrap: anywhere; color: var(--navy); font-size: 20px; }
.impact-v2-drill-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 14px; padding: 16px; }
.impact-v2-drill-layout > section { overflow: hidden; border: 1px solid #d8e2e7; border-radius: 7px; }
.impact-v2-drill-layout > section > header { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid #d8e2e7; background: #f5f8fa; padding: 12px 14px; }
.impact-v2-drill-layout h3 { margin: 0; color: var(--navy); font-size: 14px; }
.impact-v2-drill-layout > section > header span { color: var(--muted); font-size: 9px; font-weight: 850; }
.impact-v2-drill-records { max-height: 470px; overflow: auto; }
.impact-v2-drill-record { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; border-bottom: 1px solid #e0e7eb; padding: 11px 13px; }
.impact-v2-drill-record:last-child { border-bottom: 0; }
.impact-v2-drill-record > div { display: grid; min-width: 0; gap: 3px; }
.impact-v2-drill-record strong { overflow-wrap: anywhere; color: var(--navy); font-size: 11px; }
.impact-v2-drill-record small,
.impact-v2-drill-record span { color: var(--muted); font-size: 8px; font-weight: 700; }
.impact-v2-drill-record > b { color: var(--navy); font-size: 11px; white-space: nowrap; }
.impact-v2-drill-record > button,
.impact-v2-drill-layout aside article > button { min-height: 38px; border: 1px solid #c9d6dc; border-radius: 6px; background: #fff; color: var(--navy); padding: 7px 10px; font-size: 9px; font-weight: 900; cursor: pointer; }
.impact-v2-drill-layout aside { display: grid; align-content: start; gap: 10px; }
.impact-v2-drill-layout details { overflow: hidden; border: 1px solid #d8e2e7; border-radius: 7px; background: #fff; }
.impact-v2-drill-layout summary { display: flex; min-height: 46px; justify-content: space-between; gap: 10px; align-items: center; background: #f5f8fa; padding: 10px 12px; color: var(--navy); font-size: 10px; font-weight: 900; cursor: pointer; }
.impact-v2-drill-layout aside article { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; border-top: 1px solid #e0e7eb; padding: 10px 12px; }
.impact-v2-drill-layout aside article > div { display: grid; gap: 3px; }
.impact-v2-drill-layout aside article strong { color: var(--navy); font-size: 10px; }
.impact-v2-drill-layout aside article small { color: var(--muted); font-size: 8px; font-weight: 700; }
.impact-v2-drill-layout aside article > b { color: var(--navy); font-size: 10px; }
.impact-v2-drill-note { display: grid; gap: 5px; border-left: 4px solid var(--blue); border-radius: 6px; background: #eef6f6; padding: 13px; }
.impact-v2-drill-note strong { color: var(--navy); font-size: 11px; }
.impact-v2-drill-note span { color: var(--muted); font-size: 9px; font-weight: 700; line-height: 1.5; }
.impact-v2-drilldown > footer { border-top: 1px solid #d8e2e7; background: #f8fafb; padding: 10px 16px; color: var(--muted); font-size: 9px; font-weight: 800; }

.impact-v2-ledger { margin: 0 0 14px; }
.impact-v2-event { border-bottom: 1px solid #dce5e9; }
.impact-v2-event:last-child { border-bottom: 0; }
.impact-v2-event-summary { display: grid; width: 100%; grid-template-columns: 38px minmax(0, 1fr) minmax(130px, auto) 26px; gap: 12px; align-items: center; border: 0; background: #fff; padding: 13px 16px; color: inherit; text-align: left; cursor: pointer; }
.impact-v2-event-summary:hover,
.impact-v2-event.expanded .impact-v2-event-summary { background: #f3f7f8; }
.impact-v2-event-summary > span:not(.impact-v2-doc-mark) { display: grid; min-width: 0; gap: 3px; }
.impact-v2-event-summary > span:nth-child(3) { text-align: right; }
.impact-v2-event-summary strong { overflow-wrap: anywhere; color: var(--navy); font-size: 11px; }
.impact-v2-event-summary small { color: var(--muted); font-size: 8px; font-weight: 700; }
.impact-v2-event-summary > b { color: var(--red); font-size: 18px; text-align: center; }
.impact-v2-event-detail { border-top: 1px solid #d8e2e7; border-left: 4px solid var(--blue); background: #f8fafb; padding: 16px; }
.impact-v2-event-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.impact-v2-event-facts span { display: grid; gap: 4px; border: 1px solid #d8e2e7; border-radius: 6px; background: #fff; padding: 10px; color: var(--muted); font-size: 8px; font-weight: 800; }
.impact-v2-event-facts strong { overflow-wrap: anywhere; color: var(--navy); font-size: 10px; }
.impact-v2-event-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 12px; }
.impact-v2-event-actions label { min-width: 230px; }
.impact-v2-event-detail > p { margin: 10px 0 0; color: var(--muted); font-size: 9px; font-weight: 700; }

.impact-v2-details { margin-bottom: 12px; }
.impact-v2-details summary { display: flex; min-height: 64px; justify-content: space-between; gap: 16px; align-items: center; padding: 13px 16px; cursor: pointer; list-style: none; }
.impact-v2-details summary::-webkit-details-marker { display: none; }
.impact-v2-details summary > span { display: grid; gap: 3px; }
.impact-v2-details summary strong { color: var(--navy); font-size: 13px; }
.impact-v2-details summary > b { color: var(--red); font-size: 10px; }
.impact-v2-details[open] summary { border-bottom: 1px solid #d7e1e6; background: #f6f9fa; }
.impact-v2-details-body { padding: 18px; }
.impact-v2-details-body > p { margin: 0 0 14px; color: #526a77; font-size: 11px; font-weight: 700; line-height: 1.6; }
.impact-v2-method-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.impact-v2-method-grid article { display: grid; gap: 4px; border: 1px solid #d8e2e7; border-top: 3px solid var(--blue); border-radius: 7px; padding: 12px; }
.impact-v2-method-grid small { color: var(--muted); font-size: 8px; font-weight: 900; }
.impact-v2-method-grid strong { color: var(--navy); font-size: 17px; }
.impact-v2-method-grid span { color: var(--muted); font-size: 8px; font-weight: 700; }
.impact-v2-disclaimer { margin-top: 12px; border-left: 4px solid var(--red); background: color-mix(in srgb, var(--red) 5%, #fff); padding: 12px; color: #536b77; font-size: 10px; font-weight: 800; line-height: 1.5; }

.impact-v2-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px; }
.impact-v2-toggle { grid-template-columns: 22px minmax(0, 1fr); align-items: start; border: 1px solid #d5e0e5; border-radius: 7px; background: #f8fafb; padding: 11px; }
.impact-v2-toggle input { width: 18px; min-height: 18px; margin: 2px 0 0; }
.impact-v2-toggle span { display: grid; gap: 3px; }
.impact-v2-toggle strong { color: var(--navy); font-size: 10px; }
.impact-v2-toggle small { color: var(--muted); font-size: 8px; font-weight: 700; line-height: 1.4; }
.impact-v2-form-actions { display: flex; grid-column: 1 / -1; gap: 8px; justify-content: flex-end; }

.impact-v2-rule-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); gap: 18px; }
.impact-v2-rule-layout h3,
.impact-v2-history-tools h3 { margin: 0; color: var(--navy); font-size: 16px; }
.impact-v2-rule-layout section > p,
.impact-v2-history-tools p { color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.5; }
.impact-v2-rule-list { border: 1px solid #d8e2e7; border-radius: 7px; }
.impact-v2-rule-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; border-bottom: 1px solid #e0e7eb; padding: 11px; }
.impact-v2-rule-list article:last-child { border-bottom: 0; }
.impact-v2-rule-list article > div { display: grid; gap: 3px; }
.impact-v2-rule-list strong { color: var(--navy); font-size: 10px; }
.impact-v2-rule-list span,
.impact-v2-rule-list small { color: var(--muted); font-size: 8px; font-weight: 700; }
.impact-v2-rule-list button { min-height: 35px; }
.impact-v2-rule-layout form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 1px solid #d7e1e6; border-top: 4px solid var(--red); border-radius: 7px; background: #f8fafb; padding: 14px; }
.impact-v2-rule-layout form > div:first-child { grid-column: 1 / -1; }
.impact-v2-rule-layout form h3 { margin-top: 4px; }
.impact-v2-rule-layout form > label:nth-of-type(1),
.impact-v2-rule-layout form > label:nth-of-type(6) { grid-column: 1 / -1; }

.impact-v2-history-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px; }
.impact-v2-history-tools > section { border: 1px solid #d7e1e6; border-radius: 7px; padding: 15px; }
.impact-v2-history-tools > section > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.impact-v2-backfill-result { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px !important; margin: 12px 0 0 !important; }
.impact-v2-backfill-result span { display: grid; gap: 3px; border: 1px solid #d8e2e7; border-radius: 6px; padding: 9px; color: var(--muted); font-size: 8px; font-weight: 800; }
.impact-v2-backfill-result strong { color: var(--navy); font-size: 16px; }
.impact-v2-correction-counts { display: flex; gap: 8px; }
.impact-v2-correction-counts span { border: 1px solid #d8e2e7; border-radius: 6px; padding: 10px; color: var(--muted); font-size: 9px; font-weight: 800; }
.impact-v2-correction-counts strong { color: var(--navy); font-size: 15px; }

@media (max-width: 980px) {
  .impact-v2-main-grid,
  .impact-v2-breakdown-grid,
  .impact-v2-rule-layout,
  .impact-v2-drill-layout { grid-template-columns: 1fr; }
  .impact-v2-filterbar { grid-template-columns: minmax(0, 1fr) minmax(150px, 200px); }
  .impact-v2-range-label { grid-column: 1 / -1; }
  .impact-v2-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .impact-v2-hero-copy { padding: 20px 17px 14px; }
  .impact-v2-hero-copy h2 { font-size: 30px; }
  .impact-v2-hero-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 17px 17px; }
  .impact-v2-hero-actions button { min-width: 0; padding-inline: 7px; font-size: 10px; }
  .impact-v2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-v2-kpis article { border-bottom: 1px solid rgba(255,255,255,.14); padding: 14px; }
  .impact-v2-kpis strong { font-size: 21px; }
  .impact-v2-trust,
  .impact-v2-alert { display: grid; gap: 5px; }
  .impact-v2-filterbar { grid-template-columns: 1fr; }
  .impact-v2-periods { margin-inline: -2px; }
  .impact-v2-custom-range { grid-template-columns: 1fr 1fr; }
  .impact-v2-custom-range button { grid-column: 1 / -1; min-height: 44px; }
  .impact-v2-section-head { display: grid; gap: 5px; }
  .impact-v2-panel > header,
  .impact-v2-ledger > header { padding: 14px; }
  .impact-v2-trend-bars { min-height: 220px; grid-auto-columns: 52px; padding-inline: 12px; }
  .impact-v2-trend-bars article > span { height: 145px; }
  .impact-v2-pending-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .impact-v2-pending-row > b { grid-column: 2; }
  .impact-v2-pending-row > button { grid-column: 3; grid-row: 1 / span 2; min-height: 44px; }
  .impact-v2-event-summary { grid-template-columns: 36px minmax(0, 1fr) 24px; gap: 9px; padding: 12px; }
  .impact-v2-event-summary > span:nth-child(3) { grid-column: 2; text-align: left; }
  .impact-v2-event-summary > b { grid-column: 3; grid-row: 1 / span 2; }
  .impact-v2-event-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-v2-event-actions { display: grid; grid-template-columns: 1fr; }
  .impact-v2-event-actions label { min-width: 0; }
  .impact-v2-method-grid,
  .impact-v2-settings,
  .impact-v2-history-tools { grid-template-columns: 1fr; }
  .impact-v2-rule-layout form { grid-template-columns: 1fr; }
  .impact-v2-rule-layout form > label,
  .impact-v2-rule-layout form > label:nth-of-type(1),
  .impact-v2-rule-layout form > label:nth-of-type(6) { grid-column: 1; }
  .impact-v2-rule-list article { grid-template-columns: minmax(0, 1fr) auto; }
  .impact-v2-rule-list article .danger-btn { grid-column: 2; }
  .impact-v2-backfill-result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-v2-drill-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-v2-drill-kpis article:nth-child(2) { border-right: 0; }
  .impact-v2-drilldown > header { padding: 16px; }
  .impact-v2-drilldown > header h2 { font-size: 21px; }
  .impact-v2-drill-record { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .impact-v2-drill-record > b { grid-column: 2; }
  .impact-v2-drill-record > button { grid-column: 3; grid-row: 1 / span 2; min-height: 44px; }
  .impact-v2-hero-actions button,
  .impact-v2-periods button,
  .impact-v2-drilldown > header button,
  .impact-v2-drill-layout aside article > button { min-height: 44px; }
  .impact-v2-settings input,
  .impact-v2-settings select,
  .impact-v2-rule-layout input,
  .impact-v2-rule-layout select,
  .impact-v2-filterbar select,
  .impact-v2-custom-range input,
  .impact-v2-event-actions select { font-size: 16px; }
}

@media print {
  .impact-v2-hero-actions,
  .impact-v2-filterbar,
  .impact-v2-custom-range,
  .impact-v2-pending,
  .impact-v2-event-actions,
  .impact-v2-details:not(:first-of-type) { display: none !important; }
  .impact-v2-hero,
  .impact-v2-panel,
  .impact-v2-ledger,
  .impact-v2-details { break-inside: avoid; box-shadow: none; }
}

/* Workflow Impact */
.impact-hero .premium-stat:last-child strong {
  font-size: clamp(16px, 1.55vw, 24px);
}

.impact-trust-strip {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.8fr);
  gap: 24px;
  align-items: center;
  margin: 14px 0;
  border: 1px solid rgba(13, 48, 77, .12);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: #fff;
  padding: 16px 18px;
  box-shadow: var(--platform-shadow-low);
}

.impact-trust-strip strong {
  color: var(--navy);
  font-size: 15px;
}

.impact-trust-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.impact-period-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin: 14px 0 22px;
}

.impact-period-card {
  display: flex;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid rgba(13, 48, 77, .13);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  color: var(--navy);
  text-align: left;
  box-shadow: var(--platform-shadow-low);
}

.impact-period-card:hover,
.impact-period-card.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--platform-shadow-mid);
  transform: translateY(-1px);
}

.impact-period-card span,
.impact-period-card small {
  color: inherit;
  opacity: .72;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.impact-period-card strong {
  margin: 8px 0;
  color: inherit;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.05;
}

.impact-section-head,
.impact-panel-heading {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.impact-section-head {
  margin: 24px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(13, 48, 77, .12);
}

.impact-section-head span,
.impact-panel-heading > span,
.impact-panel-heading > div > span,
.impact-communication > div > span,
.impact-settings-block > div > span,
.impact-setup > span {
  color: var(--red);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.impact-section-head h2,
.impact-panel-heading h2,
.impact-communication h2,
.impact-setup h2 {
  margin-top: 3px;
  color: var(--navy);
  font-size: clamp(20px, 2.3vw, 30px);
}

.impact-section-head p {
  max-width: 460px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

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

.impact-analysis-panel,
.impact-ledger,
.impact-communication,
.impact-settings,
.impact-setup,
.impact-loading {
  min-width: 0;
  border: 1px solid rgba(13, 48, 77, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--platform-shadow-low);
}

.impact-analysis-panel {
  padding: 17px;
}

.impact-panel-heading {
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(13, 48, 77, .1);
}

.impact-panel-heading strong {
  color: var(--navy);
  font-size: 12px;
}

.impact-breakdown-list,
.impact-ledger-list {
  display: grid;
}

.impact-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(13, 48, 77, .08);
}

.impact-breakdown-row:last-child,
.impact-ledger-row:last-child {
  border-bottom: 0;
}

.impact-breakdown-row > div:first-child,
.impact-breakdown-value {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.impact-breakdown-row strong {
  color: var(--navy);
  font-size: 13px;
}

.impact-breakdown-row span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.impact-breakdown-value {
  align-items: flex-end;
  text-align: right;
}

.impact-breakdown-track {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(13, 48, 77, .08);
}

.impact-breakdown-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.impact-ledger {
  margin-top: 12px;
  padding: 17px;
}

.impact-ledger-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(13, 48, 77, .08);
}

.impact-ledger-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 12%, #fff);
  color: var(--blue);
  font-size: 15px;
  font-weight: 950;
}

.impact-ledger-copy,
.impact-ledger-result {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.impact-ledger-copy strong,
.impact-ledger-result strong {
  color: var(--navy);
  font-size: 13px;
}

.impact-ledger-copy span,
.impact-ledger-copy small,
.impact-ledger-result span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.impact-ledger-result {
  align-items: flex-end;
  text-align: right;
}

.impact-empty {
  padding: 24px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.impact-communication {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.35fr);
  gap: 24px;
  align-items: center;
  margin-top: 12px;
  padding: 18px;
}

.impact-communication p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

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

.impact-communication-stat {
  min-width: 0;
  border-left: 2px solid var(--red);
  background: #f4f7f9;
  padding: 10px;
}

.impact-communication-stat strong,
.impact-communication-stat span {
  display: block;
}

.impact-communication-stat strong {
  color: var(--navy);
  font-size: 20px;
}

.impact-communication-stat span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.impact-settings {
  margin-top: 12px;
  overflow: hidden;
}

.impact-settings summary {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.impact-settings summary::-webkit-details-marker {
  display: none;
}

.impact-settings summary span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.impact-settings summary small {
  color: var(--red);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.impact-settings summary strong,
.impact-settings summary b {
  color: var(--navy);
}

.impact-settings summary b {
  font-size: 11px;
}

.impact-settings[open] summary {
  border-bottom: 1px solid rgba(13, 48, 77, .1);
}

.impact-settings-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.impact-settings-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  padding: 18px;
}

.impact-settings-block + .impact-settings-block {
  border-left: 1px solid rgba(13, 48, 77, .1);
}

.impact-settings-block > div:first-child {
  grid-column: 1 / -1;
}

.impact-settings-block h3 {
  margin-top: 4px;
  color: var(--navy);
  font-size: 17px;
}

.impact-settings-block p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.impact-settings-block label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 900;
}

.impact-settings-block input,
.impact-settings-block select,
.impact-settings-block textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(13, 48, 77, .18);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  padding: 10px 11px;
}

.impact-settings-block textarea {
  resize: vertical;
}

.impact-wide,
.impact-check,
.impact-rule-values,
.impact-rule-source,
.impact-settings-actions {
  grid-column: 1 / -1;
}

.impact-check {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid rgba(13, 48, 77, .11);
  border-radius: 6px;
  background: #f5f8fa;
  padding: 10px;
}

.impact-check input {
  width: 18px;
  min-height: 18px;
}

.impact-check span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.impact-check small {
  color: var(--muted);
  font-size: 9px;
}

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

.impact-rule-source,
.impact-settings-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.impact-rule-source {
  justify-content: space-between;
  border-left: 3px solid var(--red);
  background: #f5f8fa;
  padding: 10px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 900;
}

.impact-rule-source small {
  color: var(--muted);
}

.impact-setup,
.impact-loading {
  margin-top: 14px;
  padding: 26px;
}

.impact-setup p,
.impact-setup strong,
.impact-loading p {
  display: block;
  max-width: 760px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.impact-loading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.impact-loading h2 {
  color: var(--navy);
}

.impact-loader {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 3px solid rgba(13, 48, 77, .12);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: impact-spin .7s linear infinite;
}

@keyframes impact-spin {
  to { transform: rotate(360deg); }
}

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

  .impact-period-card:last-child {
    grid-column: 1 / -1;
  }

  .impact-analysis-grid,
  .impact-settings-body,
  .impact-communication {
    grid-template-columns: minmax(0, 1fr);
  }

  .impact-settings-block + .impact-settings-block {
    border-top: 1px solid rgba(13, 48, 77, .1);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .impact-trust-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 13px;
  }

  .impact-period-card {
    min-height: 96px;
    padding: 11px;
  }

  .impact-section-head,
  .impact-panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .impact-section-head p {
    text-align: left;
  }

  .impact-analysis-panel,
  .impact-ledger,
  .impact-communication {
    padding: 13px;
  }

  .impact-ledger-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .impact-ledger-result {
    grid-column: 2;
    align-items: flex-start;
    text-align: left;
  }

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

  .impact-communication-stat:last-child {
    grid-column: 1 / -1;
  }

  .impact-settings-block,
  .impact-rule-values {
    grid-template-columns: minmax(0, 1fr);
  }

  .impact-settings-block > *,
  .impact-wide,
  .impact-check,
  .impact-rule-values,
  .impact-rule-source,
  .impact-settings-actions {
    grid-column: 1;
  }

  .impact-settings-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .schedule-dispatch-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    margin-top: 0;
  }

  .schedule-search-control {
    grid-column: 1 / -1;
  }

  .schedule-assignee-control {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 4px 8px;
  }

  .schedule-assignee-control span {
    padding-left: 4px;
  }

  .schedule-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .schedule-health-card {
    min-height: 74px;
    padding: 9px;
  }

  .schedule-filter-rail {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* Company Schedule: focused weekly planning surface. */
.company-schedule-page {
  min-width: 0;
}

.schedule-command-bar,
.schedule-week-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.schedule-command-bar {
  min-height: 74px;
  border: 1px solid rgba(13, 48, 77, .12);
  border-radius: 8px;
  background: #f7fafc;
  padding: 12px 14px;
}

.schedule-period span,
.schedule-period strong,
.schedule-period small {
  display: block;
}

.schedule-period span {
  color: var(--red);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.schedule-period strong {
  margin-top: 3px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.15;
}

.schedule-period small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.schedule-week-actions {
  display: grid;
  grid-template-columns: 42px auto 42px;
  gap: 6px;
  align-items: center;
}

.schedule-arrow,
.schedule-today {
  min-height: 42px;
  border: 1px solid rgba(13, 48, 77, .17);
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}

.schedule-arrow {
  display: grid;
  width: 42px;
  padding: 0;
  place-items: center;
  font-size: 19px;
}

.schedule-today {
  padding: 0 15px;
  font-size: 11px;
}

.schedule-arrow:hover,
.schedule-today:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.schedule-arrow:active,
.schedule-today:active {
  transform: translateY(1px);
}

.schedule-week-context {
  min-height: 39px;
  border-bottom: 1px solid rgba(13, 48, 77, .1);
  padding: 9px 2px 10px;
}

.schedule-week-summary,
.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.schedule-week-summary span,
.schedule-legend span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.schedule-week-summary span {
  border: 1px solid rgba(13, 48, 77, .11);
  background: #fff;
  color: var(--muted);
  padding: 6px 9px;
}

.schedule-week-summary span.attention {
  border-color: rgba(195, 33, 47, .18);
  background: #fff5f5;
  color: #9d1d28;
}

.schedule-week-summary strong {
  margin-right: 3px;
  color: var(--navy);
}

.schedule-legend span {
  position: relative;
  color: var(--muted);
  padding: 5px 7px 5px 17px;
}

.schedule-legend span::before {
  content: "";
  position: absolute;
  left: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.schedule-legend .schedule-legend-inspection::before {
  background: var(--red);
}

.schedule-legend .schedule-legend-today::before {
  box-shadow: 0 0 0 2px rgba(195, 33, 47, .16);
  background: #fff;
  border: 1px solid var(--red);
}

.schedule-entry {
  width: 100%;
  border: 1px solid rgba(13, 48, 77, .1);
  border-left: 4px solid var(--blue);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 4px 12px rgba(13, 48, 77, .045);
}

.schedule-entry:hover {
  border-color: rgba(13, 48, 77, .22);
  border-left-color: var(--blue);
  background: #fff;
  box-shadow: 0 8px 18px rgba(13, 48, 77, .1);
  transform: translateY(-1px);
}

.schedule-entry.red,
.schedule-entry.schedule-type-inspection,
.schedule-entry.schedule-type-deadline,
.schedule-entry.schedule-type-project-start {
  border-left-color: var(--red);
}

.schedule-entry.schedule-type-estimate,
.schedule-entry.schedule-type-client-meeting {
  border-left-color: #b67000;
}

.schedule-entry.schedule-type-material-delivery,
.schedule-entry.schedule-type-punch-list {
  border-left-color: #2d7a52;
}

.schedule-entry-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.schedule-entry .calendar-event-time {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--red);
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-entry-kind {
  flex: 0 0 auto;
  max-width: 72px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.schedule-entry-detail,
.schedule-entry-status {
  line-height: 1.35;
}

.schedule-entry-status {
  border-top: 1px solid rgba(13, 48, 77, .08);
  padding-top: 5px;
}

.schedule-empty span,
.schedule-empty small {
  display: block;
}

.schedule-empty span {
  color: var(--navy);
  font-size: 11px;
  font-weight: 850;
}

.schedule-empty small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.calendar-agenda-row time span,
.calendar-agenda-row time strong {
  display: block;
}

.calendar-agenda-row time span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.calendar-agenda-row time strong {
  margin-top: 3px;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.25;
}

.calendar-agenda-type {
  display: block;
  margin-bottom: 3px;
  color: var(--red);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.calendar-agenda-response {
  justify-self: end;
}

.integration-note strong,
.integration-note span {
  display: block;
}

.integration-note strong {
  margin-bottom: 6px;
  font-size: 13px;
}

.integration-note span {
  color: #36546c;
  font-size: 11px;
  line-height: 1.55;
}

@media (min-width: 901px) {
  .company-schedule-page .command-hero {
    padding: 22px 24px;
  }

  .company-schedule-page .command-hero h2 {
    font-size: clamp(27px, 2.3vw, 35px);
  }

  .company-schedule-page .premium-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .company-schedule-page .premium-stat {
    min-height: 66px;
    padding: 10px 12px;
  }

  .company-schedule-page .premium-stat strong {
    font-size: 23px;
  }

  .company-schedule-page .cloud-warning {
    margin-top: 10px;
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 10px;
  }

  .company-schedule-page .section {
    margin-top: 18px;
  }

  .company-schedule-page .section-head {
    min-height: 60px;
  }

  .company-schedule-page .section-head h2 {
    font-size: 20px;
  }

  .company-schedule-page .section-body {
    padding-top: 2px;
  }

  .company-schedule-page .schedule-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
    margin-top: 13px;
  }

  .company-schedule-page .schedule-day {
    min-height: 430px;
    border-color: rgba(13, 48, 77, .12);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(13, 48, 77, .055);
  }

  .company-schedule-page .schedule-day.today {
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(195, 33, 47, .12), 0 10px 24px rgba(13, 48, 77, .08);
  }

  .company-schedule-page .schedule-day-head {
    display: flex;
    min-height: 78px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid rgba(13, 48, 77, .1);
    background: #fff;
    color: var(--navy);
    padding: 10px;
  }

  .company-schedule-page .schedule-day-head > div {
    display: grid;
    grid-template-columns: auto auto;
    align-items: end;
    gap: 0 5px;
  }

  .company-schedule-page .schedule-day-head span {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .08em;
  }

  .company-schedule-page .schedule-day-head strong {
    margin-top: 4px;
    color: var(--navy);
    font-size: 25px;
    line-height: .95;
  }

  .company-schedule-page .schedule-day-head small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
  }

  .company-schedule-page .schedule-day.today .schedule-day-head {
    border-bottom-color: rgba(195, 33, 47, .18);
    background: #fff7f7;
  }

  .company-schedule-page .schedule-day.today .schedule-day-head strong,
  .company-schedule-page .schedule-day.today .schedule-day-head > div > span {
    color: var(--red);
  }

  .company-schedule-page .schedule-day-count {
    display: inline-flex;
    min-height: 21px;
    align-items: center;
    border: 1px solid rgba(13, 48, 77, .1);
    border-radius: 999px;
    background: #f4f7fa;
    color: var(--muted);
    padding: 5px 7px;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .company-schedule-page .schedule-day-items {
    align-content: start;
    max-height: 350px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 7px;
    scrollbar-color: rgba(13, 48, 77, .2) transparent;
    scrollbar-width: thin;
  }

  .company-schedule-page .schedule-entry {
    min-height: 84px;
    border-radius: 7px;
    padding: 8px;
  }

  .company-schedule-page .schedule-entry strong {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.25;
  }

  .company-schedule-page .schedule-entry > span:not(.schedule-entry-topline) {
    font-size: 9px;
  }

  .company-schedule-page .schedule-empty {
    min-height: 92px;
    border: 1px dashed rgba(13, 48, 77, .14);
    border-radius: 7px;
    background: #fafcfd;
    padding: 12px 9px;
  }

  .schedule-support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, .75fr);
    gap: 18px;
    align-items: start;
  }

  .schedule-support-grid > .section {
    height: 100%;
  }

  .schedule-support-grid .calendar-agenda-row {
    grid-template-columns: 118px minmax(0, 1fr) auto;
    min-height: 76px;
    border-radius: 7px;
    padding: 11px 12px;
  }

  .schedule-support-grid .integration-note {
    min-height: 150px;
    border-left-width: 0;
    border-top: 4px solid var(--blue);
    padding: 16px;
  }
}

@media (max-width: 900px) {
  .schedule-command-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-week-actions {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
  }

  .schedule-arrow {
    width: 46px;
  }

  .schedule-week-context {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-legend {
    display: none;
  }

  .schedule-entry {
    min-height: 76px;
    padding: 10px;
  }

  .schedule-support-grid {
    display: block;
  }
}

.schedule-support-panel > .section {
  height: 100%;
}

.email-reminder-setup {
  display: grid;
  min-height: 178px;
  align-content: start;
  gap: 9px;
  border-top: 4px solid var(--red);
  border-radius: 8px;
  background: #f7fafc;
  padding: 18px;
}

.email-reminder-setup.active {
  border-top-color: #16805a;
  background: #f2faf7;
}

.email-reminder-status {
  width: fit-content;
  border-radius: 999px;
  background: rgba(223, 91, 73, .12);
  color: #a83d2f;
  padding: 5px 9px;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.email-reminder-setup.active .email-reminder-status {
  background: rgba(22, 128, 90, .12);
  color: #116445;
}

.email-reminder-setup strong {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.25;
}

.email-reminder-setup p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}

.email-reminder-setup .btn {
  width: fit-content;
  min-height: 42px;
  margin-top: 3px;
}

@media (min-width: 901px) {
  .mobile-personal-calendar,
  .personal-calendar-action {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .desktop-email-reminders,
  .desktop-email-reminder-action {
    display: none !important;
  }

  .schedule-support-panel > .section {
    margin-top: 16px;
  }
}

html {
  width: 100%;
  max-width: 100%;
  color-scheme: light;
  scroll-padding-top: 18px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-x: clip;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

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

#app,
header,
.top,
.brand-panel,
.control-panel,
.hero-grid,
.owner-link-grid {
  min-width: 0;
  max-width: 100%;
}

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

button,
[role="button"],
select,
summary,
label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
[role="button"]:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--platform-focus);
  outline-offset: 2px;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: .58;
}

button:active:not(:disabled) {
  transform: translateY(0) scale(.985);
}

h1,
h2,
h3,
p,
strong,
small,
span,
button,
.value,
.muted {
  overflow-wrap: anywhere;
}

header {
  isolation: isolate;
}

.wrap,
main {
  width: 100%;
  max-width: var(--platform-content-max);
}

main {
  min-height: calc(100vh - 164px);
}

.brand-panel,
.control-panel,
.command-hero,
.drawer,
.login-card,
.notification-tray {
  box-shadow: var(--platform-shadow-mid);
}

.brand.home-link {
  min-width: 0;
}

.brand.home-link h1 {
  line-height: 1.08;
}

.control-panel {
  gap: 11px;
}

.search,
.section-select,
.logout-btn,
.toggle-panel {
  min-height: var(--platform-control-height);
}

.search::placeholder {
  color: #71808c;
  opacity: 1;
}

.section-picker label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 14px;
}

.section-select {
  color: var(--navy);
  cursor: pointer;
}

.section-select optgroup {
  color: #5c6a76;
  font-weight: 800;
}

.section-select option {
  color: var(--ink);
  font-weight: 600;
}

.save-status {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  line-height: 1.35;
}

.save-status::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #74c69d;
  box-shadow: 0 0 0 3px rgba(116, 198, 157, .14);
}

.section {
  scroll-margin-top: 18px;
}

.section-head {
  align-items: center;
  border-bottom: 1px solid rgba(13, 48, 77, .09);
  padding-bottom: 11px;
}

.section-head > div:first-child,
.section-body,
.premium-row-main,
.job-tab > span:first-child,
.title-row > div:first-child {
  min-width: 0;
}

.section-head h2 {
  line-height: 1.15;
}

.section-head .muted {
  line-height: 1.45;
}

.section-body {
  width: 100%;
}

.card,
.owner-link,
.premium-row,
.job-detail-card,
.job-folder-band,
.edit-group,
.account-card,
.schedule-day,
.calendar-agenda-row {
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background-color .16s ease;
}

.card,
.premium-row,
.job-detail-card,
.job-folder-band,
.edit-group,
.account-card {
  box-shadow: var(--platform-shadow-low);
}

.compliance-context,
.compliance-editor-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(13, 48, 77, .11);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: color-mix(in srgb, var(--blue) 5%, #fff);
  padding: 10px 12px;
}

.compliance-context strong,
.compliance-editor-intro strong {
  color: var(--navy);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.compliance-context span,
.compliance-editor-intro span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.4;
}

.edit-compliance-panel {
  overflow: hidden;
  border: 1px solid rgba(13, 48, 77, .13);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(13, 48, 77, .05);
}

.edit-compliance-panel + .edit-compliance-panel {
  margin-top: 9px;
}

.edit-compliance-panel summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 11px 13px;
  cursor: pointer;
  list-style: none;
}

.edit-compliance-panel summary::-webkit-details-marker {
  display: none;
}

.edit-compliance-panel summary::after {
  content: "+";
  color: var(--red);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.edit-compliance-panel[open] summary::after {
  content: "−";
}

.edit-compliance-panel summary > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.edit-compliance-panel summary strong,
.edit-compliance-panel summary small {
  display: block;
}

.edit-compliance-panel summary strong {
  color: var(--navy);
  font-size: 13px;
  font-weight: 950;
}

.edit-compliance-panel summary small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.35;
}

.edit-compliance-panel summary em {
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 8%, #fff);
  color: var(--navy);
  padding: 5px 8px;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.edit-compliance-body {
  border-top: 1px solid rgba(13, 48, 77, .1);
  background: #f6f9fb;
  padding: 12px;
}

.job-tab:hover,
.premium-row.clickable:hover,
.owner-link:hover,
.calendar-agenda-row:hover {
  box-shadow: var(--platform-shadow-mid);
}

.timeline-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.timeline-summary > div {
  min-width: 0;
  border: 1px solid rgba(13, 48, 77, .11);
  border-radius: 7px;
  background: linear-gradient(180deg, #fff, #f6f9fc);
  padding: 11px;
  box-shadow: 0 8px 20px rgba(13, 48, 77, .05);
}

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

.timeline-summary strong {
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
}

.timeline-summary span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
}

.btn,
.save-btn,
.secondary-btn,
.danger-btn,
.premium-action,
.edit-btn,
.field-btn,
.back {
  min-height: 42px;
  line-height: 1.2;
}

.back {
  display: grid;
  width: min(100%, 680px);
  min-height: 52px;
  margin: 8px auto 26px;
  place-items: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  box-shadow: var(--platform-shadow-medium);
}

.drawer-body {
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.drawer-actions {
  z-index: 2;
}

.field input,
.field select,
.field textarea,
.filter {
  min-height: var(--platform-control-height);
}

.field textarea {
  line-height: 1.5;
  resize: vertical;
}

.empty-state {
  min-height: 132px;
  display: grid;
  align-content: center;
  justify-items: start;
}

.empty-state h3 {
  color: var(--navy);
}

.app-toast {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  width: min(390px, calc(100vw - 40px));
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--platform-radius);
  background: #123b5b;
  color: #fff;
  padding: 12px 14px;
  box-shadow: var(--platform-shadow-high);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .18s ease, transform .18s ease;
}

.app-toast::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #74c69d;
  box-shadow: 0 0 0 4px rgba(116, 198, 157, .15);
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.app-toast.loading::before {
  border: 2px solid rgba(255, 255, 255, .38);
  border-top-color: #fff;
  background: transparent;
  animation: platform-spin .75s linear infinite;
}

.app-toast.warning {
  background: #73460e;
}

.app-toast.warning::before {
  background: #ffd166;
  box-shadow: 0 0 0 4px rgba(255, 209, 102, .15);
}

.app-toast.error {
  background: #821f28;
}

.app-toast.error::before {
  background: #ffb3b8;
  box-shadow: 0 0 0 4px rgba(255, 179, 184, .14);
}

@keyframes platform-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 901px) {
  .top.expanded .control-panel {
    align-items: end;
  }

  .section-head-actions {
    justify-content: flex-end;
  }

  .drawer-actions {
    position: sticky;
    bottom: 0;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 620px) {
  :root {
    --platform-control-height: 46px;
  }

  main {
    min-height: calc(100vh - 112px);
  }

  .brand-panel,
  .control-panel {
    box-shadow: none;
  }

  .control-panel {
    overscroll-behavior: contain;
  }

  .section-head {
    border-bottom: 0;
    padding-bottom: 12px;
  }

  .section.mobile-collapsed .section-head {
    padding-bottom: 12px;
  }

  .section:not(.mobile-collapsed) .section-head {
    border-bottom: 1px solid rgba(13, 48, 77, .09);
  }

  .owner-link,
  .job-tab,
  .premium-row,
  .calendar-agenda-row {
    touch-action: manipulation;
  }

  .field input,
  .field select,
  .field textarea,
  .search,
  .section-select {
    font-size: 16px;
  }

  .drawer {
    height: 100dvh;
  }

  .drawer-body {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .drawer-actions {
    margin-inline: -2px;
    box-shadow: 0 -10px 26px rgba(13, 48, 77, .08);
  }

  .app-toast {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: auto;
    min-height: 52px;
  }

  .timeline-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 15px;
  }

  .timeline-summary > div {
    padding: 9px;
  }

  .timeline-summary strong {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .wrap {
    padding-left: max(7px, env(safe-area-inset-left));
    padding-right: max(7px, env(safe-area-inset-right));
  }

  main {
    padding: 10px 8px max(34px, env(safe-area-inset-bottom));
  }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 7px;
  }

  .brand .logo {
    flex: 0 0 74px;
    width: 74px;
    max-width: 74px;
    height: 27px;
    margin: 0;
    padding: 2px;
  }

  .brand.home-link h1 {
    font-size: 16px;
    line-height: 1.04;
  }

  .command-meta {
    margin-top: 3px;
  }

  .meta-chip {
    padding: 3px 4px;
    font-size: 8px;
  }

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

  .dashboard-hero {
    padding: 10px;
  }

  .dashboard-hero .hero-grid {
    gap: 7px;
  }

  .dashboard-hero h2 {
    font-size: 18px;
  }

  .dashboard-hero p {
    font-size: 10px;
    line-height: 1.22;
  }

  .dashboard-hero .premium-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 7px;
  }

  .dashboard-hero .premium-stat {
    padding: 6px;
  }

  .dashboard-hero .premium-stat strong {
    font-size: 17px;
  }

  .dashboard-hero .premium-stat span {
    font-size: 8px;
  }

  .dashboard-hero .hero-actions .quick-actions.simple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .dashboard-hero .hero-actions .field-btn {
    min-height: 40px;
    padding: 6px 5px;
    font-size: 10px;
  }

  .owner-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .owner-link {
    min-height: 90px;
    padding: 9px;
  }

  .owner-link strong {
    font-size: 13px;
  }

  .owner-link span {
    margin-top: 4px;
    font-size: 9px;
  }

  .owner-link em {
    margin-top: 7px;
    font-size: 10px;
  }
}

/* Full Job Profitability */
.profit-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

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

.profit-kpi {
  min-width: 0;
  border: 1px solid rgba(13, 48, 77, .12);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--platform-shadow-low);
}

button.profit-kpi {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.profit-kpi.actionable:hover {
  border-color: rgba(13, 48, 77, .32);
  background: #f7fafc;
  box-shadow: var(--platform-shadow-medium);
}

.profit-kpi.actionable:focus-visible {
  outline: 3px solid rgba(47, 114, 140, .28);
  outline-offset: 2px;
}

.profit-kpi span,
.profit-kpi small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.3;
  text-transform: uppercase;
}

.profit-kpi strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.05;
}

.profit-kpi small {
  margin-top: 6px;
  text-transform: none;
}

.profit-kpi small.profit-kpi-action {
  color: var(--red);
  font-size: 9px;
  text-transform: uppercase;
}

.profit-kpi.prominent {
  border-color: rgba(20, 116, 75, .28);
  background: #f4fbf7;
}

.profit-kpi.prominent strong,
.profit-kpi.positive strong {
  color: #14744b;
}

.profit-kpi.negative {
  border-color: rgba(166, 20, 24, .28);
  background: #fff7f7;
}

.profit-kpi.negative strong {
  color: var(--red);
}

.profit-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 10px;
}

.profit-visual {
  min-width: 0;
  border: 1px solid rgba(13, 48, 77, .12);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
  box-shadow: var(--platform-shadow-low);
}

.profit-donut-wrap {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}

.profit-donut {
  display: grid;
  width: 180px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(13, 48, 77, .08);
}

.profit-donut > div {
  display: grid;
  width: 108px;
  aspect-ratio: 1;
  place-content: center;
  border-radius: 50%;
  background: #fff;
  text-align: center;
  box-shadow: 0 4px 18px rgba(13, 48, 77, .16);
}

.profit-donut strong {
  color: var(--navy);
  font-size: 24px;
}

.profit-donut span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.profit-legend {
  display: grid;
  gap: 7px;
}

.profit-legend-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profit-legend-row > span {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.profit-legend-row strong {
  color: var(--navy);
  font-size: 11px;
}

.profit-legend-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.profit-bars {
  display: grid;
  gap: 17px;
  margin-top: 22px;
}

.profit-bar-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 12px;
}

.profit-bar-row span {
  color: var(--muted);
  font-weight: 850;
}

.profit-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 4px;
  background: #e7edf1;
}

.profit-bar-track i {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: var(--navy);
}

.profit-bar-track i.cost { background: var(--red); }
.profit-bar-track i.profit { background: #14744b; }
.profit-bar-track i.loss { background: #a61418; }

.ledger-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding: 2px 2px 7px;
  scrollbar-width: thin;
}

.ledger-filter {
  min-height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(13, 48, 77, .15);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.ledger-filter.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.ledger-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.ledger-source {
  border-radius: 4px;
  padding: 4px 6px;
  color: #fff;
  letter-spacing: 0;
}

.ledger-source.automatic { background: #14744b; }
.ledger-source.manual { background: #55708a; }

.ledger-row small,
.ledger-document {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.ledger-document {
  color: var(--blue);
  text-decoration: underline;
}

.ledger-lock {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.revenue-entry-row {
  border-left: 4px solid #14744b;
}

.rate-card-grid {
  display: grid;
  gap: 10px;
}

.rate-card {
  border: 1px solid rgba(13, 48, 77, .14);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  box-shadow: var(--platform-shadow-low);
}

.rate-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 11px;
}

.rate-card-head strong,
.rate-card-head small {
  display: block;
}

.rate-card-head strong { color: var(--navy); }
.rate-card-head small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.rate-card-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.revenue-manager {
  display: grid;
  gap: 18px;
}

.revenue-manager-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(13, 48, 77, .12);
  padding-bottom: 10px;
}

.revenue-manager-head h3 { color: var(--navy); }
.revenue-manager-head p { margin-top: 4px; font-size: 11px; font-weight: 700; }

.contract-revenue-row {
  border-color: rgba(13, 48, 77, .24);
  background: #f7fafc;
}

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

.revenue-source-summary > div {
  border: 1px solid rgba(13, 48, 77, .13);
  border-radius: 8px;
  background: #f8fbfd;
  padding: 13px;
}

.revenue-source-summary span,
.revenue-source-summary strong {
  display: block;
}

.revenue-source-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.revenue-source-summary strong {
  margin-top: 6px;
  color: var(--navy);
  font-size: 19px;
}

button.financial-category {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
}

.financial-category.actionable {
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.financial-category.actionable:hover {
  border-color: rgba(13, 48, 77, .32);
  box-shadow: var(--platform-shadow-medium);
  transform: translateY(-1px);
}

.financial-category-action {
  display: block;
  margin-top: 10px;
  color: var(--red);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.estimate-command-hero {
  margin-bottom: 18px;
}

.estimate-pipeline-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 9px;
  margin-top: 17px;
}

.estimate-pipeline-stats > div {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 7px;
  background: rgba(255, 255, 255, .09);
  padding: 12px;
}

.estimate-pipeline-stats strong,
.estimate-pipeline-stats span { display: block; }

.estimate-pipeline-stats strong {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.estimate-pipeline-stats span {
  margin-top: 5px;
  color: rgba(255, 255, 255, .72);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.estimate-pipeline-list {
  display: grid;
  gap: 14px;
}

.estimate-pipeline-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13, 48, 77, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .97);
  padding: 17px 17px 15px 21px;
  box-shadow: var(--platform-shadow-low);
}

.estimate-pipeline-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--red);
}

.estimate-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.estimate-card-title { min-width: 0; }

.estimate-card-title > span {
  display: block;
  color: var(--red);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.estimate-card-title h3 {
  margin-top: 4px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.16;
}

.estimate-card-title strong {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.estimate-card-badges,
.estimate-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.estimate-card-address {
  margin-top: 4px;
}

.estimate-card-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin-top: 14px;
  border-block: 1px solid rgba(13, 48, 77, .09);
  background: #f7fafc;
}

.estimate-card-metrics > div {
  min-width: 0;
  border-right: 1px solid rgba(13, 48, 77, .09);
  padding: 11px;
}

.estimate-card-metrics > div:last-child { border-right: 0; }
.estimate-card-metrics span,
.estimate-card-metrics strong { display: block; }
.estimate-card-metrics span { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.estimate-card-metrics strong { margin-top: 5px; color: var(--navy); font-size: 13px; overflow-wrap: anywhere; }

.estimate-card-brief {
  margin-top: 13px;
  border-left: 3px solid rgba(166, 20, 24, .55);
  padding: 2px 0 2px 11px;
}

.estimate-card-brief span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.estimate-card-brief p {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  white-space: pre-wrap;
}

.estimate-card-actions {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(13, 48, 77, .09);
}

.cost-manager {
  display: grid;
  gap: 15px;
}

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

.cost-manager-summary > div {
  border: 1px solid rgba(13, 48, 77, .13);
  border-radius: 8px;
  background: #f7fafc;
  padding: 13px;
}

.cost-manager-summary span,
.cost-manager-summary strong { display: block; }
.cost-manager-summary span { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.cost-manager-summary strong { margin-top: 5px; color: var(--navy); font-size: 20px; }

.cost-manager-groups {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(13, 48, 77, .11);
}

.cost-manager-group {
  display: grid;
  gap: 11px;
  border-bottom: 1px solid rgba(13, 48, 77, .11);
  padding: 16px 0;
}

.cost-manager-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cost-manager-group-head > div {
  display: grid;
  grid-template-columns: minmax(110px, auto) auto;
  align-items: baseline;
  gap: 4px 12px;
}

.cost-manager-group-head span,
.cost-manager-group-head strong,
.cost-manager-group-head small { display: block; }

.cost-manager-group-head span {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.cost-manager-group-head strong {
  color: var(--red);
  font-size: 17px;
}

.cost-manager-group-head small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.payroll-correction-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(13, 48, 77, .14);
  border-radius: 8px;
  background: #f7fafc;
  padding: 13px;
}

.payroll-correction-summary strong { color: var(--navy); }
.payroll-correction-summary span { color: var(--muted); font-size: 11px; font-weight: 750; }

.payroll-correction-allocation {
  border-bottom: 1px solid rgba(13, 48, 77, .09);
  padding: 10px 0;
}

.payroll-correction-allocation:last-child { border-bottom: 0; }

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

.rate-history-row .ledger-lock { white-space: nowrap; }

.audit-list {
  display: grid;
  gap: 0;
}

.audit-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid rgba(13, 48, 77, .09);
  padding: 11px 2px;
}

.audit-row:last-child { border-bottom: 0; }

.audit-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(166, 20, 24, .09);
}

.audit-row strong,
.audit-row small { display: block; }
.audit-row strong { color: var(--navy); font-size: 12px; }
.audit-row small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 700; }

@media (max-width: 820px) {
  .profit-kpi-grid,
  .profit-kpi-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rate-card-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .back {
    width: min(100%, 520px);
    min-height: 50px;
    margin: 6px auto 18px;
    padding: 11px 16px;
  }

  .profit-kpi {
    padding: 11px;
  }

  .profit-kpi strong {
    font-size: 20px;
  }

  .profit-donut-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 15px;
  }

  .profit-legend {
    width: 100%;
  }

  .ledger-row,
  .revenue-entry-row {
    align-items: flex-start;
  }

  .ledger-row .cost-entry-actions,
  .revenue-entry-row .cost-entry-actions {
    width: 100%;
  }

  .ledger-filter {
    min-height: 42px;
  }

  .revenue-source-summary {
    grid-template-columns: 1fr;
  }

  .cost-manager-summary {
    grid-template-columns: 1fr 1fr;
  }

  .cost-manager-group-head {
    align-items: stretch;
    flex-direction: column;
  }

  .cost-manager-group-head .premium-action {
    width: 100%;
    min-height: 42px;
  }

  .estimate-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .estimate-card-badges {
    justify-content: flex-start;
  }

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

  .estimate-card-metrics > div:nth-child(2n) { border-right: 0; }
  .estimate-card-metrics > div:nth-child(n + 3) { border-top: 1px solid rgba(13, 48, 77, .09); }

  .estimate-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .revenue-manager-head,
  .payroll-correction-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .revenue-manager-head .btn { width: 100%; }

  .payroll-row-actions {
    justify-content: flex-start;
  }
}

.upcoming-project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13, 48, 77, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  padding: 17px 17px 15px 21px;
  box-shadow: var(--platform-shadow-low);
  cursor: pointer;
}

.upcoming-project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--red);
}

.upcoming-project-card:hover {
  border-color: rgba(13, 48, 77, .26);
  box-shadow: var(--platform-shadow-mid);
  transform: translateY(-1px);
}

.upcoming-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.upcoming-card-title {
  min-width: 0;
}

.upcoming-card-title > span,
.upcoming-card-facts span,
.upcoming-readiness > div:first-child span,
.upcoming-card-details span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.upcoming-card-title > span {
  color: var(--red);
}

.upcoming-card-title h3 {
  margin-top: 3px;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.2;
}

.upcoming-card-title > strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
}

.upcoming-card-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.upcoming-card-address {
  margin-top: 10px;
}

.upcoming-card-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(13, 48, 77, .1);
  border-radius: 7px;
  background: #f7f9fc;
}

.upcoming-card-facts > div {
  min-width: 0;
  padding: 10px 11px;
  border-right: 1px solid rgba(13, 48, 77, .09);
}

.upcoming-card-facts > div:last-child {
  border-right: 0;
}

.upcoming-card-facts strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.upcoming-readiness {
  margin-top: 13px;
}

.upcoming-readiness > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.upcoming-readiness > div:first-child strong {
  color: var(--navy);
  font-size: 11px;
}

.upcoming-readiness-track {
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf3;
}

.upcoming-readiness-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.upcoming-card-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 13px;
  border-top: 1px solid rgba(13, 48, 77, .09);
  border-bottom: 1px solid rgba(13, 48, 77, .09);
}

.upcoming-card-details > div {
  min-width: 0;
  padding: 12px 12px 12px 0;
}

.upcoming-card-details > div + div {
  border-left: 1px solid rgba(13, 48, 77, .09);
  padding-left: 12px;
}

.upcoming-card-details p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.upcoming-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 13px;
  flex-wrap: wrap;
}

@media (max-width: 620px) {
  .upcoming-project-card {
    padding: 13px 12px 12px 17px;
  }

  .upcoming-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .upcoming-card-badges {
    justify-content: flex-start;
  }

  .upcoming-card-facts,
  .upcoming-card-details {
    grid-template-columns: 1fr;
  }

  .upcoming-card-facts > div {
    border-right: 0;
    border-bottom: 1px solid rgba(13, 48, 77, .09);
  }

  .upcoming-card-facts > div:last-child {
    border-bottom: 0;
  }

  .upcoming-card-details > div {
    padding: 11px 0;
  }

  .upcoming-card-details > div + div {
    border-top: 1px solid rgba(13, 48, 77, .09);
    border-left: 0;
    padding-left: 0;
  }

  .upcoming-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .upcoming-card-actions .premium-action,
  .upcoming-card-actions .map-action {
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .upcoming-card-actions {
    grid-template-columns: 1fr;
  }
}

.van-needs-hero {
  margin-bottom: 13px;
}

.van-needs-hero p {
  max-width: 690px;
  margin-top: 9px;
  color: rgba(255, 255, 255, .78);
  font-weight: 700;
  line-height: 1.45;
}

.van-need-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 17px;
}

.van-need-stats > div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 7px;
  background: rgba(255, 255, 255, .08);
  padding: 11px;
}

.van-need-stats > div.alert {
  border-color: rgba(255, 188, 188, .36);
  background: rgba(166, 20, 24, .3);
}

.van-need-stats strong,
.van-need-stats span {
  display: block;
}

.van-need-stats strong {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.van-need-stats span {
  margin-top: 5px;
  color: rgba(255, 255, 255, .72);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.van-need-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.van-need-filter {
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(13, 48, 77, .14);
  border-radius: 7px;
  background: rgba(255, 255, 255, .96);
  color: var(--navy);
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
  box-shadow: var(--platform-shadow-low);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.van-need-filter span {
  min-width: 0;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.van-need-filter strong {
  min-width: 24px;
  border-radius: 999px;
  background: #edf2f7;
  padding: 4px 6px;
  color: var(--navy);
  font-size: 10px;
  text-align: center;
}

.van-need-filter.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--platform-shadow-mid);
}

.van-need-filter.active strong {
  background: var(--red);
  color: #fff;
}

.van-need-list {
  display: grid;
  gap: 13px;
}

.van-need-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13, 48, 77, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  padding: 16px 16px 14px 20px;
  box-shadow: var(--platform-shadow-low);
}

.van-need-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--blue);
}

.van-need-card.attention::before {
  background: var(--red);
}

.van-need-card-head,
.van-need-card-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.van-need-title,
.van-need-card-foot > div:first-child {
  min-width: 0;
}

.van-need-title > span,
.van-need-card-foot span,
.van-need-facts span,
.van-need-progress > div:first-child span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.van-need-title > span {
  color: var(--red);
}

.van-need-title h3 {
  margin-top: 3px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.2;
}

.van-need-title p,
.van-need-card-foot p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  white-space: pre-wrap;
}

.van-need-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.van-need-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid rgba(13, 48, 77, .1);
  border-radius: 7px;
  background: #f7f9fc;
}

.van-need-facts > div {
  min-width: 0;
  padding: 10px 11px;
  border-right: 1px solid rgba(13, 48, 77, .09);
}

.van-need-facts > div:last-child {
  border-right: 0;
}

.van-need-facts strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.van-need-progress {
  margin-top: 13px;
}

.van-need-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.van-need-progress > div:first-child strong {
  color: var(--navy);
  font-size: 11px;
}

.van-need-progress-track {
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf3;
}

.van-need-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--red));
}

.van-need-card-foot {
  align-items: flex-end;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(13, 48, 77, .09);
}

.van-need-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

@media (max-width: 620px) {
  .van-need-stats,
  .van-need-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .van-needs-hero .hero-actions,
  .van-needs-hero .hero-actions .field-btn {
    width: 100%;
  }

  .van-need-card {
    padding: 13px 12px 12px 17px;
  }

  .van-need-card-head,
  .van-need-card-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .van-need-badges {
    justify-content: flex-start;
  }

  .van-need-facts {
    grid-template-columns: 1fr;
  }

  .van-need-facts > div {
    border-right: 0;
    border-bottom: 1px solid rgba(13, 48, 77, .09);
  }

  .van-need-facts > div:last-child {
    border-bottom: 0;
  }

  .van-need-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .van-need-card-actions .premium-action {
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .van-need-card-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .app-toast { display: none !important; }
}

.calendar-cancel-options {
  display: grid;
  gap: 9px;
}

.calendar-cancel-options label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  cursor: pointer;
}

.calendar-cancel-options label:has(input:checked) {
  border-color: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 12%, transparent);
}

.calendar-cancel-options input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--red);
}

.calendar-cancel-options strong,
.calendar-cancel-options small {
  display: block;
}

.calendar-cancel-options strong {
  color: var(--navy);
  font-size: 13px;
}

.calendar-cancel-options small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

/* Premium desktop workspace shell. Mobile keeps the existing compact controls. */
.desktop-sidebar,
.desktop-dashboard-projects,
.desktop-workspace-bar {
  display: none;
}

@media (min-width: 1100px) {
  :root {
    --desktop-header-height: 78px;
    --desktop-sidebar-width: 252px;
  }

  body {
    background: #edf2f5;
  }

  body::before {
    background-position: calc(50% + (var(--desktop-sidebar-width) / 2)) 58%;
    opacity: .055;
  }

  header {
    min-height: var(--desktop-header-height);
    border-bottom-width: 3px;
    box-shadow: 0 8px 24px rgba(7, 31, 49, .16);
  }

  header .wrap {
    width: 100%;
    max-width: none;
    padding: 10px clamp(20px, 2.4vw, 38px);
  }

  header .top,
  header .top.expanded {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
  }

  header .brand-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 58px;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  header .brand {
    flex: 0 1 auto;
    min-width: 0;
    gap: 11px;
  }

  header .brand .logo {
    flex: 0 0 58px;
    width: 58px;
    height: 46px;
    border-radius: 6px;
    padding: 4px;
  }

  header .brand .eyebrow {
    font-size: 9px;
    letter-spacing: .08em;
  }

  header .brand h1 {
    margin-top: 3px;
    font-size: 20px;
    line-height: 1.05;
  }

  header .command-meta {
    display: flex;
    flex: 0 1 auto;
    justify-content: flex-end;
    margin: 0;
  }

  header .command-meta .meta-chip {
    display: none;
    min-height: 34px;
    align-items: center;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 10px;
  }

  header .command-meta .meta-chip:first-child,
  header .command-meta .meta-chip:nth-child(4) {
    display: inline-flex;
  }

  #dashboardToggle,
  #controlPanel,
  #tabs {
    display: none !important;
  }

  .header-notification-bell {
    width: 46px;
    height: 46px;
    border-radius: 7px;
  }

  .workspace-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: var(--desktop-sidebar-width) minmax(0, 1fr);
    width: 100%;
    min-height: calc(100vh - var(--desktop-header-height));
  }

  .desktop-sidebar {
    position: sticky;
    top: var(--desktop-header-height);
    z-index: 4;
    display: block;
    height: calc(100vh - var(--desktop-header-height));
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, .12);
    background: var(--navy);
    color: #fff;
  }

  .desktop-sidebar-content {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    height: 100%;
    min-height: 0;
  }

  .desktop-sidebar-brand {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 16px 15px 14px;
    cursor: pointer;
  }

  .desktop-sidebar-brand:hover {
    background: rgba(255, 255, 255, .045);
  }

  .desktop-sidebar-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 7px;
    background: var(--red);
    color: #fff;
    font-size: 19px;
    font-weight: 950;
  }

  .desktop-sidebar-brand strong,
  .desktop-sidebar-brand small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-sidebar-brand strong {
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
  }

  .desktop-sidebar-brand small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
    font-weight: 750;
  }

  .desktop-sidebar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 11px 12px;
    background: rgba(0, 0, 0, .08);
  }

  .desktop-sidebar-action {
    min-height: 39px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    padding: 8px 7px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.15;
    cursor: pointer;
  }

  .desktop-sidebar-action:hover {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .15);
  }

  .desktop-sidebar-action.primary {
    border-color: var(--red);
    background: var(--red);
  }

  .desktop-nav {
    display: block;
    min-height: 0;
    overflow-y: auto;
    padding: 13px 11px 20px;
    scrollbar-color: rgba(255, 255, 255, .22) transparent;
    scrollbar-width: thin;
  }

  .desktop-nav-group + .desktop-nav-group {
    margin-top: 17px;
  }

  .desktop-nav-label {
    padding: 0 9px 7px;
    color: var(--red);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .desktop-nav-list {
    display: grid;
    gap: 3px;
  }

  .desktop-nav-button {
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    min-height: 39px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, .78);
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    text-align: left;
    cursor: pointer;
  }

  .desktop-nav-button:hover {
    border-color: rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .075);
    color: #fff;
  }

  .desktop-nav-button.active {
    border-color: rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .14);
    color: #fff;
  }

  .desktop-nav-indicator {
    width: 4px;
    height: 21px;
    border-radius: 4px;
    background: transparent;
  }

  .desktop-nav-button.active .desktop-nav-indicator {
    background: var(--red);
  }

  .desktop-nav-button em {
    display: grid;
    min-width: 20px;
    min-height: 20px;
    place-items: center;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    padding: 2px 5px;
    font-size: 8px;
    font-style: normal;
    font-weight: 950;
  }

  .desktop-nav-button.coming-soon,
  .desktop-nav-button.coming-soon:disabled {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .045);
    color: rgba(255, 255, 255, .72);
    cursor: default;
    opacity: 1;
  }

  .desktop-nav-button.coming-soon .desktop-nav-indicator {
    background: rgba(255, 255, 255, .2);
  }

  .desktop-nav-button .desktop-nav-soon {
    width: auto;
    min-width: 0;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    padding: 4px 6px;
    color: rgba(255, 255, 255, .82);
    font-size: 6.5px;
    letter-spacing: .05em;
    line-height: 1;
    text-transform: uppercase;
  }

  .desktop-sidebar-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 11px 10px;
    background: rgba(0, 0, 0, .14);
  }

  .desktop-sidebar-footer button {
    min-height: 39px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 6px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    padding: 7px;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
  }

  .desktop-sidebar-footer button:hover {
    background: rgba(255, 255, 255, .14);
  }

  main.workspace-main {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0 0 64px;
  }

  .workspace-main #app {
    width: min(100%, 1500px);
    margin: 0 auto;
    padding: 25px clamp(24px, 3vw, 48px) 0;
  }

  .desktop-workspace-bar {
    position: sticky;
    top: var(--desktop-header-height);
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 420px) auto;
    gap: 22px;
    align-items: center;
    width: 100%;
    min-height: 88px;
    border-bottom: 1px solid rgba(13, 48, 77, .12);
    background: rgba(248, 250, 251, .96);
    padding: 13px clamp(24px, 3vw, 48px);
    box-shadow: 0 7px 18px rgba(11, 37, 69, .06);
    backdrop-filter: blur(16px);
  }

  .desktop-workspace-heading {
    min-width: 0;
  }

  .desktop-workspace-heading > span,
  .desktop-workspace-heading > strong,
  .desktop-workspace-heading > small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-workspace-heading > span {
    color: var(--red);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .desktop-workspace-heading > strong {
    margin-top: 3px;
    color: var(--navy);
    font-size: 19px;
    line-height: 1.15;
  }

  .desktop-workspace-heading > small {
    margin-top: 4px;
    color: #657482;
    font-size: 10px;
    font-weight: 700;
  }

  .desktop-workspace-search {
    display: grid;
    gap: 5px;
  }

  .desktop-workspace-search > span {
    color: #647383;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .desktop-workspace-search input {
    width: 100%;
    height: 42px;
    border: 1px solid rgba(13, 48, 77, .18);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    padding: 0 13px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: inset 0 1px 1px rgba(11, 37, 69, .03);
  }

  .desktop-workspace-search input:focus {
    border-color: var(--red);
    outline: 3px solid color-mix(in srgb, var(--red) 14%, transparent);
  }

  .desktop-workspace-tools {
    display: flex;
    gap: 7px;
    justify-content: flex-end;
  }

  .desktop-workspace-tools button {
    min-height: 40px;
    border: 1px solid rgba(13, 48, 77, .15);
    border-radius: 6px;
    background: #fff;
    color: var(--navy);
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
  }

  .desktop-workspace-tools button:hover {
    border-color: var(--red);
    color: var(--red);
  }

  .workspace-main #app > .back {
    margin-top: 0;
  }

  .workspace-main #app > .section:first-of-type,
  .workspace-main #app > .command-hero:first-of-type {
    margin-top: 0;
  }

  .workspace-main .section {
    scroll-margin-top: calc(var(--desktop-header-height) + 110px);
  }

  .workspace-main .section > .section-head {
    padding-bottom: 12px;
  }

  body[data-page="dashboard"] .dashboard-hero {
    border-radius: 8px;
    padding: 26px 28px;
    box-shadow: 0 18px 42px rgba(11, 37, 69, .18);
  }

  body[data-page="dashboard"] .dashboard-hero .hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr);
    align-items: center;
  }

  body[data-page="dashboard"] .dashboard-hero h2 {
    max-width: 760px;
    font-size: clamp(28px, 2.5vw, 38px);
    line-height: 1.04;
  }

  body[data-page="dashboard"] .dashboard-hero p {
    max-width: 780px;
    font-size: 12px;
    line-height: 1.45;
  }

  body[data-page="dashboard"] .dashboard-hero .quick-actions.simple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }

  body[data-page="dashboard"] .dashboard-hero .field-btn {
    min-height: 46px;
    border-radius: 6px;
    padding: 9px 10px;
    font-size: 11px;
  }

  body[data-page="dashboard"] .premium-stats {
    gap: 8px;
    margin-top: 18px;
  }

  body[data-page="dashboard"] .premium-stat {
    border-radius: 6px;
    padding: 13px 14px;
  }

  body[data-page="dashboard"] .premium-stat strong {
    font-size: 25px;
  }

  body[data-page="dashboard"] .section {
    margin-top: 25px;
  }

  body[data-page="dashboard"] .section[data-section-key*="Owner-Priority-Board"] .owner-link-grid,
  body[data-page="dashboard"] .section[data-section-key*="Work-Tools"] .owner-link-grid,
  body[data-page="dashboard"] .section[data-section-key*="Job-Tools"] .owner-link-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-page="dashboard"] .owner-link-grid .owner-link:nth-child(n+5) {
    display: none;
  }

  body[data-page="dashboard"] .owner-link {
    min-height: 118px;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    box-shadow: 0 8px 20px rgba(11, 37, 69, .07);
  }

  body[data-page="dashboard"] .owner-link strong {
    font-size: 15px;
  }

  .desktop-dashboard-projects {
    display: block;
    margin-top: 30px;
  }

  .desktop-dashboard-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(13, 48, 77, .1);
    padding-bottom: 11px;
  }

  .desktop-dashboard-section-head span {
    display: block;
    margin-bottom: 4px;
    color: var(--red);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .desktop-dashboard-section-head h2 {
    font-size: 22px;
  }

  .desktop-dashboard-section-head button {
    min-height: 36px;
    border: 1px solid rgba(13, 48, 77, .15);
    border-radius: 6px;
    background: #fff;
    color: var(--navy);
    padding: 7px 12px;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
  }

  .desktop-dashboard-job-list {
    gap: 8px;
  }

  .desktop-dashboard-job-list .job-tab {
    min-height: 68px;
    border-radius: 7px;
    padding: 12px 14px 12px 18px;
    box-shadow: 0 10px 25px rgba(11, 37, 69, .13);
  }

  .desktop-dashboard-job-list .job-tab h3 {
    font-size: 16px;
  }

  .desktop-dashboard-job-list .job-tab-client,
  .desktop-dashboard-job-list .job-tab-address {
    font-size: 10px;
  }
}

/* Mobile workflow navigation, agenda, and edit-surface performance. */
.mobile-bottom-nav,
.mobile-more-backdrop,
.mobile-more-sheet,
.mobile-workspace-info-button,
.mobile-workspace-info-backdrop,
.mobile-workspace-info-sheet,
.mobile-schedule-view {
  display: none;
}

.drawer-backdrop {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.drawer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden !important;
  contain: layout paint style;
  backface-visibility: hidden;
  transform: translate3d(105%, 0, 0);
}

.drawer.open {
  transform: translate3d(0, 0, 0);
}

.drawer-head {
  position: relative !important;
  top: auto !important;
}

.drawer-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  contain: layout paint;
  transform: translateZ(0);
}

body.drawer-open {
  overflow: hidden;
}

body.drawer-open::before {
  visibility: hidden;
}

@media (max-width: 620px) {
  :root {
    --mobile-nav-height: 68px;
  }

  body {
    padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
  }

  body.login-active,
  body.welcome-active,
  body.hours-save-active {
    padding-bottom: 0;
  }

  body.login-active .mobile-bottom-nav,
  body.welcome-active .mobile-bottom-nav,
  body.hours-save-active .mobile-bottom-nav,
  .mobile-bottom-nav:empty {
    display: none !important;
  }

  header .wrap {
    padding: 6px max(9px, env(safe-area-inset-right)) 6px max(9px, env(safe-area-inset-left));
  }

  header .top,
  header .top.expanded {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 8px;
    align-items: center;
  }

  header .brand-panel {
    min-height: 44px;
    border: 0;
    background: transparent;
    padding: 0;
  }

  header .brand {
    min-width: 0;
    gap: 8px;
  }

  header .brand .logo {
    flex: 0 0 58px;
    width: 58px;
    height: 34px;
    border-radius: 6px;
    padding: 3px;
  }

  header .brand h1 {
    max-width: calc(100vw - 132px);
    overflow: hidden;
    font-size: 16px;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  header .command-meta,
  #dashboardToggle,
  #controlPanel,
  #tabs {
    display: none !important;
  }

  .header-notification-bell {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  main.workspace-main {
    padding-bottom: calc(34px + var(--mobile-nav-height) + env(safe-area-inset-bottom));
  }

  .workspace-main #app {
    padding-bottom: 8px;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 34;
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    min-height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(13, 48, 77, .14);
    background: rgba(255, 255, 255, .97);
    padding: 6px max(5px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left));
    box-shadow: 0 -12px 30px rgba(8, 29, 45, .13);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .mobile-nav-button {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 56px;
    place-items: center;
    align-content: center;
    gap: 3px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #687785;
    padding: 5px 2px 4px;
    cursor: pointer;
  }

  .mobile-nav-button::before {
    content: "";
    position: absolute;
    top: 1px;
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: transparent;
  }

  .mobile-nav-button.active {
    background: color-mix(in srgb, var(--blue) 9%, #fff);
    color: var(--navy);
  }

  .mobile-nav-button.active::before {
    background: var(--red);
  }

  .mobile-nav-icon {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
  }

  .mobile-nav-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
  }

  .mobile-nav-label {
    width: 100%;
    overflow: hidden;
    font-size: 9px;
    font-weight: 850;
    line-height: 1.05;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav-button em {
    position: absolute;
    top: 3px;
    left: calc(50% + 7px);
    display: grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    padding: 0 4px;
    font-size: 8px;
    font-style: normal;
    font-weight: 950;
  }

  .mobile-workspace-info-button {
    position: fixed;
    left: max(13px, env(safe-area-inset-left));
    bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 13px);
    z-index: 33;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    padding: 0;
    box-shadow: 0 12px 28px rgba(6, 24, 39, .25);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
  }

  .mobile-workspace-info-button.hidden,
  body.login-active .mobile-workspace-info-button,
  body.welcome-active .mobile-workspace-info-button,
  body.hours-save-active .mobile-workspace-info-button {
    display: none !important;
  }

  .mobile-workspace-info-button:active {
    transform: scale(.95);
  }

  .mobile-workspace-info-button svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
  }

  .mobile-workspace-info-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    background: rgba(6, 24, 39, .66);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }

  .mobile-workspace-info-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-workspace-info-sheet {
    position: fixed;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: 14px;
    z-index: 51;
    display: grid;
    max-width: 420px;
    max-height: calc(100dvh - 28px - env(safe-area-inset-bottom));
    gap: 14px;
    margin: 0 auto;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .5);
    border-top: 5px solid var(--red);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    padding: 20px;
    box-shadow: 0 28px 80px rgba(6, 24, 39, .4);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 24px, 0) scale(.98);
    transition: opacity .18s ease, transform .2s cubic-bezier(.2, .8, .2, 1);
  }

  .mobile-workspace-info-sheet.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .mobile-workspace-info-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
  }

  .mobile-workspace-info-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
  }

  .mobile-workspace-info-eyebrow {
    display: block;
    color: var(--red);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .mobile-workspace-info-sheet h2 {
    margin-top: 4px;
    color: var(--navy);
    font-size: 23px;
    line-height: 1.08;
  }

  .mobile-workspace-info-sheet p {
    margin: 0;
    color: #526473;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
  }

  .mobile-workspace-info-dismiss {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: var(--red);
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
  }

  .mobile-more-backdrop {
    position: fixed;
    inset: 0;
    z-index: 46;
    display: block;
    background: rgba(6, 24, 39, .62);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }

  .mobile-more-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-more-sheet {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 47;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    width: 100%;
    max-height: min(92dvh, 840px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .28);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: #eef3f6;
    color: var(--ink);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -28px 80px rgba(6, 24, 39, .38);
    transform: translate3d(0, 105%, 0);
    transition: transform .22s cubic-bezier(.2, .8, .2, 1);
  }

  .mobile-more-sheet.open {
    transform: translate3d(0, 0, 0);
  }

  .mobile-more-handle {
    width: 44px;
    height: 5px;
    margin: 9px auto 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--navy) 24%, #dce5eb);
  }

  .mobile-more-head {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 4px solid var(--red);
    background: var(--navy);
    padding: 14px 16px 13px;
    color: #fff;
  }

  .mobile-more-title {
    min-width: 0;
  }

  .mobile-more-title span,
  .mobile-more-title h2,
  .mobile-more-title p {
    display: block;
  }

  .mobile-more-title span {
    color: color-mix(in srgb, var(--red) 44%, #fff);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .mobile-more-title h2 {
    margin-top: 3px;
    color: #fff;
    font-size: 23px;
    line-height: 1.05;
  }

  .mobile-more-title p {
    margin: 5px 0 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .64);
    font-size: 9px;
    font-weight: 750;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-more-close {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    min-height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
    color: #fff;
  }

  .mobile-more-close svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
  }

  .mobile-more-content {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 12px 28px;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-more-identity {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    border: 1px solid rgba(13, 48, 77, .12);
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    padding: 11px 12px;
    box-shadow: 0 9px 22px rgba(8, 29, 45, .07);
  }

  .mobile-more-company-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 8px;
    background: var(--red);
    color: #fff;
    font-size: 18px;
    font-weight: 950;
  }

  .mobile-more-identity > div {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .mobile-more-identity small {
    color: var(--red);
    font-size: 8px;
    font-weight: 950;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  .mobile-more-identity strong {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-more-identity > div > span {
    overflow: hidden;
    color: #687785;
    font-size: 9px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-more-identity > em {
    border-radius: 999px;
    background: color-mix(in srgb, var(--blue) 9%, #fff);
    color: var(--navy);
    padding: 5px 7px;
    font-size: 8px;
    font-style: normal;
    font-weight: 950;
    white-space: nowrap;
  }

  .mobile-more-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .mobile-more-quick {
    display: grid;
    min-width: 0;
    min-height: 62px;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    border: 1px solid rgba(13, 48, 77, .14);
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    padding: 8px 9px;
    text-align: left;
    box-shadow: 0 8px 20px rgba(8, 29, 45, .06);
  }

  .mobile-more-quick-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 7px;
    background: color-mix(in srgb, var(--blue) 9%, #fff);
    color: var(--navy);
  }

  .mobile-more-quick-icon svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
  }

  .mobile-more-quick > span:last-child {
    display: grid;
    min-width: 0;
    gap: 3px;
  }

  .mobile-more-quick strong,
  .mobile-more-quick small {
    display: block;
  }

  .mobile-more-quick strong {
    font-size: 11px;
    font-weight: 950;
    line-height: 1.1;
  }

  .mobile-more-quick small {
    color: #74818d;
    font-size: 8px;
    font-weight: 750;
    line-height: 1.2;
  }

  .mobile-more-quick.primary {
    border-color: var(--red);
    background: var(--red);
    color: #fff;
  }

  .mobile-more-quick.primary .mobile-more-quick-icon {
    background: rgba(255, 255, 255, .16);
    color: #fff;
  }

  .mobile-more-quick.primary small {
    color: rgba(255, 255, 255, .7);
  }

  .mobile-more-search {
    position: sticky;
    top: -12px;
    z-index: 3;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin: 12px -2px 0;
    border: 1px solid rgba(13, 48, 77, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .98);
    padding: 0 11px;
    box-shadow: 0 9px 20px rgba(8, 29, 45, .08);
  }

  .mobile-more-search > span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: #6d7a86;
  }

  .mobile-more-search svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
  }

  .mobile-more-search input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--navy);
    padding: 0;
    font-size: 16px;
    font-weight: 800;
  }

  .mobile-more-search input::placeholder {
    color: #82909b;
  }

  .mobile-more-group {
    margin-top: 15px;
    overflow: hidden;
    border: 1px solid rgba(13, 48, 77, .11);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 9px 22px rgba(8, 29, 45, .055);
  }

  .mobile-more-group[hidden],
  .mobile-more-link[hidden] {
    display: none !important;
  }

  .mobile-more-group-head {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    border-bottom: 1px solid rgba(13, 48, 77, .09);
    background: color-mix(in srgb, var(--blue) 6%, #fff);
    padding: 10px 11px;
  }

  .mobile-more-group-head > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 7px;
    background: var(--navy);
    color: #fff;
  }

  .mobile-more-group-head svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
  }

  .mobile-more-group-head > div {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .mobile-more-group h3 {
    margin: 0;
    color: var(--navy);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .05em;
    text-transform: uppercase;
  }

  .mobile-more-group-head p {
    margin: 0;
    color: #71808c;
    font-size: 9px;
    font-weight: 750;
  }

  .mobile-more-group-head > em {
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-size: 8px;
    font-style: normal;
    font-weight: 950;
  }

  .mobile-more-list {
    background: #fff;
  }

  .mobile-more-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto 14px;
    gap: 9px;
    align-items: center;
    width: 100%;
    min-height: 62px;
    border: 0;
    border-bottom: 1px solid rgba(13, 48, 77, .08);
    background: #fff;
    color: var(--navy);
    padding: 9px 11px;
    text-align: left;
  }

  .mobile-more-link:last-child {
    border-bottom: 0;
  }

  .mobile-more-link.active {
    background: color-mix(in srgb, var(--blue) 10%, #fff);
    box-shadow: inset 4px 0 0 var(--red);
  }

  .mobile-more-link-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 7px;
    background: color-mix(in srgb, var(--blue) 8%, #fff);
    color: var(--navy);
  }

  .mobile-more-link.active .mobile-more-link-icon {
    background: var(--navy);
    color: #fff;
  }

  .mobile-more-link-icon svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
  }

  .mobile-more-link-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
  }

  .mobile-more-link-copy strong {
    overflow: hidden;
    color: var(--navy);
    font-size: 11px;
    font-weight: 950;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-more-link-copy small {
    overflow: hidden;
    color: #74818d;
    font-size: 8.5px;
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-more-link em {
    display: grid;
    min-width: 21px;
    min-height: 21px;
    place-items: center;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    padding: 2px 5px;
    font-size: 8px;
    font-style: normal;
    font-weight: 950;
  }

  .mobile-more-link b {
    color: #8795a1;
    font-size: 21px;
    font-weight: 500;
    line-height: 1;
    text-align: right;
  }

  .mobile-more-link.coming-soon,
  .mobile-more-link.coming-soon:disabled {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    background: #f7f9fa;
    color: var(--navy);
    cursor: default;
    opacity: 1;
  }

  .mobile-more-link.coming-soon .mobile-more-link-icon {
    border: 1px solid rgba(13, 48, 77, .1);
    background: #fff;
    color: #667988;
  }

  .mobile-more-link .mobile-more-soon {
    min-width: 0;
    min-height: 0;
    border: 1px solid color-mix(in srgb, var(--red) 28%, #fff);
    background: color-mix(in srgb, var(--red) 8%, #fff);
    padding: 5px 7px;
    color: var(--red);
    font-size: 7px;
    letter-spacing: .05em;
    line-height: 1;
    text-transform: uppercase;
  }

  .mobile-more-empty {
    display: grid;
    gap: 4px;
    margin-top: 15px;
    border: 1px dashed rgba(13, 48, 77, .2);
    border-radius: 8px;
    background: #fff;
    padding: 22px 16px;
    text-align: center;
  }

  .mobile-more-empty strong {
    color: var(--navy);
    font-size: 13px;
  }

  .mobile-more-empty span {
    color: #74818d;
    font-size: 10px;
    font-weight: 750;
  }

  .mobile-more-logout {
    width: 100%;
    min-height: 46px;
    margin-top: 16px;
    border: 1px solid rgba(173, 31, 41, .22);
    border-radius: 8px;
    background: #fff;
    color: #9c1d27;
    font-size: 11px;
    font-weight: 900;
  }

  .compliance-context,
  .compliance-editor-intro {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .compliance-context strong,
  .compliance-editor-intro strong {
    white-space: normal;
  }

  .edit-compliance-panel summary {
    grid-template-columns: minmax(0, 1fr) auto 16px;
    gap: 7px;
    padding: 10px;
  }

  .edit-compliance-panel summary em {
    padding: 4px 6px;
  }

  .edit-compliance-body {
    padding: 8px;
  }

  .workspace-main #app > .back {
    min-height: 42px;
    margin: 0 auto 10px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 12px;
    box-shadow: 0 8px 18px rgba(11, 37, 69, .13);
  }

  body:not([data-page="dashboard"]) .workspace-main .command-hero {
    padding: 12px;
  }

  body:not([data-page="dashboard"]) .workspace-main .command-hero .hero-grid {
    gap: 9px;
  }

  body:not([data-page="dashboard"]) .workspace-main .command-hero h2 {
    font-size: 21px;
    line-height: 1.08;
  }

  body:not([data-page="dashboard"]) .workspace-main .command-hero .hero-grid > div:first-child > p {
    display: none;
  }

  body:not([data-page="dashboard"]) .workspace-main .command-hero .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body:not([data-page="dashboard"]) .workspace-main .command-hero .hero-actions > :only-child {
    grid-column: 1 / -1;
  }

  body:not([data-page="dashboard"]) .workspace-main .command-hero .field-btn {
    min-height: 42px;
    padding: 8px 7px;
    font-size: 11px;
  }

  body:not([data-page="dashboard"]) .workspace-main .command-hero .premium-stats {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  body:not([data-page="dashboard"]) .workspace-main .command-hero .premium-stats::-webkit-scrollbar {
    display: none;
  }

  body:not([data-page="dashboard"]) .workspace-main .command-hero .premium-stat {
    flex: 0 0 116px;
    min-height: 58px;
    padding: 8px;
    scroll-snap-align: start;
  }

  body:not([data-page="dashboard"]) .workspace-main .command-hero .premium-stat strong {
    font-size: 19px;
  }

  body:not([data-page="dashboard"]) .workspace-main .command-hero .premium-stat span {
    font-size: 8px;
  }

  .workspace-main .section {
    margin-top: 11px;
  }

  .company-schedule-page .schedule-command-bar {
    min-height: 0;
    gap: 10px;
    border-radius: 9px;
    padding: 10px;
  }

  .company-schedule-page .schedule-period strong {
    font-size: 15px;
  }

  .company-schedule-page .schedule-week-actions {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .company-schedule-page .schedule-week-context {
    min-height: 0;
    padding: 8px 0;
  }

  .company-schedule-page .schedule-week-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 5px;
  }

  .company-schedule-page .schedule-week-summary span {
    justify-content: center;
    min-width: 0;
    padding: 6px 4px;
    font-size: 8px;
    text-align: center;
  }

  .company-schedule-page .schedule-grid {
    display: none !important;
  }

  .mobile-schedule-view {
    display: block;
    margin-top: 8px;
  }

  .mobile-schedule-date-strip {
    display: grid;
    grid-auto-columns: 56px;
    grid-auto-flow: column;
    gap: 6px;
    overflow-x: auto;
    padding: 3px 1px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .mobile-schedule-date-strip::-webkit-scrollbar {
    display: none;
  }

  .mobile-schedule-date {
    position: relative;
    display: grid;
    min-height: 72px;
    place-items: center;
    align-content: center;
    gap: 2px;
    border: 1px solid rgba(13, 48, 77, .13);
    border-radius: 10px;
    background: #fff;
    color: var(--navy);
    padding: 6px 4px;
    scroll-snap-align: start;
  }

  .mobile-schedule-date span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-schedule-date strong {
    font-size: 19px;
    line-height: 1;
  }

  .mobile-schedule-date em {
    display: grid;
    min-width: 18px;
    min-height: 18px;
    place-items: center;
    border-radius: 999px;
    background: #edf2f6;
    color: var(--muted);
    font-size: 8px;
    font-style: normal;
    font-weight: 950;
  }

  .mobile-schedule-date.today {
    border-color: color-mix(in srgb, var(--red) 48%, #fff);
  }

  .mobile-schedule-date.active {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
    box-shadow: 0 8px 18px rgba(13, 48, 77, .2);
  }

  .mobile-schedule-date.active span {
    color: rgba(255, 255, 255, .72);
  }

  .mobile-schedule-date.active em {
    background: var(--red);
    color: #fff;
  }

  .mobile-schedule-agenda {
    overflow: hidden;
    border: 1px solid rgba(13, 48, 77, .12);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(13, 48, 77, .07);
  }

  .mobile-schedule-agenda-head {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(13, 48, 77, .09);
    background: #f6f9fb;
    padding: 10px 12px;
  }

  .mobile-schedule-agenda-head span,
  .mobile-schedule-agenda-head strong {
    display: block;
  }

  .mobile-schedule-agenda-head span {
    color: var(--red);
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
  }

  .mobile-schedule-agenda-head strong {
    margin-top: 2px;
    color: var(--navy);
    font-size: 16px;
  }

  .mobile-schedule-agenda-head em {
    color: var(--muted);
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
  }

  .mobile-schedule-entry-list {
    display: grid;
  }

  .mobile-schedule-entry {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 14px;
    gap: 9px;
    align-items: center;
    width: 100%;
    min-height: 76px;
    border: 0;
    border-bottom: 1px solid rgba(13, 48, 77, .08);
    border-left: 4px solid var(--blue);
    background: #fff;
    color: var(--ink);
    padding: 10px 10px 10px 9px;
    text-align: left;
  }

  .mobile-schedule-entry:last-child {
    border-bottom: 0;
  }

  .mobile-schedule-entry.red,
  .mobile-schedule-entry.schedule-type-inspection,
  .mobile-schedule-entry.schedule-type-deadline,
  .mobile-schedule-entry.schedule-type-project-start {
    border-left-color: var(--red);
  }

  .mobile-schedule-entry-time {
    color: var(--red);
    font-size: 9px;
    font-weight: 950;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .mobile-schedule-entry-copy {
    display: block;
    min-width: 0;
  }

  .mobile-schedule-entry-copy strong,
  .mobile-schedule-entry-copy small,
  .mobile-schedule-entry-copy em {
    display: block;
  }

  .mobile-schedule-entry-copy strong {
    color: var(--navy);
    font-size: 13px;
    line-height: 1.2;
  }

  .mobile-schedule-entry-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
  }

  .mobile-schedule-entry-copy em {
    margin-top: 4px;
    color: var(--blue);
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
  }

  .mobile-schedule-entry-open {
    color: #8a98a3;
    font-size: 22px;
  }

  .mobile-schedule-empty {
    display: grid;
    min-height: 136px;
    align-content: center;
    justify-items: center;
    padding: 20px 14px;
    text-align: center;
  }

  .mobile-schedule-empty strong {
    color: var(--navy);
    font-size: 14px;
  }

  .mobile-schedule-empty span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
  }

  .mobile-schedule-empty button {
    min-height: 42px;
    margin-top: 12px;
    border: 0;
    border-radius: 8px;
    background: var(--red);
    color: #fff;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 900;
  }

  body[data-page="my-hours"] .workspace-main .drawer-actions {
    bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    z-index: 6;
  }

  .drawer .drawer-actions {
    bottom: 0 !important;
  }

  .app-toast {
    bottom: calc(var(--mobile-nav-height) + 10px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  .mobile-nav-label {
    font-size: 8px;
  }

  .mobile-nav-icon,
  .mobile-nav-icon svg {
    width: 20px;
    height: 20px;
  }

  .mobile-schedule-date-strip {
    grid-auto-columns: 52px;
  }
}

/* Scheduling V11: one responsive planning surface across every company workspace. */
.schedule-saved-view-toolbar {
  display: grid;
  grid-template-columns: auto minmax(190px, 330px) auto;
  width: 100%;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  padding: 0;
}

.schedule-saved-view-title {
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.schedule-saved-view-toolbar select {
  min-height: 40px;
  border: 1px solid rgba(13, 48, 77, .18);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  padding: 0 34px 0 10px;
  font-size: 11px;
  font-weight: 850;
}

.schedule-saved-view-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.schedule-saved-view-toolbar button,
.schedule-active-filters button {
  min-height: 38px;
  border: 1px solid rgba(13, 48, 77, .18);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  padding: 0 12px;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.schedule-saved-view-toolbar button.danger {
  border-color: rgba(195, 33, 47, .25);
  color: var(--red);
}

.schedule-active-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  margin: 8px 0 10px;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.schedule-active-filters > strong {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.schedule-active-filters button {
  flex: 0 0 auto;
  min-height: 30px;
  border-color: rgba(32, 124, 119, .24);
  background: rgba(32, 124, 119, .08);
  color: #17655f;
}

.schedule-active-filters button.clear-all {
  border-color: rgba(195, 33, 47, .2);
  background: rgba(195, 33, 47, .06);
  color: var(--red);
}

.schedule-more-filters {
  margin: 8px 0 10px;
  border: 1px solid rgba(13, 48, 77, .12);
  border-radius: 8px;
  background: #f8fafb;
}

.schedule-more-filters summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.schedule-more-filters summary em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.schedule-more-filters > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid rgba(13, 48, 77, .1);
  padding: 10px;
}

.schedule-more-filters label {
  display: grid;
  gap: 4px;
}

.schedule-more-filters label span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-more-filters select {
  min-height: 40px;
  min-width: 0;
  border: 1px solid rgba(13, 48, 77, .16);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  padding: 0 30px 0 9px;
  font-size: 10px;
  font-weight: 800;
}

.schedule-view-switcher {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  max-width: 620px;
  margin-bottom: 10px;
  border: 1px solid rgba(13, 48, 77, .12);
  border-radius: 8px;
  background: #edf3f7;
  padding: 5px;
}

.schedule-view-switcher button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.schedule-view-switcher button:hover,
.schedule-view-switcher button:focus-visible {
  background: rgba(255, 255, 255, .74);
  color: var(--navy);
}

.schedule-view-switcher button.active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 5px 13px rgba(13, 48, 77, .18);
}

.schedule-state-banner {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(13, 48, 77, .12);
  border-radius: 8px;
  background: #f6f9fb;
  padding: 10px 12px;
}

.schedule-state-banner > div,
.schedule-state-banner strong,
.schedule-state-banner span {
  display: block;
}

.schedule-state-banner.offline {
  border-color: rgba(180, 118, 0, .28);
  background: #fff8e7;
}

.schedule-state-banner.offline strong {
  color: #795100;
}

.schedule-state-banner strong {
  color: var(--navy);
  font-size: 11px;
}

.schedule-state-banner span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.schedule-state-banner.loading {
  justify-content: flex-start;
}

.schedule-state-banner.loading > span {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  border: 2px solid rgba(13, 48, 77, .18);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: schedule-spinner .8s linear infinite;
}

.schedule-state-banner.loading.compact {
  min-height: 38px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.schedule-state-banner.error {
  border-color: rgba(195, 33, 47, .25);
  background: #fff5f5;
}

.schedule-state-banner.warning {
  border-color: rgba(182, 112, 0, .25);
  background: #fff9ed;
}

.schedule-state-banner button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  padding: 7px 13px;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

@keyframes schedule-spinner {
  to { transform: rotate(360deg); }
}

.calendar-time-guidance {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.45;
}

.calendar-recurrence-days {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.calendar-recurrence-days > span {
  width: 100%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.calendar-recurrence-days label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 56px;
  min-height: 38px;
  border: 1px solid rgba(13, 48, 77, .16);
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  padding: 7px 9px;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.calendar-recurrence-days input {
  min-height: 0;
  accent-color: var(--red);
}

.calendar-resource-empty {
  border: 1px dashed rgba(13, 48, 77, .18);
  border-radius: 8px;
  background: #f7fafc;
  padding: 12px;
}

.calendar-resource-empty strong,
.calendar-resource-empty span {
  display: block;
}

.calendar-resource-empty strong {
  color: var(--navy);
  font-size: 11px;
}

.calendar-resource-empty span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.schedule-entry[draggable="true"],
.schedule-month-entry[draggable="true"],
.schedule-agenda-entry[draggable="true"],
.schedule-crew-entry[draggable="true"] {
  cursor: grab;
}

.schedule-entry[draggable="true"]:active,
.schedule-month-entry[draggable="true"]:active,
.schedule-agenda-entry[draggable="true"]:active,
.schedule-crew-entry[draggable="true"]:active {
  cursor: grabbing;
}

.schedule-today-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

.schedule-today-grid .schedule-day {
  min-height: 260px;
}

.schedule-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-top: 12px;
}

.schedule-month-day {
  min-width: 0;
  min-height: 148px;
  overflow: hidden;
  border: 1px solid rgba(13, 48, 77, .12);
  border-radius: 7px;
  background: #fff;
}

.schedule-month-day.outside {
  background: #f3f6f8;
  opacity: .7;
}

.schedule-month-day.today {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(195, 33, 47, .1);
}

.schedule-month-day-head {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(13, 48, 77, .08);
  padding: 6px 7px;
}

.schedule-month-day-head span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-month-day-head strong {
  color: var(--navy);
  font-size: 13px;
}

.schedule-month-day-head em {
  display: grid;
  min-width: 17px;
  min-height: 17px;
  margin-left: auto;
  place-items: center;
  border-radius: 50%;
  background: #edf2f6;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.schedule-month-events {
  display: grid;
  gap: 4px;
  padding: 5px;
}

.schedule-month-entry {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  background: #eef4f8;
  color: var(--navy);
  padding: 5px 6px;
  text-align: left;
}

.schedule-month-entry.red,
.schedule-month-entry.has-conflict {
  border-left-color: var(--red);
  background: #fff1f2;
}

.schedule-month-entry .schedule-entry-topline,
.schedule-month-entry .schedule-entry-detail,
.schedule-month-entry .schedule-entry-status,
.schedule-month-entry .schedule-entry-warnings {
  display: none;
}

.schedule-month-entry > strong {
  display: block;
  overflow: hidden;
  font-size: 8px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-month-more {
  min-height: 22px;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
}

.schedule-range-agenda,
.schedule-crew-board {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.schedule-agenda-day,
.schedule-crew-row {
  overflow: hidden;
  border: 1px solid rgba(13, 48, 77, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(13, 48, 77, .055);
}

.schedule-agenda-day-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid rgba(13, 48, 77, .09);
  background: #f5f8fa;
  padding: 10px 12px;
}

.schedule-agenda-day-head span {
  color: var(--red);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.schedule-agenda-day-head strong {
  color: var(--navy);
  font-size: 13px;
}

.schedule-agenda-day-head em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.schedule-agenda-entry,
.schedule-crew-entry {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) minmax(150px, .7fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  border: 0;
  border-bottom: 1px solid rgba(13, 48, 77, .08);
  border-left: 4px solid var(--blue);
  background: #fff;
  color: var(--ink);
  padding: 9px 12px;
  text-align: left;
}

.schedule-agenda-entry:last-child,
.schedule-crew-entry:last-child {
  border-bottom: 0;
}

.schedule-agenda-entry.red,
.schedule-crew-entry.red,
.schedule-agenda-entry.has-conflict,
.schedule-crew-entry.has-conflict {
  border-left-color: var(--red);
}

.schedule-agenda-entry .schedule-entry-topline,
.schedule-crew-entry .schedule-entry-topline {
  display: grid;
  gap: 2px;
}

.schedule-agenda-entry .calendar-event-time,
.schedule-crew-entry .calendar-event-time {
  color: var(--red);
  font-size: 9px;
  font-weight: 950;
}

.schedule-agenda-entry > strong,
.schedule-crew-entry > strong {
  color: var(--navy);
  font-size: 12px;
}

.schedule-agenda-entry .schedule-entry-detail,
.schedule-crew-entry .schedule-entry-detail,
.schedule-agenda-entry .schedule-entry-status,
.schedule-crew-entry .schedule-entry-status {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.schedule-crew-row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.schedule-crew-row.unassigned {
  border-color: rgba(195, 33, 47, .24);
}

.schedule-crew-person {
  display: grid;
  align-content: center;
  border-right: 1px solid rgba(13, 48, 77, .1);
  background: var(--navy);
  color: #fff;
  padding: 14px;
}

.schedule-crew-person strong {
  font-size: 13px;
}

.schedule-crew-person span,
.schedule-crew-person em {
  margin-top: 4px;
  color: rgba(255, 255, 255, .7);
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}

.schedule-crew-person small {
  margin-top: 5px;
  color: rgba(255, 255, 255, .78);
  font-size: 8px;
  font-weight: 800;
}

.schedule-capacity-meter {
  overflow: hidden;
  width: 100%;
  height: 5px;
  margin-top: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .16);
}

.schedule-capacity-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #74d5bf;
}

.schedule-crew-row.full .schedule-capacity-meter i {
  background: #f0c36a;
}

.schedule-crew-row.over .schedule-capacity-meter i,
.schedule-crew-row.away .schedule-capacity-meter i {
  background: #ff7a72;
}

.schedule-duration-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(13, 48, 77, .12);
  border-radius: 8px;
  background: #f5f8fa;
  padding: 12px;
}

.schedule-duration-control > div:first-child {
  display: grid;
  gap: 2px;
}

.schedule-duration-control span,
.schedule-duration-control small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.schedule-duration-control strong {
  color: var(--navy);
  font-size: 16px;
}

.schedule-duration-control > div:last-child {
  display: grid;
  grid-template-columns: repeat(4, minmax(48px, 1fr));
  gap: 5px;
}

.schedule-duration-control button {
  min-height: 40px;
  border: 1px solid rgba(13, 48, 77, .16);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.schedule-duration-control button:hover,
.schedule-duration-control button:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

.schedule-crew-events {
  display: grid;
}

.schedule-crew-open {
  display: flex;
  min-height: 66px;
  align-items: center;
  color: #3f6a5a;
  padding: 14px;
  font-size: 10px;
  font-weight: 850;
}

.schedule-view-empty {
  display: grid;
  min-height: 150px;
  align-content: center;
  justify-items: center;
  border: 1px dashed rgba(13, 48, 77, .16);
  border-radius: 8px;
  background: #f8fafb;
  padding: 20px;
  text-align: center;
}

.schedule-view-empty.compact {
  min-height: 84px;
}

.schedule-view-empty strong {
  color: var(--navy);
  font-size: 13px;
}

.schedule-view-empty span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.schedule-unscheduled-queue {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.schedule-unscheduled-queue > article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 74px;
  border: 1px solid rgba(13, 48, 77, .12);
  border-left: 4px solid #b67000;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.schedule-unscheduled-queue span,
.schedule-unscheduled-queue strong,
.schedule-unscheduled-queue small {
  display: block;
}

.schedule-unscheduled-queue span {
  color: #9c6400;
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
}

.schedule-unscheduled-queue strong {
  margin-top: 3px;
  color: var(--navy);
  font-size: 12px;
}

.schedule-unscheduled-queue small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.schedule-unscheduled-queue button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  padding: 7px 12px;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 900px) {
  .schedule-saved-view-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .schedule-saved-view-title { display: none; }

  .schedule-duration-control {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-saved-view-actions { display: flex; }

  .schedule-saved-view-toolbar button { width: auto; }

  .schedule-duration-control > div:last-child {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .schedule-more-filters > div {
    grid-template-columns: 1fr;
  }

  .schedule-view-switcher {
    grid-auto-columns: 82px;
    grid-auto-flow: column;
    grid-template-columns: none;
    max-width: none;
    overflow-x: auto;
    margin-right: -4px;
    padding: 4px;
    scrollbar-width: none;
  }

  .schedule-view-switcher::-webkit-scrollbar {
    display: none;
  }

  .schedule-view-switcher button {
    min-height: 40px;
  }

  .schedule-desktop-calendar {
    display: none;
  }

  .schedule-state-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-state-banner.loading {
    align-items: center;
    flex-direction: row;
  }

  .schedule-state-banner button {
    width: 100%;
  }

  .schedule-unscheduled-queue {
    grid-template-columns: 1fr;
  }

  .schedule-unscheduled-queue > article {
    min-height: 70px;
  }

  .calendar-resource-picker {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .company-schedule-page .schedule-day-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    min-height: 96px;
  }

  .company-schedule-page .schedule-day-head > div:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .company-schedule-page .schedule-day-count {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
  }

  .company-schedule-page .schedule-day-load {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
