/* ============================================
   ADMIN DASHBOARD — Sidebar layout styles
   Uses shared design tokens from main.css (:root)
   ============================================ */

/* ── Shell ── */
.adm-shell {
    background: var(--t-bg, #f1f5f9);
    min-height: 100vh;
    font-family: 'Inter', system-ui, sans-serif;
    box-sizing: border-box;
    /* Ensure shell starts from the very top — main.css hides the
       outer header/nav in admin-mode so nothing sits above this */
    position: relative;
}

/* ── Theme bar (overview section) ── */
.adm-theme-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 14px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-light, #f1f5f9);
    margin-bottom: 20px;
}

/* ── Top Bar ── */
.adm-topbar {
    background: var(--t-header-bg, var(--cosmic-deep, #0f172a));
    border-bottom: 3px solid var(--t-header-bdr, rgba(249,115,22,0.6));
    padding: 14px 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
    color: white;
}
.adm-topbar .header-container {
    max-width: var(--max-width, 1400px);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* Centre area: tournament name + admin badge */
.adm-topbar-center {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.adm-topbar-tournament {
    font-size: 15px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.adm-topbar-user {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}
.adm-topbar-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

/* ── Admin Hamburger Button ── */
.adm-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .adm-hamburger {
        display: flex;
    }
}
.adm-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: 0.2s;
}

/* ── Admin Top Bar Layout ── */
.adm-top-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.adm-top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.adm-topbar-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--t-brand, #f97316);
    background: rgba(249,115,22,0.12);
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(249,115,22,0.25);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Legacy left/right — kept for any remaining references */
.adm-topbar-left  { display: flex; align-items: center; gap: 14px; }
.adm-topbar-title { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.adm-topbar-sub   { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.adm-topbar-right { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── Back to site button ── */
.adm-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.adm-back-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.45);
    transform: none;
}
.adm-back-btn span {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.85;
}

/* ── Topbar divider ── */
.adm-topbar-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.18);
    flex-shrink: 0;
}

/* ── Tournament badge ── */
.adm-tour-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(99,102,241,0.15);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(99,102,241,0.35);
}
.adm-tour-icon { font-size: 14px; }
.adm-tour-name {
    font-weight: 700;
    font-size: 13px;
    color: #a5b4fc;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.adm-tour-switch {
    font-size: 11px;
    background: #4f46e5;
    color: white;
    border: none;
    padding: 3px 9px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    font-family: inherit;
}
.adm-tour-switch:hover {
    background: #4338ca;
    transform: none;
}

.adm-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--orange-primary, #f97316);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: white; flex-shrink: 0;
}

