:root{color:#1f2933;background:#f5f7f6;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}a{color:inherit}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh}.topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px clamp(16px,4vw,48px);border-bottom:1px solid #d9e2de;background:#fff}.topbar h1,.panel h2{margin:0;letter-spacing:0}.topbar h1{font-size:clamp(1.35rem,2vw,2rem)}.eyebrow{margin:0 0 4px;color:#667085;font-size:.78rem;font-weight:700;text-transform:uppercase}.main-nav{display:flex;flex-wrap:wrap;gap:8px}.main-nav a{border:1px solid transparent;border-radius:8px;padding:8px 12px;text-decoration:none;color:#344054}.main-nav a.active{border-color:#1b7f5a;color:#0f5138;background:#e8f5ef}.nav-user{display:inline-flex;align-items:center;min-height:40px;border-radius:8px;padding:8px 12px;color:#344054;background:#eef2f6;font-weight:700}.page-content{width:min(1120px,100%);margin:0 auto;padding:32px clamp(16px,4vw,48px)}.page-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:16px}.panel{border:1px solid #d9e2de;border-radius:8px;padding:20px;background:#fff;box-shadow:0 1px 2px #1018280d}.panel--wide{grid-column:span 2}.panel--form{width:min(420px,100%)}.panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.muted{color:#667085}.metric{margin:8px 0;font-size:2.5rem;font-weight:800}.leaderboard-hero{display:grid;gap:12px}.leaderboard-insights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.leaderboard-insights div{display:grid;gap:2px;border:1px solid #e4e7ec;border-radius:8px;padding:12px;background:#fbfcfc}.leaderboard-insights span,.leaderboard-insights small{color:#667085;font-size:.85rem;font-weight:700}.leaderboard-insights strong{color:#1f2933;font-size:1.1rem}.podium-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.podium-card{display:grid;gap:10px;align-content:start;min-height:168px;border:1px solid #e4e7ec;border-radius:8px;padding:16px;background:#fbfcfc}.podium-card h3{margin:0;font-size:1.15rem}.podium-card>strong{font-size:1.55rem;line-height:1.1}.podium-card--gold{border-color:#f0c24b;background:#fff8df}.podium-card--silver{border-color:#b8c0cc;background:#f5f7fa}.podium-card--bronze{border-color:#cf9a66;background:#fff3e8}.podium-rank,.rank-chip{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-weight:900}.podium-rank{width:42px;height:42px;color:#fff;background:#344054}.rank-chip{min-width:34px;min-height:34px;padding:4px 10px;color:#344054;background:#eef2f6}.podium-card--gold .podium-rank,.rank-chip--gold{color:#593d00;background:#f5c542}.podium-card--silver .podium-rank,.rank-chip--silver{color:#344054;background:#d7dce4}.podium-card--bronze .podium-rank,.rank-chip--bronze{color:#5a2f12;background:#d69a5f}.podium-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:#667085;font-size:.9rem;font-weight:700}.movement-badge{display:inline-flex;align-items:center;gap:5px;min-height:26px;border-radius:999px;padding:3px 8px;font-size:.82rem;font-weight:800;white-space:nowrap}.movement-badge--up{color:#0f5138;background:#dff3e9}.movement-badge--down{color:#8a1f1f;background:#fff1f1}.movement-arrow{width:0;height:0;border-right:5px solid transparent;border-left:5px solid transparent}.movement-badge--up .movement-arrow{border-bottom:8px solid #1b7f5a}.movement-badge--down .movement-arrow{border-top:8px solid #c24141}.leaderboard-table th,.leaderboard-table td{vertical-align:middle}.leaderboard-table tbody tr{background:#fff}.leaderboard-table tbody tr:hover{background:#fbfcfc}.leaderboard-row--gold{background:#fffdf3}.leaderboard-row--silver{background:#f8fafc}.leaderboard-row--bronze{background:#fff8f1}.dashboard-round-list{display:grid;gap:10px;margin:16px 0 0}.dashboard-round-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid #e4e7ec;border-radius:8px;padding:12px;background:#fbfcfc}.dashboard-round-title{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.dashboard-round-item p{margin:4px 0 0}.dashboard-round-progress{display:inline-flex;align-items:baseline;justify-content:flex-end;min-width:128px;color:#1f2933;font-weight:800;white-space:nowrap}.dashboard-round-progress span{font-size:1.75rem}.dashboard-round-progress small{color:#667085;font-size:.9rem;font-weight:700}.status-badge{display:inline-flex;align-items:center;min-height:28px;border-radius:999px;padding:4px 10px;font-size:.85rem;font-weight:700;white-space:nowrap}.status-badge--success{color:#0f5138;background:#dff3e9}.status-badge--warning{color:#7a4d00;background:#fff2cc}.status-badge--neutral{color:#344054;background:#eef2f6}.primary-action,.secondary-action,.stacked-form button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:8px;padding:10px 16px;font-weight:700;text-decoration:none;cursor:pointer}.primary-action{border:0;color:#fff;background:#1b7f5a}.secondary-action{border:1px solid #cbd5df;color:#344054;background:#fff}.primary-action:disabled,.secondary-action:disabled,.stacked-form button:disabled{cursor:not-allowed;opacity:.7}.form-page{display:flex;justify-content:center}.stacked-form,.question-list,.admin-form{display:grid;gap:14px}.stacked-form label,.question-row,.admin-form label{display:grid;gap:6px;color:#344054;font-weight:700}.stacked-form input,.question-row input[type=number],.question-row input[type=text],.admin-form input,.admin-form select,.admin-form textarea,.option-row input{min-height:42px;width:100%;border:1px solid #cbd5df;border-radius:8px;padding:9px 12px;color:#1f2933;background:#fff}.admin-form textarea{min-height:96px;resize:vertical}.form-error{margin:0;border:1px solid #f6c8c8;border-radius:8px;padding:10px 12px;color:#8a1f1f;background:#fff1f1;font-weight:700}.form-success{margin:0;border:1px solid #b7e4cc;border-radius:8px;padding:10px 12px;color:#0f5138;background:#e8f5ef;font-weight:700}.form-warning{margin:0;border:1px solid #f8d58c;border-radius:8px;padding:10px 12px;color:#7a4d00;background:#fff8e8;font-weight:700}.form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.danger-action{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border:1px solid #f1b7b7;border-radius:8px;padding:10px 16px;color:#8a1f1f;background:#fff1f1;font-weight:700;cursor:pointer}.danger-action:disabled{cursor:not-allowed;opacity:.55}.form-footer{margin:16px 0 0;color:#667085}.form-footer a{color:#0f6b4c;font-weight:700}.question-list{margin:20px 0}.question-row{border:1px solid #e4e7ec;border-radius:8px;padding:14px;background:#fbfcfc}.question-row legend{display:flex;align-items:baseline;justify-content:space-between;width:100%;margin-bottom:10px;color:#1f2933;font-weight:800}.question-row legend small{color:#667085;font-size:.85rem;white-space:nowrap}.choice-list{display:grid;gap:8px}.choice-hint{margin:0;color:#667085;font-size:.9rem;font-weight:600}.choice-option{display:flex;align-items:center;gap:10px;min-height:40px;border:1px solid #d9e2de;border-radius:8px;padding:8px 10px;color:#344054;background:#fff;font-weight:600}.choice-option input{width:18px;height:18px;accent-color:#1b7f5a}.segmented-control{display:inline-grid;grid-template-columns:repeat(2,minmax(80px,1fr));gap:6px;width:min(220px,100%)}.segmented-control button{min-height:40px;border:1px solid #cbd5df;border-radius:8px;color:#344054;background:#fff;font-weight:800;cursor:pointer}.segmented-control button.is-selected{border-color:#1b7f5a;color:#0f5138;background:#e8f5ef}.admin-list-panel{grid-column:span 1}.row-actions{display:flex;flex-wrap:wrap;gap:8px}.row-actions .secondary-action,.row-actions .danger-action{min-height:36px;padding:7px 10px}.split-fields,.option-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.option-editor{display:grid;gap:10px;border:1px solid #e4e7ec;border-radius:8px;padding:12px;background:#fbfcfc}.option-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center}.question-admin-list{display:grid;gap:10px}.history-link{display:grid;gap:4px;border:1px solid #e4e7ec;border-radius:8px;padding:12px;color:#344054;background:#fbfcfc;text-decoration:none}.history-round-selector{display:grid;gap:6px;max-width:420px;color:#344054;font-weight:700}.history-round-selector select{min-height:42px;width:100%;border:1px solid #cbd5df;border-radius:8px;padding:9px 12px;color:#1f2933;background:#fff}.history-summary-table th,.history-summary-table td{padding:8px;vertical-align:top}.history-summary-table th:first-child,.history-summary-table td:first-child{position:sticky;left:0;z-index:1;min-width:128px;background:#fff}.history-summary-table td{min-width:136px}.history-question-heading{display:inline-block;max-width:156px}.table-sort-button{border:0;padding:0;color:#344054;background:transparent;font-weight:800;text-align:left;cursor:pointer}.history-score-cell{display:grid;gap:2px;border-radius:8px;padding:5px 7px;font-size:.9rem;line-height:1.3}.history-score-cell span,.history-score-cell small{overflow-wrap:anywhere}.history-score-cell small{color:#667085;font-size:.76rem}.history-score-cell.is-positive{border:1px solid #b7e4cc;color:#0f5138;background:#e8f5ef}.history-score-cell.is-zero{border:1px solid #f1b7b7;color:#8a1f1f;background:#fff1f1}.live-round-table th,.live-round-table td{padding:8px;vertical-align:top}.live-summary-header{margin-bottom:16px}.live-table-wrap{max-height:min(68vh,720px);overflow:auto}.live-round-table{min-width:max-content}.live-round-table thead th{position:sticky;top:0;z-index:2;background:#fff}.live-round-table th:first-child,.live-round-table td:first-child{position:sticky;left:0;z-index:1;min-width:128px;background:#fff}.live-round-table thead th:first-child{z-index:3}.live-round-row--current-user,.live-round-row--current-user td,.live-round-row--current-user th,.live-round-table .live-round-row--current-user th:first-child{background:#fff8df}.live-round-row--current-user th:first-child{box-shadow:inset 4px 0 #f0c24b}.live-round-table td{min-width:150px;max-width:260px}.live-question-index{display:block;margin-bottom:3px;color:#98a2b3;font-size:.72rem;font-weight:800}.live-answer{display:inline-flex;max-width:240px;border:1px solid #d0d5dd;border-radius:8px;padding:5px 8px;color:#344054;background:#f8fafc;font-size:.9rem;font-weight:700;overflow-wrap:anywhere}.live-answer--missing{color:#667085;background:#eef2f6}.inline-toggle{display:inline-flex;align-items:center;gap:8px;color:#344054;font-weight:700}.scoring-question-list{display:grid;gap:18px}.answer-report-round{overflow:hidden}.answer-report-table th,.answer-report-table td{vertical-align:top}.answer-report-table td{min-width:120px}.answer-report-table td:first-child{min-width:160px}.answer-report-question{display:grid;gap:2px;min-width:160px}.answer-report-question small{color:#667085;font-size:.8rem;font-weight:600}.answer-report-value,.answer-report-missing{display:inline-flex;max-width:240px;border-radius:8px;padding:4px 8px;font-size:.9rem;font-weight:700;overflow-wrap:anywhere}.answer-report-value{color:#0f5138;background:#e8f5ef}.answer-report-missing{color:#667085;background:#eef2f6}.scoring-question{display:grid;gap:10px;border:1px solid #e4e7ec;border-radius:8px;padding:14px;background:#fbfcfc}.compact-input{min-height:38px;width:min(180px,100%);border:1px solid #cbd5df;border-radius:8px;padding:8px 10px;color:#1f2933;background:#fff}.admin-question-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #e4e7ec;border-radius:8px;padding:12px;background:#fbfcfc}.admin-question-item p{margin:4px 0 0}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{padding:12px;border-bottom:1px solid #e4e7ec;text-align:left}th{color:#667085;font-size:.85rem}@media(max-width:760px){.topbar{align-items:flex-start;flex-direction:column}.main-nav{width:100%}.main-nav a{flex:1 1 calc(50% - 8px);text-align:center}.page-grid{grid-template-columns:1fr}.panel--wide{grid-column:span 1}.split-fields,.option-row,.dashboard-round-item,.admin-question-item{grid-template-columns:1fr}.dashboard-round-progress{justify-content:flex-start}.leaderboard-insights,.podium-grid{grid-template-columns:1fr}.podium-card{min-height:0;padding:14px}.leaderboard-table th,.leaderboard-table td{padding:9px 8px}.leaderboard-table th:nth-child(3),.leaderboard-table td:nth-child(3){min-width:112px}.history-summary-table th,.history-summary-table td{padding:6px}.history-summary-table th:first-child,.history-summary-table td:first-child{min-width:112px}.history-summary-table td{min-width:118px}.history-question-heading{max-width:128px}.history-score-cell{border-radius:6px;padding:4px 6px;font-size:.84rem}.live-round-table th,.live-round-table td{padding:6px}.live-round-table th:first-child,.live-round-table td:first-child{min-width:112px}.live-round-table td{min-width:126px;max-width:220px}}
