:root {
  color-scheme: light;
  --launch-bg: #f4f5f1;
  --launch-surface: #ffffff;
  --launch-surface-soft: #f8f9f6;
  --launch-ink: #17231c;
  --launch-muted: #6d776f;
  --launch-line: #dce2dc;
  --launch-green: #236f5b;
  --launch-green-dark: #185141;
  --launch-green-soft: #e5f1ec;
  --launch-plum: #7b4058;
  --launch-plum-soft: #f4e8ed;
  --launch-amber: #a86918;
  --launch-amber-soft: #fbf0dc;
  --launch-red: #b84b43;
  --launch-red-soft: #fae9e7;
  --launch-shadow: 0 12px 34px rgba(24, 45, 33, 0.07);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--launch-bg);
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 245, 241, 0) 260px),
    var(--launch-bg);
  color: var(--launch-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[href]:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid rgba(35, 111, 91, 0.24);
  outline-offset: 2px;
}

.launch-access-state {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
}

.launch-access-card {
  width: min(100%, 440px);
  border: 1px solid var(--launch-line);
  border-radius: 12px;
  background: var(--launch-surface);
  padding: 24px;
}

.launch-access-card h1 {
  margin-bottom: 8px;
  font-size: 27px;
  line-height: 1.12;
}

.launch-access-card p:last-of-type {
  margin-bottom: 0;
  color: var(--launch-muted);
}

.launch-access-link,
.launch-module-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--launch-line);
  border-radius: 10px;
  background: var(--launch-surface);
  color: var(--launch-ink);
  padding: 0 13px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.launch-access-link {
  margin-top: 18px;
  border-color: var(--launch-green);
  background: var(--launch-green);
  color: #ffffff;
}

.launch-access-link:hover {
  background: var(--launch-green-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  letter-spacing: -0.02em;
}

.launch-app {
  width: min(1560px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 52px;
}

.launch-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--launch-line);
  padding-bottom: 20px;
}

.launch-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.launch-module-link:hover {
  border-color: rgba(35, 111, 91, 0.34);
  background: var(--launch-green-soft);
  color: var(--launch-green-dark);
}

.launch-topbar h1 {
  margin: 3px 0 5px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0;
}

.launch-eyebrow {
  margin-bottom: 3px;
  color: var(--launch-green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.launch-subtitle,
.launch-section-head > p,
.launch-section-action p,
.launch-school-head > div > p:last-child {
  margin-bottom: 0;
  color: var(--launch-muted);
}

.launch-context {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--launch-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 5px;
  color: var(--launch-muted);
  font-size: 12px;
  font-weight: 750;
}

.launch-context span {
  padding: 6px 10px;
}

.launch-context .launch-context-primary {
  border-radius: 999px;
  background: var(--launch-plum-soft);
  color: var(--launch-plum);
}

.launch-save-status.is-local {
  color: var(--launch-muted);
}

.launch-save-status.is-saving {
  color: var(--launch-amber);
}

.launch-save-status.is-error {
  color: var(--launch-red);
}

.launch-save-status.is-remote {
  color: var(--launch-green);
}

.launch-notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1100;
  max-width: min(520px, calc(100vw - 28px));
  border: 1px solid rgba(35, 111, 91, 0.28);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(18, 30, 22, 0.18);
  color: var(--launch-green-dark);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.launch-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.launch-notice.is-warning {
  border-color: rgba(168, 105, 24, 0.34);
  color: #70450f;
}

.launch-direction-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--launch-line);
  padding-bottom: 10px;
}

.launch-direction-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  border: 1px solid var(--launch-line);
  border-bottom: 3px solid var(--launch-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--launch-muted);
  padding: 10px 13px;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.launch-direction-tab:hover {
  border-color: rgba(35, 111, 91, 0.42);
  color: var(--launch-ink);
  transform: translateY(-1px);
}

.launch-direction-tab.is-active {
  border-color: var(--launch-plum);
  background: var(--launch-plum-soft);
  color: var(--launch-plum);
}

