:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f7f9fb;color:#17212b;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select,textarea{font:inherit}button{border:0;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}.centered{display:grid;min-height:100vh;place-items:center;padding:24px}.launch-panel{width:min(460px,100%);border:1px solid #d9e2ea;border-radius:8px;background:#fff;padding:28px;box-shadow:0 18px 50px #1d304914}.launch-panel svg{color:#007f7a}.launch-panel h1{margin:16px 0 8px;font-size:1.55rem;line-height:1.2}.launch-panel p{margin:0;color:#667789}.launch-panel.error{border-color:#e7b8a3}.app-shell{display:grid;grid-template-rows:64px 1fr;min-height:100vh}.topbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce5ec;background:#fff;padding:0 28px}.brand,.topbar-meta{display:flex;align-items:center;gap:10px}.brand{color:#10283f;font-weight:750}.brand svg{color:#007f7a}.topbar-meta{color:#627487;font-size:.93rem}.topbar-meta strong{color:#10283f}.workspace{display:grid;grid-template-columns:260px minmax(0,1fr) 280px;gap:18px;padding:18px}.question-rail,.attempt-panel,.question-card{border:1px solid #dce5ec;border-radius:8px;background:#fff}.question-rail,.attempt-panel{padding:18px}.question-rail h2,.attempt-panel h2{margin:0 0 8px;color:#10283f;font-size:1rem}.question-rail p{margin:0 0 18px;color:#667789;font-size:.92rem;line-height:1.5}.rail-list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.rail-item{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:1px solid #dce5ec;border-radius:8px;background:#f8fafc;color:#607286}.rail-item.active{border-color:#007f7a;background:#e7f6f4;color:#005c59}.rail-item.answered span:first-child{color:#10283f;font-weight:760}.question-card{display:flex;min-height:calc(100vh - 100px);flex-direction:column;padding:28px}.question-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;color:#667789;font-size:.92rem}.question-header strong{color:#a45b00}.question-card h1{max-width:840px;margin:0;color:#10283f;font-size:clamp(1.6rem,2vw,2.25rem);line-height:1.18}.help-text{max-width:720px;margin:12px 0 0;color:#667789;line-height:1.55}.option-stack,.reorder-list,.match-list{display:grid;gap:10px;max-width:760px;margin-top:28px}.option-row,.reorder-row,.match-row{display:flex;align-items:center;gap:12px;min-height:54px;border:1px solid #dce5ec;border-radius:8px;background:#fff;padding:12px 14px;color:#253545}.option-row.selected{border-color:#007f7a;background:#eaf7f5;color:#10283f}.option-row input{accent-color:#007f7a}.reorder-row{justify-content:space-between}.reorder-row>span{flex:1}.row-actions{display:flex;gap:6px}.row-actions button{min-width:56px;border:1px solid #d4dee7;border-radius:7px;background:#f8fafc;color:#33485c;padding:7px 10px;font-size:.85rem}.match-row{align-items:center;justify-content:space-between}.match-row span{max-width:46%}.match-row select{width:48%;min-height:40px;border:1px solid #cdd8e2;border-radius:7px;background:#fff;padding:0 10px}.free-text{width:min(760px,100%);min-height:190px;margin-top:28px;resize:vertical;border:1px solid #d4dee7;border-radius:8px;padding:14px;line-height:1.5}.question-actions{display:flex;gap:10px;margin-top:auto;padding-top:28px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border-radius:8px;padding:0 16px;font-weight:720}.primary{background:#007f7a;color:#fff}.secondary{border:1px solid #d4dee7;background:#fff;color:#33485c}.attempt-panel dl{display:grid;gap:14px;margin:18px 0}.attempt-panel div{display:grid;gap:4px}.attempt-panel dt{color:#667789;font-size:.78rem;font-weight:740;text-transform:uppercase}.attempt-panel dd{margin:0;color:#17212b}.question-types{display:grid;gap:8px;border-top:1px solid #e4ebf1;padding-top:16px}.question-types span{display:flex;align-items:center;gap:8px;color:#5f7184;font-size:.9rem}.complete-state{display:grid;place-items:center;min-height:420px;text-align:center}.complete-state svg{color:#007f7a}.complete-state h1{margin-top:16px}.builder-shell{min-height:100vh;background:#f7f9fb}.builder-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;width:min(1380px,100%);margin:0 auto;padding:24px}.builder-main{min-width:0}.identity-card,.draft-editor,.empty-draft,.version-card,.editor-question{border:1px solid #dce5ec;border-radius:10px;background:#fff}.identity-card{padding:24px;margin-bottom:18px}.identity-card h1{margin:6px 0 8px;color:#10283f;font-size:1.8rem}.identity-card p{max-width:780px;margin:0;color:#667789;line-height:1.5}.identity-card dl{display:flex;flex-wrap:wrap;gap:28px;margin:20px 0 0}.identity-card dt{color:#667789;font-size:.76rem;font-weight:750;text-transform:uppercase}.identity-card dd{margin:4px 0 0;color:#17212b;font-size:.9rem}.eyebrow{color:#007f7a;font-size:.74rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.author-scope{color:#627487;font-size:.9rem}.version-sidebar{display:grid;align-content:start;gap:12px}.version-card{display:grid;gap:6px;padding:16px}.version-card.current{border-color:#9ed4d0;box-shadow:0 7px 18px #007f7a12}.version-card strong{color:#10283f}.version-card small,.muted{color:#667789;font-size:.82rem}.card-heading,.history-heading,.section-heading,.editor-question-header,.config-list-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.card-heading{color:#33485c;font-size:.86rem;font-weight:750}.history-heading{margin-top:12px;color:#33485c;font-size:.88rem;font-weight:750}.status-badge{border-radius:999px;padding:4px 8px;font-size:.7rem;font-weight:800;text-transform:uppercase}.status-badge.published{background:#e7f6f4;color:#006963}.status-badge.draft{background:#fff4dc;color:#8a5600}.status-badge.archived{background:#eef2f5;color:#607286}.draft-editor{padding:24px}.section-heading{align-items:flex-start;margin-bottom:20px}.section-heading h2{margin:5px 0 3px;color:#10283f}.section-heading p{margin:0;color:#667789;font-size:.9rem}.draft-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px}.save-state{color:#667789;font-size:.82rem}.secondary,.primary{cursor:pointer}.compact{min-height:34px;padding:0 10px;font-size:.8rem}.question-editor-list{display:grid;gap:14px}.editor-question{padding:18px}.editor-question-header{align-items:flex-start;margin-bottom:16px}.editor-question-header h3{margin:4px 0 0;color:#10283f;font-size:1.05rem}.row-actions{display:flex;gap:5px}.icon-button,.small-button,.add-question{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #d4dee7;border-radius:7px;background:#f8fafc;color:#33485c}.icon-button{width:32px;height:32px}.icon-button.danger{color:#a34437}.small-button{padding:6px 9px;font-size:.8rem}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:grid;gap:6px;color:#41566a;font-size:.82rem;font-weight:720}.field input,.field select,.field textarea,.config-row input,.match-editor-row select{width:100%;min-height:40px;border:1px solid #cdd8e2;border-radius:7px;background:#fff;padding:8px 10px;color:#17212b;font-weight:400}.field textarea{min-height:76px;resize:vertical}.check-row{display:flex;align-items:center;gap:8px;margin:14px 0;color:#41566a;font-size:.85rem}.check-row input{accent-color:#007f7a}.question-config{border-top:1px solid #e4ebf1;padding-top:15px}.question-config h4{margin:0 0 12px;color:#33485c;font-size:.86rem}.config-list{display:grid;gap:8px;margin-bottom:14px}.config-list-heading{color:#41566a;font-size:.8rem;font-weight:750}.config-row{display:grid;grid-template-columns:150px minmax(0,1fr) 32px;gap:7px}.correct-list{display:grid;gap:7px;margin:0 0 14px;border:1px solid #e4ebf1;border-radius:7px;padding:10px}.correct-list legend{padding:0 4px;color:#41566a;font-size:.8rem;font-weight:750}.match-editor-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:10px;color:#41566a;font-size:.82rem}.inline-warning{display:flex;align-items:center;gap:6px;margin:12px 0 0;color:#9a6200;font-size:.8rem}.add-question{width:100%;min-height:46px;margin-top:14px;border-style:dashed;background:#fbfcfd;font-weight:750}.validation-box,.success-box{display:flex;align-items:flex-start;gap:10px;border-radius:8px;padding:12px 14px;margin-bottom:16px;font-size:.86rem}.validation-box{border:1px solid #efc3a9;background:#fff7f1;color:#8c442e}.validation-box ul{margin:6px 0 0;padding-left:18px}.success-box{border:1px solid #9ed4d0;background:#eaf7f5;color:#006963}.empty-draft{display:grid;justify-items:center;gap:8px;padding:60px 24px;text-align:center}.empty-draft svg{color:#007f7a}.empty-draft h2{margin:8px 0 0;color:#10283f}.empty-draft p{max-width:500px;margin:0 0 12px;color:#667789}@media(max-width:980px){.workspace{grid-template-columns:1fr}.question-card{min-height:auto}.rail-list{grid-template-columns:repeat(5,minmax(44px,1fr))}.builder-layout{grid-template-columns:1fr}.version-sidebar{grid-template-columns:repeat(3,1fr)}.history-heading{grid-column:1 / -1}}@media(max-width:620px){.topbar{align-items:flex-start;height:auto;flex-direction:column;gap:8px;padding:14px 16px}.workspace{padding:12px}.question-card,.question-rail,.attempt-panel{padding:16px}.question-actions{flex-direction:column}.match-row{align-items:stretch;flex-direction:column}.match-row span,.match-row select{width:100%;max-width:none}.builder-layout{padding:12px}.identity-card,.draft-editor{padding:16px}.section-heading{flex-direction:column}.draft-actions{justify-content:flex-start}.version-sidebar{grid-template-columns:1fr}.history-heading{grid-column:auto}.editor-grid{grid-template-columns:1fr}.config-row{grid-template-columns:1fr 1fr 32px}}
