/**
 * Light read-only admin (Plan Task 4.2) — Rails-specific surfaces not present
 * in the original app's admin.html. Uses the brand CSS variables so the roster
 * and per-user view sit inside the existing visual language.
 */

.admin-page {
  padding: 2rem 0;
}

/* Brand section header — mirrors the current app's .section-header so this admin
   surface uses the same heading language as the original dashboards. Rules are
   copied verbatim from public/css/modules/superadmin.css; they live here (rather
   than relying on superadmin.css) because that file is not in the layout's
   stylesheet bundle. */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: calc(1.125rem + var(--text-bump));
  font-weight: 500;
  color: var(--text-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-header h2 i {
  color: var(--teal-accent);
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-page-subtitle {
  color: var(--text-muted);
  font-size: calc(0.9rem + var(--text-bump));
  margin: 0 0 1.5rem 0;
}

.admin-back-link {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--teal-accent);
  text-decoration: none;
  font-size: calc(0.85rem + var(--text-bump));
}

.admin-table-wrap {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.admin-table thead th {
  font-size: calc(0.75rem + var(--text-bump));
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-secondary);
}

/* Clickable, sortable column headers. */
.roster-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.12s ease;
}

.roster-sort:hover { color: var(--teal-dark); }
.roster-sort--active { color: var(--teal-accent); }
.roster-sort-arrow { font-size: 0.85em; line-height: 1; }
.admin-table-num .roster-sort { flex-direction: row-reverse; }

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table-num {
  text-align: right;
}

/* Right-aligned action cell. Keep it a real table cell — never display:flex on a
   <td> (that drops it out of the table's column layout). button_to renders a
   block <form>, so make the inner actions inline-block to sit side by side. */
.admin-table-actions {
  text-align: right;
  white-space: nowrap;
}

.admin-table-actions > a,
.admin-table-actions > form {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

.admin-table-actions > * + * {
  margin-left: 0.4rem;
}

.admin-user-name {
  font-weight: 600;
  color: var(--text-dark);
}

.admin-user-email {
  font-size: calc(0.8rem + var(--text-bump));
  color: var(--text-muted);
}

.admin-user-completion {
  font-weight: 600;
  color: var(--teal-accent);
}

.admin-user-last-active {
  color: var(--text-secondary);
  font-size: calc(0.85rem + var(--text-bump));
}

/* ── Per-user read-only view ─────────────────────────────────────────────── */

.admin-user-show .admin-page-subtitle {
  margin-bottom: 0;
}

.admin-user-modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-user-module {
  display: block;
  height: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1rem;
}

.admin-user-module-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.admin-user-module-head i {
  color: var(--teal-accent);
}

.admin-user-module-title {
  font-weight: 600;
  color: var(--text-dark);
}

.admin-user-module-percent {
  margin-left: auto;
  font-size: calc(0.85rem + var(--text-bump));
  color: var(--text-muted);
}

.admin-user-module-bar {
  display: block;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 999px;
  overflow: hidden;
}

.admin-user-module-bar-fill {
  display: block; /* it's a <span> with an inline width:%; needs block to render */
  height: 100%;
  background: var(--teal-accent);
  border-radius: 999px;
}

/* Coaching: each module tile is a button_to (impersonate + jump to that
   module), so Rails wraps it in a <form><button>. Strip the default form/button
   chrome so only the .admin-user-module card shows — otherwise the native
   button border/background renders as stray artifacts over each tile. */
.admin-user-module-form {
  margin: 0;
}

.admin-user-module-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.admin-user-module-link .admin-user-module {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-user-module-link:hover .admin-user-module {
  border-color: var(--teal-accent);
  box-shadow: 0 1px 3px rgba(15, 26, 46, 0.06);
}

/* ── Coaching: participant overview header ───────────────────────────────── */
.participant-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1rem;
}

.participant-identity { display: flex; align-items: center; gap: 0.85rem; }

.participant-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-accent);
  font-size: 1.3rem;
  flex: 0 0 auto;
}

.participant-name {
  font-family: var(--font-heading);
  font-size: calc(1.5rem + var(--text-bump));
  font-weight: 500;
  color: var(--charcoal);
  margin: 0;
  line-height: 1.1;
}

.participant-email {
  color: var(--text-muted);
  font-size: calc(0.85rem + var(--text-bump));
  margin: 0.15rem 0 0;
}

.participant-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  color: var(--text-muted);
  font-size: calc(0.85rem + var(--text-bump));
}

.participant-meta-dot { opacity: 0.4; }
.participant-meta-stat strong { color: var(--charcoal); }