.launch-direction-tab span {
  font-size: 15px;
  font-weight: 850;
}

.launch-direction-tab strong {
  color: inherit;
  font-size: 12px;
  white-space: nowrap;
}

.launch-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.launch-metric {
  display: grid;
  align-content: space-between;
  min-height: 116px;
  border: 1px solid var(--launch-line);
  border-top: 3px solid var(--launch-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px;
  box-shadow: 0 8px 22px rgba(24, 45, 33, 0.04);
}

.launch-metric span,
.launch-metric small {
  color: var(--launch-muted);
}

.launch-metric span {
  font-size: 12px;
  font-weight: 800;
}

.launch-metric strong {
  margin: 10px 0 8px;
  font-size: 29px;
  line-height: 1;
}

.launch-metric small {
  font-size: 11px;
  line-height: 1.35;
}

.launch-metric.is-primary {
  border-top-color: var(--launch-plum);
}

.launch-metric.is-good {
  border-top-color: var(--launch-green);
}

.launch-metric.is-warning {
  border-top-color: var(--launch-amber);
}

.launch-metric.is-critical {
  border-top-color: var(--launch-red);
}

.launch-metric-progress {
  display: none;
}

.launch-panel {
  margin-top: 12px;
  border: 1px solid var(--launch-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  padding: 16px;
  box-shadow: 0 10px 28px rgba(24, 45, 33, 0.045);
}

.launch-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}

.launch-section-head h2 {
  margin-bottom: 0;
  font-size: 21px;
}

.launch-section-head > p,
.launch-section-action {
  max-width: 560px;
  font-size: 12px;
  text-align: right;
}

.launch-section-action {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.launch-text-button {
  border: 0;
  background: transparent;
  color: var(--launch-green);
  padding: 0;
  font-size: 12px;
  font-weight: 800;
}

.launch-text-button:hover {
  color: var(--launch-green-dark);
  text-decoration: underline;
}

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

.launch-sprint {
  display: grid;
  gap: 6px;
  min-height: 98px;
  border: 1px solid var(--launch-line);
  border-radius: 10px;
  background: var(--launch-surface);
  color: var(--launch-ink);
  padding: 12px;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.launch-sprint:hover {
  border-color: rgba(123, 64, 88, 0.42);
  transform: translateY(-1px);
}

.launch-sprint.is-active {
  border-color: var(--launch-plum);
  background: var(--launch-plum-soft);
}

.launch-sprint-empty {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 98px;
  border: 1px dashed var(--launch-line);
  border-radius: 10px;
  background: var(--launch-surface-soft);
  padding: 12px 14px;
}

.launch-sprint-empty strong {
  font-size: 13px;
}

.launch-sprint-empty span {
  color: var(--launch-muted);
  font-size: 11px;
}

.launch-sprint span,
.launch-sprint small {
  color: var(--launch-muted);
  font-size: 11px;
}

.launch-sprint span {
  font-weight: 850;
  text-transform: uppercase;
}

.launch-sprint strong {
  font-size: 18px;
}

.launch-daily-list {
  display: grid;
  gap: 7px;
}

.launch-day-row {
  display: grid;
  grid-template-columns: 132px 190px minmax(260px, 1fr) 126px;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 1px solid var(--launch-line);
  border-radius: 10px;
  background: var(--launch-surface);
  color: var(--launch-ink);
  padding: 11px 12px;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.launch-day-row:hover,
.launch-day-row.is-active {
  border-color: rgba(35, 111, 91, 0.48);
  background: var(--launch-green-soft);
}

.launch-day-date {
  display: grid;
  gap: 2px;
}

.launch-day-date strong {
  font-size: 16px;
}

.launch-day-date span,
.launch-day-summary small {
  color: var(--launch-muted);
  font-size: 11px;
}

.launch-day-summary {
  display: grid;
  gap: 2px;
}

.launch-day-summary strong {
  font-size: 14px;
}

.launch-day-schools {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.launch-school-chip,
.launch-overflow-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.launch-school-chip {
  background: var(--launch-surface-soft);
  color: var(--launch-ink);
}

.launch-overflow-chip {
  border: 1px dashed rgba(35, 111, 91, 0.45);
  color: var(--launch-green);
}

.launch-day-signal {
  justify-self: end;
}

.launch-school-head {
  align-items: center;
}

.launch-school-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.launch-search input {
  width: min(280px, 32vw);
  min-height: 38px;
  border: 1px solid var(--launch-line);
  border-radius: 9px;
  background: var(--launch-surface);
  color: var(--launch-ink);
  padding: 8px 11px;
}

.launch-search input::placeholder {
  color: #929a94;
}

.launch-segmented {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--launch-line);
  border-radius: 9px;
  background: var(--launch-surface-soft);
  padding: 3px;
}

.launch-segmented button {
  min-height: 31px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--launch-muted);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
}

.launch-segmented button:hover,
.launch-segmented button.is-active {
  background: var(--launch-surface);
  color: var(--launch-ink);
  box-shadow: 0 2px 8px rgba(24, 45, 33, 0.07);
}

.launch-mobile-school-list {
  display: none;
}

.launch-table-shell {
  overflow-x: auto;
}

.launch-school-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.launch-school-table th {
  color: var(--launch-muted);
  padding: 0 11px 5px;
  font-size: 10px;
  font-weight: 850;
  text-align: left;
  text-transform: uppercase;
}

.launch-school-table td {
  border-top: 1px solid var(--launch-line);
  border-bottom: 1px solid var(--launch-line);
  background: var(--launch-surface);
  padding: 12px 11px;
  vertical-align: middle;
}

.launch-school-table td:first-child {
  border-left: 1px solid var(--launch-line);
  border-radius: 10px 0 0 10px;
}

.launch-school-table td:last-child {
  border-right: 1px solid var(--launch-line);
  border-radius: 0 10px 10px 0;
}

.launch-school-row {
  cursor: pointer;
}

.launch-school-row:hover td {
  border-color: rgba(35, 111, 91, 0.42);
  background: #fbfdfc;
}

.launch-school-name {
  display: grid;
  gap: 4px;
}

.launch-school-name strong {
  font-size: 17px;
}

.launch-school-name span,
.launch-cell-note {
  color: var(--launch-muted);
  font-size: 10px;
}

.launch-number-cell {
  display: grid;
  gap: 3px;
  white-space: nowrap;
}

.launch-number-cell strong {
  font-size: 16px;
}

.launch-progress {
  display: grid;
  gap: 5px;
  min-width: 118px;
}

.launch-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ebe7;
}

.launch-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--launch-green);
}

