@font-face {
  font-family: 'Geist';
  src: url('/assets/Geist-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --purple: #4500ff;
  --purple-hover: #3500c9;
  --purple-active: #29009b;
  --purple-soft: #eee9ff;
  --ink: #24303a;
  --muted: #5e646b;
  --line: #dddcd6;
  --canvas: #eceae3;
  --white: #fbfbf9;
  --header: #0f1c2d;
  --danger: #b83342;
  --success: #176545;
  --radius: 8px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; min-height: 100%; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font: 400 1rem/1.6 'Geist', ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: var(--purple); text-underline-offset: 3px; }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .58; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.15rem, 4vw, 2.7rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 500; }
h2 { margin-bottom: 5px; font-size: 1.3rem; line-height: 1.3; letter-spacing: -.025em; font-weight: 650; }
h3 { margin-bottom: 5px; font-size: 1.05rem; line-height: 1.4; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 14px; background: #fff; border: 2px solid var(--purple); border-radius: 6px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { min-height: 76px; padding: 16px max(24px, calc((100vw - 1160px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--header); border-bottom: 1px solid rgb(255 255 255 / 12%); }
.wordmark { display: inline-flex; flex: 0 0 auto; min-height: 44px; align-items: center; text-decoration: none; color: #fff; line-height: 1; }
.wordmark img { display: block; width: 132px; height: 33px; object-fit: contain; }
.header-label { font-size: .95rem; color: #c3c3d2; }
.header-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; font-size: .94rem; }
.header-nav a { display: inline-flex; min-height: 44px; align-items: center; color: #bec0d2; text-decoration: none; border-bottom: 2px solid transparent; }
.header-nav a:hover, .header-nav .current { color: #fff; }
.header-nav .current { font-weight: 650; border-bottom-color: #9b7cff; }
.site-header :focus-visible { outline-color: #fff; box-shadow: none; }
.welcome-layout { width: min(100% - 40px, 580px); margin: clamp(44px, 10vh, 100px) auto 44px; }
.welcome-card { padding: clamp(28px, 5vw, 44px); border: 1px solid var(--line); border-top: 4px solid var(--purple); border-radius: var(--radius); background: var(--white); }
.eyebrow { margin-bottom: 14px; font-size: .75rem; font-weight: 700; color: var(--purple); letter-spacing: .1em; text-transform: uppercase; }
.lead { margin-bottom: 24px; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.action-stack { display: grid; gap: 12px; margin: 28px 0 16px; }
.button { display: inline-flex; min-height: 46px; padding: 10px 18px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 4px; font-weight: 600; font-size: .95rem; line-height: 1.45; text-decoration: none; text-align: center; transition: background-color .12s ease, border-color .12s ease; }
.button-primary { color: #fff; background: var(--purple); }
.button-primary:hover:not(:disabled) { background: var(--purple-hover); }
.button-primary:active:not(:disabled) { background: var(--purple-active); }
.button-secondary { color: var(--purple); border-color: #cfc2ff; background: var(--white); }
.button-secondary:hover:not(:disabled) { background: var(--purple-soft); }
.button-quiet { color: var(--purple); border-color: var(--line); background: var(--white); }
.button-quiet:hover:not(:disabled) { background: var(--canvas); }
.button-danger { color: var(--danger); border-color: #edd4d9; background: #fff; }
.button-danger:hover:not(:disabled) { background: #fff4f5; }
.button-small { min-height: 44px; padding: 8px 12px; font-size: .875rem; }
.supporting-text { margin-bottom: 0; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.welcome-footer { margin: 22px 12px 0; text-align: center; color: var(--muted); font-size: .875rem; }
.account-line { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; font-size: .875rem; }
.account-line span { min-width: 0; overflow-wrap: anywhere; color: var(--muted); }
.site-footer { padding: 20px 24px 30px; text-align: center; color: var(--muted); font-size: .8125rem; }
.admin-layout { width: min(100% - 48px, 1160px); margin: 42px auto; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.page-heading .eyebrow { margin-bottom: 7px; }
.page-heading .lead { margin-bottom: 0; }
.signed-in-as { margin: 0 0 4px; color: var(--muted); font-size: .875rem; text-align: right; }
.signed-in-as span { display: block; margin-top: 2px; color: var(--ink); overflow-wrap: anywhere; }
.panel { overflow: hidden; margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.panel-heading { padding: 24px 26px 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.panel-heading p { margin-bottom: 0; color: var(--muted); font-size: .94rem; }
.invite-panel { padding-bottom: 24px; }
.invite-form { display: flex; align-items: flex-end; gap: 14px; padding: 0 26px; }
.field { display: grid; gap: 6px; }
.field-email { flex: 1 1 300px; }
.field-role { flex: 0 0 180px; }
label { font-size: .9rem; font-weight: 600; }
input, select { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: var(--white); border: 1px solid #747a81; border-radius: 4px; line-height: 1.4; }
input::placeholder { color: #747a81; }
input:hover, select:hover { border-color: var(--ink); }
input:focus, select:focus { border-color: var(--purple); }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23655e73' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.role-explanation { margin: 14px 26px 0; font-size: .875rem; color: var(--muted); }
.role-explanation strong { color: var(--ink); font-weight: 600; }
.role-explanation strong + strong { margin-left: 14px; }
.invitation-result { margin: 22px 26px 0; padding: 20px; background: var(--purple-soft); border: 1px solid #d5caff; border-radius: var(--radius); }
.result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.result-heading p { margin-bottom: 14px; font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; }
.invitation-result input { color: var(--muted); font-size: .875rem; background: #fff; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 600px; border-collapse: collapse; text-align: left; font-size: .94rem; }
thead { background: #f2f0ea; }
th { color: var(--ink); font-size: .8125rem; font-weight: 600; }
th, td { padding: 14px 26px; border-top: 1px solid var(--line); vertical-align: middle; }
th + th, td + td { padding-left: 10px; }
td:first-child { overflow-wrap: anywhere; }
td select { min-height: 44px; min-width: 130px; padding-top: 8px; padding-bottom: 8px; font-size: .875rem; }
.cell-detail { display: block; margin-top: 2px; font-size: .8125rem; color: var(--muted); }
.role-controls { display: flex; align-items: center; gap: 9px; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; white-space: nowrap; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 5px; background: #edf7f1; color: var(--success); font-size: .8125rem; font-weight: 550; white-space: nowrap; }
.badge-muted { background: #ebe8e2; color: var(--muted); }
.empty-state { padding: 8px 26px 24px; margin: 0; color: var(--muted); font-size: .94rem; }
.activity-list { list-style: none; margin: 0; padding: 0 26px; }
.activity-list li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; }
.activity-list li:last-child { padding-bottom: 24px; }
.activity-description { min-width: 0; font-size: .94rem; overflow-wrap: anywhere; }
.activity-description strong { font-weight: 580; }
.activity-list time { flex: 0 0 auto; color: var(--muted); font-size: .8125rem; line-height: 1.8; }
.message { padding: 13px 16px; border-radius: 4px; border: 1px solid #cce3d5; background: #f2faf5; color: #24563c; font-size: .94rem; margin: 0 0 20px; }
.welcome-card .message { margin-top: 20px; margin-bottom: 0; }
.message-error { color: #842337; background: #fff4f5; border-color: #ecd1d8; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 780px) {
  .site-header { min-height: 72px; padding: 14px 24px; }
  .header-nav { gap: 16px; font-size: .875rem; }
  .admin-layout { width: min(100% - 32px, 1160px); margin-top: 30px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .signed-in-as { text-align: left; }
  .signed-in-as span { display: inline; margin-left: 6px; }
  .invite-form { flex-wrap: wrap; }
  .field-email { flex-basis: 100%; }
  .field-role { flex: 1 1 160px; }
  .invite-form > button { flex: 1 1 160px; }
  .panel-heading, th, td { padding-left: 20px; padding-right: 20px; }
  .invite-form { padding: 0 20px; }
  .role-explanation { margin-left: 20px; margin-right: 20px; }
  .invitation-result { margin-left: 20px; margin-right: 20px; padding: 16px; }
  .role-controls { flex-direction: column; align-items: stretch; }
  .row-actions { justify-content: flex-start; }
  .activity-list { padding: 0 20px; }
}
@media (max-width: 480px) {
  .site-header { gap: 8px 18px; flex-wrap: wrap; padding: 12px 20px; }
  .header-nav { gap: 4px 18px; width: 100%; justify-content: flex-start; }
  .header-nav a { font-size: .8125rem; }
  .wordmark img { width: 120px; height: 30px; }
  .welcome-layout { margin-top: 40px; }
  .welcome-card { padding: 28px 24px; }
  .activity-list li { flex-direction: column; gap: 4px; }
  .activity-list time { order: 1; }
  .signed-in-as span { display: block; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
/* Invitation addresses are fixed text, never editable recipient fields. */
.invited-email { font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; margin-block: .5rem 1rem; }
#email-code { font-size: 1.5rem; letter-spacing: .2em; font-variant-numeric: tabular-nums; max-width: 16rem; }
#resend-code { margin-top: 1rem; }
