/* Aurelis V7.1: one task at a time, using the established palette. */
body{min-height:100dvh;display:flex;flex-direction:column}main{width:100%;flex:1}textarea{font:inherit}button:disabled{cursor:not-allowed}.notice-error{color:var(--error)!important}.inline-message:empty{display:none}.small{font-size:13px}.subtle-note{font-size:13px;line-height:1.7;color:var(--muted);margin:12px 0 22px}
.study-hero{padding:36px 0 64px;max-width:690px}.study-hero h1{font-size:clamp(38px,5vw,58px);font-weight:650;line-height:1.14;letter-spacing:-2px;margin:0 0 23px}.study-hero h1 em{font-style:normal;color:var(--teal)}.study-hero p{font-size:18px;line-height:1.7;color:var(--muted);margin:0 0 28px;max-width:510px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.section-heading h2{font-size:23px;letter-spacing:-.6px;line-height:1.4;font-weight:610;margin:0}.section-heading>span{font-size:12px}.catalogue-section{border-top:1px solid var(--line);padding-top:30px;scroll-margin-top:24px}.study-filters{display:flex;align-items:center;gap:12px;margin-bottom:25px}.study-filters>label{min-width:0}.search-field{flex:1;position:relative}.search-field svg{position:absolute;left:14px;top:14px;width:18px;height:18px;color:var(--muted)}.search-field input{width:100%;border:1px solid #cbd9dc;border-radius:9px;min-height:46px;padding:11px 14px 11px 41px;background:white;font-size:14px;color:var(--ink)}
select:not(.target-switch select){appearance:none;background:#fff url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%2363777f' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") no-repeat right 15px center;color:var(--ink);border:1px solid #cbd9dc;border-radius:9px;min-height:46px;padding:11px 43px 11px 14px;font-size:14px;max-width:100%;text-overflow:ellipsis}
.contest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.contest-card{display:flex;flex-direction:column;padding:26px;border:1px solid var(--line);border-radius:15px;background:white;min-width:0}.contest-card:hover{border-color:#adc9c9}.badge{display:inline-flex;align-items:center;padding:5px 9px;background:var(--soft);border-radius:6px;color:var(--dark);font-size:11px;font-weight:600;line-height:1.5}.badge.neutral{background:#f1f4f5;color:var(--muted)}.badge.amber{background:#faf2e4;color:#806225}.contest-card h3{font-size:21px;letter-spacing:-.5px;line-height:1.4;margin:18px 0 7px;font-weight:620;overflow-wrap:anywhere}.contest-card h3 a{color:inherit;text-decoration:none}.card-role{font-size:14px;line-height:1.7;color:var(--muted);margin:0 0 22px}.card-facts{display:grid;grid-template-columns:1fr 1fr;gap:18px;border-top:1px solid var(--line);padding-top:20px;margin:0 0 25px}.card-facts dt,.fact-list dt{font-size:12px;color:var(--muted);margin-bottom:8px}.card-facts dd,.fact-list dd{font-size:15px;font-weight:550;margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin-top:auto}.card-footer a{font-size:13px;font-weight:600;text-decoration:none}
.empty-study{text-align:center;border:1px solid var(--line);border-radius:15px;padding:48px 26px;background:white;grid-column:1/-1}.empty-study h2{font-size:24px;line-height:1.4;letter-spacing:-.6px;font-weight:600;margin:0 0 13px}.empty-study p{font-size:15px;line-height:1.8;max-width:490px;color:var(--muted);margin:0 auto 22px}.back-link{display:inline-block;font-size:13px;margin:0 0 25px;text-decoration:none;color:var(--muted)}
.detail-header{padding:4px 0 26px;border-bottom:1px solid var(--line)}.detail-header h1{font-size:clamp(29px,4vw,41px);letter-spacing:-1.2px;line-height:1.2;margin:15px 0 12px;font-weight:640;overflow-wrap:anywhere}.detail-header p{font-size:15px;line-height:1.7;color:var(--muted);margin:0}.detail-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:28px;margin-top:30px;align-items:start}.study-panel{background:white;border:1px solid var(--line);border-radius:15px;padding:26px;margin-bottom:24px;min-width:0}.study-panel h2{font-size:22px;font-weight:610;letter-spacing:-.6px;line-height:1.4;margin:0 0 19px}.study-panel .section-heading h2{margin:0}.study-panel p{line-height:1.75}.fact-list{display:grid;grid-template-columns:1fr 1fr;gap:25px 18px;margin:0}.detail-sidebar .button-primary{width:100%;margin-top:28px}.detail-sidebar>.study-panel>.button-quiet{font-size:12px}.body-copy{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;color:var(--muted);margin-top:22px}.syllabus-subject{border-top:1px solid var(--line);padding:17px 0}.syllabus-subject summary{font-size:14px;font-weight:550;line-height:1.7;overflow-wrap:anywhere}.syllabus-subject ul{padding-left:19px;font-size:14px;line-height:1.85;color:var(--muted)}.syllabus-subject li{margin-bottom:8px}.syllabus-subject .button-quiet{font-size:12px}.more-details{border-top:1px solid var(--line);padding-top:19px;margin:23px 0 16px}.more-details summary{font-size:13px;font-weight:550;line-height:1.7;color:var(--muted)}.more-details[open]>summary{margin-bottom:23px}.more-details .fact-list{font-size:13px}
.practice-page{max-width:790px;margin:0 auto}.practice-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:27px}.practice-heading h1{font-size:32px;letter-spacing:-1px;font-weight:640;line-height:1.2;margin:0 0 9px}.practice-heading p{font-size:14px;line-height:1.7;margin:0}.practice-heading>.button-quiet{font-size:12px;white-space:nowrap}.practice-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.practice-controls>label{min-width:0;max-width:65%}.practice-controls select{width:100%;font-size:13px}.practice-controls>span{font-size:12px;line-height:1.6;text-align:right}.question-card{background:white;border:1px solid var(--line);border-radius:15px;padding:32px}.question-meta{display:flex;justify-content:space-between;gap:18px;font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:25px}.question-meta>span:first-child{color:var(--dark);font-weight:550}.question-counter{white-space:nowrap}.question-body{font-size:16px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 27px}.question-options{border:0;padding:0;margin:0;display:grid;gap:11px;min-width:0}.question-option{display:flex;align-items:flex-start;gap:13px;padding:16px;border:1px solid #dce5e6;border-radius:9px;cursor:pointer;line-height:1.75;font-size:14px}.question-option:hover{background:#f8fbfb}.question-option:has(input:checked){border-color:var(--teal);background:#f0f8f7}.question-option input{position:absolute;opacity:0;width:1px;height:1px}.question-option:focus-within{outline:3px solid #62b5b9;outline-offset:2px}.question-option:has(input:disabled){cursor:default}.option-letter{display:grid;place-items:center;flex-shrink:0;border:1px solid #d4dfe1;border-radius:50%;font-size:12px;width:26px;height:26px;line-height:1;color:var(--muted);margin-top:1px}.question-option:has(input:checked) .option-letter{background:var(--teal);border-color:var(--teal);color:white}.option-copy{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.question-option.correct-option{border-color:#5da685;background:#f0f8f2}.question-option.incorrect-option{border-color:#cd9384;background:#fff7f3}.binary-options{grid-template-columns:1fr 1fr}.binary-options .question-option{justify-content:center;min-height:57px;align-items:center}.question-actions{display:flex;justify-content:flex-end;margin-top:26px}.answer-feedback{margin-top:25px;padding:20px;border-radius:9px;background:#eff7f3;border:1px solid #d0e5d9;color:#326b52}.answer-feedback.incorrect{background:#fcf5ed;border-color:#e9ddcb;color:#7f6140}.answer-feedback h3{font-size:15px;line-height:1.7;margin:0 0 7px;font-weight:600}.answer-feedback p{font-size:14px;line-height:1.85;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.practice-note{font-size:11px;line-height:1.8;color:var(--muted);text-align:center;margin:20px 0}.practice-note a{color:inherit}.practice-wait{text-align:center;padding:65px 20px;border:1px solid var(--line);background:white;border-radius:15px}.practice-wait h2{font-size:21px;font-weight:550;margin:22px 0 10px;letter-spacing:-.4px}.practice-wait p{font-size:13px;line-height:1.7;color:var(--muted)}.loading-dot:before{content:"";display:inline-block;width:10px;height:10px;background:var(--teal);border-radius:50%;animation:breathe 1.2s infinite alternate}@keyframes breathe{to{opacity:.25}}
.study-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.performance-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.study-metric{padding:23px;background:white;border:1px solid var(--line);border-radius:13px;min-width:0}.study-metric span{font-size:12px;color:var(--muted);line-height:1.7}.study-metric strong{display:block;font-size:30px;font-weight:620;letter-spacing:-.7px;margin:10px 0 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.performance-row{display:grid;grid-template-columns:1fr auto;gap:9px 14px;padding:18px 0;border-top:1px solid var(--line);font-size:14px;line-height:1.6}.performance-row .small{font-size:12px;grid-column:1/-1}.performance-bar{height:5px;background:#edf2f2;border-radius:5px;overflow:hidden;grid-column:1/-1}.performance-bar span{display:block;height:100%;background:var(--teal)}.history-panel>summary{font-size:17px;font-weight:550}.history-panel[open]>summary{margin-bottom:20px}.performance-history{width:100%;border-collapse:collapse;font-size:13px}.performance-history th{text-align:left;font-weight:550;color:var(--muted);padding:13px;border-bottom:1px solid var(--line);white-space:nowrap}.performance-history td{padding:15px 13px;border-bottom:1px solid var(--line);vertical-align:top;line-height:1.75;overflow-wrap:anywhere}.table-wrap{overflow-x:auto}.table-wrap table{min-width:570px;width:100%}.how-page{max-width:850px;margin:12px auto}.how-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin:40px 0 25px}.how-steps section{border-top:1px solid var(--line);padding-top:24px}.how-steps section>span{font-size:12px;color:var(--teal);font-weight:600}.how-steps h2{font-size:20px;letter-spacing:-.5px;line-height:1.5;margin:15px 0 12px;font-weight:600}.how-steps p{font-size:14px;line-height:1.9;color:var(--muted)}
.admin-tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin:22px 0 30px;overflow-x:auto}.admin-tabs button{padding:13px 0;background:transparent;border:0;border-bottom:2px solid transparent;font-size:14px;color:var(--muted);white-space:nowrap}.admin-tabs button[aria-pressed=true]{color:var(--dark);border-bottom-color:var(--teal);font-weight:600}.admin-workspace{display:grid;grid-template-columns:220px minmax(0,1fr);gap:26px;align-items:start}.admin-contest-sidebar{position:sticky;top:20px}.admin-contest-sidebar h2{font-size:17px}.admin-contest-sidebar .button-outline{font-size:12px;padding:7px 10px;min-height:35px}.admin-contest-item{padding:16px;width:100%;display:block;text-align:left;border:1px solid var(--line);background:white;border-radius:9px;margin-bottom:10px;color:var(--ink)}.admin-contest-item[aria-pressed=true]{border-color:var(--teal);background:#edf6f4}.admin-contest-item strong{display:block;font-size:14px;line-height:1.6}.admin-contest-item small{display:block;font-size:11px;line-height:1.7;color:var(--muted);margin-top:5px}.admin-empty{font-size:13px;line-height:1.8;color:var(--muted);padding:12px 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.study-field{display:block;min-width:0;margin:0 0 18px}.form-grid>.study-field{margin-bottom:0}.study-field>span{display:block;font-size:12px;font-weight:550;margin-bottom:8px;line-height:1.7}.study-field input,.study-field textarea,.study-field select{width:100%;font-size:14px;color:var(--ink);border:1px solid #cbd9dc;background:#fff;border-radius:8px;padding:11px 12px;min-height:44px}.study-field select{padding-right:43px}.study-field textarea{resize:vertical;line-height:1.8}.study-field input[type=file]{padding:10px;font-size:12px}.study-field input[type=file]::file-selector-button{border:0;background:var(--soft);color:var(--dark);padding:6px 8px;border-radius:4px;margin-right:10px;cursor:pointer}.check-field{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.8;color:var(--muted);margin:23px 0}.check-field input{margin-top:5px;accent-color:var(--teal);width:16px;height:16px;flex-shrink:0}.form-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:22px 0 0}.more-details .form-grid{margin-bottom:20px}.notice-document{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0;font-size:12px;line-height:1.7}.notice-document>span{overflow-wrap:anywhere;min-width:0;flex:1}.notice-document .button-quiet{font-size:12px}.subject-editor .study-field{margin-top:18px}.subject-editor small{font-size:11px;line-height:1.7}.study-pagination{display:flex;justify-content:center;align-items:center;gap:20px;margin:25px 0;font-size:13px;color:var(--muted)}
@media(max-width:900px){.admin-workspace{grid-template-columns:180px minmax(0,1fr);gap:20px}.study-panel{padding:23px}.study-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.performance-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.study-hero{padding:18px 0 43px}.study-hero h1{font-size:43px;letter-spacing:-1.5px}.study-hero p{font-size:16px;max-width:330px}.study-filters{flex-wrap:wrap;gap:12px}.search-field{flex-basis:100%}.study-filters>label:last-child{width:100%}.study-filters select{width:100%}.contest-grid{grid-template-columns:1fr}.contest-card{padding:23px}.section-heading h2{font-size:21px}.detail-layout{grid-template-columns:1fr;gap:0}.detail-sidebar{grid-row:1}.study-panel{padding:23px 20px}.detail-header{padding-bottom:23px}.practice-heading{gap:15px;align-items:flex-start}.practice-heading h1{font-size:29px}.practice-heading>.button-quiet{font-size:11px}.practice-controls{gap:15px;align-items:flex-start}.practice-controls>label{max-width:65%}.question-card{padding:25px 20px}.question-body{font-size:15px}.question-option{padding:14px 12px;gap:11px}.question-actions .button-primary{width:100%;min-height:46px}.question-meta{font-size:11px;margin-bottom:23px}.practice-note{font-size:10px}.study-metric{padding:18px 15px}.study-metric strong{font-size:27px}.performance-metrics{gap:10px}.performance-metrics .study-metric span{font-size:11px}.performance-metrics .study-metric strong{font-size:25px}.how-steps{grid-template-columns:1fr;gap:15px;margin-top:28px}.how-steps section{padding-top:20px}.how-steps h2{margin-top:12px}.admin-workspace{grid-template-columns:1fr;gap:16px}.admin-contest-sidebar{position:static}.admin-contest-sidebar #admin-contest-list{display:flex;overflow-x:auto;gap:10px;padding-bottom:10px}.admin-contest-item{flex:0 0 220px;margin:0}.form-grid{gap:16px}.study-field input,.study-field textarea{font-size:16px}.study-pagination{gap:13px;flex-wrap:wrap}}
@media(max-width:420px){.form-grid{grid-template-columns:1fr}.study-hero h1{font-size:39px}.practice-controls{flex-wrap:wrap}.practice-controls>label{max-width:100%;width:100%}.practice-controls>span{font-size:11px}.performance-metrics{grid-template-columns:1fr}.performance-metrics .study-metric{display:flex;align-items:center;justify-content:space-between}.performance-metrics .study-metric strong{margin:0}.fact-list{gap:23px 14px}}
@media(prefers-reduced-motion:reduce){.loading-dot:before{animation:none}}
.bank-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}.bank-heading h2{margin-bottom:8px}.generation-switch{display:flex;align-items:center;gap:10px;font-size:13px;cursor:pointer;padding-top:4px}.generation-switch input{appearance:none;width:38px;height:22px;border:1px solid var(--line,#dbe5e1);background:#dce5e1;border-radius:20px;position:relative;flex:none;cursor:pointer}.generation-switch input:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .15s}.generation-switch input:checked{background:var(--brand,#145b4c)}.generation-switch input:checked:after{transform:translateX(16px)}.generation-switch input:focus-visible{outline:2px solid #167660;outline-offset:3px}.generation-switch input:disabled{opacity:.5}.bank-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0 8px}.bank-filters label,.bank-filters select{min-width:0;width:100%}.bank-question{border-top:1px solid #e4eae6;padding:18px 0}.bank-question summary{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;cursor:pointer;font-size:14px;font-weight:600;list-style:none}.bank-question summary:after{content:"+";color:#638276;font-size:20px;font-weight:400}.bank-question[open] summary:after{content:"−"}.bank-question summary>span:first-child{flex:1;min-width:0}.bank-question summary small{display:block;font-weight:400;color:#66766c;line-height:1.6;margin-top:7px;overflow-wrap:anywhere}.bank-question-level,.question-difficulty{font-size:11px;font-weight:400;color:#718176;white-space:nowrap}.question-difficulty{margin-left:8px}.bank-question-content{padding-top:12px}.bank-options{padding:0;list-style:none}.bank-options li{display:flex;gap:12px;padding:10px 12px;line-height:1.65;margin:6px 0;border-radius:6px;white-space:pre-wrap}.bank-options strong{flex:none}.bank-correct{background:#edf5f0;color:#174f3e}.bank-preparation{padding:16px 0 22px;border-bottom:1px solid #e4eae6;margin-bottom:24px}.bank-preparation progress{width:100%;height:5px;accent-color:#23634f;display:block;margin:12px 0 16px}.bank-subject-progress{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;font-size:12px;padding:10px 0}.bank-subject-progress small{flex-basis:100%}.bank-subject-progress>span:last-of-type{color:#66766c}#bank-distribution{margin:0 0 22px}#bank-distribution-copy{line-height:1.8}
@media(max-width:640px){.admin-tabs{overflow-x:auto;flex-wrap:nowrap}.admin-tabs button{white-space:nowrap;flex:none}.bank-heading{display:block}.generation-switch{margin-top:20px}.bank-filters{grid-template-columns:1fr}.bank-question summary{flex-wrap:wrap;gap:8px}.bank-question summary>span:first-child{flex-basis:100%}.bank-question summary:after{margin-left:auto}.question-difficulty{display:block;margin-left:0;margin-top:5px}.bank-question-content .question-body{font-size:16px}}
