:root{font-family:'Pretendard','Malgun Gothic',sans-serif;font-size:14px;color:#263b33;background:#f5f6f3;--green:#254c3b;--line:#d8dfd8;--muted:#68746d;--paper:#fff;--soft:#eef3ef}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{min-height:44px;padding:10px 18px;border:1px solid var(--green);border-radius:5px;background:var(--green);color:#fff;cursor:pointer;line-height:1.5}button:hover:not(:disabled){filter:brightness(.96)}button:disabled{opacity:.45;cursor:not-allowed}.secondary{background:#fff;color:var(--green);border-color:#b8c5bc}.text-button{border:0;background:transparent;color:var(--green);padding:6px 8px}.teacher-button{background:#fff;color:var(--green)}input,select{width:100%;min-width:0;min-height:44px;background:#fff;border:1px solid #c7d1c9;border-radius:4px;padding:10px 12px;color:inherit}input[type=checkbox]{width:18px;min-height:18px;height:18px;margin:0;accent-color:var(--green);flex-shrink:0}select:disabled{background:#f0f2ef;color:#88908b}label{display:block;font-size:13px;line-height:1.8;font-weight:600}label input,label select{margin-top:6px;font-weight:400}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b08a40;outline-offset:3px}.site-header{background:#fff;border-bottom:1px solid var(--line);padding:22px max(24px,calc((100vw - 1160px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font-size:19px;font-weight:700;color:var(--green);text-decoration:none;letter-spacing:-.6px}.brand span{font-weight:400;margin-left:10px;color:#60736a;font-size:15px}.header-label{font-size:12px;color:var(--muted)}.workspace{max-width:1208px;padding:36px 24px 20px;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:28px}.eyebrow{font-size:11px;letter-spacing:1px;color:#75887b;margin:0 0 7px}h1{font-size:30px;letter-spacing:-1px;margin:0;font-weight:700}h2{font-size:18px;letter-spacing:-.4px;margin:0}h3{font-size:13px;margin:0}.intro{color:var(--muted);margin:12px 0 0;font-size:13px;line-height:1.8}.db-status{text-align:right;max-width:260px}.db-status p{font-size:12px;line-height:1.8;margin:0;color:var(--green)}.db-status p.error{color:#a14130}.db-status .text-button{font-size:11px;min-height:30px}.search-panel,.results-panel,.worksheet-panel{background:#fff;border:1px solid var(--line);border-radius:6px;margin-bottom:20px;overflow:hidden}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:21px 24px;border-bottom:1px solid var(--line)}.section-heading h2{display:flex;align-items:center;gap:12px}.step{font-size:11px;color:#6b8a74;letter-spacing:1px;font-weight:400}.section-heading p{margin:0;color:var(--muted);font-size:12px;line-height:1.7}.category-grid{display:grid;grid-template-columns:1fr 1.3fr 1.3fr}.category-column{min-width:0;border-right:1px solid var(--line)}.category-column:last-child{border:0}.category-column h3{padding:13px 20px;border-bottom:1px solid var(--line);background:#f6f8f5;font-weight:600}.category-options{height:236px;overflow-y:auto;padding:8px;scrollbar-width:thin}.category-options button{width:100%;border:0;background:transparent;color:#43554b;text-align:left;border-radius:3px;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;padding:10px 12px}.category-options button[aria-pressed=true]{background:#e7efe8;color:var(--green);font-weight:700}.category-options button span{color:#94a698}.category-options button[aria-pressed=true] span{color:var(--green)}.category-add-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px;border-top:1px solid var(--line);background:#fafbf9}.category-add-row p{font-size:12px;line-height:1.8;margin:0;color:#5c7062}.category-add-row button{flex-shrink:0}.selected-categories{padding:18px 24px}.field-caption{font-size:12px;font-weight:600}.field-caption b{color:var(--green);margin-left:5px}#category-chips,#selection-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}#category-chips .muted{margin:0}.chip{border:1px solid #c8d7ca;background:#f0f5ef;color:var(--green);padding:7px 10px;min-height:36px;font-size:12px;display:flex;align-items:center;gap:9px;text-align:left;overflow-wrap:anywhere}.chip span{font-size:18px;font-weight:400}.selection-hint{font-size:11px;color:var(--muted);margin:12px 0 0}.filter-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;padding:22px 24px 10px}.field-note{display:block;font-size:10px;color:#8a918c;font-weight:400;margin-top:4px}.keyword-row{display:grid;grid-template-columns:1fr 190px auto;align-items:end;gap:16px;padding:10px 24px 18px}.keyword input{font-size:16px}#search-note{padding:0 24px;margin:0 0 18px}.muted{font-size:12px;color:var(--muted);line-height:1.8}.empty{font-size:13px;color:var(--muted);line-height:1.9;padding:20px 14px;margin:0}.results-heading{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.results-heading h2 span{font-size:13px;font-weight:400;color:var(--green);margin-left:10px}.results-heading p{margin:7px 0 0}.select-all,.include-label{display:flex;gap:8px;align-items:center;white-space:nowrap;font-size:12px;font-weight:400}.select-all input,.include-label input{margin:0}.results-empty{text-align:center;padding:48px 18px}.question-row{padding:20px 24px;border-bottom:1px solid #e3e8e2;display:grid;grid-template-columns:30px 1fr auto;align-items:start;gap:12px}.question-row:last-child{border-bottom:0}.question-row.included{background:#fafcf9}.row-number{color:#8b998f;padding-top:4px;font-size:13px}.question-meta{color:#718075;font-size:11px;display:flex;flex-wrap:wrap;gap:6px 12px;margin-bottom:7px}.question-stem{font-size:14px;line-height:1.8;margin:0 0 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.question-classification{font-size:11px;line-height:1.7;color:#68806e;margin:0}.question-classification span{display:inline-block;margin-right:12px}.row-actions{display:flex;align-items:center;gap:14px;padding-top:2px}.preview-button{min-height:36px;padding:7px 13px;font-size:12px}.review-status{font-size:11px;color:#64846d;margin-top:8px}.hold{color:#a16b36}.row-actions .include-label:has(input:disabled){color:#969e97}.work-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.work-tag{background:transparent;border:0;min-height:28px;padding:2px 0;margin-right:6px;color:#6c8173;font-size:11px}#list-pagination{display:flex;align-items:center;justify-content:center;gap:8px;padding:22px;border-top:1px solid var(--line)}#list-pagination[hidden],[hidden]{display:none!important}#list-pagination button{min-width:40px;min-height:40px;padding:7px 12px;background:#fff;color:#5b7062;border-color:#d8dfd8}#list-pagination button[aria-current=page]{background:var(--green);color:white;border-color:var(--green)}#list-pagination span{font-size:12px;color:var(--muted);padding:0 8px}.worksheet-fields{display:flex;align-items:end;gap:20px;padding:22px 24px}.worksheet-fields label{flex:1;max-width:580px}.worksheet-fields input{font-size:16px}.worksheet-panel details{padding:0 24px 18px}.worksheet-panel summary{font-size:12px;color:var(--green);cursor:pointer}.bottom-actions{padding:18px 24px;display:flex;gap:16px;align-items:center;justify-content:space-between;border-top:1px solid var(--line);background:#fafbf9}.make-buttons{display:flex;gap:10px}#worksheet-result{margin:0;padding:0 24px 18px;font-size:13px;line-height:1.8}#worksheet-result:empty{padding:0}#worksheet-result a{color:var(--green);font-weight:600;display:inline-block;margin:8px 16px 0 0}footer{padding:6px 2px 20px;color:#859086;font-size:11px;line-height:1.8}.skip{position:absolute;top:-100px;background:#fff;padding:10px;z-index:10}.skip:focus{top:0}dialog{padding:0;border:1px solid var(--line);border-radius:8px;width:min(780px,calc(100vw - 32px));max-height:calc(100dvh - 40px);color:inherit;background:#fff;overflow:hidden}dialog::backdrop{background:#18342585}.preview-header,.preview-footer{padding:18px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff}.preview-header{border-bottom:1px solid var(--line)}.preview-footer{border-top:1px solid var(--line);font-size:11px}.preview-footer span{color:#7b8c7f}#preview-content{max-height:calc(100dvh - 230px);overflow-y:auto;padding:24px;overscroll-behavior:contain}.preview-meta{font-size:12px;color:var(--muted);line-height:1.8;margin:0 0 18px}.preview-stem{font-size:16px;line-height:1.85;white-space:pre-wrap;margin:20px 0}.passage{font-size:14px;white-space:pre-wrap;line-height:1.9}.passage-section,.material-box{border:1px solid #bac9bd;padding:18px;margin:16px 0}.passage-section h3{color:#657b6b;font-size:12px;margin-bottom:12px}.material-box h4{margin:0 0 12px;font-size:12px;text-align:center}.choices{list-style:none;padding:0;margin:18px 0}.choices li{display:flex;gap:10px;align-items:start;margin:12px 0;font-size:14px;line-height:1.9}.choices .choice-number{flex-shrink:0}.choices .passage{flex:1;min-width:0}.material-table-wrap{overflow-x:auto}.material-table{border-collapse:collapse;width:100%;font-size:13px}.material-table td,.material-table th{border:1px solid #bbc8bd;padding:7px;white-space:pre-wrap;text-align:left}.material-table th{background:#f4f6f1}.material-image{max-width:100%;height:auto}.figure-emoticon{max-width:60px}.figure-poster{max-width:134px}.passage u{text-underline-offset:3px}.usage-note{background:#faf4e7;border-left:3px solid #bba577;padding:12px;font-size:12px;line-height:1.9;margin:14px 0}.answer-details{border-top:1px solid var(--line);padding-top:16px;margin-top:22px}.answer-details summary{cursor:pointer;font-size:13px;color:var(--green)}.analysis{white-space:pre-wrap;font-size:13px;line-height:1.9;margin-top:12px}
@media(max-width:900px){.filter-grid{grid-template-columns:repeat(3,1fr)}.keyword-row{grid-template-columns:1fr 170px auto}.row-actions{flex-direction:column;align-items:end;gap:10px}.section-heading p{max-width:230px}.category-grid{grid-template-columns:1fr 1fr 1fr}.workspace{padding:26px 18px}.header-label{display:none}}
@media(max-width:600px){.site-header{padding:18px 16px}.brand{font-size:17px}.brand span{font-size:12px;margin-left:6px}.workspace{padding:24px 12px 12px}.page-heading{display:block;margin:0 4px 22px}h1{font-size:27px}.intro{font-size:12px}.db-status{max-width:none;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}.db-status p{font-size:11px;flex:1}.section-heading{padding:18px 16px;display:block}.section-heading h2{font-size:16px}.section-heading p{max-width:none;margin:7px 0 0 26px;font-size:11px}.category-grid{grid-template-columns:1fr 1fr}.category-column:first-child{grid-column:1/-1;border-right:0;border-bottom:1px solid var(--line)}.category-column:first-child .category-options{height:auto;max-height:156px;display:grid;grid-template-columns:repeat(3,1fr);padding:8px}.category-column:first-child button{font-size:12px;padding:9px 8px;justify-content:center}.category-column:first-child button span{display:none}.category-column:nth-child(2){border-right:1px solid var(--line)}.category-column h3{padding:11px 16px}.category-options{height:204px;padding:5px}.category-options button{font-size:12px;padding:10px 8px;line-height:1.6}.category-add-row{padding:12px 16px;gap:10px}.category-add-row p{font-size:11px}.category-add-row button{font-size:12px;padding:8px 12px}.selected-categories{padding:16px}.chip{font-size:11px}.filter-grid{grid-template-columns:1fr 1fr;gap:14px;padding:18px 16px 8px}.filter-grid label:last-child{grid-column:1/-1}.filter-grid input,.filter-grid select,.keyword-row select{font-size:16px}.keyword-row{grid-template-columns:1fr auto;gap:12px;padding:12px 16px 16px}.keyword{grid-column:1/-1}.search-mode{min-width:0}.keyword-row button{margin-bottom:0;padding:10px 16px}#search-note{padding:0 16px;font-size:11px}.results-heading{display:block;padding:18px 16px}.results-heading h2{font-size:16px}.results-heading .select-all{margin-top:12px}.question-row{padding:18px 16px;grid-template-columns:20px 1fr;gap:6px 10px}.row-number{font-size:12px}.question-stem{font-size:13px}.row-actions{grid-column:2;flex-direction:row;justify-content:space-between;align-items:center;margin-top:7px}.question-meta{font-size:10px}.question-classification{font-size:10px}#list-pagination{padding:16px 8px;gap:5px}#list-pagination button{padding:7px 9px;min-width:34px}#list-pagination span{padding:0;font-size:11px}.worksheet-fields{padding:18px 16px;display:block}.worksheet-fields label{max-width:none}.worksheet-fields button{margin-top:8px;font-size:12px}.bottom-actions{padding:16px;display:block}.bottom-actions>button{width:100%;margin-bottom:12px}.make-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.make-buttons button{font-size:12px;padding:10px 8px;min-height:48px}.worksheet-panel details{padding:0 16px 16px}#worksheet-result{padding-left:16px;padding-right:16px}.preview-header,.preview-footer{padding:14px 16px}#preview-content{padding:16px}.preview-footer{flex-wrap:wrap}.passage-section,.material-box{padding:12px}.preview-stem{font-size:15px}footer{padding:0 4px 16px}}
body:has(dialog[open]){overflow:hidden}@media(max-width:600px){dialog .material-table{min-width:440px}}
/* Original dark logo directly on the white header. */
.brand{display:flex;align-items:center;gap:12px}.brand-logo{display:flex;align-items:center;justify-content:center;width:244px;height:46px;overflow:hidden;background:transparent;border-radius:0;flex-shrink:0}.brand .brand-logo{margin-left:0}.brand-logo img{display:block;width:232px;height:auto;max-width:none;flex-shrink:0}.brand>span:last-child{margin-left:0}
.category-options button{min-height:36px;padding:6px 12px}
@media(max-width:600px){.site-header{padding:14px 16px}.brand{gap:10px}.brand-logo{width:194px;height:38px}.brand-logo img{width:184px}.brand>span:last-child{font-size:11px}.category-options button{min-height:36px;padding:6px 8px}.category-column:first-child button{padding:6px 8px}}
