.teacher-coins-entry{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin-left:8px;padding:8px 10px;border:1px solid #d8b876;border-radius:6px;background:#fff8e8;color:#77531b;font:inherit;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer}
.teacher-coins-entry svg{width:17px;height:17px;flex:none}
.teacher-coins-entry:disabled{cursor:wait;opacity:.6}
.teacher-coins-pending{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:16px;border:1px solid #e3ca91;border-radius:8px;background:#fff8e8;color:#73531d;overflow-wrap:anywhere}
.teacher-coins-pending[hidden]{display:none}
.teacher-coins-pending p{margin:5px 0 0;line-height:1.6;font-size:14px}
.teacher-coins-pending button{flex:none;padding:10px 12px;border:1px solid #b79451;border-radius:6px;background:#fff;color:#73531d;font:inherit;font-size:14px;cursor:pointer}
.teacher-coins-dialog,.teacher-coins-dialog *{box-sizing:border-box}
.teacher-coins-dialog{width:min(560px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);margin:auto;padding:24px;border:1px solid #d8e4e6;border-radius:14px;background:#fff;color:#203e49;box-shadow:0 20px 80px #193d4933;overflow:auto;overscroll-behavior:contain;font-family:inherit;line-height:1.6;overflow-wrap:anywhere}
.teacher-coins-dialog::backdrop{background:#17354180}
.teacher-coins-dialog [hidden]{display:none!important}
.teacher-coins-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.teacher-coins-header h2{margin:3px 0 0;font-size:23px;line-height:1.4}
.teacher-coins-eyebrow{margin:0;color:#7d642f;font-size:12px}
.teacher-coins-dialog button{font-family:inherit;cursor:pointer}
.teacher-coins-dialog button:disabled{opacity:.55;cursor:wait}
.teacher-coins-close{display:grid;place-items:center;flex:none;width:36px;height:36px;border:0;border-radius:6px;background:#eef4f4;color:#34606a}
.teacher-coins-close svg{width:19px;height:19px}
.teacher-coins-target{margin:20px 0 10px;font-size:15px}
.teacher-coins-balance{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;padding:12px 16px;border:1px solid #ece0c2;border-radius:8px;background:#fffaf0;color:#73521c;font-size:13px}
.teacher-coins-balance strong{font-size:28px;line-height:1.3}
.teacher-coins-note{margin:9px 0 16px;color:#647b83;font-size:12px;line-height:1.7}
.teacher-coins-recovery{padding:12px;border:1px solid #e5ca91;border-radius:6px;background:#fff8e6;color:#72531c;font-size:13px}
.teacher-coins-field{display:block;margin:14px 0 7px;font-size:14px;font-weight:700;color:#395b66}
.teacher-coins-dialog input{display:block;width:100%;min-width:0;max-width:100%;height:44px;padding:9px 12px;border:1px solid #bfd1d6;border-radius:6px;background:#fff;color:#203e49;font:inherit;font-size:16px}
.teacher-coins-dialog input:disabled{opacity:1;background:#f3f6f6;color:#536c74}
.teacher-coins-dialog input[aria-invalid=true]{border-color:#b34842}
.teacher-coins-validation,.teacher-coins-error{margin:10px 0;color:#a23d35;font-size:13px}
.teacher-coins-confirmation{margin:16px 0 12px;font-size:14px;color:#3e5f69}
.teacher-coins-success{margin:14px 0;padding:12px;border:1px solid #b4d7c8;border-radius:6px;background:#edf8f2;color:#24694b;font-size:14px}
.teacher-coins-actions{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap}
.teacher-coins-actions button{min-width:0;max-width:100%;min-height:42px;padding:10px 14px;border:1px solid #bdd0d5;border-radius:6px;background:#fff;color:#235e68;font-size:14px;font-weight:700;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
.teacher-coins-actions .teacher-coins-submit,.teacher-coins-actions [data-coins-again]{flex:1;background:#17656c;border-color:#17656c;color:#fff}
.teacher-coins-history{margin-top:24px;padding-top:20px;border-top:1px solid #dce6e9}
.teacher-coins-history>header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.teacher-coins-history h3{margin:0;font-size:15px}
.teacher-coins-history>header button{flex:none;min-height:34px;padding:4px 8px;border:0;border-radius:4px;background:#eff5f5;color:#316771;font-size:12px}
.teacher-coins-history ol{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.teacher-coins-history li{min-width:0;padding:12px;border:1px solid #e1e9ec;border-radius:7px;font-size:13px}
.teacher-coins-history li>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.teacher-coins-history li strong{color:#86601d}
.teacher-coins-history time,.teacher-coins-history small{color:#71858e;font-size:11px}
.teacher-coins-history li p{margin:6px 0;color:#3e5c65;white-space:pre-wrap}
.teacher-coins-entry:focus-visible,.teacher-coins-pending button:focus-visible,.teacher-coins-dialog :is(button,input):focus-visible{outline:3px solid #69a8b5;outline-offset:2px}
@media(max-width:480px){.teacher-coins-dialog{padding:18px 16px;max-height:calc(100dvh - 24px)}.teacher-coins-header h2{font-size:21px}.teacher-coins-pending{align-items:stretch;flex-direction:column;gap:10px}.teacher-coins-actions{flex-direction:column}.teacher-coins-history time{font-size:11px}}
