.admin-body { min-height: 100vh; background: #f3f7fb; }
.admin-shell { width: min(1380px, calc(100vw - 40px)); margin-inline: auto; }
.admin-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); border-bottom: 1px solid #dce5f0; }
.admin-header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-header-actions { display: flex; gap: 9px; }
.admin-logout { color: #9b3440; background: #fff1f3; border: 0; }
.admin-main { padding: 54px 0 80px; }
.login-wrap { min-height: calc(100vh - 180px); display: grid; place-items: center; }
.login-card { width: min(460px, 100%); padding: 38px; border-radius: 28px; background: #fff; box-shadow: 0 28px 80px rgba(24,54,93,.14), inset 0 0 0 1px rgba(116,142,181,.12); }
.login-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #2166c9, #6b5bd6); font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.login-card h1 { margin: 8px 0 8px; font-size: 36px; letter-spacing: -.04em; }
.login-card > p:not(.eyebrow) { margin: 0 0 24px; color: #6f7b94; }
.login-card form { display: grid; gap: 16px; }
.login-card form .button { width: 100%; }
.login-card > small { display: block; margin-top: 20px; color: #7b879e; line-height: 1.65; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.dashboard-heading h1 { margin: 6px 0; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.045em; }
.dashboard-heading > div > p:last-child { margin: 0; color: #6f7b94; }
.health-chip { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 999px; color: #2c6567; background: #e9f8f6; font-size: 12px; font-weight: 750; }
.health-chip span { width: 8px; height: 8px; border-radius: 50%; background: #44b9be; box-shadow: 0 0 0 4px rgba(68,185,190,.15); }
.health-chip.error { color: #9b3440; background: #fff0f2; }
.health-chip.error span { background: #d95362; box-shadow: 0 0 0 4px rgba(217,83,98,.12); }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.summary-grid article { min-height: 154px; padding: 24px; border-radius: 22px; background: #fff; box-shadow: 0 10px 32px rgba(27,54,90,.07), inset 0 0 0 1px rgba(128,151,184,.12); }
.summary-grid small, .summary-grid span, .summary-grid strong { display: block; }
.summary-grid small { color: #63708b; font-size: 12px; }
.summary-grid strong { margin: 13px 0 7px; color: #173c87; font-size: 38px; line-height: 1; }
.summary-grid span { color: #9099ab; font-size: 10px; }
.dashboard-card { border-radius: 24px; background: #fff; box-shadow: 0 15px 45px rgba(27,54,90,.08), inset 0 0 0 1px rgba(128,151,184,.12); overflow: hidden; }
.dashboard-toolbar { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 18px; border-bottom: 1px solid #e1e8f1; }
.data-tabs { display: flex; gap: 8px; }
.data-tab { border: 0; border-radius: 12px; padding: 10px 15px; color: #59657e; background: #f4f7fa; font-weight: 760; }
.data-tab.active { color: #fff; background: linear-gradient(135deg, #2166c9, #6b5bd6); box-shadow: 0 8px 20px rgba(49,84,178,.18); }
.toolbar-actions { display: flex; gap: 8px; align-items: center; }
.search-field input { width: min(340px, 32vw); min-height: 40px; border: 1px solid #d7e0eb; border-radius: 12px; padding: 9px 12px; background: #fbfdff; }
.table-status { padding: 12px 18px; color: #6f7b94; background: #f8fafc; font-size: 11px; border-bottom: 1px solid #e6edf4; }
.table-wrap { overflow: auto; max-height: 680px; }
table { width: 100%; border-collapse: collapse; min-width: 1050px; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid #edf1f5; vertical-align: top; }
th { position: sticky; top: 0; z-index: 2; color: #57627a; background: #fbfcfe; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
td { color: #34405b; font-size: 12px; }
tbody tr:hover { background: #f8fbfe; }
.cell-main { display: block; max-width: 300px; font-weight: 760; color: #182748; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-sub { display: block; margin-top: 3px; color: #8791a4; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.status-pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #245b64; background: #e8f7f5; font-size: 10px; font-weight: 800; }
.status-pill.rejected, .status-pill.cancelled { color: #9b3440; background: #fff0f2; }
.status-pill.oral, .status-pill.accepted, .status-pill.confirmed { color: #174e9d; background: #edf4ff; }
.status-pill.poster, .status-pill.waitlist, .status-pill.revise { color: #795a22; background: #fff7e7; }
.table-button { border: 0; border-radius: 9px; padding: 7px 10px; color: #174e9d; background: #eef5ff; font-size: 10px; font-weight: 760; }
.table-button:hover { background: #e0edff; }
.empty-row td { padding: 50px 20px; text-align: center; color: #8791a4; }
.record-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: start center; padding: 20px; overflow-y: auto; }
[hidden] { display: none !important; }
.record-backdrop { position: fixed; inset: 0; background: rgba(7,18,39,.65); backdrop-filter: blur(7px); }
.record-panel { position: relative; width: min(900px, 100%); margin: 25px auto; padding: 34px; border-radius: 28px; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.3); }
.record-panel h2 { margin: 7px 48px 6px 0; font-size: 30px; letter-spacing: -.035em; }
.record-meta { color: #79849a; font-size: 11px; }
.record-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.record-field { padding: 14px; border-radius: 14px; background: #f6f9fc; }
.record-field.wide { grid-column: 1 / -1; }
.record-field small, .record-field strong, .record-field p { display: block; }
.record-field small { color: #7b879d; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.record-field strong { margin-top: 4px; color: #1d2c4c; font-size: 13px; word-break: break-word; }
.record-field p { margin: 8px 0 0; color: #40506e; white-space: pre-wrap; font-size: 12px; }
.record-actions { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 10px; align-items: end; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e1e8f1; }
.record-actions .field textarea { min-height: 82px; }
.record-message { min-height: 20px; margin-top: 10px; color: #2166c9; font-size: 11px; }
@media (max-width: 900px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-toolbar, .dashboard-heading { align-items: stretch; flex-direction: column; }
  .toolbar-actions { flex-wrap: wrap; }
  .search-field { flex: 1 1 100%; }
  .search-field input { width: 100%; }
}
@media (max-width: 620px) {
  .admin-shell { width: min(100% - 24px, 1380px); }
  .admin-header .brand small, .admin-header-actions .button-secondary { display: none; }
  .admin-main { padding-top: 28px; }
  .login-card { padding: 26px 20px; }
  .summary-grid { grid-template-columns: 1fr; }
  .data-tabs { width: 100%; }
  .data-tab { flex: 1; }
  .record-panel { padding: 24px 18px; }
  .record-grid, .record-actions { grid-template-columns: 1fr; }
  .record-field.wide { grid-column: auto; }
}

/* ============================================================
   "Dawn over the Bund" cohesion overrides — harmonise the
   organiser dashboard with the public site's dawn palette.
   Semantic status colours (success / warning / danger) are kept.
   ============================================================ */
.admin-body { background: transparent; }
.admin-header { background: linear-gradient(180deg, rgba(253,246,238,.86), rgba(253,246,238,.6)); border-bottom-color: rgba(255,255,255,.6); }
.login-card, .summary-grid article, .dashboard-card, .record-panel {
  background: var(--glass); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.62), var(--shadow-soft);
}
.login-icon { background: linear-gradient(135deg, var(--royal), var(--violet) 60%, var(--coral)); font-family: var(--font-display); }
.summary-grid strong { color: var(--royal); font-family: var(--font-display); font-optical-sizing: auto; font-weight: 500; }
.data-tab { background: rgba(255,255,255,.5); color: var(--ink-2); }
.data-tab.active { color: #fff; background: linear-gradient(135deg, var(--royal), var(--violet)); box-shadow: 0 10px 22px -10px rgba(125,91,208,.6); }
.cell-main { color: var(--ink); }
.status-pill.oral, .status-pill.accepted, .status-pill.confirmed { color: var(--royal); background: rgba(35,64,154,.1); }
.table-button { color: var(--royal); background: rgba(125,91,208,.12); }
.table-button:hover { background: rgba(125,91,208,.22); }
.record-message { color: var(--violet); }
.record-field { background: rgba(255,255,255,.5); }
.search-field input, .record-actions .field textarea { background: rgba(255,255,255,.7); border-color: rgba(125,91,208,.24); }
