:root{color-scheme:light;--ink:#17212c;--muted:#546070;--line:#dce2ea;--blue:#1757cc;--blue-hover:#1045ad;--light:#f1f6ff;--radius:8px;--font:system-ui,-apple-system,"Segoe UI","Microsoft YaHei UI","PingFang SC",sans-serif}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:#fff;color:var(--ink);font:15px/1.6 var(--font);overflow-wrap:anywhere}
p,h1,h2,h3,dl,dd{margin:0}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{opacity:.62;cursor:not-allowed}
a{color:var(--blue);text-underline-offset:3px}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.skip{position:fixed;top:10px;left:12px;z-index:2;transform:translateY(-160%);padding:8px 12px;background:#fff}
.skip:focus{transform:none}
.bar{border-bottom:1px solid var(--line)}
.bar-in{width:min(1080px,calc(100% - 48px));margin:auto;min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.identity{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:700;white-space:nowrap}
.desk-mark{width:19px;height:19px;display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);gap:2px;transform:rotate(-8deg);flex:none}
.desk-mark i{border-radius:2px;background:#4285f4}.desk-mark i:nth-child(2){background:#ea665d}.desk-mark i:nth-child(3){background:#2da663}.desk-mark i:nth-child(4){background:#f7bb37}
#student-availability{display:flex;align-items:flex-start;gap:7px;font-size:12px;color:var(--muted)}
#student-availability-icon{display:grid;place-items:center;width:16px;height:16px;flex:none;margin-top:2px;border-radius:50%;background:#edf1f6;font-size:10px;line-height:1}
#student-availability[data-state=ready] #student-availability-icon{color:#12643b;background:#e5f4e9}
#student-availability[data-state=paused] #student-availability-icon,#student-availability[data-state=unavailable] #student-availability-icon{background:#fff0d4;color:#754400}
.desk{width:min(960px,calc(100% - 48px));margin:0 auto;padding:70px 0 24px}
.cover{text-align:center;margin:0 auto 32px}
.product-mark{width:50px;height:50px;display:grid;place-items:center;margin:0 auto 14px;background:var(--light);border:1px solid #e2eaf8;border-radius:8px}
.product-mark .desk-mark{width:26px;height:26px;gap:3px}
.product-mark .desk-mark i{border-radius:3px}
.product-label{color:var(--muted);font-size:13px;font-weight:600;margin-bottom:8px}
h1{font-size:42px;line-height:1.18;font-weight:710;letter-spacing:0}
h2{font-size:20px;line-height:1.35;font-weight:700}
h3{font-size:15px}
.desk:not(:has(#student-authenticated:not([hidden]))) #student-message,.desk:not(:has(#student-authenticated:not([hidden]))) .scope-notice,#student-login-form{width:min(100%,418px);margin-inline:auto}
#student-login-form{display:grid;gap:10px}
label{display:block;font-weight:650;font-size:14px}
.code-field{display:flex;align-items:center;min-width:0;min-height:52px;border:1px solid #aeb9c8;border-radius:var(--radius);background:#fff;padding-right:4px}
.code-field:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px #1757cc1f}
.code-field input{width:100%;min-width:0;min-height:50px;border:0;outline:none;padding:0 14px;background:transparent;font-size:16px}
.code-field input::placeholder,textarea::placeholder{color:#657183}
.quiet,.tools button,.pagination button,.text-button,.button.secondary,.receipt-link{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:5px 10px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--blue);font-size:13px;font-weight:650;text-decoration:none}
.quiet:hover:not(:disabled),.tools button:hover:not(:disabled),.text-button:hover:not(:disabled),.button.secondary:hover:not(:disabled),.receipt-link:hover{background:var(--light)}
.code-field .quiet{min-width:52px;min-height:42px}
.action,.result-action{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:8px 17px;border:1px solid var(--blue);border-radius:var(--radius);background:var(--blue);color:white;font-size:14px;font-weight:700;line-height:1.35;text-decoration:none;text-align:center}
.action:hover:not(:disabled),.result-action:hover{background:var(--blue-hover);border-color:var(--blue-hover)}
.forward::after{content:"";width:7px;height:7px;flex:none;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg)}
#student-login{width:100%;min-height:50px;margin-top:2px}
#student-card-help{text-align:center;color:var(--muted);font-size:13px;margin-top:2px}
.scope-notice{display:flex;gap:8px;margin-top:30px;padding-top:14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.scope-notice>span{flex:none}
.notice{border:1px solid #c7d8f2;border-left:3px solid var(--blue);background:var(--light);border-radius:6px;padding:10px 13px;margin-bottom:14px;color:#204776;font-size:13px}
.notice[data-kind=error]{background:#fff5f4;color:#812c25;border-color:#e7a39c}
.desk:has(#student-authenticated:not([hidden])){padding-top:28px}
.desk:has(#student-authenticated:not([hidden])) .cover{text-align:left;margin:0 0 17px}
.desk:has(#student-authenticated:not([hidden])) .cover .product-mark{display:none}
.desk:has(#student-authenticated:not([hidden])) .cover h1{font-size:26px}
.desk:has(#student-authenticated:not([hidden])) .product-label{margin-bottom:2px}
.latest{--tone:#2455a4;--wash:#f3f7ff;--edge:#d1dff4;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:20px;align-items:center;position:relative;border:1px solid var(--edge);border-top:3px solid var(--tone);border-radius:var(--radius);background:var(--wash);padding:14px 16px;margin-bottom:14px}
.latest[data-status=SUCCEEDED]{--tone:#156643;--wash:#f2faf5;--edge:#cce5d5}
.latest[data-status=FAILED]{--tone:#a13128;--wash:#fff6f5;--edge:#efcfc9}
.latest[data-status=UNKNOWN]{--tone:#815308;--wash:#fff9ec;--edge:#efdfbb}
.latest[data-status=CANCELLED]{--tone:#52606d;--wash:#f6f7f9;--edge:#dde2e8}
.field-note{grid-column:1;grid-row:1;color:var(--muted);font-size:12px;font-weight:650}
.latest .order-status{grid-column:1;grid-row:2;color:var(--tone);font-size:22px;font-weight:720;line-height:1.35;margin:2px 0 4px}
.latest .order-message{grid-column:1;grid-row:3;color:var(--muted);font-size:13px}
.latest .receipt-link,.latest .result-action{grid-column:2;grid-row:1/span 3;justify-self:end;max-width:100%}
.latest .receipt-link{min-height:44px;border-color:#b8c9e3;background:white;padding-inline:14px}
.account{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;border-block:1px solid var(--line);min-height:60px;padding:6px 0}
.card-id,.balance{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.card-id{min-width:0;flex-wrap:nowrap;gap:12px}
.card-id span,.balance dt{color:var(--muted);font-size:12px}
.card-id span,.card-id strong{display:block}
.card-id strong{font-size:13px;word-break:break-all}
.switch-card,#student-refresh{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:6px 12px;border:1px solid #b9ccea;border-radius:8px;background:var(--light);color:#174fae;font-size:13px;font-weight:700;white-space:nowrap}
.switch-card{flex:none;margin-inline-start:auto}
.switch-card svg,#student-refresh svg{width:16px;height:16px;flex:none}
.switch-card:hover:not(:disabled),#student-refresh:hover:not(:disabled){background:#e5eeff;border-color:#89a8dc}
.balance{gap:6px 14px;font-variant-numeric:tabular-nums}
.balance>div{display:flex;align-items:baseline;gap:5px}
.balance dd{font-size:14px;font-weight:700}
.balance>div:first-child dd{color:var(--blue)}
.sub{color:var(--muted);font-size:13px}
.account-note{margin-top:6px}
.account-note+.latest{margin:12px 0 0}
#student-verify-form,#student-records{margin-top:23px}
#student-records{padding-top:17px;border-top:1px solid var(--line)}
#student-records-title{scroll-margin-top:18px}
.desk-title,.submit-foot,.editor-foot,.tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.desk-title,.submit-foot{justify-content:space-between}
.desk-title{margin-bottom:12px}
.modes{display:inline-flex;max-width:100%;gap:3px;padding:3px;background:#f4f6fa;border:1px solid var(--line);border-radius:7px}
.modes button{border:1px solid transparent;border-radius:5px;min-height:33px;padding:3px 10px;background:transparent;font-size:13px;font-weight:650;color:var(--muted);white-space:nowrap}
.modes button[aria-selected=true]{background:white;color:var(--blue);border-color:#d3dfee}
textarea{display:block;width:100%;min-width:0;min-height:82px;resize:vertical;margin-top:6px;padding:10px 12px;border:1px solid #aeb9c8;border-radius:var(--radius);background:#fff;font-size:15px}
textarea:focus{outline:2px solid var(--blue);outline-offset:1px}
.editor-foot{min-height:37px;gap:3px 8px}
.editor-foot .count{margin-inline-start:auto;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.submit-foot{margin-top:7px}
.preview{margin-top:10px;border-left:3px solid var(--blue);background:var(--light);border-radius:6px;padding:11px 14px;font-size:13px}
.preview ol{padding-left:19px;margin:6px 0 0}
.preview-label{margin-right:6px;font-weight:680}
.preview li[data-status=INVALID] .preview-label{color:#a13128}
.tools{gap:4px}
.tools button,.button.secondary{border-color:var(--line);background:white}
#student-refresh{min-width:114px}
.refresh-status{margin:-4px 0 10px;color:#156643;font-size:13px}
.refresh-status[data-state=busy]{color:var(--muted)}
.refresh-status[data-state=error]{color:#a13128}
.refresh-status:empty{margin:0}
.empty{color:var(--muted);font-size:14px;padding:14px 0}
.order-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px 14px;padding:13px 0;border-top:1px solid var(--line)}
.order-meta,.order-actions,.pagination{display:flex;align-items:center;gap:5px 8px;flex-wrap:wrap}
.order-row .order-status{color:#2455a4;font-size:13px;font-weight:720}
.order-row .order-status[data-status=SUCCEEDED]{color:#156643}
.order-row .order-status[data-status=FAILED]{color:#a13128}
.order-row .order-status[data-status=UNKNOWN]{color:#815308}
.order-row .order-status[data-status=CANCELLED]{color:var(--muted)}
.order-time,.order-id,.order-link{font-size:12px;color:var(--muted)}
.order-id,.order-link{margin-top:2px}
.order-link{word-break:break-all}
.order-message{font-size:13px}
.order-actions{justify-content:flex-end;max-width:365px}
.order-actions .result-action{min-height:38px;font-size:13px;padding:5px 9px}
.pagination{padding-top:10px;color:var(--muted);font-size:13px}
#student-result-boundary{margin-top:10px}
@media(max-width:640px){
 .bar-in,.desk{width:calc(100% - 36px)}
 .bar-in{min-height:56px;gap:10px}
 #student-availability{max-width:49%;font-size:11px;line-height:1.5}
 .desk{padding-top:56px}
 .cover{margin-bottom:25px}
 h1{font-size:29px}
 .desk:has(#student-authenticated:not([hidden])){padding-top:19px}
 .desk:has(#student-authenticated:not([hidden])) .cover h1{font-size:23px}
 .latest{grid-template-columns:minmax(0,1fr);row-gap:3px;padding:12px 13px}
 .latest .receipt-link,.latest .result-action{grid-column:1;grid-row:auto;justify-self:start;margin-top:6px}
 .latest .order-status{font-size:20px}
 .account{flex-direction:column;align-items:flex-start;gap:2px;padding-bottom:8px}
 .card-id{width:100%}
 .balance{gap:6px 12px}
 .order-row{grid-template-columns:minmax(0,1fr)}
 .order-actions{justify-content:flex-start;max-width:none}
 .submit-foot .action{width:100%}
 textarea{font-size:16px}
}
@media(max-width:350px){h1{font-size:25px}.bar-in,.desk{width:calc(100% - 28px)}.modes button{padding-inline:6px}}