/* Cohort as a quiet, editable chip — it's set once, so it stays out of the way. */
.cohort-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid rgba(72, 156, 184, 0.25);
  font-size: calc(0.78rem + var(--text-bump));
  font-weight: 600;
  line-height: 1.2;
}

.cohort-chip i.bi-collection { font-size: 0.85em; opacity: 0.8; }

.cohort-chip--empty {
  background: var(--gray-200);
  color: var(--text-muted);
  border-color: var(--border-light);
}

.cohort-chip-pencil { font-size: 0.7em; opacity: 0.55; margin-left: 0.1rem; }

.cohort-edit { position: relative; }
summary.cohort-chip { cursor: pointer; list-style: none; }
summary.cohort-chip::-webkit-details-marker { display: none; }
.cohort-edit[open] summary.cohort-chip { border-color: var(--teal-accent); }

.cohort-edit-pop {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 30;
  min-width: 240px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: var(--shadow-md, 0 2px 10px rgba(0, 0, 0, 0.1));
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cohort-edit-form { display: flex; align-items: center; gap: 0.4rem; }
.cohort-edit-manage { font-size: calc(0.8rem + var(--text-bump)); color: var(--teal-accent); text-decoration: none; }
.cohort-edit-manage:hover { text-decoration: underline; }

/* Cohort name inputs (cohorts index create/rename forms). */
.coaching-cohort-input {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font: inherit;
  font-size: calc(0.9rem + var(--text-bump));
  background: var(--bg-primary);
  color: var(--text-dark);
  min-width: 200px;
}

.coaching-cohort-input:focus {
  outline: none;
  border-color: var(--teal-accent);
  box-shadow: 0 0 0 3px rgba(72, 156, 184, 0.12);
}

/* ── Coaching: AI session-prep card ──────────────────────────────────────── */
.prep-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.05));
  margin: 1.5rem 0 2rem;
}

.prep-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-light);
}

.prep-card-title {
  font-family: var(--font-heading);
  font-size: calc(1.15rem + var(--text-bump));
  font-weight: 500;
  color: var(--charcoal);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prep-card-title i { color: var(--teal-accent); }

.prep-card-meta {
  margin: 1.1rem 0 0;
  font-size: calc(0.72rem + var(--text-bump));
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prep-card-error {
  margin: 0 0 0.85rem;
  color: var(--gold-dark);
  font-size: calc(0.85rem + var(--text-bump));
}

/* Previous preps — kept as history, tucked into a disclosure. */
.prep-history {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-light);
}

.prep-history-summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: calc(0.82rem + var(--text-bump));
  font-weight: 600;
  color: var(--teal-dark);
}

.prep-history-summary::-webkit-details-marker { display: none; }
.prep-history-summary::before {
  content: "\F285"; /* bi-chevron-right */
  font-family: "bootstrap-icons";
  font-size: 0.75em;
  transition: transform 0.15s ease;
}
.prep-history[open] > .prep-history-summary::before { transform: rotate(90deg); }

/* A light, scrollable list of dated rows; each opens that prep in the modal —
   stays tidy whether there are 2 or 200. */
.prep-history-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  max-height: 16rem;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.prep-history-list li + li { border-top: 1px solid var(--border-light); }

.prep-history-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  color: var(--text-dark);
  text-decoration: none;
  font-size: calc(0.85rem + var(--text-bump));
  transition: background 0.12s ease;
}

.prep-history-link:hover { background: var(--bg-secondary); color: var(--teal-dark); }
.prep-history-link i { color: var(--text-muted); font-size: 0.8em; }

.prep-card-empty { text-align: center; padding: 1.5rem 1rem; color: var(--text-muted); }
.prep-card-empty i { display: block; font-size: 1.6rem; color: var(--teal-accent); margin-bottom: 0.5rem; }
.prep-card-empty p { margin: 0; }

