:root { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #20242a; background: #e6e8eb; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, .header a { border: 2px solid #414951; border-radius: 8px; background: #fff; color: #20242a; padding: 7px 11px; font-weight: 700; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 4px solid #193347; outline-offset: 2px; }
.builder { height: 100dvh; display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 12px; padding: 16px 22px; }
.header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.header h1 { margin: 0; font-size: clamp(28px, 2.4vw, 44px); }
.header p { margin: 4px 0 0; font-size: clamp(15px, 1.1vw, 21px); }
.header .eyebrow { margin: 0 0 3px; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.header a { white-space: nowrap; }
.layout { display: grid; grid-template-columns: minmax(240px, 26%) minmax(0,1fr); gap: 14px; min-height: 0; }
.outline, .editor { background: #f8f9fa; border: 3px solid #414951; border-radius: 14px; padding: 14px; min-height: 0; }
.outline { display: flex; flex-direction: column; }
.outline label, .editor label, legend { font-weight: 750; }
#set-title, #prompt, .answer-grid input, select { width: 100%; border: 2px solid #7b858e; border-radius: 6px; background: #fff; padding: 8px; }
#progress { margin: 12px 0 8px; font-weight: 750; }
.question-list { min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-content: start; gap: 6px; margin-bottom: 10px; }
.question-list button { padding: 6px; font-variant-numeric: tabular-nums; }
.question-list button[aria-current="true"] { background: #303a44; color: #fff; }
.question-list button.complete:not([aria-current="true"]) { background: #dce5e9; }
.outline #add-question { margin-top: auto; }
.editor { overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.editor-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.editor h2 { margin: 0; font-size: clamp(24px,2vw,36px); }
.step-controls, .question-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.limit { font-size: .8em; font-weight: 500; }
#prompt { resize: vertical; min-height: 82px; }
fieldset { border: 2px solid #a4adb5; border-radius: 8px; padding: 10px; margin: 0; }
.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.answer-grid label { display: flex; align-items: center; gap: 8px; }
.answer-grid input { min-width: 0; }
select { width: 110px; }
.note { margin: auto 0 0; border-top: 2px solid #c0c7cd; padding-top: 10px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #f8f9fa; border: 3px solid #414951; border-radius: 12px; padding: 10px 14px; }
.import-label { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.import-label input { width: 200px; }
.finish { display: flex; align-items: center; gap: 10px; text-align: right; }
#validation-status { max-width: 300px; font-size: 14px; font-weight: 650; }
#use-pack { background: #303a44; color: #fff; }
@media (max-width: 800px) { .builder { height: auto; min-height: 100dvh; } .layout { grid-template-columns: 1fr; } .outline { max-height: 250px; } .footer { flex-direction: column; align-items: stretch; } .finish { justify-content: space-between; } }