.launch-progress small {
  color: var(--launch-muted);
  font-size: 10px;
}

.launch-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.launch-pill.is-good {
  background: var(--launch-green-soft);
  color: var(--launch-green-dark);
}

.launch-pill.is-warning {
  background: var(--launch-amber-soft);
  color: #83500f;
}

.launch-pill.is-critical {
  background: var(--launch-red-soft);
  color: #913b35;
}

.launch-pill.is-neutral {
  background: #edf0ed;
  color: #58635b;
}

.launch-empty {
  border: 1px dashed var(--launch-line);
  border-radius: 10px;
  background: var(--launch-surface-soft);
  color: var(--launch-muted);
  padding: 22px;
  text-align: center;
}

.launch-empty.is-compact {
  border: 0;
  border-top: 1px dashed var(--launch-line);
  border-radius: 0;
  padding: 14px;
}

.launch-source-note {
  max-width: 900px;
  margin: 16px auto 0;
  color: var(--launch-muted);
  font-size: 11px;
  text-align: center;
}

.launch-drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  justify-items: end;
  background: rgba(20, 31, 24, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.launch-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.launch-drawer-panel {
  position: relative;
  width: min(760px, 94vw);
  height: 100%;
  overflow-y: auto;
  background: var(--launch-bg);
  padding: 28px;
  box-shadow: -18px 0 44px rgba(18, 30, 22, 0.18);
  transform: translateX(24px);
  transition: transform 0.18s ease;
}

.launch-drawer.is-open .launch-drawer-panel {
  transform: translateX(0);
}

.launch-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--launch-line);
  border-radius: 999px;
  background: var(--launch-surface);
  color: var(--launch-ink);
  font-size: 22px;
  line-height: 1;
}