/* adm-pill — header ghost pill buttons, white-on-dark variant */
.adm-pill {
    padding: 7px 16px; border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08); color: white;
    font-size: 12px; font-weight: 600; cursor: pointer;
    transition: background 0.2s; white-space: nowrap;
}
.adm-pill:hover       { background: rgba(255,255,255,0.16); }
.adm-pill.primary     { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.35); }
.adm-pill.primary:hover { background: rgba(255,255,255,0.25); }
.adm-pill.accent      { background: var(--orange-primary, #f97316); border-color: var(--orange-primary, #f97316); }
.adm-pill.accent:hover { background: var(--orange-hover, #ea580c); }

/* ── Stat Strip ── */
.adm-stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.adm-chip {
    background: var(--bg-card, white);
    padding: 18px 20px;
    border-right: 1px solid var(--border, #e2e8f0);
    border-top: 3px solid transparent;
}
.adm-chip:last-child { border-right: none; }
.adm-chip-icon  { font-size: 20px; margin-bottom: 6px; }
.adm-chip-val   { font-size: 28px; font-weight: 800; line-height: 1; }
.adm-chip-label { font-size: 13px; font-weight: 600; color: var(--cosmic-deep, #0f172a); margin-top: 4px; }
.adm-chip-sub   { font-size: 11px; color: var(--text-muted, #94a3b8); margin-top: 2px; }

/* ── Layout ── */
.adm-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.adm-sidebar {
    width: 210px;
    flex-shrink: 0;
    background: var(--t-bg, white);
    border-right: 1px solid var(--t-border, #e2e8f0);
    padding: 16px 0;
    overflow-y: auto;
    display: block;
}

/* ── Content Area ── */
.adm-body {
    flex: 1;
    min-width: 0;
    padding: 24px;
    background: var(--t-bg, #f1f5f9);
    min-height: 100vh;
}

.adm-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    padding: 0 16px;
    height: 44px;
    border: none;
    background: none;
    color: var(--text-secondary, #475569);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    border-left: 3px solid transparent;
    line-height: 1;
    transition: background 0.15s, color 0.15s, border-color 0.15s, padding-left 0.15s;
}
.adm-nav-item:hover {
    background: var(--bg-page, #f8fafc);
    color: var(--orange-primary, #f97316);
    padding-left: 20px;
    border-left-color: transparent;
}
.adm-nav-item.active {
    background: var(--orange-light, #fff7ed);
    color: var(--orange-primary, #f97316);
    font-weight: 600;
    border-left-color: var(--orange-primary, #f97316);
    padding-left: 16px;
}
.adm-nav-icon {
    width: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
}
.adm-nav-label {
    white-space: nowrap;
    flex: 1;
    padding-left: 6px;
    font-size: 13px;
    line-height: 1;
}

/* ── Mobile Navigation ── */
.adm-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card, white);
    border-top: 1px solid var(--border, #e2e8f0);
    padding: 8px 4px;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}
.adm-mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.adm-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: none;
    background: none;
    color: var(--text-muted, #64748b);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-md, 8px);
    transition: all 0.2s ease;
    flex: 1;
    max-width: 80px;
}
.adm-mobile-nav-item .adm-nav-icon { font-size: 20px; width: auto; }
.adm-mobile-nav-item .adm-nav-label { display: block; padding: 0; font-size: 10px; white-space: nowrap; }
.adm-mobile-nav-item:hover  { color: var(--orange-primary, #f97316); background: var(--bg-page, #f8fafc); }
.adm-mobile-nav-item.active { color: var(--orange-primary, #f97316); background: var(--orange-light, #fff7ed); }

.adm-mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--orange-primary, #f97316);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(249,115,22,0.3);
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.2s ease;
}
.adm-mobile-menu-toggle:hover { background: var(--orange-hover, #ea580c); transform: scale(1.05); }

/* ── Body ── */
.adm-body {
    flex: 1;
    padding: 28px;
    min-width: 0;
    /* Body takes remaining width; page-level scroll handles overflow —
       sidebar remains sticky relative to viewport */
}
.adm-section-head { margin-bottom: 24px; }
.adm-section-head h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: var(--t-text, #0f172a); }
.adm-section-head p  { margin: 0; color: var(--t-text-light, #64748b); font-size: 14px; }

/* ── Cards ── */
.adm-card {
    background: var(--t-bg, white);
    border-radius: 14px;
    padding: 22px;
    border: 1px solid var(--border, #e2e8f0);
    box-shadow: var(--shadow-sm, 0 1px 4px rgba(0,0,0,0.05));
    margin-bottom: 20px;
}
.adm-card.danger-card { background: #fff7f7; border-color: #fecaca; }
.adm-card:last-child  { margin-bottom: 0; }
.adm-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--cosmic-deep, #0f172a);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.adm-card-count {
    background: var(--bg-light, #f1f5f9);
    color: var(--text-muted, #64748b);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}
.adm-card-desc    { font-size: 13px; color: var(--text-muted, #64748b); margin: -8px 0 14px; line-height: 1.5; }
.adm-card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.adm-card-action  { margin-top: 12px; }

/* ── Two-col & Overview ── */
.adm-two-col      { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.adm-overview-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* ── Forms ── */
.adm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 4px;
}
.adm-form-stack { display: flex; flex-direction: column; gap: 12px; }
.adm-field      { display: flex; flex-direction: column; gap: 5px; }
.adm-field-full { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 5px; }
.adm-label {
    font-size: 11px; font-weight: 700; color: var(--text-muted, #64748b);
    text-transform: uppercase; letter-spacing: 0.05em;
}
.adm-input, .adm-select {
    width: 100%; padding: 9px 11px;
    border: 1.5px solid var(--border, #e2e8f0); border-radius: 9px;
    font-size: 13px; color: var(--cosmic-deep, #0f172a); background: var(--bg-page, #f8fafc);
    box-sizing: border-box; transition: border-color 0.2s; font-family: inherit;
}
.adm-input:focus, .adm-select:focus {
    outline: none;
    border-color: var(--orange-primary, #f97316);
    background: var(--bg-card, white);
}
.adm-checks    { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.adm-check     { font-size: 13px; color: var(--text-secondary, #475569); display: flex; align-items: center; gap: 7px; cursor: pointer; }
.adm-check input { accent-color: var(--orange-primary, #f97316); cursor: pointer; }
.adm-check-sm  { font-size: 12px; color: var(--text-secondary, #475569); display: flex; align-items: center; gap: 6px; cursor: pointer; margin-bottom: 4px; }
.adm-check-sm input { accent-color: var(--orange-primary, #f97316); cursor: pointer; }
.adm-affil-box {
    max-height: 120px; overflow-y: auto;
    border: 1.5px solid var(--border, #e2e8f0); border-radius: 9px;
    padding: 10px 12px; background: var(--bg-page, #f8fafc);
}
.adm-spk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ── Buttons — admin-specific button variants ── */
.adm-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 5px; padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-md, 8px);
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background var(--transition-base), border-color var(--transition-base),
                box-shadow var(--transition-base), transform var(--transition-base);
    white-space: nowrap; font-family: inherit; line-height: 1.4;
}
.adm-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }
.adm-btn.full { width: 100%; }
.adm-btn.sm   { padding: 5px 11px; font-size: 12px; }
.adm-btn.xs   { padding: 3px 8px;  font-size: 11px; border-radius: 5px; }

/* Primary — cosmic deep (matches brand identity) */
.adm-btn.primary       { background: var(--cosmic-deep, #0f172a); color: white; border-color: var(--cosmic-deep, #0f172a); }
.adm-btn.primary:hover { background: var(--cosmic-slate, #1e293b); border-color: var(--cosmic-slate, #1e293b); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,23,42,0.25); }

/* Accent — orange, for the one high-priority CTA per screen */
.adm-btn.accent       { background: var(--orange-primary, #f97316); color: white; border-color: var(--orange-primary, #f97316); }
.adm-btn.accent:hover { background: var(--orange-hover, #ea580c); border-color: var(--orange-hover, #ea580c); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249,115,22,0.25); }

/* Secondary */
.adm-btn.secondary       { background: var(--bg-card, white); color: var(--cosmic-deep, #0f172a); border-color: var(--border, #e2e8f0); }
.adm-btn.secondary:hover { background: var(--bg-page, #f8fafc); border-color: var(--cosmic-muted, #94a3b8); box-shadow: var(--shadow-sm); }

/* Warning */
.adm-btn.warning       { background: var(--warning-light, #fef3c7); color: #92400e; border-color: #fcd34d; }
.adm-btn.warning:hover { background: #fde68a; border-color: var(--warning, #f59e0b); }

/* Danger */
.adm-btn.danger       { background: var(--danger, #dc2626); color: white; border-color: var(--danger, #dc2626); }
.adm-btn.danger:hover { background: var(--danger-dark, #b91c1c); border-color: var(--danger-dark, #b91c1c); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(220,38,38,0.2); }

/* ── Badges ── */
.adm-badge {
    display: inline-block; padding: 2px 8px;
    border-radius: 20px; font-size: 11px; font-weight: 700;
}
.adm-badge.blue  { background: var(--info-light, #dbeafe); color: #1d4ed8; }
.adm-badge.green { background: var(--success-light, #dcfce7); color: #16a34a; }
.adm-badge.red   { background: var(--danger-light, #fee2e2); color: var(--danger, #dc2626); }
.adm-badge.amber { background: var(--warning-light, #fef3c7); color: #92400e; }
.adm-badge.grey  { background: var(--bg-light, #f1f5f9); color: var(--text-muted, #64748b); }

/* ── Tables ── */
.adm-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border, #e2e8f0); }
.adm-table {
    width: 100%; border-collapse: collapse;
    font-size: 13px;
}
.adm-table th {
    background: var(--bg-page, #f8fafc); padding: 11px 14px;
    text-align: left; font-weight: 700; color: var(--text-muted, #64748b);
    border-bottom: 1px solid var(--border, #e2e8f0);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
    white-space: nowrap;
}
.adm-table td     { padding: 12px 14px; border-bottom: 1px solid var(--border-light, #f1f5f9); color: var(--cosmic-slate, #1e293b); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td      { background: #fafafa; }

.adm-actions-cell  { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.adm-motion-cell   { max-width: 260px; color: var(--text-muted, #64748b); font-size: 12px; }
.adm-speakers-cell { font-size: 12px; color: var(--text-secondary, #475569); max-width: 220px; }
.adm-code          { background: var(--bg-light, #f1f5f9); padding: 1px 6px; border-radius: 4px; font-size: 11px; font-family: monospace; }

/* ── Inline edit ── */
.adm-inline-edit {
    background: var(--bg-page, #f8fafc); border-radius: 10px;
    padding: 18px; border: 1.5px solid var(--border, #e2e8f0);
}

/* ── Progress ── */
.adm-prog-item        { margin-bottom: 14px; }
.adm-prog-item:last-child { margin-bottom: 0; }
.adm-prog-hd  { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted, #64748b); margin-bottom: 5px; }
.adm-bar-bg   { height: 8px; background: var(--border, #e2e8f0); border-radius: 4px; overflow: hidden; }
.adm-bar-fill { height: 100%; background: var(--orange-primary, #f97316); border-radius: 4px; transition: width 0.5s; min-width: 2px; }

/* ── Publish ── */
.adm-publish-list { display: flex; flex-direction: column; gap: 4px; }
.adm-pub-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px; border-bottom: 1px solid var(--border-light, #f1f5f9);
    background: var(--bg-card, #fff);
    border-radius: 8px;
}
.adm-pub-row:last-child { border-bottom: none; }
.adm-pub-info  { display: flex; align-items: center; gap: 12px; flex: 1; }
.adm-pub-icon  { font-size: 20px; min-width: 28px; text-align: center; }
.adm-pub-label { font-size: 14px; font-weight: 600; color: var(--cosmic-deep, #0f172a); }
.adm-pub-desc  { font-size: 12px; color: var(--text-muted, #94a3b8); margin-top: 2px; }
.adm-pub-right { display: flex; align-items: center; gap: 10px; }
.adm-pub-state { font-size: 11px; font-weight: 700; }
.adm-pub-state.on  { color: var(--success, #10b981); }
.adm-pub-state.off { color: var(--text-muted, #94a3b8); }

.adm-toggle {
    position: relative; width: 44px; height: 24px;
    background: #cbd5e1; border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 12px;
    cursor: pointer; transition: background 0.2s; padding: 0; flex-shrink: 0;
    touch-action: manipulation;
}
.adm-toggle.on { background: var(--success, #10b981); }

@media (max-width: 480px) {
    .adm-toggle { width: 48px; height: 28px; }
    .adm-toggle-knob { width: 20px; height: 20px; top: 3px; left: 3px; }
    .adm-toggle.on .adm-toggle-knob { left: 25px; }
}
.adm-toggle-knob {
    position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; background: white; border-radius: 50%;
    transition: left 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); pointer-events: none;
}
.adm-toggle.on .adm-toggle-knob { left: 23px; }

/* ── URL lists ── */
.adm-url-stat  { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.adm-url-num   { font-size: 32px; font-weight: 800; color: var(--cosmic-deep, #0f172a); }
.adm-url-denom { font-size: 14px; color: var(--text-muted, #94a3b8); }
.adm-url-list  { margin-top: 14px; border-top: 1px solid var(--border-light, #f1f5f9); padding-top: 10px; max-height: 260px; overflow-y: auto; }
.adm-url-row   { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--bg-page, #f8fafc); }
.adm-url-row:last-child { border-bottom: none; }
.adm-url-dot   { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.adm-url-dot.green { background: var(--success, #10b981); }
.adm-url-dot.grey  { background: #cbd5e1; }
.adm-url-name  { flex: 1; font-size: 13px; color: var(--cosmic-slate, #1e293b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-url-acts  { display: flex; gap: 4px; flex-shrink: 0; }

/* ── Ballot status ── */
.adm-ballot-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.adm-prog-row { display: flex; align-items: center; gap: 10px; }
.adm-pct      { font-size: 13px; font-weight: 700; color: var(--orange-primary, #f97316); white-space: nowrap; }

/* ── Round rows ── */
.adm-round-row  { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-light, #f1f5f9); }
.adm-round-row:last-child { border-bottom: none; }
.adm-round-info { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; }
.adm-round-info strong { font-size: 13px; color: var(--cosmic-deep, #0f172a); }
.adm-round-info small  { font-size: 11px; color: var(--text-muted, #94a3b8); width: 100%; }
.adm-round-pct  { font-size: 13px; font-weight: 700; color: var(--orange-primary, #f97316); padding-left: 12px; white-space: nowrap; }

/* ── Info banner ── */
.adm-info-banner {
    background: var(--warning-light, #fefce8); border: 1px solid #fde68a;
    border-radius: 10px; padding: 12px 16px;
    font-size: 13px; color: #713f12;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

/* ── Danger ── */
.adm-danger-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0; border-bottom: 1px solid #fecaca; gap: 16px;
}
.adm-danger-item:last-child { border-bottom: none; }
.adm-danger-info { flex: 1; }
.adm-danger-info strong { display: block; color: #991b1b; margin-bottom: 4px; font-size: 14px; }
.adm-danger-info p { margin: 0; font-size: 12px; color: var(--danger-dark, #b91c1c); }

/* ── Access denied ── */
.adm-denied { text-align: center; padding: 80px 40px; }
.adm-denied h2 { color: var(--cosmic-deep, #0f172a); margin: 0 0 10px; }
.adm-denied p  { color: var(--text-muted, #64748b); }

/* ── Empty ── */
.adm-empty { text-align: center; color: var(--text-muted, #94a3b8); font-size: 13px; padding: 24px; }

/* ── Admin Hamburger Button ── */
.adm-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.adm-hamburger:hover { background: rgba(255,255,255,0.2); }
.adm-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
    pointer-events: none;
}

/* ── Sidebar drawer head (close button row) — mobile only ── */
.adm-sidebar-head {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    flex-shrink: 0;
}
.adm-sidebar-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 6px;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted, #64748b);
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}
.adm-sidebar-close-btn:hover {
    background: var(--bg-page, #f8fafc);
    color: var(--text-primary, #0f172a);
    border-color: var(--text-muted, #94a3b8);
}

/* ── Sidebar drawer foot (user info + logout) — mobile only ── */
.adm-sidebar-foot {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--border, #e2e8f0);
    flex-shrink: 0;
    margin-top: auto;
    background: var(--bg-page, #f8fafc);
}
.adm-sidebar-foot-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.adm-sidebar-foot-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--cosmic-deep, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.adm-sidebar-foot-role {
    font-size: 11px;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}
.adm-avatar--sm {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
    flex-shrink: 0;
}

/* ── Admin Sidebar Overlay ── */
.adm-sidebar-overlay {
    display: none !important;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
@media (max-width: 768px) {
    .adm-sidebar-overlay.adm-sidebar--open { display: block !important; }
}

/* ===== RESPONSIVE ===== */

/* Mobile: sidebar becomes a slide-in drawer */
@media (max-width: 768px) {
    /* ── Topbar ── */
    .adm-topbar { padding: 10px 12px; }
    .adm-topbar .header-container { gap: 8px; }
    .adm-topbar-center { flex: 0 1 auto; }
    .adm-topbar-tournament { max-width: 100px; }
    .adm-topbar-tag { display: none; }
    .adm-topbar-sub, .adm-topbar-divider, .adm-tour-badge { display: none; }
    .adm-back-btn > span { display: none; }
    .adm-back-btn { padding: 7px 10px; }
    .adm-avatar   { width: 28px; height: 28px; font-size: 11px; flex-shrink: 0; }
    #adm-topbar-username { display: none; }

    /* ── Stat strip: 4-col → 2×2 ── */
    .adm-stat-strip          { grid-template-columns: repeat(2, 1fr); }
    .adm-chip                { border-right: none; border-bottom: 1px solid var(--border, #e2e8f0); }
    .adm-chip:nth-child(odd) { border-right: 1px solid var(--border, #e2e8f0); }
    .adm-chip:nth-child(3),
    .adm-chip:nth-child(4)   { border-bottom: none; }
    .adm-chip-val   { font-size: 22px; }
    .adm-chip-label { font-size: 12px; }

    /* ── Layout: stack vertically ── */
    .adm-layout { flex-direction: column; min-height: auto; }
    .adm-body { padding: 16px; min-height: auto; }

    /* ── Sidebar: hide desktop sticky, show as drawer ── */
    .adm-sidebar {
        display: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 260px !important;
        height: 100vh !important;
        min-height: unset !important;
        padding: 16px 0 !important;
        border-right: 1px solid var(--border, #e2e8f0) !important;
        border-bottom: none !important;
        flex-direction: column !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 10001 !important;
        background: var(--bg-card, #fff) !important;
        box-shadow: 4px 0 24px rgba(0,0,0,0.15) !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1) !important;
    }
    .adm-sidebar.adm-sidebar--open {
        display: flex !important;
        transform: translateX(0) !important;
    }
    .adm-hamburger { display: flex; }
    .adm-sidebar-head { display: flex; }
    .adm-sidebar-foot { display: flex; }

    /* Nav items revert to standard vertical layout inside the drawer */
    .adm-nav-item {
        width: 100% !important;
        min-width: unset !important;
        height: 44px !important;
        padding: 0 16px !important;
        border-left: 3px solid transparent !important;
        border-radius: 0 !important;
        border-bottom: none !important;
        flex-shrink: 0;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 0 !important;
        white-space: nowrap;
        font-size: 13px !important;
    }
    .adm-nav-label { display: block !important; padding-left: 6px !important; font-size: 13px !important; text-align: left; flex: 1; }
    .adm-nav-icon  { width: 32px !important; font-size: 17px !important; justify-content: center; }
    .adm-nav-item.active {
        border-left: 3px solid var(--orange-primary, #f97316) !important;
        border-bottom: none !important;
    }
}
    .adm-sidebar.adm-sidebar--open { transform: translateX(0) !important; }

    /* Nav items revert to standard vertical layout inside the drawer */
    .adm-nav-item {
        flex-direction: row !important;
        width: 100% !important;
        min-width: unset !important;
        height: 44px !important;
        padding: 0 16px !important;
        border-left: 3px solid transparent !important;
        border-radius: 0 !important;
        border-bottom: none !important;
        flex-shrink: 0;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 0 !important;
        white-space: nowrap;
        font-size: 13px !important;
    }
    .adm-nav-label { display: block !important; padding-left: 6px !important; font-size: 13px !important; text-align: left; flex: 1; }
    .adm-nav-icon  { width: 32px !important; font-size: 17px !important; justify-content: center; }
    .adm-nav-item.active {
        border-left: 3px solid var(--orange-primary, #f97316) !important;
        border-bottom: none !important;
        background: var(--orange-light, #fff7ed) !important;
        color: var(--orange-primary, #f97316) !important;
        padding-left: 16px !important;
    }
    .adm-nav-item:hover {
        border-left: 3px solid transparent !important;
        border-bottom: none !important;
        padding-left: 20px !important;
        color: var(--orange-primary, #f97316);
    }

    /* ── Body & grids ── */
    .adm-body { padding: 14px; min-width: 0; }
    .adm-two-col, .adm-overview-grid { grid-template-columns: 1fr; }
    .adm-form-grid, .adm-spk-grid    { grid-template-columns: 1fr; }
    .adm-quick-grid                   { grid-template-columns: repeat(2, 1fr); }

    /* ── Cards ── */
    .adm-card { padding: 14px; }
    .adm-card-actions { flex-direction: column; gap: 8px; }
    .adm-card-actions .adm-btn { width: 100%; }

    /* ── Draw rows: drop judges column ── */
    .adm-draw-row    { grid-template-columns: 80px 1fr auto; gap: 8px; padding: 8px 10px; font-size: 12px; }
    .adm-draw-judges { display: none; }
    .adm-draw-team   { max-width: 110px; }

    /* ── Room grid ── */
    .adm-room-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }

    /* ── Tables & break tabs ── */
    .adm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .brk-tab-bar    { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }

    /* ── Misc ── */
    .adm-ballot-header              { flex-direction: column; align-items: flex-start; gap: 8px; }
    .adm-pub-row                    { flex-wrap: wrap; gap: 10px; padding: 10px; }
    .adm-pub-info                   { min-width: 60%; }
    .adm-pub-right                  { width: 100%; justify-content: space-between; }
    .adm-break-controls-actions     { flex-wrap: wrap; gap: 4px; }
    .adm-section-head h2           { font-size: 18px; }
    .adm-card-actions-bordered      { gap: 8px; }
    .adm-card-actions-bordered button { flex: 1; min-width: 120px; }
}

@media (max-width: 480px) {
    .adm-topbar { padding: 8px 10px; }
    .adm-topbar-title { font-size: 13px; max-width: 100px; }
    .adm-chip     { padding: 10px 8px; }
    .adm-chip-val { font-size: 18px; }
    .adm-chip-icon { font-size: 16px; margin-bottom: 3px; }
    .adm-chip-sub { display: none; }
    .adm-card { padding: 12px; }
    .adm-quick { padding: 12px 6px; }
    .adm-body  { padding: 10px; }
    .adm-draw-row  { grid-template-columns: 60px 1fr auto; padding: 6px 8px; }
    .adm-draw-team { max-width: 85px; }
    .adm-section-head h2 { font-size: 16px; }
}

/* Landscape phone: revert stat strip to 4-col */
@media (max-width: 768px) and (orientation: landscape) {
    .adm-stat-strip          { grid-template-columns: repeat(4, 1fr); }
    .adm-chip                { border-right: 1px solid var(--border, #e2e8f0); border-bottom: none; }
    .adm-chip:last-child     { border-right: none; }
    .adm-chip:nth-child(odd) { border-right: 1px solid var(--border, #e2e8f0); }
}

/* ── Layout utilities ── */
.adm-row         { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-row.end     { align-items: flex-end; }
.adm-row.between { justify-content: space-between; }
.adm-row.gap-sm  { gap: 6px; }
.adm-col         { display: flex; flex-direction: column; gap: 10px; }
.adm-grow        { flex: 1; min-width: 180px; }
.adm-grow-2      { flex: 2; min-width: 200px; }

/* ── Text utilities ── */
.adm-hint     { font-size: 13px; color: var(--text-muted, #94a3b8); margin: 8px 0 0; }
.adm-hint-xs  { font-size: 11px; color: var(--text-muted, #94a3b8); margin: 0; }
.adm-strong   { font-size: 15px; font-weight: 700; color: var(--cosmic-slate, #1e293b); }
.adm-muted    { font-size: 12px; color: var(--text-muted, #64748b); }
.adm-muted-sm { font-size: 11px; color: var(--text-muted, #94a3b8); }

/* ── Tournament list row ── */
.adm-tour-row {
    padding: 16px;
    border-radius: 10px;
    border: 2px solid var(--border, #e2e8f0);
    background: var(--bg-card, white);
    transition: border-color 0.2s, background 0.2s;
}
.adm-tour-row.is-active {
    border-color: #4f46e5;
    background: #f5f3ff;
}
.adm-tour-header     { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.adm-tour-meta       { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.adm-tour-meta-item  { font-size: 13px; color: var(--text-muted, #64748b); }
.adm-tour-actions    { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex-shrink: 0; }

/* Active tournament badge (indigo) */
.adm-badge.indigo    { background: #4f46e5; color: white; padding: 3px 10px; font-size: 11px; }
.adm-badge.active-tour { background: #ede9fe; color: #4f46e5; padding: 6px 12px; font-size: 13px; font-weight: 600; border-radius: 8px; }

/* Format badges */
.adm-format-badge {
    font-size: 11px; font-weight: 700;
    padding: 2px 10px; border-radius: 20px; border: 1px solid;
}
.adm-format-badge.bp  { background: #f5f3ff; color: #7c3aed; border-color: #ddd6fe; }
.adm-format-badge.std { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }

/* Info / how-it-works grid */
.adm-info-card { background: var(--bg-page, #f8fafc); border: 1px dashed #cbd5e1; }
.adm-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 8px;
}
.adm-info-item {
    padding: 14px;
    background: var(--bg-card, white);
    border-radius: 8px;
    border-left: 3px solid var(--border, #e2e8f0);
}
.adm-info-item.indigo { border-left-color: #4f46e5; }
.adm-info-item.indigo strong { color: #4f46e5; }
.adm-info-item.green  { border-left-color: var(--success, #10b981); }
.adm-info-item.green  strong { color: var(--success, #10b981); }
.adm-info-item.amber  { border-left-color: var(--warning, #f59e0b); }
.adm-info-item.amber  strong { color: #d97706; }
.adm-info-item p { font-size: 13px; color: var(--text-muted, #64748b); margin: 6px 0 0; }

/* Round action rows */
.adm-round-action-row {
    display: flex; align-items: center; gap: 10px;
    padding: 12px; background: var(--bg-page, #f8fafc);
    border-radius: 8px; flex-wrap: wrap;
}
.adm-round-action-info { flex: 1; min-width: 150px; }
.adm-round-action-info .adm-sub { font-size: 12px; color: var(--text-muted, #64748b); margin-top: 2px; }

/* Break section: ineligible badge */
.adm-inelig-count { background: var(--danger-light, #fee2e2); color: #991b1b; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }

/* Break preview card */
.adm-preview-card {
    border: 2px dashed var(--warning, #f59e0b) !important;
    background: #fffbeb !important;
}
.adm-preview-title { color: #b45309; margin: 0; }

/* Card actions with top border */
.adm-card-actions-bordered {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid var(--border-light, #f1f5f9);
}

/* Range input */
.adm-range {
    width: 100%;
    accent-color: var(--orange-primary, #f97316);
    margin-bottom: 4px;
}
.adm-range-labels {
    display: flex; justify-content: space-between;
    font-size: 12px; color: var(--text-muted, #94a3b8);
}
.adm-range-val { font-weight: 700; color: var(--cosmic-deep, #0f172a); }

/* KO-only label */
.adm-ko-label { font-size: 11px; color: var(--text-muted, #94a3b8); }

/* Section actions (list of things generated) */
.adm-gen-list { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-secondary, #475569); line-height: 1.9; }

/* Quick access grid — navigation shortcuts only */
.adm-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.adm-quick {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 16px 8px; border: 1.5px solid var(--border, #e2e8f0);
    background: var(--bg-page, #f8fafc); border-radius: 10px;
    cursor: pointer; transition: all 0.2s; font-size: 12px;
    font-weight: 600; color: var(--text-secondary, #475569);
    text-align: center;
}
.adm-quick .adm-quick-icon { font-size: 24px; line-height: 1; }
.adm-quick .adm-quick-label { font-size: 11px; font-weight: 600; }
.adm-quick:hover {
    border-color: var(--orange-primary, #f97316);
    background: var(--orange-light, #fff7ed);
    color: var(--orange-hover, #ea580c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249,115,22,0.15);
}

/* ── Chip color modifiers (replaces inline style="border-top-color:X;color:X") ── */
.adm-chip--blue   { border-top-color: var(--info,    #3b82f6); }
.adm-chip--blue   .adm-chip-val { color: var(--info,    #3b82f6); }
.adm-chip--green  { border-top-color: var(--success, #10b981); }
.adm-chip--green  .adm-chip-val { color: var(--success, #10b981); }
.adm-chip--amber  { border-top-color: var(--warning, #f59e0b); }
.adm-chip--amber  .adm-chip-val { color: var(--warning, #f59e0b); }
.adm-chip--purple { border-top-color: #8b5cf6; }
.adm-chip--purple .adm-chip-val { color: #8b5cf6; }

/* Break denied banner */
.adm-denied-icon { font-size: 56px; margin-bottom: 16px; }
/* ══════════════════════════════════════════════════════════════
   BREAK CONTROLS BAR — sub-element classes
   The .adm-break-controls-bar container itself is defined in
   patches.css (sticky positioning, theme-aware background).
   ══════════════════════════════════════════════════════════════ */

.adm-break-controls-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 48px;
}
.adm-break-controls-stat-val {
    font-size: 20px;
    font-weight: 800;
    color: white;
    line-height: 1;
}
.adm-break-controls-stat-lbl {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.adm-break-controls-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
    align-self: center;
}

.adm-break-controls-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* adm-btn.light — ghost white for dark backgrounds */
.adm-btn.light {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: rgba(255,255,255,0.25);
    font-size: 12px;
    padding: 6px 12px;
}
.adm-btn.light:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.45);
}

/* adm-btn.glow — orange CTA for dark backgrounds */
.adm-btn.glow {
    background: var(--orange-primary, #f97316);
    color: white;
    border-color: var(--orange-primary, #f97316);
    font-size: 12px;
    padding: 6px 12px;
    box-shadow: 0 0 12px rgba(249,115,22,0.4);
}
.adm-btn.glow:hover {
    background: var(--orange-hover, #ea580c);
    border-color: var(--orange-hover, #ea580c);
    box-shadow: 0 0 18px rgba(249,115,22,0.55);
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════
   BREAK SECTION TABS
   ══════════════════════════════════════════════════════════════ */
.brk-tab-bar {
    display: flex;
    border-bottom: 2px solid var(--border, #e2e8f0);
    background: var(--bg-page, #f8fafc);
    padding: 0 4px;
    gap: 2px;
}

.brk-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    font-family: inherit;
}
.brk-tab:hover {
    color: var(--cosmic-deep, #0f172a);
}
.brk-tab.brk-tab-active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.brk-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--bg-light, #f1f5f9);
    color: var(--text-muted, #64748b);
    font-size: 11px;
    font-weight: 700;
}
.brk-tab-active .brk-tab-count {
    background: #dbeafe;
    color: #1d4ed8;
}
.brk-tab-count--green { background: #dcfce7; color: #16a34a; }
.brk-tab-count--red   { background: #fee2e2; color: #dc2626; }
.brk-tab-active .brk-tab-count--green { background: #dcfce7; color: #16a34a; }
.brk-tab-active .brk-tab-count--red   { background: #fee2e2; color: #dc2626; }

/* ══════════════════════════════════════════════════════════════
   ROUND ROOM CARDS — uniform grid, fixed-height, no shape shift
   ══════════════════════════════════════════════════════════════ */
.adm-room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    align-items: stretch;
}

.adm-room-card {
    display: flex;
    flex-direction: column;
    background: var(--t-bg, #f8fafc);
    border: 1px solid var(--t-border, #e2e8f0);
    border-radius: 10px;
    padding: 12px;
    min-height: 120px;          /* consistent base height */
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.adm-room-card.done {
    background: var(--t-brand-light, #f0fdf4);
    border-color: var(--t-brand, #22c55e);
}
.adm-room-card.done:hover { border-color: var(--t-brand, #16a34a); }
.adm-room-card:not(.done):hover { border-color: var(--t-brand, #94a3b8); }

.adm-room-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-shrink: 0;
}
.adm-room-top strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--t-text, #0f172a);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.adm-room-status {
    font-size: 10px;
    font-weight: 700;
    color: var(--t-text-light, #94a3b8);
    white-space: nowrap;
    flex-shrink: 0;
}
.adm-room-card.done .adm-room-status { color: var(--t-brand, #22c55e); }

.adm-room-teams {
    font-size: 12px;
    color: var(--t-text, #475569);
    line-height: 1.4;
    margin-bottom: 4px;
    flex-shrink: 0;
    overflow: hidden;
    display: -webkit-box;
    /* clamp to two lines (standard first, then WebKit prefix) */
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.adm-logo:hover{
    cursor: pointer;

}
.adm-room-judges {
    font-size: 11px;
    color: var(--t-text-light, #94a3b8);
    margin-bottom: 4px;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.adm-room-scores {
    font-size: 13px;
    font-weight: 700;
    color: var(--cosmic-deep, #0f172a);
    margin-top: auto;
    padding-top: 4px;
}

/* Ballot button pushed to bottom of card */
.adm-ballot-btn {
    width: 100%;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 7px;
    border: 1px solid var(--t-brand, #f97316);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    margin-top: auto;
    text-align: center;
    flex-shrink: 0;
    background: var(--t-brand-light, #fff7ed);
    color: var(--t-brand, #f97316);
}
.adm-ballot-btn.pending { 
    background: var(--t-brand-light, #eff6ff); 
    color: var(--t-brand, #3b82f6); 
    border-color: var(--t-brand, #3b82f6); 
}
.adm-ballot-btn.pending:hover { 
    background: var(--t-brand, #3b82f6); 
    color: white; 
}
.adm-ballot-btn.done    { 
    background: var(--t-brand-light, #fef3c7); 
    color: #92400e; 
    border-color: var(--t-brand, #d97706); 
}
.adm-ballot-btn.done:hover { 
    background: var(--t-brand, #d97706); 
    color: white; 
}
/* ══════════════════════════════════════════════════════════════
   ROUNDS LAYOUT — side-by-side split
   ══════════════════════════════════════════════════════════════ */
.adm-rounds-split {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    align-items: start;
}
.adm-rounds-create-col {
    position: sticky;
    top: 20px;
}
.adm-rounds-live-col { min-width: 0; }

/* adm-rounds-split responsive: handled in the ≤900px block above */

/* ── Card modifiers ── */
.adm-card--flush  { padding: 0; overflow: hidden; margin-bottom: 0; }
.adm-card--no-mb  { margin-bottom: 0; }
.adm-card--mt     { margin-top: 16px; }

/* ── Card header strip (inside flush cards) ── */
.adm-card-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: var(--bg-page, #f8fafc);
    border-radius: 14px 14px 0 0;
}
.adm-card-title--inline { margin: 0; }
.adm-card-title-sub {
    font-weight: 400;
    color: var(--text-muted, #94a3b8);
    font-size: 12px;
}

/* ── Rounds list scrollable body ── */
.adm-rounds-list-body {
    padding: 12px;
    max-height: 75vh;
    overflow-y: auto;
}

/* ── Left-col per-round control cards ── */
.adm-round-ctrl {
    background: var(--bg-page, #f8fafc);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid var(--border, #e2e8f0);
}
.adm-round-ctrl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.adm-round-ctrl-title { font-size: 13px; }
.adm-round-ctrl-pct { font-size: 12px; font-weight: 700; color: var(--orange-primary, #f97316); }
.adm-round-ctrl-progress {
    height: 4px;
    background: var(--border, #e2e8f0);
    border-radius: 2px;
    margin-bottom: 10px;
    overflow: hidden;
}
.adm-round-ctrl-fill {
    height: 100%;
    background: var(--success, #10b981);
    border-radius: 2px;
    transition: width 0.4s;
}
.adm-round-ctrl-motion {
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Select size variants ── */
.adm-select--sm {
    width: auto !important;
    min-width: 120px;
    padding: 6px 10px;
    font-size: 12px;
}
.adm-col--sm { gap: 8px; }

/* ══════════════════════════════════════════════════════════════
   ADMIN FAST DRAW — displayAdminRounds() output
   Compact, scannable table-style layout with no DnD overhead.
   ══════════════════════════════════════════════════════════════ */
.adm-draw-round {
    background: var(--bg-card, white);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.adm-draw-round:last-child { margin-bottom: 0; }

.adm-draw-round-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-page, #f8fafc);
    border-bottom: 1px solid var(--border, #e2e8f0);
    gap: 10px;
    flex-wrap: wrap;
}
.adm-draw-motion {
    font-size: 12px;
    color: var(--text-muted, #64748b);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}
.adm-draw-round-pct {
    font-size: 12px;
    font-weight: 700;
    color: var(--warning, #f59e0b);
    white-space: nowrap;
}
.adm-draw-round-pct--done { color: var(--success, #10b981); }

.adm-draw-progress {
    height: 3px;
    background: var(--border, #e2e8f0);
}
.adm-draw-progress-fill {
    height: 100%;
    background: var(--success, #10b981);
    transition: width 0.4s;
}

.adm-draw-debates { display: flex; flex-direction: column; }

/* Each debate row */
.adm-draw-row {
    display: grid;
    grid-template-columns: 90px 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--border-light, #f1f5f9);
    font-size: 13px;
    transition: background 0.1s;
}
.adm-draw-row:last-child { border-bottom: none; }
.adm-draw-row:hover { background: var(--bg-page, #f8fafc); }
.adm-draw-row--done { background: #f0fdf4; }
.adm-draw-row--done:hover { background: #dcfce7; }

.adm-draw-room {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.adm-draw-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.adm-draw-dot--done    { background: var(--success, #10b981); }
.adm-draw-dot--pending { background: var(--warning, #f59e0b); }
.adm-draw-room-name { font-size: 11px; font-weight: 700; color: var(--text-muted, #64748b); }

.adm-draw-matchup {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}
.adm-draw-team {
    font-weight: 500;
    color: var(--cosmic-slate, #1e293b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
.adm-draw-team--winner { font-weight: 700; color: var(--success, #10b981); }
.adm-draw-vs    { font-size: 11px; font-weight: 600; color: var(--text-muted, #94a3b8); }
.adm-draw-score { font-size: 12px; font-weight: 700; color: var(--cosmic-slate, #1e293b); white-space: nowrap; }

.adm-draw-judges {
    font-size: 11px;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.adm-draw-no-judges    { color: #ef4444; font-style: italic; }
.adm-draw-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* Admin standalone mode — hide site chrome when body has .admin-mode */
body.admin-mode > header,
body.admin-mode > nav.dropdown-menu-container,
body.admin-mode > .mobile-nav-drawer,
body.admin-mode > footer {
    display: none !important;
}
body.admin-mode main {
    margin-top: 0 !important;
    padding-top: 0 !important;
    max-width: none !important;
}
body.admin-mode .adm-shell {
    min-height: 100vh;
}
@media (min-width: 769px) {
    .adm-sidebar,
    .adm-sidebar-overlay {
        display: none !important;
    }
}