.admin { background: #F3F3F1; color: var(--ink); min-height: 100vh; }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--navy); }
.login-card { background: var(--paper); border-radius: 8px; padding: 32px 28px; width: min(400px, 100%); }
.login-logo { width: 190px; display: block; margin: 0 auto 18px; }
.login-card h1 { text-align: center; font-size: 20px; letter-spacing: 6px; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.afield { margin-bottom: 16px; }
.afield label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.admin input, .admin select, .admin textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #CFD1D5; border-radius: 6px; background: #fff; color: var(--ink);
}
.admin textarea { min-height: 80px; resize: vertical; }
.admin input:focus, .admin select:focus, .admin textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; }
.abtn {
  min-height: 44px; padding: 0 18px; border-radius: 6px; border: 1px solid #CFD1D5; background: #fff; color: var(--ink);
  font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
.abtn:hover { border-color: var(--navy); }
.abtn-primary { background: var(--navy); border-color: var(--navy); color: #fff; width: 100%; }
.abtn-primary:hover { background: var(--navy-deep); }
.abtn-maroon { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.abtn-maroon:hover { background: var(--maroon-bright); border-color: var(--maroon-bright); }
.abtn-link { border: 0; background: none; color: var(--maroon); width: 100%; margin-top: 8px; }
.abtn-ghost { background: transparent; color: var(--white); border-color: var(--navy-line); }
.abtn-ghost:hover { border-color: var(--silver); }
.abtn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.aerror { color: #A3262A; font-size: 14px; }
.anote { color: #1E5B3A; font-size: 14px; }

.abar { background: var(--navy); color: var(--white); display: flex; align-items: center; gap: 16px; padding: 10px 20px; flex-wrap: wrap; }
.abar-logo { height: 46px; width: auto; }
.tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.tabs button {
  background: none; border: 0; color: var(--silver-soft); font-family: "Oswald", sans-serif; letter-spacing: 2px; text-transform: uppercase;
  font-size: 15px; padding: 12px 12px; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; min-height: 44px;
}
.tabs button:hover { color: var(--white); }
.tabs button.active { color: var(--white); border-bottom-color: var(--maroon-bright); }
.amain { max-width: 1180px; margin: 0 auto; padding: 28px 20px 80px; }
.amain h2 { font-size: 28px; text-transform: uppercase; margin: 0 0 6px; color: var(--navy); }
.sub { color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.stat .n { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 34px; color: var(--navy); line-height: 1.1; }
.stat .l { font-size: 13px; color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin-bottom: 16px; }
.card h3 { margin: 0 0 12px; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FAFAF9; white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.b-sent { background: #ECEDEF; color: #444A55; }
.b-opened { background: #E3E9F5; color: #1E3566; }
.b-yes, .b-accepted, .b-active, .b-present { background: #E1F0E6; color: #1E5B3A; }
.b-no, .b-declined, .b-removed, .b-unexcused { background: #F6E1E1; color: #7E1F22; }
.b-applied, .b-interview { background: #F4EBD9; color: #6B4A0E; }
.b-new { background: #E3E9F5; color: #1E3566; }
.b-completed, .b-exited, .b-excused { background: #ECEDEF; color: #444A55; }
.muted { color: var(--muted); font-size: 13px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.answers dt { font-weight: 600; color: var(--navy); margin-top: 12px; font-size: 14px; }
.answers dd { margin: 4px 0 0; white-space: pre-wrap; font-size: 14px; }
.scores { display: flex; gap: 8px; flex-wrap: wrap; }
.score { border-radius: 6px; padding: 4px 10px; font-size: 13px; font-weight: 600; background: #ECEDEF; white-space: nowrap; }
.score.lo { background: #F6E1E1; color: #7E1F22; }
.score.mid { background: #F4EBD9; color: #6B4A0E; }
.score.hi { background: #E1F0E6; color: #1E5B3A; }
.flag { color: #7E1F22; font-weight: 600; font-size: 13px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 6px; font-size: 14px; z-index: 10; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.row-actions select { width: auto; min-width: 180px; }
@media (max-width: 640px) {
  .abar { padding: 10px 12px; }
  .abar-logo { height: 38px; }
  .tabs { order: 3; flex-basis: 100%; margin: 0 -12px; padding: 0 4px; }
  #signout { margin-left: auto; }
  .amain { padding: 20px 12px 64px; }
}
.ch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; }
.type-badge { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.type-badge.t-daily { background: var(--maroon); color: #fff; }
.type-badge.t-once { border: 1px solid var(--navy); color: var(--navy); }
.cd-tag { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 15px; letter-spacing: 0.5px; color: var(--maroon); font-variant-numeric: tabular-nums; }
.cd-tag.over { color: var(--muted); }
.typepick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.typepick legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; padding: 0; }
.tp { cursor: pointer; display: block; }
.tp input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tp-box { display: flex; flex-direction: column; gap: 4px; border: 2px solid #CFD1D5; border-radius: 10px; padding: 14px 16px; height: 100%; background: #fff; }
.tp-box b { font-family: "Oswald", sans-serif; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); }
.tp-box span { font-size: 14px; color: var(--ink); }
.tp-box small { font-size: 12px; color: var(--muted); }
.tp input:checked + .tp-box { border-color: var(--maroon); background: #FBF4F4; }
.tp input:focus-visible + .tp-box { outline: 2px solid var(--navy); outline-offset: 2px; }
.ch-summary { margin: 0; background: #F6F6F4; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: 14px; color: var(--ink); }
.score.big { font-size: 18px; padding: 6px 12px; font-family: Oswald, sans-serif; }
.codebox { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--navy); color: #fff; border-radius: 10px; padding: 12px 16px; min-width: 150px; }
.code-l { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--silver); }
.code { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 32px; letter-spacing: 6px; line-height: 1.1; }
.codebox .abtn { background: transparent; color: #fff; border-color: var(--navy-line); }
.sec-h { font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--maroon); margin: 0 0 10px; }
.pend-card { border: 2px solid var(--maroon); }
.decline-reason { width: 180px !important; min-height: 36px !important; }
.amain a { color: #1E3566; }
.type-badge.t-sprint { background: #B5462A; }
.typepick { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tp-box b { font-size: 16px; }
