:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#25364a;background:#f5f8fc;font-synthesis:none;font-optical-sizing:auto;font-weight:400;--blue:#3489f5;--deep:#236bcb;--navy:#133c78;--muted:#718096;--border:#d2e2f5;--surface:#fff;--pale:#eff5fc;--shadow:0 14px 38px rgba(29,78,130,.08)}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 10% -10%,#e4f1ff 0,transparent 38%),#f5f8fc;color:#25364a}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #9bcaff;outline-offset:2px}
.topbar{height:72px;padding:0 max(24px,calc((100vw - 1220px)/2));display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.92);border-bottom:1px solid #dfebf7;position:sticky;top:0;z-index:5;backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:inherit}.brand-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#41a0ff,#2376df);color:#fff;font-size:23px;font-weight:900;box-shadow:0 6px 14px #3489f533}.brand-copy{display:grid;gap:2px}.brand-copy strong{font-weight:900;font-size:16px;letter-spacing:.06em;color:var(--navy)}.brand-copy small{font-size:9px;font-weight:800;letter-spacing:.19em;color:#7d9abb}.topbar-right,.connection{display:flex;align-items:center;gap:14px}.connection{gap:8px;color:#73849a;font-size:12px}.status-dot{width:9px;height:9px;border-radius:50%;background:#b3c0ce}.status-dot.ok{background:#31b982;box-shadow:0 0 0 4px #31b9821c}.status-dot.bad{background:#ed796c;box-shadow:0 0 0 4px #ed796c1c}
.app-shell{width:min(1220px,100%);margin:0 auto;padding:38px 28px 50px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:22px;margin-bottom:25px}.eyebrow{margin:0 0 8px;color:var(--blue);font-size:10px;font-weight:900;letter-spacing:.17em}.page-heading h1{margin:0;color:var(--navy);font-size:32px;line-height:1.15;letter-spacing:-.04em}.page-subtitle{margin:8px 0 0;color:#73849a;font-size:14px;line-height:1.5}.button{border:0;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 14px;font-size:12px;font-weight:750;transition:background .16s,color .16s,border-color .16s,transform .16s,box-shadow .16s}.button:active{transform:translateY(1px)}.button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.button-primary{color:#fff;background:var(--blue);box-shadow:0 7px 16px #3489f52b}.button-primary:hover{background:var(--deep);box-shadow:0 9px 18px #3489f53b}.button-primary span{font-size:18px;line-height:1}.button-secondary{background:#e6f2ff;color:var(--deep)}.button-secondary:hover{background:#d8eaff}.button-quiet{background:#f0f5fb;color:#55708e;border:1px solid #e1eaf4}.button-quiet:hover{background:#e6f0fb;color:var(--deep)}.button-icon{width:37px;min-width:37px;height:37px;min-height:37px;padding:0;background:#f0f5fb;color:#58718e;font-size:22px}.button-icon:hover{background:#e2effd;color:var(--deep)}
.breadcrumbs{min-height:42px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 17px;color:#8ca0b8;font-size:12px}.crumb{border:0;background:none;padding:5px 2px;color:#65809f;font-size:12px;font-weight:700}.crumb:hover{color:var(--deep)}.crumb.current{color:var(--navy);font-weight:850}.crumb-sep{color:#bdc9d7}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:21px}.search-box{height:43px;min-width:220px;max-width:400px;flex:1;display:flex;align-items:center;gap:9px;padding:0 13px;border:1px solid #dce8f5;border-radius:13px;background:#fff;box-shadow:0 3px 10px #1b4a7606}.search-box span{color:#86a1bf;font-size:20px;line-height:1}.search-box input{width:100%;border:0;outline:0;color:var(--navy);font-size:12px;background:transparent}.search-box input::placeholder{color:#9aabbd}.toolbar-filters{display:flex;align-items:center;gap:8px}.toolbar select{height:41px;max-width:165px;padding:0 30px 0 11px;border:1px solid #dce8f5;border-radius:12px;background:#fff;color:#607893;font-size:11px;outline:none}.toolbar select:focus{border-color:#87bfff}
.content-section{min-height:260px}.section-heading{min-height:45px;margin-bottom:13px;display:flex;align-items:center;justify-content:space-between;gap:12px}.section-heading h2{display:inline;margin:0;color:#23466f;font-size:15px;font-weight:850}.result-count{margin-left:9px;color:#91a2b6;font-size:11px}.pager{display:flex;align-items:center;gap:9px;color:#8194aa;font-size:11px}.pager .button:disabled{opacity:.42;cursor:default}.items-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.content-card{min-width:0;min-height:190px;padding:19px;border:1px solid #e1eaf4;border-radius:19px;background:rgba(255,255,255,.95);box-shadow:0 6px 20px rgba(27,71,115,.045);transition:transform .18s,box-shadow .18s,border-color .18s;display:flex;flex-direction:column}.content-card:hover{transform:translateY(-2px);border-color:#c8def3;box-shadow:var(--shadow)}.card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.course-mark{width:44px;height:44px;display:grid;place-items:center;flex:0 0 auto;border-radius:15px;background:#eaf4ff;color:var(--deep);font-size:22px}.card-title-button{border:0;background:transparent;padding:0;text-align:left;color:var(--navy);font-size:16px;font-weight:850;line-height:1.35}.card-title-button:hover{color:var(--blue)}.card-copy{margin:11px 0 14px;color:#72849a;font-size:12px;line-height:1.55}.card-stats{display:flex;gap:14px;flex-wrap:wrap;margin:auto 0 13px;color:#7a8da3;font-size:10px}.card-stats strong{color:#365a80;font-weight:850}.card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #eef3f8;padding-top:12px}.card-actions{display:flex;align-items:center;gap:4px}.text-action{border:0;background:transparent;padding:5px 7px;color:#5680ac;font-size:10px;font-weight:750;border-radius:8px}.text-action:hover{background:#eef6ff;color:var(--deep)}.text-action.danger{color:#bd706a}.action-menu{position:relative}.action-menu>summary{list-style:none;cursor:pointer;padding:5px 8px;border-radius:8px;color:#5c7da2;font-size:10px;font-weight:800}.action-menu>summary::-webkit-details-marker{display:none}.action-menu[open]>summary,.action-menu>summary:hover{background:#eef6ff;color:var(--deep)}.menu-popover{position:absolute;z-index:4;right:0;top:calc(100% + 5px);min-width:145px;padding:5px;border:1px solid #e1eaf4;border-radius:12px;background:#fff;box-shadow:0 10px 28px #183d6124;display:grid}.menu-popover button{border:0;border-radius:8px;background:transparent;text-align:left;padding:9px 10px;color:#55708e;font-size:10px;font-weight:700}.menu-popover button:hover{background:#eff6fd;color:var(--deep)}.menu-popover button.danger{color:#bd706a}.menu-popover button.danger:hover{background:#fff0ed}.text-action.danger:hover{background:#fff0ed}.status-pill{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:999px;background:#eef3f8;color:#6b7d91;font-size:9px;font-weight:850;text-transform:capitalize;white-space:nowrap}.status-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:#97a9bc}.status-pill.published{background:#e6f7f0;color:#20855f}.status-pill.published::before{background:#31b982}.status-pill.draft{background:#fff5de;color:#a2771b}.status-pill.draft::before{background:#e6b742}.status-pill.unpublished{background:#eff2f6;color:#6a7b8e}.status-pill.unpublished::before{background:#98a5b3}.status-pill.deleted{background:#fff0ed;color:#b75e54}.status-pill.deleted::before{background:#e4786c}.items-list{display:block}.question-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:15px 18px;border:1px solid #e2ebf4;border-radius:15px;background:#fff;box-shadow:0 4px 12px #244f7908}.question-row+.question-row{margin-top:9px}.question-main{min-width:0;display:flex;align-items:flex-start;gap:13px}.question-number{width:30px;height:30px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:#eef6ff;color:var(--deep);font-size:11px;font-weight:850}.question-copy{min-width:0}.question-title{color:#21466f;font-size:13px;line-height:1.45;font-weight:800;white-space:normal;overflow-wrap:anywhere}.question-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:6px;color:#92a1b2;font-size:10px}.type-pill{padding:4px 7px;border-radius:7px;background:#f0f5fa;color:#647c97;font-size:9px;font-weight:850}.empty-state,.loading-card{grid-column:1/-1;min-height:210px;padding:30px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed #cbdcee;border-radius:18px;background:#fff;color:#8397ae}.empty-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:17px;background:#edf6ff;color:var(--blue);font-size:25px;margin-bottom:12px}.empty-state strong{color:#315778;font-size:14px}.empty-state p{max-width:390px;margin:7px 0 15px;color:#8799ad;font-size:12px;line-height:1.5}.loading-card{border-style:solid}.admin-access{margin-top:25px;border-top:1px solid #e1eaf3;padding-top:15px;color:#8294a9;font-size:11px}.admin-access summary{width:max-content;cursor:pointer;color:#66809d;font-weight:750}.access-panel{max-width:720px;padding:12px 0 4px}.access-panel p{line-height:1.55}.access-panel code{color:var(--deep)}.access-row{display:flex;align-items:center;gap:10px;margin:12px 0}.access-row label{color:#55708f;font-weight:750}.access-row input{flex:1;min-width:150px}.access-row input,.field-control,.field-control select,.field-control textarea,.field-control input{border:1px solid #dce7f2;border-radius:11px;background:#fff;color:#29496d;padding:10px 12px;font-size:12px;outline:none}.file-picker{display:inline-flex;padding:9px 12px;border-radius:10px;background:#edf5fd;color:#4f7296;font-weight:750;cursor:pointer}.file-picker input{display:none}
.editor-dialog{width:min(740px,calc(100% - 28px));max-height:min(90vh,900px);padding:0;border:1px solid #e0eaf4;border-radius:22px;background:#fff;color:#243e5b;box-shadow:0 28px 90px #193b6060}.editor-dialog::backdrop{background:rgba(20,45,73,.48);backdrop-filter:blur(3px)}.editor-dialog form{display:flex;flex-direction:column;max-height:min(90vh,900px)}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:24px 25px 16px;border-bottom:1px solid #edf2f7}.dialog-heading h2{margin:0;color:var(--navy);font-size:21px;line-height:1.25}.dialog-help{margin:7px 0 0;color:#8092a7;font-size:11px;line-height:1.5}.form-fields{padding:19px 25px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;overflow-y:auto}.field{min-width:0;display:flex;flex-direction:column;gap:6px;color:#58718e;font-size:10px;font-weight:800}.field.wide{grid-column:1/-1}.field-control{width:100%;font-family:inherit;font-size:12px;line-height:1.45}.field-control:focus{border-color:#73b4f5;box-shadow:0 0 0 3px #3489f517}textarea.field-control{min-height:86px;resize:vertical}textarea.field-control.tall{min-height:135px}.field-hint{color:#98a7b8;font-size:9px;font-weight:500}.field-row{display:flex;align-items:center;gap:9px}.choice-options{display:grid;gap:8px}.choice-option{display:grid;grid-template-columns:20px minmax(0,1fr);gap:9px;align-items:center}.choice-option input[type=radio]{accent-color:var(--blue);width:16px;height:16px}.choice-option input[type=text]{width:100%;border:1px solid #dce7f2;border-radius:10px;padding:10px;color:#29496d;font-size:12px}.choice-option.correct input[type=text]{border-color:#73b4f5;background:#f2f8ff}.question-fields{display:contents}.type-field{margin:0;padding:0;border:0}.type-field legend{margin-bottom:6px}.type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.type-choice{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #dce8f4;border-radius:11px;background:#fff;color:#59718b;font-size:11px;font-weight:750;cursor:pointer}.type-choice:has(input:checked){border-color:#83baf0;background:#eff7ff;color:#236bcb}.type-choice input{accent-color:var(--blue)}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;padding:14px 25px 20px;border-top:1px solid #edf2f7}.toast{position:fixed;right:24px;bottom:24px;z-index:20;max-width:min(420px,calc(100% - 32px));padding:13px 17px;border-radius:13px;background:#173e72;color:#fff;box-shadow:0 12px 32px #173e7240;font-size:12px;opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translateY(0)}.toast.error{background:#a84741}[hidden]{display:none!important}
@media(max-width:900px){.items-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell{padding-inline:20px}.toolbar{align-items:stretch;flex-direction:column}.search-box{max-width:none}.toolbar-filters{flex-wrap:wrap}.toolbar select{flex:1;max-width:none}}
@media(max-width:600px){.topbar{height:64px;padding:0 15px}.brand-mark{width:36px;height:36px}.connection{font-size:0}.connection .status-dot{width:10px;height:10px}.topbar-right{gap:9px}.topbar-right .button{min-height:36px;padding-inline:10px;font-size:10px}.app-shell{padding:26px 14px 36px}.page-heading{align-items:flex-start;flex-direction:column;margin-bottom:17px}.page-heading h1{font-size:29px}.page-heading>.button{width:100%}.breadcrumbs{margin-bottom:12px}.toolbar-filters{display:grid;grid-template-columns:1fr 1fr}.toolbar-filters select{width:100%}.toolbar-filters #refresh{grid-column:1/-1}.items-grid{grid-template-columns:1fr;gap:10px}.content-card{min-height:170px;padding:16px}.question-row{grid-template-columns:1fr;gap:10px}.question-row .card-actions{justify-content:flex-end}.form-fields{grid-template-columns:1fr;padding:16px}.field.wide{grid-column:auto}.dialog-heading{padding:19px 17px 13px}.dialog-actions{padding:12px 17px 16px}.access-row{align-items:stretch;flex-direction:column}.access-row input{min-height:40px}.type-grid{grid-template-columns:1fr 1fr}}
.python-test-panel{padding:15px;border:1px solid #dce8f4;border-radius:14px;background:#f5f9fe}.python-test-panel strong{color:#23466f;font-size:13px}.python-test-panel p{margin:0}.python-test-panel .card-actions{flex-wrap:wrap}.python-run-output{max-height:250px;min-height:72px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;border:1px solid #dce7f2;border-radius:11px;background:#fff;color:#345674;font:11px/1.55 ui-monospace,SFMono-Regular,monospace}