.launch-close:hover {
  border-color: var(--launch-green);
}

.launch-drawer-head {
  padding-right: 52px;
}

.launch-drawer-head h2 {
  margin: 4px 0 7px;
  font-size: 32px;
}

.launch-drawer-meta {
  display: flex;
  align-items: baseline;
  gap: 8px 18px;
  flex-wrap: wrap;
}

.launch-drawer-meta p {
  margin: 0;
  color: var(--launch-muted);
}

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

.launch-owner span {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.launch-owner strong {
  color: var(--launch-ink);
  font-size: 14px;
}

.launch-person-edit-button {
  border: 0;
  background: transparent;
  color: var(--launch-muted);
  padding: 2px 3px;
  font-size: 9px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
}

.launch-person-edit-button:hover,
.launch-person-edit-button:focus-visible {
  color: var(--launch-green);
  text-decoration-color: currentColor;
}

.launch-person-editor {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 5px;
}

.launch-person-editor input {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--launch-line);
  border-radius: 7px;
  background: var(--launch-surface);
  color: var(--launch-ink);
  padding: 6px 8px;
  font-size: 12px;
}

.launch-person-editor button {
  min-height: 32px;
  border: 1px solid var(--launch-line);
  border-radius: 7px;
  background: var(--launch-surface);
  color: var(--launch-muted);
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 800;
}

.launch-person-editor button.is-save {
  border-color: var(--launch-green);
  background: var(--launch-green);
  color: #ffffff;
}

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

.launch-summary-card {
  display: grid;
  gap: 5px;
  min-height: 86px;
  border: 1px solid var(--launch-line);
  border-radius: 10px;
  background: var(--launch-surface);
  padding: 11px;
}

.launch-summary-card span,
.launch-summary-card small {
  color: var(--launch-muted);
  font-size: 10px;
}

.launch-summary-card strong {
  font-size: 20px;
}

.launch-drawer-section {
  margin-top: 12px;
  border: 1px solid var(--launch-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  padding: 15px;
}

.launch-drawer-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.launch-drawer-section-head h3,
.launch-drawer-section-head p {
  margin-bottom: 0;
}

.launch-drawer-section-head p {
  color: var(--launch-muted);
  font-size: 11px;
}

.launch-departments {
  display: grid;
  gap: 7px;
}

.launch-department {
  overflow: hidden;
  border: 1px solid var(--launch-line);
  border-radius: 10px;
  background: var(--launch-surface);
}

.launch-department > summary {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) 124px 62px 88px 104px;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 11px 12px;
  cursor: pointer;
}

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

.launch-department > summary:hover {
  background: #fbfdfc;
}

.launch-department[open] > summary {
  border-bottom: 1px solid var(--launch-line);
  background: var(--launch-green-soft);
}

.launch-department-name {
  display: grid;
  gap: 3px;
}

.launch-department-name strong {
  font-size: 14px;
}

.launch-department-name span,
.launch-department-summary-label {
  color: var(--launch-muted);
  font-size: 10px;
}

