:root{--ink:#172033;--muted:#697386;--paper:#f4f1ea;--card:#fffefa;--line:#dedbd3;--navy:#14203a;--blue:#405cf5;--green:#dff4df;--green-ink:#176b3a;--red:#f8dddd;--red-ink:#9f2525;--pending:#ecebe7;--amber:#f1b84b;--shadow:0 18px 50px rgba(27,35,54,.09);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 88% -10%,#dce2ff 0,transparent 26rem),var(--paper)}button,input,select{font:inherit}button{cursor:pointer}.topbar{height:72px;padding:0 34px;display:flex;align-items:center;justify-content:space-between;color:#fff;background:var(--navy);box-shadow:0 4px 24px rgba(10,18,35,.18)}.brand{display:flex;align-items:center;gap:12px}.brand>div:last-child{display:flex;flex-direction:column;line-height:1.05}.brand span{font-size:11px;letter-spacing:.18em;color:#aeb9d3}.brand strong{font-family:Georgia,serif;font-size:20px;font-weight:600}.brand-mark{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;color:white;background:linear-gradient(145deg,#566eff,#3148d9);font-family:Georgia,serif;font-size:29px;box-shadow:0 10px 30px rgba(48,72,219,.28)}.brand-mark.small{width:38px;height:38px;border-radius:12px;font-size:21px}.top-actions{display:flex;align-items:center;gap:12px}.connection{font-size:13px;color:#d7dceb}.connection i{display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:#63d78a;box-shadow:0 0 0 4px rgba(99,215,138,.12)}.connection.offline i{background:#ef6b6b}.icon-button,.text-button{border:1px solid rgba(255,255,255,.18);color:#fff;background:rgba(255,255,255,.06);border-radius:9px;padding:8px 12px}.icon-button{font-size:20px;line-height:1}.dashboard-shell{max-width:1800px;margin:0 auto;padding:42px 34px 70px}.hero{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:28px}.eyebrow{margin:0 0 8px;color:#526174;font-size:11px;font-weight:800;letter-spacing:.18em}.title-line{display:flex;align-items:center;gap:14px}.title-line h1{margin:0;font-family:Georgia,serif;font-size:38px;font-weight:600;letter-spacing:-.03em}.status-pill{border-radius:999px;padding:6px 10px;color:#265339;background:#dcecdf;font-size:12px;font-weight:700;text-transform:uppercase}.quiz-select{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:12px;font-weight:700}.quiz-select select{min-width:230px;padding:10px 34px 10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink)}.stats{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:14px;margin-bottom:18px}.stats article{padding:18px 20px;border:1px solid rgba(218,214,204,.9);border-radius:14px;background:rgba(255,254,250,.78);box-shadow:0 7px 24px rgba(31,40,62,.04)}.stats span{display:block;margin-bottom:7px;color:var(--muted);font-size:12px;font-weight:650}.stats strong{font-family:Georgia,serif;font-size:25px;font-weight:600}.board-card{border:1px solid #d9d5cc;border-radius:18px;background:var(--card);box-shadow:var(--shadow);overflow:hidden}.board-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;border-bottom:1px solid var(--line)}.board-heading h2{margin:0 0 4px;font-family:Georgia,serif;font-size:22px}.board-heading p{margin:0;color:var(--muted);font-size:13px}.legend{display:flex;gap:16px;color:var(--muted);font-size:12px}.legend span{display:flex;align-items:center;gap:6px}.dot{width:9px;height:9px;border-radius:50%}.dot.pending{background:#a5a49f}.dot.correct{background:#50ad6b}.dot.incorrect{background:#db5959}.table-wrap{max-height:calc(100vh - 330px);overflow:auto;position:relative}table{border-collapse:separate;border-spacing:0;min-width:100%;font-size:13px}th,td{height:64px;padding:10px 12px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);vertical-align:middle}thead th{position:sticky;top:0;z-index:8;height:68px;background:#f5f3ed;color:#4a566a;text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.08em}.sticky-col{position:sticky;z-index:4;background:var(--card)}thead .sticky-col{z-index:12;background:#f5f3ed}.question-number{left:0;width:82px;min-width:82px;text-align:center}.question-text{left:82px;width:280px;min-width:280px}.answer-key{left:362px;width:180px;min-width:180px;color:#667085;font-style:italic;box-shadow:7px 0 14px rgba(29,38,58,.04)}.player-head{min-width:176px;max-width:220px}.player-head strong,.player-head span{display:block;text-transform:none;letter-spacing:0}.player-head strong{color:var(--ink);font-size:13px}.player-head span{margin-top:4px;color:#8a91a0;font-size:10px}.round-row th{height:38px;padding:8px 18px;background:#202d49;color:#fff;text-align:left;font-family:Georgia,serif;font-size:15px;letter-spacing:.01em}.question-badge{display:inline-grid;place-items:center;min-width:42px;padding:6px;border-radius:8px;background:#edf0ff;color:#334bc9;font-weight:800}.answer-cell{position:relative;min-width:176px;max-width:230px;transition:background .14s,box-shadow .14s;cursor:pointer}.answer-cell:hover{box-shadow:inset 0 0 0 2px rgba(64,92,245,.28)}.answer-cell.pending{background:var(--pending)}.answer-cell.correct{background:var(--green);color:var(--green-ink)}.answer-cell.incorrect{background:var(--red);color:var(--red-ink)}.answer-cell.empty{color:#b0afa9;text-align:center;cursor:default;background:#faf9f5}.answer-cell.empty:hover{box-shadow:none}.answer-value{display:block;max-width:185px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}.more-button{position:absolute;top:5px;right:5px;border:0;border-radius:6px;padding:2px 5px;background:transparent;color:inherit;font-weight:900;letter-spacing:-.1em;opacity:.42}.answer-cell:hover .more-button,.more-button:focus{background:rgba(255,255,255,.65);opacity:1}.subtotal-row td,.subtotal-row th{height:42px;background:#f4f3ee;font-weight:700;color:#596274}.subtotal-row td:not(.sticky-col){text-align:center}.total-row td,.total-row th{position:sticky;bottom:0;z-index:7;height:52px;background:#f0ad3d;color:#2f2618;font-size:15px;font-weight:900}.total-row .sticky-col{z-index:10}.total-row td:not(.sticky-col){text-align:center}.empty-state{padding:70px;text-align:center;color:var(--muted)}.cell-menu{position:fixed;z-index:40;width:240px;padding:7px;border:1px solid #d6d2c9;border-radius:12px;background:#fff;box-shadow:0 18px 50px rgba(23,32,51,.2)}.cell-menu button{display:block;width:100%;padding:10px;border:0;border-radius:7px;background:transparent;text-align:left;font-size:13px}.cell-menu button:hover{background:#f1f2f5}.cell-menu .danger{color:#b22c2c}dialog{max-width:520px;width:calc(100% - 32px);padding:0;border:0;border-radius:18px;box-shadow:0 30px 90px rgba(10,18,35,.3)}dialog::backdrop{background:rgba(10,18,35,.48);backdrop-filter:blur(3px)}.dialog-card{position:relative;padding:28px}.dialog-card h2{margin:0 0 18px;font-family:Georgia,serif;font-size:26px}.dialog-close{position:absolute;right:16px;top:14px;border:0;background:transparent;color:#677184;font-size:26px}.dialog-card menu{display:flex;justify-content:flex-end;gap:9px;margin:24px 0 0;padding:0}.dialog-card menu button{padding:9px 14px;border:1px solid var(--line);border-radius:8px;background:#fff}.dialog-card menu .primary{border-color:var(--blue);color:#fff;background:var(--blue)}.danger-solid{border-color:#b22c2c!important;color:#fff;background:#b22c2c!important}.points-label{display:flex;flex-direction:column;gap:8px;font-weight:700}.points-label input{padding:10px;border:1px solid var(--line);border-radius:8px}.history-list{display:flex;flex-direction:column;gap:10px;padding-left:24px}.history-list li{padding:10px 12px;border-radius:9px;background:#f4f3ef}.history-list strong,.history-list time{display:block}.history-list time{margin-top:5px;color:var(--muted);font-size:11px}.toast{position:fixed;right:24px;bottom:24px;z-index:60;padding:12px 16px;border-radius:10px;color:#fff;background:#264c36;box-shadow:0 14px 40px rgba(23,32,51,.24)}.toast.error{background:#a62d2d}.auth-page{display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 0,#dbe1ff,transparent 36rem),var(--paper)}.auth-card{width:min(440px,100%);padding:42px;border:1px solid #d9d5cc;border-radius:22px;background:var(--card);box-shadow:var(--shadow)}.auth-card .brand-mark{margin-bottom:26px}.auth-card h1{margin:0 0 12px;font-family:Georgia,serif;font-size:34px}.auth-copy{margin:0 0 28px;color:var(--muted);line-height:1.55}.auth-card form,.auth-card label{display:flex;flex-direction:column}.auth-card form{gap:9px}.auth-card label{font-size:13px;font-weight:750}.auth-card input{padding:13px;border:1px solid #cfcac0;border-radius:10px;background:#fff}.auth-card small{color:var(--muted)}.auth-card form>button{margin-top:12px;padding:13px;border:0;border-radius:10px;color:#fff;background:var(--blue);font-weight:750}.auth-card button:disabled{opacity:.55}.form-error{min-height:20px;margin:3px 0 0;color:#ad2f2f;font-size:13px}
@media(max-width:800px){.topbar{padding:0 18px}.connection{display:none}.dashboard-shell{padding:28px 16px 50px}.hero{align-items:flex-start;gap:20px;flex-direction:column}.stats{grid-template-columns:1fr 1fr}.board-heading{align-items:flex-start;gap:14px;flex-direction:column}.legend{flex-wrap:wrap}.question-text{width:220px;min-width:220px}.answer-key{left:302px;width:150px;min-width:150px}.title-line h1{font-size:30px}.table-wrap{max-height:calc(100vh - 390px)}}
.main-nav{display:flex;align-self:stretch;gap:4px}.nav-button{position:relative;padding:0 16px;border:0;color:#bac4da;background:transparent;font-weight:700}.nav-button.active{color:#fff}.nav-button.active:after{content:"";position:absolute;left:15px;right:15px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:#6f83ff}.hero-actions,.page-actions,.editor-actions{display:flex;align-items:flex-end;gap:10px}.primary-button,.secondary-button,.add-button,.back-button{padding:10px 14px;border-radius:9px;font-weight:750}.primary-button{border:1px solid var(--blue);color:#fff;background:var(--blue)}.secondary-button,.add-button,.back-button{border:1px solid var(--line);color:var(--ink);background:#fff}.primary-button:disabled,.secondary-button:disabled{opacity:.5;cursor:default}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:26px}.page-heading h1{margin:0 0 8px;font-family:Georgia,serif;font-size:38px}.page-heading p:not(.eyebrow){margin:0;color:var(--muted)}.quiz-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.quiz-card{display:flex;min-height:170px;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:22px;border:1px solid #d9d5cc;border-radius:16px;background:var(--card);box-shadow:0 8px 28px rgba(31,40,62,.05)}.quiz-card h2{margin:14px 0 5px;font-family:Georgia,serif;font-size:23px}.quiz-card p{margin:0;color:var(--muted);font-size:13px}.status-pill.status-draft{color:#596274;background:#e7e7e3}.status-pill.status-ready{color:#62440c;background:#f7e5bc}.status-pill.status-active{color:#265339;background:#dcecdf}.status-pill.status-finished{color:#39455d;background:#dce2ed}.editor-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.back-button{border:0;background:transparent}.editor-header{display:grid;grid-template-columns:1fr 180px;gap:14px;margin-bottom:16px;padding:22px;border:1px solid #d9d5cc;border-radius:16px;background:var(--card)}.editor-header label,.round-heading label,.question-editor label,.field-label{display:flex;flex-direction:column;gap:7px;color:#4c586b;font-size:12px;font-weight:750}.editor-header input,.editor-header select,.round-heading input,.question-editor input,.question-editor textarea,.field-label input{width:100%;padding:10px;border:1px solid #cbc8c0;border-radius:8px;color:var(--ink);background:#fff}.editor-header input{font-family:Georgia,serif;font-size:22px}.notice{padding:13px 16px;border:1px solid #ead398;border-radius:10px;color:#674d13;background:#fff3d1}.round-editor{display:flex;flex-direction:column;gap:18px}.round-card{overflow:hidden;border:1px solid #d9d5cc;border-radius:16px;background:var(--card);box-shadow:0 8px 28px rgba(31,40,62,.04)}.round-heading{display:grid;grid-template-columns:95px minmax(220px,1fr) auto;align-items:end;gap:12px;padding:18px 20px;background:#f2f0ea;border-bottom:1px solid var(--line)}.questions-list{display:flex;flex-direction:column}.question-editor{padding:18px 20px;border-bottom:1px solid var(--line)}.question-row{display:grid;grid-template-columns:76px minmax(280px,1fr) 96px auto;gap:12px;align-items:end}.grow-field textarea{min-height:68px;resize:vertical}.answer-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0 0 88px}.answer-fields textarea{min-height:72px;resize:vertical}.question-editor small{font-weight:500;color:var(--muted)}.danger-link{padding:8px;border:0;color:#a62d2d;background:transparent}.danger-link:disabled{opacity:.35}.round-card>.add-button{margin:14px 20px}.round-editor+.add-button{margin-top:18px}.preview-table{max-height:310px;overflow:auto;border:1px solid var(--line);border-radius:9px}.preview-table table{font-size:12px}.preview-table th,.preview-table td{position:static;height:auto;padding:8px}.import-messages{padding-left:20px;color:#665a42}.import-error{color:#a62d2d;font-weight:700}.muted{color:var(--muted);font-size:12px}
.danger-button{padding:10px 14px;border:1px solid #d7a3a3;border-radius:9px;color:#9e2929;background:#fff;font-weight:750}.danger-button:hover{border-color:#b22c2c;background:#fff2f2}.danger-button:disabled{opacity:.5;cursor:default}
.account-list{display:flex;max-width:900px;flex-direction:column;gap:12px}.account-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;border:1px solid #d9d5cc;border-radius:14px;background:var(--card);box-shadow:0 8px 28px rgba(31,40,62,.05)}.account-card h2{margin:0 0 5px;font-family:Georgia,serif;font-size:22px}.account-card p{margin:0;color:var(--muted);font-size:13px}.account-actions{display:flex;gap:9px}.dialog-card .field-label+.field-label{margin-top:14px}
@media(max-width:800px){.main-nav{order:3;position:absolute;top:72px;left:0;right:0;height:46px;padding:0 16px;background:var(--navy)}.dashboard-shell{padding-top:72px}.page-heading,.editor-toolbar{align-items:flex-start;gap:18px;flex-direction:column}.editor-header,.question-row,.answer-fields,.round-heading{grid-template-columns:1fr}.answer-fields{margin-left:0}.hero-actions{align-items:flex-start;flex-direction:column}.top-actions .text-button{display:none}}
