:root {
  --green: #00561f;
  --green-2: #246e3f;
  --page: #f4f7f5;
  --hint: #e8f0ea;
  --line: #e4ebe7;
  --line-2: #eef3f0;
  --muted: #6d7972;
  --text: #122419;
  --sub: #3d4a43;
  --soft: #5d6b64;
  --danger: #e2554f;
  --warn: #e0922a;
  --ok: #1f8a4c;
  --shadow: 0 10px 28px rgba(18, 36, 25, .05);
  --ring: 0 0 0 3px rgba(0, 86, 31, .14);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--page); font: 14px/1.5 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.ico { width: 18px; height: 18px; display: inline-block; flex: none; }
.ico path, .ico circle, .ico rect, .ico line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.lg { width: 28px; height: 28px; }
.ico.sm { width: 16px; height: 16px; }
.ico.xs { width: 14px; height: 14px; }

.login { min-height: 100vh; display: grid; grid-template-columns: 560px 1fr; }
.login-brand { background: var(--green); color: #fff; padding: 56px; display: flex; flex-direction: column; }
.crest { width: 88px; height: 88px; border-radius: 22px; background: #fff; display: flex; align-items: center; justify-content: center; }
.crest img { width: 68px; height: 68px; object-fit: contain; }
.crest.sm { width: 36px; height: 36px; border-radius: 10px; padding: 4px; }
.crest.sm img { width: 28px; height: 28px; }
.login-brand h1 { margin: 48px 0 16px; font-size: 32px; line-height: 44px; font-weight: 700; letter-spacing: 0; }
.login-brand p { margin: 0; max-width: 360px; color: #d5e3db; font-size: 14px; line-height: 22px; }
.login-foot { margin-top: auto; }
.login-foot strong { display: block; font-size: 16px; line-height: 24px; font-weight: 600; }
.login-foot span { color: #d5e3db; font-size: 13px; line-height: 20px; }
.login-main { display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--page); }
.panel { width: 420px; }
.panel h2 { margin: 0; font-size: 32px; line-height: 42px; font-weight: 700; }
.panel .lead { margin: 10px 0 28px; color: var(--muted); font-size: 14px; line-height: 22px; }
label { display: block; margin: 0 0 8px; color: var(--sub); font-size: 13px; line-height: 20px; font-weight: 600; }
.field { position: relative; margin-bottom: 18px; }
.field .lead-ico { position: absolute; left: 14px; top: 14px; color: #9aa19d; width: 20px; height: 20px; }
.field input { width: 100%; height: 48px; border: 1px solid #e4e7e6; border-radius: 12px; padding: 0 14px; background: #fff; font-size: 15px; }
.field:has(.lead-ico) input { padding-left: 44px; }
.field:has(.eye) input { padding-right: 42px; }
.field .eye { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border: 0; background: transparent; color: #9aa19d; padding: 0; }
.login .primary { width: 100%; height: 48px; margin-top: 4px; border: 0; border-radius: 12px; background: var(--green); color: #fff; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.hint { min-height: 100px; margin-top: 18px; background: var(--hint); color: #3e6b52; border-radius: 12px; padding: 0 14px; display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; }
.hint .ico { color: var(--green); width: 16px; height: 16px; }
.muted { color: var(--muted); }
.dialog .danger { height: 38px; padding: 0 16px; border-radius: 10px; background: #e2554f; color: #fff; font-size: 14px; font-weight: 600; }
.msg { min-height: 20px; margin-top: 10px; color: var(--danger); font-size: 13px; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.side { background: var(--green); color: #fff; min-height: 100vh; padding: 20px 16px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding-left: 4px; min-height: 36px; }
.brand strong { display: block; font-size: 14px; line-height: 18px; font-weight: 600; }
.brand span { display: block; margin-top: 1px; color: #d7e4dc; font-size: 11px; line-height: 16px; }
.side nav { margin-top: 28px; display: flex; flex-direction: column; }
.side nav button { height: 42px; border: 0; border-radius: 12px; background: transparent; color: #e7f0eb; display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: 14px; text-align: left; }
.side nav button .ico { color: #d5e3db; }
.side nav button.active { background: var(--green-2); color: #fff; font-weight: 600; }
.side nav button.active .ico { color: #fff; }
.me { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: 32px 1fr 18px; gap: 10px; align-items: center; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #1e6b45; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.me strong { display: block; font-size: 13px; line-height: 18px; font-weight: 600; }
.me span { display: block; color: #d7e4dc; font-size: 11px; line-height: 15px; }
#logoutBtn { width: 18px; height: 18px; border: 0; background: transparent; color: #d5e3db; padding: 0; }

.top { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 24px 0 28px; }
.crumb { color: var(--muted); font-size: 13px; line-height: 18px; }
.crumb b { color: var(--text); font-weight: 600; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.sync { height: 28px; background: var(--hint); color: #1c6844; border-radius: 20px; padding: 0 12px 0 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: block; }
#reloadBtn { height: 34px; }
main { min-width: 0; }
#view { padding: 24px; display: flex; flex-direction: column; gap: 16px; }

.head { min-height: 56px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.head h2 { margin: 0; font-size: 26px; line-height: 34px; font-weight: 700; }
.sub { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 18px; }
.actions { display: flex; gap: 10px; align-items: center; }
.primary, .ghost, .danger, .edit, .del { border: 1px solid transparent; background: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.primary { height: 38px; padding: 0 16px 0 14px; border-radius: 10px; background: var(--green); color: #fff; font-size: 14px; font-weight: 600; }
.ghost { height: 40px; padding: 0 16px 0 14px; border-radius: 10px; border-color: var(--line); color: var(--text); font-size: 14px; font-weight: 600; background: #fff; }
.ghost .ico { width: 16px; height: 16px; }
#exportBtn { height: 36px; padding: 0 12px; font-size: 13px; font-weight: 600; }
#reloadBtn { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { background: #fff; border-radius: 16px; padding: 18px; min-height: 126px; }
.card .k { color: var(--muted); font-size: 13px; line-height: 18px; display: flex; align-items: center; justify-content: space-between; }
.card .k .ico { width: 18px; height: 18px; color: #1c6844; }
.card .v { margin-top: 8px; font-size: 32px; line-height: 40px; font-weight: 700; }
.card .s { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 16px; }
.card .s.up { color: var(--ok); font-weight: 600; }
.card .s.wrap { white-space: normal; line-height: 18px; }
.card .v.warn { color: var(--warn); }
.warn-ico { color: var(--warn); display: inline-flex; }
.card.center { text-align: center; }
.card.center .k { justify-content: center; }
.card.center .v, .card.center .s, .card.center .grade-nums { display: flex; justify-content: center; }
.grade-nums { margin-top: 8px; align-items: flex-end; gap: 6px; min-height: 40px; }
.grade-nums b { font-size: 28px; line-height: 34px; font-weight: 700; }
.grade-nums span { color: #c5c9c7; font-size: 18px; line-height: 28px; }
.bar { display: flex; height: 6px; gap: 2px; margin: 8px auto 0; width: 100%; max-width: 242px; }
.bar i { display: block; height: 6px; border-radius: 3px; }
.bar i:nth-child(1) { background: var(--green); }
.bar i:nth-child(2) { background: #3e8f62; }
.bar i:nth-child(3) { background: #b7d7c4; }

.sheet { background: #fff; border-radius: 16px; overflow: hidden; }
.toolbar { height: 68px; display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.searchbox { position: relative; width: 280px; height: 40px; flex: none; }
.searchbox .ico { position: absolute; left: 12px; top: 11px; color: var(--muted); }
.searchbox input { width: 100%; height: 40px; border: 0; border-radius: 10px; background: #f3f5f4; padding: 0 12px 0 38px; font-size: 13px; }
.searchbox input::placeholder { color: #a1a7a4; }
.toolbar select { width: 128px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 28px 0 14px; font-size: 13px; }
.toolbar .count { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.table-wrap { overflow: auto; }
table.roster { width: 100%; min-width: 1058px; border-collapse: collapse; table-layout: fixed; }
table.roster .c-check { width: 44px; }
table.roster .c-name { width: 150px; }
table.roster .c-phone { width: 168px; }
table.roster .c-subject { width: 110px; }
table.roster .c-grade { width: 100px; }
table.roster .c-note { width: 318px; }
table.roster .c-ops { width: 168px; }
table.roster th, table.roster td { height: 52px; padding: 0 8px; border-bottom: 1px solid var(--line-2); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; font-size: 13px; line-height: 18px; color: var(--sub); font-weight: 400; }
table.roster th { background: #fafafa; color: var(--muted); font-size: 12px; line-height: 16px; }
table.roster td.nm { color: var(--text); font-size: 14px; font-weight: 600; }
table.roster td.cchk, table.roster th.cchk { text-align: center; padding: 0; }
.person { display: flex; align-items: center; gap: 8px; min-width: 0; }
.person span:last-child { overflow: hidden; text-overflow: ellipsis; }
.dot { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex: none; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 8px; background: #e7f3ec; color: #2c6b49; font-size: 12px; font-weight: 600; }
.bad { color: var(--danger) !important; }
input.check { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; border: 1.25px solid #d0d4d2; border-radius: 4px; background: #fff; position: relative; vertical-align: middle; cursor: pointer; }
input.check:checked { background: var(--green); border-color: var(--green); }
input.check:checked::after { content: ""; position: absolute; left: 3px; top: 3px; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.ops { display: flex; justify-content: flex-end; gap: 8px; }
.edit, .del { height: 26px; padding: 0 8px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.edit { background: #f3f5f4; color: var(--soft); }
.edit .ico { color: #6d746f; width: 13px; height: 13px; }
.del { background: #fdecec; color: var(--danger); }
.del .ico { width: 13px; height: 13px; }
.foot { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 14px; }
.picked { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 13px; }
.picked .danger, .picked .ghost { height: 30px; border-radius: 8px; padding: 0 10px; font-size: 12px; font-weight: 600; }
.picked .danger { background: #fff1f0; color: var(--danger); border-color: #f6d2d0; }
.picked .ghost { color: var(--soft); }
.picked .ico { width: 14px; height: 14px; }
.pager { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.pager .iconly { width: 28px; height: 28px; padding: 0; border-radius: 8px; }
.pager .ico { width: 16px; height: 16px; color: var(--soft); }

.mask { position: fixed; inset: 0; background: rgba(31, 38, 36, .68); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 5; }
.dialog { width: 680px; max-width: 100%; background: #fff; border-radius: 20px; max-height: calc(100vh - 48px); overflow: auto; }
.dialog.import { width: 720px; }
.dialog header, .dialog footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.dialog header { padding: 20px 20px 16px 24px; border-bottom: 1px solid var(--line); }
.dialog h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.dialog header .sub { margin-top: 4px; }
.x { width: 32px; height: 32px; border: 0; border-radius: 16px; background: #f2f4f3; color: #66706b; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.x .ico { width: 16px; height: 16px; }
.dialog .body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.dialog footer { min-height: 70px; padding: 14px 20px 16px 24px; border-top: 1px solid var(--line); }
.dialog footer .sub { margin: 0; font-size: 12px; }
.dialog .primary { height: 38px; margin: 0; }
.dialog .ghost { height: 40px; color: var(--sub); font-weight: 600; }
.dialog .btns { display: flex; gap: 10px; align-items: center; }
.drop { height: 142px; border: 1px solid #b7d4c4; border-radius: 14px; background: #f3faf6; color: var(--green); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-align: center; }
.drop strong { font-size: 15px; line-height: 22px; font-weight: 600; }
.drop em { color: var(--muted); font-style: normal; font-size: 12px; line-height: 18px; font-weight: 400; }
.drop.over { outline: 2px solid var(--green); }
.filecard { height: 66px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 12px; }
.fileico { width: 40px; height: 40px; border-radius: 10px; background: #f3faf6; color: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.filecard .meta { min-width: 0; flex: 1; }
.filecard strong { display: block; font-size: 14px; line-height: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filecard span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block-label, .preview-head { display: flex; align-items: center; justify-content: space-between; color: var(--sub); font-size: 13px; line-height: 18px; font-weight: 600; }
.linkish { border: 0; background: transparent; color: var(--green); font-size: 12px; font-weight: 600; padding: 0; }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mode { position: relative; min-height: 118px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; cursor: pointer; }
.mode input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.mode b { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--text); }
.mode span { color: var(--muted); font-size: 12px; line-height: 18px; font-weight: 400; }
.mode .mark { width: 16px; height: 16px; border: 1.5px solid #c5c9c7; border-radius: 50%; display: inline-block; position: relative; font-style: normal; }
.mode.on { border: 1.5px solid var(--green); }
.mode.on .mark { border-color: var(--green); background: var(--green); }
.mode.on .mark::after { content: ""; position: absolute; left: 3px; top: 3px; width: 6px; height: 3px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg); }
.preview { height: 76px; border-radius: 12px; background: #f4f6f5; display: flex; align-items: center; }
.pv { flex: 1; text-align: center; }
.pv b { display: block; font-size: 22px; line-height: 28px; font-weight: 700; color: var(--text); }
.pv b.ok { color: var(--ok); }
.pv b.warn { color: var(--warn); }
.pv b.bad { color: var(--danger); }
.pv span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 16px; }
.split { width: 1px; height: 36px; background: #e1e4e3; flex: none; }
.warnbox, .dangerbox, .infobox { border-radius: 12px; padding: 12px; display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 18px; }
.warnbox { background: #fff6e4; color: #8a5a10; }
.warnbox .ico { color: #c47b12; width: 16px; height: 16px; margin-top: 1px; }
.warnbox .issue-list { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow: auto; }
.warnbox .issue-list b { font-weight: 600; }
.dangerbox { background: #fdecec; color: #a33b38; min-height: 44px; align-items: center; font-size: 13px; line-height: 20px; }
.dangerbox .ico { color: var(--danger); width: 16px; height: 16px; }
.infobox { background: #f0f5f2; color: #245c3a; min-height: 44px; align-items: center; font-size: 13px; }
.preview-list { max-height: 220px; overflow: auto; background: #fafafa; border-radius: 12px; padding: 10px 12px; color: var(--soft); font-size: 12px; line-height: 18px; display: flex; flex-direction: column; gap: 8px; }
.chg { display: flex; gap: 12px; align-items: baseline; }
.chg b { flex: none; min-width: 4em; color: var(--text); font-weight: 600; }
.chg span { color: var(--sub); word-break: break-all; }
.chg-note { color: #8a5a10; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); padding: 0 13px; font-size: 13px; }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.grid2 input, .account-card input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; }
.account-card { max-width: 460px; }
.account-card .primary { width: 100%; height: 44px; margin-top: 8px; }
.logs { border-radius: 16px; }
.logs table { width: 100%; border-collapse: collapse; }
.logs th, .logs td { height: 52px; padding: 8px 12px; border-bottom: 1px solid var(--line-2); text-align: left; font-size: 13px; vertical-align: middle; }
.logs th { background: #fafafa; color: var(--muted); font-size: 12px; font-weight: 400; }
.logs td { white-space: normal; color: var(--sub); }
.primary:disabled { background: #c5c9c7; cursor: not-allowed; }
.danger:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 1100px) {
  .login, .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .login-brand { min-height: 280px; }
  .cards, .modes { grid-template-columns: 1fr 1fr; }
  .dialog footer { align-items: flex-start; flex-direction: column; }
}

.release-card { max-width: 640px; }
.release-card label { display: block; margin: 16px 0 6px; font-size: 14px; font-weight: 650; }
.release-card input, .release-card textarea { width: 100%; border: 1px solid #e4e7e6; border-radius: 12px; padding: 12px 14px; background: #fff; font: inherit; font-size: 15px; }
.release-card textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.release-card input[type="file"] { padding: 10px 14px; }
.release-card .primary { margin-top: 18px; }
.release-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.release-actions .primary, .release-actions .ghost { margin-top: 0; }
.release-now { background: #f3f7f4; border-radius: 12px; padding: 14px 16px; }
.release-now b { display: block; font-size: 16px; }
.release-now span, .release-now p { display: block; margin: 6px 0 0; color: var(--muted); white-space: pre-wrap; line-height: 1.6; }
.release-now .release-link { word-break: break-all; }
.release-tip { margin-top: 8px; }

.campus-head { align-items: flex-start; }
.campus-head h2 { font-size: 28px; line-height: 36px; }
.campus-head .muted { margin-top: 6px; font-size: 13px; line-height: 20px; }
.campus-publish { height: 44px; padding: 0 22px; border-radius: 12px; }
.campus-tabs { display: flex; gap: 6px; }
.campus-tabs button { height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--soft); padding: 0 14px; font-weight: 600; }
.campus-tabs button.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(26, 29, 28, .06); }
.campus-msg { font-size: 13px; line-height: 20px; }
.campus-msg.ok { color: var(--ok); }
.campus-msg.bad { color: var(--danger); }
.campus-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.campus-card { background: #fff; border-radius: 20px; padding: 22px; }
.campus-label { margin-bottom: 14px; font-size: 15px; line-height: 22px; font-weight: 700; }
.audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.aud { min-height: 92px; border: 0; border-radius: 16px; background: #f3f5f4; color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px; }
.aud b { font-size: 16px; line-height: 22px; font-weight: 700; }
.aud span { font-size: 12px; line-height: 18px; color: var(--muted); font-weight: 400; }
.aud.on { background: var(--green); color: #fff; }
.aud.on span { color: rgba(255, 255, 255, .82); }
.pick-box { margin-top: 14px; }
.pick-box input, .notice-card input, .notice-card select, .notice-card textarea, .cell-dialog input, .cell-dialog select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; }
.pick-box input, .notice-card input, .notice-card select, .cell-dialog input, .cell-dialog select { height: 40px; padding: 0 12px; }
.notice-card textarea { min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.notice-card label, .cell-dialog label, .pick-box label { margin-top: 12px; }
.picked-teacher { margin-top: 8px; color: var(--green); font-size: 13px; font-weight: 600; }
.picked-teacher button { border: 0; background: transparent; color: var(--soft); font-weight: 600; padding: 0 0 0 8px; }
.teacher-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow: auto; }
.teacher-list button { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; padding: 8px 12px; display: flex; justify-content: space-between; gap: 12px; }
.teacher-list button.on { border-color: var(--green); background: #f3faf6; }
.teacher-list b { font-weight: 650; }
.teacher-list span, .teacher-list .muted { color: var(--muted); font-size: 12px; font-weight: 400; }
.grid-head { margin-top: 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid-head b { font-size: 14px; }
.grid-head > span, .week-field { color: var(--muted); font-size: 13px; font-weight: 400; }
.week-field { display: inline-flex; align-items: center; gap: 6px; }
.week-field input { width: 72px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: #fff; }
.timetable { background: #eef5f0; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.timetable > .tt-head, .timetable > .tt-row { display: grid; grid-template-columns: 88px repeat(5, minmax(0, 1fr)); gap: 8px; align-items: center; }
.tt-head { color: var(--muted); font-size: 13px; text-align: center; }
.tt-head span:first-child { text-align: left; }
.tt-time b { display: block; font-size: 14px; line-height: 18px; }
.tt-time span { display: block; color: var(--muted); font-size: 12px; line-height: 16px; }
.cell { min-height: 54px; border: 1px solid transparent; border-radius: 12px; background: #fff; color: var(--text); padding: 6px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.cell b { font-size: 14px; line-height: 18px; font-weight: 650; }
.cell span { min-height: 16px; color: var(--soft); font-size: 12px; line-height: 16px; }
.cell.empty b, .cell.empty span { display: none; }
.cell.empty { border-color: #e3eee8; }
.cell.empty::after { content: "+"; color: #c5ccc8; font-size: 18px; line-height: 1; }
.cell.class { background: #e3f6ea; }
.cell.meeting { background: #fff3d0; }
.cell:hover { outline: 2px solid rgba(15, 74, 44, .22); }
.phone-card { position: sticky; top: 88px; background: #fff; border-radius: 20px; padding: 16px; }
.phone-top { display: flex; align-items: center; justify-content: space-between; }
.phone-top b { font-size: 15px; }
.live { height: 22px; padding: 0 8px; border-radius: 20px; background: #eef6f1; color: #1c6844; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; }
.phone-hero { margin-top: 12px; background: var(--green); color: #fff; border-radius: 16px; padding: 16px; }
.phone-hero b { display: block; font-size: 18px; line-height: 26px; }
.phone-hero span { display: block; margin-top: 6px; color: rgba(255, 255, 255, .8); font-size: 12px; line-height: 18px; }
.phone-block { margin-top: 14px; }
.phone-k { margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.phone-lessons { display: flex; flex-direction: column; gap: 8px; }
.phone-lesson { border-radius: 12px; background: #e7f6ee; padding: 10px 12px; font-size: 13px; line-height: 18px; font-weight: 650; }
.phone-lesson.meeting { background: #fff3d0; }
.phone-empty { color: var(--muted); font-size: 13px; line-height: 20px; }
.phone-note { margin-top: 12px; background: #f3f6f4; color: var(--muted); border-radius: 12px; padding: 10px 12px; display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 18px; }
.phone-note .ico { width: 16px; height: 16px; color: #7d8a84; margin-top: 1px; }
.notice-card { max-width: 760px; }
.notice-card .primary { margin-top: 16px; }
.notice-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.notice-item { border-top: 1px solid var(--line-2); padding-top: 12px; }
.notice-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notice-item p { margin: 6px 0; white-space: pre-wrap; color: var(--sub); }
.tag.warn { background: #fff4e2; color: #8a5a10; }
.bell-card { max-width: 640px; }
.bell-list { display: flex; flex-direction: column; gap: 10px; }
.bell-row { display: grid; grid-template-columns: 72px 150px 24px 150px; gap: 10px; align-items: center; }
.bell-row input { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff; }
.dialog.cell-dialog { width: 480px; }
.cell-dialog .body { gap: 0; }
@media (max-width: 1100px) {
  .campus-layout, .audience { grid-template-columns: 1fr; }
  .phone-card { position: static; }
}

.nav-count { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e8f0ea; color: #00561f; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.routine-page { display: flex; flex-direction: column; gap: 16px; }
.routine-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.routine-head h2 { margin: 0; font-size: 26px; line-height: 34px; color: #122419; }
.routine-head p { margin: 4px 0 0; color: #6d7972; font-size: 13px; }
.routine-upload { height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: #00561f; color: #fff; font-weight: 600; }
.routine-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.routine-card { background: #fff; border: 1px solid #e4e8e6; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 176px; }
.routine-card.active { border: 1.5px solid #00561f; }
.routine-card .name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; color: #122419; }
.routine-card .meta, .routine-card .sub { color: #6d7972; font-size: 12px; line-height: 18px; }
.pill-on, .pill-off { border-radius: 10px; padding: 2px 8px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.pill-on { background: #00561f; color: #fff; }
.pill-off { background: #f1f3f2; color: #6d7972; }
.routine-actions { margin-top: auto; display: flex; gap: 8px; }
.routine-actions button, .routine-card > .solid { height: 36px; border-radius: 10px; font-weight: 600; }
.routine-actions .ghost { flex: 1; border: 1px solid #d5ddd8; background: #fff; color: #122419; }
.routine-actions .soft { flex: 1; border: 0; background: #e8f0ea; color: #00561f; }
.routine-card > .solid { width: 100%; border: 0; background: #00561f; color: #fff; }
.routine-steps, .routine-note { background: #fff; border-radius: 16px; padding: 18px; }
.routine-note { background: #e8f0ea; display: flex; gap: 8px; align-items: flex-start; color: #122419; font-size: 13px; line-height: 20px; }
.routine-note i { width: 18px; height: 18px; border-radius: 50%; background: #00561f; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 700; flex: none; }
.routine-steps h3 { margin: 0 0 14px; font-size: 16px; }
.routine-step { display: flex; gap: 12px; margin-top: 12px; }
.routine-step b { width: 28px; height: 28px; border-radius: 14px; background: #e8f0ea; color: #00561f; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.routine-step strong { display: block; color: #122419; }
.routine-step span { display: block; margin-top: 2px; color: #6d7972; font-size: 12px; line-height: 18px; }
.routine-file { display: none; }
@media (max-width: 1100px) { .routine-cards { grid-template-columns: 1fr 1fr; } }

.routine-card .name em { font-style: normal; }
.routine-note > div { min-width: 0; }
.routine-note .routine-error { display: block; margin-top: 6px; color: #c43732; font-weight: 600; }
.routine-note .routine-error:empty { display: none; }
.dialog footer .sub.routine-error { color: #c43732; }
.routine-dialog { width: 720px; }
.routine-table-wrap { max-height: 360px; overflow: auto; }
.routine-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.routine-table th, .routine-table td { padding: 8px 10px; border-bottom: 1px solid #e4e8e6; text-align: left; }
.routine-table th { color: #6d7972; font-size: 12px; font-weight: 600; }
.routine-issues { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.routine-issues li { color: #c43732; font-size: 13px; line-height: 18px; }
.routine-picks { display: flex; flex-direction: column; gap: 8px; }
.routine-picks button { height: 42px; border: 1px solid #d5ddd8; border-radius: 10px; background: #fff; color: #122419; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; }
.routine-picks em { font-style: normal; color: #6d7972; font-size: 12px; font-weight: 600; }
.routine-cards > .sub { grid-column: 1 / -1; }
.routine-dialog .primary:disabled, .routine-dialog .primary:disabled:hover { background: #c5c9c7; box-shadow: none; }
/* 视觉收束：同一套深绿、更轻的层次 */
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { background: var(--page); color: var(--text); }

.login-brand {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(460px 420px at 92% -8%, rgba(255,255,255,.18), transparent 68%),
    linear-gradient(165deg, #127a39 0%, #00561f 48%, #003816 100%);
}
.login-brand::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  left: -110px;
  bottom: -90px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  pointer-events: none;
}
.login-brand > * { position: relative; z-index: 1; }
.crest { box-shadow: 0 12px 28px rgba(0, 0, 0, .14); }
.login-main { background: linear-gradient(180deg, #f8fbf9 0%, #eef3f0 100%); }
.panel {
  width: 520px;
  background: #fff;
  border: 1px solid rgba(0, 86, 31, .06);
  border-radius: 28px;
  padding: 40px 36px 32px;
  box-shadow: 0 24px 60px rgba(18, 36, 25, .08);
}
.panel h2 { letter-spacing: -.03em; }
.field input { border-color: #e3eae6; transition: border-color .15s ease, box-shadow .15s ease; }
.field input:focus, .searchbox input:focus, .grid2 input:focus, .account-card input:focus, .release-card input:focus, .release-card textarea:focus, .toolbar select:focus, .notice-card input:focus, .notice-card select:focus, .notice-card textarea:focus, .cell-dialog input:focus, .cell-dialog select:focus, .bell-row input:focus, .week-field input:focus {
  outline: none;
  border-color: #7eae90;
  box-shadow: var(--ring);
}
.login .primary, .primary { box-shadow: 0 8px 16px rgba(0, 86, 31, .16); transition: background .15s ease, transform .12s ease, box-shadow .15s ease; }
.login .primary:hover, .primary:hover { background: #004818; }
.login .primary:active, .primary:active { transform: translateY(1px); }
.primary:disabled { box-shadow: none; }
.hint { min-height: 0; margin-top: 16px; padding: 14px 16px; border: 1px solid #d7e6dc; align-items: flex-start; }
.hint span { flex: 1; min-width: 0; line-height: 1.6; }

.side {
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 140px),
    #00561f;
}
.side nav { gap: 4px; }
.side nav button { transition: background .15s ease, color .15s ease; }
.side nav button:hover { background: rgba(255,255,255,.1); color: #fff; }
.side nav button:hover .ico { color: #fff; }
.side nav button.active { background: #246e3f; box-shadow: inset 3px 0 0 #d7f0e1; }
.avatar { background: rgba(255,255,255,.16); }
.me { border-top-color: rgba(255,255,255,.16); }

.top { height: 68px; border-bottom: 0; box-shadow: 0 1px 0 rgba(18, 36, 25, .06); }
#view { padding: 28px 32px 48px; gap: 18px; }
.head h2, .routine-head h2, .campus-head h2 { color: var(--text); letter-spacing: -.03em; }

.card, .sheet, .campus-card, .phone-card, .routine-card, .routine-steps, .dialog, .release-card, .account-card {
  border: 1px solid rgba(18, 36, 25, .06);
  box-shadow: var(--shadow);
}
.card { border-radius: 18px; padding: 20px 20px 18px; }
.card .v { letter-spacing: -.03em; }
.sheet, .logs, .routine-steps, .campus-card, .phone-card { border-radius: 18px; }
.toolbar { height: 72px; padding: 16px 18px; }
.searchbox input { background: #fff; border: 1px solid var(--line); transition: border-color .15s ease, box-shadow .15s ease; }
table.roster th, .logs th { background: #f6faf7; color: #66756d; font-weight: 600; }
table.roster tbody tr { transition: background .12s ease; }
table.roster tbody tr:hover td, .logs tbody tr:hover td { background: #f3faf6; }
.dot { background: var(--hint); color: var(--green); }
.tag { background: #e7f3ec; color: #1d6b40; }
.ghost, .edit, .del, .chip, .x { transition: background .15s ease, border-color .15s ease, color .15s ease; }
.ghost:hover { background: #f3faf6; border-color: #d3e0d8; }
.edit:hover { background: #e7eeea; }
.del:hover { background: #f8dddd; }
.x:hover { background: #e7eeea; color: var(--text); }

.mask { background: rgba(18, 36, 25, .42); }
.dialog { border-radius: 24px; box-shadow: 0 28px 80px rgba(18, 36, 25, .22); }
.drop { border-style: dashed; border-width: 1.5px; transition: background .15s ease, border-color .15s ease; }
.drop:hover { background: #eaf6ef; }
.mode { transition: border-color .15s ease, box-shadow .15s ease; }
.mode:hover { border-color: #b7d4c4; }
.cell { transition: transform .12s ease, outline-color .12s ease; }
.cell:hover { transform: translateY(-1px); }
.routine-upload, .campus-publish { box-shadow: 0 8px 16px rgba(0, 86, 31, .16); }
.routine-upload:hover, .campus-publish:hover { background: #004818; }
table.roster { min-width: 0; }


.tt { padding: 28px 32px 40px; }
.tt h1 { margin: 0; color: #00561f; font-size: 28px; line-height: 36px; font-weight: 700; }
.tt > .tt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tt-head .who { color: #8a948e; font-size: 13px; }
.tt-actions { display: flex; gap: 10px; }
.tt-actions button, .tt-foot button { height: 36px; border-radius: 18px; padding: 0 16px; font-weight: 600; }
.tt .solid { border: 0; background: #00561f; color: #fff; }
.tt .line { border: 1px solid #00561f; background: #fff; color: #00561f; }
.tt .ghost { border: 1px solid #d5ddd6; background: #fff; color: #3d4a43; }
.tt-stats { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tt-stat, .tt-card { background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(18, 36, 25, .04); }
.tt-stat { min-height: 92px; padding: 16px 18px; display: flex; gap: 12px; align-items: center; }
.tt-stat i { width: 36px; height: 36px; border-radius: 12px; background: #e8f0ea; color: #00561f; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; }
.tt-stat span { display: block; color: #6e7772; font-size: 13px; }
.tt-stat b { display: block; margin-top: 2px; font-size: 28px; line-height: 32px; }
.tt-stat.warn b { color: #e0922a; }
.tt-card { margin-top: 14px; padding: 18px 20px; }
.tt-card h2 { margin: 0 0 12px; font-size: 16px; }
.tt-term { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.tt-term p { margin: 0; color: #6e7772; font-size: 13px; line-height: 22px; }
.tt-term strong { color: #1b2420; font-size: 16px; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; background: #e8f0ea; color: #00561f; font-size: 12px; font-weight: 600; }
.pill.warn { background: #fff4de; color: #a9782a; }
.pill.bad { background: #fdecee; color: #e45464; }
.pill.muted { background: #f1f3f1; color: #6e7772; }
.issue { display: flex; align-items: center; gap: 10px; min-height: 52px; border-top: 1px solid #eef3f0; }
.issue:first-of-type { border-top: 0; }
.issue span { flex: 1; }
.issue-k { margin-left: auto; color: #8a948e; font-size: 12px; }
.tt-msg { margin-top: 12px; color: #e45464; }
.tt-kpis { margin-top: 16px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tt-kpi { border-radius: 14px; padding: 14px 16px; background: #eef3f0; }
.tt-kpi b { display: block; font-size: 28px; line-height: 32px; }
.tt-kpi span { color: #6e7772; font-size: 13px; }
.tt-kpi.add { background: #e8f0ea; color: #00561f; }
.tt-kpi.change { background: #fff6e8; color: #c47a12; }
.tt-kpi.same { background: #f1f3f1; }
.tt-kpi.bad, .tt-kpi.remove { background: #fdecee; color: #e45464; }
.tt-note { margin-top: 12px; background: #e8f0ea; color: #3e6b52; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.tt table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.tt th { text-align: left; color: #6e7772; font-weight: 600; background: #f7faf8; padding: 10px 12px; }
.tt td { padding: 12px; border-top: 1px solid #eef3f0; vertical-align: middle; }
.tt-foot { margin-top: 16px; display: flex; justify-content: flex-end; gap: 10px; }
.grid-tools { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: #6e7772; }
.grid-tools select { height: 34px; border: 1px solid #d5ddd6; border-radius: 10px; background: #fff; padding: 0 10px; }
.grid-tools .term { margin-left: auto; }
.sheet { margin-top: 12px; background: #fff; border-radius: 16px; overflow: auto; }
.sheet table { margin: 0; }
.sheet th.day { background: #f3f7f4; color: #1b2420; text-align: center; }
.sheet td.cell { text-align: center; min-width: 110px; }
.sheet td.cell b, .sheet td.cell span { display: block; }
.sheet td.cell span { color: #6e7772; font-size: 12px; }
.sheet td.miss { background: #fff6e4; }
.sheet td.period { width: 110px; color: #6e7772; }
.sheet td.period b { display: block; color: #1b2420; }
.sheet-note { padding: 10px 14px; color: #6e7772; font-size: 12px; }
.routine-layout { margin-top: 8px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.slot { display: flex; align-items: center; gap: 12px; min-height: 58px; border-top: 1px solid #eef3f0; }
.slot:first-child { border-top: 0; }
.slot em { width: 28px; height: 28px; border-radius: 8px; background: #e8f0ea; color: #00561f; display: flex; align-items: center; justify-content: center; font-style: normal; }
.slot input { width: 92px; height: 32px; border: 1px solid #e4ebe7; border-radius: 8px; padding: 0 8px; }
.slot .grow { flex: 1; font-weight: 600; }
.slot .flag { margin-left: auto; color: #e0922a; font-size: 12px; font-weight: 600; }
.ver { border: 1px solid #e4ebe7; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.ver.on { border: 2px solid #00561f; }
.ver b { color: #00561f; }
.ver span { color: #6e7772; font-size: 13px; }
.ver .ops { margin-left: auto; display: flex; gap: 8px; }
.hint-box { background: #e8f0ea; color: #3e6b52; border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.empty-tt { padding: 28px 8px; color: #6e7772; }
@media (max-width: 1100px) {
  .tt-stats, .tt-kpis, .routine-layout { grid-template-columns: 1fr 1fr; }
}

.import-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; margin-bottom: 14px; border: 1px dashed #b7c9be; border-radius: 14px; background: #f7fbf8; }
.import-strip b { display: block; margin-bottom: 4px; }
.import-strip span { color: var(--sub); font-size: 13px; line-height: 20px; }
.import-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; }

.sheet.class-sheet { border: 1px solid #e4ebe6; border-radius: 18px; overflow: auto; background: #fff; }
.sheet table.class-grid { width: 100%; min-width: 760px; table-layout: fixed; border-collapse: collapse; background: #fff; }
.sheet table.class-grid th, .sheet table.class-grid td { display: table-cell; min-width: 0; padding: 12px 8px; text-align: center; border: 0; border-bottom: 1px solid #e6eeea; vertical-align: middle; background: #fff; word-break: break-word; }
.sheet table.class-grid th { color: #00561f; font-size: 14px; font-weight: 650; }
.sheet table.class-grid th.when, .sheet table.class-grid td.when { width: 112px; background: #f4f5f2; }
.sheet table.class-grid th.when { color: #6e7772; font-weight: 500; }
.sheet table.class-grid th.mon { background: #e7f0e4; }
.sheet table.class-grid td.when b, .sheet table.class-grid td.day-cell b, .sheet table.class-grid td.slot-name b { display: block; color: #1b2420; font-size: 14px; line-height: 19px; font-weight: 650; }
.sheet table.class-grid td.when span, .sheet table.class-grid td.day-cell span, .sheet table.class-grid td.slot-name span { display: block; margin-top: 2px; color: #6e7772; font-size: 12px; line-height: 16px; font-weight: 400; }
.sheet table.class-grid td.editable { cursor: pointer; }
.sheet table.class-grid td.editable:hover { background: #f3f8f4; }
.sheet table.class-grid th span { display: block; margin-top: 2px; color: #6e7772; font-size: 12px; font-weight: 500; }
.sheet table.class-grid td.miss { background: #fff3dc; }
.sheet table.class-grid td.miss b, .sheet table.class-grid td.miss span { color: #e39a16; }
.sheet table.class-grid tr.day-span td { background: #eef3ea; color: #3d4a42; font-size: 13px; font-weight: 650; padding: 8px 12px; }
.sheet.class-sheet .sheet-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px; background: #f7f8f6; color: #6e7772; font-size: 13px; line-height: 18px; }
.sheet.class-sheet .sheet-note .ico { width: 16px; height: 16px; color: #00561f; }
.preview-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 12px; }
.preview-line .ghost { height: 40px; padding: 0 12px; white-space: nowrap; }
.preview-line input { flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; }
.preview-line .primary { height: 40px; padding: 0 16px; }
.preview-who { margin: 8px 0; color: #00561f; font-weight: 650; }
.preview-empty { margin: 8px 0 4px; }
.teacher-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.teacher-picks button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 180px; border: 1px solid #d7e3db; border-radius: 12px; background: #fff; padding: 8px 12px; text-align: left; cursor: pointer; }
.teacher-picks button b { color: #1b2420; font-size: 14px; }
.teacher-picks button span { color: #6e7772; font-size: 12px; }
.teacher-picks button:hover { background: #f3f8f4; }
button.teacher-slot { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
button.teacher-slot:hover b { color: #00561f; }
.teacher-lessons { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 18px; }
.teacher-line { display: block; width: 100%; border: 1px solid #e4ebe6; border-radius: 10px; background: #fff; padding: 10px 12px; text-align: left; color: #1b2420; font-size: 14px; cursor: pointer; }
.teacher-line.static { cursor: default; }
.teacher-line:hover { background: #f3f8f4; }
.teacher-lessons .muted { margin: 0; }
.edit-block + .edit-block { margin-top: 28px; padding-top: 22px; border-top: 1px solid #e6eeea; }
.edit-block h3 { margin: 0 0 6px; font-size: 18px; line-height: 26px; color: #1b2420; }
.edit-block > .muted { margin: 0 0 12px; }
.sheet table.class-grid.teacher-week { min-width: 920px; }
.sheet table.class-grid.teacher-week td.day-cell { vertical-align: top; text-align: left; }
.sheet table.class-grid th.when, .sheet table.class-grid td.when { position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 #e6eeea; }
.sheet table.class-grid td.when b { color: #00561f; }
.lesson-card { display: block; margin: 0 0 6px; padding: 8px; border: 1px solid #d5e6da; border-radius: 10px; background: #f4faf6; text-align: left; cursor: pointer; user-select: none; }
.lesson-card:hover { border-color: #8fbf9e; background: #e8f5ec; }
.lesson-add { display: block; margin-top: 2px; padding: 8px; border: 1px dashed #b7c9be; border-radius: 10px; color: #6e7772; font-size: 12px; line-height: 16px; text-align: center; cursor: pointer; user-select: none; }
.lesson-add.more { margin-top: 0; padding: 2px 4px; border: 0; background: transparent; text-align: left; }
.lesson-add:hover { background: #f7fbf8; color: #00561f; }
.sheet table.class-grid td.day-cell { user-select: none; }
.sheet table.class-grid td.day-cell.empty em { color: #8a938e; font-size: 12px; font-style: normal; }
.edit-facts { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 6px 10px; margin-bottom: 12px; font-size: 14px; line-height: 20px; }
.edit-facts b { color: #6e7772; font-weight: 500; }
.edit-warn { margin-top: 12px; background: #fff6e8; color: #8a5a12; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 20px; }
.edit-warn p { margin: 0 0 6px; }
.edit-warn p:last-child { margin: 0; }
.edit-warn.bad { background: #fdecee; color: #a33b42; }
.slot-names { margin-top: 8px; }
.slot-names:empty { display: none; }
.slot-modes { display: flex; gap: 8px; margin-bottom: 12px; }
.slot-modes button { height: 36px; border: 0; border-radius: 10px; padding: 0 14px; background: #eef3f0; color: #3d4a43; cursor: pointer; }
.slot-modes button.on { background: #00561f; color: #fff; }
.teacher-summary { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #f4faf6; color: #1b2420; font-size: 14px; line-height: 22px; }
.swap-lessons { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; max-height: 360px; overflow: auto; }
.swap-lessons button { display: block; width: 100%; border: 1px solid #d7e3db; border-radius: 10px; background: #fff; padding: 8px 12px; text-align: left; color: #1b2420; cursor: pointer; }
.swap-lessons button.on { border-color: #00561f; background: #e8f5ec; }
.swap-lessons .muted { margin: 0; }
.swap-group { margin: 2px 0 0; color: #6e7772; font-size: 12px; line-height: 18px; }
.swap-here { border: 1px solid #e4d7b0; border-radius: 10px; background: #fff8e8; padding: 8px 12px; color: #6b5a2e; }
.slot-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.slot-picks label { margin-top: 0; }
.dialog .ghost:disabled, .dialog .primary:disabled { opacity: .45; cursor: not-allowed; }


.monitor { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.monitor-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.monitor-tabs button { height: 36px; border: 0; border-radius: 10px; padding: 0 14px; background: #eef3f0; color: #3d4a43; }
.monitor-tabs button.active { background: #00561f; color: #fff; }
.monitor-tabs span { color: var(--muted); font-size: 12px; }
.monitor-side { background: #fff; border-radius: 16px; padding: 8px; max-height: 70vh; overflow: auto; }
.monitor-side button { width: 100%; border: 0; background: transparent; border-radius: 12px; padding: 10px 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.monitor-side button b { font-size: 13px; }
.monitor-side button span { color: var(--muted); font-size: 12px; font-weight: 400; }
.monitor-side button.active { background: #e8f0ea; }
.monitor-row { cursor: pointer; }
.monitor-extra pre { margin: 0; white-space: pre-wrap; word-break: break-word; background: #f7f8f6; border-radius: 12px; padding: 12px; color: #1b2420; font: 12px/1.6 Consolas, "Microsoft YaHei", monospace; }
@media (max-width: 1100px) { .monitor { grid-template-columns: 1fr; } }

.monitor-tabs button.go { background: #00561f; color: #fff; }
.monitor-tabs button.danger { background: #fdecee; color: #c4474f; }

