:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#252825;background:#fff;font-synthesis:none;font-size:14px;line-height:1.5;--line:#e7e9e6;--muted:#7a8079;--green:#285d47}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit;background:white;border:1px solid #dfe3dd;border-radius:5px;padding:8px 12px;font-size:13px;font-weight:500;line-height:1.4}button:hover{background:#f4f6f3}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover{background:#204d3a}button.danger{color:#a23930;border-color:#e2bdb8}button.text{background:none;border:0;padding:3px 0;color:#606b5e;font-size:12px}button.text:hover{color:var(--green);text-decoration:underline}button.icon{border:0;background:none;width:32px;height:30px;display:inline-grid;place-items:center;padding:0;font-size:23px;color:#80857d;line-height:1}button.icon:hover{background:#f3f5f0}.app{max-width:1030px;margin:0 auto;padding:0 36px}header{height:102px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:20px}h1{font-size:20px;letter-spacing:-.6px;line-height:1.3;font-weight:650;margin:0}.header-right{display:flex;gap:13px;align-items:center}.header-right>span{color:#92978e;font-size:11px}main{padding-top:28px}.bar{display:flex;justify-content:space-between;gap:20px;align-items:center}nav{display:flex;gap:23px;align-self:stretch}nav button{border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 0;color:#8a9085;background:none;font-size:14px}nav button.active{border-bottom-color:#315c40;color:#284a32;font-weight:650}nav button:hover{color:#284a32;background:none}.actions{display:flex;gap:8px}.tools{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0 15px}.tools input{width:250px;background:#fafbf9;font-size:12px;padding:9px 11px}.tools>span{font-size:12px;color:#899080;white-space:nowrap}input,select,textarea{width:100%;border:1px solid #dfe4db;border-radius:5px;padding:9px 10px;background:#fff;color:#30372d;line-height:1.5;min-width:0}input::placeholder,textarea::placeholder{color:#a1a795}textarea{resize:vertical}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{padding:10px 13px;font-size:11px;font-weight:500;color:#8f9787;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fafbf8}td{padding:14px 13px;border-bottom:1px solid #edf0e9;font-size:13px;vertical-align:middle}th:first-child,td:first-child{padding-left:15px}th:last-child,td:last-child{padding-right:10px}tbody tr:hover{background:#fcfdf9}td.name{font-weight:500;width:45%}td.name small{display:block;font-weight:400;font-size:11px;color:#99a28e;margin-top:1px}.points{font-variant-numeric:tabular-nums;font-weight:600;min-width:100px}.stage{color:#78836d;font-size:12px}.stage.platin{color:#766985}.stage.gold{color:#988549}.stage.silber{color:#828d99}.stage.bronze{color:#978069}.row-actions{text-align:right;width:100px}.row-actions button{font-size:12px;padding:3px 8px;line-height:1.5;border:0;background:none;color:#8c9680}.row-actions button:hover{background:#edf2e5;color:#375b29}.row-actions button.quick-add{font-size:19px;color:#426e36;padding:0 8px}.table-scroll{overflow-x:auto}footer{display:flex;align-items:center;gap:16px;padding:20px 0 32px}.rule{font-size:11px;color:#949d88}.export{margin-left:auto}a{color:var(--green)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #77a17c;outline-offset:3px}[hidden]{display:none!important}.empty{text-align:center;padding:44px 18px;color:#8b957c;font-size:13px}.pager{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:13px 0;color:#919b82;font-size:11px}.pager button{padding:4px 10px;font-size:12px}.ledger-date{font-size:12px;color:#88937a}.activity{white-space:normal;min-width:180px;max-width:260px}.activity small{display:block;font-size:10px;color:#9ba58e;margin-top:2px}.cancelled td{color:#a6ad9c}.cancelled .points{text-decoration:line-through}.cancelled .activity small{color:#a6ad9c}.note{font-size:11px;color:#8f9a7f}.amount{font-variant-numeric:tabular-nums}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{border:1px solid #e3e8db;border-radius:9px;padding:0;width:min(520px,calc(100vw - 28px));max-height:90dvh;background:white;color:inherit;box-shadow:0 20px 80px #18301425}dialog::backdrop{background:#253b2b55}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:19px 22px;border-bottom:1px solid var(--line);gap:12px}.dialog-head h2{font-size:17px;font-weight:600;letter-spacing:-.3px;margin:0}.dialog-body{padding:22px}.dialog-body>p{font-size:13px;color:#83916f;margin:0 0 18px}.dialog-body table{white-space:normal}.dialog-body th{background:#fafbf8}.dialog-body td{padding:10px;font-size:12px}.dialog-body th:first-child,.dialog-body td:first-child{padding-left:10px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:17px}.wide{grid-column:1/-1}label{display:block;font-size:12px;font-weight:500;color:#667952}label>input,label>select,label>textarea{margin-top:6px}.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:24px}.error{font-size:12px;color:#a9453d;margin-top:12px}.error:empty{display:none}.picker-search{margin-bottom:8px;font-size:12px}.picker{max-height:168px;overflow:auto;border:1px solid var(--line);border-radius:5px}.choice{display:flex;align-items:center;gap:9px;min-height:35px;padding:7px 10px;font-weight:400;color:#50673c;border-bottom:1px solid #f0f3e9;font-size:12px}.choice:last-child{border:0}.choice input{width:14px;height:14px;margin:0;accent-color:var(--green)}.choice small{font-size:10px;color:#9da98b;margin-left:auto}.selection{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#909e7b;margin-top:7px}.selection button{font-size:10px}details{margin-top:17px}summary{font-size:12px;color:#8d9c75;cursor:pointer}details textarea{margin-top:10px}.result{display:flex;justify-content:space-between;font-size:12px;color:#85966a;padding-top:18px;margin-top:20px;border-top:1px solid var(--line)}.result strong{color:#456837;font-weight:600}.muted{color:#899974}.spaced{margin-top:20px}.student-top{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-bottom:20px;gap:12px}.student-top strong{font-weight:600}.history-list{display:grid}.history-row{padding:12px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center}.history-row:last-child{border-bottom:0}.history-row>div{min-width:0}.history-row span{display:block;font-size:12px;overflow-wrap:anywhere}.history-row small{display:block;font-size:10px;color:#95a47d;margin-top:3px}.history-row strong{font-size:13px}.history-row.void{opacity:.5}.history-row.void strong{text-decoration:line-through}.menu-list{display:flex;flex-direction:column;align-items:stretch;gap:10px}.menu-list p{font-size:12px;color:#8b9b75;margin:0 0 8px}.menu-list button{text-align:left;padding:10px}.import-link{border-top:1px solid var(--line);margin-top:20px;padding-top:15px}#closed{border:1px solid #e1e5d8;background:#f6f8f0;padding:10px 13px;margin-bottom:14px;font-size:12px;color:#8b9974}#closed button{margin-left:10px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#2d4f2b;color:#f5f8ed;padding:10px 16px;border-radius:5px;font-size:12px;box-shadow:0 7px 30px #23391e20;max-width:calc(100vw - 30px);z-index:1000}#toast.error-toast{background:#8d443e}
@media(max-width:650px){.app{padding:0 18px}header{height:78px;gap:10px}h1{font-size:18px}.header-right{gap:4px}.header-right>span{font-size:9px}main{padding-top:20px}.bar{gap:12px;flex-wrap:wrap;align-items:center}.actions{gap:6px}.actions button{font-size:11px;padding:8px 10px}nav{gap:19px}nav button{font-size:13px;padding:9px 0}.tools{margin:18px 0 12px;gap:10px}.tools input{width:180px;min-width:0}.tools>span{font-size:10px}td{padding:12px 9px;font-size:12px}th{padding:9px;font-size:10px}td.name{width:auto}.points{min-width:60px}.stage{font-size:11px}.row-actions{width:65px;white-space:nowrap}.row-actions button{padding:2px 5px;font-size:11px}.row-actions .details-label{display:none}.row-actions button.quick-add{padding:0 7px}.rule{font-size:9px;max-width:175px}footer{gap:12px;align-items:center}button.text{font-size:10px}dialog .text{font-size:12px}.dialog-head{padding:16px 18px}.dialog-body{padding:19px 18px}.dialog-body button{font-size:12px}.ledger-table{min-width:660px}.fields{gap:14px}.dialog-head h2{font-size:16px}.selection button.text{font-size:10px}}

