:root {
  --ink: #333333;
  --muted: #666666;
  --pink: #5509B4;
  --pale: #F3EBFC;
  --line: #E3D5F3;
  --paper: #fff;
  --bg: #FAFAFC;
  --green: #24694d;
  --red: #962e43;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    16px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a {
  color: var(--pink);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--pink);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  gap: 8px;
  text-align: center;
}
button:hover,
.button:hover {
  filter: brightness(0.94);
  text-decoration: none;
}
.secondary {
  background: white;
  border-color: var(--line);
  color: var(--pink);
}
:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 10;
  background: #fff;
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 42px;
  letter-spacing: -2px;
  font-weight: 750;
  line-height: 1;
  color: var(--pink);
}
.brand span {
  display: block;
  font-size: 10px;
  letter-spacing: 2.4px;
  margin-top: 12px;
  color: var(--muted);
}
.brand:hover {
  text-decoration: none;
}
.nav-label,
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--pink);
}
.nav-label {
  margin-top: 56px;
  color: var(--muted);
}
nav a {
  min-height: 44px;
}
.sidebar nav a {
  display: block;
  padding: 12px 14px;
  margin: 6px -8px;
  color: var(--ink);
  border-radius: 10px;
}
.sidebar nav a:hover {
  background: var(--pale);
  text-decoration: none;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
  display: grid;
  gap: 4px;
}
.avatar {
  width: 40px;
  height: 40px;
  background: var(--pale);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--pink);
}
small,
.muted,
.hint {
  color: var(--muted);
}
small {
  display: block;
  font-size: 13px;
}
.quiet {
  background: none;
  color: var(--pink);
  padding-left: 0;
}
.shell {
  margin-left: 250px;
}
.topbar {
  min-height: 80px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  font-size: 13px;
  color: var(--muted);
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 40px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.heading p {
  margin: 8px 0;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 10px 0 16px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 6px;
}
h3 {
  font-size: 18px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 28px 0;
}
.stat {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
}
.stat span {
  font-size: 13px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font-size: 34px;
  font-weight: 650;
  margin-top: 8px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 26px;
  margin-bottom: 24px;
  min-width: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.section-heading p {
  font-size: 14px;
  margin: 4px 0;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  text-transform: capitalize;
  background: var(--bg);
}
th,
td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td {
  max-width: 320px;
  overflow-wrap: anywhere;
}
tr:last-child td {
  border-bottom: 0;
}
tr:hover td {
  background: #FAFAFC;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  border-radius: 30px;
  padding: 5px 11px;
  background: var(--pale);
  color: var(--pink);
  white-space: nowrap;
}
.good {
  background: #eaf5ee;
  color: var(--green);
}
.paused {
  background: #fff0e4;
  color: #885217;
}
.callout {
  border-radius: 16px;
  padding: 30px;
  background: var(--pale);
  margin-bottom: 24px;
}
.callout p {
  max-width: 65ch;
  color: var(--muted);
}
.callout a {
  font-weight: 650;
}
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.two-cols > section {
  margin-bottom: 0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.search {
  max-width: 560px;
  margin-bottom: 24px;
}
.search > div {
  display: flex;
  gap: 12px;
}
.search input {
  margin: 0;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 24px;
  font-size: 14px;
}
.pagination a {
  display: flex;
  align-items: center;
}
.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
input:not([type="checkbox"]),
select {
  display: block;
  width: 100%;
  border: 1px solid #888888;
  background: #fff;
  border-radius: 8px;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
}
.form-card {
  max-width: 850px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.field small {
  margin-top: 6px;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 32px;
}
.back {
  display: inline-block;
  margin-bottom: 20px;
  min-height: 44px;
}
.notice,
.error {
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  background: #eaf5ee;
  color: var(--green);
  overflow-wrap: anywhere;
}
.error {
  background: #fff0f2;
  color: var(--red);
}
fieldset {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.checks label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
}
.checks input {
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
}
details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
summary {
  cursor: pointer;
  min-height: 44px;
}
summary small {
  display: inline;
  margin-left: 12px;
}
details li {
  font-size: 13px;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 26px 0;
}
.tabs a {
  padding: 9px 14px;
  border-radius: 8px;
  text-transform: capitalize;
  color: var(--muted);
}
.tabs .selected {
  background: var(--pink);
  color: #fff;
}
.reference {
  font-size: 12px;
}
.auth {
  min-height: 100dvh;
  max-width: none;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at top left, #E8D9F8, transparent 65%), var(--bg);
}
.auth > .error {
  max-width: 500px;
  width: 100%;
}
.login-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px;
  box-shadow: 0 24px 80px #3333330b;
}
.login-card .eyebrow {
  margin-top: 40px;
}
.login-card h1 {
  font-size: 44px;
}
.login-card form {
  margin-top: 28px;
}
.login-card input {
  margin-bottom: 20px;
}
.login-card button {
  width: 100%;
  margin-top: 8px;
}
.hint {
  font-size: 12px;
  margin-top: 24px;
}
footer {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 40px 26px;
}
@media (max-width: 1000px) {
  .sidebar {
    width: 210px;
    padding: 24px 20px;
  }
  .shell {
    margin-left: 210px;
  }
  main {
    padding: 28px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .two-cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 20px;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 32px;
  }
  .nav-label {
    display: none;
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
  }
  .sidebar nav a {
    font-size: 13px;
    margin: 0;
    padding: 8px;
  }
  .sidebar-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
  }
  .sidebar-bottom strong,
  .sidebar-bottom small,
  .sidebar-bottom .avatar {
    display: none;
  }
  .sidebar-bottom form {
    margin-left: auto;
  }
  .shell {
    margin: 0;
  }
  .topbar {
    padding: 16px 20px;
    min-height: 60px;
  }
  main {
    padding: 24px 16px;
  }
  h1 {
    font-size: 28px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 18px;
  }
  .card {
    padding: 18px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .form-grid,
  .checks {
    grid-template-columns: 1fr;
  }
  .login-card {
    padding: 28px;
  }
  .login-card h1 {
    font-size: 36px;
  }
  .auth {
    padding: 24px 16px;
  }
  .search > div {
    flex-wrap: wrap;
  }
  .search input {
    flex: 1;
    min-width: 160px;
  }
  .callout {
    padding: 24px;
  }
  .badge {
    white-space: normal;
  }
}

.brand img { display: block; max-width: 100%; height: auto; }
