:root {
  --navy: #0B1438;
  --navy-deep: #070D27;
  --brand-navy: #0A3B9A;
  --ink: #0B1438;
  --muted: #4A5372;
  --line: #E3E6EE;
  --field-line: #858CA6;
  --mist: #F4F6FA;
  --paper: #FFFFFF;
  --cyan: #0AB6E8;
  --cyan-ink: #055E7C;
  --cyan-wash: #E6F7FD;
  --magenta: #D23B9A;
  --magenta-ink: #B8287F;
  --magenta-wash: #FBEAF4;
  --amber-ink: #8A5300;
  --amber-wash: #FFF3DC;
  --error: #B42318;
  --error-bg: #FEF3F2;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 15px/1.5 "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--brand-navy); }
a:hover { color: var(--navy); }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 15px; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 14px; margin: 18px 0 8px; font-weight: 600; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* App shell: a sidebar that collapses to icons (desktop) or folds into a menu (phones). */
.shell {
  display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh;
  transition: grid-template-columns 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* Every page fills the column up to .page's max width, whatever its content. */
.shell > main { min-width: 0; width: 100%; }
.side {
  position: sticky; top: 0; z-index: 30; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--navy); color: #fff;
}
.side-top { display: flex; align-items: center; height: 64px; padding: 0 22px; flex: none; }
.brand { display: flex; align-items: center; border-radius: 6px; }
.brand img { display: block; height: 32px; width: auto; }
.brand .brand-mark { display: none; height: 22px; }
.side-menu {
  display: none; place-items: center; width: 44px; height: 44px; margin-left: auto;
  background: none; border: 0; border-radius: 8px; color: #fff; cursor: pointer;
}
.side-menu .icon-close, .side.is-open .side-menu .icon-open { display: none; }
.side.is-open .side-menu .icon-close { display: block; }
.side-panel {
  flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 8px 12px 14px;
}
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-group { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
/* Use with Claude and Admin share one divider above them. */
.side-group + .side-group { margin-top: 10px; padding-top: 0; border-top: 0; }
.side-label { margin: 0 0 6px 12px; font-size: 12px; font-weight: 600; color: #8D96B8; letter-spacing: 0.02em; }
.side-item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
  height: 40px; padding: 0 12px; border: 0; border-radius: 8px;
  background: none; color: #C9D0E6; font: inherit; font-weight: 500; text-align: left;
  text-decoration: none; cursor: pointer;
  transition: background-color 120ms ease-out, color 120ms ease-out;
}
.side-item .icon { flex: none; }
.side-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.side-item[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.12); }
.side-item[aria-current="page"] .icon { color: var(--cyan); }
.side-foot { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.side-foot form { margin: 0; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; min-width: 0; }
.me-avatar {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(10, 182, 232, 0.18); color: #7FDBF7; font-size: 12px; font-weight: 600;
}
.me-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.me-name { color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-email { color: #9AA3C4; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-expand, .when-collapsed { display: none; }

@media (min-width: 761px) {
  .shell.is-collapsed { grid-template-columns: 72px minmax(0, 1fr); }
  .is-collapsed .side-top { justify-content: center; padding: 0; }
  .is-collapsed .brand-full { display: none; }
  .is-collapsed .brand .brand-mark { display: block; }
  .is-collapsed .side-item { justify-content: center; padding: 0; gap: 0; }
  .is-collapsed .side-label, .is-collapsed .me-text {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  }
  .is-collapsed .me { justify-content: center; padding: 6px 0 10px; }
  .is-collapsed .icon-collapse, .is-collapsed .when-open { display: none; }
  .is-collapsed .icon-expand { display: block; }
  .is-collapsed .when-collapsed { display: inline; }
  /* Collapsed, each label becomes a tooltip beside its icon. */
  .is-collapsed .side-text {
    position: absolute; left: calc(100% + 14px); top: 50%; z-index: 40;
    padding: 6px 10px; border-radius: 6px; background: var(--navy-deep); color: #fff;
    font-size: 13px; box-shadow: 0 6px 18px rgba(7, 13, 39, 0.28);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-4px, -50%);
    transition: none; /* hides at once, so labels never flash while the bar collapses */
  }
  .is-collapsed .side-item:hover .side-text, .is-collapsed .side-item:focus-visible .side-text {
    opacity: 1; visibility: visible; transform: translate(0, -50%);
    transition: opacity 120ms ease-out, transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shell, .side-item, .side-text { transition: none !important; }
}

button.link {
  background: none; border: 0; padding: 0; color: #fff; font: inherit;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* Layout */
.page { max-width: 1120px; margin: 0 auto; padding: 28px 28px 64px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 18px;
}

/* Buttons and fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--navy); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--brand-navy); }
input[type="search"], input[type="email"], input[type="url"], select {
  height: 40px; padding: 0 12px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--field-line); border-radius: 10px;
}
input::placeholder { color: #7A819B; }

/* Stats */

/* Filters */
.filters { display: flex; gap: 10px; margin-bottom: 16px; }
.filters input[type="search"] { flex: 1; min-width: 0; }

/* Directory list */
.list { padding: 0; overflow: hidden; }
.list-head, .list-row {
  display: grid; grid-template-columns: 2.2fr 1.6fr 1.2fr 0.8fr 0.9fr;
  gap: 16px; align-items: center; padding: 12px 22px;
}
.list-head {
  font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.04em; border-bottom: 1px solid var(--line); background: #FAFBFD;
}
.list-row { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--mist); color: inherit; }
.who-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.name { display: block; font-weight: 600; }
.sub { display: block; font-size: 13px; color: var(--muted); }
.cell { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 28px 22px; margin: 0; color: var(--muted); text-align: center; }

.avatar {
  flex: none; display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cyan-wash); color: var(--cyan-ink);
  font-size: 13px; font-weight: 700;
}
.avatar.mag { background: var(--magenta-wash); color: var(--magenta-ink); }
.avatar.big { width: 64px; height: 64px; font-size: 22px; }

.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--mist); color: var(--muted);
  border: 1px solid var(--line); white-space: nowrap;
}
.chip-member { background: var(--cyan-wash); color: var(--cyan-ink); border-color: transparent; }
.chip-provisional { background: var(--magenta-wash); color: var(--magenta-ink); border-color: transparent; }
.chip-suspended { background: var(--amber-wash); color: var(--amber-ink); border-color: transparent; }
.chip-applicant { background: #EEF1FF; color: var(--brand-navy); border-color: transparent; }

.pager { display: flex; gap: 18px; justify-content: center; align-items: center; color: var(--muted); font-size: 14px; }

/* Profile */
.back { margin-bottom: 18px; font-size: 14px; }
.back a { text-decoration: none; }
.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.profile-head h1 { margin: 0; }
.profile-head p { margin: 2px 0 0; }
.head-status { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.chip-board { background: var(--navy); color: #fff; }
.job-edit { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.job-edit summary { cursor: pointer; font-size: 14px; color: var(--navy); }
.job-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 10px; }
.job-form .field { margin: 0; }
@media (max-width: 760px) { .job-form { grid-template-columns: 1fr; } .job-form .btn { justify-self: start; } }
.profile-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.profile-grid .card { margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.prose { white-space: pre-line; }
.note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.roles, .votes { list-style: none; margin: 0; padding: 0; }
.roles li, .votes li { padding: 10px 0; border-top: 1px solid var(--line); }
.roles li:first-child, .votes li:first-child { border-top: 0; padding-top: 0; }
.votes li { display: grid; grid-template-columns: minmax(0, 180px) 1fr; gap: 2px 16px; }
.votes .name { overflow-wrap: anywhere; }
.votes .sub { grid-column: 2; }

/* Audit table */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--navy); }
.login-card {
  width: 100%; max-width: 420px; background: var(--paper); border-radius: 16px;
  padding: 32px 30px; text-align: center;
}
.login-logo { display: block; margin: 0 auto 18px; height: 44px; width: auto; background: var(--navy); padding: 8px 14px; border-radius: 10px; box-sizing: content-box; }
.login-card .g_id_signin { display: flex; justify-content: center; margin-top: 18px; }
.error { background: var(--error-bg); color: var(--error); border-radius: 10px; padding: 10px 12px; font-size: 14px; text-align: left; }
.dev-login { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--line); text-align: left; }
.dev-login label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.dev-login .row { display: flex; gap: 8px; }
.dev-login input { flex: 1; min-width: 0; }

@media (max-width: 760px) {
  .shell { display: block; }
  .side { height: auto; }
  .side-top { height: 56px; padding: 0 6px 0 16px; }
  .side-menu { display: inline-grid; }
  .side-panel {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100dvh - 56px); overflow-y: auto;
    padding: 4px 12px 16px; background: var(--navy);
    box-shadow: 0 18px 32px rgba(7, 13, 39, 0.32);
  }
  .side.is-open .side-panel { display: flex; gap: 16px; }
  .side-collapse { display: none; }
  .page { padding: 20px 16px 48px; }
  .filters { flex-wrap: wrap; }
  .filters input[type="search"] { flex-basis: 100%; }
  .filters select { flex: 1; }
  .list-head { display: none; }
  .list-row { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .list-row > :nth-child(2), .list-row > :nth-child(3), .list-row > :nth-child(4) { display: none; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-head { flex-wrap: wrap; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
}

/* Reviews */
h2.section { margin: 26px 0 10px; display: flex; align-items: center; gap: 8px; }
h2.section > .icon { width: 18px; height: 18px; color: var(--cyan-ink); }
.count { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.review-row { grid-template-columns: 2.2fr 1fr 1.2fr; }
.review { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.chip-admit { background: var(--cyan-wash); color: var(--cyan-ink); border-color: transparent; }
.chip-guest { background: #EEF1FF; color: var(--brand-navy); border-color: transparent; }
.chip-decline { background: var(--mist); color: var(--muted); }
.chip-tiebreak { background: var(--amber-wash); color: var(--amber-ink); border-color: transparent; }
.field-label { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .review-row { grid-template-columns: 1fr; gap: 2px; }
  .review-row > :nth-child(2), .review-row > :nth-child(3) { display: block; font-size: 13px; color: var(--muted); }
}

/* Full application */
.answers { margin-top: 14px; }
.answers summary { cursor: pointer; font-weight: 600; color: var(--brand-navy); }
.answers .facts { margin-top: 12px; }
.answers dt .sub { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Settings */
.settings { display: grid; gap: 0; }
.field { display: grid; gap: 4px; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label { font-weight: 600; font-size: 14px; }
.field input[type="text"], .field input[type="email"], .field input[type="url"] {
  height: 40px; padding: 0 12px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--field-line); border-radius: 10px; width: 100%;
}
.field input[aria-invalid="true"] { border-color: var(--error); }
.optional { font-weight: 400; color: var(--muted); font-size: 13px; }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.field-error { margin: 0; font-size: 13px; color: var(--error); font-weight: 500; }
.flash { background: var(--cyan-wash); color: var(--cyan-ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.alert-block { padding: 16px 0; border-top: 1px solid var(--line); }
.alert-block:first-of-type { border-top: 0; padding-top: 0; }
.alert-block:last-child { padding-bottom: 0; }
.alert-row { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.alert-row legend { font-weight: 600; padding: 0; margin-bottom: 2px; }
.alert-row .field { margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; }
.check:has(input:checked) { border-color: var(--navy); background: var(--mist); }
.goes-to { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.settings > .btn { justify-self: start; margin-bottom: 24px; }
.btn-quiet { background: var(--paper); color: var(--navy); border: 1px solid var(--navy); }
.btn-quiet:hover { background: var(--mist); color: var(--navy); }

/* Users */
.warn { background: var(--amber-wash); color: var(--amber-ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.user-add { display: grid; grid-template-columns: 1.4fr 1.6fr 1fr 1fr; gap: 12px; align-items: end; }
.user-add-roles { grid-column: 1 / 4; }
.user-add > .btn { justify-self: end; }
.role-boxes { display: flex; flex-wrap: wrap; gap: 4px 16px; border: 0; padding: 0; margin: 0; min-width: 0; }
.role-boxes .check { height: auto; min-height: 34px; }
.user-add .check, .user-row .check { height: 40px; }
.user-row .check { height: 34px; }
.user-add .field { margin: 0; }
.user-add select, .user-row select { width: 100%; }
.users { padding: 0; }
.user-head, .user-row {
  display: grid; grid-template-columns: 1.4fr 2.4fr auto auto; gap: 12px; align-items: center;
  padding: 12px 22px; border-bottom: 1px solid var(--line);
}
.user-head {
  font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.04em; background: #FAFBFD;
}
.user-row:last-child { border-bottom: 0; }
.user-row.inactive { background: var(--mist); }
.user-row.inactive .user-who input { color: var(--muted); }
.user-row.has-error { background: var(--error-bg); }
.user-who { display: grid; gap: 2px; min-width: 0; }
.user-who input {
  height: 34px; padding: 0 8px; margin-left: -8px; font: inherit; font-weight: 600; color: var(--ink);
  border: 1px solid transparent; border-radius: 8px; background: transparent; width: 100%;
}
.user-who input:hover { border-color: var(--line); }
.user-who input:focus { border-color: var(--field-line); background: var(--paper); }
.user-who .sub { overflow-wrap: anywhere; }
.user-who .name { font-weight: 600; color: var(--ink); text-decoration: none; }
.user-who .name:hover { text-decoration: underline; }
.user-row .btn { height: 34px; padding: 0 14px; }
.user-actions { display: flex; gap: 6px; justify-content: flex-end; }
.user-actions .btn { white-space: nowrap; }
.check input:disabled { cursor: not-allowed; }
@media (max-width: 760px) {
  .user-add { grid-template-columns: 1fr 1fr; }
  .user-add .field:first-child, .user-add .field:nth-child(2), .user-add-roles { grid-column: 1 / -1; }
  .user-add .btn { grid-column: 1 / -1; justify-self: start; }
  .user-head { display: none; }
  .user-row { grid-template-columns: 1fr 1fr; padding: 14px 16px; }
  .user-who, .user-row .role-boxes { grid-column: 1 / -1; }
}

/* Guests */
.guest-add { padding: 0; }
.guest-add > summary {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 22px 16px 48px; position: relative;
  cursor: pointer; list-style: none; border-radius: var(--radius);
}
.guest-add > summary::-webkit-details-marker { display: none; }
.guest-add > summary::before {
  content: ""; position: absolute; left: 22px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 14px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2px 14px no-repeat;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.guest-add[open] > summary::before { transform: rotate(45deg); }
.guest-add > summary:hover { background: var(--mist); }
.guest-add[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.guest-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 18px 22px 22px; }
.guest-form .field { margin: 0; }
.guest-form .field select { width: 100%; }
.guest-form .error { grid-column: 1 / -1; margin: 0; }
.guest-form .error a { color: inherit; font-weight: 600; }
.guest-form .btn { justify-self: start; }
.guest-filter { align-items: center; margin-top: 8px; }
.guest-filter label { font-weight: 600; font-size: 14px; }
.guests .list-head, .guests .list-row { grid-template-columns: 2fr 1.8fr 1.8fr 1fr 70px; }
.guest-card .facts { margin-bottom: 18px; }
.guest-actions { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: flex-start; padding-top: 16px; border-top: 1px solid var(--line); }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: end; }
.inline-form label { grid-column: 1 / -1; font-weight: 600; font-size: 14px; }
.invite-apply { display: grid; gap: 6px; max-width: 360px; }
.invite-apply form { margin: 0; }

@media (max-width: 760px) {
  .guest-form { grid-template-columns: 1fr; padding: 16px; }
  .guest-add > summary { padding-right: 16px; }
  .guests .list-row { grid-template-columns: 1fr auto; }
  .guests .list-row > :nth-child(3) { display: block; font-size: 13px; color: var(--muted); }
  .guest-actions { flex-direction: column; }
}

/* Outreach */
.head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.head-row .btn { flex: none; margin-top: 4px; }
.plain { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.import-result h3:first-of-type { margin-top: 14px; }
.prospect-form { display: grid; gap: 14px; padding: 18px 22px 22px; }
.prospect-form .field { margin: 0; }
textarea {
  font: inherit; color: var(--ink); padding: 10px 12px; width: 100%;
  border: 1px solid var(--field-line); border-radius: 10px; background: var(--paper); resize: vertical;
}
.prospect-form textarea { font-size: 14px; line-height: 1.5; min-height: 140px; }
.prospect-opts { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 12px 16px; align-items: end; }
.prospect-opts select { width: 100%; }

.pipeline { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.pipeline a {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--muted); text-decoration: none; font-size: 14px;
}
.pipeline a:hover { border-color: var(--field-line); color: var(--ink); }
.pipeline a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pipeline .n { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.pipeline a[aria-current="true"] .n { color: #fff; }

.stage {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  white-space: nowrap; background: var(--mist); color: var(--muted); border: 1px solid var(--line);
}
.stage-contacted { background: #EEF1FF; color: var(--brand-navy); border-color: transparent; }
.stage-replied { background: var(--amber-wash); color: var(--amber-ink); border-color: transparent; }
.stage-invited { background: var(--magenta-wash); color: var(--magenta-ink); border-color: transparent; }
.stage-applied { background: #EEF1FF; color: var(--navy); border-color: transparent; }
.stage-joined { background: var(--cyan-wash); color: var(--cyan-ink); border-color: transparent; }
.sub.inline { display: inline; margin-left: 6px; }

.outreach-list .list-head, .outreach-list .list-row { grid-template-columns: 2.4fr 1.3fr 1.2fr 0.7fr auto; }
.outreach-list .list-row:hover { background: var(--mist); }
.row-link { color: inherit; text-decoration: none; }
.row-link:hover .name { text-decoration: underline; text-underline-offset: 3px; }
.li-link { font-size: 13px; font-weight: 600; text-decoration: none; }
.li-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.outreach-card .facts { margin-bottom: 18px; }
.outreach-actions { display: grid; gap: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.outreach-actions form { margin: 0; }
.stage-form { display: grid; gap: 6px; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented button {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--field-line);
  background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.segmented button:hover { background: var(--mist); }
.segmented button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.outreach-actions .inline-form { max-width: 460px; }
.outreach-actions .inline-form input, .outreach-actions .inline-form select { width: 100%; }
.invite-meeting { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.note-form { display: grid; gap: 6px; max-width: 560px; }
.note-form .btn { justify-self: start; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; font-size: 14px; }
.t-when { color: var(--muted); font-variant-numeric: tabular-nums; }
.t-what .sub { display: block; }
.outreach-card h3 { margin-top: 22px; }

/* Use with Claude */
.lead-narrow { max-width: 68ch; }
.code {
  margin: 10px 0; padding: 14px 16px; border-radius: 10px; background: var(--navy); color: #E6EAF5;
  font: 13px/1.55 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere;
}
.code::selection, .code *::selection { background: var(--cyan); color: var(--navy); }
code { font: 13px ui-monospace, "SF Mono", Menlo, monospace; background: var(--mist); padding: 1px 5px; border-radius: 5px; }
.token-new { border-color: var(--cyan); }
.token-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.token-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.token-list form { margin: 0; }
.token-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.token-form .field { margin: 0; flex: 1; min-width: 220px; }
.api-help > p, .api-help > pre { margin: 16px 20px; }
.api-help > pre { margin-top: 0; }

/* Connecting Claude (OAuth approval) */
.approve-card { max-width: 560px; margin: 24px auto; }
.approve-card h1 { margin-bottom: 12px; }
.approve-list { margin: 0 0 14px; display: grid; gap: 6px; }
.approve-list li { padding-left: 16px; position: relative; }
.approve-list li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.approve-actions { display: flex; gap: 10px; margin: 18px 0 8px; }

@media (max-width: 760px) {
  .head-row { flex-direction: column; }
  .prospect-form { padding: 16px; }
  .prospect-opts { grid-template-columns: 1fr; }
  .prospect-opts .btn { justify-self: start; }
  .outreach-list .list-row { grid-template-columns: 1fr auto; }
  .outreach-list .list-row > :nth-child(2) { display: block; }
  .outreach-list .list-row > :nth-child(3), .outreach-list .list-row > :nth-child(4), .outreach-list .list-row > :nth-child(5) { display: none; }
}

/* Events */
.event-list .list-head, .event-list .list-row { grid-template-columns: 2.6fr 1fr 1fr 0.7fr; }
.event-list.past .list-head, .event-list.past .list-row { grid-template-columns: 2.6fr 1fr 1.7fr; }
.num { font-variant-numeric: tabular-nums; }
.stat-of { font-size: 15px; font-weight: 500; color: var(--muted); }
.claim-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.claim-bar .hint { max-width: 560px; }
.claim-actions { display: flex; gap: 8px; flex: none; }
.invite-list .list-head, .invite-list .list-row { grid-template-columns: 28px minmax(0, 1fr) auto; }
.pick { display: grid; place-items: center; }
.pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); cursor: pointer; }
.who-text { min-width: 0; }
.mine-list .list-head, .mine-list .list-row,
.claimed-list .list-head, .claimed-list .list-row { grid-template-columns: 2fr 1.1fr 1.6fr auto; }
.coming-list .list-row { grid-template-columns: 2fr 1.6fr auto; }
.btn-small { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 8px; display: inline-flex; align-items: center; text-decoration: none; margin-right: 6px; }
.btn-small:hover { color: #fff; }
.link-btn { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.link-btn:hover { color: var(--error); text-decoration: underline; text-underline-offset: 3px; }
.email-help { margin-bottom: 14px; }
.email-sample { padding: 16px 22px 20px; font-size: 14px; max-width: 640px; }
.email-sample p { margin: 0 0 12px; }
.tally { padding: 8px 16px; margin-bottom: 14px; }
.table .num { text-align: right; width: 110px; }
.event-hist { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; }
.event-hist .name { text-decoration: none; }
.event-hist .sub { grid-column: 1; }
.event-hist .stage { grid-column: 2; grid-row: 1 / span 2; }

@media (max-width: 760px) {
  /* The directory hides columns 2-4 on phones; these lists keep the ones that matter. */
  .event-list .list-row, .event-list.past .list-row { grid-template-columns: 1fr auto; }
  .event-list .list-row > :nth-child(2) { display: block; }
  .invite-list .list-row { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .invite-list .list-row > :nth-child(2) { display: flex; }
  .invite-list .list-row > :nth-child(3) { display: block; }
  .mine-list .list-row, .claimed-list .list-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .mine-list .list-row > :nth-child(2), .claimed-list .list-row > :nth-child(2) { display: block; grid-column: 2; grid-row: 1; }
  .mine-list .list-row > :nth-child(3), .claimed-list .list-row > :nth-child(3) { display: block; grid-column: 1; font-size: 13px; color: var(--muted); }
  .mine-list .list-row > :nth-child(4), .claimed-list .list-row > :nth-child(4) { grid-column: 2; }
  .coming-list .list-row { grid-template-columns: minmax(0, 1fr) auto; }
  .coming-list .list-row > :nth-child(3) { display: block; }
  .claim-actions { width: 100%; }
}
.head-actions { display: flex; gap: 8px; flex: none; margin-top: 4px; }
.head-actions .btn { margin-top: 0; }
.invite-template textarea { font-size: 14px; line-height: 1.5; }
.placeholders { margin: 4px 0 18px; }
.placeholders dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 6px 0 0; font-size: 13px; }
.placeholders dt code { font-size: 12.5px; color: var(--brand-navy); }
.placeholders dd { margin: 0; color: var(--muted); }
.template-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.invite-preview-card .email-sample { padding: 0; }
@media (max-width: 760px) {
  .placeholders dl { grid-template-columns: 1fr; gap: 0; }
  .placeholders dd { margin-bottom: 6px; }
}
.field textarea[aria-invalid="true"] { border-color: var(--error); }

/* Organizations */
.org-list .list-head, .org-list .list-row { grid-template-columns: 2fr 1.2fr 90px; }
.org-list .list-row .cell { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.org-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 12px; }
.org-form.pad { padding: 18px 22px 22px; margin: 0; }
.org-form .field { margin: 0; }
.org-form .field.wide, .org-form textarea { grid-column: 1 / -1; }
.org-form .btn { justify-self: start; }
.org-contact { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
.org-contact .sub { grid-column: 1; }
.org-contact form { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.sponsorship h3 { margin-top: 18px; }
.highlight { border-top: 1px solid var(--line); padding: 12px 0; }
.highlight:first-of-type { border-top: 0; }
.highlight p { margin: 4px 0; }
.hl-kind { display: flex; gap: 6px; align-items: center; }
.link-btn.danger { color: var(--error); margin-top: 8px; }
@media (max-width: 760px) {
  .org-form { grid-template-columns: 1fr; }
  .org-list .list-head { display: none; }
  .org-list .list-row { grid-template-columns: minmax(0, 1fr) auto; }
  .org-list .list-row > .num { display: none; }
  .org-list .org-logo { width: 56px; padding: 5px 6px; }
  .org-list .avatar { margin: 0 10px; }
}
.publish-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 4px; padding: 10px 12px; background: var(--mist); border-radius: 10px; }
.publish-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.publish-actions form { margin: 0; }
.job-failed { color: var(--error); }
.feed-preview { margin: 0; padding: 16px 22px 22px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Event pages */
.field input[type="date"], .field input[type="time"], .field input[type="number"] {
  height: 40px; padding: 0 12px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--field-line); border-radius: 10px; width: 100%;
}
.field input:disabled { color: var(--muted); background: var(--mist); }
.field input[type="file"] { font: inherit; font-size: 14px; }
.field select { width: 100%; }
.when-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.when-times > div { display: grid; gap: 4px; }
.when-times label { font-weight: 600; font-size: 14px; }
.org-form .checks { flex-direction: row; }
.org-form .role-boxes legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.5; }
.event-image { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.event-image img { width: 160px; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.publish-card { margin-bottom: 16px; }
.publish-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.publish-form .btn { margin-left: auto; }
.takedown { margin: 0; }
.job-list { margin: 12px 0; }
.email-preview img { max-width: 100%; height: auto; }
.email-preview h1 { font-size: 22px; }

/* Page band: a white header across the top of the page (event, profile),
   with icon-led facts and, on events, tabs along its bottom edge. */
/* The band's background bleeds past the centered column to the window edge;
   the shell clips it (clip, not hidden, so the sticky sidebar still sticks),
   and the sidebar sits above it on the left. */
.shell { overflow-x: clip; }
.band { position: relative; isolation: isolate; margin: -28px 0 24px; padding: 20px 0; }
.band::before { content: ""; position: absolute; z-index: -1; inset: 0 -100vmax; background: var(--paper); border-bottom: 1px solid var(--line); }
.band.has-tabs { padding-bottom: 0; }
.band-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; text-decoration: none; }
.band-back .icon { width: 15px; height: 15px; }
.band-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; margin-top: 10px; }
.band-top h1 { margin: 0; text-wrap: balance; }
.band-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; flex: none; }
.band-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.band-facts li { display: inline-flex; align-items: center; gap: 7px; }
.band-facts .icon { width: 16px; height: 16px; color: var(--muted); }
.band-facts b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.band-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.band-who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.band-title { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.band-tile { display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin-top: -3px; border-radius: 11px; background: #E8EBF6; color: var(--brand-navy); }
.band-tile .icon { width: 20px; height: 20px; }
.band-lede { margin: 4px 0 0; max-width: 72ch; color: var(--muted); font-size: 14px; }
.band-side .btn .icon, .list-actions .btn .icon { width: 16px; height: 16px; }
.band-who .band-facts { margin-top: 4px; }
.pill-live { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--mist); color: var(--muted); white-space: nowrap; }
.pill-live .icon { width: 15px; height: 15px; }
.pill-live.on { background: #E5F5EC; color: #1F6B45; }
.icon-links { display: inline-flex; gap: 4px; }
.icon-link { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); color: var(--navy); background: var(--paper); }
.icon-link:hover { background: var(--mist); }
.icon-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tabs { display: flex; gap: 4px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px 13px; border-radius: 8px 8px 0 0; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color 160ms ease-out, color 160ms ease-out; }
.tabs a .icon { width: 18px; height: 18px; color: #6B7392; transition: color 160ms ease-out; }
.tabs a:hover { color: var(--ink); background: var(--mist); }
.tabs a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.tabs a[aria-current="page"] .icon { color: var(--cyan-ink); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--navy); }
.tabs .n { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); background: #ECEFF5; border-radius: 999px; padding: 1px 7px; }
.tabs a[aria-current="page"] .n { background: var(--cyan-wash); color: var(--cyan-ink); }
.tabs .tab-end { margin-left: auto; }

/* Card headers: icon tile, title, a line under it, something on the right */
.card > .card-h { display: flex; align-items: center; gap: 12px; margin: -20px -22px 16px; padding: 14px 22px; border-bottom: 1px solid #EEF0F5; }
.card-h .tile { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: #E8EBF6; color: var(--brand-navy); }
.card-h .tile .icon { width: 18px; height: 18px; }
.card-h .tile-cyan { background: var(--cyan-wash); color: var(--cyan-ink); }
.card-h .tile-magenta { background: var(--magenta-wash); color: var(--magenta-ink); }
.card-h .tile-amber { background: var(--amber-wash); color: var(--amber-ink); }
.card-h-t { flex: 1; min-width: 0; }
.card-h-t h2 { margin: 0; }
.card-h-t p { margin: 1px 0 0; font-size: 13px; color: var(--muted); }
.card-h-r { display: flex; align-items: center; gap: 8px; flex: none; }
.btn > .icon { width: 16px; height: 16px; }
.facts dt .icon { width: 15px; height: 15px; margin-right: 7px; vertical-align: -2px; color: var(--muted); }

/* Activity on a profile: one box per source */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.channel { display: grid; gap: 2px; align-content: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.channel-top { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--muted); }
.channel-top .icon { width: 16px; height: 16px; }
.channel-val { font-weight: 600; }
.channel-sub { font-size: 13px; color: var(--muted); }
.channel.off .channel-val { font-weight: 500; color: #6B7392; }

@media (max-width: 760px) {
  .band { margin-top: -20px; padding: 16px 0; }
  .band.has-tabs { padding-bottom: 0; }
  .band-top { flex-wrap: wrap; }
  .band-side { justify-content: flex-start; }
  .band-tile { display: none; }
  .band-facts { gap: 6px 14px; }
  .tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .tabs .tab-end { margin-left: 0; }
  .card > .card-h { margin-bottom: 14px; padding: 12px 22px; }
  .channels { grid-template-columns: 1fr; }
}
.btn-quiet.btn-small:hover { color: var(--navy); }

/* Events list header */
.list-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.list-top h1 { margin: 0; }
.list-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.list-actions .btn-small { margin-right: 0; }
.lede { margin: 6px 0 18px; max-width: 70ch; }
.address-grid { display: grid; grid-template-columns: 2fr 1fr 0.6fr 0.8fr; gap: 10px; }
@media (max-width: 760px) { .address-grid { grid-template-columns: 1fr 1fr; } }
.address-pair { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }

/* Dialogs: a <dialog class="modal"> opened by a [data-dialog="its id"] button. */
.modal {
  border: 0; padding: 0; border-radius: 16px; width: min(680px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px); background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 64px rgba(7, 13, 39, 0.28);
}
.modal::backdrop { background: rgba(7, 13, 39, 0.45); }
.modal[open] { animation: modal-in 180ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal-head p { margin: 4px 0 0; }
.modal-close {
  flex: none; width: 36px; height: 36px; margin: -6px -8px 0 0; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer;
}
.modal-close:hover { background: var(--mist); color: var(--ink); }
.modal > .error { margin: 14px 22px 0; }
.modal .guest-form, .modal .prospect-form { padding-top: 16px; }
.field input[type="file"] { font: inherit; font-size: 14px; color: var(--muted); }
.field input[type="file"]::file-selector-button {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--navy); background: var(--paper);
  border: 1px solid var(--navy); border-radius: 8px; height: 32px; padding: 0 12px; margin-right: 10px; cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { background: var(--mist); }
.modal-note { margin: 16px 22px 22px; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.row-actions .btn-small { margin-right: 0; }
.guests .list-row:hover { background: var(--mist); }
.stage-ready { background: var(--paper); color: var(--magenta-ink); border-color: var(--magenta); }
.tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; vertical-align: 1px; background: var(--magenta-wash); color: var(--magenta-ink); }
@media (max-width: 760px) {
  .outreach-list .list-row > .row-actions:has(.btn) { display: flex; grid-column: 1 / -1; justify-content: flex-start; }
  .outreach-list .row-actions .li-link { display: none; }
  .guests .list-row > .row-actions { display: none; }  /* on each profile instead */
}
.tag-role { background: #EEF1FF; color: var(--brand-navy); }

/* Activity */
.directory .list-head, .directory .list-row { grid-template-columns: 2.1fr 1.4fr 1.1fr 0.75fr 1fr 0.85fr; }
/* Not much room: Applied (on the profile anyway) makes way for Activity. */
@media (min-width: 761px) and (max-width: 1180px) {
  .directory .list-head, .directory .list-row { grid-template-columns: 2.1fr 1.4fr 1.1fr 1fr 0.85fr; }
  .directory .list-head > :nth-child(4), .directory .list-row > :nth-child(4) { display: none; }
}
.activity-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.activity-cell .sub { white-space: nowrap; }
.score {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 24px;
  padding: 0 7px; border-radius: 999px; font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums; background: var(--mist); color: var(--muted);
}
.score-high { background: #DCF3E6; color: #17663A; }
.score-active { background: #E3ECFB; color: #24489A; }
.score-low { background: #FBF0D9; color: #7A5410; }
.score-big { height: 32px; min-width: 40px; font-size: 16px; }
.activity-card .card-head { gap: 12px; }
.activity-summary { display: flex; align-items: center; gap: 10px; }
.activity-card .facts { margin-bottom: 16px; }
.score-note { margin: 0 0 14px; }
.linked-names li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.linked-names form { margin-left: auto; }
.link-form { max-width: 520px; margin-top: 16px; }
.link-form select { width: 100%; }
.link-row { display: grid; grid-template-columns: 1.4fr 2.6fr; gap: 12px; align-items: center; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.link-row:last-child { border-bottom: 0; }
.link-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; justify-content: flex-end; }
.link-actions form { margin: 0; }
.suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.suggestions .btn-small { margin-right: 0; }
.zoom-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.zoom-head h2 { margin: 0; }
.discord-card .link-row { padding: 12px 0; }
@media (max-width: 760px) {
  .directory .list-row { grid-template-columns: 1fr auto auto; }
  .directory .list-row > :nth-child(5) .sub { display: none; }
  .link-row { grid-template-columns: 1fr; padding: 12px 16px; }
  .link-actions { justify-content: flex-start; }
}

/* Event Details tab */
.org-form .form-actions { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.event-image-view { margin: 18px 0 0; }
.event-image-view img { display: block; max-width: min(100%, 420px); height: auto; border-radius: 10px; border: 1px solid var(--line); }
.event-image-view figcaption { margin-top: 6px; }
.page-body { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); max-width: 72ch; }
.page-body > :first-child { margin-top: 0; }
.page-body h2, .page-body h3 { font-size: 16px; margin: 18px 0 6px; }
.page-body ul { padding-left: 20px; }

/* Your profile */
.roles-facts { grid-template-columns: 110px 1fr; }
.roles-facts dt { color: var(--ink); font-weight: 600; }
.me-signout { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.me-signout .hint { margin: 0; flex: 1 1 260px; }
.me-activity li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.me-activity li:last-child { border-bottom: 0; }
.me-activity .sub { flex: none; }
a.me { text-decoration: none; border-radius: 8px; }
a.me:hover, a.me[aria-current="page"] { background: rgba(255, 255, 255, 0.08); }
.me-open { margin: 16px 0 6px; }
@media (max-width: 760px) {
  .roles-facts { grid-template-columns: 1fr; }
}

/* Sortable column headers */
.sort-link { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; text-transform: inherit; letter-spacing: inherit; }
.sort-link .icon { width: 13px; height: 13px; flex: none; opacity: 0; transition: opacity 120ms ease; }
.sort-link:hover, .sort-link:focus-visible { color: var(--ink); }
.sort-link:hover .icon, .sort-link:focus-visible .icon { opacity: 0.55; }
.sort-link.on { color: var(--navy); }
.sort-link.on .icon { opacity: 1; }

/* Members pager */
.pager-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--muted); }
.pager-count { margin: 0; }
.pager-count b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.pager-pages { display: flex; align-items: center; gap: 4px; }
.pager-pages a, .pager-pages span { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.pager-pages a { color: var(--ink); text-decoration: none; }
.pager-pages a:hover { background: var(--mist); color: var(--ink); }
.pager-pages .cur { background: var(--navy); color: #fff; font-weight: 600; }
.pager-pages .off { opacity: 0.35; }
.pager-pages .gap { min-width: 20px; padding: 0; }
.pager-pages .icon { width: 16px; height: 16px; }
.pager-size { display: flex; align-items: center; gap: 8px; margin: 0; }
.pager-size select { height: 34px; padding-top: 0; padding-bottom: 0; }
@media (max-width: 760px) {
  .pager-bar { justify-content: center; }
  .pager-count { flex-basis: 100%; text-align: center; }
}

/* Organization logos: on white, whatever their shape */
.org-logo {
  flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  height: 36px; min-width: 36px; width: 84px; padding: 6px 8px; border-radius: 9px;
  background: #fff; border: 1px solid var(--line); overflow: hidden;
}
.org-logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.org-logo.big { height: 64px; width: 168px; padding: 12px 16px; border-radius: 14px; }
.org-list .avatar { margin: 0 24px; }
.band-meta { font-size: 13px; color: var(--muted); }
.band-lede.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.band-who > div { min-width: 0; }

/* Members: the counts in the header, each a link to that list */
.band-stats { display: flex; margin: 0; padding: 0; list-style: none; }
.band-stats li + li { border-left: 1px solid var(--line); }
.band-stats a { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding: 4px 14px; border-radius: 8px; color: inherit; text-decoration: none; }
.band-stats a:hover { background: var(--mist); color: inherit; }
.band-stats b { font-size: 20px; font-weight: 700; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.band-stats span { font-size: 12px; color: var(--muted); }
.band-stats a[aria-current] span { color: var(--navy); font-weight: 600; }
@media (max-width: 760px) {
  .band-stats { width: 100%; }
  .band-stats li { flex: 1; }
  .band-stats a { align-items: flex-start; padding: 4px 10px; }
  .band-stats li:first-child a { padding-left: 0; }
}

/* Review: the vote, at the top of an applicant's profile */
.review-card { --admit: var(--cyan-ink); --admit-wash: var(--cyan-wash); --guest: var(--brand-navy); --guest-wash: #EEF1FF; --decline: var(--error); --decline-wash: var(--error-bg); }
.vote-admit { --tone: var(--admit); --tone-wash: var(--admit-wash); }
.vote-guest { --tone: var(--guest); --tone-wash: var(--guest-wash); }
.vote-decline { --tone: var(--decline); --tone-wash: var(--decline-wash); }
.vote-progress { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.vote-progress i { width: 18px; height: 6px; border-radius: 3px; background: var(--line); }
.vote-progress i.on { background: var(--cyan); }
.vote-progress span { margin-left: 6px; }

.vote-form { display: grid; gap: 14px; margin-top: 4px; }
.vote-form + .vote-form { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.vote-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.vote-form legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.vote-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vote-tile {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 44px 14px 14px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}
.vote-tile input { position: absolute; opacity: 0; pointer-events: none; }
.vote-tile:hover { border-color: var(--tone); }
.vote-tile:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.vote-tile:has(input:checked) { border-color: var(--tone); background: var(--tone-wash); }
.vote-tile-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--tone-wash); color: var(--tone); flex: none; }
.vote-tile:has(input:checked) .vote-tile-icon { background: var(--tone); color: #fff; }
.vote-tile-icon .icon { width: 20px; height: 20px; }
.vote-tile-text { display: flex; flex-direction: column; gap: 3px; }
.vote-tile-text strong { font-size: 16px; color: var(--ink); }
.vote-tile-text span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.vote-tile-check { position: absolute; top: 50%; right: 14px; margin-top: -10px; color: var(--tone); opacity: 0; transform: scale(0.6); transition: opacity 140ms ease, transform 160ms cubic-bezier(0.22, 1, 0.36, 1); }
.vote-tile-check .icon { width: 20px; height: 20px; }
.vote-tile:has(input:checked) .vote-tile-check { opacity: 1; transform: none; }
.vote-foot { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.vote-notes { flex: 1 1 320px; display: grid; gap: 6px; }
.vote-notes textarea { font: inherit; padding: 8px 12px; border: 1px solid var(--field-line); border-radius: 10px; resize: vertical; }
.vote-by { display: grid; gap: 6px; }
.vote-form .note { margin: 0; }

.review-outcome { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--tone-wash); }
.review-outcome strong { display: block; font-size: 16px; color: var(--tone); }
.review-outcome span:not(.vote-tile-icon) { font-size: 14px; color: var(--ink); }
.review-outcome .vote-tile-icon { background: var(--tone); color: #fff; }

.vote-list { list-style: none; margin: 18px 0 0; padding: 0; }
.vote-list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.vote-list .avatar.tb { background: var(--amber-wash); color: var(--amber-ink); }
.vote-list .avatar.tb .icon { width: 16px; height: 16px; }
.vote-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 7px; }
.vote-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--tone-wash); color: var(--tone); font-size: 13px; font-weight: 600; }
.vote-chip .icon { width: 15px; height: 15px; }
@media (max-width: 760px) {
  .vote-tiles { grid-template-columns: 1fr; gap: 8px; }
  .vote-tile { padding: 12px 44px 12px 12px; }
  .vote-foot .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .vote-tile, .vote-tile-check { transition: none; }
}