/* Rendered markdown briefing — reads like an editorial coach's note. */
.markdown-note {
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: calc(0.95rem + var(--text-bump));
  line-height: 1.65;
}
.markdown-note > *:first-child { margin-top: 0; }
.markdown-note > *:last-child { margin-bottom: 0; }
.markdown-note h1 {
  font-family: var(--font-heading);
  font-size: calc(1.2rem + var(--text-bump));
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 0.85rem;
}
.markdown-note h2 {
  font-family: var(--font-heading);
  font-size: calc(1.02rem + var(--text-bump));
  font-weight: 500;
  color: var(--teal-dark);
  margin: 1.5rem 0 0.5rem;
}
.markdown-note h3 {
  font-size: calc(0.8rem + var(--text-bump));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 1.3rem 0 0.4rem;
}
.markdown-note p { margin: 0 0 0.85rem; }
.markdown-note ul, .markdown-note ol { margin: 0 0 0.95rem; padding-left: 1.3rem; }
.markdown-note li { margin-bottom: 0.35rem; }
.markdown-note li::marker { color: var(--teal-accent); }
.markdown-note strong { color: var(--charcoal); font-weight: 700; }
.markdown-note em { color: var(--gray-700); }
.markdown-note a { color: var(--teal-accent); }
.markdown-note blockquote {
  margin: 0 0 0.95rem;
  padding: 0.3rem 0 0.3rem 1rem;
  border-left: 3px solid var(--teal-accent);
  color: var(--text-muted);
}
.markdown-note hr { border: 0; border-top: 1px solid var(--border-light); margin: 1.3rem 0; }
.markdown-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--gray-200);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

/* ── Coaching: statements (consolidated + per-module drill-in) ───────────── */
.section-header--sub {
  margin-top: 2rem;
  margin-bottom: 0.25rem;
}

.admin-subhead {
  font-family: var(--font-heading);
  font-size: calc(1rem + var(--text-bump));
  font-weight: 500;
  color: var(--text-dark);
  margin: 0;
}

.admin-hint {
  color: var(--text-muted);
  font-size: calc(0.85rem + var(--text-bump));
  margin: 0 0 1rem;
}

.statement-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.statement-card {
  display: block;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.statement-card:hover {
  border-color: var(--teal-accent);
  box-shadow: 0 1px 3px rgba(15, 26, 46, 0.06);
}

.statement-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.statement-card-head i { color: var(--teal-accent); }
.statement-card-title { font-weight: 600; color: var(--text-dark); }
.statement-card-percent { margin-left: auto; font-size: calc(0.85rem + var(--text-bump)); color: var(--text-muted); }

.statement-card-preview {
  margin: 0;
  color: var(--text-secondary);
  font-size: calc(0.88rem + var(--text-bump));
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.statement-card-empty,
.statement-section-empty {
  color: var(--text-muted);
  font-style: italic;
}

/* Statement drill-in as a modal card (hosted in the app's <dialog>). */
.statement-modal {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  background: var(--bg-primary);
  border-radius: 14px;
  box-shadow: var(--shadow-lg, 0 10px 30px rgba(0, 0, 0, 0.15));
  overflow: hidden;
}

/* Standalone (direct-URL) render: center the card on the page. */
.interview-standalone .statement-modal {
  max-width: 760px;
  margin: 2rem auto;
}

.statement-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.statement-modal-title {
  font-family: var(--font-heading);
  font-size: calc(1.2rem + var(--text-bump));
  font-weight: 500;
  color: var(--charcoal);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.statement-modal-title i { color: var(--teal-accent); }

.statement-modal-sub {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: calc(0.82rem + var(--text-bump));
}

.statement-modal-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.statement-modal-close:hover { background: var(--gray-200); color: var(--charcoal); }

.statement-modal-body { padding: 0.75rem 1.5rem 1.5rem; overflow-y: auto; }

.statement-modal-foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
}

.statement-sections {
  margin-top: 1.25rem;
  max-width: 760px;
}

.statement-modal-body .statement-sections { margin-top: 0.5rem; max-width: none; }

.statement-section {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.statement-section:last-child { border-bottom: none; }

.statement-section-label {
  font-family: var(--font-heading);
  font-size: calc(0.95rem + var(--text-bump));
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.5rem;
}

.statement-section-body {
  color: var(--text-secondary);
  font-size: calc(0.95rem + var(--text-bump));
  line-height: 1.6;
}

.statement-section-body p { margin: 0 0 0.6rem; }
.statement-section-body p:last-child { margin-bottom: 0; }

.statement-section-empty { margin: 0; }

/* ── Coaching: cohort management ─────────────────────────────────────────── */
.cohort-create-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.cohort-rename-form {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.cohort-assign-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.4rem;
  margin: 0.5rem 0 1rem;
}

.cohort-assign-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-primary);
  cursor: pointer;
}

.cohort-assign-row .admin-user-email {
  font-size: calc(0.78rem + var(--text-bump));
}

/* ── Impersonation banner ────────────────────────────────────────────────── */

.impersonation-banner {
  background: #8a2b2b;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1100;
}

.impersonation-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: calc(0.85rem + var(--text-bump));
}

