:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#e7edf7;background:#060e22;color-scheme:dark;--mint:#0ce5af;--line:#2b3a54;--panel:#12223d}*{box-sizing:border-box}body{margin:0}header{padding:24px 32px;display:flex;gap:22px;align-items:center;border-bottom:1px solid var(--line);background:#0b162d}.brand{font-size:29px;font-weight:900;font-style:italic;color:var(--mint);line-height:1}.brand span{display:block;font-size:12px;letter-spacing:5px;margin-top:6px}h1{font-size:22px;margin:0}header p{margin:6px 0 0;color:#9eafc8;font-size:13px}.header-actions{margin-left:auto;display:flex;gap:10px}button,input,textarea,select{font:inherit}button{border:1px solid #42536f;background:#172942;color:#e7edf7;border-radius:9px;padding:11px 15px;cursor:pointer;font-weight:600}button:hover{background:#244164}button.primary{background:var(--mint);border-color:var(--mint);color:#04251e}button:disabled{opacity:.45;cursor:wait}button.quiet{background:transparent}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--mint);outline-offset:2px}.statusbar{display:flex;justify-content:space-between;padding:13px 32px;background:#101e34;color:#b6c8e2;font-size:13px}#notice{padding:0 32px;white-space:pre-wrap}#notice:not(:empty){padding:14px 32px;background:#203651;border-bottom:1px solid #405570}#notice.error{background:#512b36;color:#ffe0e5}main{display:grid;grid-template-columns:330px 1fr;min-height:calc(100vh - 147px)}aside{border-right:1px solid var(--line);padding:22px;background:#0b1629;height:calc(100vh - 147px);position:sticky;top:0;overflow:auto}.aside-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}h2{font-size:20px;margin:0 0 12px}.aside-title h2{font-size:17px;margin:0}label{display:block;font-size:13px;font-weight:600;color:#bfcee4;margin-bottom:15px}input:not([type=radio]):not([type=checkbox]),textarea,select{display:block;width:100%;padding:11px 12px;margin-top:7px;border:1px solid #3b4c67;border-radius:8px;background:#0c1930;color:#f1f5fb}textarea{resize:vertical;line-height:1.5}input[type=radio],input[type=checkbox]{accent-color:var(--mint);width:18px;height:18px;flex:none}.filters,.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.muted{color:#9cadc5;font-size:13px;line-height:1.6}#list{display:flex;flex-direction:column;gap:7px}.qitem{padding:13px;text-align:left;background:#111f36;border:1px solid #263853;font-size:13px;line-height:1.4;font-weight:400}.qitem.selected{border-color:var(--mint);background:#163e43}.qitem strong{display:block;font-size:11px;letter-spacing:.5px;margin-bottom:7px;color:#99c1ff}.qitem small{display:block;margin-top:7px;color:#e3c791}#editor{padding:28px;min-width:0}.editor-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.eyebrow{font-size:11px;letter-spacing:1.8px;color:#91a9ca;margin:0 0 8px;font-weight:700}.badge{padding:8px 12px;border-radius:25px;background:#213653;color:#b7dbff;font-size:12px}.editor-grid{display:grid;grid-template-columns:minmax(280px,1.3fr) minmax(250px,.9fr);gap:28px}fieldset{border:1px solid var(--line);border-radius:12px;padding:16px;margin:0 0 18px}legend{color:#b9cbe5;font-size:13px;padding:0 7px}.answer{display:flex;align-items:center;gap:10px}.answer:last-child{margin-bottom:0}.answer textarea{margin:0}.answer b{color:#a3c9ff}.check{display:flex;align-items:center;gap:10px;padding:14px;background:#112a36;border-radius:9px}.image-tools{display:flex;align-items:center;gap:10px}.image-tools label{flex:1}.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.preview-column{align-self:start;position:sticky;top:20px;min-width:0}.phone{padding:23px 18px;background:#050c22;border:2px solid #33425f;border-radius:28px;box-shadow:0 14px 40px #0005}.phone-brand{font-weight:900;color:var(--mint);font-size:14px;display:flex;justify-content:space-between}.phone-brand span{color:#c7d8ed;font-weight:500}.phone h3{font-size:20px;line-height:1.5;margin:18px 0;text-align:left;overflow-wrap:anywhere}.phone img{width:100%;max-height:250px;object-fit:contain;background:white;border-radius:12px}.preview-answer{display:flex;align-items:flex-start;gap:14px;padding:14px;margin:10px 0;border-radius:14px;border:1px solid #364560;background:#14203a;line-height:1.5;font-size:14px;overflow-wrap:anywhere}.preview-answer b{flex:0 0 18px}.preview-answer.correct{background:#bdf3df;color:#12382e;border-color:#bdf3df}.explanation{padding:15px;border-radius:14px;background:#13243e;line-height:1.5;font-size:14px;margin-top:18px;overflow-wrap:anywhere}.explanation p{margin-bottom:0}details{margin-top:20px;font-size:13px;color:#a9bcd7}pre{white-space:pre-wrap;font:12px/1.5 Segoe UI,sans-serif;overflow-wrap:anywhere}.empty{padding:90px 60px;max-width:760px;line-height:1.8}.empty h2{font-size:30px}dialog{background:#101e35;color:#e7edf7;border:1px solid #425775;border-radius:18px;width:min(650px,95vw);max-height:85vh;padding:26px}dialog::backdrop{background:#000a}dialog p{line-height:1.6}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:23px}.history-row{padding:15px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.history-row small{display:block;margin-top:5px}.event{padding:8px 0;border-bottom:1px solid var(--line);font-size:12px}#dialogBody{overflow-wrap:anywhere}#dialogBody ul{max-height:230px;overflow:auto;line-height:1.8}[hidden]{display:none!important}@media(max-width:1100px){main{grid-template-columns:280px 1fr}.editor-grid{grid-template-columns:1fr}.preview-column{position:static}.header-actions{flex-wrap:wrap;justify-content:flex-end}.phone{max-width:420px}}@media(max-width:700px){header{padding:18px;flex-wrap:wrap}.header-actions{margin:0;width:100%;justify-content:flex-start}.statusbar{padding:12px 18px;gap:12px;flex-wrap:wrap}main{display:block}aside{position:static;height:auto;max-height:420px;border-bottom:1px solid var(--line)}#editor{padding:20px}.empty{padding:30px}.two{grid-template-columns:1fr}}
/* The question bank is loaded only after owner sign-in. */
.sign-in{position:fixed;inset:0;z-index:1000;background:#071426;display:flex;align-items:center;justify-content:center;padding:2rem}
.sign-in[hidden]{display:none}
.sign-in-card{width:min(100%,420px);padding:32px;background:#12223d;border:1px solid #354b67;border-radius:20px;box-shadow:0 20px 60px #0007}
.sign-in h2{font-size:2rem;margin-bottom:.5rem}
.sign-in p{line-height:1.5}
.sign-in label{text-align:left}
.sign-in form button{width:100%}
#resetPassword{display:block;margin:14px auto 0;border:0;background:transparent;color:#a8eadb;text-decoration:underline}
#signInError{min-height:1.5em;color:#ffc8cf;font-size:13px}
