:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #252525;
  background: #f7f7f4;
  font-synthesis: none;
  --blue: #2e6fce;
  --line: #e5e7e8;
  --muted: #777d87;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button {
  border: 0;
}
a {
  color: #2159a9;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #95bcf4;
}
button:active {
  transform: translateY(1px);
}
.loading {
  padding: 60px;
}
.shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.sidebar .brand {
  font-size: 22px;
  gap: 8px;
}
.sidebar .brand-icon {
  width: 32px;
  height: 36px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 4px;
}
.nav-label,
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #2e6fce;
  text-transform: uppercase;
}
.nav-label {
  color: #9499a1;
  margin: 45px 12px 12px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  text-align: left;
  background: none;
  border-radius: 10px;
  padding: 13px 14px;
  color: #6b737e;
  font-size: 13px;
  font-weight: 650;
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav button.active {
  background: #eaf1fc;
  color: #2159a9;
}
.nav button:hover {
  background: #f0f4f9;
}
.nav-icon {
  font-size: 17px;
  width: 20px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 12px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.local-tag {
  color: #2c8a72;
  display: block;
  font-weight: 750;
}
.logout {
  background: none;
  color: #6b737e;
  padding: 8px 0;
  font-size: 12px;
}
.main {
  min-width: 0;
  padding: 0 42px 48px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
  color: #797f89;
  font-size: 12px;
  gap: 16px;
}
.topbar strong {
  color: #252525;
}
.admin-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #252525;
  color: white;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 34px 0 26px;
}
.heading h1 {
  margin: 7px 0 10px;
  font-size: 32px;
  letter-spacing: -1.25px;
}
.heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.primary,
.secondary,
.danger {
  border-radius: 9px;
  min-height: 40px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.primary {
  background: var(--blue);
  color: white;
}
.secondary {
  background: white;
  border: 1px solid #dde1e7;
  color: #364454;
}
.danger {
  background: #fcebea;
  color: #af4435;
}
.text-btn {
  background: none;
  color: #2159a9;
  padding: 8px;
  font-size: 12px;
  font-weight: 650;
}
.small-btn {
  font-size: 11px;
  padding: 7px 10px;
  min-height: 30px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.metric {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.metric-label {
  color: #6f7783;
  font-size: 11px;
}
.metric-number {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -1px;
  margin: 10px 0;
}
.metric-foot {
  font-size: 10px;
  color: #8a9098;
}
.welcome {
  background: #252525;
  color: white;
  border-radius: 18px;
  padding: 28px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}
.welcome h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin: 10px 0;
}
.welcome p {
  font-size: 12px;
  line-height: 1.8;
  color: #bcc1c8;
  max-width: 480px;
}
.welcome .eyebrow {
  color: #9ebff3;
}
.loop-art {
  color: #426a9e;
  font-size: 100px;
  line-height: 1;
  transform: rotate(-20deg);
  padding: 10px 25px;
}
.grid-two {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-top: 26px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 20px;
}
.panel.no-margin {
  margin-top: 0;
}
.panel-head {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eef0f2;
}
.panel-head h2 {
  font-size: 15px;
  margin: 0;
  letter-spacing: -0.3px;
}
.panel-body {
  padding: 22px;
}
.step {
  display: flex;
  gap: 14px;
  padding: 13px 0;
}
.step-num {
  border: 1px solid #dfe9f8;
  background: #f3f7fd;
  color: #2861ad;
  font-size: 11px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.step strong {
  font-size: 12px;
}
.step p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 5px 0;
}
.badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 20px;
  background: #eef1f6;
  color: #667181;
  padding: 5px 8px;
  white-space: nowrap;
  display: inline-block;
  text-transform: uppercase;
}
.badge.active,
.badge.sent,
.badge.accepted {
  background: #e5f4ef;
  color: #2c8a72;
}
.badge.draft,
.badge.planned {
  background: #eaf1fc;
  color: #2e6fce;
}
.badge.failed,
.badge.revoked {
  background: #fcebea;
  color: #b45241;
}
.badge.sending {
  background: #fff1d8;
  color: #a57424;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.toolbar label {
  font-size: 10px;
  color: #6e7783;
  display: grid;
  gap: 6px;
  font-weight: 700;
  min-width: 190px;
}
.toolbar select,
.toolbar input {
  padding: 9px 12px;
  border: 1px solid #dce1e8;
  border-radius: 7px;
  min-width: 200px;
  background: #fafbfc;
  font-size: 12px;
  color: #303b49;
}
.toolbar .search {
  margin-left: auto;
  flex: 1;
  max-width: 280px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
th {
  font-size: 9px;
  color: #8b929d;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #fafbfc;
  font-weight: 750;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 22px;
  border-bottom: 1px solid #eff1f4;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  color: #8a929e;
  font-size: 10px;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 5px;
}
td .row-name {
  font-weight: 700;
  color: #303641;
}
.actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.participant-view-options {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin: 14px 0;
  font-size: 12px;
  color: #657083;
}
.participant-view-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.empty {
  padding: 48px 25px;
  text-align: center;
  color: #7b8490;
  font-size: 12px;
  line-height: 1.8;
}
.empty strong {
  display: block;
  color: #343c46;
  font-size: 16px;
  margin-bottom: 8px;
}
.inline-note {
  font-size: 11px;
  line-height: 1.8;
  background: #eaf1fc;
  color: #3f628e;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 18px;
}
.inline-note.warning {
  background: #fff3dd;
  color: #8f6e3e;
}
.section-title {
  font-size: 12px;
  font-weight: 700;
  margin: 25px 0 12px;
}
.cohort-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.cohort-card h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
}
.cohort-card p {
  font-size: 12px;
  color: var(--muted);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.card-footer {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}
.login {
  max-width: 440px;
  margin: 10vh auto;
  padding: 38px;
  background: white;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.login h1 {
  font-size: 25px;
  letter-spacing: -0.6px;
  margin: 35px 0 14px;
}
.login p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.login code {
  font-size: 11px;
  background: #f1f4f8;
  border-radius: 5px;
  padding: 2px 5px;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 700;
  color: #505a68;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dce1e8;
  border-radius: 8px;
  background: #fff;
  color: #252525;
  font-size: 13px;
  font-weight: 400;
  min-height: 42px;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.6;
}
.field small {
  font-weight: 400;
  font-size: 10px;
  color: #8a929c;
  line-height: 1.6;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.field.full {
  grid-column: 1/-1;
}
.error {
  color: #b54339;
  font-size: 12px;
  line-height: 1.7;
  margin: 12px 0;
}
.success {
  color: #2c8a72;
  font-size: 12px;
  line-height: 1.8;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  max-width: 650px;
  width: calc(100% - 36px);
  max-height: 90vh;
  box-shadow: 0 24px 80px #12223c38;
}
dialog::backdrop {
  background: #1c263b70;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.dialog-head h2 {
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.5px;
}
.dialog-head button {
  background: none;
  font-size: 24px;
  color: #727c89;
  padding: 0 6px;
}
.dialog-body {
  padding: 24px 26px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 18px 26px;
  background: #fafbfc;
}
.email-preview {
  white-space: pre-wrap;
  font:
    12px/1.9 -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #f7f8fa;
  padding: 20px;
  border: 1px solid #e3e7ed;
  border-radius: 10px;
  color: #4e5968;
  word-break: break-word;
}
.preview-meta {
  font-size: 12px;
  line-height: 2;
  color: #667181;
}
.preview-meta strong {
  color: #252525;
}
.checklist {
  display: grid;
  gap: 12px;
  font-size: 12px;
  line-height: 1.9;
  color: #596474;
}
.checklist strong {
  color: #252525;
}
.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.contact-row span {
  color: var(--muted);
}
#notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 400px;
  background: #252525;
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.7;
  box-shadow: 0 8px 30px #0002;
  display: none;
  z-index: 20;
}
.audit-id {
  font: 10px monospace;
  color: #999;
}
.join-details {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
}
.join-details a {
  display: block;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.preview-only {
  border: 1px solid #d7e5fa;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 9px;
  color: #2e6fce;
  font-weight: 700;
  letter-spacing: 0.5px;
}
@media (min-width: 1450px) {
  .main {
    padding-left: 60px;
    padding-right: 60px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    padding: 26px 12px;
  }
  .shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .main {
    padding: 0 24px 40px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .heading {
    align-items: flex-start;
  }
  .loop-art {
    display: none;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    display: flex;
    overflow-x: auto;
    margin-top: 20px;
    gap: 4px;
  }
  .nav button {
    white-space: nowrap;
    padding: 10px;
  }
  .nav-icon {
    display: none;
  }
  .main {
    padding: 0 18px 30px;
  }
  .topbar {
    padding: 16px 0;
  }
  .heading {
    margin: 25px 0;
    flex-wrap: wrap;
    gap: 16px;
  }
  .heading h1 {
    font-size: 28px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .welcome {
    padding: 22px;
  }
  .toolbar label {
    min-width: 0;
    flex: 1;
  }
  .toolbar select,
  .toolbar input {
    min-width: 130px;
    width: 100%;
  }
  .toolbar .search {
    max-width: none;
    margin-left: 0;
    flex-basis: 100%;
  }
  .admin-identity span {
    display: none;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .login {
    margin: 30px 18px;
    padding: 26px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-footer {
    padding: 18px;
  }
  .dialog-head {
    padding: 18px 20px;
  }
  .topbar .preview-only {
    display: none;
  }
}

.card-footer > div {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.assignment-list {
  display: grid;
  gap: 10px;
  max-height: 220px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 10px 0 22px;
}
.assignment-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
}
.assignment-list input {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}

dialog:has(.resource-batch-review) {
  width: min(1300px, 95vw);
  max-width: 95vw;
}
.resource-batch-review {
  max-height: 34vh;
  overflow: auto;
  margin-top: 16px;
}
dialog:has(.resource-batch-review) .dialog-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.resource-batch-review table {
  min-width: 1020px;
  table-layout: fixed;
}
.resource-batch-review th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
}
.resource-batch-review th:nth-child(1) { width: 7%; }
.resource-batch-review th:nth-child(2) { width: 23%; }
.resource-batch-review th:nth-child(3) { width: 27%; }
.resource-batch-review th:nth-child(4) { width: 25%; }
.resource-batch-review th:nth-child(5) { width: 18%; }
.resource-batch-review td {
  padding: 12px 8px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.resource-batch-review input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 7px;
  font: inherit;
}
.password-once {
  display: block;
  font:
    700 18px/1.7 ui-monospace,
    monospace;
  background: #edf3fc;
  border: 1px solid #cbdcf5;
  padding: 16px;
  border-radius: 10px;
  word-break: break-all;
  user-select: all;
  margin: 16px 0;
}
.progress-track {
  height: 5px;
  background: #e6edf8;
  border-radius: 5px;
  margin: 8px 0;
  width: 110px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: var(--blue);
}
.journey-list {
  list-style: none;
  padding: 0;
}
.journey-list li {
  border-left: 2px solid #dce7f8;
  padding: 0 0 24px 18px;
  margin-left: 6px;
}
.journey-list li p {
  font-size: 12px;
  line-height: 1.7;
  color: #737c88;
}
.template-dates {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 16px;
}
.template-dates h3 {
  font-size: 13px;
}
.metric-number small {
  font-size: 16px;
  color: #8b929d;
}
.sidebar .nav {
  gap: 2px;
}
.sidebar .nav button {
  padding-top: 10px;
  padding-bottom: 10px;
}
.sidebar .nav-label {
  margin-top: 25px;
}
.inline-note a {
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

.submission-list {
  margin-bottom: 28px;
}
.submission-card {
  padding: 16px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.submission-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.submission-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