.student-table .sort-header{display:inline-flex;align-items:center;gap:5px;border:0;border-radius:3px;background:transparent;padding:1px 2px;margin:-1px -2px;color:inherit;font:inherit;font-weight:inherit;white-space:nowrap}
.student-table .sort-header:hover{background:transparent;color:#284a32}
.student-table th[aria-sort="ascending"] .sort-header,.student-table th[aria-sort="descending"] .sort-header{color:#284a32;font-weight:600}
.student-table .sort-indicator{font-size:12px;line-height:1;color:#85927e}

.account-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.account-row strong{font-size:13px;font-weight:500;display:block}.account-row small{font-size:11px;color:var(--muted);display:block}.credential{padding:16px;background:#f5f7f2;border:1px solid var(--line);border-radius:5px;overflow-wrap:anywhere}.credential code{font-size:17px}.header-right #access{font-size:11px;padding:7px 10px}.header-right{flex-shrink:0}@media(max-width:460px){.header-right>span{display:none}.header-right #access{font-size:10px;padding:6px 8px}}
.bar>.actions{margin-left:auto;align-items:center}
.row-actions{min-width:130px}.row-actions button.favorite{font-size:20px;line-height:1;color:#89958a;padding:2px 6px;vertical-align:middle}.row-actions button.favorite[aria-pressed="true"]{color:#b58924}@media(max-width:650px){.row-actions{min-width:88px}.row-actions button.favorite{padding:2px 4px}}
.row-actions button.delete-entry,.history-row button.delete-entry{color:#a23930;font-size:20px;line-height:1;padding:2px 8px}.row-actions button.delete-entry:hover,.history-row button.delete-entry:hover{background:#f9e9e7;color:#842b25}.history-row button.delete-entry{border:0;background:none;border-radius:5px;cursor:pointer}

.student-table .student-name{display:inline;border:0;background:transparent;padding:2px 0;margin:-2px 0;color:inherit;font:inherit;font-weight:inherit;text-align:left;white-space:normal}
.student-table .student-name:hover{background:transparent;color:#284a32;text-decoration:underline}
