.teacherDiamonds *{box-sizing:border-box}
.teacherDiamonds{font:14px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;color:#152943;background:#eaf2f8}
.teacherDiamonds{margin:0;-webkit-font-smoothing:antialiased}
.teacherDiamonds button,.teacherDiamonds input{font:inherit}
.teacherDiamonds button{cursor:pointer}
.teacherDiamonds button:disabled{cursor:default}
.teacherDiamonds .sheet{position:absolute;inset:auto 0 0;height:619px;display:flex;flex-direction:column;background:#fff;border-radius:21px 21px 0 0;box-shadow:0 -6px 32px #12293f1c;overflow:hidden}
.teacherDiamonds .grab{height:4px;width:30px;background:#dbe4e9;border-radius:12px;margin:9px auto 7px}
.teacherDiamonds .sheet-head{padding:0 17px;display:flex;align-items:center;justify-content:space-between;gap:8px;height:44px;flex:none}
.teacherDiamonds .sheet-head h1{font-size:23px;letter-spacing:-.55px;margin:0;display:flex;gap:9px;align-items:center}
.teacherDiamonds .close{border:1px solid #e2e9ee;border-radius:9px;background:#fff;color:#53687a;width:32px;height:32px;display:grid;place-items:center;padding:0;line-height:1;flex:none}
.teacherDiamonds .tabs{display:grid;grid-template-columns:1.08fr 1.16fr .74fr;gap:1px;margin:6px 15px 0;border-bottom:1px solid #e4ecf0;height:38px;flex:none}
.teacherDiamonds .tabs button{border:0;background:transparent;color:#526779;font-size:12.5px;font-weight:650;padding:0 3px;border-bottom:2px solid transparent;white-space:nowrap}
.teacherDiamonds .tabs .active{border-color:#137a82;color:#126774}
.teacherDiamonds .body{padding:13px 17px 10px;display:flex;flex:1;flex-direction:column;min-height:0}
.teacherDiamonds .search{height:40px;display:flex;align-items:center;padding:0 10px;border:1px solid #d9e5ec;border-radius:10px;background:#f8fafb;gap:8px;color:#5c6e80;flex:none}
.teacherDiamonds .search i{position:relative;width:11px;height:11px;border:1.5px solid #526b7f;border-radius:50%;margin-right:4px;flex:none}
.teacherDiamonds .search i:after{content:"";position:absolute;right:-4px;bottom:-3px;transform:rotate(45deg);background:#526b7f;width:5px;height:1.5px;border-radius:1px}
.teacherDiamonds .search input{background:none;border:0;min-width:0;flex:1;color:#172943;outline:none;font-size:13px}
.teacherDiamonds .search input::placeholder{color:#576e83}
.teacherDiamonds .search button{background:transparent;border:0;color:#526779;width:24px;height:24px;display:grid;place-items:center;padding:0;flex:none}
.teacherDiamonds .search button svg{width:14px;height:14px;display:block;}
.teacherDiamonds .search.active{border-color:#6ea8ad;background:#fff}
.teacherDiamonds .roster{display:grid;margin-top:6px;border-bottom:1px solid #e7eef2;flex:none}
.teacherDiamonds .student{display:grid;grid-template-columns:18px 45px minmax(0,1fr) 33px;align-items:center;column-gap:8px;height:40px;padding:0 7px;border-bottom:1px solid #edf1f4;font-size:13px;white-space:nowrap}
.teacherDiamonds .student:last-child{border-bottom:0}
.teacherDiamonds .student.selected{background:#eef8f7;border-radius:7px}
.teacherDiamonds .student-name{font-weight:630;min-width:0;overflow:hidden;text-overflow:ellipsis}
.teacherDiamonds .student .sid{color:#586e81;font-size:11.5px;font-variant-numeric:tabular-nums}
.teacherDiamonds .amount-current{text-align:right;font-size:12px;font-weight:650;font-variant-numeric:tabular-nums;color:#374f67}
.teacherDiamonds .check{appearance:none;display:grid;place-items:center;width:16px;height:16px;margin:0;border:1.4px solid #9babba;border-radius:4px;background:#fff}
.teacherDiamonds .check:checked{background:#127782;border-color:#127782}
.teacherDiamonds .check:checked::after{content:"";width:6px;height:3px;border-bottom:1.6px solid white;border-left:1.6px solid white;transform:translateY(-.5px) rotate(-48deg)}
.teacherDiamonds .selection button{padding:2px 0;border:none;background:transparent;color:#0b6470;font-size:11.5px;font-weight:650}
.teacherDiamonds .amount{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0}
.teacherDiamonds .amount h2{font-size:13px;margin:0;color:#1e354e}
.teacherDiamonds .amount p{font-size:11px;color:#5d7083;margin:2px 0 0}
.teacherDiamonds .stepper{display:grid;grid-template-columns:34px 51px 34px;height:34px;border:1px solid #d4e1e8;border-radius:9px;overflow:hidden}
.teacherDiamonds .stepper button{background:#f6fafb;color:#146b79;border:0;font-size:19px;line-height:1;font-weight:550}
.teacherDiamonds .stepper button:disabled{color:#a9b6bf;background:#f4f7f8}
.teacherDiamonds .stepper input{outline:0;text-align:center;font-size:14px;font-weight:720;color:#17344b;width:100%;min-width:0;border:0;border-inline:1px solid #dbe7ee;border-radius:0;background:white;font-variant-numeric:tabular-nums}
.teacherDiamonds .stepper .edited{background:#eef8f8;box-shadow:inset 0 0 0 1px #31959d}
.teacherDiamonds .warn button{display:block;margin:3px 0 0 auto;border:0;padding:1px 0;color:#6a4c14;background:transparent;font-size:11px;font-weight:750}
.teacherDiamonds .reason{display:block;margin:1px 0 0}
.teacherDiamonds .reason span{font-weight:650;color:#344b60;font-size:11.5px}
.teacherDiamonds .reason em{margin-left:5px;font-weight:400;font-style:normal;color:#657588}
.teacherDiamonds .reason input{display:block;color:#253c51;border:1px solid #dbe6ed;border-radius:8px;width:100%;padding:6px 9px;height:32px;margin-top:4px;font-size:12px;background:#fff}
.teacherDiamonds .reason input::placeholder{color:#647789}
.teacherDiamonds .footer{display:flex;align-items:center;gap:12px;padding:11px 17px 16px;border-top:1px solid #e4ecf0;background:#fff;flex:none}
.teacherDiamonds .primary{min-width:108px;height:39px;border:none;border-radius:9px;background:#126e7d;color:#fff;font-weight:700;font-size:13px;padding:0 13px}
.teacherDiamonds .primary:disabled{background:#e6eef1;color:#687d8d}
.teacherDiamonds .primary.deduct{background:#90463b}
.teacherDiamonds .section-title{font-size:12px;font-weight:700;color:#37536b;margin:0 0 5px}
.teacherDiamonds .logs .search{margin-bottom:11px}
.teacherDiamonds .day{font-size:11.5px;color:#506b80;font-weight:650;margin:7px -1px 3px;padding:4px 1px;border-bottom:1px solid #dce7ed}
.teacherDiamonds .log-row{display:grid;grid-template-columns:48px minmax(0,1fr) 39px;align-items:center;min-height:49px;gap:6px;border-bottom:1px solid #e8eef1;font-size:12px}
.teacherDiamonds .log-row time{font-size:10px;color:#596f84}
.teacherDiamonds .log-row .student-name{color:#1a344b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.teacherDiamonds .log-row .student-name small{display:block;color:#61778a;font-weight:400;font-size:10.5px}
.teacherDiamonds .log-row b{justify-self:end;color:#126b67;font-variant-numeric:tabular-nums}
.teacherDiamonds .log-row b.neg{color:#8a463d}
.teacherDiamonds .log-help{color:#586f82;font-size:11px;margin-top:12px}
.teacherDiamonds .sheet{height:692px}
.teacherDiamonds .body{padding-bottom:9px}
.teacherDiamonds .roster{overflow:auto;flex:1 1 auto;min-height:0;scrollbar-width:thin;scrollbar-color:#94adb9 #eff5f7;scrollbar-gutter:stable;overscroll-behavior:contain}
.teacherDiamonds .roster-wrap{position:relative;flex:1 1 auto;min-height:0;margin-top:6px}
.teacherDiamonds .roster-wrap .roster{height:100%;margin-top:0;padding-right:9px;scrollbar-width:none}
.teacherDiamonds .roster-wrap .roster::-webkit-scrollbar{display:none}
.teacherDiamonds .rail{position:absolute;right:0;top:2px;bottom:4px;width:4px;border-radius:5px;background:#edf3f5}
.teacherDiamonds .rail b{display:block;width:100%;border-radius:5px;background:#a0b2bd}
.teacherDiamonds .primary.deduct:disabled{background:#e6eef1;color:#657c8c}
.teacherDiamonds .student{grid-template-columns:16px 40px minmax(0,1fr) 54px;height:34px;gap:7px;padding:0 8px 0 4px}
.teacherDiamonds .student .sid{font-size:11.5px}
.teacherDiamonds .student-name{font-size:12.5px;font-weight:550}
.teacherDiamonds .check{width:14px;height:14px}
.teacherDiamonds .student .amount-current{display:flex;justify-content:flex-end;align-items:center;gap:4px;font-weight:550}
.teacherDiamonds .diamond-icon{flex:none;vertical-align:text-bottom}
.teacherDiamonds .amount h2{display:flex;align-items:center;gap:6px;font-weight:650}
.teacherDiamonds .selectbar{position:relative;display:flex;align-items:center;min-height:31px;border-bottom:1px solid #edf2f4;flex:none}
.teacherDiamonds .selectbar button{background:#eaf6f5;color:#105f69;padding:3px 7px;border:none;border-radius:6px;font-size:11.5px;font-weight:640;display:flex;align-items:center;gap:5px}
.teacherDiamonds .selectbar .muted{color:#627487;font-size:11px;padding-left:1px}
.teacherDiamonds .select-menu{position:absolute;z-index:5;bottom:calc(100% + 5px);left:0;width:min(330px,100%);padding:12px 14px;border-radius:11px;border:1px solid #d9e7eb;background:white;box-shadow:0 8px 29px #16304c2c}
.teacherDiamonds .select-menu-title{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:650;margin-bottom:4px}
.teacherDiamonds .select-menu-title button{background:transparent;width:28px;height:28px;display:grid;place-items:center;padding:0;color:#53677b;flex:none}
.teacherDiamonds .select-menu-heading{display:flex;align-items:center;gap:8px;min-height:28px;cursor:pointer;}
.teacherDiamonds .select-menu-item{min-height:32px;display:grid;grid-template-columns:16px 40px minmax(0,1fr);gap:8px;align-items:center;border-top:1px solid #e7eef2;font-size:12px;cursor:pointer;}
.teacherDiamonds .select-menu-item .selected-id{color:#63778a;font-size:10.5px}
.teacherDiamonds .select-menu-item .selected-name{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.teacherDiamonds .check:indeterminate{background:#127782;border-color:#127782;}
.teacherDiamonds .check:indeterminate::after{content:"";width:7px;height:0;border-bottom:1.6px solid white;}
.teacherDiamonds .amount{padding:9px 0 7px;flex:none}
.teacherDiamonds .reason{flex:none}
.teacherDiamonds .reason .required{color:#80392d}
.teacherDiamonds .footer{justify-content:flex-end;padding:9px 17px max(18px,env(safe-area-inset-bottom));min-height:72px}
.teacherDiamonds .footer .primary{min-width:108px;height:44px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px}
.teacherDiamonds .progress{display:flex;align-items:center;gap:6px;margin-right:3px;font-size:11.5px;color:#567084}
.teacherDiamonds .spin{width:12px;height:12px;border:2px solid #cbdee5;border-top-color:#127683;border-radius:50%}
.teacherDiamonds .locked{opacity:.73}
.teacherDiamonds .float{position:absolute;z-index:9;right:19px;left:auto;width:min(327px,calc(100% - 38px));bottom:179px;padding:12px 13px 10px;border:1px solid #e9dbb1;border-radius:12px;background:#fffdf7;box-shadow:0 10px 26px #2e27362e;color:#354052}
.teacherDiamonds .float .caption{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:#513d18}
.teacherDiamonds .float p{font-size:11.5px;line-height:1.43;margin:7px 0;color:#394251}
.teacherDiamonds .guide{padding:6px 0;font-size:11.5px;border-top:1px solid #f0e8d3;border-bottom:1px solid #f0e8d3}
.teacherDiamonds .guide div{display:flex;justify-content:space-between;padding:3px 0;gap:12px}
.teacherDiamonds .guide b{font-weight:650;color:#513d18}
.teacherDiamonds .float .ok{display:block;margin-left:auto;border:0;padding:4px;background:none;color:#5f4717;font-weight:700;font-size:11.5px}
.teacherDiamonds .toast-dim{position:absolute;inset:0;background:#172e412b;z-index:8}
.teacherDiamonds .toast-preview{position:absolute;top:50%;left:50%;width:286px;transform:translate(-50%,-50%);border:1px solid #dce8eb;border-radius:12px;background:white;padding:12px 13px;z-index:10;box-shadow:0 10px 29px #12263829}
.teacherDiamonds .toast-preview b{font-size:14px;font-weight:680;display:block;color:#193c4b}
.teacherDiamonds .toast-preview .toast-icon{display:grid;place-items:center;width:22px;height:22px;background:#e2f1eb;color:#13675a;border-radius:50%;flex:none}
.teacherDiamonds .toast-preview.error .toast-icon{background:#fbede8;color:#924735}
.teacherDiamonds .toast-preview .line{display:flex;align-items:center;gap:7px}
.teacherDiamonds .toast-preview p{font-size:12px;line-height:1.44;margin:7px 0 11px;color:#4d6474}
.teacherDiamonds .toast-buttons{display:flex;justify-content:flex-end;gap:7px}
.teacherDiamonds .toast-preview button{min-height:30px;padding:0 11px;font-size:11.5px;font-weight:650;color:white;background:#126e7d;border:0;border-radius:7px}
.teacherDiamonds .toast-preview button.secondary{color:#486678;background:#f1f6f8}
.teacherDiamonds .logs .search{margin-bottom:6px}
.teacherDiamonds .logs .log-row{grid-template-columns:49px minmax(0,1fr) 37px 56px;min-height:37px}
.teacherDiamonds .log-row .sid{color:#627588;font-size:10.5px}
.teacherDiamonds .log-row b{display:flex;align-items:center;justify-content:flex-end;gap:4px;font-weight:640}
.teacherDiamonds .log-row .student-name{line-height:1.45}
.teacherDiamonds{position:fixed;inset:0;z-index:10008;display:block;font:14px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;color:#152943;}
.teacherDiamonds .diamond-scrim{position:absolute;inset:0;width:100%;height:100%;border:0;background:#142c4a55;}
.teacherDiamonds .sheet{height:min(692px,calc(100dvh - 32px));max-width:540px;margin-inline:auto;left:0;right:0;}
.teacherDiamonds button:disabled{cursor:default;}
.teacherDiamonds .logs-scroll{min-height:0;overflow:auto;scrollbar-width:thin;}
.teacherDiamonds .selected-scroll-wrap{position:relative;}
.teacherDiamonds .selected-scroll{max-height:min(280px,max(120px,calc(100dvh - 420px)));overflow:auto;padding-right:10px;scrollbar-width:none;overscroll-behavior:contain;}
.teacherDiamonds .selected-scroll::-webkit-scrollbar{display:none;}
.teacherDiamonds .empty{padding:12px 4px;font-size:12px;color:#627487;}
.teacherDiamonds .balance-error{font-size:11px;color:#795731;margin-top:5px;}
.teacherDiamonds .balance-error button{border:0;background:none;color:#126e7d;padding:2px 4px;font-size:11px;}
.teacherDiamonds .load-more{display:block;margin:10px auto;border:1px solid #d4e1e8;background:#f6fafb;color:#146b79;border-radius:7px;padding:6px 12px;}
.teacherDiamonds .stepper input{font-variant-numeric:tabular-nums;}
.teacherDiamonds .float{left:auto;right:max(calc((100vw - 540px)/2 + 19px),19px);margin-left:auto;}
.teacherDiamonds .rail[hidden]{display:none;}
.teacherDiamonds .toast-dim{z-index:8;}
.teacherDiamonds .spin{animation:teacherDiamondSpin .8s linear infinite;}
@keyframes teacherDiamondSpin{to{transform:rotate(360deg)}}
@media(max-height:600px){.teacherDiamonds .sheet{height:calc(100dvh - 12px)}
.teacherDiamonds .float{bottom:160px;max-height:calc(100dvh - 180px);overflow:auto}
.teacherDiamonds .sheet-head{height:36px}}
.teacherDiamonds{background:transparent;}
