.exam-entry{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fff;border:1px solid #c9c9c2;border-radius:10px;padding:22px 25px;margin-bottom:22px}.exam-entry h2{font-size:20px;margin:0 0 8px}.exam-entry p{font-size:13px;margin:5px 0}.exam-page:not(.studio){background:#f3f3f0}.exam-page #exam-setup{max-width:1150px;padding:32px 28px 60px;margin:auto}.exam-rules{border:1px solid #d4d4cc;background:white;border-radius:8px;padding:14px 20px;font-size:13px}.exam-rules p{margin:6px 0}.exam-slots{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.exam-slot{display:flex;align-items:center;gap:14px;background:white;border:1px solid #d4d4cc;border-radius:7px;padding:12px;font-size:13px}.exam-slot span{white-space:nowrap}.exam-slot select{min-width:0;width:100%;font-size:13px;color:#000}.exam-start{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:20px 0}.exam-start select{font-size:13px;color:#000}.exam-start p{flex-basis:100%;margin:0;font-size:12px}.focus-overview{margin:28px 0;background:white;padding:18px;border:1px solid #d4d4cc;border-radius:8px}.focus-overview table{font-size:12px;min-width:0}.focus-overview th:first-child{width:18%}.focus-overview th:nth-child(2){width:37%}.focus-overview a{display:inline-block;margin:3px 10px 3px 0;text-decoration:underline}.exam-page #past-exams h2{font-size:18px}.past-exam{display:flex;justify-content:space-between;border-bottom:1px solid #d4d4cc;padding:10px 0;font-size:13px}.exam-page .exam-save-note{font-size:11px;margin-top:14px}.exam-page #exam-clock{font-size:19px;font-variant-numeric:tabular-nums}.exam-page #exam-progress{font-size:12px}.exam-page #exam-nav a{display:block;padding:12px 10px;margin:5px 0;border:1px solid transparent;border-radius:6px;font-size:12px}.exam-page #exam-nav a.active{background:#e8e8e1;border-color:#c6c6bd}.exam-page #exam-nav a small{display:block;margin-top:4px;font-size:10px}.exam-page #finish-exam,.exam-page #export-exam{margin-top:14px;width:100%;font-size:12px}.exam-page #new-exam{display:block;margin-top:16px;font-size:13px;text-decoration:underline}.exam-page #submission-score{white-space:nowrap;font-size:12px}.exam-page .score-total{font-size:26px;margin:0 0 15px}.exam-page .score-table td,.exam-page .score-table th{font-size:12px;padding:9px 6px}.exam-page #results pre{white-space:pre-wrap;overflow-wrap:anywhere}.exam-page .result-case{border-bottom:1px solid #ddd;padding:8px 0;font-size:12px}.exam-page .result-case pre{margin:5px 0}.exam-page .exam-judge-rule{font-size:11px}.exam-page .topbar nav{gap:18px}.exam-page .editor-body{min-height:150px}#exam-entry a{white-space:nowrap}
@media(max-width:1000px){.topbar nav{gap:12px!important}.brand .brand-name{font-size:13px!important}}
@media(max-width:760px){.exam-entry{display:block;padding:18px}.exam-entry a{display:inline-block;margin-top:12px}.exam-slots{grid-template-columns:1fr}.exam-page #exam-setup{padding:23px 15px}.exam-page .topbar .brand-name{display:none!important}.topbar nav{gap:9px!important;font-size:10px!important}.brand-symbol{width:29px;height:29px}.exam-page #exam-nav a{padding:8px}.exam-page #exam-clock{font-size:17px}.exam-page .score-table{min-width:0}.exam-page #submission-score{white-space:normal}}

.exam-page:not(.studio) #sidebar-toggle,.exam-page:not(.studio) .menu{display:none}.exam-page #exam-nav a{text-decoration:none}.exam-page .topbar{position:sticky;top:0}

.exam-page .workbench-heading{flex-wrap:wrap}.exam-page .workbench-heading>div:first-child{flex:1;min-width:200px}.exam-page #header-clock{font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}.exam-page #finish-top{font-size:12px;padding:5px 12px}

.exam-meta,.problem-meta{font-size:11px;display:flex;gap:8px;align-items:center;white-space:nowrap}.exam-meta button,.problem-meta button{font-size:11px;padding:3px 7px;border:1px solid #aaa;border-radius:4px;background:#fff;color:#000}.exam-meta button:hover,.problem-meta button:hover{background:#eee}

@media(max-width:760px){
 .topbar{height:auto;min-height:58px;flex-wrap:wrap;padding:8px 10px;gap:8px;position:sticky;top:0;z-index:9}
 .topbar nav{order:3;flex-basis:100%;justify-content:space-between;gap:6px!important;flex-wrap:wrap}
 .studio{height:auto;min-height:100dvh;overflow:visible}.studio .layout{height:auto;display:block}.studio main{height:auto;overflow:visible}
 .studio aside{top:94px;height:calc(100dvh - 94px);max-width:85vw}
 .studio .workbench-heading{flex-wrap:wrap;gap:8px}.studio .workbench-heading>div:first-child{flex-basis:100%;min-width:0}
 .exam-meta,.problem-meta{flex-wrap:wrap;white-space:normal;flex-basis:100%;line-height:1.8}
 .desk-grid{display:block;overflow:visible}.task-pane{height:auto;max-height:none;min-height:180px}.task-scroll{max-height:55dvh;overflow:auto}
 .coding-pane{height:auto;min-width:0}.studio .workspace{height:440px;min-height:360px;flex:none}.console-pane{height:400px;min-height:320px;flex:none;margin-bottom:16px}
 .studio .editor-actions{flex-wrap:wrap;gap:7px}.studio .pane-tabs{flex-wrap:wrap;height:auto;min-height:46px;gap:9px;padding:0 10px}
 .studio .pane-tabs button{font-size:11px}.studio #runtime-status{max-width:100%;white-space:normal;flex-basis:100%;margin:0 0 7px}
 .exam-slot{flex-wrap:wrap}.exam-slot div{min-width:0}.exam-slot p{font-size:12px}.exam-page .score-table{table-layout:auto}
 .exam-page .result-case pre{max-width:100%;overflow:auto}.exam-page #submission-score{white-space:normal}
}

@media(max-width:760px){.topbar,.exam-page .topbar{position:relative;top:auto}.studio aside{top:0;height:100dvh;padding-top:20px}.skip{display:none}.studio .task-pane{max-height:none}.studio .task-scroll{max-height:none;overflow:visible}.studio .task-pane{flex:none}}

.catalog-questions{margin-top:16px;border-top:1px solid #ddd;padding-top:12px}.catalog-questions summary{font-size:12px}.catalog-questions a{display:block;font-size:12px;margin:8px 0;overflow-wrap:anywhere}#catalog-summary{font-size:13px;line-height:1.8}

.selective-practice{background:#fff;border:1px solid #ddd;border-radius:9px;padding:18px;margin:20px 0}.selective-practice h2{font-size:18px;margin:0 0 14px}.selective-practice>div{display:flex;flex-wrap:wrap;gap:12px}.selective-practice a{border:1px solid #aaa;border-radius:5px;padding:9px 12px;font-size:13px}.selective-practice p,.round-progress,.round-history{font-size:12px;line-height:1.8}.round-history summary{font-size:12px}.chapter-round{flex-basis:100%;font-size:11px;margin:0;white-space:normal}.round-history div{max-height:120px;overflow:auto}.studio .workbench-heading{flex-wrap:wrap}

#learning-report{width:min(850px,94vw);max-height:88dvh;border:1px solid #aaa;border-radius:10px;padding:20px;color:#000;background:#fff;overflow:auto}#learning-report::backdrop{background:#0005}#learning-report header{display:flex;justify-content:space-between;gap:15px;align-items:center}#learning-report h2{font-size:20px;margin:0}#learning-report h3{font-size:16px;margin:20px 0 10px}#learning-report p{font-size:13px;line-height:1.8}.report-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.report-metrics span{background:#f4f4ef;border:1px solid #ddd;padding:10px;font-size:11px;min-width:0}.report-metrics strong{display:block;font-size:17px;margin-top:6px}.report-table{overflow:auto}.report-table table{table-layout:auto;min-width:440px;font-size:12px}.report-table button{border:0;padding:0;text-align:left;font-size:12px;background:transparent;text-decoration:underline}#learning-report footer,.report-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:20px 0 0;padding:0}.report-actions a,#learning-report footer a{border:1px solid #aaa;border-radius:4px;font-size:12px;padding:6px 9px}.round-history button{display:block;margin:8px 0;font-size:11px;text-align:left}.studio #submission-history li{font-size:12px;margin:12px 0;line-height:1.8}.studio #submission-history h2{font-size:20px}.studio #submission-history .report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:480px){.report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#learning-report{padding:14px}#learning-report h2{font-size:17px}}
