:root{--paper:#f5f3ec;--white:#fffefa;--ink:#1a3038;--muted:#748083;--line:#dce0d8;--teal:#267d73;--teal-dark:#195e57;--teal-pale:#edf4ee;--navy:#1b363e;--gold:#b5843a;--red:#a44035;--shadow:0 14px 40px #183b4010;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.55}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #46a99a88;outline-offset:3px}input,textarea,select{accent-color:var(--teal)}[hidden]{display:none!important}input[type="text"],input[type="search"],input[type="url"],textarea,select{border:1px solid var(--line);border-radius:8px;background:#fffefa;padding:11px 12px;max-width:100%}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#8c9695}h1,h2,h3,p{margin:0}h2{font-size:21px;letter-spacing:-.7px}h3{font-size:16px;letter-spacing:-.3px}.skip-link{position:fixed;left:15px;top:-80px;background:var(--navy);color:white;padding:12px 20px;z-index:100}.skip-link:focus{top:10px}.site-header{max-width:1480px;margin:auto;min-height:94px;padding:22px 42px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:13px;align-items:center;text-decoration:none}.brand-symbol{background:var(--navy);border-radius:10px;width:45px;height:45px;color:white;font-family:Georgia,serif;font-size:32px;line-height:45px;position:relative;padding-left:8px}.brand-symbol span{font-family:inherit;font-size:11px;position:absolute;right:5px;bottom:-5px;color:#a8c7bc}.brand strong{font-size:17px;letter-spacing:-.7px}.brand small{font-size:10px;display:block;letter-spacing:1.8px;color:var(--muted);margin-top:2px}.header-actions{display:flex;align-items:center;gap:20px}.local-label{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px}.local-label span{width:6px;height:6px;border-radius:50%;background:var(--teal)}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;border:1px solid var(--line);border-radius:8px;background:var(--white);padding:11px 17px;font-size:13px;font-weight:600;transition:background .15s,transform .15s}.button:hover:not(:disabled){background:#efeee6}.button-primary{background:var(--teal);color:white;border-color:var(--teal)}.button-primary:hover:not(:disabled){background:var(--teal-dark);border-color:var(--teal-dark)}.button-quiet{background:transparent}.button-small{padding:8px 12px;font-size:12px}.text-button{background:none;border:0;padding:3px 0;color:var(--teal);font-size:12px;font-weight:600}.text-button:hover{text-decoration:underline}main{max-width:1480px;margin:auto;padding:0 42px 48px}.intro{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:46px 0 36px}.eyebrow{font-size:10px;letter-spacing:1.9px;font-weight:700;color:var(--teal);margin-bottom:8px}.intro h1{font-size:37px;line-height:1.3;letter-spacing:-1.6px;font-weight:650}.intro-copy{font-size:14px;color:var(--muted);margin-top:12px;line-height:1.8}.intro-note{padding-left:30px;border-left:1px solid #ced4c9;color:var(--muted);font-family:Georgia,serif;min-width:200px}.intro-note>span{font-size:10px;letter-spacing:1.2px}.intro-note p{font-family:inherit;font-size:17px;color:#677e78;line-height:1.75;margin-top:9px}.mobile-break{display:none}.workspace{display:grid;grid-template-columns:355px minmax(0,1fr);gap:26px;align-items:start}.builder-panel,.library-panel,.viewer-panel{background:var(--white);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.builder-panel{padding:24px 23px 0;overflow:visible}.panel-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:23px}.builder-panel .panel-heading{margin-bottom:22px}.field-block{padding:0 0 22px;margin:0 0 22px;border:0;border-bottom:1px solid var(--line);min-width:0}.field-block legend{font-size:13px;font-weight:650;padding:0;margin-bottom:11px}.mode-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mode-card{position:relative;border:1px solid var(--line);border-radius:10px;padding:13px 11px;cursor:pointer;display:block;background:#fbfaf6;transition:border .15s,background .15s}.mode-card input{position:absolute;right:11px;top:13px;margin:0;width:14px;height:14px}.mode-card.selected{border-color:var(--teal);background:var(--teal-pale);box-shadow:inset 0 0 0 1px var(--teal)}.mode-icon{display:block;font-size:23px;line-height:26px;font-weight:400;color:var(--teal);margin-bottom:6px}.mode-card strong{font-size:13px;display:block;font-weight:650}.mode-card small{display:block;color:var(--muted);font-size:11px;line-height:1.6;margin-top:5px}.ebs-notice{padding:12px;margin-top:10px;border-radius:8px;background:#f2f5ee;font-size:11px;display:flex;align-items:center;gap:8px}.ebs-notice p{flex:1}.ebs-notice strong{font-weight:650}.ebs-notice span{font-size:10px;color:var(--muted)}.segmented{display:flex;background:#f0f1eb;border:1px solid #e6e8df;border-radius:8px;padding:3px}.segmented label{flex:1;position:relative;cursor:pointer}.segmented input{position:absolute;opacity:0;width:1px;height:1px}.segmented span{display:block;padding:8px 5px;text-align:center;font-size:12px;border-radius:5px;color:var(--muted)}.segmented input:checked+span{color:var(--ink);background:var(--white);box-shadow:0 1px 4px #153b4010;font-weight:650}.segmented input:focus-visible+span{outline:3px solid #46a99a88}.count-row{display:flex;align-items:center;justify-content:space-between;margin-top:14px;font-size:12px}.number-control{display:flex;align-items:center;overflow:hidden;border:1px solid var(--line);border-radius:7px}.number-control button{width:30px;border:0;background:#f5f6f1;height:31px;font-size:15px}.number-control input{width:43px;border:0;text-align:center;background:var(--white);font-size:13px;padding:0;appearance:textfield;-moz-appearance:textfield}.number-control input::-webkit-inner-spin-button{appearance:none}.field-hint{font-size:11px;line-height:1.65;color:var(--muted);margin-top:9px}.optional{font-size:10px;font-weight:400;color:var(--muted);margin-left:5px}.category-header{display:flex;align-items:center;justify-content:space-between;margin-top:-2px;margin-bottom:12px;gap:5px}.category-header p{font-size:11px;color:var(--muted)}.category-fields{display:flex;flex-direction:column;gap:9px}.filter-group{position:relative}.filter-trigger{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;border:1px solid var(--line);border-radius:8px;background:var(--white);padding:10px 12px;min-height:43px;text-align:left;font-size:12px}.filter-trigger:hover:not(:disabled){border-color:#a9bbb1}.filter-trigger.open{border-color:var(--teal);box-shadow:0 0 0 2px #267d7310}.filter-trigger .filter-label{min-width:58px;font-weight:600}.filter-trigger .filter-summary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);text-align:right;flex:1;font-size:11px}.filter-trigger .chevron{font-size:11px;color:var(--muted)}.filter-count{background:var(--teal);border-radius:12px;color:white;font-size:10px;min-width:17px;text-align:center;padding:0 4px}.filter-popover{position:absolute;top:calc(100% + 5px);left:0;width:100%;z-index:20;border:1px solid #cbd6cc;background:var(--white);border-radius:9px;box-shadow:0 12px 30px #1b363e24;padding:9px}.filter-popover input[type="search"]{width:100%;font-size:12px;padding:8px 10px;background:#f7f8f2}.filter-options{max-height:216px;overflow:auto;margin-top:7px;overscroll-behavior:contain}.filter-option{display:flex;align-items:center;gap:9px;padding:8px 6px;border-radius:5px;cursor:pointer;font-size:12px}.filter-option:hover{background:var(--teal-pale)}.filter-option input{margin:0;flex-shrink:0}.filter-popover-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:6px;padding:7px 4px 0}.filter-empty{padding:16px 6px;font-size:12px;color:var(--muted)}.filter-disabled-note{font-size:10px;color:var(--muted);margin:5px 2px 1px}.check-line{display:flex;align-items:flex-start;gap:8px;font-size:11px;margin-top:15px;cursor:pointer}.check-line input{margin:2px 0 0}.category-fieldset{margin-bottom:17px;padding-bottom:17px}.advanced-options{margin-bottom:18px}.advanced-options>summary{font-size:12px;font-weight:600;cursor:pointer;color:#637575;padding:4px 0}.advanced-body{padding-top:13px}.input-label{display:block;font-size:11px;margin:12px 0 6px}.advanced-body .input-label:first-child{margin-top:0}.advanced-body input,.advanced-body textarea{width:100%;font-size:12px}.generation-footer{margin:0 -23px;padding:18px 23px 20px;background:#f6f7f0;border-top:1px solid var(--line);border-radius:0 0 14px 14px}.provider-state{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px;margin-bottom:10px}.status-dot{width:6px;height:6px;background:#b4bdb7;border-radius:50%;display:inline-block}.provider-state.ready .status-dot{background:var(--teal)}.provider-state.unavailable .status-dot{background:#b98944}.generate-button{display:flex;width:100%;justify-content:space-between;font-size:14px;height:47px;border-radius:8px}.generate-button>span:last-child{font-size:22px;font-weight:400}.provider-message{font-size:10px;line-height:1.65}.form-error{color:var(--red);font-size:12px;background:#fbebe4;padding:11px;border-radius:7px;margin-top:12px;overflow-wrap:anywhere}.results-column{display:flex;flex-direction:column;gap:22px;min-width:0}.library-panel{padding:24px 25px 18px}.library-panel .panel-heading{margin-bottom:18px}.count-badge{vertical-align:middle;background:#edf1e8;color:var(--teal);font-size:11px;letter-spacing:0;border-radius:20px;padding:2px 7px;margin-left:5px;font-weight:600}.corpus-note{font-size:10px;color:var(--muted);border:1px solid var(--line);padding:6px 9px;border-radius:6px}.corpus-note strong{color:var(--teal);font-size:12px;margin-right:3px}.library-tools{display:flex;gap:10px;margin-bottom:16px}.library-search{display:flex;align-items:center;border:1px solid var(--line);border-radius:8px;padding:0 11px;flex:1;min-width:0;background:#f8f8f2}.library-search span{font-size:21px;line-height:1;color:var(--muted);margin-right:7px}.library-search input{border:0;flex:1;min-width:0;background:transparent;padding:9px 0;font-size:12px}.library-tools select{font-size:11px;padding:8px 25px 8px 10px;width:130px}.book-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:470px;overflow:auto}.book-card{border:1px solid var(--line);border-radius:10px;padding:18px;position:relative;overflow:hidden;background:#fcfcf8;text-align:left;display:flex;flex-direction:column;min-height:179px;transition:transform .16s,border-color .16s}.book-card:before{content:"";position:absolute;left:0;top:0;height:100%;width:4px;background:#8baba0}.book-card.ebs:before{background:#b69661}.book-card:hover{border-color:#7fa393;transform:translateY(-2px)}.book-card.active{border-color:var(--teal);background:#f1f6ee;box-shadow:inset 0 0 0 1px var(--teal)}.book-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:15px}.mode-tag{color:var(--teal);background:#e9f1e9;border-radius:4px;font-size:10px;display:inline-block;padding:3px 6px;font-weight:600}.mode-tag.ebs{background:#f3eddf;color:#9c783e}.book-card-number{color:#b8bfb8;font-family:Georgia,serif;font-size:17px;font-style:italic}.book-card h3{font-size:16px;line-height:1.5;letter-spacing:-.5px;flex:1;margin:0 0 15px;overflow-wrap:anywhere}.book-card-bottom{display:flex;justify-content:space-between;gap:9px;font-size:10px;color:var(--muted)}.book-card-bottom span:first-child{color:#4d6261;font-weight:600}.library-footnote{font-size:10px;color:var(--muted);margin-top:14px}.empty-state{grid-column:1/-1;min-height:155px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:25px;border:1px dashed #ced7cb;border-radius:9px;color:var(--muted);font-size:12px}.empty-state .empty-mark{font-family:Georgia,serif;font-size:32px;line-height:1.3;margin-bottom:8px;color:#94a49b}.empty-state small{margin-top:5px;font-size:11px}.loader{width:22px;height:22px;border:2px solid #dfe5d9;border-top-color:var(--teal);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:12px}.job-card{border:1px solid #b9d1c2;border-radius:12px;background:#eff5ec;padding:21px 23px}.job-top{display:flex;align-items:center;gap:12px}.job-top .eyebrow{margin-bottom:4px;font-size:9px}.job-top h3{font-size:15px}.job-icon{background:#dceadf;border-radius:50%;height:36px;width:36px;display:grid;place-items:center;color:var(--teal);font-size:24px;flex-shrink:0}.job-card.running .job-icon{animation:spin 3s linear infinite}.job-badge{margin-left:auto;background:#dceadf;color:var(--teal);font-size:10px;padding:3px 7px;border-radius:5px;white-space:nowrap}.job-card>p{font-size:12px;color:#637a70;margin-top:13px;overflow-wrap:anywhere}.job-track{height:3px;border-radius:3px;background:#d9e6d9;overflow:hidden;margin-top:17px}.job-track span{display:block;width:35%;height:100%;background:#70aa91;animation:progress 2.5s ease-in-out infinite}.job-actions{display:flex;justify-content:space-between;align-items:center;margin-top:15px}.job-card.failed{background:#fff3ec;border-color:#e7c7b4}.job-card.failed .job-icon,.job-card.failed .job-badge{background:#f2ded0;color:#9e6445}.job-card.failed>p{color:#9e6445}.viewer-panel{overflow:hidden}.viewer-heading{padding:25px 27px 16px;display:flex;justify-content:space-between;gap:15px;align-items:start}.viewer-heading h2{font-size:21px;line-height:1.5}.viewer-heading>div{min-width:0}.viewer-heading p:not(.eyebrow){font-size:12px;color:var(--muted);margin-top:7px;line-height:1.7}.draft-label{font-size:9px;color:#8c7858;white-space:nowrap;border:1px solid #e2d9c6;border-radius:4px;padding:4px 7px;margin-top:3px}.viewer-actions{padding:0 27px 20px;display:flex;gap:8px;flex-wrap:wrap}.question-nav{display:flex;gap:5px;overflow:auto;padding:14px 27px;background:#f4f5ef;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.question-nav button{width:30px;min-width:30px;height:30px;border:1px solid #dbe1d6;border-radius:5px;background:var(--white);font-size:11px}.question-nav button.active{background:var(--navy);color:white;border-color:var(--navy)}.question-nav button:hover:not(.active){border-color:var(--teal);color:var(--teal)}.question-sheet{padding:28px 34px 12px;background:#fffefa}.question-meta{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-bottom:17px;font-size:10px;color:var(--muted)}.question-meta span{background:#f1f2eb;padding:3px 6px;border-radius:4px}.question-meta .difficulty-hard{background:#f5eada;color:#a37639}.question-meta .question-score{margin-left:auto;background:none;font-size:11px;color:var(--muted)}.question-prompt{font-size:16px;line-height:1.8;letter-spacing:-.3px;margin-bottom:22px;white-space:pre-wrap}.group-notice{font-size:11px;color:var(--teal);background:#edf4ed;padding:9px 11px;border-radius:5px;margin:0 0 14px}.passage{font-family:Georgia,"Times New Roman",serif;font-size:17px;line-height:1.92;white-space:pre-wrap;overflow-wrap:break-word;color:#223339;margin-bottom:24px;letter-spacing:.02px}.answer-options{list-style:none;counter-reset:option;padding:0;margin:22px 0 25px;display:flex;flex-direction:column;gap:10px}.answer-options li{display:flex;gap:10px;align-items:flex-start;font-family:Georgia,"Times New Roman","Apple SD Gothic Neo",serif;font-size:15px;line-height:1.7}.option-marker{font-family:-apple-system,BlinkMacSystemFont,sans-serif;min-width:19px;color:#52655f}.answer-options li.correct{color:var(--teal);font-weight:600}.table-wrap{overflow:auto;margin:0 0 22px}.question-table{border-collapse:collapse;width:100%;min-width:340px;text-align:center;font-family:Georgia,serif;font-size:13px}.question-table th,.question-table td{border:1px solid #8b9690;padding:8px 10px}.question-table th{background:#f0f2e9;font-weight:600}.answer-toolbar{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:16px;gap:10px}.answer-toggle{background:none;border:0;padding:4px 0;color:var(--teal);font-size:12px;font-weight:600;text-align:left}.answer-toggle span{margin-left:8px}.estimated-time{font-size:10px;color:var(--muted)}.answer-detail{background:#f3f7ef;border:1px solid #dbe7d8;border-radius:8px;padding:20px;margin-top:17px;font-size:12px;line-height:1.8}.answer-detail h4{font-size:12px;margin:15px 0 5px;font-weight:650}.answer-detail h4:first-child{margin-top:0}.answer-detail .correct-answer{font-size:18px;font-family:Georgia,serif;font-weight:600;color:var(--teal);margin-bottom:12px}.answer-detail p{white-space:pre-wrap}.distractor-list{margin:6px 0 0;padding-left:20px;color:#5e706a}.distractor-list li{padding:3px 0}.source-reference{border-top:1px solid #dbe7d8;padding-top:13px;margin-top:16px}.source-reference a{display:block;color:var(--teal);font-size:11px;margin-top:5px;overflow-wrap:anywhere}.question-pagination{padding:20px 27px;display:flex;align-items:center;justify-content:space-between;gap:10px}.question-pagination>span{font-size:11px;color:var(--muted)}.method-note{display:flex;gap:22px;padding:25px 3px 10px;color:#62776f}.method-number{font-family:Georgia,serif;color:#91a79a;font-size:25px;white-space:nowrap;line-height:1.3;margin-top:3px}.method-note h3{font-size:14px;font-weight:600;margin-bottom:8px}.method-note p{font-size:12px;line-height:1.8;max-width:520px}.method-steps{display:flex;gap:12px;align-items:center;margin-top:13px;font-size:10px;color:#6b8479}.method-steps i{font-style:normal;color:#acb9ad}.site-footer{max-width:1396px;margin:auto;padding:20px 0 28px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;font-size:10px;color:#8a9590}.connection-banner{background:#fff0e5;border:1px solid #e6ccb7;border-radius:9px;padding:12px 16px;display:flex;justify-content:space-between;gap:14px;align-items:center;font-size:12px;color:#9a6946;margin-bottom:20px}.connection-banner>span{overflow-wrap:anywhere}.sources-dialog{border:1px solid var(--line);border-radius:16px;background:var(--white);color:var(--ink);padding:0;width:min(800px,calc(100vw - 32px));max-height:88vh;box-shadow:0 30px 100px #183b4055}.sources-dialog::backdrop{background:#132d3680;backdrop-filter:blur(3px)}.dialog-header{display:flex;justify-content:space-between;align-items:center;padding:25px 28px 15px}.dialog-header h2{font-size:23px}.icon-button{width:34px;height:34px;background:#f0f3eb;border:1px solid var(--line);border-radius:50%;font-size:25px;line-height:1}.dialog-description{font-size:12px;line-height:1.8;color:var(--muted);padding:0 28px 18px}.source-controls{padding:0 28px 16px;display:flex;gap:15px;align-items:center}.source-controls input{flex:1;min-width:0;font-size:12px}.source-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 28px 20px;max-height:420px;overflow:auto}.source-card{border:1px solid var(--line);border-radius:9px;padding:14px;display:flex;flex-direction:column;background:#fcfcf7}.source-card.selected{border-color:var(--teal);background:#f0f6ed}.source-card-top{display:flex;gap:9px;align-items:flex-start;cursor:pointer}.source-card-top input{margin:4px 0 0}.source-card h3{font-size:13px;line-height:1.6;flex:1;font-weight:600}.source-book{font-size:10px;color:#8a785a;margin-top:10px;line-height:1.6}.source-card p:not(.source-book){font-size:11px;color:var(--muted);line-height:1.8;margin-top:7px}.source-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:12px}.source-card-footer a{font-size:10px;color:var(--teal);text-decoration:none}.source-card-footer a:hover{text-decoration:underline}.source-verification{font-size:9px;padding:2px 5px;border-radius:4px;background:#e7efe3;color:#6c8e6e}.source-verification.unverified{background:#f4ead8;color:#a17c44}.add-source-section{margin:0 28px 20px;border:1px solid var(--line);border-radius:9px;padding:14px 16px;background:#f7f8f1}.add-source-section>summary{font-size:12px;font-weight:600;color:var(--teal);cursor:pointer}.add-source-section form>label,.source-form-grid>label{display:flex;flex-direction:column;gap:5px;font-size:11px;margin-top:12px}.add-source-section input,.add-source-section textarea,.add-source-section select{font-size:12px;width:100%}.source-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.add-source-section .button{margin-top:14px}.dialog-footer{position:sticky;bottom:0;display:flex;justify-content:space-between;align-items:center;gap:15px;background:var(--white);border-top:1px solid var(--line);padding:16px 28px}.dialog-footer>span{font-size:11px;color:var(--muted)}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;border:1px solid #385159;border-radius:9px;padding:12px 21px;box-shadow:0 8px 35px #183b4025;font-size:12px;max-width:min(500px,calc(100vw - 40px));z-index:100;line-height:1.7}.skeleton-field{height:43px;border-radius:8px;background:linear-gradient(90deg,#f0f2e9,#e8eee3,#f0f2e9);background-size:200%;animation:shimmer 2s infinite}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes progress{0%{transform:translateX(-100%)}100%{transform:translateX(390%)}}@keyframes shimmer{to{background-position:-200%}}
@media(min-width:1350px){.workspace{grid-template-columns:375px minmax(0,1fr);gap:30px}.builder-panel{padding-left:25px;padding-right:25px}.generation-footer{margin-left:-25px;margin-right:-25px;padding-left:25px;padding-right:25px}.question-sheet{padding-left:44px;padding-right:44px}.library-panel{padding-left:29px;padding-right:29px}.book-card{padding:21px}}
@media(max-width:1100px){.site-header{padding-left:25px;padding-right:25px}main{padding-left:25px;padding-right:25px}.workspace{grid-template-columns:320px minmax(0,1fr);gap:20px}.builder-panel{padding-left:19px;padding-right:19px}.generation-footer{margin-left:-19px;margin-right:-19px;padding-left:19px;padding-right:19px}.library-panel{padding:22px 20px 17px}.corpus-note{display:none}.book-card{padding:15px;min-height:175px}.book-card h3{font-size:14px}.viewer-heading,.viewer-actions{padding-left:22px;padding-right:22px}.question-sheet{padding-left:25px;padding-right:25px}.question-nav{padding-left:22px;padding-right:22px}.intro-note{display:none}.site-footer{margin-left:25px;margin-right:25px}}
@media(max-width:860px){.workspace{grid-template-columns:1fr}.builder-panel{padding:23px 24px 0}.generation-footer{margin-left:-24px;margin-right:-24px;padding-left:24px;padding-right:24px}.category-fields{display:grid;grid-template-columns:1fr 1fr}.field-block{margin-bottom:20px;padding-bottom:20px}.mode-card{padding:15px 16px}.mode-card small br{display:none}.mode-icon{font-size:25px;display:inline-block;margin-right:9px;margin-bottom:2px;vertical-align:middle}.mode-card strong{display:inline-block}.mode-card small{margin-top:4px}.mode-card input{top:19px;right:16px}.intro{padding-top:32px;padding-bottom:28px}.intro h1{font-size:33px}.builder-panel .panel-heading{margin-bottom:18px}.library-panel{padding:24px}.corpus-note{display:block}.book-card{min-height:165px;padding:20px}.book-card h3{font-size:17px}.book-grid{max-height:370px}.method-note{padding-left:12px}.site-footer{font-size:9px}}
@media(max-width:520px){.site-header{padding:17px 18px;min-height:80px}.brand-symbol{width:39px;height:39px;line-height:39px;font-size:29px;border-radius:8px}.brand{gap:10px}.brand strong{font-size:16px}.brand small{font-size:9px;letter-spacing:1.2px}.local-label{display:none}.header-actions{gap:8px}.header-actions .button{font-size:11px;padding:8px 11px}main{padding:0 15px 30px}.intro{padding:28px 3px 24px}.intro h1{font-size:30px;letter-spacing:-1.2px;line-height:1.4}.intro-copy{font-size:12px;line-height:1.9;margin-top:10px}.mobile-break{display:block}.eyebrow{font-size:9px;letter-spacing:1.5px}.builder-panel{padding:21px 18px 0}.generation-footer{margin-left:-18px;margin-right:-18px;padding-left:18px;padding-right:18px}.mode-card{padding:13px 12px}.mode-card input{top:15px;right:12px}.mode-icon{display:block;margin-bottom:7px}.mode-card small{font-size:10px}.mode-card small br{display:block}.category-fields{grid-template-columns:1fr}.library-panel{padding:21px 17px 16px}.panel-heading h2{font-size:20px}.corpus-note{font-size:9px;padding:5px 6px}.library-tools select{width:118px;padding-right:15px;font-size:10px}.book-grid{gap:9px;max-height:440px}.book-card{padding:15px 12px 14px;min-height:186px}.book-card h3{font-size:14px;line-height:1.6}.book-card-top{margin-bottom:12px}.book-card-bottom{font-size:9px;flex-direction:column;gap:3px}.book-card-number{font-size:14px}.mode-tag{font-size:9px;padding:3px 5px}.viewer-heading{padding:22px 19px 14px}.viewer-heading h2{font-size:18px}.viewer-heading p:not(.eyebrow){font-size:11px}.draft-label{font-size:8px;padding:3px 5px}.viewer-actions{padding:0 19px 16px;gap:6px}.viewer-actions .button{font-size:10px;padding:7px 9px}.question-nav{padding:12px 19px}.question-sheet{padding:23px 20px 8px}.question-prompt{font-size:15px;line-height:1.8}.passage{font-size:16px;line-height:1.9}.answer-options li{font-size:14px}.question-meta{gap:5px;font-size:9px;margin-bottom:15px}.answer-detail{padding:16px;font-size:11px}.question-pagination{padding:18px 18px}.question-pagination .button{font-size:10px;padding:7px 9px}.question-pagination>span{font-size:10px}.estimated-time{font-size:9px}.answer-toggle{font-size:11px}.method-note{gap:15px;padding:10px 4px}.method-number{font-size:21px}.method-note h3{font-size:13px}.method-note p{font-size:11px}.method-steps{gap:8px;font-size:9px}.site-footer{margin:0 18px;padding:17px 0 23px;flex-direction:column;gap:5px}.job-card{padding:18px}.job-top h3{font-size:13px}.job-badge{font-size:9px}.job-icon{width:30px;height:30px;font-size:20px}.job-card>p{font-size:11px}.dialog-header{padding:20px 18px 12px}.dialog-description{padding:0 18px 15px;font-size:11px}.source-controls{padding:0 18px 14px}.source-list{padding:0 18px 18px;grid-template-columns:1fr;max-height:380px}.add-source-section{margin:0 18px 18px;padding:12px}.dialog-footer{padding:14px 18px}.dialog-footer>span{font-size:10px}.dialog-footer .button{font-size:12px;padding:9px 13px}.sources-dialog{max-height:92vh}.connection-banner{font-size:11px;padding:11px}.connection-banner .button{white-space:nowrap}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Choice labels are already included in explanation text. */
.distractor-list{list-style:none;padding-left:0}

/* Job percentages follow server stages; only the time labels tick locally. */
.job-progress-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:20px}
.job-progress-heading strong{font-size:32px;line-height:1.1;letter-spacing:-1px;color:var(--navy);font-variant-numeric:tabular-nums}
.job-progress-heading>span{font-size:11px;color:#637a70;text-align:right;overflow-wrap:anywhere}
.job-card .job-stage{font-size:13px;line-height:1.65;margin-top:8px;color:#405f53}
.job-card .job-track{height:7px;margin-top:14px;border-radius:8px}
.job-card .job-track span{width:0;background:var(--teal);border-radius:8px;animation:none;transform:none;transition:width .35s ease}
.job-card.running .job-track.indeterminate span{animation:progress 2.5s ease-in-out infinite;transition:none}
.job-timing{display:flex;flex-wrap:wrap;gap:12px 30px;margin:17px 0 0}
.job-timing>div{display:flex;align-items:baseline;gap:9px}
.job-timing>div[hidden]{display:none}
.job-timing dt{font-size:11px;color:#637a70}
.job-timing dd{margin:0;color:var(--navy);font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.job-card .job-estimate-note{font-size:10px;line-height:1.7;color:#637a70;margin-top:10px}
.job-card .job-connection{padding:10px 12px;border-radius:7px;background:#fff8e8;color:#876331;font-size:11px;line-height:1.7;margin-top:12px}
.job-card.failed .job-stage,.job-card.failed .job-progress-heading strong{color:#9e6445}
.job-card.failed .job-track span{background:#b77855}
.job-card.complete .job-track span{background:var(--teal)}
@media(max-width:520px){
  .job-progress-heading{margin-top:18px;gap:10px}
  .job-progress-heading strong{font-size:28px}
  .job-progress-heading>span{font-size:10px}
  .job-card .job-stage{font-size:12px}
  .job-timing{gap:10px 20px}
  .job-timing>div{gap:7px}
  .job-timing dd{font-size:12px}
  .job-card .job-estimate-note{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  .job-card .job-track span{animation:none!important;transition:none!important}
}

.generation-controls select{width:100%;font-size:12px;background:var(--white)}
.control-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 10px;margin-top:15px}
.control-grid>label,.word-range>label{font-size:11px;color:#526765}
.control-grid select{display:block;margin-top:6px}
.word-range{display:flex;align-items:center;gap:10px;margin-top:12px}
.word-range>label{flex:1;min-width:0}.word-range input{display:block;margin-top:6px}
.preflight-box{padding:12px;border:1px solid #d4e2d8;border-radius:8px;background:#f0f5ed;margin-bottom:15px}
.preflight-box p{font-size:11px;line-height:1.75;color:#45675a;margin:0}
.preflight-box #preflight-warnings{margin-top:6px;color:#806947}
.preflight-box.blocked{border-color:#e3c9b6;background:#fcf2e9}
.preflight-box.blocked p{color:#8a5b3b}
.preflight-box .text-button{font-size:11px;margin-top:8px;text-align:left}
.filter-option .topic-availability{font-size:9px;color:#778b81;margin-left:auto;white-space:nowrap}
.filter-option.unavailable{color:#84908a;background:#f4f4ef}
.filter-option.unavailable .topic-availability{color:#92745e}
.book-card{padding:0;min-height:210px;overflow:visible}
.book-card:before{pointer-events:none;border-radius:10px 0 0 10px}
.book-open{display:flex;flex-direction:column;flex:1;width:100%;border:0;background:transparent;text-align:left;padding:18px 18px 14px;border-radius:10px;color:inherit;cursor:pointer}
.book-open:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.book-open .book-card-top,.book-open .book-card-bottom{width:100%}
.book-title{display:block;font-size:16px;font-weight:700;line-height:1.5;letter-spacing:-.5px;flex:1;margin-bottom:15px;overflow-wrap:anywhere}
.book-management{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 16px;border-top:1px solid var(--line)}
.book-management .text-button{font-size:10px}
.trash-book-button{color:#8b7161}
.library-tools{flex-wrap:wrap}
.library-search{min-width:130px}
#open-trash{white-space:nowrap}#trash-count{margin-left:4px;font-variant-numeric:tabular-nums}
.management-dialog{width:min(520px,calc(100vw - 32px));max-height:85vh;border:1px solid var(--line);border-radius:14px;padding:0;color:var(--navy);background:var(--white);box-shadow:0 20px 70px #172d3033}
.management-dialog::backdrop{background:#172d3066;backdrop-filter:blur(3px)}
.management-body{padding:20px 28px 25px}
.management-body>p:first-child{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.management-body .field-hint{font-size:11px;font-weight:400;line-height:1.8}
.download-options{display:grid;gap:10px;margin:20px 0 15px}
.download-options a{justify-content:space-between;text-align:left}
.management-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.trash-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;border-bottom:1px solid var(--line)}
.trash-row h3{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.trash-row p{font-size:10px;color:var(--muted);margin-top:5px}
.trash-row .button{flex-shrink:0}.trash-empty{font-size:12px;color:var(--muted);padding:24px 0;text-align:center}
@media(max-width:520px){
  .book-card{min-height:210px}.book-open{padding:15px 12px 13px}.book-title{font-size:14px;line-height:1.6}
  .book-management{padding:10px;gap:5px;flex-wrap:wrap}.book-management .text-button{font-size:10px}
  .library-tools .library-search{flex-basis:100%}.library-tools>select{flex:1}
  .management-body{padding:18px}.management-dialog .dialog-header{padding:18px}
}
