@font-face { font-family:"Ma Shan Zheng";src:url("/fonts/MaShanZheng-Regular.ttf") format("truetype");font-display:swap; }
html.next-workspace { --p:#1963df;--bg:#eef0f3;--ink:#252b36;--muted:#69758a;--line:#e5e9f0;--card:#fff;color-scheme:light; }
html.next-workspace body { background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft Yahei",sans-serif;color:var(--ink); }
html.next-workspace .app { display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;max-width:none;padding:22px;min-height:100dvh; }
html.next-workspace .side { position:sticky;top:22px;height:calc(100dvh - 44px);width:auto;min-width:0;display:flex;flex-direction:column;overflow:hidden;padding:24px 14px 16px;border-radius:30px;border:1px solid #ffffffba;background:#f9fafbcc;backdrop-filter:blur(24px);box-shadow:0 8px 30px #1e293b05; }
html.next-workspace .brand { flex-shrink:0;padding:4px 8px 22px;gap:12px; }
html.next-workspace .brand b { font-size:24px;letter-spacing:-.6px;line-height:1.4; }
html.next-workspace .brand b button { display:block;border:0;background:transparent;color:var(--muted);padding:0;font-size:11px;line-height:24px;cursor:pointer; }
html.next-workspace .brand .mark { background:#e8f0fe;color:var(--p);border-radius:14px; }
html.next-workspace .brand .mark svg { width:26px;height:26px; }
html.next-workspace .brand small { max-width:160px;white-space:normal; }
html.next-workspace #nav { display:block;flex:1;min-height:0;overflow:auto;padding:6px 0; }
html.next-workspace .next-nav-group { margin:8px 0 18px; }
html.next-workspace .next-nav-group h2 { font-size:11px;font-weight:500;color:var(--muted);padding:0 18px;margin:8px 0;letter-spacing:.08em; }
html.next-workspace #nav button { display:flex;align-items:center;gap:12px;min-height:46px;width:100%;margin:3px 0;padding:10px 18px;border:0;border-radius:24px;background:transparent;color:var(--muted);font-size:14px;text-align:left;cursor:pointer; }
html.next-workspace #nav button svg { width:20px;height:20px;flex-shrink:0; }
html.next-workspace #nav button:hover { background:#eef2f7;color:var(--ink); }
html.next-workspace #nav button.active { color:var(--p);background:#e5efff;font-weight:650; }
html.next-workspace .next-edition-footer { border-top:1px solid var(--line);padding:16px 10px 0;display:grid;gap:8px;font-size:11px;color:var(--muted); }
html.next-workspace .next-edition-footer a { display:flex;align-items:center;min-height:44px;color:var(--p);text-decoration:none;font-size:13px; }
html.next-workspace main { min-width:0;background:#fbfcfd;border-radius:30px;padding:28px 30px; }
html.next-workspace .top { height:auto;min-height:72px;padding:12px 0;margin-bottom:20px;gap:16px;background:#fbfcfdf5;border:0;box-shadow:none;backdrop-filter:blur(18px); }
html.next-workspace #title { font-size:30px;letter-spacing:-.7px;line-height:1.3; }
html.next-workspace .card { border:1px solid #eef1f5;border-radius:23px;box-shadow:0 3px 12px #15243a03;background:var(--card); }
html.next-workspace .hero { background:linear-gradient(115deg,#f2f6fd,#eaf2ff);border:1px solid #dce7fa;border-radius:26px;color:var(--ink);padding:30px; }
html.next-workspace .hero h2 { color:var(--ink); }
html.next-workspace .hero p,html.next-workspace .hero small { color:var(--muted); }
html.next-workspace .btn { min-height:44px;border-radius:22px;border-color:var(--line);box-shadow:none; }
html.next-workspace .btn.primary { background:var(--p);border-color:var(--p);color:#fff; }
html.next-workspace .stat { padding:24px; }
html.next-workspace input,html.next-workspace select,html.next-workspace textarea { border-color:var(--line);border-radius:14px;min-height:44px;color:var(--ink);background:var(--card); }
html.next-workspace button:focus-visible,html.next-workspace a:focus-visible { outline:3px solid #80adff;outline-offset:3px; }
html.next-workspace.night { --bg:#11151c;--ink:#eef2f8;--muted:#a5b1c5;--line:#333d4c;--card:#202733;color-scheme:dark; }
html.next-workspace.night .side { background:#1b222def;border-color:#323c4c; }
html.next-workspace.night main { background:#171e28; }
html.next-workspace.night .top { background:#171e28f5; }
html.next-workspace.night #nav button.active { background:#203c64;color:#a9caff; }
html.next-workspace.night #nav button:hover { background:#293344; }
html.next-workspace.night .card { border-color:var(--line); }
html.next-workspace.night .hero { background:linear-gradient(115deg,#202d42,#243853);border-color:#354a69; }
@media(max-width:1000px) { html.next-workspace .app { grid-template-columns:220px minmax(0,1fr);gap:14px;padding:14px; } html.next-workspace .side { top:14px;height:calc(100dvh - 28px); } html.next-workspace main { padding:24px 18px; } }
@media(max-width:820px) {
 html.next-workspace .app { display:block;padding:10px; }
 html.next-workspace .side { position:relative;top:0;left:auto;transform:none!important;width:100%;height:auto;max-height:340px;padding:16px;border-radius:24px;margin-bottom:12px; }
 html.next-workspace .brand { padding-bottom:10px; }
 html.next-workspace #nav { display:flex;gap:10px;overflow:auto; }
 html.next-workspace .next-nav-group { flex:0 0 155px;margin:0; }
 html.next-workspace .next-edition-footer { padding-top:8px; }
 html.next-workspace .next-edition-footer span { display:none; }
 html.next-workspace main { padding:20px 14px;border-radius:24px; }
 html.next-workspace #title { font-size:26px; }
 html.next-workspace #mobileMenuButton,html.next-workspace .mobile-drawer-scrim { display:none!important; }
}
@media(prefers-reduced-transparency:reduce) { html.next-workspace .side { backdrop-filter:none;background:var(--card); } }
@media(prefers-reduced-motion:reduce) { html.next-workspace * { scroll-behavior:auto!important; } }
html.next-workspace .next-daily-quote { display:block;margin-top:20px;border:0;background:transparent;color:var(--p);text-align:left;line-height:1.8;min-height:44px;font:20px/1.8 "Ma Shan Zheng","STKaiti","KaiTi",serif;cursor:pointer; }
html.next-workspace .next-luo-list { display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); }
html.next-workspace .next-luo-card { text-align:left;padding:24px;color:var(--ink);cursor:pointer; }
html.next-workspace .next-luo-card blockquote,html.next-workspace .next-luo-content { margin:0 0 20px;font:26px/1.8 "Ma Shan Zheng","STKaiti","KaiTi",serif;overflow-wrap:anywhere; }
html.next-workspace .next-luo-text { white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8; }
html.next-workspace .next-luo-splash { position:fixed;inset:0;z-index:5000;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:max(28px,env(safe-area-inset-top)) max(28px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left));background:var(--bg);color:var(--ink); }
html.next-workspace .next-luo-splash blockquote { overflow:auto;max-height:70dvh;max-width:800px;overflow-wrap:anywhere;font:clamp(24px,4vw,48px)/1.9 "Ma Shan Zheng","STKaiti","KaiTi",serif; }
html.next-workspace .next-luo-splash button { align-self:flex-end;margin-top:24px; }
html.next-workspace #luoError { color:#bf3434;white-space:pre-wrap; }
html.next-workspace #modal label:has([id^=luo]) { display:block;margin:16px 0; }
html.next-workspace #modal textarea[id^=luo],html.next-workspace #modal select[id^=luo],html.next-workspace #modal input[id^=luo] { width:100%; }
html.next-workspace .next-service-form { display:grid;gap:18px;padding:24px; }
html.next-workspace .next-service-form label { display:grid;gap:8px;min-width:0; }
html.next-workspace .next-service-form :is(input,textarea,select) { width:100%;max-width:100%; }
html.next-workspace .next-service-form input[type=checkbox] { width:20px;min-height:20px; }
html.next-workspace .next-service-form fieldset { border:1px solid var(--line);border-radius:16px;padding:16px;min-width:0; }
html.next-workspace .next-service-form .next-inline-check { display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-right:12px; }
html.next-workspace .next-notice-row { width:100%;display:flex;align-items:center;justify-content:space-between;gap:20px;text-align:left;padding:24px;margin-bottom:14px;color:var(--ink);cursor:pointer; }
html.next-workspace .next-notice-row small { display:block;margin-top:9px;color:var(--muted); }
html.next-workspace .next-service-error,html.next-workspace #schoolFormError { color:#b93838;white-space:pre-wrap; }

html.next-workspace .next-notice-row > span { min-width:0;overflow-wrap:anywhere; }
html.next-workspace .next-receipt { display:grid;gap:8px;overflow-wrap:anywhere; }
html.next-workspace .next-service-form label.line { display:flex;align-items:center;justify-content:space-between;min-height:44px;gap:12px; }
html.next-workspace .next-delivery-layout { display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:22px;margin:22px 0 32px;align-items:start; }
html.next-workspace .next-delivery-compose,html.next-workspace .next-delivery-targets { padding:24px;min-width:0; }
html.next-workspace .next-file-drop { min-height:150px;border:1px dashed var(--line);border-radius:18px;padding:12px;margin:20px 0; }
html.next-workspace .next-file-drop.drag-over { border-color:var(--p);background:#1963df0c; }
html.next-workspace .next-file-row { display:flex;align-items:center;gap:16px;padding:16px 8px;border-bottom:1px solid var(--line); }
html.next-workspace .next-file-row > div { flex:1;min-width:0;overflow-wrap:anywhere; }
html.next-workspace .next-file-row small,html.next-workspace #deliveryPending small { display:block;margin:8px 0;color:var(--muted); }
html.next-workspace .next-file-row progress,html.next-workspace .next-file-target progress { width:100%;height:6px;accent-color:var(--p); }
html.next-workspace .next-device-choice { display:flex;align-items:center;gap:12px;min-height:74px;border-top:1px solid var(--line);padding:16px 0;cursor:pointer; }
html.next-workspace .next-device-choice input { min-height:20px;width:20px;flex-shrink:0; }
html.next-workspace .next-device-choice span { flex:1;min-width:0;overflow-wrap:anywhere; }
html.next-workspace .next-device-choice small { display:block;font-size:12px;color:var(--muted);margin-top:7px; }
html.next-workspace .next-device-dot { width:8px;height:8px;border-radius:50%;background:#929bad;flex-shrink:0; }
html.next-workspace .next-device-dot.online { background:#258359; }
html.next-workspace .next-file-target { padding:20px;margin:16px 0; }
html.next-workspace .next-device-logs { max-height:50dvh;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap;font:13px/1.8 ui-monospace,monospace; }
@media(max-width:1100px) { html.next-workspace .next-delivery-layout { grid-template-columns:minmax(0,1fr); } }
html.next-workspace .next-calendar-navigator { padding:20px;margin:20px 0; }
html.next-workspace .next-date-strip { display:flex;overflow:auto;gap:6px;padding:12px 0;scrollbar-width:none;touch-action:pan-x;overscroll-behavior-x:contain; }
html.next-workspace .next-date-day { flex:0 0 52px;min-height:68px;border:0;border-radius:18px;background:transparent;color:var(--ink);display:grid;align-content:center;justify-items:center;gap:8px;cursor:pointer; }
html.next-workspace .next-date-day span { font-size:11px;color:var(--muted); }
html.next-workspace .next-date-day b { font-size:21px; }
html.next-workspace .next-date-day.selected { background:var(--p);color:#fff; }
html.next-workspace .next-date-day.selected span { color:#fff; }
html.next-workspace .next-calendar-months { max-height:440px;overflow:auto;border-top:1px solid var(--line);position:relative;overscroll-behavior:contain; }
html.next-workspace .next-calendar-month { padding:20px 0; }
html.next-workspace .next-month-grid { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center; }
html.next-workspace .next-month-grid .next-date-day { width:100%;min-height:52px;border-radius:14px; }
html.next-workspace .next-month-grid .next-date-day span { display:none; }
html.next-workspace .next-month-grid .next-date-day b { font-size:16px; }
html.next-workspace .next-lesson-card { display:flex;align-items:stretch;gap:18px;width:100%;padding:24px;margin:16px 0;text-align:left;color:var(--ink);cursor:pointer; }
html.next-workspace .next-lesson-card > span:last-child { display:grid;gap:10px;min-width:0;overflow-wrap:anywhere; }
html.next-workspace .next-lesson-card b { font-size:21px; }
html.next-workspace .next-lesson-card small { color:var(--p);font-weight:600; }
html.next-workspace .next-lesson-rule { width:4px;min-height:70px;background:var(--p);border-radius:4px;flex-shrink:0; }
html.next-workspace .next-week-editor { overflow:auto;max-height:60dvh;border:1px solid var(--line);border-radius:16px; }
html.next-workspace .dialog:has(.next-week-editor) { width:min(1100px,96vw);max-width:1100px; }
html.next-workspace .next-week-head,html.next-workspace .next-week-line { display:grid;grid-template-columns:44px repeat(7,minmax(108px,1fr));min-width:820px; }
html.next-workspace .next-week-head { position:sticky;top:0;background:var(--card);z-index:1; }
html.next-workspace .next-week-head > *,html.next-workspace .next-week-line > b { padding:15px 6px;text-align:center;font-size:12px; }
html.next-workspace .next-week-cell { min-height:82px;border-left:1px solid var(--line);border-top:1px solid var(--line);padding:5px; }
html.next-workspace .next-week-cell button { display:grid;gap:8px;min-height:72px;width:100%;padding:10px;border:0;border-radius:12px;background:#1963df12;color:var(--ink);text-align:left;cursor:grab;overflow-wrap:anywhere; }
html.next-workspace .next-week-cell small { font-size:11px;color:var(--muted); }
html.next-workspace .next-segment { display:flex;gap:4px;padding:4px;border-radius:28px;background:var(--line); }
html.next-workspace .next-segment .btn { border:0;background:transparent; }
html.next-workspace .next-segment .btn.primary { background:var(--p); }
html.next-workspace .next-home-hero { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:24px;margin-bottom:24px; }
html.next-workspace .next-home-hero h2 { font-size:36px;margin:12px 0; }
html.next-workspace .next-home-hero .next-daily-quote { margin:0; }
html.next-workspace .next-home-shortcuts { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:24px 0; }
html.next-workspace .next-home-shortcuts button { text-align:left;padding:20px;color:var(--ink);min-height:100px;cursor:pointer; }
html.next-workspace .next-home-shortcuts span { display:block;font-weight:650;font-size:16px; }
html.next-workspace .next-home-shortcuts small { display:block;color:var(--p);margin-top:14px; }
html.next-workspace .next-home-schedule { padding:24px;margin:24px 0; }
html.next-workspace .next-today-lesson { display:grid;grid-template-columns:150px minmax(0,1fr) auto;align-items:center;gap:16px;width:100%;min-height:64px;padding:16px 0;border:0;border-top:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;cursor:pointer; }
html.next-workspace .next-today-lesson strong { color:var(--p);font-size:13px; }
html.next-workspace .next-home-columns { display:grid;grid-template-columns:1fr 1fr;gap:22px; }
html.next-workspace .next-home-columns .card { padding:24px;margin-bottom:22px; }
html.next-workspace .next-home-notice { display:grid;gap:8px; }
@media(max-width:1100px) { html.next-workspace .next-home-shortcuts { grid-template-columns:repeat(3,minmax(0,1fr)); } html.next-workspace .next-home-columns { grid-template-columns:minmax(0,1fr); } }
@media(max-width:600px) { html.next-workspace .next-home-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); } html.next-workspace .next-home-hero { grid-template-columns:minmax(0,1fr);padding:24px; } html.next-workspace .next-today-lesson { grid-template-columns:90px minmax(0,1fr); } html.next-workspace .next-today-lesson > .sub { grid-column:2; } }
html.next-workspace #pages[hidden],html.next-workspace #workspacePages[hidden] { display:none!important; }
html.next-workspace #workspacePages { min-width:0; }
html.next-workspace .next-student-search { display:flex;align-items:center;gap:8px;flex:1;min-width:180px;max-width:600px; }
html.next-workspace .next-student-search input { flex:1;min-width:0;width:100%; }
html.next-workspace .next-student-search button { flex-shrink:0;display:flex;align-items:center;gap:6px; }
html.next-workspace .next-student-search svg { width:18px;height:18px; }
html.next-workspace #dormitoryFilter { display:none!important; }
html.next-workspace .next-student-roles { display:block;font-size:12px;color:var(--p);margin-top:8px;overflow-wrap:anywhere; }
html.next-workspace #workspaceStudentFilterState { margin:14px 0; }
html.next-workspace #roster tr[hidden],html.next-workspace #iosStudentList button[hidden] { display:none!important; }
html.next-workspace .dialog { max-height:calc(var(--visual-viewport-height,100dvh) - 24px);overflow:auto;overscroll-behavior:contain; }
html.next-workspace .next-service-form .actions { position:sticky;bottom:-24px;z-index:2;display:flex;flex-wrap:wrap;gap:8px;background:var(--card);padding:14px 0; }
html.next-workspace #notice { z-index:2147483000;max-width:calc(100vw - 24px);overflow-wrap:anywhere; }
html.next-workspace.night { --p:#a5c7ff; }
html.next-workspace.night .btn.primary,html.next-workspace.night .next-segment .btn.primary,html.next-workspace.night .next-date-day.selected { background:#2365d2;border-color:#2365d2;color:#fff; }
html.next-workspace.night .brand .mark { background:#263f65;color:#c8ddff; }
html.next-workspace.night .next-service-error,html.next-workspace.night #schoolFormError,html.next-workspace.night #luoError { color:#ffada8; }

/* New-domain login: checkbox geometry must not inherit text-field sizing. */
html.next-workspace .account-login-form { display:grid;gap:16px;margin-top:24px; }
html.next-workspace .account-login-form>label:not(.account-remember) { display:grid;gap:8px; }
html.next-workspace .account-login-form input:not([type=checkbox]) { width:100%;min-height:46px; }
html.next-workspace .account-login-form .account-remember { display:flex;align-items:center;gap:10px; }
html.next-workspace .account-login input[type=checkbox] { width:20px;height:20px;min-height:20px;flex:0 0 20px;padding:0;margin:0; }
html.next-workspace .account-login-submit { width:100%;min-height:46px; }
html.next-workspace .account-login-mark { width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:#eaf2ff;color:#1963df;font-weight:700;margin-bottom:18px; }
html.next-workspace .account-login-heading h2 { margin:4px 0 10px;font-size:25px; }
html.next-workspace .account-login-heading p,html.next-workspace .account-login-foot { color:var(--muted);line-height:1.6; }
