:root {
    --primary: #001b55;
    --primary-container: #042e80;
    --primary-mid: #0c58c7;
    --secondary: #fea203;
    --surface: #f7fafe;
    --surface-low: #f1f4f8;
    --surface-high: #e0e3e7;
    --surface-dark: #071a3d;
    --text: #17233d;
    --muted: #5f6b7a;
    --outline: #c4c6d3;
    --success: #168a55;
    --warning: #d97706;
    --error: #c93434;
    --shadow-1: 0 4px 12px rgba(7, 26, 61, .06);
    --shadow-2: 0 12px 24px rgba(7, 26, 61, .12);
    --radius: .75rem;
}

* { box-sizing: border-box; }
html { min-height: 100%; font-size: 16px; }
body {
    min-height: 100%;
    margin: 0;
    color: var(--text);
    background: var(--surface);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--primary-container); text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, .display, .metric-value { font-family: Montserrat, Arial, sans-serif; }
img { max-width: 100%; }
.material-symbols-outlined { font-size: 1.25rem; vertical-align: middle; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.button {
    min-height: 44px;
    border: 0;
    border-radius: .55rem;
    padding: .75rem 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: #fff;
    background: var(--primary-container);
    font-weight: 700;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { background: var(--primary); box-shadow: var(--shadow-1); }
.button:active { transform: scale(.98); }
.button:focus-visible, .icon-button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
    outline: 2px solid var(--primary-mid);
    outline-offset: 2px;
}
.button:disabled { background: #d1d5db; color: #8a929c; box-shadow: none; }
.button-secondary { color: var(--text); background: #fff; border: 1px solid var(--outline); }
.button-secondary:hover { color: var(--primary); background: var(--surface-low); }
.button-accent { background: var(--secondary); color: #2b1700; }
.button-accent:hover { background: #eb9600; }
.button-danger { background: var(--error); }
.button-danger:hover { background: #aa2727; }
.code-input { font-size: 1.45rem; letter-spacing: .22em; text-align: center; font-weight: 800; }
.security-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.2rem; align-items: start; }
.mfa-setup { display: flex; gap: 1.5rem; align-items: center; }
.mfa-qr { width: 180px; height: 180px; border: 8px solid #fff; border-radius: 16px; box-shadow: var(--shadow-1); }
.secret-key { display: inline-block; padding: .7rem .9rem; border-radius: 10px; background: var(--surface-low); color: var(--primary); font-weight: 800; letter-spacing: .08em; overflow-wrap: anywhere; }
.recovery-panel { margin-top: 1.2rem; }
.recovery-codes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.recovery-codes code { padding: .8rem; border-radius: 10px; background: var(--surface-low); text-align: center; color: var(--text); font-weight: 800; }
.button-success { background: var(--success); }
.button-block { width: 100%; }
.dashboard-heading-actions { display: flex; align-items: center; gap: 1rem; }
.dashboard-search { min-width: 360px; height: 46px; padding: 0 .9rem; display: flex; align-items: center; gap: .55rem; border: 1px solid var(--outline); border-radius: .55rem; background: #fff; color: var(--muted); }
.dashboard-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.directory-filters { display: flex; align-items: center; gap: .8rem; }
.directory-filters .form-control { width: auto; min-width: 180px; }
.icon-button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: .55rem;
    color: var(--muted);
    background: transparent;
    display: inline-grid;
    place-items: center;
}
.icon-button:hover { color: var(--primary); background: rgba(4, 46, 128, .08); }
.card {
    border: 1px solid rgba(196, 198, 211, .55);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-1);
}
.badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .3rem .65rem;
    font-size: .78rem;
    font-weight: 700;
}
.badge::before {
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: currentColor;
    content: "";
}
.badge-live, .badge-success { color: var(--success); background: rgba(22, 138, 85, .1); }
.badge-warning { color: var(--warning); background: #fff3db; }
.badge-muted { color: var(--muted); background: var(--surface-high); }
.badge-primary { color: var(--primary-container); background: #dbe1ff; }
.validation-summary-valid, .field-validation-valid { display: none; }
.validation-summary-errors, .field-validation-error {
    color: #8f1d1d;
    font-size: .88rem;
}
.validation-summary-errors {
    padding: .75rem 1rem;
    border: 1px solid #ffb4ab;
    border-radius: .5rem;
    margin-bottom: 1rem;
    background: #ffdad6;
}
.validation-summary-errors ul { padding-left: 1.25rem; margin: 0; }
.input-validation-error { border-color: var(--error) !important; }
.form-group { display: grid; gap: .4rem; }
.form-group label { font-size: .86rem; font-weight: 700; color: var(--text); }
.form-control {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--outline);
    border-radius: .5rem;
    padding: .7rem .85rem;
    color: var(--text);
    background: #fff;
}
textarea.form-control { min-height: 105px; resize: vertical; }
.form-hint { color: var(--muted); font-size: .8rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
.check-row { display: flex; align-items: flex-start; gap: .6rem; }
.check-row input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--primary-container); }
.empty-state { padding: 3rem 1.5rem; text-align: center; color: var(--muted); }
.empty-state .material-symbols-outlined { font-size: 3rem; color: var(--outline); }

/* Public and jury surfaces */
.public-body { min-height: 100vh; }
.ambient-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 2rem 1.25rem;
    display: grid;
    place-items: center;
}
.ambient-page.has-mobile-topbar { min-height: calc(100vh - 58px); }
.ambient-page::before, .ambient-page::after {
    position: fixed;
    z-index: -1;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    filter: blur(85px);
    opacity: .35;
    content: "";
}
.ambient-page::before { top: -8rem; left: -10rem; background: #b4c5ff; }
.ambient-page::after { right: -10rem; bottom: -9rem; background: #ffb961; opacity: .28; }
.public-shell { width: min(100%, 420px); margin: auto; }
.public-shell.wide { width: min(100%, 600px); }
.brand-lockup { display: grid; justify-items: center; text-align: center; margin-bottom: 1rem; }
.brand-lockup img {
    width: min(11.5rem, 58vw);
    max-height: 8.5rem;
    object-fit: contain;
    margin-bottom: .6rem;
}
.brand-lockup h1 {
    color: var(--primary);
    font-size: clamp(1.75rem, 7vw, 2.15rem);
    line-height: 1.15;
    margin-bottom: .6rem;
}
.brand-lockup p { max-width: 34rem; color: var(--muted); margin-bottom: 0; font-size: .94rem; }
.access-card { padding: 1.3rem; box-shadow: var(--shadow-2); }
.segmented-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    margin: 1rem 0 .6rem;
}
.segmented-code input {
    width: clamp(2.65rem, 12vw, 3.25rem);
    height: 3.7rem;
    border: 1px solid var(--outline);
    border-radius: .5rem;
    background: var(--surface);
    color: var(--primary);
    font-family: Montserrat, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}
.segmented-separator { color: var(--outline); font-weight: 800; }
.access-actions {
    display: grid;
    gap: 1rem;
    justify-items: center;
    margin-top: 1.5rem;
    text-align: center;
}
.jury-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
}
.support-link {
    width: 100%;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(196, 198, 211, .55);
    color: var(--muted);
    font-size: .78rem;
}
.mobile-topbar {
    min-height: 56px;
    padding: max(.65rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) .65rem max(1rem, env(safe-area-inset-left, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(196, 198, 211, .45);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 20;
}
.mobile-topbar .wordmark { display: flex; align-items: center; gap: .35rem; color: var(--primary); }
.mobile-topbar .wordmark strong { font-family: Montserrat, sans-serif; }
.mobile-content {
    width: min(100%, 600px);
    margin: 0 auto;
    padding: 1.25rem 1rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
}
.mobile-nav {
    position: fixed;
    z-index: 20;
    left: 50%;
    bottom: 0;
    width: min(100%, 600px);
    min-height: 58px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--outline);
    background: #fff;
    box-shadow: 0 -4px 14px rgba(7, 26, 61, .08);
}
.mobile-nav a, .mobile-nav-btn, .mobile-nav-disabled {
    min-height: 52px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .15rem;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    background: transparent;
    width: 100%;
    cursor: pointer;
    padding: .35rem 0;
    font-family: inherit;
    transition: color .15s ease, background .15s ease;
}
.mobile-nav a.is-active { color: #fff; background: var(--primary-container); font-weight: 700; }
.mobile-nav a.nav-highlight { color: var(--primary-container); font-weight: 800; background: rgba(4, 46, 128, .07); }
.mobile-nav a:hover, .mobile-nav-btn:hover { color: var(--primary); }
.mobile-nav a.is-active:hover { color: #fff; }
.mobile-nav-disabled { opacity: .35; cursor: default; pointer-events: none; }
.mobile-nav-form { margin: 0; width: 100%; display: flex; align-items: stretch; }
.notice-banner {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    border-radius: .6rem;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #fff;
    background: var(--primary-container);
}
.event-heading { text-align: center; margin-bottom: 1.2rem; }
.event-heading h1 { color: var(--primary); font-size: 1.55rem; margin-bottom: .35rem; }
.participant-card { padding: 1.1rem; margin-bottom: 1rem; }
.participant-card .eyebrow, .eyebrow {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.participant-card h2 { color: var(--primary); font-size: 1.25rem; margin: .25rem 0 .7rem; }
.project-box { padding: .9rem; border: 1px solid var(--outline); border-radius: .5rem; background: var(--surface-low); }
.project-box strong { display: block; margin-bottom: .35rem; }
.project-box p { color: var(--muted); font-size: .88rem; margin: 0; }
.participant-details { display: grid; gap: .65rem; padding: .8rem; margin-top: .8rem; border: 1px solid var(--outline); border-radius: .6rem; background: var(--surface-low); text-align: left; }
.participant-detail-meta { display: flex; flex-wrap: wrap; gap: .55rem 1rem; }
.participant-detail-meta > span { display: inline-flex; align-items: center; gap: .35rem; color: var(--primary-container); font-size: .76rem; font-weight: 800; }
.participant-detail-meta .material-symbols-outlined { font-size: 1rem; }
.participant-member-section, .participant-description { display: grid; gap: .4rem; }
.participant-detail-label { color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.participant-member-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.participant-member-list > span { padding: .27rem .5rem; border-radius: 999px; color: var(--primary); background: #dbe1ff; font-size: .7rem; font-weight: 700; }
.participant-description p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.participant-details.is-dark { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.055); }
.participant-details.is-dark .participant-detail-meta > span { color: #ffddb8; }
.participant-details.is-dark .participant-member-list > span { color: #fff; background: rgba(255,255,255,.12); }
.participant-details.is-dark .participant-detail-label { color: #91a8e8; }
.participant-details.is-dark .participant-description p { color: #dbe1ff; }
.ballot-header .participant-details { max-width: 42rem; margin-inline: auto; }
.timer-card { padding: 1.4rem; text-align: center; margin-bottom: 1rem; }
.timer-card .timer {
    color: var(--primary);
    font-family: Montserrat, sans-serif;
    font-size: 2.8rem;
    line-height: 1;
    margin: .7rem 0;
}
.timer-card p { color: var(--muted); font-size: .8rem; margin-bottom: 0; }
.lobby-action { display: grid; gap: .65rem; text-align: center; }
.lobby-action small { color: var(--muted); }
.connection-pill { color: var(--success); font-size: .75rem; font-weight: 700; }
.connection-pill::before { width: .45rem; height: .45rem; margin-right: .3rem; display: inline-block; border-radius: 50%; background: currentColor; content: ""; }
.connection-lost .connection-pill { color: var(--error); }
.ballot-header { text-align: center; margin-bottom: 1rem; }
.ballot-header h1 { color: var(--primary); font-size: 1.55rem; margin-bottom: .5rem; }
.ballot-team {
    width: fit-content;
    margin: 0 auto 1rem;
    padding: .45rem .9rem;
    border: 1px solid var(--outline);
    border-radius: .5rem;
    background: #fff;
    font-weight: 700;
}
.progress-label { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; }
.ballot-progress {
    --progress: 0%;
    height: .45rem;
    overflow: hidden;
    border-radius: 999px;
    margin: .35rem 0 1rem;
    background: var(--surface-high);
}
.ballot-progress::after {
    width: var(--progress);
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-container), var(--secondary));
    transition: width .25s ease;
    content: "";
}
.criterion-card { padding: 1rem; margin-bottom: .8rem; transition: border .2s ease; }
.criterion-card.has-error { border-color: var(--error); box-shadow: 0 0 0 2px rgba(201, 52, 52, .12); }
.criterion-title { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .3rem; }
.criterion-title h2 { display: flex; align-items: center; gap: .4rem; font-family: Inter, sans-serif; font-size: .98rem; margin: 0; }
.criterion-icon { color: var(--primary-container); font-size: 1.25rem; }
.criterion-weight { color: var(--muted); font-size: .73rem; font-weight: 700; }
.criterion-description { color: var(--muted); font-size: .78rem; margin-bottom: .8rem; }
.criterion-help { margin: .55rem 0 .85rem; border-top: 1px solid var(--outline); }
.criterion-help summary { display: inline-flex; align-items: center; gap: .3rem; padding-top: .55rem; color: var(--primary-container); cursor: pointer; font-size: .78rem; font-weight: 700; list-style: none; }
.criterion-help summary::-webkit-details-marker { display: none; }
.criterion-help summary .material-symbols-outlined { font-size: 1rem; }
.criterion-help-content { margin-top: .55rem; padding: .7rem .8rem; border-radius: .5rem; color: var(--text); background: var(--surface-low); font-size: .78rem; }
.criterion-help-content strong { display: block; margin-bottom: .25rem; color: var(--primary); }
.criterion-help-content p { margin: 0; white-space: pre-line; }
.rating-scale { display: flex; align-items: center; justify-content: space-between; gap: .35rem; }
.rating-scale input { position: absolute; opacity: 0; pointer-events: none; }
.rating-scale label {
    width: 2.45rem;
    height: 2.45rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--outline);
    border-radius: 50%;
    color: var(--muted);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all .15s ease;
}
.rating-scale input:checked + label { border-color: var(--primary-container); color: #fff; background: var(--primary-container); transform: scale(1.07); }
.rating-scale input:focus-visible + label { outline: 2px solid var(--primary-mid); outline-offset: 2px; }
.scale-labels { display: flex; justify-content: space-between; margin-top: .45rem; color: var(--muted); font-size: .66rem; }
.criterion-comment { margin-top: .8rem; }
.ballot-submit { position: sticky; bottom: .75rem; z-index: 10; margin-top: 1rem; }
.vote-dialog {
    width: min(92vw, 440px);
    border: 0;
    border-radius: 1rem;
    padding: 1.4rem;
    color: var(--text);
    box-shadow: 0 24px 48px rgba(7, 26, 61, .25);
}
.vote-dialog::backdrop { background: rgba(7, 26, 61, .65); backdrop-filter: blur(3px); }
.vote-dialog h2 { color: var(--primary); }
.review-list { display: grid; gap: .55rem; padding: 0; list-style: none; }
.review-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem; border-radius: .4rem; background: var(--surface-low); }
.dialog-actions { display: flex; justify-content: flex-end; gap: .65rem; margin-top: 1rem; }
.success-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.25rem; }
.success-content { width: min(100%, 440px); text-align: center; }
.success-icon {
    width: 5.25rem;
    height: 5.25rem;
    margin: 0 auto 1.2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--secondary);
    background: #ffddb8;
}
.success-icon .material-symbols-outlined { font-size: 3.25rem; }
.success-content h1 { color: var(--primary); font-size: 2rem; }
.success-content > p { color: var(--muted); }
.next-card { padding: 1.2rem; margin-top: 1.5rem; border-left: 4px solid var(--primary-container); }
.next-card .timer { color: var(--primary); font-family: Montserrat, sans-serif; font-size: 2.2rem; }
.jury-login-header { text-align: center; margin-bottom: 1rem; }
.jury-login-header .material-symbols-outlined { color: var(--primary); font-size: 2.5rem; }
.jury-login-header h1 { color: var(--primary); margin: .5rem 0; }
.form-card { padding: 1.3rem; display: grid; gap: 1rem; }
.secure-note { display: flex; gap: .6rem; padding: .75rem; border: 1px solid var(--outline); border-radius: .5rem; color: var(--muted); background: var(--surface-low); font-size: .8rem; }
.identity-card { padding: 1.4rem; text-align: center; }
.identity-avatar { width: 5rem; height: 5rem; display: grid; place-items: center; margin: 0 auto 1rem; border-radius: 50%; color: #fff; background: var(--primary-container); }
.identity-avatar .material-symbols-outlined { font-size: 2.7rem; }
.identity-actions { display: grid; gap: .65rem; margin-top: 1.2rem; }
.jury-progress { padding: 1.1rem; margin-bottom: 1rem; text-align: center; }
.jury-progress strong { color: var(--primary); font-family: Montserrat, sans-serif; font-size: 2rem; }
.team-list { display: grid; gap: .65rem; }
.team-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem; border: 1px solid var(--outline); border-radius: .6rem; background: #fff; }
.team-row.is-current { border: 2px solid var(--primary-mid); box-shadow: var(--shadow-1); }
.team-row-main { display: flex; align-items: center; gap: .7rem; }
.status-dot { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--surface-high); }
.status-dot.done { color: var(--success); background: rgba(22, 138, 85, .1); }

/* Admin */
.admin-body { min-height: 100vh; overflow-x: hidden; }
.admin-sidebar {
    width: 255px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--outline);
    background: var(--surface-low);
}
.admin-brand { display: grid; padding: 1.25rem 1.25rem 1.5rem; color: var(--primary); font-family: Montserrat, sans-serif; line-height: 1.25; }
.admin-brand span { font-size: 1.2rem; font-weight: 500; }
.admin-brand strong { font-size: 1.35rem; }
.admin-nav { display: grid; gap: .25rem; padding: 0 .45rem; }
.admin-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: .65rem;
    border-radius: .5rem;
    padding: .55rem .75rem;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 600;
}
.admin-nav a:hover { color: var(--primary); background: rgba(4, 46, 128, .07); }
.admin-nav a.is-active { color: #fff; background: var(--primary-container); }
.admin-settings {
    min-height: 42px;
    margin: auto .45rem .2rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    border-radius: .5rem;
    padding: .55rem .75rem;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 600;
}
.admin-settings:hover, .admin-settings.is-active { color: var(--primary); background: rgba(4, 46, 128, .07); }
.admin-logout { margin: .2rem .45rem .75rem; }
.admin-logout button {
    width: 100%;
    min-height: 40px;
    border: 0;
    display: flex;
    align-items: center;
    gap: .65rem;
    border-radius: .5rem;
    padding: .55rem .75rem;
    color: var(--muted);
    background: transparent;
    font-size: .85rem;
}
.admin-shell { min-height: 100vh; margin-left: 255px; }
.admin-topbar {
    min-height: 56px;
    position: sticky;
    top: 0;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: .6rem 1.75rem;
    border-bottom: 1px solid rgba(196, 198, 211, .45);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-1);
}
.admin-shell.is-event-context .admin-topbar { display: flex; }
.topbar-logo { display: flex; align-items: center; gap: .4rem; color: var(--primary); }
.topbar-logo strong { font-family: Montserrat, sans-serif; font-size: 1rem; }
.admin-user { display: flex; align-items: center; gap: .65rem; color: var(--muted); font-size: .8rem; }
.avatar { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--surface-high); }
.menu-toggle { display: none; }
.admin-content { padding: 1.25rem 1.75rem; }
.admin-content.is-compact { padding-top: 1.15rem; }
.event-context-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: -.25rem 0 1.15rem; padding: .6rem .85rem; border: 1px solid #c7d4fb; border-radius: .65rem; color: var(--primary); background: #edf2ff; font-size: .82rem; }
.event-context-banner > div { display: flex; align-items: center; gap: .65rem; font-weight: 700; }
.event-context-banner code { color: var(--primary-container); }
.event-context-banner a { color: var(--primary-container); font-weight: 800; }
.admin-content > .page-heading:first-child {
    min-height: auto;
    margin: -1.25rem -1.75rem 1.35rem;
    padding: 1.15rem 1.75rem;
    align-items: flex-start;
    border-bottom: 1px solid rgba(196, 198, 211, .35);
    background: #fff;
}
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.page-heading h1 { color: var(--primary); font-size: clamp(1.35rem, 2vw, 1.85rem); margin-bottom: .2rem; }
.page-heading p { color: var(--muted); margin-bottom: 0; font-size: .92rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.35rem; }
.metric-card { min-height: auto; padding: 1.15rem 1.25rem; }
.metric-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.metric-label { color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.metric-icon { width: 2.85rem; height: 2.85rem; display: grid; place-items: center; border-radius: .65rem; color: var(--primary-container); background: rgba(4, 46, 128, .08); font-size: 1.35rem; }
.metric-icon.accent { color: var(--secondary); background: rgba(254, 162, 3, .1); }
.metric-icon.success { color: var(--success); background: rgba(22, 138, 85, .1); }
.metric-value { color: var(--primary); font-size: 2.2rem; line-height: 1.1; margin-top: .4rem; }
.metric-note { color: var(--success); font-size: .82rem; margin-top: .35rem; }
.panel { overflow: hidden; }
.panel-header { min-height: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--outline); }
.panel-header h2 { color: var(--primary); font-size: 1.2rem; margin: 0; }
.panel-header.compact-header { padding: .85rem 1.15rem; }
.panel-header.compact-header h2 { font-size: 1.05rem; }
.panel-body { padding: 1.15rem; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th { padding: .75rem 1rem; color: var(--muted); background: var(--surface-low); text-align: left; font-size: .82rem; letter-spacing: .03em; text-transform: none; font-weight: 700; }
.data-table td { padding: .85rem 1rem; border-top: 1px solid rgba(196, 198, 211, .55); vertical-align: middle; }
.data-table tbody tr:hover { background: rgba(247, 250, 254, .8); }
.table-title { color: var(--primary); font-weight: 700; }
.table-subtitle { color: var(--muted); font-size: .82rem; }
.table-actions { display: flex; justify-content: flex-end; gap: .25rem; }
.admin-form-card { padding: 1.3rem; }
.wizard { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .8fr); gap: 1.25rem; }
.wizard-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; }
.wizard-step { display: grid; justify-items: center; gap: .35rem; color: var(--muted); font-size: .68rem; text-align: center; }
.wizard-steps a.wizard-step { border-radius: .5rem; text-decoration: none; transition: color .15s ease, background .15s ease; }
.wizard-steps a.wizard-step:hover { color: var(--primary); background: rgba(4, 46, 128, .05); }
.wizard-step::before { width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: var(--surface-high); content: attr(data-step); }
.wizard-step.is-active { color: var(--primary); font-weight: 700; }
.wizard-step.is-active::before { color: #fff; background: var(--primary-container); }
.event-preview { position: sticky; top: 90px; overflow: hidden; align-self: start; }
.preview-cover { height: 7rem; display: grid; place-items: center; color: #fff; background: var(--primary-container); background-image: radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 12px 12px; }
.preview-cover .material-symbols-outlined { font-size: 2.5rem; }
.preview-body { padding: 1rem; }
.preview-body h3 { color: var(--primary); margin-bottom: .35rem; }
.preview-footer { padding: .8rem 1rem; color: var(--muted); background: var(--surface-low); font-size: .75rem; }
.split-admin { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(280px, .8fr); gap: 1.25rem; align-items: start; }
.voters-layout { grid-template-columns: minmax(0, 1.9fr) minmax(280px, .85fr); }
.voters-side-stack { display: grid; gap: 1rem; position: sticky; top: 80px; }
.voter-form-stack { display: grid; gap: .75rem; padding: 1rem 1.15rem; }
.preview-public { position: sticky; top: 90px; align-self: start; padding: 1rem; }
.preview-public .participant-card { margin: 0; }
.issued-code { padding: 1rem; margin-bottom: 1rem; border: 1px solid #ffb961; border-radius: .65rem; color: #663e00; background: #ffddb8; }
.issued-code strong { display: block; font-family: Montserrat, sans-serif; font-size: 1.15rem; }
.issued-access { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; padding: 1.2rem 1.4rem; margin-bottom: 1rem; border: 1px solid #ffb961; color: #663e00; background: #ffddb8; }
.issued-access h2 { margin: .25rem 0; color: var(--primary); }
.issued-access p { margin: .35rem 0 .8rem; }
.issued-access-code { display: block; color: var(--primary); font-family: Montserrat, sans-serif; font-size: 1.5rem; letter-spacing: .08em; }
.issued-access-qr { width: 180px; height: 180px; padding: .45rem; border-radius: .5rem; background: #fff; }
.issued-access-note { display: block; margin-top: .6rem; }
.juror-history { display: grid; gap: .35rem; min-width: 240px; }
.juror-history > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .5rem; }
.juror-history small { grid-column: 1 / -1; color: var(--muted); font-size: .75rem; }
.juror-editor-card { max-width: 920px; }
.weight-layout { display: grid; grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr); gap: 1.2rem; }
.weight-card { padding: 1rem; }
.weight-bar { height: .55rem; overflow: hidden; display: flex; border-radius: 999px; background: var(--surface-high); }
.weight-bar .jury { background: var(--primary-container); }
.weight-bar .public { background: var(--secondary); }
.evaluation-intro { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; padding: 1.15rem; border-left: 4px solid var(--primary-container); }
.evaluation-intro > .material-symbols-outlined { color: var(--secondary); font-size: 2rem; }
.evaluation-intro h2 { color: var(--primary); margin: 0 0 .25rem; font-size: 1.2rem; }
.evaluation-intro p { color: var(--muted); margin: 0; }
.evaluation-weights { max-width: 56rem; margin-bottom: 2.2rem; }
.evaluation-weights .weight-bar { margin: .4rem 0 1rem; }
.section-heading { margin: 1.6rem 0 1rem; }
.section-heading h2 { color: var(--primary); margin-bottom: .2rem; }
.section-heading p { color: var(--muted); margin: 0; }
.rubric-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
.rubric-editor-card { padding: 1.2rem; }
.rubric-editor-card .panel-header { min-height: 0; padding: 0 0 1rem; }
.rubric-editor-card .panel-header h2 { margin-top: .5rem; font-size: 1.35rem; }
.criterion-editor-list { display: grid; gap: .85rem; }
.criterion-editor { min-inline-size: 0; margin: 0; padding: .95rem; border: 1px solid var(--outline); border-radius: .65rem; background: var(--surface-low); }
.csv-hint { font-size: .86rem; min-width: 0; }
.csv-hint-button { align-items: center; color: var(--primary); cursor: pointer; display: inline-flex; font-weight: 700; gap: .35rem; list-style: none; }
.csv-hint-button::-webkit-details-marker { display: none; }
.csv-hint-button .material-symbols-outlined { font-size: 1.1rem; }
.csv-hint-content { background: var(--surface-low); border: 1px solid var(--outline); border-radius: .55rem; display: grid; gap: .35rem; margin-top: .5rem; max-width: 100%; padding: .65rem .75rem; }
.csv-hint-content code { display: block; font-size: .73rem; line-height: 1.5; overflow-wrap: anywhere; white-space: normal; }
.csv-hint-content small { color: var(--muted); line-height: 1.4; }
.rubric-import { background: #f4f7ff; border-bottom: 1px solid var(--outline); margin: 0 -1.2rem 1rem; padding: .9rem 1.2rem 1rem; }
.rubric-import-controls { align-items: center; display: grid; gap: .65rem .8rem; grid-template-columns: minmax(0, 1fr) auto; }
.rubric-import-controls > div { align-items: center; display: flex; gap: .8rem; grid-column: 1 / -1; justify-content: space-between; min-width: 0; }
.rubric-import-controls > div > strong { color: var(--primary); font-size: .9rem; white-space: nowrap; }
.rubric-import-controls > div > .csv-hint { flex: 1; text-align: right; }
.rubric-import .csv-hint-button { justify-content: flex-end; margin-left: auto; }
.rubric-import .csv-hint-content { box-sizing: border-box; text-align: left; width: 100%; }
.rubric-import .csv-hint { min-width: 0; }
.rubric-import input[type="file"] { min-width: 0; }
.rubric-import input[type="file"]::file-selector-button { background: #fff; border: 1px solid var(--outline); border-radius: .4rem; color: var(--primary); cursor: pointer; font: inherit; font-weight: 700; margin-right: .65rem; padding: .45rem .7rem; }
.rubric-import .button { white-space: nowrap; }
.criterion-editor legend { padding: 0 .35rem; color: var(--primary); font-size: .85rem; font-weight: 800; }
.compact-grid { gap: .65rem; }
.criterion-editor .form-group { margin-bottom: .65rem; }
.rubric-actions { margin-top: 1rem; }
.rubric-save-all { position: sticky; z-index: 5; bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1.25rem; padding: 1rem 1.2rem; border: 1px solid #b9c7f2; border-radius: .8rem; background: rgba(255,255,255,.96); box-shadow: 0 12px 32px rgba(4,46,128,.16); backdrop-filter: blur(12px); }
.rubric-save-all > div { display: grid; gap: .15rem; }
.rubric-save-all strong { color: var(--primary); }
.rubric-save-all span:not(.material-symbols-outlined) { color: var(--muted); font-size: .8rem; }
.rubric-save-all .button { flex: none; }
.text-button { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem 0; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 700; }
.danger-text { color: var(--error); }
.rubric-list { display: grid; gap: .7rem; }
.rubric-row { padding: .85rem; border: 1px solid var(--outline); border-radius: .55rem; background: #fff; }
.rubric-row-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.rubric-row p { color: var(--muted); font-size: .77rem; margin: .3rem 0 0; }
.live-grid { display: grid; grid-template-columns: minmax(210px, .75fr) minmax(340px, 1.4fr) minmax(220px, .8fr); gap: 1rem; align-items: start; }
.live-toolbar { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.live-toolbar p { color: var(--muted); margin: 0; font-size: .9rem; }
.live-toolbar strong { color: var(--primary); }
.queue-list { display: grid; align-content: start; grid-auto-rows: min-content; gap: .45rem; padding: .75rem; max-height: calc(100vh - 200px); min-height: 260px; overflow-y: auto; }
.queue-item { padding: .55rem .7rem; display: flex; align-items: center; gap: .55rem; border: 1px solid var(--outline); border-radius: .5rem; background: #fff; font-size: .8rem; }
.queue-item.is-active { border-left: 4px solid var(--primary-container); background: #dbe1ff; color: var(--primary); }
.queue-item.is-complete { opacity: .65; }
.control-stage { padding: 1.2rem 1.35rem; border-top: 4px solid var(--secondary); text-align: center; }
.control-stage h1 { color: var(--primary); font-size: clamp(1.35rem, 1.8vw, 1.8rem); margin: .5rem 0 .2rem; }
.control-stage > p { color: var(--muted); font-size: .88rem; margin-bottom: .4rem; }
.control-stage .participant-details { max-width: 42rem; margin-inline: auto; }
.timer-pair { display: flex; justify-content: center; gap: .75rem; margin: .85rem 0; }
.timer-box { min-width: 7rem; padding: .6rem .8rem; border: 1px solid var(--outline); border-radius: .55rem; background: var(--surface); }
.timer-box small { display: block; color: var(--muted); text-transform: uppercase; font-size: .7rem; font-weight: 700; letter-spacing: .06em; }
.timer-box strong { color: var(--primary); font-family: Montserrat, sans-serif; font-size: 1.65rem; line-height: 1.1; }
.timer-box.accent strong { color: var(--secondary); }
.control-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .65rem; }
.control-actions .button { min-height: 44px; padding: .6rem .85rem; font-size: .85rem; }
.control-actions .primary-operation { grid-column: 1 / -1; min-height: 48px; font-size: .95rem; font-weight: 800; }
.monitor { padding: .9rem; max-height: calc(100vh - 200px); overflow-y: auto; }
.monitor-section { margin-bottom: 1rem; }
.monitor-label { display: flex; justify-content: space-between; margin-bottom: .35rem; font-size: .8rem; }
.monitor-track { height: .5rem; border-radius: 999px; background: var(--surface-high); overflow: hidden; }
.monitor-track > span { height: 100%; display: block; background: var(--primary-container); }
.monitor-track.accent > span { background: linear-gradient(90deg, var(--secondary), #ffc55c); }
.juror-live-status { padding-top: .85rem; margin-top: 1rem; border-top: 1px solid var(--outline); }
.juror-live-status h3 { color: var(--muted); font-family: Inter, sans-serif; font-size: .82rem; margin-bottom: .65rem; }
.juror-status-grid { display: grid; grid-template-columns: repeat(4, 2.15rem); gap: .45rem; }
.juror-status-dot {
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--muted);
    background: var(--surface-high);
    font-size: .72rem;
    font-weight: 700;
}
.juror-status-dot.has-voted { color: #fff; background: var(--success); }
.juror-picker { position: relative; }
.juror-suggestions { position: absolute; z-index: 5; top: calc(100% - 1.4rem); right: 0; left: 0; display: grid; overflow: hidden; border-radius: .55rem; background: #fff; box-shadow: var(--shadow-2); }
.juror-suggestion { display: grid; gap: .15rem; padding: .7rem .8rem; border: 0; border-bottom: 1px solid var(--outline); background: #fff; color: var(--text); cursor: pointer; text-align: left; }
.juror-suggestion:hover, .juror-suggestion:focus { background: #edf2ff; outline: 0; }
.juror-suggestion strong { color: var(--primary); }
.juror-suggestion span { color: var(--muted); font-size: .75rem; }
.integrity-alert { display: flex; gap: .7rem; padding: .75rem .85rem; margin-top: .85rem; border: 1px solid #ffb4ab; border-radius: .55rem; color: #93000a; background: #ffdad6; font-size: .78rem; text-align: left; }
.results-layout { display: grid; grid-template-columns: minmax(260px, .55fr) minmax(0, 1.45fr); gap: 1.2rem; }
.podium-card { padding: 1.2rem; }
.podium { min-height: 16rem; display: flex; align-items: end; justify-content: center; gap: .5rem; padding-top: 2rem; }
.podium-place { width: 31%; display: grid; align-content: end; justify-items: center; }
.podium-place strong { color: var(--primary); font-size: .75rem; text-align: center; }
.podium-place small { color: var(--muted); }
.podium-block { width: 100%; display: grid; place-items: center; margin-top: .5rem; color: var(--primary); font-family: Montserrat, sans-serif; font-size: 1.2rem; background: linear-gradient(#ffe08a, #fea203); }
.podium-place.first .podium-block { height: 8rem; }
.podium-place.second .podium-block { height: 6rem; background: linear-gradient(#e8eaec, #aeb3b8); }
.podium-place.third .podium-block { height: 4.5rem; background: linear-gradient(#e8bc8d, #b56d2b); }
.tabs { display: flex; gap: 1rem; border-bottom: 1px solid var(--outline); margin-bottom: 1.2rem; }
.tabs a { padding: .7rem .1rem; color: var(--muted); font-weight: 700; font-size: .82rem; }
.tabs a.is-active { color: var(--primary); border-bottom: 2px solid var(--primary-container); }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.report-card { padding: 1rem; display: flex; justify-content: space-between; gap: 1rem; }
.audit-list { display: grid; gap: .5rem; }
.audit-item { display: grid; grid-template-columns: 9rem 10rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid rgba(196, 198, 211, .55); font-size: .78rem; }
.audit-item time, .audit-item span { color: var(--muted); }
.toast {
    position: fixed;
    top: 78px;
    right: 1.5rem;
    z-index: 100;
    max-width: min(90vw, 420px);
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1rem;
    border-radius: .6rem;
    box-shadow: var(--shadow-2);
    transition: opacity .25s ease, transform .25s ease;
}
.toast-success { color: #fff; background: var(--success); }
.toast-error { color: #fff; background: var(--error); }
.toast-hidden { opacity: 0; transform: translateY(-12px); pointer-events: none; }

/* Projection */
.projection-body { min-height: 100vh; min-height: 100dvh; overflow-y: auto; overflow-x: hidden; color: #fff; background: var(--surface-dark); -webkit-overflow-scrolling: touch; }
.projection-stage {
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    position: relative;
    padding: clamp(1.25rem, 3vw, 3.5rem);
    display: grid;
    grid-template-columns: minmax(220px, .75fr) minmax(380px, 1.8fr) minmax(230px, .85fr);
    gap: clamp(1.25rem, 2.5vw, 3rem);
    align-items: center;
    background-image:
        radial-gradient(circle at center, rgba(4, 46, 128, .4), rgba(7, 26, 61, .92) 55%, #071a3d),
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: auto, 80px 80px, 80px 80px;
}
.projection-join { display: grid; justify-items: center; gap: 1.25rem; text-align: center; }
.projection-join .eyebrow { color: #b4c5ff; font-size: .9rem; letter-spacing: .08em; }
.event-code { color: #ffddb8; font-family: Montserrat, sans-serif; font-size: clamp(1.8rem, 3.5vw, 4rem); font-weight: 800; line-height: 1.1; }
.qr-frame { width: min(100%, 250px); aspect-ratio: 1; padding: .85rem; border-radius: 1.2rem; background: #fff; box-shadow: 0 12px 32px rgba(4, 46, 128, .45); }
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.projection-cta { padding: .75rem 1.15rem; border: 1px solid rgba(255,255,255,.1); border-left: 4px solid var(--secondary); border-radius: 999px; background: rgba(255,255,255,.04); font-family: Montserrat, sans-serif; font-weight: 700; font-size: .85rem; }
.projection-center { min-height: auto; display: grid; grid-template-rows: minmax(0, 1fr) auto; align-content: center; justify-items: stretch; gap: clamp(1rem, 2.5vh, 2.25rem); padding: clamp(1.25rem, 2.5vw, 2.5rem) clamp(1rem, 2vw, 2.25rem); border-inline: 1px solid rgba(255,255,255,.06); text-align: center; }
.projection-participant { width: 100%; align-self: center; display: grid; justify-items: center; }
.projection-center h1 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 5rem); line-height: 1.1; margin: .85rem 0 .45rem; overflow-wrap: anywhere; }
.projection-center h2 { max-width: 45rem; margin: 0 auto; color: #b0c6ff; font-size: clamp(1.1rem, 1.8vw, 2rem); }
.projection-center .participant-details { box-sizing: border-box; width: min(100%, 54rem); margin: 1.25rem auto 0; gap: .85rem; padding: 1rem 1.2rem; border-color: rgba(176,198,255,.22); border-radius: 1rem; background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.035)); box-shadow: 0 18px 48px rgba(0,0,0,.14); }
.projection-center .participant-detail-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.projection-center .participant-detail-meta > span { min-height: 2.4rem; justify-content: center; padding: .4rem .6rem; border: 1px solid rgba(255,255,255,.08); border-radius: .65rem; background: rgba(4,46,128,.22); font-size: clamp(.72rem, .8vw, .84rem); }
.projection-center .participant-member-section, .projection-center .participant-description { justify-items: center; padding-top: .15rem; }
.projection-center .participant-member-list { justify-content: center; gap: .45rem; }
.projection-center .participant-member-list > span { padding: .35rem .65rem; font-size: clamp(.7rem, .8vw, .84rem); }
.projection-center .participant-description { padding-top: .75rem; border-top: 1px solid rgba(255,255,255,.09); }
.projection-center .participant-description p { max-width: 46rem; font-size: clamp(.82rem, .95vw, .95rem); text-align: center; }
.projection-timer { box-sizing: border-box; width: min(100%, 28rem); justify-self: center; padding: 1rem 2rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1.6rem; background: rgba(255,255,255,.03); box-shadow: 0 0 80px rgba(4,46,128,.5); }
.projection-timer small { display: block; color: #b4c5ff; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
.projection-timer strong { color: var(--secondary); font-family: Montserrat, sans-serif; font-size: clamp(2.8rem, 5.5vw, 5.5rem); line-height: 1; }
.projection-monitor { display: grid; gap: 1.15rem; }
.projection-monitor-card { padding: 1.25rem 1.35rem; border: 1px solid rgba(255,255,255,.08); border-radius: 1.15rem; background: rgba(255,255,255,.035); box-shadow: 0 24px 48px rgba(0,0,0,.2); }
.projection-monitor-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.projection-monitor-top h3 { font-size: 1.35rem; margin: 0; }
.projection-monitor-top strong { color: var(--secondary); font-family: Montserrat, sans-serif; font-size: 2.1rem; }
.projection-monitor-card p { color: #b4c5ff; text-align: right; margin: .4rem 0 0; font-size: .85rem; }
.projection-track { height: .65rem; margin-top: .85rem; overflow: hidden; border-radius: 999px; background: rgba(0,0,0,.35); }
.projection-track span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--primary-mid), var(--secondary)); }
.ranking-stage {
    min-height: 100vh;
    padding: clamp(2rem, 4vw, 5rem);
    color: var(--text);
    background: var(--surface);
    overflow: auto;
}
.ranking-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; }
.ranking-heading h1 { color: var(--primary); font-size: clamp(2.4rem, 5vw, 5rem); }
.ranking-watermark { position: fixed; inset: 0; z-index: 0; display: grid; place-items: center; color: rgba(4,46,128,.035); font-family: Montserrat, sans-serif; font-size: 11vw; font-weight: 800; transform: rotate(-18deg); pointer-events: none; }
.ranking-content { position: relative; z-index: 1; }
.projection-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 2rem; }
.winner-card { min-height: 12rem; display: grid; place-items: center; align-content: center; padding: 1.5rem; border-radius: 1rem; background: #fff; box-shadow: var(--shadow-1); text-align: center; }
.winner-card.first { border-top: 5px solid var(--secondary); transform: translateY(-1rem); }
.winner-card .place { color: var(--primary); font-family: Montserrat, sans-serif; font-size: 2.8rem; }
.winner-card h2 { color: var(--primary); margin: .4rem 0; }

/* Projection entry points */
.projection-entry-actions { width: min(100%, 360px); display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.projection-entry-button {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 1rem;
    color: #fff;
    background: rgba(255,255,255,.06);
    text-align: left;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.projection-entry-button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); }
.projection-entry-button > .material-symbols-outlined { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: .7rem; background: rgba(255,255,255,.1); }
.projection-entry-button span:last-child { display: grid; color: #fff; font-size: .85rem; font-weight: 800; line-height: 1.2; }
.projection-entry-button small { color: #b4c5ff; font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.projection-entry-button.public-entry { border-color: rgba(254,162,3,.45); }
.projection-entry-button.public-entry > .material-symbols-outlined { color: #2b1700; background: var(--secondary); }

/* Participant management */
.participants-layout { grid-template-columns: minmax(0, 1.9fr) minmax(290px, .6fr); }
.participants-side-stack { position: sticky; top: 90px; align-self: start; display: grid; gap: 1rem; }
.participants-side-stack .preview-public { position: static; overflow: hidden; padding: 1.35rem; background: linear-gradient(145deg, #fff, #edf2ff); }
.participants-side-stack .preview-public h2 { color: var(--primary); margin: .4rem 0 1rem; }
.participant-order, .ranking-number {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-grid;
    place-items: center;
    border-radius: .7rem;
    color: var(--primary-container);
    background: #edf2ff;
    font-family: Montserrat, sans-serif;
    font-weight: 800;
}
.participants-table td:last-child { width: 150px; }
.participants-table th, .participants-table td { padding-inline: 1rem; }
.participant-actions { display: flex; align-items: center; justify-content: flex-end; gap: .2rem; }
.participant-actions form { margin: 0; }
.participant-disable-button { color: var(--warning); }
.participant-enable-button { color: var(--success); }
.participant-delete-button { color: var(--error); }
.participant-disabled { background: #f7f8fa; }
.participant-disabled > td:not(:last-child) { opacity: .68; }
.participant-reason { max-width: 15rem; display: block; margin-top: .45rem; color: var(--muted); line-height: 1.35; }
.participant-preview-number { color: rgba(4,46,128,.13); font-family: Montserrat, sans-serif; font-size: 4.5rem; font-weight: 800; line-height: 1; }
.participant-rules-card { display: flex; gap: .8rem; padding: 1rem; border-left: 4px solid var(--secondary); }
.participant-rules-card > .material-symbols-outlined { color: var(--primary-container); font-size: 1.8rem; }
.participant-rules-card h3 { color: var(--primary); margin: 0 0 .25rem; font-size: 1rem; }
.participant-rules-card p { color: var(--muted); margin: 0; font-size: .82rem; }
.dialog-icon { width: 3.3rem; height: 3.3rem; display: grid; place-items: center; margin-bottom: .8rem; border-radius: 1rem; }
.dialog-icon-warning { color: var(--error); background: #ffdad6; }
.participant-editor-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .5fr); gap: 1.25rem; align-items: start; }
.participant-editor-card { padding-bottom: 1.5rem; }
.participant-editor-card form { padding: 1.5rem 2rem 0; }
.participant-editor-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 1.25rem; }
.participant-edit-preview { position: sticky; top: 90px; overflow: hidden; padding: 1.5rem; color: #fff; background: linear-gradient(145deg, #0c58c7, #001b55 72%); }
.participant-edit-preview .eyebrow { color: #b4c5ff; }
.participant-edit-preview .participant-preview-number { color: rgba(255,255,255,.14); }
.participant-edit-preview h2 { color: #fff; margin: -.5rem 0 .25rem; font-size: 2rem; }
.participant-preview-project { color: #ffddb8; font-weight: 700; }
.participant-preview-meta { display: grid; gap: .55rem; padding: 1rem 0; margin: 1rem 0; border-block: 1px solid rgba(255,255,255,.14); }
.participant-preview-meta span { display: flex; align-items: center; gap: .5rem; color: #dbe1ff; font-size: .82rem; }
.member-list-field { padding: 1rem; border: 1px solid var(--outline); border-radius: .65rem; background: var(--surface-low); }
.member-list-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.member-list-heading .form-hint { margin: .2rem 0 .8rem; }
.member-count { flex: none; padding: .25rem .55rem; border-radius: 999px; color: var(--primary-container); background: #dbe1ff; font-size: .72rem; font-weight: 800; }
.member-input-list { display: grid; gap: .55rem; }
.member-input-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; }
.member-input-row > .material-symbols-outlined { color: var(--primary-container); }
.member-remove-button { color: var(--error); }
.member-add-button { margin-top: .7rem; }
.member-chip-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.member-chip-list span { padding: .3rem .55rem; border: 1px solid #c5d1f8; border-radius: 999px; color: var(--primary); background: #edf2ff; font-size: .72rem; font-weight: 700; }
.member-chip-list-dark span { border-color: rgba(255,255,255,.2); color: #fff; background: rgba(255,255,255,.1); }
.queue-item.is-disabled { opacity: .58; background: var(--surface-low); }
.queue-item.is-disabled > .material-symbols-outlined { color: var(--error); }

/* Public results */
.projection-body.ranking-body { overflow-y: auto; overflow-x: hidden; color: #fff; background: #061630; scrollbar-color: var(--secondary) #061630; }
.ranking-body .ranking-stage {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 4.5rem);
    color: #fff;
    background:
        linear-gradient(180deg, rgba(12,88,199,.2), transparent 28rem),
        linear-gradient(135deg, #071a3d 0%, #04122c 55%, #071a3d 100%);
}
.ranking-orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.ranking-orb-one { width: 32rem; height: 32rem; top: -15rem; right: -8rem; background: rgba(12,88,199,.32); }
.ranking-orb-two { width: 24rem; height: 24rem; top: 38rem; left: -12rem; background: rgba(254,162,3,.12); }
.ranking-body .ranking-watermark { color: rgba(255,255,255,.018); font-size: 12vw; }
.ranking-body .ranking-content { width: min(100%, 1500px); margin: 0 auto; }
.results-gate-screen { min-height: calc(100vh - clamp(3rem, 8vw, 9rem)); position: relative; z-index: 2; display: grid; place-items: center; transition: opacity .8s ease, visibility .8s ease; }
.results-gate-card { width: min(100%, 760px); padding: clamp(1.6rem, 4vw, 3.5rem); border: 1px solid rgba(255,255,255,.12); border-radius: 1.5rem; background: rgba(7,26,61,.76); box-shadow: 0 30px 80px rgba(0,0,0,.3); backdrop-filter: blur(18px); text-align: center; }
.results-gate-card .ranking-kicker { justify-content: center; }
.results-gate-card h1 { color: #fff; margin: 1rem 0 .75rem; font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.045em; }
.results-gate-card p { max-width: 620px; margin: 0 auto; color: #b4c5ff; font-size: clamp(.95rem, 1.5vw, 1.15rem); line-height: 1.6; }
.results-gate-icon { width: 5rem; height: 5rem; display: inline-grid; place-items: center; margin-bottom: 1.25rem; border: 1px solid rgba(254,162,3,.28); border-radius: 1.35rem; color: var(--secondary); background: rgba(254,162,3,.1); box-shadow: 0 0 50px rgba(254,162,3,.12); }
.results-gate-icon img { width: 3.45rem; height: 3.45rem; display: block; border-radius: .85rem; }
.results-waiting-message, .results-calculating-message { display: none; }
.results-gate.is-waiting .results-waiting-message, .results-gate.is-calculating .results-calculating-message { display: block; }
.results-waiting-status { width: fit-content; display: flex; align-items: center; gap: .55rem; margin: 1.8rem auto 0; padding: .6rem .9rem; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #dbe1ff; background: rgba(255,255,255,.05); font-size: .78rem; font-weight: 700; }
.results-waiting-status span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 rgba(254,162,3,.35); animation: resultsWaitingPulse 1.8s ease-out infinite; }
.results-gate.is-calculating .results-gate-icon { animation: resultsIconPulse 1.8s ease-in-out infinite; }
.results-progress { height: .55rem; margin: 2rem 0 .85rem; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.09); }
.results-progress span { width: 100%; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #0c58c7, #7f9fe7, #fea203); transform: scaleX(0); transform-origin: left; animation: resultsProgress var(--results-duration, 30s) linear forwards; }
.results-calculating-message small { color: #7f9fe7; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.results-published-content { opacity: 0; pointer-events: none; transform: translateY(24px); visibility: hidden; transition: opacity 1s ease, transform 1s ease, visibility 1s ease; }
.results-gate.is-revealed .results-gate-screen { opacity: 0; pointer-events: none; position: absolute; visibility: hidden; display: none !important; }
.results-gate.is-revealed .results-published-content { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; display: block !important; }
.results-gate:not(.is-revealed) .results-published-content { display: none !important; }
.results-skip-wrap { margin-top: 1.5rem; }
.results-skip-button { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.15rem; border: 1px solid rgba(254,162,3,.4); border-radius: 999px; color: #ffddb8; background: rgba(254,162,3,.12); font-size: .82rem; font-weight: 700; cursor: pointer; transition: all .2s ease; }
.results-skip-button:hover { background: rgba(254,162,3,.25); border-color: rgba(254,162,3,.7); color: #fff; transform: translateY(-1px); }
.results-skip-button .material-symbols-outlined { font-size: 1.1rem; }
@keyframes resultsProgress { to { transform: scaleX(1); } }
@keyframes resultsIconPulse { 0%, 100% { transform: scale(.94); box-shadow: 0 0 35px rgba(254,162,3,.08); } 50% { transform: scale(1.04); box-shadow: 0 0 70px rgba(254,162,3,.22); } }
@keyframes resultsWaitingPulse { 70% { box-shadow: 0 0 0 10px rgba(254,162,3,0); } 100% { box-shadow: 0 0 0 0 rgba(254,162,3,0); } }
.ranking-body .ranking-heading { gap: 2rem; margin-bottom: 1.6rem; }
.ranking-body .ranking-heading h1 { max-width: 900px; color: #fff; font-size: clamp(2.8rem, 6vw, 6.5rem); line-height: .95; letter-spacing: -.055em; margin: .7rem 0 1rem; }
.ranking-body .ranking-heading p { max-width: 670px; color: #b4c5ff; font-size: clamp(1rem, 1.5vw, 1.25rem); }
.ranking-kicker { display: flex; align-items: center; gap: .65rem; color: #ffddb8; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ranking-kicker span { width: 2.2rem; height: 2px; background: var(--secondary); }
.ranking-heading-actions { display: grid; justify-items: end; gap: .7rem; }
.ranking-live-badge, .ranking-link-button { display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px; padding: .65rem .9rem; font-size: .78rem; font-weight: 700; }
.ranking-live-badge { color: #9ff3d1; background: rgba(22,138,85,.18); border: 1px solid rgba(159,243,209,.2); }
.ranking-link-button { color: #fff; border: 1px solid rgba(255,255,255,.16); }
.ranking-link-button:hover { background: rgba(255,255,255,.08); }
.ranking-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-bottom: 4rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; background: rgba(255,255,255,.1); }
.ranking-summary article { min-height: 98px; display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.5rem; background: rgba(7,26,61,.88); }
.ranking-summary article > .material-symbols-outlined { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: .8rem; color: var(--secondary); background: rgba(254,162,3,.1); }
.ranking-summary strong { display: block; color: #fff; font-family: Montserrat, sans-serif; font-size: 1.7rem; }
.ranking-summary small { color: #b4c5ff; }
.results-showcase { margin-bottom: 5rem; }
.results-section-heading { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2.2rem; }
.results-section-heading > div { display: flex; align-items: center; gap: 1rem; }
.section-number { color: var(--secondary); font-family: Montserrat, sans-serif; font-size: .85rem; font-weight: 800; }
.results-section-heading p { color: #7f9fe7; margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.results-section-heading h2 { color: #fff; margin: .15rem 0 0; font-size: clamp(1.5rem, 2.4vw, 2.3rem); }
.section-rule { height: 1px; flex: 1; background: linear-gradient(90deg, rgba(255,255,255,.17), transparent); }
.results-section-heading.compact { margin-bottom: 1.6rem; }
.public-podium { min-height: 32rem; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr) minmax(0, .9fr); align-items: end; gap: clamp(.65rem, 2vw, 1.5rem); padding: 0 clamp(0rem, 5vw, 6rem); }
.public-podium-place { display: grid; align-items: end; min-width: 0; }
.podium-person { min-height: 12.5rem; display: flex; flex-direction: column; align-items: center; justify-content: end; padding: 1rem; text-align: center; min-width: 0; }
.place-1 .podium-person { min-height: 17rem; }
.podium-medal { width: 3.4rem; height: 3.4rem; display: grid; place-items: center; margin-bottom: .75rem; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; color: #071a3d; background: linear-gradient(145deg, #fff1bd, #fea203); box-shadow: 0 0 45px rgba(254,162,3,.25); }
.place-2 .podium-medal { color: #293445; background: linear-gradient(145deg, #fff, #aeb8c7); box-shadow: none; }
.place-3 .podium-medal { color: #45220a; background: linear-gradient(145deg, #f5c79d, #a85f2a); box-shadow: none; }
.podium-position { color: #7f9fe7; font-family: Montserrat, sans-serif; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.podium-position sup { font-size: .55em; }
.podium-person h3 { max-width: 20rem; color: #fff; margin: .4rem 0 .15rem; font-size: clamp(1rem, 1.8vw, 1.55rem); word-break: break-word; overflow-wrap: break-word; }
.podium-person p { min-height: 2.5em; color: #9bb3ec; margin: 0 0 .7rem; font-size: .82rem; word-break: break-word; overflow-wrap: break-word; }
.podium-person > strong { color: #ffddb8; font-family: Montserrat, sans-serif; font-size: 1.4rem; }
.podium-person > strong small { font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; }
.public-podium-block { width: 100%; height: 11rem; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 1.25rem 1.25rem 0 0; color: rgba(255,255,255,.92); background: linear-gradient(160deg, rgba(174,184,199,.35), rgba(100,117,143,.1)); box-shadow: inset 0 1px rgba(255,255,255,.13); box-sizing: border-box; }
.place-1 .public-podium-block { height: 16rem; color: #2b1700; background: linear-gradient(155deg, #ffd975, #fea203 70%, #d77d00); box-shadow: 0 22px 70px rgba(254,162,3,.2), inset 0 1px rgba(255,255,255,.55); }
.place-3 .public-podium-block { height: 8rem; background: linear-gradient(160deg, rgba(190,115,58,.75), rgba(107,54,20,.3)); }
.public-podium-block > span:first-child { font-family: Montserrat, sans-serif; font-size: clamp(3.5rem, 7vw, 7rem); font-weight: 800; opacity: .9; }
.podium-star { position: absolute; right: 1rem; bottom: 1rem; opacity: .25; font-size: 3rem; }
.ranking-visuals { display: grid; gap: 1.5rem; }
.ranking-panel { padding: clamp(1.2rem, 2.5vw, 2.4rem); border: 1px solid rgba(255,255,255,.1); border-radius: 1.4rem; background: rgba(255,255,255,.045); box-shadow: 0 24px 70px rgba(0,0,0,.2); backdrop-filter: blur(16px); }
.ranking-chart { display: grid; gap: 1rem; }
.ranking-chart-scale { display: grid; grid-template-columns: repeat(5, 1fr); padding-left: min(30%, 260px); color: #6f8bc8; font-size: .7rem; }
.ranking-chart-scale span { text-align: right; }
.ranking-bar-row { display: grid; grid-template-columns: minmax(170px, 30%) 1fr; gap: 1rem; align-items: center; }
.ranking-bar-label { min-width: 0; display: flex; align-items: center; gap: .75rem; }
.ranking-bar-label > div { min-width: 0; display: grid; }
.ranking-bar-label strong, .ranking-bar-label small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-bar-label strong { color: #fff; font-size: .88rem; }
.ranking-bar-label small { color: #829bd3; font-size: .7rem; }
.ranking-bar-track { height: 2.45rem; position: relative; overflow: hidden; border-radius: .6rem; background: rgba(0,0,0,.24); }
.ranking-bar-track::after { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(255,255,255,.06) calc(25% - 1px) 25%); content: ""; pointer-events: none; }
.ranking-bar-fill { width: var(--score); min-width: 3.5rem; height: 100%; position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-end; border-radius: inherit; color: #fff; background: linear-gradient(90deg, #0c58c7, #4b82eb); animation: reveal-score .9s cubic-bezier(.2,.75,.25,1) both; transform-origin: left; }
.ranking-bar-fill span { padding-right: .75rem; font-family: Montserrat, sans-serif; font-size: .75rem; }
.ranking-bar-fill.rank-1 { color: #2b1700; background: linear-gradient(90deg, #fea203, #ffd36a); }
.ranking-bar-fill.rank-2 { background: linear-gradient(90deg, #78879b, #c5cfdd); }
.ranking-bar-fill.rank-3 { background: linear-gradient(90deg, #9a5227, #d9945f); }
@keyframes reveal-score { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ranking-detail-panel .table-wrap { border: 1px solid rgba(255,255,255,.08); border-radius: 1rem; }
.ranking-table { color: #eaf0ff; }
.ranking-table th { color: #92a9dc; background: rgba(0,0,0,.2); }
.ranking-table td { border-color: rgba(255,255,255,.08); }
.ranking-table tbody tr:hover { background: rgba(255,255,255,.035); }
.ranking-table .table-title { color: #fff; }
.ranking-table .table-subtitle, .ranking-table td small { display: block; color: #829bd3; }
.ranking-table-position { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #18345f; font-family: Montserrat, sans-serif; font-weight: 800; }
.ranking-table-position.rank-1 { color: #2b1700; background: var(--secondary); }
.ranking-table-position.rank-2 { color: #293445; background: #c5cfdd; }
.ranking-table-position.rank-3 { background: #b66c3a; }
.ranking-total { color: #ffddb8; font-family: Montserrat, sans-serif; font-size: 1.1rem; }
.ranking-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 2.5rem 0 0; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.08); color: #738bc2; font-size: .75rem; }
.ranking-footer strong { color: #ffddb8; font-family: Montserrat, sans-serif; letter-spacing: .16em; }

@media (max-width: 1400px) {
    .participants-layout, .voters-layout { grid-template-columns: 1fr; }
    .participants-side-stack, .voters-side-stack { position: static; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); }
}

@media (max-width: 1100px) {
    .live-grid { grid-template-columns: 1fr 1.6fr; }
    .live-grid > :last-child { grid-column: 1 / -1; }
    .projection-stage { grid-template-columns: 1fr 2fr; }
    .projection-monitor { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
    .participant-editor-layout { grid-template-columns: 1fr; }
    .participant-edit-preview { position: static; }
}

@media (max-width: 820px) {
    .admin-sidebar { width: 260px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-2); }
    .admin-menu-open .admin-sidebar { transform: translateX(0); }
    .admin-menu-open::after { position: fixed; inset: 0; z-index: 35; background: rgba(7,26,61,.45); content: ""; }
    .admin-shell { margin-left: 0; }
    .admin-topbar { display: flex; padding: .65rem 1rem; }
    .menu-toggle { display: inline-grid; }
    .admin-content { padding: 1.15rem 1rem; }
    .live-toolbar { align-items: flex-start; flex-direction: column; gap: .65rem; }
    .admin-content > .page-heading:first-child {
        min-height: 0;
        margin: 0 0 1.25rem;
        padding: 0;
        border: 0;
        background: transparent;
    }
    .dashboard-heading-actions { width: 100%; flex-wrap: wrap; }
    .dashboard-search { width: 100%; min-width: 0; }
    .metric-grid, .report-grid { grid-template-columns: 1fr; }
    .wizard, .split-admin, .voters-layout, .weight-layout, .results-layout, .security-grid, .rubric-editor-grid { grid-template-columns: 1fr; }
    .event-preview, .preview-public, .voters-side-stack { position: static; }
    .voters-side-stack { grid-template-columns: 1fr; }
    .live-grid { grid-template-columns: 1fr; }
    .live-grid > :last-child { grid-column: auto; }
    .projection-stage { min-height: 100dvh; width: 100%; max-width: 100vw; box-sizing: border-box; grid-template-columns: minmax(0, 1fr); padding: 1.25rem 1rem 2.5rem; gap: 1.25rem; overflow-x: hidden; }
    .projection-center { order: 1; min-height: auto; min-width: 0; width: 100%; max-width: 100%; border: 0; padding: .5rem 0; gap: .85rem; box-sizing: border-box; }
    .projection-participant { width: 100%; max-width: 100%; min-width: 0; align-self: center; display: grid; justify-items: center; box-sizing: border-box; }
    .projection-center h1 { font-size: clamp(1.35rem, 5.5vw, 2.2rem); max-width: 100%; width: 100%; word-break: break-word; overflow-wrap: anywhere; box-sizing: border-box; margin: .5rem 0 .25rem; }
    .projection-center h2 { font-size: clamp(.85rem, 3.8vw, 1.25rem); max-width: 100%; width: 100%; word-break: break-word; overflow-wrap: anywhere; box-sizing: border-box; }
    .projection-monitor { order: 2; min-width: 0; width: 100%; max-width: 100%; grid-column: auto; grid-template-columns: minmax(0, 1fr); gap: .75rem; box-sizing: border-box; }
    .projection-monitor-card { min-width: 0; width: 100%; box-sizing: border-box; padding: .85rem 1rem; }
    .projection-monitor-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
    .projection-monitor-top h3 { font-size: 1.15rem; margin: 0; }
    .projection-monitor-top strong { font-size: 1.75rem; }
    .projection-join { order: 3; min-width: 0; width: 100%; max-width: 100%; padding: 1.25rem 0 0; border-top: 1px solid rgba(255,255,255,.1); gap: 1rem; box-sizing: border-box; }
    .projection-entry-actions { width: 100%; max-width: 320px; margin: 0 auto; grid-template-columns: 1fr; gap: .5rem; }
    .projection-cta { max-width: 100%; border-radius: 1rem; font-size: .82rem; white-space: normal; text-align: center; }
    .qr-frame { width: min(100%, 180px); }
    .projection-body { overflow-y: auto; overflow-x: hidden; width: 100%; -webkit-overflow-scrolling: touch; }
    .projection-body.ranking-body { overflow-y: auto; overflow-x: hidden; width: 100%; max-width: 100vw; }
    .ranking-body .ranking-stage { overflow-x: hidden; width: 100%; max-width: 100vw; box-sizing: border-box; }
    .ranking-orb { display: none !important; }
    .ranking-watermark { display: none !important; }
    .ranking-projection-link { display: none !important; }
    .participants-layout { grid-template-columns: 1fr; }
    .participants-side-stack { position: static; }
    .ranking-body .ranking-heading { display: grid; }
    .ranking-heading-actions { justify-items: start; }
    .ranking-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; background: transparent; border: none; margin-bottom: 2.5rem; }
    .ranking-summary article { min-height: auto; padding: .85rem .5rem; flex-direction: column; align-items: center; text-align: center; gap: .35rem; border-radius: .85rem; border: 1px solid rgba(255,255,255,.1); background: rgba(7,26,61,.75); }
    .ranking-summary article > .material-symbols-outlined { width: 2.2rem; height: 2.2rem; font-size: 1.25rem; border-radius: .6rem; }
    .ranking-summary strong { font-size: 1.35rem; line-height: 1.1; }
    .ranking-summary small { font-size: .68rem; line-height: 1.2; text-align: center; }
    .public-podium { min-height: auto; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; width: 100%; box-sizing: border-box; align-items: end; }
    .public-podium-place { min-width: 0; width: 100%; max-width: 100%; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; box-sizing: border-box; }
    .podium-person, .place-1 .podium-person { min-height: auto; min-width: 0; width: 100%; max-width: 100%; padding: .6rem .35rem .75rem; box-sizing: border-box; overflow: hidden; }
    .podium-person h3 { max-width: 100%; font-size: clamp(.8rem, 2vw, 1.05rem); line-height: 1.25; margin: .3rem 0 .15rem; word-break: break-word; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .podium-person p { max-width: 100%; min-height: auto; font-size: clamp(.65rem, 1.6vw, .75rem); line-height: 1.25; margin: 0 0 .5rem; word-break: break-word; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .podium-person > strong { display: inline-block; font-size: clamp(.85rem, 2.2vw, 1.15rem); padding: .2rem .5rem; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); color: #ffddb8; margin-top: auto; white-space: nowrap; }
    .place-1 .podium-person > strong { background: rgba(254,162,3,.25); border-color: rgba(254,162,3,.5); color: #fff; }
    .public-podium-block { height: 6.5rem; border-radius: .85rem .85rem 0 0; }
    .place-1 .public-podium-block { height: 9.5rem; }
    .place-3 .public-podium-block { height: 5rem; }
    .public-podium-block > span:first-child { font-size: clamp(2.6rem, 6vw, 4rem); }
    .ranking-bar-row { grid-template-columns: 1fr; gap: .45rem; }
    .ranking-chart-scale { padding-left: 0; padding-right: .25rem; }
}

@media (max-width: 760px) {
    .rubric-import-controls { grid-template-columns: 1fr; }
    .rubric-import-controls > div { align-items: flex-start; flex-wrap: wrap; }
    .rubric-import-controls > div > .csv-hint { flex-basis: 100%; text-align: left; }
    .rubric-import .csv-hint-button { justify-content: flex-start; margin-left: 0; }
    .rubric-save-all { align-items: stretch; flex-direction: column; }
    .rubric-save-all .button { justify-content: center; width: 100%; }
    .projection-center .participant-detail-meta { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: auto; }
    .segmented-code { gap: .15rem; }
    .segmented-code input { width: 2.7rem; height: 3.35rem; }
    .page-heading { display: grid; }
    .event-context-banner { align-items: flex-start; flex-direction: column; margin-top: 0; }
    .issued-access { grid-template-columns: 1fr; }
    .issued-access-qr { width: 150px; height: 150px; }
    .page-actions { width: 100%; }
    .page-actions .button { flex: 1; }
    .wizard-steps { overflow-x: auto; grid-template-columns: repeat(7, minmax(70px, 1fr)); padding-bottom: .5rem; }
    .admin-user > span:first-child { display: none; }
    .control-actions { grid-template-columns: 1fr; }
    .control-actions .primary-operation { grid-column: auto; }
    .audit-item { grid-template-columns: 1fr; gap: .15rem; }
    .projection-stage { padding: 1rem .75rem 2rem; width: 100%; max-width: 100vw; box-sizing: border-box; }
    .projection-center h1 { font-size: clamp(1.25rem, 5vw, 1.75rem); }
    .projection-center h2 { font-size: clamp(.82rem, 3.4vw, 1.05rem); }
    .projection-timer { width: 100%; max-width: 100%; padding: .75rem 1rem; border-radius: 1.2rem; box-sizing: border-box; }
    .projection-timer strong { font-size: clamp(2rem, 8vw, 3.2rem); }
    .event-code { font-size: clamp(1.5rem, 6.5vw, 2.2rem); }
    .qr-frame { width: min(100%, 160px); }
    .projection-monitor { grid-template-columns: minmax(0, 1fr); width: 100%; }
    .projection-monitor-card { padding: .85rem 1rem; }
    .projection-podium { grid-template-columns: 1fr; }
    .winner-card.first { transform: none; }
    .mfa-setup { align-items: flex-start; flex-direction: column; }
    .recovery-codes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .projection-entry-actions { grid-template-columns: 1fr; }
    .participant-editor-card form { padding-inline: 1rem; }
    .participant-editor-actions { align-items: stretch; flex-direction: column-reverse; }
    .participants-table td, .participants-table th { padding-inline: .8rem; }
    .participants-side-stack { grid-template-columns: 1fr; }
    .voters-side-stack { grid-template-columns: 1fr; }
    .ranking-body .ranking-stage { padding: 1.25rem .75rem 2.5rem; width: 100%; max-width: 100vw; box-sizing: border-box; overflow-x: hidden; }
    .ranking-body .ranking-content { width: 100%; max-width: 100%; box-sizing: border-box; overflow-x: hidden; }
    .ranking-body .ranking-heading h1 { font-size: clamp(1.6rem, 7.5vw, 2.3rem); line-height: 1.1; margin: .5rem 0 .75rem; word-break: break-word; overflow-wrap: break-word; max-width: 100%; }
    .ranking-body .ranking-heading p { font-size: .88rem; }
    .ranking-summary { margin-bottom: 2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; background: transparent; border: none; width: 100%; box-sizing: border-box; }
    .ranking-summary article { padding: .65rem .25rem; min-width: 0; width: 100%; box-sizing: border-box; }
    .ranking-summary article > .material-symbols-outlined { width: 2rem; height: 2rem; font-size: 1.15rem; border-radius: .5rem; }
    .ranking-summary strong { font-size: 1.2rem; }
    .ranking-summary small { font-size: .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; width: 100%; }
    .results-showcase { margin-bottom: 2.5rem; }
    .results-section-heading { gap: .7rem; margin-bottom: 1.25rem; }
    .results-section-heading h2 { font-size: clamp(1.25rem, 5.5vw, 1.6rem); }
    .section-rule { display: none; }
    .public-podium { min-height: auto; padding: 0 !important; margin: 0 0 2.2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .38rem; width: 100%; box-sizing: border-box; align-items: end; }
    .public-podium-place { min-width: 0; width: 100%; max-width: 100%; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch !important; box-sizing: border-box; }
    .podium-person, .place-1 .podium-person { min-height: auto; min-width: 0; width: 100%; max-width: 100%; padding: .4rem .15rem .55rem; box-sizing: border-box; overflow: hidden; }
    .podium-medal { width: 2.5rem; height: 2.5rem; margin-bottom: .3rem; align-self: center; }
    .place-1 .podium-medal { width: 3rem; height: 3rem; box-shadow: 0 0 35px rgba(254,162,3,.45); }
    .podium-position { font-size: .62rem; letter-spacing: .05em; margin-bottom: .2rem; text-align: center; }
    .place-1 .podium-position { color: #ffd975; }
    .place-2 .podium-position { color: #dbe4f0; }
    .place-3 .podium-position { color: #f5ba93; }
    .podium-person h3 { min-width: 0; width: 100%; max-width: 100%; font-size: clamp(.72rem, 2.3vw, .85rem); line-height: 1.25; margin: .15rem 0 .1rem; word-break: break-word; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: center; }
    .place-1 .podium-person h3 { font-size: clamp(.78rem, 2.6vw, .95rem); }
    .podium-person p { min-width: 0; width: 100%; max-width: 100%; min-height: auto; font-size: clamp(.55rem, 1.7vw, .65rem); line-height: 1.2; margin: 0 0 .35rem; word-break: break-word; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: center; }
    .podium-person > strong { font-size: clamp(.72rem, 2.4vw, .88rem); padding: .15rem .45rem; border-radius: 999px; background: rgba(4,20,50,.75); border: 1px solid rgba(255,255,255,.18); margin-top: auto; margin-bottom: .35rem; white-space: nowrap; align-self: center; }
    .podium-person > strong small { margin-left: .2rem; }
    .place-1 .podium-person > strong { font-size: clamp(.78rem, 2.6vw, .95rem); background: rgba(254,162,3,.25); border-color: rgba(254,162,3,.6); color: #fff; box-shadow: 0 4px 15px rgba(254,162,3,.2); }
    .public-podium-block { width: 100% !important; border-radius: .85rem .85rem 0 0; box-sizing: border-box; display: flex !important; align-items: center !important; justify-content: center !important; overflow: hidden; border-bottom: 0 !important; }
    .public-podium-block > span:first-child { font-family: Montserrat, sans-serif; font-weight: 800; opacity: .95; line-height: 1; }
    .place-1 .public-podium-block { height: 7.5rem; color: #2b1700; background: linear-gradient(155deg, #ffe08a, #fea203 60%, #cf7500); box-shadow: 0 10px 40px rgba(254,162,3,.3), inset 0 2px 0 rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.3); }
    .place-1 .public-podium-block > span:first-child { font-size: clamp(2.6rem, 8vw, 3.6rem); }
    .place-2 .public-podium-block { height: 5.2rem; color: #172338; background: linear-gradient(155deg, #ffffff, #d8e2ee 55%, #a6b5c7); box-shadow: 0 8px 25px rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.4); }
    .place-2 .public-podium-block > span:first-child { font-size: clamp(2.2rem, 7vw, 3rem); }
    .place-3 .public-podium-block { height: 4rem; color: #2b1202; background: linear-gradient(155deg, #f7ba8e, #cf7438 60%, #9e4a1a); box-shadow: 0 8px 25px rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.25); }
    .place-3 .public-podium-block > span:first-child { font-size: clamp(1.9rem, 6.5vw, 2.6rem); }
    .podium-star { font-size: 1.6rem; right: .35rem; bottom: .35rem; opacity: .3; color: #2b1700; }
    .ranking-visuals { gap: 1.25rem; min-width: 0; width: 100%; max-width: 100%; }
    .ranking-panel { padding: 1rem .85rem; border-radius: 1rem; overflow: hidden; box-sizing: border-box; min-width: 0; width: 100%; max-width: 100%; }
    .ranking-bar-label strong { font-size: .82rem; }
    .ranking-bar-label small { font-size: .68rem; }
    .ranking-bar-track { height: 2.15rem; border-radius: .5rem; }
    .ranking-bar-fill span { font-size: .72rem; padding-right: .5rem; }
    .ranking-chart-scale { padding-left: 0; padding-right: .2rem; font-size: .62rem; }
    .ranking-detail-panel .table-wrap { min-width: 0; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .ranking-table { min-width: 480px; width: 100%; }
    .ranking-table th, .ranking-table td { padding: .65rem .5rem; font-size: .78rem; }
    .ranking-table-position { width: 1.8rem; height: 1.8rem; font-size: .75rem; }
    .ranking-footer { align-items: flex-start; flex-direction: column; gap: .5rem; padding-top: 1.5rem; margin-top: 1.5rem; }
    .mobile-content { padding: 1rem .75rem calc(5rem + env(safe-area-inset-bottom, 0px)); }
    .rating-scale label { width: 2.15rem; height: 2.15rem; font-size: .82rem; }
}

/* ==========================================================================
   Modals & Dialogs
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 30, 85, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}
.modal-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--outline);
    display: flex;
    flex-direction: column;
    animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--surface-high);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.modal-header h3 { margin: 0; font-size: 1.2rem; color: var(--text); }
.modal-body { padding: 1.5rem; }
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--surface-high);
    background: var(--surface-low);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

/* ==========================================================================
   Event Context Switcher (Admin Top Banner)
   ========================================================================== */
.event-context-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    background: #ffffff;
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    margin-bottom: 1.5rem;
}
.event-switcher-current {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.event-switcher-current .icon {
    color: var(--primary);
    font-size: 1.5rem;
}
.event-switcher-current .event-info {
    display: flex;
    flex-direction: column;
}
.event-switcher-current .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.05em;
}
.event-switcher-current .name {
    font-size: 1.05rem;
    color: var(--text);
}
.event-switcher-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.switcher-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: 320px;
    max-height: 380px;
    background: #ffffff;
    border: 1px solid var(--outline);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-2);
    z-index: 999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.switcher-header {
    padding: 0.75rem 1rem;
    background: var(--surface-low);
    border-bottom: 1px solid var(--outline);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
}
.switcher-list {
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.switcher-item {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    border-bottom: 1px solid var(--surface-low);
    transition: background 0.15s ease;
}
.switcher-item:hover { background: var(--surface); }
.switcher-item.is-active { background: rgba(4, 46, 128, 0.08); }
.switcher-item .item-title {
    display: flex;
    flex-direction: column;
}
.switcher-item .item-title strong {
    font-size: 0.88rem;
    color: var(--text);
}
.switcher-item .item-title .code {
    font-size: 0.75rem;
    color: var(--muted);
}
.switcher-item .item-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.switcher-item .round-badge {
    font-size: 0.72rem;
    background: var(--surface-high);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    color: var(--text);
}
.switcher-footer {
    padding: 0.6rem 1rem;
    background: var(--surface-low);
    border-top: 1px solid var(--outline);
    text-align: center;
}
.switcher-footer a {
    font-size: 0.8rem;
    color: var(--primary-container);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

/* ==========================================================================
   Buttons & Badges Utilities
   ========================================================================== */
.button-sm {
    min-height: 32px;
    padding: 0.4rem 0.75rem;
    font-size: 0.84rem;
    border-radius: 0.45rem;
}
.button-outline {
    background: transparent;
    color: var(--primary-container);
    border: 1px solid var(--outline);
}
.button-outline:hover {
    background: var(--surface-low);
    border-color: var(--primary-mid);
}
.button-ghost {
    background: transparent;
    color: var(--primary-container);
    border: 0;
}
.button-ghost:hover {
    background: var(--surface-low);
}
.badge-subtle {
    background: var(--surface-high);
    color: var(--text);
}
.badge-sm {
    padding: 0.15rem 0.45rem;
    font-size: 0.72rem;
}
.pulse-indicator {
    animation: pulseGlow 1.8s infinite ease-in-out;
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.85); opacity: 0.4; }
}

/* Modal Animations & Styling */
.modal-backdrop {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(6px) !important;
    animation: modalBgFadeIn 0.2s ease-out;
}
@keyframes modalBgFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.team-showcase-modal {
    animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
}
@keyframes modalScaleUp {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.team-modal-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(90deg);
}

/* Sidebar User Card */
.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-on-dark, #ffffff);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-user-card:hover, .sidebar-user-card.is-active {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent, #fea203);
}
.sidebar-user-card .user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent, #fea203);
    color: #17233D;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sidebar-user-card .user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.sidebar-user-card .user-info strong {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-card .user-info small {
    font-size: 11px;
    opacity: 0.75;
    color: var(--accent, #fea203);
}

/* Template Cards */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 14px;
}
.template-card {
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 18px 20px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.template-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px -6px rgba(4, 46, 128, 0.12);
}
.template-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}
.template-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}
.template-tag {
    background: var(--surface-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
    .admin-sidebar, .admin-topbar, .page-actions, .admin-logout, .toast { display: none !important; }
    .admin-shell { margin: 0; }
    .admin-content { padding: 0; }
    body { background: #fff; }
    .card { box-shadow: none; }
}
