@font-face{font-family:Ubuntu;src:url('vendor/Ubuntu-R.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
:root{font-family:Ubuntu,Arial,sans-serif;color:#233831;background:#f3f5f3;font-size:16px;--ink:#233831;--muted:#67766f;--green:#183f36;--lime:#c7f36a;--line:#dce4dd;--white:#fff;--orange:#c75c25}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit}button,a,input,textarea,select{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid #629644}input:focus,textarea:focus,select:focus{border-color:#3c715c;outline:2px solid #c7f36a77}button{border:0}h1,h2,h3,p{margin-top:0}h1{font-size:2.1rem;letter-spacing:-.06rem;line-height:1.2;margin-bottom:.6rem}h2{font-size:1.3rem;letter-spacing:-.025rem}h3{font-size:1.05rem}p{line-height:1.6}small,.meta{font-size:.82rem;color:var(--muted)}.muted{color:var(--muted)}.skip{position:fixed;top:-70px;padding:12px;background:white;z-index:10}.skip:focus{top:8px}.loading{display:grid;place-content:center;min-height:100vh;text-align:center;gap:18px}
.shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--green);color:#f1f7f1;padding:32px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;padding:0 12px 35px}.brand-mark{background:var(--lime);color:var(--green);font-size:1.8rem;font-weight:bold;letter-spacing:-.1rem;width:47px;height:47px;border-radius:12px;display:inline-grid;place-items:center}.brand strong{font-size:1.3rem}.brand small{display:block;color:#b5c9bf;margin-top:4px;font-size:.75rem}.nav-label{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:#a6beb1;margin:14px 15px}.nav{display:flex;flex-direction:column;gap:6px}.nav button{display:flex;align-items:center;gap:13px;width:100%;padding:13px 15px;border-radius:8px;background:none;color:#dce8df;text-align:left;font-size:.95rem}.nav button.active{background:var(--lime);color:var(--green);font-weight:bold}.nav button:hover:not(.active){background:#285447}.nav svg{width:20px;height:20px;flex-shrink:0}.sidebar-bottom{margin-top:auto;padding:30px 12px 0}.sidebar-bottom small{color:#a6beb1}.profile{display:flex;align-items:center;gap:10px;margin-top:20px;border-top:1px solid #45665a;padding-top:20px}.avatar{display:grid;place-items:center;background:#375e4f;border-radius:50%;width:37px;height:37px}.profile strong{display:block;font-size:.9rem;overflow-wrap:anywhere}.profile small{font-size:.75rem}.profile button{background:transparent;color:#c7d6cf;padding:6px;margin-left:auto}.content{min-width:0}.topbar{height:79px;border-bottom:1px solid var(--line);background:#ffffffa8;display:flex;align-items:center;justify-content:space-between;padding:0 40px;gap:14px}.crumb{font-size:.9rem;color:var(--muted)}.crumb b{color:var(--ink);font-weight:normal}.topbar .tag{background:#e7eee8;color:#426149}.main{padding:36px 40px 60px;max-width:1600px;margin:auto}.heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:27px}.heading p{margin:0;color:var(--muted);max-width:680px}.eyebrow{font-size:.76rem;letter-spacing:.12em;text-transform:uppercase;color:#6b7f70;margin-bottom:10px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:#fff;color:var(--ink);padding:10px 16px;min-height:43px;border-radius:7px;text-decoration:none;font-size:.91rem;white-space:nowrap}.btn:hover{background:#edf2ed}.btn.primary{background:var(--green);border-color:var(--green);color:#fff}.btn.primary:hover{background:#2e5b4b}.btn.lime{background:var(--lime);border-color:var(--lime);color:var(--green)}.btn.danger{color:#ab3636;border-color:#ebc9c9}.btn.small{min-height:34px;padding:6px 10px;font-size:.84rem}.btn svg{width:17px;height:17px}.text-btn{padding:5px 0;color:#32644c;background:none;text-decoration:underline;text-underline-offset:3px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:30px}.stat{background:white;border:1px solid var(--line);padding:22px 25px;border-radius:10px}.stat-label{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:.89rem}.stat svg{width:20px;height:20px}.stat strong{display:block;font-size:2rem;margin-top:11px;font-weight:normal}.stat small{display:block;margin-top:5px}.panel{border:1px solid var(--line);border-radius:10px;background:white;padding:24px;margin-bottom:20px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:10px}.panel-head h2{margin:0}.two-col{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.stack{display:grid;gap:16px}.quiz-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:18px}.quiz-card{background:white;border:1px solid var(--line);border-radius:10px;padding:24px;display:flex;flex-direction:column;min-height:235px;position:relative}.quiz-card:hover{border-color:#8ea88f}.quiz-card h3{font-size:1.2rem;line-height:1.4;margin:20px 0 9px;overflow-wrap:anywhere}.quiz-card p{font-size:.91rem;color:var(--muted);margin-bottom:20px}.quiz-card .card-foot{margin-top:auto;padding-top:16px;border-top:1px solid #edf0ed;display:flex;align-items:center;justify-content:space-between}.tag{display:inline-flex;width:fit-content;align-items:center;padding:4px 9px;border-radius:5px;background:#edf3e9;color:#50723e;font-size:.76rem;line-height:1.45;white-space:nowrap}.tag.orange{background:#fff1dd;color:#966116}.tag.gray{background:#eef0ef;color:#67766f}.tag.blue{background:#eaf0fc;color:#3d6498}.tag.red{background:#fce9e6;color:#a54535}.empty{text-align:center;padding:46px 20px;border:1px dashed #bdcdbf;border-radius:10px;background:#fbfcfa}.empty h3{margin-top:15px;font-size:1.2rem}.empty p{color:var(--muted);max-width:470px;margin:0 auto 18px}.empty svg{width:35px;height:35px;color:#64875b}.step{display:flex;gap:13px;padding:15px 0;border-top:1px solid #e9ede9}.step:first-of-type{border:0}.step-num{background:#edf3e6;color:#44683e;border-radius:50%;width:27px;height:27px;display:grid;place-items:center;flex-shrink:0;font-size:.85rem}.step strong{font-size:.94rem;display:block;margin-bottom:5px}.step p{font-size:.84rem;color:var(--muted);margin:0}.aside-note{background:#e9efdf;padding:24px;border-radius:10px}.aside-note p{font-size:.9rem;color:#516347;margin-bottom:0}.toolbar{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap;align-items:center}.toolbar input{flex:1;min-width:200px}.toolbar select{width:auto;max-width:280px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px;font-size:.91rem}.field .hint{font-size:.8rem;color:var(--muted);line-height:1.45}.field input,.field select,.field textarea{width:100%}input,textarea,select{border:1px solid #cdd8cf;border-radius:6px;background:#fff;padding:10px 12px;color:var(--ink);min-height:43px}textarea{resize:vertical;line-height:1.5;min-height:100px}input[type=checkbox]{min-height:20px;accent-color:var(--green);width:18px;height:18px}input[type=file]{font-size:.88rem}label.check{display:flex;gap:10px;align-items:center;font-size:.9rem;margin:12px 0}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-row.triple{grid-template-columns:1fr 1fr 1fr}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:9px;background:#fff}table{width:100%;border-collapse:collapse;text-align:left}th{background:#f7f9f5;color:#657569;font-weight:normal;font-size:.8rem;padding:14px 18px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:17px 18px;border-bottom:1px solid #e9eee9;font-size:.91rem;vertical-align:top}tr:last-child td{border:0}td.prompt{min-width:250px;max-width:520px;line-height:1.5;overflow-wrap:anywhere}td.prompt small{display:block;margin-top:5px}td .actions{flex-wrap:nowrap}dialog{border:1px solid var(--line);border-radius:13px;padding:0;max-width:760px;width:calc(100% - 30px);max-height:90vh;color:var(--ink);box-shadow:0 30px 100px #12302433}dialog::backdrop{background:#15352bc0;backdrop-filter:blur(2px)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:22px 26px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1}.modal-head h2{margin:0}.modal-body{padding:24px 26px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding-top:18px}.close{background:#eff3ee;width:32px;height:32px;border-radius:50%;font-size:1.4rem;color:var(--ink)}#toast{position:fixed;bottom:24px;right:24px;max-width:480px;padding:15px 20px;background:var(--green);color:white;box-shadow:0 8px 28px #16312433;border-radius:8px;z-index:100;display:none;line-height:1.5}#toast.error{background:#923d34}#toast.show{display:block}.notice{padding:15px 18px;background:#f1f5eb;border:1px solid #dce6d1;border-radius:7px;line-height:1.55;font-size:.9rem;margin-bottom:20px}.notice.warning{background:#fff5e6;border-color:#ead7b5;color:#805623}.notice.error{background:#fff0ed;border-color:#e8c3be;color:#9a3b30}.quiz-editor{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px}.question-item{display:flex;gap:14px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:8px;margin-bottom:12px}.question-num{width:34px;height:34px;background:#edf3e4;display:grid;place-items:center;border-radius:7px;flex-shrink:0;color:#50723e}.question-body{flex:1;min-width:0}.question-body p{margin-bottom:8px;white-space:pre-wrap;overflow-wrap:anywhere}.question-body .answer{font-size:.86rem;color:#567a43}.question-controls{display:flex;flex-direction:column;gap:5px}.question-controls button{background:#f0f4ef;color:#506548;padding:3px 9px;border-radius:4px}.round-label{display:flex;justify-content:space-between;align-items:center;margin:24px 0 13px}.round-label h3{margin:0}.editor-side{position:sticky;top:20px;align-self:start}.editor-side .btn{width:100%;margin-top:9px}.editor-side .stat-line{display:flex;justify-content:space-between;padding:10px 0;font-size:.91rem}.editor-side .stat-line strong{font-weight:normal}.question-image{max-width:100%;max-height:160px;border-radius:5px;margin-top:10px}.import-draft{border:1px solid var(--line);border-radius:8px;padding:20px;margin-bottom:16px;background:white}.score-input{width:85px}.score-row input.answer-input{width:100%;min-width:180px}.score-row td{padding:12px}.score-row .expected{max-width:300px;font-size:.85rem}.score-row .expected small{display:block;margin-top:4px}.rank{font-size:1.3rem;color:#496d3c}.total{font-weight:bold;color:#2d6049}.sheet-preview{background:white;box-shadow:0 5px 20px #25422716;padding:24px;max-width:540px;border:1px solid var(--line)}.sheet-preview img{max-width:180px;width:40%}.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.sheet-line{height:31px;border-bottom:1px dotted #a1a1a1;display:flex;align-items:center;justify-content:space-between;font-size:.8rem}.sheet-score{border:1px solid #999;height:100%;width:29px}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(300px,44%) 1fr}.auth-art{background:var(--green);padding:8vw 6vw;color:white;display:flex;flex-direction:column;justify-content:center}.auth-art h1{font-size:3.3rem;line-height:1.13;margin-top:45px;max-width:500px}.auth-art p{color:#bcd0c1;max-width:400px}.auth-art .brand-mark{width:65px;height:65px;font-size:2.4rem}.auth-form{display:flex;align-items:center;justify-content:center;padding:40px}.auth-box{max-width:420px;width:100%}.auth-box h2{font-size:1.7rem}.auth-box .btn{width:100%}.auth-foot{font-size:.8rem;color:var(--muted);margin-top:30px}.inline-error{color:#a53730;margin-bottom:14px;line-height:1.5}.file-drop{border:2px dashed #b6c9b1;border-radius:10px;background:#f7faf3;padding:32px;text-align:center}.file-drop input{width:100%;max-width:440px;background:white;margin:10px 0}.version-list{display:flex;flex-direction:column;gap:12px}.version-row{display:flex;justify-content:space-between;align-items:center;padding:12px;border:1px solid var(--line);border-radius:7px;gap:12px}.spaced{margin-top:24px}.form-error{margin:12px 0;color:#a5382d}.saved-status{font-size:.8rem;color:#729163}.import-tools{position:sticky;bottom:15px;background:var(--green);color:white;padding:16px 22px;border-radius:10px;display:flex;justify-content:space-between;gap:20px;box-shadow:0 5px 25px #1b3c3633;z-index:2}.import-tools input{min-width:230px}.mobile-label{display:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.pick-row[hidden]{display:none}
@media(max-width:1100px){.main{padding:28px 24px}.topbar{padding:0 24px}.two-col{grid-template-columns:1fr}.two-col>aside{display:none}.shell{grid-template-columns:200px 1fr}.sidebar{padding:25px 12px}.quiz-editor{grid-template-columns:1fr}.editor-side{position:static;display:grid;grid-template-columns:1fr 1fr;gap:18px}.heading{flex-wrap:wrap}}
@media(max-width:720px){h1{font-size:1.7rem}.shell{display:block}.sidebar{position:static;height:auto;padding:14px 14px 10px}.brand{padding:0 5px 12px}.brand-mark{width:35px;height:35px;font-size:1.4rem}.brand small,.sidebar-bottom,.nav-label{display:none}.nav{flex-direction:row;overflow:auto;padding-bottom:4px}.nav button{width:auto;flex-shrink:0;padding:9px 12px;font-size:.85rem}.nav svg{width:17px}.topbar{height:56px;padding:0 18px}.main{padding:23px 16px 45px}.stats{gap:8px}.stat{padding:14px 12px}.stat-label{font-size:.78rem}.stat-label svg{display:none}.stat strong{font-size:1.55rem}.stat small{font-size:.72rem}.heading{gap:15px}.heading p{font-size:.91rem}.heading .actions{width:100%}.panel{padding:18px}.form-row,.form-row.triple{grid-template-columns:1fr;gap:0}.editor-side{display:block}.auth-shell{display:block}.auth-art{padding:30px}.auth-art h1{font-size:1.8rem;margin:18px 0 0}.auth-art p{display:none}.auth-form{padding:28px 22px}.modal-body{padding:20px}.modal-head{padding:18px 20px}.question-item{padding:14px;gap:10px}.import-tools{flex-direction:column}.sheet-preview{padding:18px}.mobile-label{display:inline}.toolbar select{max-width:100%;width:100%}}