.launch-department-name .launch-department-trainer {
  overflow: hidden;
  color: var(--launch-green);
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-department-name .launch-department-trainer.is-missing {
  color: var(--launch-red);
}

.launch-department-funnel {
  display: grid;
  gap: 2px;
}

.launch-department-funnel strong {
  font-size: 13px;
  white-space: nowrap;
}

.launch-department-summary-value {
  display: grid;
  gap: 2px;
}

.launch-department-summary-value strong {
  font-size: 13px;
}

.launch-department-body {
  display: grid;
  gap: 12px;
  padding: 13px;
}

.launch-department-owner {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  padding: 0 2px;
}

.launch-department-owner > span {
  color: var(--launch-muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.launch-department-owner > strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-department-owner > small {
  color: var(--launch-muted);
  font-size: 9px;
}

.launch-department-owner > .launch-person-edit-button {
  margin-left: auto;
}

.launch-department-owner.is-editing {
  align-items: center;
}

.launch-department-owner .launch-person-editor {
  flex: 1;
}

.launch-management {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--launch-line);
  border-bottom: 1px solid var(--launch-line);
  padding: 11px 2px 8px;
}

.launch-management-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) minmax(0, 1.28fr);
  align-items: end;
  gap: 20px;
}

.launch-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.launch-field > span,
.launch-plan-value > span {
  color: var(--launch-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.launch-field input,
.launch-field textarea {
  width: 100%;
  border: 1px solid var(--launch-line);
  border-radius: 7px;
  background: var(--launch-surface);
  color: var(--launch-ink);
  padding: 7px 9px;
  font-size: 11px;
}

.launch-field input {
  min-height: 36px;
}

.launch-field textarea {
  min-height: 52px;
  resize: vertical;
}

.launch-plan-value {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 54px;
  border-left: 2px solid rgba(35, 111, 91, 0.42);
  padding: 2px 0 2px 14px;
}

.launch-plan-value > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.launch-plan-value strong {
  flex: 0 0 auto;
  font-size: 16px;
}

.launch-plan-value small {
  overflow: hidden;
  color: var(--launch-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-plan-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px;
}

.launch-plan-editor button,
.launch-delay-editor button {
  min-height: 34px;
  border: 1px solid var(--launch-green);
  border-radius: 7px;
  background: var(--launch-surface);
  color: var(--launch-green);
  padding: 6px 10px;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.launch-plan-editor button:hover,
.launch-delay-editor button:hover {
  background: var(--launch-green-soft);
}

.launch-delay-details {
  border-top: 1px dashed var(--launch-line);
  padding-top: 7px;
}

.launch-delay-details summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  list-style: none;
  color: var(--launch-muted);
  cursor: pointer;
}

.launch-delay-details summary::-webkit-details-marker {
  display: none;
}

.launch-delay-details summary:hover,
.launch-delay-details summary:focus-visible {
  color: var(--launch-green);
}

.launch-delay-details summary > span:not(.launch-delay-empty) {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.launch-delay-details summary strong {
  overflow: hidden;
  color: var(--launch-ink);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-delay-details summary em {
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}

.launch-delay-empty {
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 750;
}

.launch-delay-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px;
  margin-top: 8px;
}

.launch-delay-editor button {
  min-height: 52px;
}

.launch-source-comment {
  margin: 0;
  border-left: 3px solid var(--launch-amber);
  background: var(--launch-amber-soft);
  color: #70450f;
  padding: 8px 10px;
  font-size: 10px;
}

.launch-groups {
  overflow: hidden;
  border: 1px solid var(--launch-line);
  border-radius: 9px;
  background: var(--launch-surface);
}

.launch-groups-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  background: var(--launch-surface-soft);
  padding: 8px 10px;
}

.launch-groups-head h4,
.launch-groups-head p {
  margin: 0;
}

.launch-groups-head h4 {
  font-size: 12px;
}

.launch-groups-head p {
  color: var(--launch-muted);
  font-size: 9px;
  text-align: right;
}

.launch-group-list {
  display: grid;
}

.launch-group-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(300px, 1.25fr);
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
}

.launch-group-row + .launch-group-row {
  border-top: 1px solid var(--launch-line);
}

.launch-group-name {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.launch-group-name strong {
  font-size: 12px;
}

.launch-origin {
  overflow: hidden;
  color: var(--launch-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-origin.is-expansion,
.launch-origin.is-new-school,
.launch-origin.is-manual {
  color: var(--launch-plum);
  font-weight: 750;
}

.launch-group-funnel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
}

.launch-group-funnel > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1px 5px;
  min-height: 41px;
  border-radius: 7px;
  background: var(--launch-surface-soft);
  padding: 5px 7px;
}

.launch-group-funnel dt {
  color: var(--launch-muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.launch-group-funnel dd {
  margin: 0;
  font-size: 15px;
  font-weight: 850;
}

.launch-group-funnel small {
  grid-column: 1 / -1;
  color: var(--launch-muted);
  font-size: 8px;
}

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

.launch-readiness-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 54px;
  border: 1px solid var(--launch-line);
  border-radius: 8px;
  background: var(--launch-surface-soft);
  color: var(--launch-ink);
  padding: 7px;
  text-align: left;
}

button.launch-readiness-item:hover {
  border-color: var(--launch-green);
}

.launch-readiness-item.is-ready {
  border-color: rgba(35, 111, 91, 0.3);
  background: var(--launch-green-soft);
}

.launch-readiness-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e5e9e5;
  color: var(--launch-amber);
  font-size: 11px;
  font-weight: 900;
}

.launch-readiness-item.is-ready .launch-readiness-mark {
  background: var(--launch-green);
  color: #ffffff;
}

.launch-readiness-item span:last-child {
  font-size: 10px;
  font-weight: 800;
}

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

.launch-fact-row p {
  margin-bottom: 0;
  color: var(--launch-muted);
  font-size: 10px;
}

.launch-fact-row p strong {
  color: var(--launch-ink);
  font-size: 11px;
}

.launch-confirm-button {
  min-width: 174px;
  min-height: 36px;
  border: 1px solid var(--launch-green);
  border-radius: 9px;
  background: var(--launch-green);
  color: #ffffff;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.launch-confirm-button:hover {
  box-shadow: 0 5px 14px rgba(35, 111, 91, 0.18);
  transform: translateY(-1px);
}

.launch-confirm-button:focus-visible {
  outline: 3px solid rgba(35, 111, 91, 0.2);
  outline-offset: 2px;
}

.launch-confirm-button.is-confirmed {
  border-color: rgba(35, 111, 91, 0.3);
  background: var(--launch-green-soft);
  color: var(--launch-green);
}

.launch-confirm-button:disabled {
  border-color: var(--launch-line);
  background: #e8ebe8;
  color: var(--launch-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.launch-celebration {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  background: rgba(8, 20, 32, 0.25);
  pointer-events: none;
  animation: launch-celebration-backdrop 3200ms ease-in-out both;
}

.launch-firework {
  position: absolute;
  left: var(--launch-firework-left);
  top: var(--launch-firework-top);
  width: 1px;
  height: 1px;
}

.launch-firework::before,
.launch-firework::after {
  position: absolute;
  border-radius: 999px;
  content: "";
  transform: translate(-50%, -50%);
}

.launch-firework::before {
  width: 42px;
  height: 42px;
  background: radial-gradient(circle, #ffffff 0 12%, #ffd83d 18%, rgba(255, 216, 61, 0.42) 45%, transparent 72%);
  filter: drop-shadow(0 0 18px #ffd83d);
  animation: launch-celebration-core 680ms ease-out var(--launch-firework-delay) both;
}

.launch-firework::after {
  width: 58px;
  height: 58px;
  border: 5px solid rgba(255, 216, 61, 0.92);
  box-shadow: 0 0 46px rgba(255, 216, 61, 0.9), inset 0 0 24px rgba(255, 255, 255, 0.72);
  animation: launch-celebration-flash 720ms ease-out var(--launch-firework-delay) both;
}

.launch-celebration-particle {
  position: absolute;
  width: var(--launch-particle-width);
  height: var(--launch-particle-height);
  border-radius: 999px;
  background: var(--launch-burst-color);
  box-shadow: 0 0 10px var(--launch-burst-color), 0 0 22px var(--launch-burst-color);
  filter: saturate(1.35) brightness(1.15);
  transform: translate(-50%, -50%);
  animation: launch-celebration-particle 1500ms cubic-bezier(0.14, 0.76, 0.28, 1) var(--launch-firework-delay) both;
}

@keyframes launch-celebration-particle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25) rotate(0deg);
  }

  14% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--launch-burst-x)), calc(-50% + var(--launch-burst-y) + 52px)) scale(0.35) rotate(var(--launch-burst-rotate));
  }
}

