:root {
    --los-blue: #1f4e9c;
    --los-blue-dark: #163a78;
    --los-blue-soft: #e8eef9;
    --los-gold: #ffd53d;
    --los-gold-dark: #e6b800;
    --los-gold-soft: #fff7d6;
    --los-ink: #1c2434;
    --los-muted: #5b6577;
    --los-line: #d9dfe9;
    --los-bg: #f4f6fb;
    --los-danger: #c62828;
    --los-danger-soft: #fdecec;
    --los-success: #2e7d32;
    --los-success-soft: #e8f5e9;
    --los-radius: 14px;
    --los-shadow: 0 10px 30px rgba(20, 40, 90, .08), 0 1px 3px rgba(20, 40, 90, .06);
}

html, body {
    margin: 0;
    background: var(--los-bg);
    color: var(--los-ink);
    font-family: "Segoe UI", "Inter", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    line-height: 1.5;
}

a { color: var(--los-blue); }
h1:focus { outline: none; }
code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: .95em; background: var(--los-blue-soft); padding: .1rem .4rem; border-radius: 6px; }

*:focus-visible {
    outline: 3px solid rgba(31, 78, 156, .35);
    outline-offset: 2px;
}

/* =========================================================================
   Shared UI primitives (used by the wizard, login, and dashboards)
   ========================================================================= */
.card {
    background: #fff;
    border-radius: var(--los-radius);
    box-shadow: var(--los-shadow);
    padding: 2rem 2.25rem 1.75rem;
    border-top: 6px solid var(--los-blue);
}
.card__head { margin-bottom: 1.5rem; }
.card__head h1 {
    margin: 0 0 .5rem;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--los-blue-dark);
}
.lead { margin: 0; color: var(--los-ink); font-size: 1rem; }
.muted { color: var(--los-muted); font-size: .9rem; margin: 0 0 1.25rem; }
.hint  { color: var(--los-muted); font-size: .85rem; margin: .1rem 0 .75rem; }

.field { margin-bottom: 1.35rem; border: 0; padding: 0; min-width: 0; }
.field > label:not(.check), .field > legend {
    display: block;
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: .4rem;
    padding: 0;
}
.req { color: var(--los-danger); }
.label-note { font-weight: 500; color: var(--los-muted); font-size: .85rem; }
.success__more { margin: .75rem auto 0; max-width: 520px; font-size: 1rem; }
.success__again { font-weight: 700; font-size: 1rem; margin: 0; }

.input {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    padding: .7rem .9rem;
    border: 1.5px solid var(--los-line);
    border-radius: 10px;
    background: #fff;
    color: var(--los-ink);
    transition: border-color .15s, box-shadow .15s;
}
.input:focus {
    outline: none;
    border-color: var(--los-blue);
    box-shadow: 0 0 0 4px var(--los-blue-soft);
}
.input--sm { padding: .45rem .7rem; border-radius: 8px; font-size: .9rem; }
select.input {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M4 6l4 4 4-4' fill='none' stroke='%235b6577' stroke-width='1.8' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right .8rem center;
    padding-right: 2.4rem;
}
.has-error .input { border-color: var(--los-danger); }

.error-text {
    display: flex; align-items: center; gap: .4rem;
    color: var(--los-danger);
    font-size: .85rem;
    margin: .45rem 0 0;
    font-weight: 500;
}

.check { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 500; font-size: .9rem; }
.check input { width: 18px; height: 18px; accent-color: var(--los-blue); }
.check--soft { display: flex; align-items: flex-start; gap: .6rem; margin-top: .6rem; font-weight: 500; color: var(--los-ink); }
.check--soft input { flex: 0 0 auto; margin-top: .15rem; }

/* searchable school picker */
.picker { position: relative; }
.picker__control { position: relative; }
.picker__icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--los-muted); pointer-events: none; }
.picker__input { padding-left: 2.5rem; padding-right: 2.4rem; }
.picker.has-value .picker__input { font-weight: 600; color: var(--los-blue-dark); }
.picker__clear {
    position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--los-blue-soft);
    color: var(--los-blue-dark); font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.picker__clear:hover { background: var(--los-line); }