.impersonation-banner-inner .btn-stop-impersonating {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  font-size: calc(0.8rem + var(--text-bump));
  cursor: pointer;
}

.impersonation-banner-inner .btn-stop-impersonating:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== ROSTER: KPIs, search/filter toolbar, completion bars ===== */
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.admin-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  background: var(--bg-primary, #fff);
  border: 1px solid var(--border-light, rgba(0, 0, 0, 0.08));
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 26, 46, 0.04);
}

.admin-kpi-value {
  font-family: var(--font-heading);
  font-size: calc(1.6rem + var(--text-bump));
  font-weight: 600;
  color: var(--navy-primary, #1a2b4a);
  line-height: 1.1;
}

.admin-kpi-label {
  font-size: calc(0.78rem + var(--text-bump));
  color: var(--text-muted, #718096);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-roster-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.admin-roster-search {
  position: relative;
  flex: 1 1 240px;
  min-width: 200px;
}

.admin-roster-search i {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #718096);
  pointer-events: none;
}

.admin-roster-search input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border: 1px solid var(--border-light, rgba(0, 0, 0, 0.12));
  border-radius: 8px;
  font: inherit;
  font-size: calc(0.9rem + var(--text-bump));
  background: var(--bg-primary, #fff);
}

.admin-roster-search input:focus {
  outline: none;
  border-color: var(--teal-accent);
  box-shadow: 0 0 0 3px rgba(74, 155, 181, 0.12);
}

.admin-roster-select {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border-light, rgba(0, 0, 0, 0.12));
  border-radius: 8px;
  font: inherit;
  font-size: calc(0.88rem + var(--text-bump));
  background: var(--bg-primary, #fff);
  color: var(--text-dark, #1a2b4a);
  cursor: pointer;
}

.admin-roster-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted, #718096);
  font-style: italic;
}

.admin-completion {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

.admin-completion-bar {
  flex: 0 0 70px;
  height: 6px;
  background: var(--bg-secondary, #edf1f5);
  border-radius: 999px;
  overflow: hidden;
}

.admin-completion-bar span {
  display: block;
  height: 100%;
  background: var(--teal-accent);
  border-radius: 999px;
}

.admin-row--inactive {
  background: rgba(0, 0, 0, 0.015);
}

.admin-user-last-active.is-inactive {
  color: var(--gold, #d4a55c);
}

/* ── Admin shell: master/detail layout ───────────────────────────────────────
   A persistent left "master" nav (sections, role-scoped) beside the section's
   "detail" content. Sits inside the existing app chrome via a layout partial. */
.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
}

.admin-shell-nav {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--bg-secondary, #f6f8fa);
  border: 1px solid var(--border-light, #e5e5e5);
  border-radius: var(--radius-lg, 12px);
}

.admin-shell-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.5rem 0.5rem;
}

.admin-shell-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md, 8px);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease;
}
.admin-shell-link:hover { background: var(--teal-light, #e8f4f8); color: var(--navy-primary); }
.admin-shell-link.is-active { background: var(--navy-primary, #1a2b4a); color: #fff; }
.admin-shell-link i { font-size: 1.05rem; }

/* The detail column owns its own padding via .admin-page; reset the shell's. */
.admin-shell-detail { min-width: 0; }
.admin-shell-detail .admin-page { padding-top: 0; }

/* Dashboard */
.admin-dashboard-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.admin-dashboard-card {
  padding: 1.25rem 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-light, #e5e5e5);
  border-radius: var(--radius-lg, 12px);
}
.admin-dashboard-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--navy-primary);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-recent-list { list-style: none; margin: 0; padding: 0; }
.admin-recent-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light, #eee);
}
.admin-recent-item:last-child { border-bottom: 0; }
.admin-recent-name { color: var(--text-dark); font-weight: 500; }
.admin-recent-when { color: var(--text-muted); font-size: 0.85rem; }
.admin-empty { color: var(--text-muted); }

.admin-quicklinks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.admin-quicklink {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem;
  border: 1px solid var(--border-light, #e5e5e5);
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  color: var(--navy-primary);
  background: var(--bg-secondary, #f6f8fa);
  transition: background 0.12s ease, transform 0.12s ease;
}
.admin-quicklink:hover { background: var(--teal-light, #e8f4f8); transform: translateY(-1px); }
.admin-quicklink i { font-size: 1.5rem; color: var(--teal-accent); }
.admin-quicklink span { font-size: 0.85rem; font-weight: 500; }

@media (max-width: 768px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-shell-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .admin-dashboard-cols, .admin-quicklinks { grid-template-columns: 1fr; }
}
