*{box-sizing:border-box}body{margin:0;font:15px Arial,sans-serif;color:#14331f;background:#f7f9f7}button,input,select{font:inherit}button{border:0;border-radius:7px;padding:11px 16px;background:#167328;color:white;cursor:pointer}button:disabled{opacity:.45;cursor:default}.light{border:1px solid #b9c8ba;background:white;color:#285133}.login{height:100vh;background:linear-gradient(145deg,#e7f5e5,#fff 55%,#d5edcd);display:flex;align-items:center;justify-content:space-evenly}.brand{display:flex;align-items:center;gap:25px}.brand img{width:125px}.brand h1{font-size:48px;margin:0}.brand p{font-size:23px;color:#518351}.loginbox{background:white;padding:45px;border-radius:20px;box-shadow:0 14px 40px #a9b9a555;width:420px}.loginbox h2{font-size:30px;text-align:center}.loginbox input,.loginbox button{width:100%;margin:7px 0;padding:15px}.loginbox input,input,select{border:1px solid #cbd6cd;border-radius:7px;padding:10px;background:white}.loginbox p{text-align:center;color:#68746b;font-size:13px}.signature{position:fixed;bottom:25px;right:30px;font-weight:bold}header{height:70px;background:#edf0ed;display:flex;align-items:center;gap:16px;padding:0 24px}header img{width:44px}header strong{font-size:25px}header b{border-left:1px solid #bbb;padding-left:20px;font-size:23px}.space{flex:1}.layout{display:flex;height:calc(100vh - 70px)}aside{width:215px;flex-shrink:0;background:#e3f3e1;padding:22px 14px}aside b{display:block;color:white;background:#319b36;padding:14px;border-radius:8px}aside p{padding:8px 12px}main{padding:18px;min-width:0;flex:1;display:flex;flex-direction:column}.tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.notice{margin:12px 0;color:#705e16;background:#fff8dd;padding:9px;border-radius:6px}.tablebox{overflow:auto;flex:1;border:1px solid #d6e4d6;background:white}table{border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:100%;font-size:12px}th,td{border-right:1px solid #d5ded4;border-bottom:1px solid #e0e7df;padding:4px;text-align:center}th{background:#e3f3df;position:sticky;top:0;z-index:3;height:85px;vertical-align:bottom;word-break:break-word;min-width:65px}thead tr:nth-child(2) th{top:85px;height:34px;background:#eafad8}.pupil{width:180px;min-width:180px;text-align:left;position:sticky;left:0;z-index:2;background:#fafafa}.total{width:75px;min-width:75px;background:#ecf9df;font-weight:bold;position:sticky;left:180px;z-index:2}thead .pupil,thead .total{z-index:5}tbody tr.selected td{background:#ddf7f1}td input{width:62px;min-width:0;padding:6px 2px;text-align:center;border:1px solid #d9e2dc;border-radius:4px}footer{display:flex;align-items:center;gap:10px;padding-top:15px}#message,.error{color:#ac3e2d}.club{width:70px;min-width:70px}#status{margin-left:auto;font-weight:bold}

[hidden]{display:none!important}
.login{position:relative;background:#f4f8ef url('/static/login-background.png') center center/cover no-repeat}.brand{width:46%;padding-left:5%;gap:25px}.brand img{width:clamp(90px,10vw,150px)}.brand h1{font-size:clamp(34px,4.2vw,70px);line-height:.95}.brand p{font-size:clamp(18px,2vw,28px)}.loginbox{width:min(43%,620px);padding:45px 55px}.loginbox h2{font-size:clamp(24px,3vw,42px)}.signature{width:185px;height:auto;position:absolute;bottom:20px;right:25px;mix-blend-mode:multiply}.app-signature{width:145px;height:auto;margin-left:auto;mix-blend-mode:multiply}.lang{display:flex;align-items:center;gap:2px;white-space:nowrap}.lang button{padding:6px 8px;color:#21442b;background:transparent;font-size:13px;font-weight:bold}.lang button.active{background:#d7efd2}.login-lang{position:absolute;right:24px;top:20px}tbody td{padding:1px 4px;height:26px}tbody td input{height:24px;padding:2px 3px;font-size:12px}tbody tr{height:27px}footer{min-height:52px}@media(max-width:760px){.login{flex-direction:column;justify-content:center;gap:20px}.brand{width:90%;padding:0}.brand img{width:70px}.loginbox{width:90%;padding:25px}.signature{width:130px}.layout aside{width:130px}header b{font-size:15px}.app-signature{width:90px}}
/* Compact full-width work area */
#app header{height:48px;padding:0 16px;gap:10px}#app header img{width:34px}#app header strong{font-size:21px}#app header b{font-size:19px}#app header button{padding:6px 12px}#app .layout{height:calc(100vh - 48px)}#app main{padding:8px 10px}#app .tools{gap:7px;min-height:34px}#app .tools input,#app .tools select,#app .tools button{padding:6px 9px;height:34px}#app .notice{margin:6px 0;padding:5px 8px}#app footer{min-height:35px;padding-top:7px;gap:7px}#app footer button{padding:7px 11px}#app footer .app-signature{width:115px}#app .tablebox{width:100%;overflow:auto}#app table{width:100%;min-width:760px;table-layout:fixed}#app th,#app td{min-width:0}#app th.number-col,#app td.number-col{width:40px;position:sticky;left:0;z-index:2;background:#fafafa;padding:2px;text-align:center}#app th.pupil,#app td.pupil{width:180px;min-width:0;left:40px}#app th.total,#app td.total{width:76px;min-width:0;left:220px}#app thead th.number-col,#app thead th.pupil,#app thead th.total{z-index:5}#app thead th.number-col{background:#e3f3df}#app thead tr:nth-child(2) th.number-col{background:#eafad8}#app .number-badge{display:block;border:1px solid #d9e2dc;border-radius:4px;background:#fff;line-height:20px;font-size:12px}#app tbody tr.selected td.number-col,#app tbody tr.selected td.pupil,#app tbody tr.selected td.total{background:#ddf7f1}#app .club{width:auto;min-width:0}#app .club-name{font-weight:700;line-height:1.15}#app .club-mentor{margin-top:4px;padding:3px 2px;background:#fff;border:1px solid #d6e4d6;border-radius:4px;font-weight:400;line-height:1.1;overflow-wrap:anywhere;max-height:45px;overflow:hidden}#app td input{width:100%;min-width:0}#app thead tr:first-child th{height:100px}#app thead tr:nth-child(2) th{top:100px;height:28px}@media(max-width:760px){#app header b{font-size:14px}#app .layout{height:calc(100vh - 48px)}}
.draft-panel{margin-top:5px;border:1px solid #cfe3c7;background:#f4fbef;border-radius:6px;padding:5px 8px;max-height:125px;overflow:auto;font-size:12px}.draft-panel div{padding:3px;border-bottom:1px solid #dbe7d8}.draft-panel a{color:#166f38}#app footer{flex-wrap:wrap}
#staff-dialog{border:0;border-radius:12px;padding:20px;max-width:720px;width:95vw;box-shadow:0 10px 45px #0005;color:#173822}#staff-dialog::backdrop{background:#0008}.staff-head{display:flex;align-items:center;justify-content:space-between}.staff-head h2{margin:0 0 12px}.staff-layout{display:grid;grid-template-columns:190px 1fr;gap:20px}.staff-layout>div,.staff-layout form{display:flex;flex-direction:column;gap:8px}.staff-layout select,.staff-layout form>input{width:100%}.staff-layout small{color:#68746b}.staff-layout fieldset{display:flex;flex-direction:column;gap:7px;border:1px solid #cadaca;border-radius:7px}.staff-layout fieldset label,#staff-active-line{display:flex;gap:8px;align-items:center}.staff-layout input[type=checkbox]{width:auto}.staff-actions{display:flex;align-items:center;gap:10px}#staff-error{color:#a32e24}.staff-layout form button{align-self:flex-start}@media(max-width:650px){.staff-layout{grid-template-columns:1fr}}

.password-field { position: relative; width: 100%; }
.password-field input { width: 100%; padding-right: 52px; }
.password-field .password-eye,
.loginbox .password-field .password-eye {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #285133;
  cursor: pointer;
  font-size: 18px;
}