.picker__list {
    position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
    max-height: 320px; overflow-y: auto; margin: 0; padding: .35rem; list-style: none;
    background: #fff; border: 1.5px solid var(--los-line); border-radius: 12px;
    box-shadow: 0 14px 34px rgba(20, 40, 90, .16);
}
.picker__group {
    padding: .5rem .75rem .25rem; font-size: .7rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--los-muted);
}
.picker__item { padding: .55rem .75rem; border-radius: 8px; cursor: pointer; font-size: .95rem; }
.picker__item.is-active { background: var(--los-blue-soft); }
.picker__item.is-selected { font-weight: 700; color: var(--los-blue-dark); }
.picker__item mark { background: var(--los-gold-soft); color: inherit; border-radius: 3px; padding: 0 .1em; }
.picker__empty { padding: .8rem .75rem; color: var(--los-muted); font-size: .9rem; }

/* dialogs */
.dlg-backdrop {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(17, 26, 46, .45);
    display: flex; align-items: center; justify-content: center; padding: 1rem;
    animation: fade-in .12s ease-out;
}
.dlg {
    width: 100%; max-width: 480px; max-height: calc(100vh - 2rem); overflow: auto;
    background: #fff; border-radius: 16px; border-top: 6px solid var(--los-blue);
    box-shadow: 0 24px 60px rgba(20, 40, 90, .3);
    animation: pop-in .16s ease-out;
}
.dlg--wide { max-width: 640px; }
.dlg__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem .5rem; }
.dlg__title { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--los-blue-dark); }
.dlg__close {
    width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent;
    font-size: 1.5rem; line-height: 1; color: var(--los-muted); cursor: pointer;
}
.dlg__close:hover { background: var(--los-blue-soft); color: var(--los-blue-dark); }
.dlg__body { padding: .5rem 1.4rem 1rem; }
.dlg__body .field:last-child { margin-bottom: 0; }
.dlg__foot { display: flex; justify-content: flex-end; gap: .6rem; padding: .9rem 1.4rem 1.2rem; border-top: 1px solid var(--los-line); }
.dlg__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.98) } to { opacity: 1; transform: none } }
@media (max-width: 520px) { .dlg__grid { grid-template-columns: 1fr; } }

.notice {
    padding: .8rem 1rem;
    border-radius: 10px;
    background: var(--los-gold-soft);
    color: #6b4f00;
    font-size: .9rem;
    margin-bottom: 1rem;
}
.notice--error { background: var(--los-danger-soft); color: var(--los-danger); }
.notice--ok { background: var(--los-success-soft); color: var(--los-success); }

