/* ====== 太阳树教育 · 共享样式 ====== */
:root {
  --c-bg: #f4f7fb;
  --c-surface: #fff;
  --c-surface-soft: #f8fbff;
  --c-navy: #082f5f;
  --c-navy-2: #0d3f79;
  --c-navy-3: #123f6d;
  --c-gold: #b98a2f;
  --c-gold-lt: #fff6dd;
  --c-purple: #254f8e;
  --c-purple-lt: #eaf2ff;
  --c-blue: #1167aa;
  --c-blue-lt: #e7f3ff;
  --c-green: #20724f;
  --c-green-lt: #e8f6ef;
  --c-red: #b33434;
  --c-red-lt: #fff0f0;
  --c-amber: #9b6712;
  --c-amber-lt: #fff4dc;
  --c-text: #1f2d3d;
  --c-muted: #5f6f82;
  --c-hint: #8b99a9;
  --c-border: #dfe7f1;
  --c-border-focus: #86acd8;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(8, 47, 95, 0.05);
  --shadow-md: 0 12px 34px rgba(8, 47, 95, 0.12);
  --font: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font); font-size: 14px; background: var(--c-bg); color: var(--c-text);
  line-height: 1.6; display: flex; min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 264px; background: linear-gradient(180deg, #082f5f 0%, #0a2a52 100%);
  color: #fff; display: flex; flex-direction: column; flex-shrink: 0;
  box-shadow: 14px 0 36px rgba(8, 47, 95, 0.16); position: relative; z-index: 2;
}
.sidebar-logo {
  padding: 22px 22px 10px; display: flex; align-items: center; gap: 13px;
}
.brand-mark {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: #fff;
  border: 2px solid rgba(255,255,255,0.78); box-shadow: 0 8px 18px rgba(0,0,0,0.16);
}
.brand-copy { min-width: 0; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.brand-en { font-family: Georgia, "Times New Roman", serif; font-size: 11px; color: rgba(255,255,255,0.72); letter-spacing: 1.4px; text-transform: uppercase; margin-top: 4px; }
.sidebar-sub {
  margin: 0 22px 18px; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius); background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.76);
  font-size: 12px;
}
.sidebar-role { padding: 0 22px 18px; }
.sidebar-role select {
  width: 100%; font-size: 12px; padding: 9px 10px; border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm); background: rgba(255,255,255,0.1); font-family: var(--font);
  color: #fff; appearance: none;
}
.sidebar-role select option { color: var(--c-text); background: #fff; }
.sidebar-nav { flex: 1; padding: 0 14px; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; border: 1px solid transparent;
  background: transparent; width: 100%; text-align: left; font-family: var(--font);
  color: rgba(255,255,255,0.76); transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-item.active {
  background: #fff; color: var(--c-navy); border-color: rgba(255,255,255,0.28);
  font-weight: 600; box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}
.nav-item .nav-icon { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; color: currentColor; }
.nav-item .badge {
  margin-left: auto; background: rgba(255,255,255,0.13); color: rgba(255,255,255,0.86);
  border-radius: 20px; font-size: 11px; padding: 1px 8px; font-weight: 600;
}
.nav-item.active .badge { background: var(--c-navy); color: #fff; }
.sidebar-footer {
  margin: 16px 14px 18px; padding: 13px 14px; font-size: 11px; color: rgba(255,255,255,0.66);
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* Main */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.page-header {
  padding: 18px 30px; background: rgba(255,255,255,0.9); border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between; backdrop-filter: blur(10px);
}
.page-title-block { display: flex; flex-direction: column; gap: 1px; }
.page-header h2 { font-size: 20px; font-weight: 700; color: var(--c-navy); }
.page-kicker { font-size: 12px; color: var(--c-muted); }
.page-content { flex: 1; padding: 24px 30px; overflow-y: auto; }

.dashboard-intro {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 22px;
  min-height: 170px; padding: 26px 28px; margin-bottom: 18px; border-radius: 12px;
  background: linear-gradient(135deg, #0a315d 0%, #124a84 63%, #f8fbff 63.2%, #fff 100%);
  box-shadow: var(--shadow-md); color: #fff;
}
.dashboard-intro:after {
  content: ""; position: absolute; width: 230px; height: 230px; right: 32px; top: -34px;
  border-radius: 50%; background: rgba(255,255,255,0.72);
  border: 1px solid rgba(8,47,95,0.08);
}
.dashboard-intro h1 { position: relative; z-index: 1; font-size: 25px; line-height: 1.25; font-weight: 700; margin-bottom: 10px; }
.dashboard-intro p { position: relative; z-index: 1; max-width: 640px; color: rgba(255,255,255,0.78); font-size: 13px; }
.intro-meta { position: relative; z-index: 1; display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.intro-pill {
  border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.09);
  color: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12px;
}
.intro-logo {
  position: relative; z-index: 1; justify-self: end; align-self: center; width: 132px; height: 132px;
  border-radius: 50%; object-fit: cover; background: #fff; border: 6px solid #fff;
  box-shadow: 0 18px 36px rgba(8,47,95,0.18);
}

/* Toolbar */
.toolbar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow-sm);
}
.toolbar input, .toolbar select {
  font-size: 13px; padding: 8px 10px; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  font-family: var(--font); background: var(--c-surface); color: var(--c-text);
}
.toolbar input:focus, .toolbar select:focus { outline: none; border-color: var(--c-border-focus); box-shadow: 0 0 0 3px rgba(17,103,170,0.12); }
.toolbar input { min-width: 200px; }
.toolbar .spacer { flex: 1; }

/* Buttons */
.btn {
  font-size: 13px; padding: 8px 15px; border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font); border: 1px solid var(--c-border); background: var(--c-surface);
  color: var(--c-text); display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--c-surface-soft); border-color: var(--c-border-focus); }
.btn-primary { background: var(--c-navy); color: #fff; border-color: var(--c-navy); box-shadow: 0 6px 14px rgba(8,47,95,0.16); }
.btn-primary:hover { background: var(--c-navy-2); border-color: var(--c-navy-2); }
.btn-danger { color: var(--c-red); border-color: var(--c-red-lt); background: var(--c-red-lt); }
.btn-danger:hover { background: #ffe2e2; border-color: #e24b4a; }
.btn-sm { font-size: 12px; padding: 4px 10px; }
.btn-xs { font-size: 11px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }

/* Table */
.table-wrap { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
thead { background: #f7faff; }
th { font-size: 12px; font-weight: 700; color: var(--c-muted); padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--c-border); white-space: nowrap; }
td { font-size: 13px; padding: 11px 14px; border-bottom: 1px solid #edf2f8; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f9fbff; }
.empty-row td { text-align: center; color: var(--c-hint); padding: 40px; font-size: 13px; }

/* Tags */
.tag {
  display: inline-flex; align-items: center; font-size: 11px; line-height: 1.4; padding: 2px 8px;
  border-radius: 999px; white-space: nowrap; font-weight: 600;
}
.tag-sun { background: var(--c-gold-lt); color: #8a5b09; }
.tag-eli { background: var(--c-purple-lt); color: var(--c-navy); }
.tag-shared { background: var(--c-amber-lt); color: var(--c-amber); }
.tag-active { background: var(--c-green-lt); color: var(--c-green); }
.tag-inactive { background: #eef3f8; color: var(--c-muted); }
.tag-done { background: var(--c-blue-lt); color: var(--c-blue); }
.tag-red { background: var(--c-red-lt); color: var(--c-red); }
.tag-absent { background: var(--c-red-lt); color: var(--c-red); }
.tag-present { background: var(--c-green-lt); color: var(--c-green); }
.tag-late { background: var(--c-amber-lt); color: var(--c-amber); }
.tag-leave { background: var(--c-blue-lt); color: var(--c-blue); }
.tag-blue { background: var(--c-blue-lt); color: var(--c-blue); }
.tag-amber { background: var(--c-amber-lt); color: var(--c-amber); }
.tag-transfer { background: #eef3f8; color: var(--c-navy); cursor: pointer; }

/* Modal */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(8, 28, 54, 0.42);
  z-index: 100; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--c-surface); border-radius: var(--radius); width: 560px; max-height: 80vh;
  border: 1px solid var(--c-border); box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
}
.modal-header {
  padding: 16px 22px; border-bottom: 1px solid var(--c-border); color: var(--c-navy);
  font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: space-between;
}
.modal-close { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--c-hint); padding: 4px; line-height: 1; }
.modal-close:hover { color: var(--c-text); }
.modal-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--c-border); display: flex; justify-content: flex-end; gap: 8px; }

/* Form */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; color: var(--c-muted); margin-bottom: 4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; font-size: 13px; padding: 8px 10px; border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); font-family: var(--font); background: var(--c-surface); color: var(--c-text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--c-border-focus); box-shadow: 0 0 0 3px rgba(17,103,170,0.12); }
.form-group textarea { resize: vertical; min-height: 60px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Student modal tabs */
.student-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--c-border);
  margin: -20px -22px 16px -22px; padding: 0 22px;
}
.student-tab {
  font-size: 13px; padding: 10px 18px; cursor: pointer; border: none; background: none;
  font-family: var(--font); color: var(--c-muted); border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s; margin-bottom: -1px;
}
.student-tab:hover { color: var(--c-text); }
.student-tab.active { color: var(--c-navy); border-bottom-color: var(--c-gold); font-weight: 600; }
.student-tab-panel { display: none; }
.student-tab-panel.active { display: block; }
.student-profile-modal { width: 980px; max-width: calc(100vw - 40px); }
.student-profile-modal .modal-body { padding: 0; }
.student-profile-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 560px; }
.profile-nav-pane {
  background: #f6f9fd; border-right: 1px solid var(--c-border); padding: 18px 14px;
}
.profile-avatar {
  width: 78px; height: 78px; border-radius: 50%; margin: 4px auto 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-navy), var(--c-blue)); color: #fff;
  font-size: 26px; font-weight: 700; box-shadow: 0 12px 24px rgba(8,47,95,0.18);
  border: 4px solid #fff;
}
.profile-nav-name { text-align: center; font-weight: 700; color: var(--c-navy); }
.profile-nav-meta { text-align: center; font-size: 12px; color: var(--c-muted); margin: 2px 0 16px; }
.profile-main-pane { padding: 20px 24px; overflow: auto; }
.profile-summary {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start;
  padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--c-border);
}
.profile-summary h3 { font-size: 22px; line-height: 1.25; color: var(--c-navy); margin-bottom: 6px; }
.profile-summary p { color: var(--c-muted); font-size: 13px; }
.profile-chip-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.profile-nav-pane .student-tabs {
  display: grid; gap: 6px; border: 0; margin: 0; padding: 0;
}
.profile-nav-pane .student-tab {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border: 1px solid transparent; border-radius: var(--radius-sm);
  text-align: left; background: transparent; margin: 0; color: var(--c-muted);
}
.profile-nav-pane .student-tab.active {
  background: #fff; border-color: var(--c-border); color: var(--c-navy);
  box-shadow: var(--shadow-sm);
}
.history-empty { text-align: center; color: var(--c-hint); padding: 24px 0; font-size: 13px; }
.history-item { padding: 10px 0; border-bottom: 1px solid #f5f5f2; font-size: 13px; }
.history-item:last-child { border-bottom: none; }
.history-time { color: var(--c-hint); font-size: 12px; }
.history-operator { color: var(--c-muted); font-size: 11px; }
.tab-save-bar { display: flex; justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--c-border); margin-top: 12px; }
.transfer-item { padding: 8px 0; border-bottom: 1px solid #f5f5f2; font-size: 13px; }
.transfer-item:last-child { border-bottom: none; }
.transfer-arrow { color: var(--c-amber); margin: 0 4px; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat-card:before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--c-navy), var(--c-gold)); }
.stat-card .stat-label { font-size: 12px; color: var(--c-muted); margin-bottom: 2px; }
.stat-card .stat-value { font-size: 26px; font-weight: 700; color: var(--c-navy); }

