.judge-workspace{padding-bottom:30px}.judge-student-bar{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:14px}.judge-student-bar h1{font-size:1.55rem;margin:0 0 8px}.judge-student-bar p{margin:0 0 12px;color:#58777a}.judge-total{min-width:145px;text-align:center;border-right:1px solid #dae5e2;padding-right:25px}.judge-total strong{display:block;font-size:2.6rem;color:#116963;line-height:1.3;font-variant-numeric:tabular-nums}.judge-total small{display:block;color:#58777a}.judge-edit-notice{background:#eef6fa;border-right:3px solid #6791a3;border-radius:8px;padding:12px 16px;font-size:.91rem;line-height:1.9}.judge-formula{margin:8px 0 15px;font-size:.9rem}.judge-formula summary{cursor:pointer;color:#467178}.judge-toolbar{display:flex;align-items:center;gap:22px;padding:18px 0;flex-wrap:wrap}.judge-toolbar>.field{width:155px;margin:0}.judge-toolbar>small{margin-right:auto;color:#58777a}.judge-settings{position:relative}.judge-settings>summary{cursor:pointer;padding:12px;border:1px solid #cbded7;border-radius:10px;background:#fff}.judge-settings[open]{width:100%;background:white;padding:18px;border:1px solid #cbded7;border-radius:12px}.judge-settings[open]>summary{border:0;padding:0 0 14px}.judge-view-tabs{display:flex;gap:8px;margin:0 0 20px;padding:5px;background:#e7eeeb;border-radius:13px;width:fit-content}.judge-view-tabs button{border:0;background:transparent;color:#446365;font:inherit;padding:12px 25px;border-radius:10px;cursor:pointer;min-height:46px}.judge-view-tabs button.active{background:white;box-shadow:0 2px 5px #23483e17;color:#124f4d;font-weight:700}.judge-body{display:grid;grid-template-columns:210px minmax(0,1fr);gap:22px;align-items:start}.judge-section-nav{display:grid;gap:8px;position:sticky;top:90px}.judge-section-nav button{background:transparent;border:1px solid transparent;padding:15px 13px;border-radius:12px;font:inherit;text-align:right;cursor:pointer;color:#416568}.judge-section-nav button span{display:block;font-weight:650;line-height:1.8}.judge-section-nav button small{display:block;color:#718b8b;margin-top:6px}.judge-section-nav button.active{background:white;border-color:#aad0c2;box-shadow:0 4px 12px #204c3d09}.judge-section-nav button.active span{color:#076457}.judge-section-body{min-width:0}.judge-active-section{padding:0;overflow:visible;margin:0}.judge-active-section>header{display:flex;align-items:center;justify-content:space-between;padding:24px 26px;background:#f7fbf8;border-bottom:1px solid #e0eae4;border-radius:16px 16px 0 0}.judge-active-section>header h2{margin:5px 0 0;font-size:1.2rem}.judge-active-section>.content{padding:0 26px 22px}.judge-mark-row{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:20px;align-items:center;padding:22px 0;border-bottom:1px solid #e6ede8}.judge-mark-row:last-child{border-bottom:0}.judge-mark-row h3{font-size:1.05rem;margin:0 0 6px}.judge-mark-row label{font-weight:650;line-height:1.9}.judge-mark-row small{display:block;color:#698386;line-height:1.9}.judge-mark-title{display:flex;gap:12px;align-items:start}.judge-item-index{background:#f0f5f2;color:#69867c;min-width:29px;height:29px;border-radius:50%;display:grid;place-items:center;margin-top:4px;font-size:.85rem}.judge-score-control{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.judge-stepper{display:flex;direction:ltr;align-items:center;border:1px solid #b8cec6;border-radius:11px;overflow:hidden;background:#fff}.judge-stepper button{border:0;background:#f0f7f2;min-width:44px;height:48px;font-size:1.5rem;color:#155f51;cursor:pointer}.judge-stepper button:hover{background:#dceee2}.judge-stepper input{direction:ltr;text-align:center;min-width:0;width:70px;height:48px;border:0;border-radius:0;font-size:1.3rem;font-variant-numeric:tabular-nums;background:white;padding:5px;color:#193e3d}.judge-stepper input:focus{outline:2px solid #3b9a7e;outline-offset:-3px}.judge-stepper input[readonly]{background:#f0f4f1;color:#647c73}.judge-stepper button:disabled{opacity:.35;cursor:default}.judge-full-score{border:1px solid #cbded2;background:white;border-radius:8px;padding:8px 10px;min-height:40px;font:inherit;font-size:.82rem;color:#346c54;cursor:pointer}.judge-full-score:hover{background:#eff7f1}.judge-auto-note{color:#668478;font-size:.8rem}.judge-comment{margin-top:12px;font-size:.84rem;color:#65817b}.judge-comment>summary{cursor:pointer;width:fit-content;padding:4px 0}.judge-comment input{margin-top:9px;font-size:.9rem}.judge-active-section>.content>.judge-comment{margin-top:18px;padding-top:12px;border-top:1px solid #e6ede8}.judge-detail-link{display:block;border:0;background:transparent;color:#087b71;padding:8px 0;font:inherit;font-size:.85rem;cursor:pointer}.judge-fixed{display:flex;gap:18px;padding:24px 0;align-items:center}.judge-fixed strong,.judge-fixed-number{font-size:1.7rem;color:#456e5e}.judge-fixed small{display:block;font-size:.84rem;color:#698386;margin-top:8px}.judge-fixed-number{text-align:left}.judge-section-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 0;font-size:.85rem;color:#65817b}.judge-deductions,.judge-finish{grid-column:1/-1;min-width:0}.judge-finish h2{margin-top:0}.judge-correction{border-top:1px solid #e1e9e3;margin-top:24px;padding-top:20px}.judge-correction .actions{margin:10px 0}.judge-bonuses{margin-top:25px}.judge-save-bar{position:sticky;bottom:12px;z-index:15;margin-top:22px;padding:16px 22px;border:1px solid #bfd6c9;border-radius:14px;background:#fcfffd;box-shadow:0 5px 25px #173e3421;display:flex;justify-content:space-between;align-items:center;gap:18px}.judge-save-bar small{display:block;color:#779087;line-height:1.8;font-size:.78rem}.judge-save-bar strong{font-size:.91rem;color:#1f5a47}.judge-error:empty{display:none}.judge-error{background:#fff0ed;padding:12px 16px;margin-top:16px;border-radius:9px;color:#a43128}.judge-input-error{color:#b72c26!important;width:100%;font-size:.8rem}.judge-input-error[hidden]{display:none}.judge-stepper .is-invalid{background:#fff2ef;outline:2px solid #b72c26;outline-offset:-2px}
@media(max-width:950px){.judge-body{grid-template-columns:minmax(0,1fr)}.judge-section-nav{display:flex;overflow-x:auto;position:static;padding-bottom:6px}.judge-section-nav button{flex:0 0 auto;max-width:220px;min-width:145px}.judge-section-nav button span{white-space:normal}.judge-toolbar>small{width:100%;margin:0}.judge-mark-row{grid-template-columns:minmax(0,1fr) 230px;gap:16px}}
@media(max-width:600px){.judge-student-bar{padding:17px;gap:12px}.judge-student-bar h1{font-size:1.2rem}.judge-student-bar p{font-size:.85rem;line-height:1.9}.judge-total{min-width:85px;padding-right:12px}.judge-total strong{font-size:2rem}.judge-total small{font-size:.73rem}.judge-student-bar .pill,.judge-student-bar .badge{font-size:.72rem}.judge-toolbar{gap:12px}.judge-toolbar>.field{width:120px}.judge-settings>summary{padding:12px;font-size:.85rem}.judge-view-tabs{width:100%;gap:0}.judge-view-tabs button{flex:1;padding:12px 8px;font-size:.88rem}.judge-active-section>header{padding:19px 18px}.judge-active-section>.content{padding:0 18px 18px}.judge-mark-row{grid-template-columns:minmax(0,1fr);gap:14px;padding:20px 0}.judge-score-control{justify-content:flex-end}.judge-mark-title{gap:9px}.judge-save-bar{bottom:8px;flex-wrap:wrap;padding:13px 15px;gap:10px}.judge-save-bar>.actions{width:100%;display:flex;gap:8px}.judge-save-bar .btn{flex:1;justify-content:center;padding:12px 9px;font-size:.87rem}.judge-save-bar #autoscore-note{display:none}.judge-section-actions .btn{padding:11px 12px;font-size:.85rem}.judge-edit-notice{font-size:.83rem}.judge-deductions .panel{padding:17px}.judge-deductions .deduction{gap:12px;flex-wrap:wrap}.judge-finish{padding:19px}}

#main:has(.judge-workspace) .page-top{margin-bottom:14px}#main:has(.judge-workspace) .page-top h1{font-size:1.45rem;margin:0}#main:has(.judge-workspace) .page-top p{display:none}#main:has(.judge-workspace) .breadcrumbs{margin-bottom:10px}.judge-student-bar{padding:18px 24px}.judge-edit-notice{padding:9px 12px;margin:8px 0;font-size:.85rem}.judge-toolbar{padding:12px 0}.judge-active-section>header{padding:18px 22px}body:has(.judge-workspace) #toast{bottom:auto;top:90px;max-width:calc(100vw - 32px)}
.judge-workspace .judge-save-bar{position:static}
.judge-workspace .judge-student-bar{padding:9px 14px;gap:10px;line-height:1.45}
.judge-workspace .judge-student-bar h1{font-size:1.1rem;margin:0}
.judge-workspace .judge-student-bar p{margin:2px 0;font-size:.82rem}
.judge-workspace .judge-total strong{font-size:1.45rem}
.judge-workspace .judge-penalty-group{padding:0}
.judge-penalty-group>summary{cursor:pointer;padding:12px 16px;font-weight:600}
.judge-penalty-group>.panel{margin:0;border:0;box-shadow:none}
.judge-penalty-group>.panel>h2{display:none}
.judge-workspace .judge-student-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  padding: 12px 16px;
}
.judge-path, .judge-header-actions { grid-column: 1 / -1; }
.judge-path { font-size: .8rem; color: #58777a; }
.judge-header-actions { display: flex; flex-wrap: wrap; align-items: start; gap: 8px; border-top: 1px solid #dae5e2; padding-top: 8px; }
.judge-header-actions > .btn, .judge-header-actions summary { min-height: 44px; padding: 8px 12px; font-size: .85rem; }
.judge-header-actions .judge-settings[open] { flex-basis: 100%; min-width: 0; box-sizing: border-box; }
.judge-workspace > #back-judging { margin-block-end: 8px; }