.link-btn {
    background: none; border: 0; padding: 0;
    color: var(--los-blue);
    font: inherit; font-size: .9rem; font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.btn {
    font: inherit;
    font-weight: 700;
    padding: .75rem 1.6rem;
    border-radius: 10px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: transform .08s, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn--sm { padding: .45rem .9rem; font-size: .85rem; border-radius: 8px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--los-blue); color: #fff; box-shadow: 0 4px 14px rgba(31, 78, 156, .28); }
.btn--primary:hover:not(:disabled) { background: var(--los-blue-dark); }
.btn--gold { background: var(--los-gold); color: var(--los-blue-dark); box-shadow: 0 4px 14px rgba(230, 184, 0, .35); }
.btn--gold:hover:not(:disabled) { background: var(--los-gold-dark); }
.btn--ghost { background: #fff; color: var(--los-blue); border-color: var(--los-line); }
.btn--ghost:hover:not(:disabled) { border-color: var(--los-blue); background: var(--los-blue-soft); }
.btn--danger { background: var(--los-danger); color: #fff; }
.btn--danger:hover:not(:disabled) { background: #a51f1f; }

/* badges */
.badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}
.badge--type    { background: var(--los-blue-soft); color: var(--los-blue-dark); }
.badge--manual  { background: #eef0f4; color: var(--los-muted); }
.badge--flag    { background: var(--los-danger-soft); color: var(--los-danger); }
.badge--flag-soft { background: #fff3e0; color: #b25e00; }
.badge--ok      { background: var(--los-success-soft); color: var(--los-success); }
.badge--award   { display: inline-flex; align-items: center; gap: .3rem; }
.award--breakout { background: var(--los-gold-soft); color: #7a5b00; }
.award--hof      { background: var(--los-blue); color: #fff; }
.award--heart    { background: #fde7ef; color: #ad1457; }
.award--unknown  { background: #fff3e0; color: #b25e00; border: 1px dashed #f0b169; }

/* award icons: inherit the badge color; the large variant gets its own tint */
.award-icon { display: inline-flex; width: 16px; height: 16px; flex: 0 0 auto; }
.award-icon svg { width: 100%; height: 100%; }
.award-icon--lg {
    width: 64px; height: 64px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(20, 40, 90, .12);
}
.award-icon--lg.award--breakout { color: #d9a400; }
.award-icon--lg.award--hof      { color: var(--los-blue); }
.award-icon--lg.award--heart    { color: #e91e63; }
.award-icon--lg.award--unknown  { color: #b25e00; border: 0; }

/* award preview on the nomination form */
.award-card {
    display: flex; gap: 1.1rem; align-items: flex-start;
    padding: 1.15rem 1.25rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    border: 1.5px solid transparent;
}
.award-card.award--breakout { background: var(--los-gold-soft); border-color: #f3dd8a; color: var(--los-ink); }
.award-card.award--hof      { background: var(--los-blue-soft); border-color: #c5d3ee; color: var(--los-ink); }
.award-card.award--heart    { background: #fde7ef; border-color: #f5c1d3; color: var(--los-ink); }
.award-card.award--unknown  { background: #fff7ec; border-color: #f0d3ad; color: var(--los-ink); }
.award-card__body { flex: 1; min-width: 0; }
.award-card__eyebrow { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--los-muted); }
.award-card__title { margin: .1rem 0 .3rem; font-size: 1.3rem; font-weight: 800; color: var(--los-blue-dark); }
.award-card__detail { margin: 0; font-size: .9rem; color: var(--los-muted); }

.standings { margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed rgba(20, 40, 90, .18); }
.standings__label { margin: 0 0 .45rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--los-muted); }
.standings__empty { margin: .3rem 0 0; font-size: .9rem; color: var(--los-muted); }
.standings__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.standings__row {
    display: grid; grid-template-columns: 92px 1fr auto; gap: .75rem; align-items: center;
    background: rgba(255,255,255,.75);
    border-radius: 10px;
    padding: .5rem .75rem;
    font-size: .9rem;
}
.standings__row.is-leader { background: #fff; box-shadow: 0 1px 3px rgba(20,40,90,.1); }
.standings__rank { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--los-blue); }
.standings__row.is-leader .standings__rank { color: #b58900; }
.standings__who { min-width: 0; }
.standings__school { display: block; font-size: .78rem; color: var(--los-muted); }
.standings__count { font-weight: 700; white-space: nowrap; color: var(--los-blue-dark); }

.table--nominees tr.is-flagged td { background: #fff9f9; }

@media (max-width: 600px) {
    .award-card { flex-direction: column; }
    .standings__row { grid-template-columns: 1fr; gap: .15rem; }
}

/* =========================================================================
   Auth pages
   ========================================================================= */
.auth { max-width: 440px; margin: 2rem auto; }
.auth__card .card__head h1 { font-size: 1.5rem; }
.auth__foot { margin: 1.25rem 0 0; font-size: .82rem; text-align: center; }

/* =========================================================================
   Dashboards (principal + admin)
   ========================================================================= */
.dash { max-width: 900px; margin: 0 auto; }
.dash--wide { max-width: 1100px; }
.dash__head {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.dash__head h1 { margin: 0 0 .35rem; font-size: 1.9rem; font-weight: 800; color: var(--los-blue-dark); letter-spacing: -.01em; }
.dash__head .muted { margin: 0; max-width: 640px; }
.dash__eyebrow {
    margin: 0 0 .2rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--los-muted);
}
.dash__section { font-size: 1.15rem; font-weight: 700; color: var(--los-blue-dark); margin: 2rem 0 .35rem; }
.dash__section--first { margin-top: 0; }
.dash__section + .muted { margin-bottom: .9rem; }
.dash__schoolpick { max-width: 420px; }
.dash-denied { max-width: 520px; margin: 2rem auto; text-align: center; }
.dash-denied h1 { color: var(--los-blue-dark); font-weight: 800; margin: 0 0 .5rem; }

.tabs { display: flex; gap: .25rem; background: #e9edf5; padding: .25rem; border-radius: 12px; }
.tab {
    font: inherit; font-weight: 600; font-size: .9rem;
    padding: .55rem 1rem; border: 0; border-radius: 9px; cursor: pointer;
    background: transparent; color: var(--los-muted);
}
.tab.is-active { background: #fff; color: var(--los-blue-dark); box-shadow: 0 1px 3px rgba(20,40,90,.12); }
a.tab { text-decoration: none; display: inline-block; }
a.tab:hover { color: var(--los-blue-dark); }

/* =========================================================================
   Admin directory (schools & staff)
   ========================================================================= */
.dir { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 1.25rem; align-items: start; }
.dir__toast { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.dir__toast .link-btn { margin: 0; white-space: nowrap; }
.dir__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .75rem; }
.dir__head .dash__section { margin-bottom: 0; }
.dir__head .muted { margin: .15rem 0 0; }
.dir__count { font-size: .8rem; color: var(--los-muted); white-space: nowrap; padding-top: .35rem; }

.dir__head-actions { display: flex; gap: .5rem; align-items: center; flex: 0 0 auto; }
.dir__head .btn { white-space: nowrap; }
.dir__search { margin-bottom: .75rem; }

.dir__list { list-style: none; margin: 0; padding: 0; max-height: 70vh; overflow-y: auto; border: 1.5px solid var(--los-line); border-radius: 12px; }
.dir__group {
    position: sticky; top: 0; z-index: 1;
    background: #fafbfe; color: var(--los-muted);
    font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    padding: .45rem .9rem; border-bottom: 1px solid var(--los-line);
}
.dir__item {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .55rem .9rem; border-bottom: 1px solid var(--los-line);
    transition: background .12s;
}
.dir__item:last-child { border-bottom: 0; }
.dir__item:hover { background: var(--los-blue-soft); }
.dir__item.is-selected { background: var(--los-blue-soft); box-shadow: inset 4px 0 0 var(--los-blue); }
.dir__item.is-hidden .dir__item-name { color: var(--los-muted); text-decoration: line-through; text-decoration-color: rgba(91,101,119,.5); }
.dir__item-main { flex: 1; min-width: 0; background: none; border: 0; padding: 0; text-align: left; font: inherit; cursor: pointer; color: inherit; }
.dir__item-name { display: block; font-weight: 600; color: var(--los-blue-dark); }
.dir__item-meta { display: flex; gap: .4rem; align-items: center; font-size: .75rem; color: var(--los-muted); }
.dir__item-actions { display: flex; gap: .6rem; flex: 0 0 auto; opacity: 0; transition: opacity .12s; }
.dir__item:hover .dir__item-actions, .dir__item.is-selected .dir__item-actions, .dir__item:focus-within .dir__item-actions { opacity: 1; }
.dir__item-actions .link-btn { font-size: .8rem; margin: 0; }
.link-btn--danger { color: var(--los-danger); }




.dir__empty { text-align: center; padding: 4rem 1rem; color: var(--los-muted); }
.dir__inline { display: flex; gap: .4rem; }
.dir__yrs { width: 70px; }
.dir__table td { vertical-align: middle; }
.dir__table .table__actions .link-btn { margin-left: .6rem; font-size: .85rem; }
.dir__table .table__actions .link-btn:first-child { margin-left: 0; }

@media (max-width: 900px) {
    .dir { grid-template-columns: 1fr; }
    .dir__list { max-height: 45vh; }


}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .9rem;
    margin-bottom: 1.5rem;
}
.stat {
    background: #fff;
    border-radius: 12px;
    padding: .9rem 1.1rem;
    box-shadow: 0 1px 3px rgba(20,40,90,.08);
    border-left: 5px solid var(--los-line);
    display: flex; flex-direction: column; gap: .1rem;
}
.stat__value { font-size: 1.8rem; font-weight: 800; color: var(--los-blue-dark); line-height: 1.1; }
.stat__label { font-size: .78rem; font-weight: 600; color: var(--los-muted); text-transform: uppercase; letter-spacing: .04em; }
.stat--clickable {
    position: relative;
    font: inherit; text-align: left; cursor: pointer;
    border-top: 0; border-right: 0; border-bottom: 0;
    transition: transform .1s, box-shadow .15s;
}
.stat--clickable:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20,40,90,.14); }
.stat__go { position: absolute; right: .8rem; top: .55rem; font-size: 1.3rem; color: var(--los-line); }
.stat--clickable:hover .stat__go { color: var(--los-blue); }
.stat--breakout { border-left-color: var(--los-gold); }
.stat--hof      { border-left-color: var(--los-blue); }
.stat--heart    { border-left-color: #e91e63; }
.stat--warn     { border-left-color: #f0a030; }
.stat--flag     { border-left-color: var(--los-danger); }
.stat--flag .stat__value { color: var(--los-danger); }

.card--table { padding: 0; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: .75rem 1rem; border-bottom: 1px solid var(--los-line); text-align: left; vertical-align: middle; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--los-muted); background: #fafbfe; }
.table .num { text-align: right; }
.table .warn { color: #b25e00; font-weight: 700; }
.table .flag { color: var(--los-danger); font-weight: 700; }
.table tr.is-quiet td { color: var(--los-muted); }
.table tr:last-child td { border-bottom: 0; }
.table__grouprow th {
    background: var(--los-blue-soft);
    color: var(--los-blue-dark);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .5rem 1rem;
    border-top: 1px solid var(--los-line);
}
.table__groupmeta { margin-left: .6rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--los-muted); font-size: .75rem; }
.table__grouprow--award th { background: #fafbfe; padding: .65rem 1rem; text-transform: none; letter-spacing: 0; }
.table__grouptoggle { float: right; margin: 0; font-size: .8rem; text-transform: none; letter-spacing: 0; }
.table--nominees__rank { width: 44px; }
.rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .78rem; font-weight: 800; color: var(--los-muted); background: #f0f2f7; }
.rank--1 { background: var(--los-gold); color: var(--los-blue-dark); }
.rank--2 { background: #e2e5ea; color: var(--los-ink); }
.rank--3 { background: #f3e2cf; color: #7a4b16; }
.table--nominees tr.is-leader td { background: #fffdf3; }
.table__school { font-weight: 600; }
.table__sub { font-size: .78rem; color: var(--los-muted); }
.table__namebtn {
    background: none; border: 0; padding: 0; font: inherit; font-weight: 600;
    color: var(--los-blue-dark); cursor: pointer; text-align: left;
}
.table__namebtn:hover { color: var(--los-blue); text-decoration: underline; }
.table__cellbtn {
    background: none; border: 0; padding: .1rem .35rem; margin: -.1rem -.35rem; border-radius: 6px;
    font: inherit; font-weight: inherit; color: inherit; cursor: pointer;
}
.table__cellbtn:hover { background: var(--los-blue-soft); color: var(--los-blue); }
.badge--btn { border: 0; font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.badge--btn:hover { filter: brightness(.95); box-shadow: 0 0 0 2px rgba(31,78,156,.25); }

.nom__name-btn {
    background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left;
}
.nom__name-btn:hover { color: var(--los-blue); text-decoration: underline; }
.nl__clear { margin: 0; }

.table--links { table-layout: fixed; width: 100%; }
.table--links td { vertical-align: middle; }
.table--links__school { width: 30%; }
.table--links__actions { width: 190px; }
.table__linkcell { min-width: 0; overflow: hidden; }
.table__link {
    display: block;
    max-width: 100%;
    font-family: Consolas, "SFMono-Regular", Menlo, monospace;
    font-size: .8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table__actions { white-space: nowrap; }
.table__actions .link-btn { margin-left: .75rem; }

@media (max-width: 640px) {
    .table--links__school { width: 45%; }
    .table--links__actions { width: 120px; }
    .table--links .table__actions .link-btn { display: block; margin: .35rem 0 0; }
}

/* nomination list */
.nl__toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.nl__search { flex: 1 1 200px; }
.nl__filter { flex: 0 1 190px; width: auto; }
.nl__flagonly { padding: .4rem .2rem; }
.nl__count { margin-bottom: .75rem; }
.nl__empty { text-align: center; padding: 2.5rem 1rem; color: var(--los-muted); }
.nl__empty-star { display: block; font-size: 2.5rem; color: var(--los-gold); }

.nom {
    border: 1.5px solid var(--los-line);
    border-radius: 12px;
    padding: 1.1rem 1.25rem 1rem;
    margin-bottom: .9rem;
    background: #fff;
}
.nom--flagged { border-color: #f1b3b3; background: #fff9f9; }
.nom__head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.nom__name { margin: 0 0 .4rem; font-size: 1.1rem; font-weight: 800; color: var(--los-blue-dark); }
.nom__badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.nom__title { display: block; font-size: .8rem; font-weight: 500; color: var(--los-muted); margin-top: .1rem; }
.rubric__jobtitle { font-style: italic; }
.nom__meta { text-align: right; font-size: .82rem; color: var(--los-muted); line-height: 1.5; }
.nom__school { font-weight: 700; color: var(--los-ink); }
.nom__email { margin-top: .2rem; display: flex; gap: .4rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.nom__email a { font-size: .82rem; }
.nom__flagnote { font-size: .85rem; background: var(--los-danger-soft); color: #7a1c1c; padding: .55rem .8rem; border-radius: 8px; margin-bottom: .7rem; }
.nom__flagnote .muted { display: inline; font-size: inherit; color: #a04a4a; }
.nom__letter { margin: 0 0 .35rem; white-space: pre-wrap; line-height: 1.6; }
.nom__words { font-size: .85rem; color: var(--los-muted); }
.nom__letter.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nom__actions {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap;
    margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--los-line);
}
.nom__years { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.nom__years label { font-size: .85rem; font-weight: 600; }
.nom__years .input { width: 90px; }
.nom__years .hint { margin: 0; }
.nom__flag { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.nom__eligible { font-size: .85rem; padding: .35rem .6rem; border-radius: 8px; background: var(--los-success-soft); color: var(--los-success); }
.nom__eligible.is-off { background: var(--los-danger-soft); color: var(--los-danger); }
.nom__flag .link-btn { margin: 0; font-size: .85rem; }

/* principal rubric */
.stat--ok { border-left-color: var(--los-success); }
.stat--ok .stat__value { color: var(--los-success); }
.rubric__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem .5rem; }
.rubric__search { max-width: 280px; }
.rubric__saved { font-size: .8rem; color: var(--los-success); font-weight: 600; opacity: 0; transition: opacity .25s; }
.rubric__saved.is-on { opacity: 1; }
.rubric__scroll { overflow-x: auto; }
.rubric__table { table-layout: fixed; width: 100%; min-width: 940px; }
.rubric__table th { white-space: normal; line-height: 1.25; vertical-align: bottom; overflow-wrap: anywhere; }
.rubric__table th.rubric__crit { font-size: .64rem; width: 122px; padding-left: .4rem; padding-right: .4rem; text-align: center; }

/* compact score picker: one button per option, number only, label on hover */
.scorepick { display: inline-flex; border: 1.5px solid var(--los-line); border-radius: 9px; overflow: hidden; background: #fff; }
.scorepick.is-empty { border-style: dashed; }
.scorepick__btn {
    width: 27px; height: 30px;
    border: 0; border-left: 1px solid var(--los-line);
    background: transparent; color: var(--los-muted);
    font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer;
    transition: background .12s, color .12s;
}
.scorepick__btn:first-child { border-left: 0; }
.scorepick__btn:hover { background: var(--los-blue-soft); color: var(--los-blue-dark); }
.scorepick__btn.is-on { background: var(--los-blue); color: #fff; }
.scorepick__btn:focus-visible { outline-offset: -3px; }
.rubric__name-col { min-width: 220px; position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--los-line); }
.rubric__table thead .rubric__name-col { background: #fafbfe; }
.rubric__table tr.is-complete .rubric__name-col { box-shadow: inset 4px 0 0 var(--los-success), 1px 0 0 var(--los-line); }
.rubric__award { margin-left: .3rem; vertical-align: middle; }
.rubric__cell { padding: .45rem .3rem; text-align: center; }
.rubric__name-col { width: 210px; min-width: 0; }
.rubric__name-col .table__school { overflow-wrap: anywhere; }
.rubric__table thead th.rubric__total-col { background: var(--los-blue); color: #fff; width: 84px; text-align: right; }
.rubric__total { background: var(--los-blue-soft); font-weight: 800; white-space: nowrap; }
.rubric__total-value { font-size: 1.15rem; color: var(--los-blue-dark); }
.rubric__total-max { font-size: .75rem; color: var(--los-muted); margin-left: .15rem; }
.rubric__legend { margin-top: 1.25rem; }
.rubric__legend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.rubric__legend-item { padding: .9rem 1rem; border: 1.5px solid var(--los-line); border-radius: 12px; }
.rubric__legend-title { font-weight: 700; color: var(--los-blue-dark); }
.rubric__legend-hint { font-size: .82rem; color: var(--los-muted); margin: .15rem 0 .5rem; }
.rubric__legend-opts { margin: 0; padding-left: 1.1rem; font-size: .85rem; line-height: 1.6; }
.nom__reason { width: 260px; }

@media (max-width: 640px) {
    .card { padding: 1.4rem 1.1rem 1.25rem; }
    .nom__meta { text-align: left; }
    .table:not(.table--nominees) th:nth-child(n+3):not(:last-child), .table:not(.table--nominees) td:nth-child(n+3):not(:last-child) { display: none; }
    .table--nominees th:nth-child(2), .table--nominees td:nth-child(2), .table--nominees th:nth-child(5), .table--nominees td:nth-child(5) { display: none; }
}
