.admin-body { min-height: 100vh; background: #eef2f3; }
.admin-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px max(22px, calc((100vw - 1280px) / 2)); color: white; background: var(--navy-950); border-bottom: 1px solid rgba(255,255,255,.12); }
.admin-header-actions { display: flex; align-items: center; gap: 15px; color: rgba(255,255,255,.76); font-size: 11px; font-weight: 750; }
.admin-header-actions a { text-decoration: none; }
.admin-header-actions a:hover { color: var(--gold-300); }
.admin-header-actions button { padding: 7px 10px; color: white; background: transparent; border: 1px solid rgba(255,255,255,.26); border-radius: 6px; cursor: pointer; }
.admin-wrap { width: min(1280px, calc(100vw - 44px)); margin-inline: auto; }
.sign-in-view { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 35px 18px; background: radial-gradient(circle at 72% 20%, rgba(21,80,109,.22), transparent 32%), linear-gradient(135deg,#e8edef,#f8f8f5); }
.sign-in-card { width: min(540px,100%); padding: 46px; background: white; border-top: 5px solid var(--gold-500); border-radius: 18px; box-shadow: 0 28px 70px rgba(6,29,44,.18); }
.sign-in-emblem { width: 122px; height: 122px; display: grid; place-items: center; margin: -5px auto 24px; }
.sign-in-card h1 { margin: 0; color: var(--navy-900); font-family: Georgia,serif; font-size: 46px; line-height: 1.03; text-align: center; }
.sign-in-card > .eyebrow { text-align: center; }
.sign-in-card > p:not(.eyebrow):not(.sign-in-error) { color: var(--slate-600); font-size: 13px; text-align: center; }
.windows-button { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; margin: 27px 0 18px; padding: 15px 17px; color: white; background: var(--navy-900); border-radius: 9px; text-decoration: none; box-shadow: var(--shadow-sm); }
.windows-button > span:first-child { font-size: 24px; }
.windows-button strong, .windows-button small { display: block; }
.windows-button strong { font-size: 13px; }
.windows-button small { margin-top: 2px; color: rgba(255,255,255,.64); font-size: 9px; }
.windows-button:hover { background: var(--navy-800); }
.security-summary { display: flex; gap: 10px; padding: 14px; color: var(--slate-600); background: var(--slate-100); border-radius: 8px; }
.security-summary span { color: var(--success); }
.security-summary p { margin: 0; font-size: 10px; }
.sign-in-error { padding: 11px; color: #831b1b; background: #fff0f0; border: 1px solid #e4b2b2; border-radius: 7px; font-size: 11px; text-align: center; }
.admin-hero { padding-block: 50px 74px; color: white; background: linear-gradient(120deg,var(--navy-950),var(--navy-800)); }
.admin-hero-layout { display: grid; grid-template-columns: 1fr 310px; align-items: end; gap: 50px; }
.admin-hero h1 { margin: 0; font-family: Georgia,serif; font-size: clamp(46px,5vw,70px); line-height: 1; letter-spacing: -.04em; }
.admin-hero p { margin: 11px 0 0; color: rgba(255,255,255,.7); }
.event-control { padding: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-top: 3px solid var(--gold-500); border-radius: 10px; }
.event-control span { display: block; color: var(--gold-300); font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.event-control strong { display: block; margin-top: 5px; font-family: Georgia,serif; font-size: 24px; }
.event-control p { margin: 6px 0 13px; font-size: 10px; }
.event-control button { padding: 0; color: var(--gold-300); background: none; border: 0; font-size: 10px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.admin-content { position: relative; margin-top: -39px; padding-bottom: 80px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.metric-grid article { padding: 20px; background: white; border-top: 3px solid var(--gold-500); border-radius: 10px; box-shadow: var(--shadow-sm); }
.metric-grid span, .metric-grid small { display: block; }
.metric-grid span { color: var(--slate-600); font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.metric-grid strong { display: block; margin: 5px 0 3px; color: var(--navy-900); font-family: Georgia,serif; font-size: 34px; }
.metric-grid small { color: var(--slate-600); font-size: 9px; }
.workspace-card { margin-top: 22px; padding: 28px; background: white; border-radius: 13px; box-shadow: var(--shadow-sm); }
.workspace-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; }
.workspace-header .eyebrow { margin-bottom: 6px; }
.workspace-header h2 { margin: 0; color: var(--navy-900); font-family: Georgia,serif; font-size: 34px; }
.workspace-header p:not(.eyebrow) { margin: 4px 0 0; color: var(--slate-600); font-size: 10px; }
.export-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.export-actions button { padding: 9px 11px; color: var(--navy-900); background: white; border: 1px solid var(--slate-300); border-radius: 7px; font-size: 9px; font-weight: 850; cursor: pointer; }
.export-actions button:hover { border-color: var(--navy-700); background: var(--slate-100); }
.export-actions .sensitive-button { color: #8b2020; border-color: #d9aaaa; background: #fff5f5; }
.toolbar { display: grid; grid-template-columns: 1fr 180px 260px; gap: 10px; margin: 25px 0 16px; padding: 12px; background: var(--slate-100); border-radius: 8px; }
.toolbar label { color: var(--slate-600); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.toolbar input, .toolbar select { width: 100%; min-height: 38px; display: block; margin-top: 3px; padding: 8px 9px; color: var(--slate-900); background: white; border: 1px solid var(--slate-300); border-radius: 6px; font-size: 10px; letter-spacing: 0; text-transform: none; }
.search-field { position: relative; }
.search-field > span[aria-hidden] { position: absolute; left: 11px; bottom: 8px; color: var(--slate-600); font-size: 17px; }
.search-field input { padding-left: 33px; }
.table-shell { overflow-x: auto; border: 1px solid var(--slate-200); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 10px; }
th { padding: 10px 12px; color: var(--slate-600); background: #f6f8f9; border-bottom: 1px solid var(--slate-200); font-size: 8px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { padding: 13px 12px; border-bottom: 1px solid var(--slate-200); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfc; }
.attendee-cell strong, .attendee-cell small, .contact-cell span { display: block; }
.attendee-cell strong { color: var(--navy-900); font-size: 11px; }
.attendee-cell small { margin-top: 2px; color: var(--slate-600); font-family: ui-monospace,Consolas,monospace; font-size: 8px; }
.contact-cell span { color: var(--slate-600); }
.org-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.org-tag { padding: 3px 5px; color: var(--navy-700); background: #eef5f8; border-radius: 4px; font-size: 8px; }
.status-badge { display: inline-flex; padding: 4px 7px; color: #6b4c00; background: #fff3cc; border-radius: 999px; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.status-badge.confirmed { color: #135f3d; background: #e3f4eb; }
.status-badge.declined,.status-badge.withdrawn { color: #802121; background: #fdeaea; }
.status-badge.waitlisted { color: #174f76; background: #e5f1fa; }
.review-dot { display: inline-block; width: 7px; height: 7px; margin-left: 5px; background: var(--orange-500); border-radius: 50%; }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.row-actions button { padding: 6px 8px; color: var(--navy-700); background: white; border: 1px solid var(--slate-300); border-radius: 5px; font-size: 8px; font-weight: 800; cursor: pointer; }
.table-loading { padding: 55px; color: var(--slate-600); text-align: center; }
.mobile-roster { display: none; }
.roster-footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 12px; color: var(--slate-600); font-size: 8px; }
.record-dialog,.action-dialog { width: min(720px,calc(100vw - 28px)); max-height: 88vh; padding: 0; background: white; border: 0; border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.34); }
.record-dialog::backdrop,.action-dialog::backdrop { background: rgba(6,29,44,.7); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; z-index: 2; right: 14px; top: 12px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--slate-600); background: var(--slate-100); border: 0; border-radius: 50%; font-size: 21px; cursor: pointer; }
#record-detail { padding: 34px; }
.detail-header { padding-right: 45px; }
.detail-header h2 { margin: 0; color: var(--navy-900); font-family: Georgia,serif; font-size: 34px; }
.detail-header p { margin: 4px 0 0; color: var(--slate-600); font-family: ui-monospace,Consolas,monospace; font-size: 10px; }
.sensitive-banner { margin: 20px 0; padding: 10px 13px; color: #772121; background: #fff1f1; border-left: 4px solid #ad2b2b; font-size: 9px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--slate-200); border: 1px solid var(--slate-200); }
.detail-grid div { padding: 13px; background: white; }
.detail-grid dt { color: var(--slate-600); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.detail-grid dd { margin: 4px 0 0; font-size: 11px; }
.detail-section { margin-top: 22px; }
.detail-section h3 { margin: 0 0 8px; color: var(--navy-900); font-family: Georgia,serif; font-size: 17px; }
.detail-section ul { margin: 0; padding-left: 18px; font-size: 10px; }
.detail-section li { overflow-wrap: anywhere; }
.status-control { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--slate-200); }
.status-control select { min-height: 39px; padding: 7px; border: 1px solid var(--slate-300); border-radius: 6px; }
.status-control button { padding: 8px 15px; color: white; background: var(--navy-900); border: 0; border-radius: 6px; font-weight: 800; cursor: pointer; }
.action-dialog form { padding: 30px; }
.dialog-heading h2 { margin: 0; color: var(--navy-900); font-family: Georgia,serif; font-size: 30px; }
.dialog-heading > p:not(.eyebrow),.action-dialog form > p { color: var(--slate-600); font-size: 10px; }
.dialog-options { display: grid; gap: 7px; margin-top: 20px; }
.dialog-options label { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: 7px; font-size: 11px; cursor: pointer; }
.dialog-options input { width: 17px; height: 17px; accent-color: var(--navy-700); }
.dialog-options span { display: grid; gap: 2px; }
.dialog-options small { color: var(--slate-600); font-size: 10px; text-transform: capitalize; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.dialog-actions button { padding: 9px 13px; color: var(--navy-900); background: white; border: 1px solid var(--slate-300); border-radius: 6px; font-size: 10px; font-weight: 800; cursor: pointer; }
.dialog-actions button:disabled { opacity: .45; cursor: not-allowed; }
.dialog-actions .primary { color: white; background: var(--navy-900); border-color: var(--navy-900); }
.dialog-actions .danger { background: #9b2727; border-color: #9b2727; }
.sensitive-heading { display: flex; gap: 13px; }
.sensitive-heading .eyebrow { color: #a22b2b; margin-bottom: 3px; }
.sensitive-mark { width: 40px; height: 40px; display: grid; flex: none; place-items: center; color: white; background: #a22b2b; border-radius: 50%; font-weight: 900; }
.action-dialog label { display: block; margin-top: 13px; font-size: 10px; font-weight: 800; }
.action-dialog input,.action-dialog select { width: 100%; min-height: 42px; display: block; margin-top: 5px; padding: 8px 10px; border: 1px solid var(--slate-300); border-radius: 6px; }
.action-dialog .consent-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 12px; font-weight: 650; }
.action-dialog .consent-check input { width: 18px; min-height: 18px; height: 18px; flex: none; margin: 1px 0 0; padding: 0; }
.reauth-note { padding: 9px; background: #fff6dc; border-radius: 6px; }
.dialog-error { padding: 9px; color: #7c1919 !important; background: #fff0f0; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.policy-body { background: #eef2f3; }
.policy-main { padding: 70px 20px; }
.policy-main article { width: min(820px,100%); margin: auto; padding: 50px; background: white; border-top: 5px solid var(--gold-500); border-radius: 14px; box-shadow: var(--shadow-sm); }
.policy-main h1 { margin: 0 0 20px; color: var(--navy-900); font-family: Georgia,serif; font-size: clamp(42px,6vw,64px); line-height: 1; }
.policy-main h2 { margin: 34px 0 8px; color: var(--navy-900); font-family: Georgia,serif; font-size: 23px; }
.policy-main p,.policy-main li { color: var(--slate-700); font-size: 13px; }
.policy-main .policy-lead { font-size: 17px; }
.policy-main .button { margin-top: 25px; }
@media (max-width:900px) {
  .admin-hero-layout { grid-template-columns: 1fr; }
  .event-control { max-width: 400px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .workspace-header { align-items: flex-start; flex-direction: column; }
  .export-actions { justify-content: flex-start; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1/-1; }
}
@media (max-width:680px) {
  .admin-header { min-height: 66px; padding: 10px 12px; }
  .admin-header-actions a { display: none; }
  .admin-wrap { width: calc(100vw - 24px); }
  .sign-in-card { padding: 30px 22px; }
  .sign-in-card h1 { font-size: 38px; }
  .admin-hero { padding-block: 38px 63px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .metric-grid article { padding: 15px; }
  .workspace-card { padding: 18px 12px; }
  .toolbar { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .table-shell { display: none; }
  .mobile-roster { display: grid; gap: 9px; }
  .mobile-record { padding: 14px; background: #f8fafb; border: 1px solid var(--slate-200); border-radius: 8px; }
  .mobile-record-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
  .mobile-record h3 { margin: 0; color: var(--navy-900); font-size: 13px; }
  .mobile-record p { margin: 6px 0; color: var(--slate-600); font-size: 13px; }
  .mobile-record button { min-height: 44px; margin-top: 9px; padding: 10px 12px; color: var(--navy-700); background: white; border: 1px solid #6f818c; border-radius: 6px; font-size: 12px; font-weight: 800; }
  .roster-footer { flex-direction: column; }
  #record-detail,.action-dialog form { padding: 24px 18px; }
  .dialog-actions { align-items: stretch; flex-direction: column; }
  .dialog-actions button { min-height: 44px; font-size: 12px; }
  .detail-grid { grid-template-columns: 1fr; }
  .policy-main { padding: 35px 12px; }
  .policy-main article { padding: 30px 20px; }
}
