:root {
  color-scheme: light; --canvas:#f5f1fa; --surface:#fff; --ink:#2a213c; --muted:#625674;
  --line:#dfd5eb; --accent:#684893; --wash:#ece2f7; --strong:#35234e;
  font-family: system-ui, sans-serif; line-height:1.5;
}
:root[data-theme=dark] {
  color-scheme:dark; --canvas:#1b1524; --surface:#292134; --ink:#f5ebff; --muted:#d1bfdc;
  --line:#4b3b5d; --accent:#c7a6f1; --wash:#3d2a52; --strong:#f5ebff;
}
* {box-sizing:border-box}
body {margin:0;background:var(--canvas);color:var(--ink)}
button,input,select,textarea {font:inherit;color:inherit}
button {cursor:pointer}
h1,h2,h3,p {margin:0}
h1 {font-size:clamp(1.9rem,4vw,3.2rem);line-height:1.12;letter-spacing:-.05em}
h2 {font-size:1.35rem}
small,.muted {color:var(--muted)}
a {color:var(--accent)}
.skip {position:fixed;left:1rem;top:-5rem;z-index:10;background:var(--surface);padding:.7rem}
.skip:focus {top:1rem}
.shell {min-height:100vh;display:grid;grid-template-columns:15rem minmax(0,1fr)}
aside {padding:1.4rem 1rem;border-right:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column;gap:1.4rem}
.brand {display:flex;align-items:center;gap:.65rem;font-weight:750;line-height:1.2}
.mark {display:grid;place-items:center;background:var(--wash);color:var(--accent);border-radius:36% 64% 51% 49% / 46% 47% 53% 54%;width:2.6rem;height:2.6rem;font-size:1.2rem}
nav {display:grid;gap:.2rem}
nav button {text-align:left;border:0;background:transparent;border-radius:.65rem;padding:.65rem .8rem;color:var(--muted)}
nav button[aria-current=page], nav button:hover {background:var(--wash);color:var(--ink)}
main {padding:clamp(1rem,4vw,3rem);width:100%;max-width:92rem;margin:auto;align-self:start}
header {display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin:0 0 1.7rem}
header p {margin-top:.55rem}
.toolbar,.actions {display:flex;flex-wrap:wrap;gap:.65rem;align-items:center}
.toolbar {margin-bottom:1rem}
.panel,.metric, .login {background:var(--surface);border:1px solid var(--line);border-radius:1rem;padding:1.15rem}
.grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:1rem;margin-bottom:1rem}
.metric strong {display:block;font-size:2rem;letter-spacing:-.05em;color:var(--accent)}
.btn {padding:.54rem .85rem;border-radius:.65rem;border:1px solid var(--line);background:var(--surface);min-height:2.65rem}
.btn.primary {background:#624188;color:#fff;border-color:#624188}
.btn:hover {border-color:var(--accent)}
input,select,textarea {background:var(--surface);border:1px solid var(--line);padding:.55rem .65rem;border-radius:.55rem;min-width:0;max-width:100%}
textarea {min-height:6rem}
form {display:grid;gap:.85rem}
label {display:grid;gap:.25rem}
.table {overflow:auto}
table {width:100%;border-collapse:collapse;text-align:left}
th,td {padding:.68rem;border-bottom:1px solid var(--line);white-space:nowrap}
th {font-size:.86rem;color:var(--muted)}
tr:last-child td {border-bottom:0}
.pill {background:var(--wash);border-radius:1rem;padding:.2rem .6rem;display:inline-block}
.board {display:grid;grid-auto-flow:column;grid-auto-columns:minmax(13rem,1fr);gap:.75rem;overflow:auto}
.lane {background:var(--wash);border-radius:.8rem;padding:.75rem;min-height:9rem}
.lane button {display:block;margin-top:.5rem;width:100%;text-align:left}
dialog {border:1px solid var(--line);color:var(--ink);background:var(--surface);max-height:100dvh;height:100dvh;margin:0 0 0 auto;width:min(31rem,100vw);max-width:100vw;padding:1.5rem}
dialog::backdrop {background:#21142d70}
dialog header {align-items:center}
#notice:not(:empty) {max-width:min(34rem,90vw);padding:.65rem 1rem;position:fixed;bottom:1rem;right:1rem;background:var(--strong);color:var(--surface);border-radius:.6rem;z-index:5}
.login {margin:12vh auto 2rem;width:min(29rem,calc(100% - 2rem));padding:1.6rem;display:grid;gap:1rem}
.help-list li {margin-bottom:.75rem}
.empty {padding:1.5rem;color:var(--muted)}
:focus-visible {outline:3px solid var(--accent);outline-offset:2px}
@media(max-width:720px) {
  .shell {display:block}
  aside {gap:.7rem;border-right:0;border-bottom:1px solid var(--line);padding:.75rem}
  nav {display:flex;overflow:auto}
  nav button {white-space:nowrap}
  header {flex-wrap:wrap}
}
.staff-login { min-height:100dvh; max-width:none; display:grid; place-items:center; padding:22px; background:#fcfaf6; color:#262626; color-scheme:light; font-family:Helvetica,Arial,sans-serif }
.staff-login-card { width:min(440px,100%); background:#fff; border:1px solid #eee9e1; border-radius:22px; padding:38px 32px; box-shadow:0 15px 50px #38234412 }
.staff-login-mark { font-size:30px }
.staff-login-card h1 { font:700 28px Helvetica,Arial,sans-serif; color:#89603e; margin:15px 0 }
.staff-login-card p { line-height:1.55; color:#66566a; font-size:15px }
.staff-login-card form { display:block; margin-top:1rem }
.staff-login-card input { width:100%; font-size:16px; margin:9px 0; padding:13px; color:#262626; background:white; border:1px solid #d9c6db; border-radius:10px }
.staff-login-card button { width:100%; background:#8a4b96; color:white; border:0; padding:13px; border-radius:10px; font-size:16px; margin-top:8px }
.staff-login-card button:disabled { opacity:.55 }
.staff-login-card .secondary { background:transparent; color:#8a4b96; border:1px solid #d9c6db }
.staff-login-card .message { color:#6b3775; font-size:14px; overflow-wrap:anywhere; margin-top:.7rem }

/* Match the Waitlist Studio palette across the staff workspace. */
:root {
  --canvas:#fcfaf6; --surface:#fff; --ink:#262626; --muted:#765337;
  --line:#e9dfd3; --accent:#8a4b96; --wash:#faf6e5; --strong:#70407d;
  --sidebar:#8a4b96; --sidebar-selected:#70407d; --button:#8a4b96;
  font-family:Helvetica,Arial,sans-serif;
}
:root[data-theme=dark] {
  --sidebar:#412645; --sidebar-selected:#67406c; --button:#8a4b96;
}
.shell {grid-template-columns:15.5rem minmax(0,1fr)}
.shell aside {position:sticky;top:0;max-height:100dvh;overflow:auto;background:var(--sidebar);color:white;border:0}
.shell .brand small {color:#f7e5c6}
.shell .mark {background:#f7e5c6;color:#70407d;border-radius:.8rem;flex:none}
.shell nav {gap:.8rem}
.nav-group {display:grid;gap:.15rem}
.nav-label {font-size:.8rem;font-weight:700;letter-spacing:.035em;color:#f8e7cc;padding:0 .8rem}
.shell nav button {color:white}
.shell nav button[aria-current=page], .shell nav button:hover {background:var(--sidebar-selected);color:white}
.shell aside :focus-visible {outline-color:#fff1a5}
.shell aside .btn {background:transparent;border-color:#ead6ed80;color:white;font-size:.9rem}
.shell aside .btn:hover {background:var(--sidebar-selected)}
h1 {font-size:clamp(1.9rem,3vw,2.5rem);letter-spacing:-.038em}
.btn.primary {background:var(--button);border-color:var(--button)}
.toolbar {align-items:end;background:var(--surface);border:1px solid var(--line);border-radius:.85rem;padding:.8rem}
.toolbar label {font-size:.88rem;font-weight:700}
.toolbar label :is(select,input) {font-weight:400}
.overview-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.section-heading {display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.work-list {list-style:none;padding:0;margin:.65rem 0 0}
.work-list li {display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap;border-top:1px solid var(--line);padding:.65rem 0}
.table tbody tr:hover {background:var(--wash)}
@media(max-width:720px) {
  .shell aside {position:static;max-height:none}
  .shell nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:.55rem}
  .shell nav button {white-space:normal;padding:.5rem .8rem}
  .overview-columns {grid-template-columns:1fr}
}
