:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #fff;
  --ink: #1e293b;
  --muted: #718096;
  --line: #e8ecf3;
  --primary: #405cf5;
  --primary-dark: #3146cf;
  --soft-primary: #eef1ff;
  --green: #16a36a;
  --soft-green: #e8f8f0;
  --orange: #f08a3c;
  --soft-orange: #fff3e8;
  --red: #d9536f;
  --soft-red: #fff0f3;
  --shadow: 0 12px 32px rgba(38, 56, 94, .07);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
#app { min-height: 100vh; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .9fr) 1.1fr; background: #fff; }
.auth-hero { padding: 72px clamp(48px, 8vw, 140px); background: linear-gradient(145deg, #eef2ff 0%, #fafbff 52%, #fdf3ed 100%); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-hero:before, .auth-hero:after { content: ""; position: absolute; border-radius: 999px; filter: blur(2px); opacity: .7; }
.auth-hero:before { width: 360px; height: 360px; right: -80px; top: -80px; background: #dce3ff; }
.auth-hero:after { width: 300px; height: 300px; left: -130px; bottom: -120px; background: #ffe8d8; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .03em; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, #6478ff, #405cf5); color: white; display: grid; place-items: center; font-size: 19px; box-shadow: 0 9px 18px rgba(64, 92, 245, .25); }
.brand-name { font-size: 18px; }
.hero-copy { position: relative; z-index: 1; margin-top: 78px; max-width: 520px; }
.hero-copy h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.12; letter-spacing: -.05em; margin: 0 0 20px; }
.hero-copy p { font-size: 17px; color: #61708a; line-height: 1.8; max-width: 430px; margin: 0; }
.hero-note { position: relative; z-index: 1; margin-top: 80px; color: #76849c; font-size: 12px; }
.auth-panel { display: grid; place-items: center; padding: 32px; }
.auth-card { width: min(420px, 100%); }
.auth-card h2 { font-size: 30px; margin: 0 0 10px; letter-spacing: -.04em; }
.auth-card > p { color: var(--muted); margin: 0 0 32px; line-height: 1.6; }
.field { margin-bottom: 17px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 8px; color: #475569; }
.input, select, textarea { width: 100%; border: 1px solid var(--line); background: #fbfcfe; border-radius: 11px; color: var(--ink); padding: 12px 13px; outline: none; transition: .18s border, .18s box-shadow; }
.input:focus, select:focus, textarea:focus { border-color: #8e9bff; box-shadow: 0 0 0 4px rgba(64, 92, 245, .1); background: #fff; }
textarea { min-height: 90px; resize: vertical; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.btn { border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 700; transition: .18s transform, .18s background, .18s opacity; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 7px 16px rgba(64, 92, 245, .2); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #f2f4f8; color: #536176; }
.btn-ghost:hover { background: #e9edf4; }
.btn-danger { color: var(--red); background: var(--soft-red); }
.btn-small { padding: 8px 11px; font-size: 12px; border-radius: 8px; }
.form-error { color: var(--red); min-height: 20px; margin: 5px 0 12px; line-height: 1.5; }
.dev-code { padding: 10px 12px; background: var(--soft-orange); color: #a85d18; border-radius: 9px; margin: 0 0 16px; font-size: 13px; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 244px; background: #fff; border-right: 1px solid var(--line); padding: 25px 14px 18px; display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar .brand { padding: 0 11px 34px; }
.nav-label { color: #a5afbf; font-size: 11px; letter-spacing: .1em; font-weight: 800; padding: 0 12px 9px; }
.nav { display: grid; gap: 5px; }
.nav-btn { background: none; border: 0; padding: 12px; display: flex; align-items: center; gap: 11px; width: 100%; color: #718096; border-radius: 10px; text-align: left; font-weight: 600; }
.nav-btn:hover { background: #f7f8fb; color: var(--ink); }
.nav-btn.active { background: var(--soft-primary); color: var(--primary); }
.nav-icon { width: 18px; text-align: center; font-size: 16px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 16px 9px 0; }
.user-mini { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #e8ecff; color: var(--primary); font-weight: 800; }
.user-mini strong { font-size: 13px; display: block; }
.user-mini span { color: var(--muted); font-size: 11px; }
.main { flex: 1; min-width: 0; }
.topbar { height: 76px; background: rgba(255,255,255,.85); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 38px; position: sticky; top: 0; z-index: 5; backdrop-filter: blur(10px); }
.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: var(--ink); margin-left: 7px; }
.topbar-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--soft-green); }
.content { padding: 34px 38px 56px; max-width: 1440px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 25px; }
.page-head h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.04em; }
.page-head p { margin: 0; color: var(--muted); }
.head-actions { display: flex; gap: 9px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.stat-card { padding: 20px; position: relative; overflow: hidden; }
.stat-card:after { content: ""; position: absolute; right: -25px; bottom: -42px; width: 110px; height: 110px; background: var(--soft-primary); border-radius: 50%; opacity: .7; }
.stat-card:nth-child(2):after { background: var(--soft-green); }
.stat-card:nth-child(3):after { background: var(--soft-orange); }
.stat-card:nth-child(4):after { background: #f2eaff; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 700; position: relative; z-index: 1; }
.stat-value { font-size: 31px; font-weight: 800; margin-top: 10px; letter-spacing: -.04em; position: relative; z-index: 1; }
.stat-foot { color: #95a0b2; font-size: 11px; margin-top: 8px; position: relative; z-index: 1; }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.panel { overflow: hidden; }
.panel-head { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 15px; }
.panel-head span { color: var(--muted); font-size: 12px; }
.panel-body { padding: 20px; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.quick-btn { border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 16px; text-align: left; color: var(--ink); }
.quick-btn:hover { border-color: #a9b3ff; background: #fafbff; }
.quick-btn b { display: block; margin-bottom: 6px; }
.quick-btn span { color: var(--muted); font-size: 12px; }
.table-panel { margin-top: 4px; }
.toolbar { padding: 14px 17px; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.search { max-width: 290px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 15px 17px; text-align: left; border-bottom: 1px solid #f0f2f6; white-space: nowrap; }
th { background: #fbfcfe; font-size: 11px; color: #8b96a8; text-transform: uppercase; letter-spacing: .05em; }
td { font-size: 13px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfdff; }
.primary-text { font-weight: 700; color: #334155; }.link-button { border: 0; padding: 0; background: transparent; color: #4054cb; cursor: pointer; font: inherit; font-weight: 700; } .link-button:hover { color: #2639ad; text-decoration: underline; } .birthday-names, .dashboard-student-names { position:relative; z-index:1; line-height:1.8; max-height:44px; overflow:auto; } .birthday-name, .unpaid-student-name { font-size:11px; } .unpaid-student-name { color:#b7671c; } .unpaid-student-name:hover { color:#914b0c; } .student-class-links { display: flex; flex-wrap: wrap; gap: 4px 8px; white-space: normal; max-width: 260px; }
.secondary-text { color: var(--muted); font-size: 12px; margin-top: 4px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 700; }
.badge-green { color: #138355; background: var(--soft-green); }
.badge-orange { color: #a85d18; background: var(--soft-orange); }
.badge-gray { color: #657187; background: #eef1f5; }
.badge-blue { color: #4054cb; background: var(--soft-primary); }
.empty { padding: 52px 20px; color: var(--muted); text-align: center; }
.empty b { display: block; color: #59677e; font-size: 15px; margin-bottom: 7px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(21, 30, 49, .42); display: grid; place-items: center; padding: 20px; z-index: 20; }
.modal { width: min(620px, 100%); max-height: min(770px, calc(100vh - 40px)); overflow: auto; background: #fff; border-radius: 17px; box-shadow: 0 25px 70px rgba(25, 34, 60, .23); }
.modal-head { display: flex; justify-content: space-between; padding: 22px 24px 16px; align-items: center; }
.modal-head h2 { margin: 0; font-size: 19px; }
.modal-close { border: 0; background: #f3f5f8; color: #718096; width: 30px; height: 30px; border-radius: 8px; }
.modal-body { padding: 0 24px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); padding: 15px 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
.form-grid .full { grid-column: 1 / -1; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.detail-item { padding: 14px; background: #f8f9fc; border-radius: 11px; }
.detail-item small { display: block; color: var(--muted); margin-bottom: 5px; }
.detail-item strong { font-size: 17px; }
.toast { position: fixed; right: 25px; bottom: 25px; padding: 12px 16px; border-radius: 10px; color: #fff; background: #28344a; box-shadow: 0 10px 30px rgba(20,30,50,.2); z-index: 40; animation: toast-in .2s ease-out; max-width: 360px; }
.toast.error { background: #b83f5a; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.loading { color: var(--muted); padding: 30px; text-align: center; }
.mobile-menu { display: none; }
@media (max-width: 1000px) { .auth-layout { grid-template-columns: 1fr; } .auth-hero { display: none; } .dashboard-grid { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .sidebar { width: 72px; padding: 20px 8px; } .sidebar .brand { padding: 0 7px 30px; } .brand-name, .nav-btn span:not(.nav-icon), .sidebar-foot .user-mini > div, .sidebar-foot .btn { display: none; } .nav-btn { justify-content: center; padding: 12px 8px; } .sidebar-foot { padding-left: 5px; padding-right: 5px; } .user-mini { justify-content: center; } .topbar { padding: 0 18px; } .topbar-meta { display: none; } .content { padding: 25px 16px 45px; } .page-head { align-items: stretch; flex-direction: column; } .head-actions { justify-content: flex-start; } .stats { gap: 10px; } .stat-card { padding: 15px; } .stat-value { font-size: 25px; } .form-grid { grid-template-columns: 1fr; } .form-grid .full { grid-column: auto; } }

.schedule-context { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; background: #f8f9fc; border-radius: 12px; margin-bottom: 16px; }
.schedule-rules { display: grid; gap: 10px; }
.schedule-rule { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.schedule-rule-main { min-width: 0; }
.schedule-rule-title { color: #334155; font-size: 14px; }
.schedule-rule-title strong { color: var(--primary); margin-left: 6px; }
.schedule-rule-actions { display: flex; gap: 7px; flex-shrink: 0; }
.schedule-form-panel { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.schedule-form-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-weight: 700; color: #334155; }
.schedule-form-actions { display: flex; align-items: center; gap: 7px; }
@media (max-width: 560px) { .schedule-context, .schedule-rule { align-items: stretch; flex-direction: column; } .schedule-rule-actions { justify-content: flex-end; } }

.tag-list{display:flex;flex-wrap:wrap;gap:5px;align-items:center}.tag-chip{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;background:var(--soft-blue,#eef4ff);color:var(--blue,#3157a6);font-size:12px;white-space:nowrap}.toolbar-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.toolbar-row .search{flex:1;min-width:220px}.toolbar-row select{width:auto;min-width:170px}.panel .panel{box-shadow:none;background:var(--surface,#fff)}

/* 班级详情：桌面后台与 App 的班级资料、排课、考勤和学员管理统一展示。 */
.detail-toolbar { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.detail-toolbar h3 { margin:0 0 5px; color:#25324a; font-size:20px; }
.detail-toolbar p { margin:0; }
.detail-section { margin-top:20px; padding-top:20px; border-top:1px solid var(--line); }
.section-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:11px; color:#334155; }
.detail-card { display:flex; flex-direction:column; gap:9px; padding:15px; border:1px solid var(--line); border-radius:12px; background:#fbfcfe; color:#526076; font-size:13px; }
.detail-card > b { color:#334155; font-size:14px; }
.detail-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 0; border-bottom:1px solid var(--line); color:#46536a; }
.detail-row:last-child { border-bottom:0; }
.detail-row small { display:block; }
.student-list { border:1px solid var(--line); border-radius:12px; padding:0 13px; margin-bottom:12px; }
.warning-text { color:#b65d18; }
@media (max-width: 560px) { .detail-grid { grid-template-columns:1fr; } .detail-toolbar, .section-title, .detail-row { align-items:stretch; flex-direction:column; } .detail-toolbar > .btn, .detail-row > .btn { align-self:flex-end; } }
.order-stats { margin: 0 0 18px; }
.order-actions { white-space: nowrap; }
.mapping-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.mapping-list { display:grid; gap:9px; }
.mapping-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:13px 14px; border:1px solid var(--line); border-radius:11px; background:#fbfcfe; }
.mapping-row b { color:#334155; }
@media (max-width: 900px) { .order-actions { white-space:normal; } }
@media (max-width: 560px) { .mapping-toolbar, .mapping-row { align-items:stretch; flex-direction:column; } .mapping-row > div:last-child { align-self:flex-end; } }

/* By Kids 作品管理：按班级查看学员名单，并在 COS 上维护照片。 */
.by-kids-summary { display:flex; align-items:center; gap:0; margin-bottom:18px; padding:16px 18px; background:#fff; border:1px solid var(--line); border-radius:15px; box-shadow:var(--shadow); }
.by-kids-summary-item { min-width:110px; padding-right:22px; margin-right:22px; border-right:1px solid var(--line); }
.by-kids-summary-item b { display:block; font-size:23px; letter-spacing:-.04em; }
.by-kids-summary-item span { display:block; margin-top:4px; color:var(--muted); font-size:12px; }
.by-kids-summary-note { color:var(--muted); font-size:12px; }
.by-kids-class-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.by-kids-class-card { padding:18px; background:#fff; border:1px solid var(--line); border-radius:15px; box-shadow:var(--shadow); }
.by-kids-class-head, .by-kids-student-head, .by-kids-class-meta, .by-kids-photo-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.by-kids-class-title { font-size:16px; font-weight:800; margin-bottom:5px; }
.by-kids-class-meta { margin:16px 0 10px; color:var(--muted); font-size:12px; }
.by-kids-roster-preview { min-height:96px; display:flex; flex-wrap:wrap; align-content:flex-start; gap:7px; padding:12px; margin-bottom:14px; background:#f8f9fc; border-radius:11px; }
.by-kids-student-link { border:0; padding:7px 9px; background:#fff; border-radius:8px; color:#405cf5; font-size:12px; text-align:left; }
.by-kids-student-link:hover { background:var(--soft-primary); }
.by-kids-student-link small { display:block; color:var(--muted); margin-top:2px; }
.by-kids-modal-context { display:flex; justify-content:space-between; gap:12px; padding:12px 14px; background:#f8f9fc; border-radius:11px; color:#526076; font-size:12px; }
.by-kids-student-list { display:grid; gap:14px; margin-top:16px; }
.by-kids-student-card { padding:14px; border:1px solid var(--line); border-radius:13px; background:#fff; scroll-margin-top:10px; }
.by-kids-student-card.is-focus { border-color:#9ba8ff; box-shadow:0 0 0 3px var(--soft-primary); }
.by-kids-student-head b { margin-right:8px; color:#25324a; }
.by-kids-upload-label { position:relative; overflow:hidden; }
.by-kids-upload-label input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.by-kids-upload-label.is-loading { opacity:.6; pointer-events:none; }
.by-kids-photo-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:12px; }
.by-kids-photo-item { overflow:hidden; border:1px solid var(--line); border-radius:10px; background:#fbfcfe; }
.by-kids-photo-item img { display:block; width:100%; aspect-ratio:1; object-fit:cover; background:#eef1f6; }
.by-kids-photo-foot { padding:7px 8px; color:var(--muted); font-size:11px; }
.by-kids-photo-foot .btn { padding:5px 7px; font-size:11px; }
.by-kids-photo-empty { grid-column:1/-1; padding:22px; border:1px dashed #cfd6e3; border-radius:9px; text-align:center; color:var(--muted); font-size:12px; }
@media (max-width:1100px) { .by-kids-class-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px) { .by-kids-summary { align-items:flex-start; flex-wrap:wrap; gap:14px; } .by-kids-summary-item { min-width:80px; padding-right:12px; margin-right:0; } .by-kids-summary-note { width:100%; } .by-kids-class-grid { grid-template-columns:1fr; } .by-kids-photo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .by-kids-modal-context { align-items:flex-start; flex-direction:column; } }

/* 学员 Excel 批量导入 */
.badge-red { color:#b83f5a; background:var(--soft-red); }
.modal-wide { width:min(1040px, 100%); }
.import-steps { display:flex; align-items:center; gap:8px; margin:0 0 18px; }
.import-steps span { flex:1; padding:9px 12px; border-radius:9px; background:#f1f3f7; color:var(--muted); text-align:center; font-size:12px; font-weight:700; }
.import-steps span.active { background:var(--soft-primary); color:var(--primary); }
.import-dropzone { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; min-height:160px; padding:24px; border:2px dashed #cbd2df; border-radius:14px; background:#fafbfe; color:#40506a; cursor:pointer; }
.import-dropzone:hover { border-color:#8592f7; background:#f8f9ff; }
.import-dropzone span { color:var(--muted); font-size:12px; }
.import-dropzone input { margin-top:9px; max-width:100%; }
.import-tip, .import-preview-note { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-top:14px; padding:13px 15px; border-radius:11px; background:#f5f7fb; color:#657187; font-size:12px; }
.import-tip b, .import-preview-note b { color:#40506a; white-space:nowrap; }
.import-preview-note.import-success { background:var(--soft-green); color:#138355; }
.import-summary { display:grid; grid-template-columns:repeat(5, 1fr); gap:10px; margin-bottom:14px; }
.import-summary > div { padding:13px; border:1px solid var(--line); border-radius:11px; background:#fbfcfe; text-align:center; }
.import-summary b { display:block; color:#334155; font-size:22px; }
.import-summary span { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
.import-preview-table { max-height:430px; overflow:auto; margin-top:14px; border:1px solid var(--line); border-radius:11px; }
.import-preview-table table { min-width:900px; }
.import-preview-table th { position:sticky; top:0; z-index:1; }
.import-preview-table th, .import-preview-table td { padding:11px 13px; }
.import-preview-table td { vertical-align:top; }
.import-preview-table .import-message { max-width:290px; white-space:normal; line-height:1.5; }
.import-row-error { background:#fff8fa; }
.import-row-warning { background:#fffaf4; }
@media (max-width:720px) { .import-summary { grid-template-columns:repeat(2, 1fr); } .import-steps span { padding:8px 5px; } .import-tip, .import-preview-note { flex-direction:column; gap:5px; } }

/* 2026-09 班级排序、批量选人、补考勤、By Kids 标签 */
.drag-handle { display:inline-flex; align-items:center; justify-content:center; width:26px; height:28px; border-radius:7px; color:#7b879c; cursor:grab; user-select:none; font-weight:900; letter-spacing:-3px; }
.drag-handle:hover { color:var(--primary); background:var(--soft-primary); }
.drag-handle.disabled { opacity:.35; cursor:not-allowed; }
tr.is-dragging { opacity:.45; }
tr.drag-over td { border-top:2px solid var(--primary); }
.picker-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 0 8px; color:var(--muted); font-size:12px; }
.student-picker-list { max-height:390px; overflow:auto; display:grid; gap:7px; padding:4px; border:1px solid var(--line); border-radius:12px; background:#fafbfe; }
.student-picker-item { display:flex; align-items:center; gap:11px; padding:10px 12px; border-radius:9px; background:#fff; cursor:pointer; }
.student-picker-item:hover { background:var(--soft-primary); }
.student-picker-item span { min-width:0; }
.student-picker-item b, .student-picker-item small { display:block; }
.student-picker-item small { margin-top:3px; color:var(--muted); }
.guardian-detail-item .row-actions { display:flex; gap:7px; flex-shrink:0; }
.by-kids-photo-foot { display:grid; grid-template-columns:1fr auto; gap:7px; align-items:center; }
.by-kids-photo-foot .by-kids-category { grid-column:1/-1; padding:6px 8px; height:auto; font-size:11px; }
.attendance-roster { display:grid; gap:8px; margin-top:14px; max-height:440px; overflow:auto; }
.attendance-row { display:grid; grid-template-columns:minmax(90px,1fr) 120px minmax(150px,2fr); gap:9px; align-items:center; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; }
@media (max-width:720px) { .attendance-row { grid-template-columns:1fr 110px; } .attendance-row [data-attendance-note] { grid-column:1/-1; } .guardian-detail-item { align-items:flex-start !important; flex-direction:column; } }

/* 活动封面上传及班级详情中的学员入口。 */
.activity-cover-thumb { display:block; width:88px; height:58px; object-fit:cover; border-radius:8px; border:1px solid var(--line); background:#f6f8fb; }
.activity-cover-preview { display:block; width:180px; height:112px; object-fit:cover; border-radius:10px; border:1px solid var(--line); background:#f6f8fb; flex-shrink:0; }
.activity-cover-empty { display:grid; place-items:center; color:var(--muted); font-size:12px; text-align:center; padding:8px; }
.activity-cover-upload { display:flex; align-items:center; gap:14px; }
.activity-cover-upload > div { flex:1; min-width:0; }
.activity-cover-upload small { display:block; margin-top:7px; line-height:1.5; }
.student-name-link { appearance:none; border:0; padding:0; background:transparent; color:var(--primary); font:inherit; font-weight:700; cursor:pointer; text-align:left; }
.student-name-link:hover { text-decoration:underline; }
@media (max-width:560px) { .activity-cover-upload { align-items:stretch; flex-direction:column; } .activity-cover-preview { width:100%; height:180px; } }


/* 2026-09-12 班级标签分组卡片与学员班级筛选 */
.class-management-panel { overflow:visible; }
.class-card-panel-body { padding:16px; }
.class-groups { display:grid; gap:20px; }
.class-group { min-width:0; }
.class-group-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:11px; }
.class-group-head h3 { margin:0; color:#334155; font-size:16px; }
.class-group-head span { display:block; margin-top:4px; color:var(--muted); font-size:12px; }
.class-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; min-height:20px; }
.class-card { position:relative; min-width:0; display:flex; flex-direction:column; border:1px solid var(--line); border-radius:13px; background:#fff; box-shadow:0 5px 16px rgba(38,56,94,.05); transition:.18s border-color,.18s box-shadow,.18s transform; outline:none; cursor:pointer; }
.class-card:hover, .class-card:focus-visible { transform:translateY(-2px); border-color:#aeb7ff; box-shadow:0 12px 28px rgba(64,92,245,.1); }
.class-card.is-selected { border-color:#8997ff; box-shadow:0 0 0 3px var(--soft-primary); }
.class-card.is-dragging { opacity:.42; transform:scale(.98); }
.class-card.drag-over { border-color:var(--primary); box-shadow:0 0 0 3px var(--soft-primary); }
.class-card-top { display:flex; align-items:center; gap:9px; padding:10px 12px 0; }
.class-card-top .drag-handle { width:24px; height:24px; }
.class-card-top h4 { min-width:0; margin:0; color:#263247; font-size:18px; line-height:1.35; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.class-card-content { flex:1; padding:6px 12px 10px; }
.class-card-course { color:var(--muted); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.class-card-content dl { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:10px 0 0; }
.class-card-content dl > div { padding:7px 9px; border-radius:8px; background:#f7f8fb; }
.class-card-content dt { color:var(--muted); font-size:11px; }
.class-card-content dd { margin:3px 0 0; color:#3d4b63; font-weight:700; }
.class-card-content dd strong { color:var(--primary); font-size:18px; }
.class-card-tags { min-height:25px; }
.class-card-actions { display:flex; flex-wrap:wrap; gap:7px; padding:12px 14px; border-top:1px solid var(--line); cursor:default; }
.class-card-actions .btn { flex:1 1 auto; }
.class-select-all { display:inline-flex; align-items:center; gap:7px; color:#526076; font-size:12px; white-space:nowrap; }
.toolbar-summary { align-self:center; color:var(--muted); }
@media (max-width:1180px) { .class-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px) { .class-card-panel-body { padding:14px; } .class-card-grid { grid-template-columns:1fr; } .class-card-content dl { grid-template-columns:1fr 1fr; } .toolbar-summary { width:100%; } }

/* 报名与缴费管理 */
.payment-summary-panel { margin:18px 0; }
.payment-summary-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border-top:1px solid var(--line); }
.payment-summary-grid button { border:0; background:var(--panel); padding:18px; cursor:pointer; display:flex; flex-direction:column; gap:5px; text-align:left; }
.payment-summary-grid button:hover { background:#faf8ff; }
.payment-summary-grid b { font-size:26px; color:var(--primary); }
.payment-summary-grid span { color:var(--muted); font-size:13px; }
.clickable-row { cursor:pointer; }
.clickable-row:hover { background:#faf8ff; }
.payment-records-table td:first-child small { display:block; margin-top:3px; color:var(--muted); }
.payment-detail-head { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; padding-bottom:18px; }
.payment-detail-head > div { display:flex; flex-direction:column; gap:5px; }
.payment-detail-head > div > b { font-size:18px; }
.payment-detail-head > div > span { color:var(--muted); }
.audit-list { display:grid; gap:9px; }
@media (max-width:720px) { .payment-summary-grid { grid-template-columns:repeat(2,1fr); } }
.date-picker-label { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:13px; font-weight:600; }
.date-picker-label .input { width:160px; }
.staff-monthly-panel { margin-bottom:18px; padding:0 20px 18px; }
.staff-monthly-head { align-items:center; }
.staff-monthly-hint { display:inline-flex; align-items:center; min-height:28px; padding:0 10px; border-radius:999px; color:#5e6880; background:#f3f5fa; font-size:12px; font-weight:600; white-space:nowrap; }
.staff-monthly-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 12px; padding-top:2px; }
.staff-monthly-item { display:flex; align-items:center; min-width:0; min-height:46px; padding:0 12px; border:1px solid #e9edf5; border-radius:10px; background:#fbfcff; }
.staff-monthly-name { min-width:0; overflow:hidden; color:var(--ink); font-size:14px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.staff-monthly-role { flex:0 0 auto; margin-left:7px; padding:2px 5px; border-radius:5px; color:#7a8296; background:#eef1f6; font-size:10px; font-weight:700; }
.staff-monthly-item strong { display:flex; align-items:baseline; gap:2px; flex:0 0 auto; margin-left:auto; padding-left:10px; color:#1d9a72; font-size:17px; line-height:1; }
.staff-monthly-item small { color:#8590a5; font-size:11px; font-weight:700; }
.staff-attendance-panel { padding:0 20px 20px; }
.staff-attendance-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.staff-attendance-row { display:flex; flex-direction:column; justify-content:space-between; min-width:0; min-height:112px; padding:14px; border:1px solid #e5e9f2; border-radius:12px; background:#fbfcff; }
.staff-attendance-person { display:flex; flex-direction:column; gap:4px; min-width:0; }
.staff-attendance-person b { overflow:hidden; color:var(--ink); font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.staff-attendance-person span { overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.staff-counter { display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-top:14px; }
.counter-label { min-width:34px; margin-right:auto; font-size:13px; font-weight:700; }
.present-label { color:#159570; }
.counter-btn { width:30px; height:30px; flex:0 0 30px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); font-size:20px; line-height:1; cursor:pointer; }
.counter-btn:hover { border-color:var(--primary); color:var(--primary); background:var(--soft-primary); }
.staff-counter b { min-width:20px; text-align:center; font-size:17px; }
.staff-history-panel { margin-top:18px; padding:0 20px 20px; }
.staff-history-head { align-items:center; }
.staff-history-list { display:flex; flex-direction:column; gap:8px; }
.staff-history-month { overflow:hidden; border:1px solid #e5e9f2; border-radius:12px; background:#fbfcff; }
.staff-history-month[open] { border-color:#d8def0; background:#fff; }
.staff-history-month summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:52px; padding:0 14px; color:var(--ink); font-size:14px; font-weight:700; cursor:pointer; list-style:none; }
.staff-history-month summary::-webkit-details-marker { display:none; }
.staff-history-month summary::before { content:'＋'; display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; flex:0 0 22px; margin-right:2px; border-radius:50%; color:#65708a; background:#eef1f7; font-size:16px; font-weight:500; line-height:1; }
.staff-history-month[open] summary::before { content:'−'; color:var(--primary); background:var(--soft-primary); }
.staff-history-month-title { display:flex; align-items:center; min-width:0; flex:1; }
.staff-history-summary { flex:0 0 auto; color:var(--muted); font-size:12px; font-weight:600; }
.staff-history-content { padding:0 14px 14px; border-top:1px solid #edf0f6; }
.staff-history-content .staff-monthly-list { padding-top:12px; }
.staff-history-loading { padding:14px 0 2px; color:var(--muted); font-size:13px; }
.staff-history-retry { margin-top:12px; padding:0; border:0; color:var(--primary); background:transparent; font-size:13px; font-weight:700; cursor:pointer; }
.staff-history-error { margin-top:6px; }
@media (max-width:1000px) { .staff-monthly-list, .staff-attendance-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px) { .date-picker-label { width:100%; justify-content:space-between; } .staff-monthly-head, .staff-history-head { align-items:flex-start; } .staff-monthly-hint { display:none; } .staff-monthly-list, .staff-attendance-list { grid-template-columns:1fr; } .staff-history-month summary { min-height:48px; padding:0 12px; } .staff-history-content { padding:0 12px 12px; } }

/* 写生地图管理 */
.by-kids-feature-card { position:relative; display:flex; align-items:stretch; gap:20px; margin:0 0 18px; padding:16px; border:1px solid #dfe3ef; border-radius:16px; background:linear-gradient(135deg,#fff 0%,#f8f9ff 100%); box-shadow:var(--shadow); cursor:pointer; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.by-kids-feature-card:hover, .by-kids-feature-card:focus { transform:translateY(-2px); border-color:#aab5ff; box-shadow:0 10px 26px rgba(55,70,140,.12); outline:none; }
.by-kids-feature-preview { position:relative; flex:0 0 150px; overflow:hidden; min-height:118px; border-radius:12px; background:linear-gradient(145deg,#cdd4ff,#ecebff); }
.by-kids-feature-preview img { display:block; width:100%; height:100%; min-height:118px; object-fit:cover; }
.by-kids-feature-placeholder { display:flex; align-items:center; justify-content:center; width:100%; height:100%; min-height:118px; color:#fff; font-size:38px; background:linear-gradient(145deg,#7782ed,#b19df5); }
.by-kids-feature-map-badge { position:absolute; top:10px; left:10px; display:flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; color:#fff; background:rgba(22,27,49,.84); font-size:18px; }
.by-kids-feature-content { min-width:0; padding:4px 0; }
.eyebrow { color:var(--primary); font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.by-kids-feature-content h3 { margin:5px 0 6px; font-size:20px; }
.by-kids-feature-content p { margin:0; color:var(--muted); font-size:13px; }
.by-kids-feature-stats { display:flex; flex-wrap:wrap; gap:16px; margin-top:18px; color:var(--muted); font-size:12px; }
.by-kids-feature-stats b { color:var(--ink); font-size:16px; }
.by-kids-feature-arrow { align-self:center; margin-left:auto; padding-left:12px; color:var(--primary); font-size:12px; font-weight:700; white-space:nowrap; }
.sketch-map-summary { margin-top:0; }
.sketch-map-location-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.sketch-map-location-card { overflow:hidden; border:1px solid var(--line); border-radius:15px; background:#fff; box-shadow:var(--shadow); cursor:pointer; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.sketch-map-location-card:hover, .sketch-map-location-card:focus { transform:translateY(-2px); border-color:#aab5ff; box-shadow:0 10px 24px rgba(55,70,140,.12); outline:none; }
.sketch-map-location-cover { position:relative; overflow:hidden; aspect-ratio:1.45; background:#eef1f6; }
.sketch-map-location-cover img { display:block; width:100%; height:100%; object-fit:cover; }
.sketch-map-location-cover > span { position:absolute; right:9px; bottom:9px; padding:5px 8px; border-radius:999px; color:#fff; background:rgba(22,27,49,.76); font-size:11px; }
.sketch-map-location-body { padding:14px 15px 16px; }
.sketch-map-location-body h3 { margin:0; font-size:16px; }
.sketch-map-location-body p { overflow:hidden; margin:5px 0 12px; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.sketch-map-location-body > div { display:flex; justify-content:space-between; gap:10px; color:var(--muted); font-size:11px; }
.sketch-map-artwork-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:16px; }
.sketch-map-artwork-card { overflow:hidden; border:1px solid var(--line); border-radius:11px; background:#fff; }
.sketch-map-artwork-card > img { display:block; width:100%; aspect-ratio:1; object-fit:cover; background:#eef1f6; }
.sketch-map-artwork-info { display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; padding:10px 10px 5px; }
.sketch-map-artwork-info b { width:100%; color:var(--ink); font-size:12px; }
.sketch-map-artwork-info > span:not(.badge) { color:var(--muted); font-size:11px; }
.sketch-map-artwork-actions { display:flex; flex-wrap:wrap; gap:6px; padding:5px 10px 10px; }
.danger-text { color:#c45568 !important; }
@media (max-width:1100px) { .sketch-map-location-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px) { .by-kids-feature-card { gap:12px; } .by-kids-feature-preview { flex-basis:96px; min-height:100px; } .by-kids-feature-preview img, .by-kids-feature-placeholder { min-height:100px; } .by-kids-feature-arrow { position:absolute; right:14px; bottom:12px; } .by-kids-feature-stats { gap:8px 12px; margin-top:12px; padding-bottom:20px; } .sketch-map-location-grid, .sketch-map-artwork-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:460px) { .sketch-map-artwork-grid { grid-template-columns:1fr; } }
.sketch-map-location-description { color:#59667a !important; white-space:normal !important; line-height:1.5; }
.sketch-map-location-toolbar { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:12px; padding:14px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.sketch-map-location-toolbar > div { display:flex; flex-direction:column; gap:4px; }
.sketch-map-location-toolbar b { font-size:17px; }
.sketch-map-location-toolbar span, .sketch-map-location-toolbar small { color:var(--muted); font-size:12px; }
.sketch-map-location-intro { margin-bottom:12px; padding:12px 14px; border-radius:10px; color:#536176; background:#f7f8fb; font-size:13px; line-height:1.6; }
.sketch-map-artwork-info p { width:100%; margin:2px 0 0; color:#667085; font-size:11px; line-height:1.45; }
.amap-place-results { max-height:280px; overflow:auto; display:grid; gap:8px; margin:8px 0 16px; padding:8px; border:1px solid var(--line); border-radius:11px; background:#f8f9fc; }
.amap-place-option { display:flex; flex-direction:column; gap:4px; padding:11px 12px; border:1px solid transparent; border-radius:9px; background:#fff; color:var(--ink); text-align:left; cursor:pointer; }
.amap-place-option:hover { border-color:#b3bcff; }
.amap-place-option.selected { border-color:var(--primary); box-shadow:0 0 0 2px var(--soft-primary); }
.amap-place-option b { font-size:13px; }
.amap-place-option span, .amap-place-option small { color:var(--muted); font-size:11px; }
.amap-selected-place, .amap-place-empty { display:flex; flex-direction:column; gap:5px; padding:14px; color:var(--muted); font-size:12px; }
.amap-selected-place b { color:var(--ink); }
.sketch-artwork-editor-preview { overflow:hidden; width:150px; margin:0 auto 16px; border-radius:12px; background:#eef1f6; }
.sketch-artwork-editor-preview img { display:block; width:100%; aspect-ratio:1; object-fit:cover; }
@media (max-width:720px) { .sketch-map-location-toolbar { flex-direction:column; } }

/* 消息通知中心 */
.notification-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.notification-summary > div { padding:18px 20px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.notification-summary b { display:block; color:#26344d; font-size:28px; line-height:1.1; }
.notification-summary span { display:block; margin-top:7px; color:var(--muted); font-size:12px; }
.notification-detail-grid { margin-bottom:18px; }
.notification-detail-content { margin:14px 0 18px; padding:15px; border-radius:11px; background:#f6f8fc; color:#40506a; line-height:1.7; }
.notification-detail-content p { margin:8px 0 0; white-space:normal; }
.customer-service-knowledge-preview { max-width:300px; margin-top:5px; overflow:hidden; color:var(--muted); font-size:12px; line-height:1.45; text-overflow:ellipsis; white-space:nowrap; }
.customer-service-knowledge-actions { display:flex; gap:6px; white-space:nowrap; }
@media (max-width:720px) { .notification-summary { grid-template-columns:1fr; } }

/* 游学项目预算 */
.study-budget-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.study-budget-summary-item { min-width:0; padding:17px 18px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:var(--shadow); }
.study-budget-summary-item span, .study-budget-summary-item small { display:block; color:var(--muted); }
.study-budget-summary-item span { font-size:12px; font-weight:700; }
.study-budget-summary-item strong { display:block; overflow:hidden; margin:8px 0 5px; color:#26344d; font-size:23px; text-overflow:ellipsis; white-space:nowrap; }
.study-budget-summary-item small { font-size:11px; }
.study-budget-tabs { display:flex; gap:4px; margin-bottom:14px; padding:4px; width:max-content; max-width:100%; border:1px solid var(--line); border-radius:10px; background:#eef1f6; }
.study-budget-tab { min-width:100px; border:0; border-radius:7px; padding:9px 14px; color:#68758b; background:transparent; font-size:13px; font-weight:700; }
.study-budget-tab.active { color:var(--primary); background:#fff; box-shadow:0 2px 8px rgba(44,58,98,.08); }
.study-budget-panel { overflow:visible; }
.study-budget-toolbar { align-items:center; justify-content:flex-start; }
.study-budget-toolbar .search { flex:1; }
.study-budget-toolbar select { width:150px; }
.study-budget-list { display:grid; gap:12px; padding:16px; }
.study-budget-card { overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#fff; }
.study-budget-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:17px 18px 14px; }
.study-budget-card-title { min-width:0; }
.study-budget-card-title > div { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:9px; }
.study-budget-card-title h3 { margin:0; color:#26344d; font-size:17px; }
.study-budget-card-title p { margin:5px 0 0; color:var(--muted); font-size:12px; line-height:1.5; }
.study-budget-actions { display:flex; flex:0 0 auto; gap:7px; }
.study-budget-metrics { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); border-top:1px solid #f0f2f6; border-bottom:1px solid #f0f2f6; background:#fafbfe; }
.study-budget-metrics > div { min-width:0; padding:13px 15px; border-right:1px solid #eef1f5; }
.study-budget-metrics > div:last-child { border-right:0; }
.study-budget-metrics span { display:block; overflow:hidden; color:var(--muted); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.study-budget-metrics strong { display:block; overflow:hidden; margin-top:6px; color:#334155; font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.study-budget-card .is-positive, .study-budget-summary .is-positive, .study-budget-live-preview .is-positive { color:#138355; }
.study-budget-card .is-negative, .study-budget-summary .is-negative, .study-budget-live-preview .is-negative { color:var(--red); }
.study-budget-meta { display:flex; flex-wrap:wrap; gap:7px 17px; padding:11px 18px; color:#788499; font-size:11px; }
.study-budget-meta span { position:relative; }
.study-budget-meta span + span::before { content:'\00b7'; position:absolute; left:-10px; }
.study-budget-expense-details { border-top:1px solid #f0f2f6; }
.study-budget-expense-details summary { padding:11px 18px; color:#59677e; font-size:12px; font-weight:700; cursor:pointer; list-style-position:inside; }
.study-budget-expense-details > div { padding:0 18px 12px; }
.study-budget-expense-details > div > div, .study-budget-template-expenses > div { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:9px 0; border-bottom:1px solid #f0f2f6; }
.study-budget-expense-details > div > div:last-child, .study-budget-template-expenses > div:last-child { border-bottom:0; }
.study-budget-expense-details b, .study-budget-template-expenses span { display:block; color:#46536a; font-size:12px; }
.study-budget-expense-details small, .study-budget-template-expenses small { display:block; margin-top:3px; color:var(--muted); font-size:10px; font-weight:400; }
.study-budget-expense-details strong, .study-budget-template-expenses strong { flex:0 0 auto; color:#334155; font-size:12px; }
.study-budget-empty-action { margin-top:14px; }
.study-budget-template-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:12px; padding:16px; }
.study-budget-template-card { min-width:0; border:1px solid var(--line); border-radius:12px; background:#fff; }
.study-budget-template-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:16px; border-radius:12px; cursor:pointer; list-style:none; }
.study-budget-template-head::-webkit-details-marker { display:none; }
.study-budget-template-head:hover { background:#fafbfe; }
.study-budget-template-head:focus-visible { outline:2px solid var(--primary); outline-offset:-2px; }
.study-budget-template-head > div { min-width:0; overflow-wrap:anywhere; }
.study-budget-template-card[open] > .study-budget-template-head { border-bottom:1px solid #f0f2f6; border-radius:12px 12px 0 0; }
.study-budget-template-chevron { flex:0 0 auto; width:8px; height:8px; margin:4px 3px 0 0; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(45deg); }
.study-budget-template-card[open] > .study-budget-template-head .study-budget-template-chevron { margin-top:8px; transform:rotate(225deg); }
.study-budget-template-head h3 { margin:0; color:#26344d; font-size:15px; }
.study-budget-template-head p { margin:5px 0 0; color:var(--muted); font-size:11px; line-height:1.5; }
.study-budget-template-count { padding:12px 16px 0; color:var(--muted); font-size:11px; }
.study-budget-template-expenses { flex:1; padding:7px 16px; }
.study-budget-template-actions { display:flex; justify-content:flex-end; gap:7px; padding:12px 16px; border-top:1px solid #f0f2f6; }
.study-budget-grid-empty { grid-column:1/-1; }
.holiday-arrangement-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.holiday-arrangement-toolbar .date-picker-label { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:12px; font-weight:700; }
.holiday-arrangement-toolbar .input { min-width:130px; }
.holiday-arrangement-list { display:grid; gap:10px; padding:16px; }
.holiday-arrangement-card { padding:16px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.holiday-arrangement-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.holiday-arrangement-card-head h3 { margin:8px 0 4px; color:#26344d; font-size:16px; }
.holiday-arrangement-card-head p { margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
.holiday-arrangement-card-head .badge + .badge { margin-left:6px; }
.holiday-arrangement-actions { display:flex; flex:0 0 auto; gap:7px; }
.holiday-arrangement-note { margin-top:12px; padding-top:10px; border-top:1px solid #f0f2f6; color:#59677e; font-size:12px; line-height:1.6; }
.holiday-class-picker { margin-top:14px; padding:12px; border:1px solid #e6eaf1; border-radius:10px; background:#fafbfe; }
.holiday-class-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:10px; }
.holiday-class-option { display:flex; align-items:flex-start; gap:8px; min-width:0; padding:10px; border:1px solid #e6eaf1; border-radius:8px; background:#fff; cursor:pointer; }
.holiday-class-option input { margin-top:3px; }
.holiday-class-option span { min-width:0; }
.holiday-class-option b, .holiday-class-option small { display:block; overflow-wrap:anywhere; }
.holiday-class-option b { color:#334155; font-size:12px; }
.holiday-class-option small { margin-top:3px; color:var(--muted); font-size:10px; }
.study-budget-form-section { margin-top:5px; padding-top:18px; border-top:1px solid var(--line); }
.study-budget-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:12px; }
.study-budget-section-head b, .study-budget-section-head span { display:block; }
.study-budget-section-head b { color:#334155; font-size:14px; }
.study-budget-section-head span { margin-top:4px; color:var(--muted); font-size:11px; }
.study-budget-expense-labels, .study-budget-expense-main { display:grid; grid-template-columns:48px 92px minmax(120px,1.2fr) minmax(110px,1fr) 82px 72px 92px 78px minmax(100px,1fr) 32px; gap:8px; align-items:center; }
.study-budget-expense-labels { padding:0 2px 6px; color:#8b96a8; font-size:10px; font-weight:700; }
.study-budget-auto-quantity { min-height:38px; display:flex; align-items:center; justify-content:center; border:1px dashed #ccd6e4; border-radius:8px; color:#53637a; background:#f6f8fb; font-size:12px; font-weight:700; }
.study-budget-line-subtotal { min-height:38px; display:flex; align-items:center; justify-content:flex-end; overflow:hidden; padding:0 10px; border:1px solid #dce3ed; border-radius:8px; color:#1f2937; background:#fff; font-size:12px; font-weight:800; white-space:nowrap; }
.study-budget-line-subtotal.is-excluded { color:#98a2b2; background:#f4f6f8; text-decoration:line-through; }
.study-budget-expense-main .input:disabled { border-color:#e3e7ee; color:#98a2b2; background:#f2f4f7; cursor:not-allowed; }
.study-budget-template-labels { grid-template-columns:1.3fr .7fr 1fr .8fr 32px; }
.study-budget-expense-editor { margin-bottom:8px; padding:10px; border:1px solid var(--line); border-radius:10px; background:#fafbfe; }
.study-budget-expense-main.is-template { grid-template-columns:1.3fr .7fr 1fr .8fr 32px; }
.study-budget-expense-editor .input { min-width:0; padding:9px 10px; border-radius:8px; font-size:12px; }
.study-budget-expense-check { display:flex; align-items:center; gap:5px; color:#69758a; font-size:11px; font-weight:700; white-space:nowrap; }
.study-budget-expense-check input { accent-color:var(--primary); }
.study-budget-template-category { margin-bottom:12px; padding:12px; border:1px solid var(--line); border-radius:11px; background:#fafbfe; }
.study-budget-template-category-head { padding-bottom:10px; }
.study-budget-template-children { display:grid; gap:7px; padding:9px 0 0 18px; border-left:2px solid #dce4f3; }
.study-budget-template-child { display:grid; grid-template-columns:1.3fr .7fr 1fr .8fr 32px; gap:8px; align-items:center; padding:8px; border:1px solid #e6eaf1; border-radius:9px; background:#fff; }
.study-budget-template-category-actions { display:flex; justify-content:flex-end; padding-top:9px; }
.study-budget-template-add-category { display:flex; justify-content:flex-end; padding-top:3px; }
.study-budget-template-expenses .is-child { padding-left:12px; color:#64728a; }
.study-budget-template-expenses .is-child strong { color:#64728a; font-weight:600; }
.study-budget-expense-details .is-excluded { opacity:.58; }
.study-budget-remove { display:grid; place-items:center; width:30px; height:30px; border:0; border-radius:8px; color:var(--red); background:var(--soft-red); font-size:18px; }
.study-budget-option-picker { display:grid; grid-template-columns:130px minmax(0,1fr); align-items:center; gap:10px; margin-top:9px; padding:10px 12px; border-radius:9px; background:#eef4ff; }
.study-budget-option-picker label { color:#4054a8; font-size:11px; font-weight:800; }
.study-budget-options-block { margin-top:10px; padding:10px; border:1px dashed #ccd4e4; border-radius:9px; background:#fff; }
.study-budget-options-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.study-budget-options-head span { color:#65728a; font-size:11px; font-weight:800; }
.study-budget-option-editor { display:grid; grid-template-columns:62px 1fr 1.15fr 1fr .7fr 32px; align-items:center; gap:7px; padding:8px 0; border-top:1px solid #edf0f5; }
.study-budget-option-editor:first-child { border-top:0; }
.study-budget-option-default { display:flex; align-items:center; gap:5px; color:#66738a; font-size:10px; font-weight:700; cursor:pointer; }
.study-budget-option-default input { accent-color:var(--primary); }
.study-budget-live-preview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; overflow:hidden; margin-top:18px; border:1px solid var(--line); border-radius:11px; background:var(--line); }
.study-budget-live-preview > div { min-width:0; padding:13px; background:#f8f9fc; }
.study-budget-live-preview span { display:block; color:var(--muted); font-size:10px; }
.study-budget-live-preview strong { display:block; overflow:hidden; margin-top:5px; color:#334155; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:1180px) { .study-budget-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); } .study-budget-metrics > div:nth-child(3) { border-right:0; } .study-budget-metrics > div:nth-child(-n+3) { border-bottom:1px solid #eef1f5; } .study-budget-template-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:900px) { .study-budget-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } .study-budget-expense-labels { display:none; } .study-budget-expense-main, .study-budget-expense-main.is-template, .study-budget-template-child { grid-template-columns:1fr 1fr; } .study-budget-expense-main .study-budget-remove, .study-budget-template-child .study-budget-remove { justify-self:end; } .study-budget-option-editor { grid-template-columns:80px 1fr 1fr; } .study-budget-option-editor .study-budget-remove { justify-self:end; } }
@media (max-width:720px) { .study-budget-tabs { width:100%; } .study-budget-tab { flex:1; min-width:0; padding:9px 8px; } .study-budget-toolbar { align-items:stretch; flex-direction:column; } .study-budget-toolbar .search, .study-budget-toolbar select { width:100%; max-width:none; } .study-budget-card-head { align-items:stretch; flex-direction:column; } .study-budget-actions { justify-content:flex-end; } .study-budget-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .study-budget-metrics > div:nth-child(3) { border-right:1px solid #eef1f5; } .study-budget-metrics > div:nth-child(2n) { border-right:0; } .study-budget-metrics > div:nth-child(-n+4) { border-bottom:1px solid #eef1f5; } .study-budget-template-grid { grid-template-columns:1fr; } .study-budget-live-preview { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px) { .holiday-arrangement-toolbar, .holiday-arrangement-card-head { align-items:stretch; flex-direction:column; } .holiday-arrangement-actions { justify-content:flex-end; } .holiday-class-options { grid-template-columns:1fr; } }
@media (max-width:520px) { .study-budget-summary { grid-template-columns:1fr; } .study-budget-summary-item { padding:14px 15px; } .study-budget-expense-main, .study-budget-expense-main.is-template, .study-budget-option-editor, .study-budget-option-picker { grid-template-columns:1fr; } .study-budget-expense-main .study-budget-remove, .study-budget-option-editor .study-budget-remove { justify-self:start; } }

/* Scoped knowledge preview; never render unescaped stored HTML. */
#knowledge-preview { border:1px solid var(--line); border-radius:10px; padding:12px; }
#knowledge-preview summary { cursor:pointer; font-weight:600; margin-bottom:8px; }
.knowledge-markdown { margin-top:12px; padding:14px; background:#f8f9fc; border-radius:8px; line-height:1.7; overflow-wrap:anywhere; max-height:360px; overflow:auto; }
.knowledge-markdown :first-child { margin-top:0; }
.knowledge-markdown h1, .knowledge-markdown h2, .knowledge-markdown h3, .knowledge-markdown h4, .knowledge-markdown h5, .knowledge-markdown h6 { margin:14px 0 8px; font-size:16px; }
.knowledge-markdown p { margin:8px 0; }
.knowledge-markdown pre { white-space:pre-wrap; background:#edf0f5; padding:10px; border-radius:6px; }
.knowledge-markdown code { background:#edf0f5; padding:1px 3px; }
.knowledge-export-hint { margin:-8px 0 16px; }

/* TASK-014: collapsible primary navigation groups */
.nav-group { margin-bottom: 14px; }
.nav-group-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; padding: 8px 12px; cursor: pointer; }
.nav-group-toggle-icon { transition: transform .2s ease; }
.nav-group.is-collapsed .nav-group-toggle-icon { transform: rotate(-90deg); }
.nav-group-items { display: grid; gap: 4px; }
.nav-group.is-collapsed .nav-group-items { display: none; }
.nav-btn.nav-placeholder { opacity: .65; }
.aim-table { width: 100%; }
.aim-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.aim-tabs button { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 10px 16px; cursor: pointer; }
.aim-tabs button[aria-selected="true"] { background: var(--soft-primary); color: var(--primary); border-color: var(--primary); }
.aim-table td { vertical-align: middle; }
.aim-model-select { width: 100%; min-width: 180px; max-width: 340px; }
.aim-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.aim-capabilities { display: flex; flex-wrap: wrap; gap: 20px; margin: 12px 0; }
.cw-image-assistant-modal { display: grid; gap: 12px; }
.cw-image-suggestion-actions, .cw-image-suggestion-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cw-image-suggestion { border-top: 1px solid var(--border-color, #d8dedb); padding: 14px 0; }
.cw-image-suggestion .field { margin: 10px 0; }
.cw-image-suggestion textarea { min-height: 88px; }
@media (max-width: 640px) {
  .cw-image-suggestion-actions { align-items: flex-start; flex-direction: column; }
  .cw-image-suggestion-actions button { width: 100%; }
}
.aim-url { overflow-wrap: anywhere; max-width: 280px; }
.aim-table .cw-ai-default { margin-left: 7px; color: #26715b; font-size: 12px; }
#aim-form .cw-ai-check { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.aim-page-head .btn { white-space: nowrap; }
@media (max-width:760px) {
  .aim-page-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .aim-page-head .head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .aim-table, .aim-table tbody { display: block; min-width: 0; }
  .aim-table thead { display: none; }
  .aim-table tr { display: block; margin-bottom: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
  .aim-table td { display: block; padding: 8px; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .aim-table td[data-label]::before { display: block; content: attr(data-label); margin-bottom: 5px; color: var(--muted); font-size: 12px; }
  .aim-model-select { min-width: 0; max-width: none; }
}

/* TASK-030: finance controls stay usable inside the existing narrow sidebar. */
.finance-center .finance-filters { display:grid; grid-template-columns:180px minmax(160px,1fr) auto; align-items:end; }
.finance-center .finance-filters label { display:flex; flex-direction:column; gap:6px; }
.finance-center .finance-filters .input { width:100%; min-width:0; }
.finance-center .finance-filters .btn, .finance-center .finance-tabs .btn { white-space:nowrap; }
.finance-center .finance-tabs { justify-content:flex-start; flex-wrap:wrap; }
.finance-center .finance-note { padding:0 17px; line-height:1.6; }
@media (max-width:720px) {
  .finance-center .finance-filters { grid-template-columns:minmax(0,1fr) auto; }
  .finance-center .finance-filters label { grid-column:1/-1; }
  .finance-center .finance-tabs { gap:8px; }
}

.order-income { color: #16803b; font-weight: 600; }
.order-refund { color: #c92a2a; font-weight: 600; }
.order-preview { padding: 12px; background: var(--surface-alt, #f4f6f8); border-radius: 8px; margin: 12px 0; }

.order-stats span, .order-stats strong, .order-stats small { display: block; position: relative; z-index: 1; }
.order-stats strong { font-size: 28px; margin: 8px 0; }
.order-stats small { color: var(--muted); }
.orders-table td:first-child .primary-text { max-width: 205px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) {
  .orders-table, .orders-table tbody { display: block; width: 100%; min-width: 0; }
  .orders-table thead { display: none; }
  .orders-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); padding: 12px 6px; }
  .orders-table tbody td { display: block; border: 0; padding: 8px; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
  .orders-table tbody td::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
  .orders-table tbody td:first-child, .orders-table .order-actions { grid-column: 1 / -1; }
  .orders-table td:first-child .primary-text { max-width: 100%; }
  .orders-table .order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .orders-table .order-actions::before { width: 100%; }
  .head-actions { flex-wrap: wrap; }
}
