/* Compact drill builder + attempt analytics. No external dependencies. */
.subject-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:19px}
.subject-pick{text-align:left;position:relative;display:flex;flex-direction:column;gap:4px;padding:14px 13px;border:1.5px solid #dce7ed;border-radius:10px;background:#fff;color:#274456;min-height:95px;cursor:pointer;transition:.15s}
.subject-pick:hover{border-color:#6fb6c2}.subject-pick.active{background:#eef9f8;border-color:#168e91;box-shadow:0 0 0 1px #168e9125}
.subject-check{align-self:flex-end;position:absolute;right:11px;top:10px;color:#138a8e;font-size:15px;font-weight:850}.subject-pick-name{font-size:13px;font-weight:850;line-height:1.2;margin-top:13px}.subject-pick-count{font-size:11px;color:#7d95a2}.subject-configs{display:grid;gap:17px;margin-top:18px}
.subject-configuration{border:1px solid #e2e9ef;border-radius:11px;padding:18px;background:#fff}
.subject-configuration-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.subject-configuration-heading h3{font-size:17px;letter-spacing:-.3px;margin:5px 0 0}.section-num{color:#128a94;font-size:9px;letter-spacing:1.1px;font-weight:900}.subject-pool{font-size:11px;color:#617c8c;background:#f4f8fa;padding:7px 9px;border-radius:6px;white-space:nowrap}
.subject-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:13px;margin:17px 0 4px}.subject-fields label{display:block;font-size:11px;font-weight:800;margin-bottom:7px;color:#4a6373}.subject-fields .form-control{font-size:12px}.custom-count{margin-top:7px}.custom-count[hidden]{display:none}
.subject-configuration .selection-row{padding:11px 0;margin:0 0 12px}.subject-configuration .topic-grid{gap:8px}.subject-configuration .topic-item{min-height:62px;padding:10px 11px}.subject-configuration .topic-item-name{font-size:11.5px}.subject-configuration .topic-item-count{font-size:10px}
.drill-summary{background:#f5faf9;border:1px solid #d6ebe8;border-radius:8px;padding:14px;margin:16px 0 6px}.summary-label{color:#44857d;font-size:10px;font-weight:850;letter-spacing:1px}.summary-subjects{display:grid;gap:7px;margin:11px 0;font-size:12px;color:#3e5966}.summary-subjects span{display:flex;justify-content:space-between;gap:10px}.summary-footer{border-top:1px solid #dcebe9;padding-top:11px;display:flex;flex-direction:column;gap:4px;color:#58727d;font-size:11px}.summary-footer strong{color:#173e4d;font-size:15px}.primary-action:disabled{background:#a5b9c1;box-shadow:none;cursor:not-allowed}
.mode-overlay[hidden]{display:none}.mode-overlay{position:fixed;inset:0;z-index:3000;background:#162b38a8;display:flex;justify-content:center;align-items:center;padding:20px;backdrop-filter:blur(3px)}.mode-open{overflow:hidden}.mode-dialog{background:#fff;position:relative;border-radius:16px;width:min(660px,100%);padding:32px;box-shadow:0 20px 60px #0e25314a}.mode-dialog h2{font-size:25px;letter-spacing:-.5px;margin:2px 0 9px;color:#193c4d}.mode-description{line-height:1.5;color:#657f8e;font-size:13px}.mode-close{position:absolute;right:16px;top:13px;border:0;background:#f0f4f7;border-radius:7px;width:32px;height:32px;color:#526777;font-size:22px;cursor:pointer}.mode-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:23px}.mode-choice{border:1.5px solid #e1eaee;border-radius:12px;background:#fff;padding:19px 17px;display:flex;flex-direction:column;gap:10px;align-items:flex-start;cursor:pointer;text-align:left;transition:.15s}.mode-choice.normal:hover,.mode-choice.normal:focus-visible{border-color:#209c6d;background:#f1fbf6;outline:0}.mode-choice.challenge:hover,.mode-choice.challenge:focus-visible{border-color:#e98b2b;background:#fff9ed;outline:0}.mode-choice-title{display:flex;gap:10px;align-items:center;font-size:15px;font-weight:850;color:#244152}.mode-symbol{width:30px;height:30px;border-radius:9px;background:#e6f6ed;color:#178651;display:flex;justify-content:center;align-items:center;font-size:19px}.mode-choice.challenge .mode-symbol{background:#fff0dc;color:#d77b12}.mode-seconds{font-size:12px;color:#647e8b}.mode-choice strong{font-size:24px;letter-spacing:-.6px;color:#24835f}.mode-choice.challenge strong{color:#d68020}.mode-choice small{font-size:11px;line-height:1.5;color:#8493a0}.mode-footer-note{color:#8c9aa4;font-size:11px;margin:18px 0 0;line-height:1.6}
.drill-mode-badge{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;border-radius:999px;font-size:10px;font-weight:850;line-height:1.3;padding:5px 10px;vertical-align:middle}.drill-mode-badge.normal{color:#127a49;background:#e6f7ed;border:1px solid #bfe4cc}.drill-mode-badge.challenge{color:#b45d0b;background:#fff0da;border:1px solid #f6d3a1}.drill-mode-badge.legacy{color:#6f7f8c;background:#f2f4f6;border:1px solid #e1e7eb}.result-header .drill-mode-badge{margin-left:12px}
.performance{margin-top:18px}.performance-heading{display:flex;justify-content:space-between;gap:18px;align-items:start}.period-control{display:flex;align-items:center;gap:9px;color:#708391;font-size:11px;font-weight:750;white-space:nowrap}.period-control select{width:164px;min-height:38px;font-size:12px}.performance-views{display:flex;gap:5px;flex-wrap:wrap;border-bottom:1px solid #e8eef2;padding:15px 0 13px;margin-bottom:17px}.performance-views button{border:0;background:transparent;border-radius:7px;padding:10px 13px;color:#6c8090;font-size:12px;font-weight:750;cursor:pointer}.performance-views button:hover{background:#f1f7f8}.performance-views button.active{background:#e5f6f5;color:#087f88}.performance-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.performance-cards>div{border:1px solid #e6edf1;border-radius:10px;padding:15px 12px;min-width:0}.performance-cards span,.performance-cards small{display:block;color:#82939e;font-size:11px}.performance-cards strong{display:block;font-size:24px;letter-spacing:-.8px;color:#244555;margin:8px 0 5px}.performance-cards small{font-size:10px;line-height:1.4}.progress-area,.weak-area{margin-top:22px;border:1px solid #e4edf0;border-radius:10px;padding:18px}.area-heading{display:flex;justify-content:space-between;gap:12px;align-items:start}.area-heading h3{margin:0 0 5px;font-size:14px;color:#264756}.area-heading p{font-size:11px}.progress-area svg{width:100%;height:auto;max-height:265px;margin-top:11px;overflow:visible}.chart-legend{display:flex;align-items:center;gap:7px;color:#6d8290;font-size:11px}.chart-legend i{display:inline-block;width:12px;height:3px;background:#128a96}.weak-indicator{color:#ad6e24;background:#fff7e9;border-radius:5px;padding:6px 9px;white-space:nowrap;font-size:10px;font-weight:750}.weak-list{margin-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.weak-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid #eef0f2;border-radius:8px}.weak-row>div:first-child{min-width:0}.weak-subject{font-size:9px;display:block;color:#a36b2a;font-weight:850;text-transform:uppercase;letter-spacing:.7px;margin-bottom:4px}.weak-row strong{font-size:12px;display:block;color:#304d5d}.weak-row small{font-size:10px;color:#91a0a9;display:block;margin-top:5px}.weak-score{font-size:16px;font-weight:850;color:#c37c2d;text-align:right}.weak-meter{height:4px;background:#f7e7d4;border-radius:10px;width:66px;margin-top:8px;overflow:hidden}.weak-meter span{display:block;height:100%;background:#e39c4a;border-radius:10px}.weak-none{padding:21px;margin-top:12px;background:#f8fbfc;color:#70818d;border-radius:8px;font-size:12px}.performance-empty{padding:35px 12px;text-align:center}.performance-empty h3{font-size:15px;margin:0 0 7px}.performance-empty p{max-width:440px;margin:auto}.history-table .drill-mode-badge{font-size:10px}
@media(max-width:800px){.performance-cards{grid-template-columns:repeat(3,1fr)}.weak-list{grid-template-columns:1fr}}
@media(max-width:540px){.subject-picker{gap:6px}.subject-pick{min-height:86px;padding:11px 8px}.subject-pick-name{font-size:11px}.subject-pick-count{font-size:9px}.subject-fields,.mode-choices{grid-template-columns:1fr}.mode-dialog{padding:25px 18px}.mode-choice{padding:15px}.subject-configuration{padding:13px}.subject-pool{white-space:normal;text-align:right}.performance-heading{flex-direction:column}.period-control{width:100%;justify-content:space-between}.period-control select{flex:1}.performance-cards{grid-template-columns:repeat(2,1fr)}.performance-cards strong{font-size:21px}.progress-area,.weak-area{padding:12px}.area-heading{flex-wrap:wrap}}

/* Minimal tab navigation: separate views for setup, attempt history, and analytics. */
.workspace-nav{position:sticky;top:0;z-index:100;border-bottom:1px solid #e1e8ee;background:rgba(255,255,255,.97);backdrop-filter:blur(8px)}
.workspace-nav-inner{max-width:1240px;margin:auto;padding:0 24px;display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin}
.workspace-nav-item{display:inline-flex;align-items:center;gap:8px;padding:15px 17px 13px;text-decoration:none;white-space:nowrap;font-size:12px;font-weight:750;color:#708695;border-bottom:2px solid transparent;transition:color .15s,background .15s}
.workspace-nav-item:hover{color:#136e85;background:#f5fafb}.workspace-nav-item.active{color:#0f7e91;border-bottom-color:#1495a4}
.nav-count{font-size:10px;background:#eaf2f5;border-radius:999px;min-width:21px;padding:3px 6px;text-align:center;color:#64818e;font-weight:800}.workspace-nav-item.active .nav-count{background:#e1f4f3;color:#0a7e83}
.site-view[hidden]{display:none!important}.site-view[data-page="history"],.site-view[data-page="performance"]{max-width:100%;min-height:calc(100vh - 340px)}
.site-view[data-page="history"] .history,.site-view[data-page="performance"] .performance{margin-top:0}
@media(max-width:680px){.workspace-nav-inner{padding:0 11px;gap:2px}.workspace-nav-item{padding:13px 12px;font-size:11px}.site-view[data-page="history"],.site-view[data-page="performance"]{min-height:calc(100vh - 270px)}}
