:root {
  --gold: #d97706;
  --gold-light: #fef3c7;
  --gold-text: #92400e;
  --green: #166534;
  --green-light: #dcfce7;
  --green-accent: #16a34a;
  --blue: #3b82f6;
  --blue-light: #e0f2fe;
  --blue-text: #075985;
  --pink: #ec4899;
  --pink-light: #fce7f3;
  --pink-text: #9d174d;
  --purple-light: #ede9fe;
  --purple-text: #3730a3;
  --red: #dc2626;
  --red-light: #fee2e2;
  --red-text: #991b1b;
  --red-border: #fca5a5;
  --bg: #f9fafb;
  --bg-white: white;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --text: #111827;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;
  --text-dark: #374151;
  --sidebar-w: 220px;
  --nav-h: 54px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Nunito', system-ui, sans-serif; font-size: 14px; background: var(--bg); color: var(--text); min-height: 100vh; }

/* Loading */
.loading-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; gap: 16px; }
.loading-star { font-size: 36px; }
.loader { width: 40px; height: 40px; border: 3px solid var(--gold-light); border-top: 3px solid var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
.loading-text { font-size: 14px; color: var(--text-muted); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Top Nav */
.topnav { height: var(--nav-h); background: var(--bg-white); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 16px; gap: 12px; position: sticky; top: 0; z-index: 100; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; color: var(--text); }
.brand-icon { width: 30px; height: 30px; background: linear-gradient(135deg, #f59e0b, var(--gold)); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-icon svg { width: 18px; height: 18px; }
.nav-greeting { flex: 1; font-size: 13px; color: var(--text-muted); }
.nav-greeting strong { color: var(--text); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; color: white; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.avatar-teacher { background: var(--gold); }
.avatar-student { background: var(--green-accent); }
.logout-btn { font-size: 12px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px; background: transparent; cursor: pointer; color: var(--text-muted); font-family: 'Nunito', sans-serif; }
.logout-btn:hover { background: var(--bg); }
.logout-btn-mt { margin-top: 16px; }

/* Layout */
.teacher-app-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.body { display: flex; flex: 1; }

/* Sidebar */
.sidebar { width: var(--sidebar-w); background: var(--bg-white); border-right: 1px solid var(--border); padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.nav-section-label { font-size: 10px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.6px; padding: 8px 10px 4px; margin-top: 4px; }
.nav-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text-muted); border: none; background: transparent; width: 100%; text-align: left; font-family: 'Nunito', sans-serif; position: relative; }
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active { background: var(--gold-light); color: var(--gold-text); }
.nav-howto { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--green); border: 1.5px solid #bbf7d0; background: #f0fdf4; width: 100%; text-align: left; font-family: 'Nunito', sans-serif; margin-top: 6px; }
.nav-howto:hover { background: var(--green-light); }
.nav-howto.active { background: var(--green-light); border-color: #86efac; }
.nav-icon { font-size: 15px; width: 20px; text-align: center; }
.teacher-badge { font-size: 10px; background: var(--green-accent); color: white; padding: 2px 6px; border-radius: 10px; font-weight: 700; margin-left: auto; }
.notif-badge { background: #ef4444; color: white; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: none; align-items: center; justify-content: center; padding: 0 4px; margin-left: auto; }
.notif-badge.show { display: flex; }

/* Main content */
.main { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 16px; max-width: 1100px; }
.page { display: flex; flex-direction: column; gap: 16px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-title { font-size: 16px; font-weight: 700; }
.section-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Buttons */
.btn-primary { background: var(--gold); color: white; border: none; border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Nunito', sans-serif; }
.btn-primary:hover { background: #b45309; }
.btn-secondary { background: var(--bg-white); color: var(--text-dark); border: 1px solid var(--border); border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Nunito', sans-serif; }
.btn-secondary:hover { background: var(--bg); }
.btn-sm { font-size: 12px; padding: 5px 12px; }
.btn-danger-full { background: var(--red-light); color: var(--red-text); border: 1px solid var(--red-border); border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Nunito', sans-serif; }
.btn-danger-full:hover { background: #fecaca; }
.btn-warning-full { background: var(--gold-light); color: var(--gold-text); border: 1px solid #fde68a; border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Nunito', sans-serif; }
.btn-warning-full:hover { background: #fde68a; }
.btn-danger { background: transparent; color: var(--red-text); border: 1px solid var(--red-border); border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 600; cursor: pointer; font-family: 'Nunito', sans-serif; }
.btn-success { background: var(--green-accent); color: white; border: none; border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 600; cursor: pointer; font-family: 'Nunito', sans-serif; }
.btn-success-lg { padding: 9px 14px; font-size: 13px; border-radius: 8px; }
.btn-approve { background: var(--green-light); color: var(--green); border: 1px solid #86efac; border-radius: 8px; padding: 7px 14px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: 'Nunito', sans-serif; }
.btn-decline { background: var(--red-light); color: var(--red-text); border: 1px solid var(--red-border); border-radius: 8px; padding: 7px 14px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: 'Nunito', sans-serif; }
.btn-cancel { background: transparent; border: 1px solid var(--border); border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Nunito', sans-serif; color: var(--text-muted); }
.btn-full { width: 100%; }
.btn-accept { background: var(--green-light); color: var(--green); border: 1px solid #86efac; border-radius: 8px; padding: 8px 18px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: 'Nunito', sans-serif; }
.btn-accept:hover { background: #bbf7d0; }
.btn-decline-stu { background: var(--red-light); color: var(--red-text); border: 1px solid var(--red-border); border-radius: 8px; padding: 8px 18px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: 'Nunito', sans-serif; }
.btn-decline-stu:hover { background: #fecaca; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.stat-label { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; }
.stat-sub { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.stat-gold { color: var(--gold); }
.stat-green { color: var(--green-accent); }

/* Cards */
.row2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.card-no-pad { padding: 0 16px; }
.card-title { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }

/* Empty states */
.empty-state { text-align: center; padding: 32px; color: var(--text-faint); font-size: 13px; }
.empty-state-padded { padding: 32px; }
.empty-icon { font-size: 32px; margin-bottom: 8px; }

/* List items */
.si { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-light); }
.si:last-child { border-bottom: none; }
.avi { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.avi-lg { width: 38px; height: 38px; font-size: 13px; flex-shrink: 0; }
.avi-gold { background: var(--gold-light); color: var(--gold-text); }
.avi-green { background: var(--green-light); color: var(--green); }
.avi-color-0 { background: var(--gold-light); color: var(--gold-text); }
.avi-color-1 { background: var(--green-light); color: var(--green); }
.avi-color-2 { background: var(--purple-light); color: var(--purple-text); }
.avi-color-3 { background: var(--pink-light); color: var(--pink-text); }
.avi-color-4 { background: var(--blue-light); color: var(--blue-text); }
.si-info { flex: 1; min-width: 0; }
.si-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* Badges */
.badge { font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.b-today { background: #d1fae5; color: #065f46; }
.b-soon { background: var(--gold-light); color: var(--gold-text); }
.b-done { background: var(--border-light); color: var(--text-muted); }
.b-cancelled { background: var(--red-light); color: var(--red-text); }
.b-accepted { background: var(--green-light); color: var(--green); }
.b-declined { background: var(--red-light); color: var(--red-text); }
.b-pending { background: var(--gold-light); color: var(--gold-text); }
.b-new { background: var(--purple-light); color: var(--purple-text); }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: var(--gold-light); color: var(--gold-text); font-weight: 600; }

/* Progress bars */
.prog-item { margin-bottom: 14px; }
.prog-item-sm { margin-bottom: 10px; }
.prog-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; font-weight: 600; }
.prog-row-pct { color: var(--text-muted); }
.prog-subject { font-weight: 400; font-size: 11px; color: var(--text-muted); }
.prog-bar { height: 7px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 4px; transition: width 0.5s; }
.prog-fill.color-gold { background: var(--gold); }
.prog-fill.color-green { background: var(--green-accent); }
.prog-fill.color-blue { background: var(--blue); }
.prog-fill.color-pink { background: var(--pink); }
.trend-up { color: var(--green-accent); font-size: 11px; }
.trend-down { color: var(--red); font-size: 11px; }

/* Session filter bar */
.session-filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-tabs { display: flex; background: var(--border-light); border-radius: 10px; padding: 3px; gap: 2px; }
.ftab { padding: 6px 13px; border-radius: 8px; border: none; background: transparent; font-size: 12px; font-weight: 600; cursor: pointer; font-family: 'Nunito', sans-serif; color: var(--text-muted); transition: all 0.15s; white-space: nowrap; }
.ftab:hover { color: var(--text); }
.ftab.active { background: var(--bg-white); color: var(--gold); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.student-filter { padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; font-family: 'Nunito', sans-serif; color: var(--text-dark); background: var(--bg-white); cursor: pointer; outline: none; font-weight: 500; }
.student-filter:focus { border-color: var(--gold); }
.session-count-label { font-size: 12px; color: var(--text-faint); margin-left: auto; white-space: nowrap; }

/* Calendar */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-nav-title { font-size: 13px; font-weight: 700; color: var(--text); }
.cal-nav-btn { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-white); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-dark); font-family: 'Nunito', sans-serif; transition: background 0.1s; }
.cal-nav-btn:hover { background: var(--gold-light); border-color: #fde68a; color: var(--gold-text); }
.cal-today-btn { font-size: 11px; font-weight: 600; padding: 3px 8px; border: 1px solid var(--border); border-radius: 6px; background: transparent; cursor: pointer; color: var(--text-muted); font-family: 'Nunito', sans-serif; display: block; margin: 0 auto 8px; }
.cal-today-btn:hover { background: var(--bg); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-hdr { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-muted); padding: 3px 0; }
.cal-d { text-align: center; font-size: 12px; padding: 6px 3px; border-radius: 6px; cursor: pointer; font-weight: 500; transition: background 0.1s; }
.cal-d:hover { background: var(--gold-light); color: var(--gold-text); }
.cal-d.has { background: var(--gold-light); color: var(--gold-text); font-weight: 700; }
.cal-d.has:hover { background: #fde68a; }
.cal-d.tod { background: var(--gold); color: white; font-weight: 700; }
.cal-d.tod:hover { background: #b45309; }
.cal-d.emp { color: transparent; pointer-events: none; }
.cal-d.other-month { color: #d1d5db; font-weight: 400; }
.cal-d.other-month:hover { background: var(--border-light); color: var(--text-faint); }
.cal-hint { margin-top: 10px; font-size: 11px; color: var(--text-faint); text-align: center; }

/* Student rows */
.student-row { display: flex; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background 0.1s; }
.student-row:last-child { border-bottom: none; }
.student-row:hover { background: #fffbeb; }
.student-row:hover .edit-hint { opacity: 1; }
.student-row-info { flex: 1; min-width: 0; }
.student-row-name { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.student-row-details { font-size: 11px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-tag { font-size: 10px; padding: 1px 6px; border-radius: 8px; font-weight: 600; flex-shrink: 0; }
.portal-yes { background: var(--green-light); color: var(--green); }
.portal-no { background: var(--border-light); color: var(--text-faint); }

/* Session rows */
.session-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background 0.1s; }
.session-row:last-child { border-bottom: none; }
.session-row:hover { background: #fffbeb; }
.session-row:hover .edit-hint { opacity: 1; }
.session-row.is-cancelled { opacity: 0.55; }
.session-row.is-done { opacity: 0.8; }
.edit-hint { font-size: 11px; color: var(--gold); font-weight: 600; opacity: 0; transition: opacity 0.15s; white-space: nowrap; flex-shrink: 0; }

/* Inbox */
.inbox-item { background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.inbox-item.unread { border-left: 3px solid var(--gold); }
.inbox-item-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.inbox-item-title { font-size: 13px; font-weight: 700; color: var(--text); }
.inbox-item-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.inbox-item-note { font-size: 12px; color: var(--text-dark); background: var(--bg); border-radius: 8px; padding: 8px 10px; border-left: 3px solid var(--gold); font-style: italic; }
.inbox-item-actions { display: flex; gap: 8px; }
.declined-followup { font-size: 12px; color: var(--red-text); background: var(--red-light); border-radius: 8px; padding: 8px 10px; }
.read-label { font-size: 11px; color: var(--text-faint); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--bg-white); border-radius: 16px; padding: 24px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; }
.modal h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.modal-subtitle { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.modal-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.form-group { margin-bottom: 14px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-dark); margin-bottom: 5px; display: block; text-transform: uppercase; letter-spacing: 0.3px; }
.form-hint { font-size: 11px; color: var(--text-faint); font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-input { width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; font-family: 'Nunito', sans-serif; color: var(--text); outline: none; background: var(--bg-white); }
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-light); }
.form-input:disabled { background: var(--bg); color: var(--text-faint); cursor: not-allowed; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.modal-actions-spread { display: flex; gap: 8px; justify-content: space-between; margin-top: 20px; align-items: center; flex-wrap: wrap; }
.modal-actions-right { display: flex; gap: 8px; }

/* Status banner */
.status-banner { border-radius: 8px; padding: 8px 12px; font-size: 12px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.status-banner.completed { background: var(--green-light); color: var(--green); }
.status-banner.cancelled { background: var(--red-light); color: var(--red-text); }

/* Student app */
.student-nav { background: var(--bg-white); border-bottom: 1px solid var(--border); display: flex; gap: 4px; padding: 8px 20px; position: sticky; top: var(--nav-h); z-index: 50; }
.stu-tab { padding: 7px 16px; border-radius: 8px; border: none; background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Nunito', sans-serif; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.stu-tab:hover { background: var(--bg); color: var(--text); }
.stu-tab.active { background: var(--gold-light); color: var(--gold-text); }
.stu-page { display: flex; flex-direction: column; gap: 16px; }
.student-main { flex: 1; padding: 20px; max-width: 800px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.student-hero { background: linear-gradient(135deg, var(--gold-light), #fffbeb); border: 1px solid #fde68a; border-radius: 16px; padding: 20px 24px; }
.student-hero h2 { font-size: 18px; font-weight: 700; color: var(--gold-text); margin-bottom: 3px; }
.student-hero p { font-size: 13px; color: #a16207; }
.student-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.student-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; }
.student-card-val { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.student-card-lbl { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.stu-section-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.stu-session-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.stu-session-card.pending-response { border-left: 3px solid var(--gold); }
.stu-session-past { opacity: 0.75; }
.stu-session-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.stu-session-title { font-size: 14px; font-weight: 700; color: var(--text); }
.stu-session-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.stu-session-note { font-size: 12px; color: var(--text-dark); background: #fffbeb; border-radius: 8px; padding: 8px 10px; border-left: 3px solid #fde68a; }
.stu-session-note-normal { font-style: normal; }
.stu-session-note-label { font-size: 10px; font-weight: 700; color: #a16207; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 3px; }
.stu-response-btns { display: flex; gap: 8px; }
.stu-respond-prompt { font-size: 12px; color: var(--gold-text); margin-bottom: 8px; font-weight: 600; }
.stu-response-status { font-size: 12px; font-weight: 600; }
.stu-response-status.accepted { color: var(--green); }
.stu-response-status.declined { color: var(--red-text); }

/* Request form */
.request-form-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.request-form-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.request-form-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

/* Scores */
.score-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.score-row:last-child { border-bottom: none; }
.score-date { font-size: 12px; color: var(--text-muted); width: 80px; flex-shrink: 0; }
.score-subject { font-size: 13px; font-weight: 600; flex: 1; }
.score-bar-wrap { flex: 1; background: var(--border-light); border-radius: 4px; height: 6px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 4px; }
.score-bar-fill.score-high { background: var(--green-accent); }
.score-bar-fill.score-mid { background: var(--gold); }
.score-bar-fill.score-low { background: var(--red); }
.score-pct { font-size: 14px; font-weight: 700; min-width: 36px; text-align: right; }
.score-pct.score-high { color: var(--green-accent); }
.score-pct.score-mid { color: var(--gold); }
.score-pct.score-low { color: var(--red); }

/* Access denied */
.access-denied-wrap { padding-top: 40px; }
.access-denied { background: var(--bg-white); border: 1px solid #fde68a; border-radius: 16px; padding: 40px 32px; text-align: center; max-width: 480px; margin: 0 auto; }
.access-denied-icon { font-size: 48px; margin-bottom: 16px; }
.access-denied h3 { font-size: 18px; font-weight: 700; color: var(--gold-text); margin-bottom: 10px; }
.access-denied p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }
.access-denied-email { margin-top: 16px; font-size: 12px; color: var(--text-faint); }

/* Materials */
.material-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.material-row:last-child { border-bottom: none; }
.mat-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.mat-bg-0 { background: var(--gold-light); }
.mat-bg-1 { background: var(--green-light); }
.mat-bg-2 { background: var(--purple-light); }
.mat-bg-3 { background: var(--pink-light); }
.mat-bg-4 { background: var(--blue-light); }
.mat-info { flex: 1; }
.mat-title { font-size: 13px; font-weight: 600; }
.mat-sub { font-size: 11px; color: var(--text-muted); }
.mat-link { font-size: 11px; color: var(--gold); font-weight: 600; text-decoration: none; }

/* How-To */
.howto-badge { font-size: 11px; background: var(--green-accent); color: white; padding: 2px 8px; border-radius: 10px; font-weight: 700; margin-left: 6px; vertical-align: middle; }
.howto-hero { background: linear-gradient(135deg, var(--gold-light), var(--green-light)); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; display: flex; align-items: center; gap: 16px; }
.howto-star { font-size: 40px; }
.howto-hero-title { font-size: 17px; font-weight: 700; color: var(--gold-text); margin-bottom: 4px; }
.howto-hero-text { font-size: 13px; color: #a16207; line-height: 1.5; }
.howto-text { font-size: 13px; color: var(--text-dark); line-height: 1.8; }

/* Toast */
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--text); color: white; padding: 12px 18px; border-radius: 10px; font-size: 13px; font-weight: 500; z-index: 999; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.toast.show { opacity: 1; }

/* Responsive */
@media (max-width: 700px) {
  .sidebar { display: none; }
  .stats-grid, .student-stats { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .session-filter-bar { flex-direction: column; align-items: stretch; }
}