@keyframes launch-celebration-backdrop {
  0%,
  100% {
    background-color: rgba(8, 20, 32, 0);
  }

  10%,
  78% {
    background-color: rgba(8, 20, 32, 0.25);
  }
}

@keyframes launch-celebration-core {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.15);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.35);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.8);
  }
}

@keyframes launch-celebration-flash {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.2);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(5.8);
  }
}

.launch-department-note {
  margin-bottom: 0;
  color: var(--launch-muted);
  font-size: 10px;
}

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

@media (max-width: 1040px) {
  .launch-app {
    width: min(100% - 28px, 900px);
  }

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

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

  .launch-day-row {
    grid-template-columns: 120px 170px minmax(200px, 1fr) 112px;
  }

  .launch-school-head {
    align-items: stretch;
    flex-direction: column;
  }

  .launch-school-tools {
    justify-content: space-between;
  }

  .launch-search {
    flex: 1;
  }

  .launch-search input {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .launch-app {
    width: min(100% - 20px, 620px);
    padding-top: 20px;
  }

  .launch-topbar,
  .launch-section-head,
  .launch-school-tools,
  .launch-drawer-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .launch-topbar {
    gap: 14px;
  }

  .launch-topbar h1 {
    font-size: 26px;
  }

  .launch-topbar-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .launch-context {
    align-self: flex-start;
  }

  .launch-direction-tabs {
    grid-template-columns: 1fr;
  }

  .launch-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--launch-line);
    border-radius: 12px;
    background: var(--launch-line);
  }

  .launch-metric {
    min-height: 88px;
    border: 0;
    border-radius: 0;
    background: var(--launch-surface);
    padding: 12px;
    box-shadow: none;
  }

  .launch-metric span {
    font-size: 10px;
  }

  .launch-metric strong {
    margin: 6px 0 4px;
    font-size: 24px;
  }

  .launch-metric small {
    font-size: 9px;
  }

  .launch-metric[data-launch-metric="groups"] {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 108px;
    background: var(--launch-plum-soft);
  }

  .launch-metric[data-launch-metric="groups"] strong {
    margin: 7px 0 5px;
    font-size: 36px;
  }

  .launch-metric[data-launch-metric="coaches"] strong {
    color: var(--launch-green-dark);
  }

  .launch-metric[data-launch-metric="attention"] strong {
    color: #83500f;
  }

  .launch-metric-progress {
    display: block;
    width: 100%;
    height: 5px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(124, 62, 87, 0.12);
  }

  .launch-metric-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--launch-plum);
  }

  .launch-section-head > p,
  .launch-section-action {
    max-width: none;
    text-align: left;
  }

  .launch-section-action {
    justify-items: start;
  }

  .launch-day-row {
    grid-template-columns: 1fr auto;
  }

  .launch-day-summary,
  .launch-day-schools {
    grid-column: 1 / -1;
  }

  .launch-day-schools {
    order: 3;
  }

  .launch-day-signal {
    grid-column: 2;
    grid-row: 1;
  }

  .launch-segmented {
    width: 100%;
    overflow-x: auto;
  }

  .launch-segmented button {
    flex: 1 0 auto;
  }

  .launch-mobile-school-list {
    display: block;
  }

  .launch-mobile-rows {
    overflow: hidden;
    border: 1px solid var(--launch-line);
    border-radius: 10px;
    background: var(--launch-surface);
  }

  .launch-mobile-school-row {
    display: grid;
    gap: 7px;
    width: 100%;
    min-height: 82px;
    border: 0;
    border-bottom: 1px solid var(--launch-line);
    background: var(--launch-surface);
    color: var(--launch-ink);
    padding: 11px 12px;
    text-align: left;
  }

  .launch-mobile-school-row:last-child {
    border-bottom: 0;
  }

  .launch-mobile-school-row:active {
    background: var(--launch-green-soft);
  }

  .launch-mobile-row-heading,
  .launch-mobile-row-footer,
  .launch-mobile-row-metrics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
  }

  .launch-mobile-row-heading > span:first-child {
    display: grid;
    gap: 1px;
    min-width: 0;
  }

  .launch-mobile-row-heading strong {
    overflow: hidden;
    font-size: 16px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .launch-mobile-row-heading small,
  .launch-mobile-row-metrics {
    color: var(--launch-muted);
    font-size: 10px;
  }

  .launch-mobile-row-heading b {
    flex: 0 0 auto;
    font-size: 16px;
  }

  .launch-mobile-row-metrics {
    justify-content: flex-start;
    gap: 6px 12px;
  }

  .launch-mobile-row-footer > strong {
    overflow: hidden;
    min-width: 0;
    color: var(--launch-green-dark);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .launch-mobile-signal {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 5px;
    max-width: 48%;
    overflow: hidden;
    color: var(--launch-muted);
    font-size: 9px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .launch-mobile-signal::before {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #a7aea9;
    content: "";
  }

  .launch-mobile-signal.is-critical::before {
    background: var(--launch-red);
  }

  .launch-mobile-signal.is-warning::before {
    background: var(--launch-amber);
  }

  .launch-mobile-signal.is-good::before {
    background: var(--launch-green);
  }

  .launch-table-shell {
    display: none;
  }

  .launch-school-table {
    min-width: 0;
    border-spacing: 0 8px;
  }

  .launch-school-table thead {
    display: none;
  }

  .launch-school-table tbody,
  .launch-school-table tr,
  .launch-school-table td {
    display: block;
  }

  .launch-school-table tr {
    border: 1px solid var(--launch-line);
    border-radius: 10px;
    background: var(--launch-surface);
    padding: 11px;
  }

  .launch-school-table td,
  .launch-school-table td:first-child,
  .launch-school-table td:last-child {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 7px 0;
  }

  .launch-school-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--launch-muted);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
  }

  .launch-school-table td:first-child::before {
    display: none;
  }

  .launch-drawer-panel {
    width: 100%;
    padding: 22px 14px;
  }

  .launch-department-owner.is-editing {
    align-items: stretch;
    flex-direction: column;
  }

  .launch-fact-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .launch-confirm-button {
    width: 100%;
  }

  .launch-drawer-summary,
  .launch-readiness-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .launch-department summary {
    grid-template-columns: 1fr auto;
  }

  .launch-department-name {
    grid-column: 1;
    grid-row: 1;
  }

  .launch-department > summary > .launch-pill {
    grid-column: 2;
    grid-row: 1;
  }

  .launch-department-funnel {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .launch-department-summary-value.is-groups {
    grid-column: 1;
    grid-row: 3;
  }

  .launch-department-summary-value.is-date {
    grid-column: 2;
    grid-row: 3;
  }

  .launch-group-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

}

@media (max-width: 460px) {
  .launch-sprints,
  .launch-drawer-summary,
  .launch-readiness-grid {
    grid-template-columns: 1fr;
  }

  .launch-groups-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .launch-groups-head p {
    text-align: left;
  }

  .launch-person-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .launch-person-editor input {
    grid-column: 1 / -1;
  }

  .launch-management-grid,
  .launch-plan-editor,
  .launch-delay-editor {
    grid-template-columns: 1fr;
  }

  .launch-delay-editor button {
    min-height: 34px;
  }

  .launch-context {
    align-items: flex-start;
    border-radius: 12px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .launch-celebration,
  .launch-firework,
  .launch-celebration-particle {
    display: none;
  }
}
