:root{font-family:Cambria,Georgia,serif;color:#183b2a;background:#f3f8f5}*{box-sizing:border-box}body{margin:0}header{background:#176b45;color:#fff;padding:14px max(18px,calc((100vw - 1160px)/2));display:flex;align-items:center;gap:20px;justify-content:space-between}header div{display:grid}header strong{font-size:24px}header small{opacity:.85}main{max-width:1160px;margin:24px auto;padding:0 16px}h1,h2,h3{margin:0 0 12px}button{border:0;border-radius:8px;background:#177a4d;color:#fff;padding:11px 16px;cursor:pointer;font:inherit;font-weight:700}button:disabled{opacity:.45;cursor:not-allowed}input,select,textarea{width:100%;padding:10px;border:1px solid #bad4c5;border-radius:8px;font:inherit;background:#fff}textarea{min-height:90px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.panel{background:#fff;padding:20px;border:1px solid #dce9e0;border-radius:14px;margin:16px 0;box-shadow:0 2px 10px #0a4a2610}.layout{display:grid;grid-template-columns:1fr 1.5fr;gap:16px}.entry{display:block;text-align:left;width:100%;margin:6px 0;background:#e8f4ec;color:#174a31}.active,.entry.active{background:#145b3b;color:#fff}nav{display:flex;gap:8px;margin-top:16px}nav button{background:#dfeee5;color:#184b30}nav button.active{background:#177a4d;color:#fff}.score{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 0;border-bottom:1px solid #e4eee8}.score input{width:100px}.score small{color:#667}.overflow{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:11px;text-align:left;border-bottom:1px solid #dbe7df}th{background:#e6f2eb}.notice{padding:12px;background:#fff5d8;border-radius:8px}.error{color:#bd3030}.login{max-width:420px;margin:10vh auto;text-align:center;background:#fff;border-radius:18px;padding:36px;box-shadow:0 10px 30px #1234}.login form{display:grid;gap:12px;margin-top:22px}@media(max-width:760px){header{flex-wrap:wrap}.layout{grid-template-columns:1fr}.panel{padding:14px}.score{align-items:start}}header .brand-text{display:flex;flex-direction:column;gap:3px;min-width:0}header .brand-text strong{font-size:clamp(16px,2vw,23px);line-height:1.2}.brand-logo{width:60px;height:60px;object-fit:contain;flex-shrink:0}.login-logo{display:block;width:100px;height:100px;object-fit:contain;margin:0 auto 14px}.login h1{font-size:clamp(22px,3vw,28px);line-height:1.25;color:#176b45}@media(max-width:760px){.brand-logo{width:46px;height:46px}header .brand-text strong{font-size:17px}}.login-logos{display:flex;align-items:center;justify-content:center;gap:24px;margin:0 auto 14px}.login-logos .login-logo{margin:0;width:98px;height:98px;object-fit:contain}header .brand{display:flex;align-items:center;gap:12px;min-width:0}header .brand-text{min-width:0}@media(max-width:760px){.login-logos{gap:16px}.login-logos .login-logo{width:76px;height:76px}header .brand{gap:7px}header .brand-logo{width:39px;height:39px}header .brand-text strong{font-size:14px}}.site-header{display:flex;justify-content:center;padding:14px 16px;min-height:104px}.site-header .brand{width:min(100%,780px);display:grid;grid-template-columns:76px minmax(0,1fr) 76px;gap:18px;align-items:center;text-align:center}.site-header .brand-text{display:flex;flex-direction:column;align-items:center}.site-header .brand-logo{width:76px;height:76px}.site-header .brand-text strong{font-size:clamp(19px,2.5vw,29px)}.app-shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 104px)}.sidebar{background:#e5f2e9;padding:22px 14px;display:flex;flex-direction:column;gap:10px;border-right:1px solid #c8dfd0}.sidebar button{width:100%;text-align:left;background:transparent;color:#1c5136}.sidebar button.side-active{background:#176b45;color:#fff}.sidebar .logout{margin-top:auto;background:#f5e5e5;color:#9d2525}.account-card{display:flex;flex-direction:column;gap:6px;padding:12px;border-bottom:1px solid #bfd9c7;margin-bottom:8px;overflow-wrap:anywhere}.account-card small{color:#577361}.app-content{min-width:0}.app-content main{max-width:1200px;margin:24px auto}.criterion-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e2ece5;padding:9px 0}.actions{display:flex;gap:6px;flex-wrap:wrap}.actions button{padding:7px 10px;font-size:14px}.hint{color:#526c5c;font-size:14px}@media(max-width:760px){.site-header .brand{grid-template-columns:50px minmax(0,1fr) 50px;gap:8px}.site-header .brand-logo{width:50px;height:50px}.site-header .brand-text strong{font-size:17px}.app-shell{grid-template-columns:1fr}.sidebar{flex-direction:row;flex-wrap:wrap;padding:10px;gap:6px}.sidebar button{width:auto}.sidebar .logout{margin-top:0}.account-card{width:100%;padding:5px}.criterion-row{align-items:flex-start;flex-direction:column}}.password-wrap{position:relative;display:flex;align-items:center;width:100%}.password-wrap input{width:100%;padding-right:55px!important}.password-wrap .eye-button{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:42px;min-width:42px;padding:7px;background:transparent;color:#164d2b;border:0;cursor:pointer}.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0008;display:flex;align-items:center;justify-content:center;z-index:100;padding:16px}.account-dialog{background:#fff;color:#183f28;border-radius:12px;padding:24px;width:min(440px,100%);max-height:90vh;overflow:auto;display:flex;flex-direction:column;gap:10px}.account-dialog input,.account-dialog select{width:100%;box-sizing:border-box}.account-dialog .actions{margin-top:12px}.field-editor{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:12px 0}.field-editor input:not([type=checkbox]){min-width:180px;flex:1}.field-editor label{display:flex;align-items:center;gap:5px}.field-editor input[type=checkbox]{width:auto}.setup-group{border:1px solid #d8e5dc;border-radius:10px;margin:12px 0;overflow:hidden;background:#fff}.setup-group summary{cursor:pointer;padding:16px 18px;font-weight:700;color:#17633b;background:#f2f8f3;list-style:none;display:flex;justify-content:space-between;align-items:center}.setup-group summary::-webkit-details-marker{display:none}.setup-group summary:after{content:"+";font-size:22px;line-height:1}.setup-group[open] summary:after{content:"−"}.setup-group-body{padding:16px}.setup-group-body select{max-width:100%;margin:8px 0}@media(max-width:700px){.setup-group-body{padding:10px}.setup-group summary{padding:13px}}.entry-panel{min-width:0;align-self:start}.entry-scroll{height:360px;max-height:48vh;min-height:180px;overflow-y:auto;overflow-x:hidden;padding:4px 8px 4px 0;scrollbar-width:thin;scrollbar-color:#83b59a #e8f4ec;overscroll-behavior:contain}.entry-scroll .entry{width:100%;overflow-wrap:anywhere}.entry-scroll:focus-visible{outline:2px solid #176b45;outline-offset:2px}@media(max-width:760px){.entry-scroll{height:240px;max-height:35vh}}.judge-workspace{display:grid;grid-template-columns:minmax(220px,34%) minmax(0,1fr);gap:12px;align-items:stretch;height:calc(100dvh - 280px);min-height:420px;max-height:900px}.judge-workspace>.panel{margin:6px 0;min-height:0;overflow:hidden;padding:14px;display:flex;flex-direction:column}.judge-workspace .entry-scroll{height:auto;max-height:none;min-height:0;flex:1;overflow-y:auto}.judge-workspace .entry{padding:9px 11px;margin:3px 0;font-size:16px;line-height:1.15}.score-panel{min-width:0}.score-header{flex:none;margin-bottom:5px}.score-header h3{font-size:clamp(19px,1.65vw,24px);line-height:1.18;margin:0}.entry-code{color:#176b45;white-space:nowrap}.score-criteria{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin}.score-compact{padding:5px 2px;gap:10px;min-height:44px;font-size:clamp(17px,1.3vw,20px)}.score-compact small{font-size:13px;white-space:nowrap}.score-input-wrap{width:112px;flex:none;position:relative}.score-compact input{width:100%;padding:6px 8px;font-size:19px;font-weight:700;text-align:center}.score-invalid input{border:2px solid #c52d2d;background:#fff0f0}.score-error{display:block;color:#a31d1d;font-size:12px;line-height:1.1}.score-footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:8px;border-top:1px solid #dce9e0}.score-total{font-size:19px;white-space:nowrap}.score-total strong{color:#126a41;font-size:23px}.score-comment{flex:1;min-width:170px;min-height:42px;height:44px;resize:vertical;font-size:16px}.score-footer button{white-space:nowrap}.score-help{color:#a31d1d;margin:4px 0;font-size:13px}.judge-export-table{max-height:55vh;overflow:auto}@media(max-width:900px){.judge-workspace{height:calc(100dvh - 260px);grid-template-columns:minmax(160px,32%) minmax(0,1fr)}.score-footer{gap:6px}.score-comment{min-width:130px}}@media(max-width:650px){.judge-workspace{height:calc(100dvh - 245px);min-height:340px;grid-template-columns:minmax(105px,31%) minmax(0,1fr);gap:6px}.judge-workspace>.panel{padding:8px}.judge-workspace .entry{font-size:14px;padding:7px 5px}.judge-workspace .entry-panel h3{font-size:15px}.score-header h3{font-size:18px}.score-compact{font-size:16px;align-items:center;gap:5px}.score-compact small{display:block;font-size:12px}.score-input-wrap{width:72px}.score-compact input{font-size:17px;padding:5px 2px}.score-footer{display:grid;grid-template-columns:1fr 1fr;width:100%}.score-total{font-size:15px}.score-total strong{font-size:18px}.score-comment{grid-column:1/-1;min-width:0;width:100%;height:38px;min-height:38px}.score-footer button{font-size:13px;padding:7px}.score-help{font-size:12px}}@media(max-height:690px){.site-header{min-height:72px;padding:5px}.site-header .brand-logo{height:52px;width:52px}.app-content main{margin:8px auto}.judge-workspace{height:calc(100dvh - 220px);min-height:270px}.judge-workspace .score-compact{padding:3px 0}.score-compact input{padding:4px}}.judge-workspace .entry-panel{border:2px solid #8abda0;background:#f8fcf9;box-shadow:0 2px 9px #0a4a261a;min-height:0;align-self:stretch}.judge-workspace .entry-panel h3{flex:none;padding:2px 4px 10px;margin:0;border-bottom:1px solid #c9e1d2;font-size:20px}.judge-workspace .entry-scroll{display:block;flex:1 1 auto;min-height:0;height:100%;max-height:100%;overflow-y:scroll;overflow-x:hidden;border:1px solid #d0e3d7;border-radius:9px;background:#fff;padding:6px;margin-top:8px;scrollbar-width:auto;scrollbar-color:#4c946b #e3efe7}.judge-workspace .entry-scroll .entry{border:1px solid #d6e8dd;border-radius:7px;display:block}.judge-workspace .entry-scroll .entry.active{border-color:#12633d}.setup-entry-scroll{max-height:300px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #c8dfd1;border-radius:9px;padding:8px;background:#f9fcfa;scrollbar-width:auto;scrollbar-color:#4c946b #e3efe7}.setup-entry-scroll p{padding:8px 10px;margin:0;border-bottom:1px solid #e0ece4;overflow-wrap:anywhere}.setup-entry-scroll p:last-child{border-bottom:0}@media(max-width:760px){.judge-workspace .entry-scroll{max-height:none;height:100%;min-height:0}.judge-workspace .entry-panel{min-height:150px}}.judge-workspace{height:auto;min-height:0;max-height:none;align-items:start}.judge-workspace>.panel{margin:6px 0}.judge-workspace .entry-panel{align-self:start}.judge-workspace .entry-scroll{flex:none;height:390px;max-height:390px;min-height:0;overflow-y:auto;overscroll-behavior:contain}.judge-workspace .entry-scroll .entry{box-sizing:border-box;height:36px;min-height:36px;max-height:36px;margin:3px 0;padding:7px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:20px;font-size:16px;text-align:left}.entry-separator,.title-separator{color:#176b45;font-weight:900;padding:0 4px}.score-header{padding-bottom:10px;margin-bottom:5px;border-bottom:2px solid #b6d6c2}.score-criteria{flex:0 1 auto;overflow-y:auto;max-height:min(54vh,440px)}.score-compact{min-height:42px;padding:4px 2px}.score-footer{flex:none;margin-top:8px;padding-top:10px;border-top:2px solid #9ec5ae}.score-help{margin-top:5px}@media(max-width:900px){.judge-workspace{height:auto;min-height:0}.judge-workspace .entry-scroll{height:390px;max-height:390px}}@media(max-width:650px){.judge-workspace{height:auto;min-height:0}.judge-workspace .entry-scroll{height:350px;max-height:350px}.judge-workspace .entry-scroll .entry{height:32px;min-height:32px;max-height:32px;margin:3px 0;padding:5px 4px;font-size:13px;line-height:20px}.score-criteria{max-height:48vh}}@media(max-height:690px){.judge-workspace{height:auto;min-height:0}.score-criteria{max-height:48vh}}.sidebar-contest-info{display:flex;flex-direction:column;gap:7px;padding:12px 12px 15px;border-bottom:1px solid #bfd9c7;overflow-wrap:anywhere}.sidebar-contest-info strong{font-size:19px;line-height:1.25;color:#164b31}.sidebar-contest-info span{font-size:14px;color:#42634f}.sidebar-contest-info .sidebar-status{font-weight:700;color:#176b45}.sidebar .logout{margin-top:0;background:#f5e5e5;color:#9d2525}@media(max-width:760px){.sidebar-contest-info{width:100%;padding:8px 5px}.sidebar-contest-info strong{font-size:17px}.sidebar .logout{margin-top:0}}.sidebar-contest-info{text-align:center;align-items:center;justify-content:center}.sidebar-contest-info strong,.sidebar-contest-info span{display:block;width:100%;text-align:center}.judge-export-panel{min-width:0}.judge-export-panel .judge-export-table{--judge-row-height:38px;--judge-head-height:48px;height:calc(var(--judge-head-height) + 10 * var(--judge-row-height) + 2px);max-height:min(70dvh,calc(var(--judge-head-height) + 10 * var(--judge-row-height) + 2px));overflow:auto;overscroll-behavior:contain;border:1px solid #cbded1;border-radius:8px;scrollbar-width:thin;scrollbar-color:#76a78a #eaf3ed}.judge-export-panel .judge-export-table table{width:100%;border-collapse:separate;border-spacing:0;table-layout:auto}.judge-export-panel .judge-export-table thead th{position:sticky;top:0;z-index:2;background:#e5f2e9;height:var(--judge-head-height);box-sizing:border-box;padding:4px 8px;font-size:15px;line-height:1.12;vertical-align:middle;border-bottom:1px solid #cbded1}.judge-export-panel .judge-export-table tbody tr{height:var(--judge-row-height)}.judge-export-panel .judge-export-table tbody td{height:var(--judge-row-height);box-sizing:border-box;padding:3px 8px;font-size:15px;line-height:1.12;vertical-align:middle;border-bottom:1px solid #dbe8de}.judge-export-panel .judge-export-table th:nth-child(n+3),.judge-export-panel .judge-export-table td:nth-child(n+3){text-align:center}.judge-export-panel .judge-export-table th:first-child,.judge-export-panel .judge-export-table td:first-child{white-space:nowrap}.judge-export-panel .judge-export-table td:nth-child(2){min-width:190px}@media(max-width:760px){.judge-export-panel .judge-export-table{--judge-row-height:34px;--judge-head-height:48px;max-height:min(65dvh,calc(var(--judge-head-height) + 10 * var(--judge-row-height) + 2px))}.judge-export-panel .judge-export-table tbody td{font-size:14px;padding:3px 6px}}.prize-list{display:flex;flex-direction:column;gap:7px;margin-top:10px}.prize-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #d4e5da;border-radius:9px;padding:9px 12px;background:#fbfefc}.prize-row .actions{display:flex;flex-wrap:wrap;gap:6px}.prize-total{border-top:1px solid #c9ddce;padding-top:10px;margin-top:12px}@media(max-width:700px){.prize-row{align-items:stretch;flex-direction:column}}.eye-button{display:flex!important;align-items:center;justify-content:center;line-height:1}.eye-button svg{display:block;stroke-width:1.8}.password-change-card{width:min(460px,calc(100vw - 32px));background:#fff;padding:28px;border-radius:14px;border:1px solid #cbded1;box-shadow:0 8px 28px #123c2515}.password-change-card form{display:flex;flex-direction:column;gap:12px}.password-change-card label{font-weight:700}.password-change-card .password-wrap{margin-bottom:5px}.password-change-card p{line-height:1.5}.password-change-card .secondary-logout{margin-top:14px;background:#f2f5f3;color:#205b3a;width:100%}.admin-judge-export{margin:18px 0;padding:16px;border:1px solid #bcd8c8;border-radius:12px;background:#f7fbf8}.admin-judge-export .actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.admin-judge-export select{min-width:250px;max-width:100%;height:38px}
