:root {
    --ink: #111827;
    --muted: #64748b;
    --line: #d7dee8;
    --paper: #f7fafc;
    --white: #ffffff;
    --blue: #2454a6;
    --gold: #f4b63f;
    --red: #d33838;
    --green: #15803d;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a.ghost-btn, a.secondary-soft-btn { cursor: pointer; text-decoration: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.svg-icon { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { display: grid; grid-template-columns: 260px 1fr; height: 100vh; overflow: hidden; transition: grid-template-columns .2s ease; }
.app-shell.nav-collapsed { grid-template-columns: 84px 1fr; }
.sidebar { display: flex; flex-direction: column; gap: 24px; height: 100vh; overflow: hidden; background: #10151f; color: var(--white); padding: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand.large { margin-bottom: 18px; }
.brand-mark { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border: 0; border-radius: 8px; background: var(--gold); color: #1f1600; font-weight: 900; text-decoration: none; }
.brand small { display: block; color: #aab4c2; margin-top: 3px; }
.brand-copy { min-width: 0; }
.sidebar-toggle { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border: 1px solid #344055; border-radius: 8px; margin-left: auto; background: #182131; color: var(--white); line-height: 1; }
.nav { display: grid; gap: 8px; }
.nav-item, .logout-btn { display: flex; align-items: center; gap: 12px; min-height: 44px; border: 0; border-radius: 8px; padding: 13px 14px; color: #cbd5e1; background: transparent; text-align: left; font-weight: 800; text-decoration: none; }
.nav-item.active, .nav-item:hover, .logout-btn:hover { color: var(--white); background: #253044; }
.nav-icon { display: grid; flex: 0 0 26px; width: 26px; height: 26px; place-items: center; border-radius: 7px; background: #1d2738; color: var(--gold); }
.nav-icon .svg-icon { width: 15px; height: 15px; stroke-width: 2.2; }
.nav-item.active .nav-icon, .nav-item:hover .nav-icon { background: var(--gold); color: #1f1600; }
.settings-menu { display: grid; gap: 8px; margin-top: auto; }
.settings-toggle { width: 100%; }
.settings-caret { margin-left: auto; color: #94a3b8; line-height: 1; transition: transform .2s ease; }
.settings-caret .svg-icon { width: 18px; height: 18px; }
.settings-menu.open .settings-caret { transform: rotate(90deg); }
.settings-subnav { display: none; gap: 8px; padding-left: 12px; }
.settings-menu.open .settings-subnav { display: grid; }
.settings-subnav .nav-item { min-height: 38px; padding-block: 9px; }
.settings-subnav .nav-icon { flex-basis: 24px; width: 24px; height: 24px; font-size: 12px; }
.app-shell.nav-collapsed { grid-template-columns: 84px 1fr; }
.app-shell.nav-collapsed .sidebar { padding-inline: 14px; }
.app-shell.nav-collapsed .brand { justify-content: center; }
.app-shell.nav-collapsed .brand-copy, .app-shell.nav-collapsed .nav-label, .app-shell.nav-collapsed .settings-caret { display: none; }
.app-shell.nav-collapsed .brand-mark { flex-basis: 42px; width: 42px; height: 42px; }
.app-shell.nav-collapsed .sidebar-toggle { display: none; }
.app-shell.nav-collapsed .nav-item, .app-shell.nav-collapsed .logout-btn { justify-content: center; padding-inline: 0; }
.app-shell.nav-collapsed .nav-icon { flex-basis: 34px; width: 34px; height: 34px; }
.app-shell.nav-collapsed .settings-subnav { display: none; padding-left: 0; }
.logout-form { margin-top: 0; }
.logout-btn { width: 100%; }
.main { min-width: 0; height: 100vh; overflow-y: auto; padding: 30px; }

.login-screen { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 26px; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.eyebrow { margin: 0 0 6px; color: var(--blue); font-size: 12px; font-weight: 900; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 34px; }
h2 { font-size: 18px; }
.split-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.panel, .alert, .filter-bar { border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 20px; margin-bottom: 18px; }
.narrow-panel { max-width: 760px; }
.alert.success { border-color: #bbf7d0; background: #f0fdf4; color: #14532d; }
.alert.error { border-color: #fecaca; background: #fef2f2; color: #7f1d1d; }
.role-pill, .test-active { border-radius: 999px; padding: 8px 12px; background: #e5edff; color: var(--blue); font-weight: 900; }
.test-active { border: 2px solid var(--red); background: transparent; color: var(--white); }

label { display: grid; gap: 7px; margin-bottom: 14px; color: #334155; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; background: var(--white); color: var(--ink); }
textarea { min-height: 92px; resize: vertical; }
.inline-picker label { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; }
.inline-picker select { min-width: 260px; }

.primary-btn, .secondary-btn, .secondary-soft-btn, .ghost-btn, .danger-btn, .ghost-light-btn, .icon-btn { display: inline-grid; min-height: 40px; place-items: center; border-radius: 8px; padding: 0 14px; font-weight: 900; }
.primary-btn { border: 0; background: var(--blue); color: var(--white); }
.secondary-btn { border: 0; background: var(--ink); color: var(--white); }
.secondary-soft-btn { border: 1px solid #c7d2fe; background: #eef4ff; color: var(--blue); }
.ghost-btn { border: 0; background: var(--blue); color: var(--white); }
.btn-with-icon { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-with-icon .svg-icon { width: 17px; height: 17px; stroke-width: 2.3; }
.modal .ghost-btn { border: 1px solid var(--line); background: var(--white); color: #334155; }
.modal .ghost-btn:hover { border-color: #b6c2d3; background: #f8fbff; color: var(--ink); }
.danger-btn { border: 0; background: var(--red); color: var(--white); }
.ghost-light-btn { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: var(--white); }
.icon-btn { width: 40px; padding: 0; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 18px; line-height: 1; }
.icon-btn:hover { border-color: #b6c2d3; background: #f8fbff; }
.icon-btn.icon-highlight { border-color: #f5c35d; background: #fff4d6; color: #9a6500; box-shadow: 0 8px 20px rgba(245, 181, 51, .18); }
.icon-btn.icon-highlight:hover { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.icon-btn.icon-disabled { opacity: .42; cursor: not-allowed; }
.row-action-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; min-height: 40px; border-radius: 8px; padding: 0; border: 1px solid var(--line); background: var(--white); color: var(--ink); line-height: 1; }
.row-action-btn .svg-icon { width: 18px; height: 18px; stroke-width: 2.2; }
.edit-action { color: var(--blue); }
.edit-action:hover { border-color: #bfdbfe; background: #eff6ff; }
.save-action { color: #15803d; }
.save-action:hover { border-color: #86efac; background: #f0fdf4; }
.cancel-action { color: #64748b; }
.cancel-action:hover { border-color: #cbd5e1; background: #f8fafc; color: #0f172a; }
.delete-action { color: var(--red); }
.delete-action:hover { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
button:disabled, input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tabs a, .tab-button { border: 1px solid var(--line); border-radius: 8px; min-height: 42px; padding: 0 14px; background: var(--white); color: #334155; font-weight: 900; text-decoration: none; }
.tab-button.active { border-color: #0f151f; background: #0f151f; color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #edf1f6; padding: 12px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.selected-row td { background: #eef4ff; }
.row-note { display: block; margin-top: 4px; color: var(--blue); font-size: 12px; font-weight: 900; }
.muted-cell { color: var(--muted); max-width: 320px; }
.status-badge { display: inline-grid; min-height: 26px; place-items: center; border-radius: 999px; padding: 0 10px; font-size: 12px; font-weight: 900; text-transform: capitalize; }
.status-active { background: #dcfce7; color: #166534; }
.status-draft { background: #fef3c7; color: #92400e; }
.status-closed { background: #e5e7eb; color: #374151; }
.status-winner { background: #dbeafe; color: #1d4ed8; }
.status-voided { background: #fee2e2; color: #991b1b; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions input { width: 150px; }
.participant-update-form { display: none !important; }
.participant-edit-control { display: none; }
.participant-row.editing .participant-read { display: none; }
.participant-row.editing .participant-edit-control { display: inline-grid; }
.participant-row.editing .row-action-btn.participant-edit-control { display: inline-flex; }
.participant-row.editing input.participant-edit-control { display: inline-block; width: min(190px, 100%); }
.participant-row.editing td { background: #f8fbff; }
nav[role="navigation"] { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 13px; }
nav[role="navigation"] svg { display: inline-block; width: 16px; height: 16px; }
nav[role="navigation"] a,
nav[role="navigation"] span { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 10px; border-radius: 8px; }
nav[role="navigation"] a { border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 800; text-decoration: none; }
nav[role="navigation"] a:hover { background: #eef4ff; }
.table-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.compact-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.compact-summary div { border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 14px 16px; }
.compact-summary span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.compact-summary strong { display: block; margin-top: 6px; font-size: 22px; text-transform: capitalize; }
.management-table td { vertical-align: middle; }
.participant-list-panel .management-table th:last-child,
.participant-list-panel .management-table td:last-child { width: 220px; text-align: right; }
.participant-list-panel .actions { justify-content: flex-end; }
.participant-list-panel .table-heading { margin-bottom: 16px; }
.participant-filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 18px; border: 1px solid #edf1f6; border-radius: 8px; background: #f8fbff; padding: 12px; }
.participant-filter-bar .filter-field { flex: 1 1 220px; margin: 0; }
.participant-filter-bar .filter-field:nth-child(3) { max-width: 260px; }
.filter-input-action { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.filter-input-action input, .filter-input-action select { min-height: 40px; }
.filter-submit { color: var(--blue); }
.filter-clear { align-self: end; color: #64748b; }
.export-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1120px; }
.export-card { min-height: 230px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 22px; }
.radio-row label { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; background: #f8fbff; color: #334155; }
.radio-row input { width: auto; accent-color: var(--blue); }
.stats-list { display: grid; gap: 10px; margin: 0; }
.stats-list div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #edf1f6; padding-bottom: 10px; }
.stats-list dt { color: var(--muted); }
.stats-list dd { margin: 0; font-weight: 900; text-align: right; }
.hint { color: var(--muted); font-size: 13px; }
.checkline { display: flex; align-items: center; gap: 8px; margin: 0; }
.checkline input { width: auto; }
.filter-bar { display: flex; gap: 10px; align-items: flex-end; }
.closed-test-row { color: #94a3b8; background: #f8fafc; }
.closed-test-row td { opacity: .72; }
.closed-test-row .status-badge, .closed-test-row .closed-action-note { opacity: 1; }
.closed-action-note { display: inline-grid; min-height: 40px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #f1f5f9; color: #64748b; padding: 0 12px; font-weight: 900; }
.test-mode-table th:last-child, .test-mode-table td:last-child { width: 440px; }
.test-mode-table td { vertical-align: middle; }
.test-mode-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.test-mode-actions form { margin: 0; }
.test-mode-toggle-form { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #edf1f6; border-radius: 8px; background: #f8fbff; padding: 6px; }
.switch-control { display: inline-flex; align-items: center; gap: 10px; min-height: 34px; margin: 0; padding: 0 8px; color: #334155; font-weight: 900; }
.switch-control input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #cbd5e1; transition: background .18s ease; }
.switch-ui::after { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 999px; background: var(--white); box-shadow: 0 1px 3px rgba(15, 23, 42, .22); transition: transform .18s ease; }
.switch-control input:checked + .switch-ui { background: var(--blue); }
.switch-control input:checked + .switch-ui::after { transform: translateX(18px); }
.switch-control input:focus-visible + .switch-ui { outline: 2px solid #93c5fd; outline-offset: 2px; }
.campaign-list-panel .table-heading { margin-bottom: 16px; }
.campaign-table td { vertical-align: middle; }
.campaign-table th:last-child, .campaign-table td:last-child { width: 360px; text-align: right; }
.campaign-table .actions { justify-content: flex-end; align-items: center; }
.history-table th:last-child, .history-table td:last-child { width: 180px; text-align: right; }
.history-table .actions { justify-content: flex-end; align-items: center; }
.muted-action { display: inline-grid; width: 40px; min-height: 40px; place-items: center; color: var(--muted); }
.row-actions-menu { position: relative; display: inline-grid; }
.menu-popover { display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 10; min-width: 150px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 18px 45px rgba(15, 23, 42, .15); padding: 6px; text-align: left; }
.row-actions-menu.open .menu-popover { display: grid; gap: 4px; }
.menu-popover button, .menu-popover span { display: block; width: 100%; border: 0; border-radius: 6px; background: transparent; color: var(--ink); padding: 10px 12px; text-align: left; font-weight: 800; }
.menu-popover button:hover { background: #f1f5f9; }
.menu-popover .menu-danger { color: var(--red); }
.menu-popover .menu-danger:hover { background: #fef2f2; color: #991b1b; }
.menu-popover span { color: var(--muted); }
.page-subtitle { margin: 8px 0 0; color: var(--muted); font-weight: 900; }
.audit-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 0 18px; margin-bottom: 18px; }
.audit-item { display: grid; grid-template-columns: 1.1fr .8fr 1.2fr .65fr; gap: 18px; align-items: center; min-height: 48px; border-bottom: 1px solid #edf1f6; padding: 12px 0; }
.audit-item:last-child { border-bottom: 0; }
.audit-item strong { display: block; }
.audit-item span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.audit-item code { overflow-wrap: anywhere; white-space: normal; }
.audit-item time { color: var(--muted); text-align: right; }
.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 20; place-items: center; padding: 20px; background: rgba(15,23,42,.62); }
.modal-backdrop.active { display: grid; }
.modal { width: min(520px, 100%); border-radius: 8px; background: var(--white); color: var(--ink); padding: 24px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.winner-confirm-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.winner-confirm-list div { border: 1px solid var(--line); border-radius: 8px; background: #f8fbff; padding: 12px; }
.winner-confirm-list dt { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.winner-confirm-list dd { margin: 4px 0 0; font-weight: 900; overflow-wrap: anywhere; }

.draw-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px 390px; min-height: 100vh; height: 100vh; overflow: hidden; margin: -30px; background:
    linear-gradient(rgba(9, 14, 23, .78), rgba(9, 14, 23, .84)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='900' viewBox='0 0 1400 900'%3E%3Crect width='1400' height='900' fill='%23223142'/%3E%3Cg fill='none' stroke='%23f4b63f' stroke-width='3' opacity='.55'%3E%3Cpath d='M0 740 C250 640 340 850 590 730 S960 650 1400 760'/%3E%3Cpath d='M0 160 C270 80 390 260 650 150 S1040 90 1400 190'/%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='.13'%3E%3Ccircle cx='130' cy='210' r='28'/%3E%3Ccircle cx='1110' cy='160' r='34'/%3E%3Ccircle cx='1180' cy='700' r='26'/%3E%3Ccircle cx='320' cy='690' r='18'/%3E%3C/g%3E%3C/svg%3E"); background-size: cover; color: var(--white); transition: grid-template-columns .2s ease; }
.draw-page.users-collapsed { grid-template-columns: minmax(0, 1fr) 340px 58px; }
.draw-page.winners-collapsed { grid-template-columns: minmax(0, 1fr) 58px 390px; }
.draw-page.winners-collapsed.users-collapsed { grid-template-columns: minmax(0, 1fr) 58px 58px; }
.draw-stage { position: relative; display: grid; min-height: 100vh; min-width: 0; align-content: center; justify-items: center; gap: 28px; padding: 38px clamp(24px, 6vw, 82px); }
.draw-head { position: absolute; top: 18px; left: clamp(20px, 4vw, 56px); right: clamp(20px, 4vw, 56px); display: flex; justify-content: space-between; gap: 18px; }
.draw-head .eyebrow { color: var(--gold); font-size: 10px; margin-bottom: 4px; }
.draw-head h1 { font-size: 24px; line-height: 1.12; }
.draw-campaign-picker { display: flex; align-items: center; gap: 8px; width: min(360px, 100%); margin: 10px 0 0; color: #dbeafe; font-size: 12px; font-weight: 800; }
.draw-campaign-picker select { min-width: 0; min-height: 34px; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: var(--white); padding: 8px 10px; font-weight: 800; }
.draw-campaign-picker option { color: var(--ink); }
.draw-head-actions { display: flex; align-items: flex-start; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.test-mode-form { margin: 0; }
.test-toggle { display: flex; align-items: center; gap: 8px; min-height: 40px; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; color: var(--white); font-size: 13px; font-weight: 800; }
.test-toggle.active { min-height: 56px; gap: 12px; border-color: var(--red); border-radius: 12px; padding: 0 22px; font-size: 20px; box-shadow: 0 0 0 1px rgba(211, 56, 56, .55); }
.test-toggle input { width: 16px; height: 16px; accent-color: var(--red); }
.test-toggle.active input { width: 24px; height: 24px; }
.metric-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.metric-row span { border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: 8px 10px; background: rgba(255,255,255,.09); font-size: 12px; font-weight: 800; }
.draw-main { display: grid; align-content: center; justify-items: center; gap: 24px; width: 100%; min-width: 0; }
.draw-main form { display: none; }
.draw-name { width: 100%; text-align: center; overflow-wrap: anywhere; font-size: clamp(60px, 9vw, 128px); font-weight: 900; }
.draw-phone { min-height: 34px; color: #dbeafe; font-size: 28px; font-weight: 900; text-align: center; }
.draw-btn { border: 0; border-radius: 8px; min-height: 64px; padding: 0 34px; background: var(--gold); color: #211600; font-size: 24px; font-weight: 900; }
.draw-btn:disabled { opacity: .48; cursor: not-allowed; }
.draw-toast { position: absolute; left: clamp(20px, 4vw, 56px); right: clamp(20px, 4vw, 56px); bottom: 24px; border: 1px solid rgba(254,202,202,.65); border-radius: 8px; padding: 12px 14px; background: rgba(127,29,29,.72); color: #fee2e2; font-weight: 800; }
.side-panel { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100vh; min-width: 0; overflow: hidden; border-left: 1px solid rgba(255,255,255,.14); background: rgba(8,13,22,.88); backdrop-filter: blur(8px); padding: 0; }
.side-panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.side-panel h2 { margin: 0; color: var(--white); font-size: 20px; }
.side-panel header strong { display: grid; min-width: 42px; height: 34px; place-items: center; border-radius: 8px; background: var(--gold); color: #1f1600; }
.draw-side-header-actions { display: flex; align-items: center; gap: 8px; }
.draw-side-toggle { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(255,255,255,.08); color: var(--white); font-size: 24px; line-height: 1; }
.side-panel-scroll { min-height: 0; overflow-y: auto; }
.side-panel table { color: var(--white); }
.side-panel thead { position: sticky; top: 0; z-index: 1; background: #111827; }
.side-panel th, .side-panel td { color: var(--white); border-bottom-color: rgba(255,255,255,.1); padding: 11px 12px; font-size: 14px; }
.side-panel th { color: #aab4c2; }
.side-panel tr.is-highlighted td { background: rgba(244,182,63,.2); box-shadow: inset 4px 0 0 var(--gold); color: var(--white); }
.side-panel tr.is-highlighted .status-ok { color: var(--gold); }
.status-ok { color: #16a34a; font-weight: 900; }
.draw-side-rail { display: none; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; width: 58px; height: 100vh; border: 0; border-left: 1px solid rgba(255,255,255,.14); padding: 22px 0; background: rgba(8,13,22,.94); color: var(--white); font-weight: 900; }
.draw-side-rail span { writing-mode: vertical-rl; text-orientation: mixed; line-height: 1; }
.draw-side-rail strong { display: grid; min-width: 34px; height: 30px; place-items: center; border-radius: 8px; background: var(--gold); color: #1f1600; }
.draw-page.winners-collapsed .winner-panel header, .draw-page.winners-collapsed .winner-panel .side-panel-scroll,
.draw-page.users-collapsed .user-panel header, .draw-page.users-collapsed .user-panel .side-panel-scroll { display: none; }
.draw-page.winners-collapsed .winner-panel .draw-side-rail, .draw-page.users-collapsed .user-panel .draw-side-rail { display: flex; }

.report-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 8px; margin-bottom: 18px; padding: 24px; background: #111827; color: var(--white); }
.report-hero h2 { margin-bottom: 8px; font-size: 28px; }
.report-hero-number { display: grid; justify-items: end; }
.report-hero-number strong { color: var(--gold); font-size: 56px; line-height: 1; }
.report-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.report-card { border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 16px; }
.report-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.report-card strong { display: block; margin-top: 10px; font-size: 32px; }
.report-split { margin-bottom: 18px; }

@media (max-width: 1000px) {
    .app-shell, .app-shell.nav-collapsed, .split-layout, .draw-page, .draw-page.users-collapsed, .draw-page.winners-collapsed, .draw-page.winners-collapsed.users-collapsed { grid-template-columns: 1fr; height: auto; overflow: visible; }
    .sidebar { position: static; height: auto; }
    .main { height: auto; overflow: visible; }
    .app-shell.nav-collapsed .brand-copy, .app-shell.nav-collapsed .nav-label { display: block; }
    .app-shell.nav-collapsed .nav-item, .app-shell.nav-collapsed .logout-btn { justify-content: flex-start; padding-inline: 14px; }
    .app-shell.nav-collapsed .sidebar-toggle { display: grid; }
    .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .compact-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .export-card-grid { grid-template-columns: 1fr; }
    .page-head, .draw-head, .report-hero { flex-direction: column; }
    .draw-page { height: auto; overflow: visible; }
    .draw-head { position: static; }
    .side-panel { height: 420px; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
}