/* Attendance panel */
.att-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #f5f5f2; }
.att-row:hover { background: #f9fbff; }
.att-row .att-name { flex: 1; font-size: 13px; }
.att-row .att-actions { display: flex; gap: 4px; }
.att-btn {
  font-size: 12px; padding: 4px 10px; border: 1px solid var(--c-border); background: #fff;
  border-radius: 4px; cursor: pointer; color: var(--c-muted);
}
.att-btn:hover { border-color: var(--c-border-focus); }
.att-btn.sel { border-color: var(--c-navy); background: var(--c-purple-lt); color: var(--c-navy); }
.att-btn.sel-pres { border-color: var(--c-green); background: var(--c-green-lt); color: var(--c-green); }
.att-btn.sel-abs { border-color: var(--c-red); background: var(--c-red-lt); color: var(--c-red); }

/* Toast */
.toast {
  position: fixed; bottom: 32px; right: 32px; background: var(--c-navy); color: #fff;
  padding: 10px 20px; border-radius: 8px; font-size: 13px; z-index: 200;
  opacity: 0; transform: translateY(10px); transition: all 0.25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

.view-panel { display: none; }
.view-panel.active { display: block; }

/* Report styles */
.report-section { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.report-section h3 { font-size: 14px; font-weight: 700; color: var(--c-navy); margin-bottom: 14px; }
.bar-chart { display: flex; align-items: flex-end; gap: 24px; height: 140px; padding: 0 8px; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar-fill { width: 100%; max-width: 48px; border-radius: 4px 4px 0 0; transition: height 0.4s; min-height: 4px; }
.bar-label { font-size: 12px; color: var(--c-muted); text-align: center; }
.bar-value { font-size: 12px; font-weight: 500; }
.chart-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--c-muted); }
.chart-legend span { display: flex; align-items: center; gap: 4px; }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.alert-card { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 6px; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.alert-warn { background: var(--c-red-lt); color: var(--c-red); }
.alert-info { background: var(--c-amber-lt); color: var(--c-amber); }
.alert-icon { font-size: 16px; flex-shrink: 0; }
.trend-bar-row { display: flex; align-items: flex-end; gap: 3px; height: 80px; }
.trend-day { flex: 1; display: flex; flex-direction: column; align-items: center; }
.trend-bar { width: 100%; max-width: 14px; border-radius: 2px 2px 0 0; transition: height 0.3s; }
.trend-label { font-size: 10px; color: var(--c-hint); margin-top: 4px; }
.progress-bar { height: 8px; border-radius: 4px; background: #f0f0ec; overflow: hidden; margin-top: 4px; }
.progress-fill { height: 100%; border-radius: 4px; transition: width 0.4s; }
.summary-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.summary-item { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px 16px; text-align: center; box-shadow: var(--shadow-sm); }
.summary-item .sv { font-size: 22px; font-weight: 700; }
.summary-item .sl { font-size: 12px; color: var(--c-muted); margin-top: 2px; }
.att-rate-badge { font-weight: 500; padding: 1px 6px; border-radius: 3px; font-size: 12px; }
.att-rate-good { background: var(--c-green-lt); color: var(--c-green); }
.att-rate-warn { background: var(--c-amber-lt); color: var(--c-amber); }
.att-rate-bad { background: var(--c-red-lt); color: var(--c-red); }

/* Schedule + guidance */
.ops-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.ops-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.ops-label { font-size: 12px; color: var(--c-muted); }
.ops-value { font-size: 22px; font-weight: 700; color: var(--c-navy); line-height: 1.3; }
.lesson-name { font-weight: 700; color: var(--c-navy); min-width: 240px; }
.lesson-subnote { color: var(--c-muted); font-size: 12px; margin-top: 2px; max-width: 360px; }
.guidance-layout { display: grid; grid-template-columns: 330px 1fr; gap: 16px; align-items: start; }
.guidance-list { display: grid; gap: 10px; }
.guidance-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 14px; cursor: pointer; box-shadow: var(--shadow-sm);
}
.guidance-card:hover, .guidance-card.active { border-color: var(--c-border-focus); background: #f9fbff; }
.guidance-card h4 { color: var(--c-navy); font-size: 14px; margin-bottom: 4px; }
.guidance-card p { color: var(--c-muted); font-size: 12px; }
.guidance-detail { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.guidance-hero { padding: 18px 20px; border-bottom: 1px solid var(--c-border); background: linear-gradient(135deg, #f8fbff, #fff); }
.guidance-hero h3 { color: var(--c-navy); font-size: 18px; margin-bottom: 6px; }
.guidance-section { padding: 16px 20px; border-bottom: 1px solid #edf2f8; }
.guidance-section:last-child { border-bottom: 0; }
.guidance-section h4 { color: var(--c-navy); font-size: 13px; margin-bottom: 8px; }
.timeline { display: grid; gap: 10px; }
.timeline-item { display: grid; grid-template-columns: 92px 1fr; gap: 12px; font-size: 13px; }
.timeline-date { color: var(--c-muted); font-size: 12px; }
.doc-list { display: flex; flex-wrap: wrap; gap: 8px; }
.org-role-cell { min-width: 150px; font-weight: 700; color: var(--c-navy); }
.org-owner-cell { white-space: nowrap; font-weight: 600; }
.org-desc { min-width: 220px; color: var(--c-text); }
.resource-list { display: flex; flex-wrap: wrap; gap: 6px; min-width: 220px; }
.org-note { color: var(--c-muted); font-size: 12px; min-width: 120px; }
.section-tabs {
  display: inline-flex; gap: 4px; background: #eef3f8; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 4px; margin-bottom: 14px;
}
.section-tab {
  border: 0; background: transparent; color: var(--c-muted); border-radius: var(--radius-sm);
  padding: 7px 14px; font-family: var(--font); font-size: 13px; cursor: pointer;
}
.section-tab.active { background: #fff; color: var(--c-navy); font-weight: 700; box-shadow: var(--shadow-sm); }
.section-tab:disabled { cursor: not-allowed; opacity: 0.45; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.check-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--c-border); border-radius: var(--radius-sm); font-size: 13px;
}
.check-item input { width: auto; }

/* Schedule calendar（排课日历浮层） */
.schedule-modal { width: 920px; max-width: 96vw; max-height: 92vh; }
.schedule-modal .modal-body { padding: 20px 24px; }
.sched-toolbar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.sched-toolbar select {
  font-size: 13px; padding: 7px 10px; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  font-family: var(--font); background: var(--c-surface); color: var(--c-text);
}
.sched-toolbar select:focus { outline: none; border-color: var(--c-border-focus); box-shadow: 0 0 0 3px rgba(17,103,170,0.12); }
.sched-toolbar .sched-meta { font-size: 12px; color: var(--c-muted); margin-left: auto; }
.sched-cal {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.sched-cal th {
  background: #eef4fb; color: var(--c-navy); font-size: 12px; font-weight: 700;
  padding: 10px 4px; text-align: center; border-bottom: 1px solid var(--c-border);
}
.sched-cal th.sat { color: var(--c-blue); }
.sched-cal th.sun { color: var(--c-red); }
.sched-cal td {
  width: 14.28%; height: 98px; vertical-align: top; padding: 6px 7px;
  border-right: 1px solid #edf2f8; border-bottom: 1px solid #edf2f8;
  background: var(--c-surface); transition: background 0.15s;
}
.sched-cal td:last-child { border-right: none; }
.sched-cal tbody tr:last-child td { border-bottom: none; }
.sched-cal td:hover { background: #f7fbff; }
.sched-cal td.out { background: #fafbfc; }
.sched-cal td.weekend { background: #fcfdff; }
.sched-cal td.today { background: var(--c-gold-lt); box-shadow: inset 0 0 0 2px var(--c-gold); }
.sched-day-num { font-size: 12px; font-weight: 600; color: var(--c-hint); text-align: right; margin-bottom: 4px; }
.sched-cal td.weekend .sched-day-num { color: var(--c-muted); }
.sched-cal td.today .sched-day-num { color: var(--c-gold); }
.sched-lesson {
  margin-top: 4px; font-size: 11px; line-height: 1.4; color: var(--c-text); overflow: hidden;
}
.sched-lesson .t { font-weight: 700; color: var(--c-navy); }
.sched-lesson .s { color: var(--c-text); }
.sched-empty { text-align: center; color: var(--c-hint); padding: 40px 0; font-size: 13px; }
.sched-note { font-size: 11px; color: var(--c-muted); margin-top: 16px; line-height: 1.7; }

@media (max-width: 768px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; padding-bottom: 12px; }
  .sidebar-logo { padding: 16px 16px 8px; }
  .brand-mark { width: 48px; height: 48px; }
  .sidebar-sub, .sidebar-role { margin-left: 16px; margin-right: 16px; padding-left: 0; padding-right: 0; }
  .sidebar-nav { flex-direction: row; overflow-x: auto; padding: 0 12px; }
  .nav-item { white-space: nowrap; }
  .page-header { align-items: flex-start; gap: 12px; padding: 16px; flex-direction: column; }
  .page-content { padding: 16px; }
  .dashboard-intro { grid-template-columns: 1fr; background: linear-gradient(135deg, #0a315d, #124a84); }
  .dashboard-intro:after { display: none; }
  .intro-logo { justify-self: start; width: 92px; height: 92px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .ops-grid, .guidance-layout, .student-profile-shell { grid-template-columns: 1fr; }
  .profile-nav-pane { border-right: 0; border-bottom: 1px solid var(--c-border); }
  .profile-summary { grid-template-columns: 1fr; }
  .profile-chip-row { justify-content: flex-start; }
  .checkbox-grid { grid-template-columns: 1fr; }
  table { min-width: 720px; }
  .modal { width: calc(100vw - 28px); }
  .schedule-modal { width: calc(100vw - 20px); }
  .sched-cal td { height: auto; min-height: 56px; padding: 4px; }
  .sched-lesson { font-size: 10px; }
}
