:root {
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --surface2: #F0EEE9;
  --border: #E2DED6;
  --border-light: #EAE7E1;
  --text: #1A1916;
  --text-secondary: #6B6860;
  --text-muted: #A09D97;
  --accent: #E53935;
  --accent-light: #FDECEA;
  --accent-mid: #C62828;
  --danger: #C0392B;
  --danger-light: #FBEAEA;
  --warning: #B5680A;
  --warning-light: #FDF3E3;
  --info: #1A5EA8;
  --info-light: #E8F0FA;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --transition: 0.15s ease;
  --font-scale: 1;
  /* Year colors */
  --y7-dark: #1565C0; --y7-light: #42A5F5; /* blue */
  --y8-dark: #2E7D32; --y8-light: #66BB6A; /* green */
  --y9-dark: #6A1B9A; --y9-light: #AB47BC; /* purple */
  --y10-dark: #E65100; --y10-light: #FFA726; /* orange */
  --y11-dark: #880E4F; --y11-light: #EC407A; /* pink */
  --y12-dark: #4E342E; --y12-light: #A1887F; /* brown */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body, html { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); height: 100vh; width: 100vw; overflow: hidden; }
#app-shell, .app-layout { height: 100%; width: 100%; display: flex; overflow: hidden; }

/* Sidebar */
.sidebar {
  width: 56px; height: 100vh; background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  transition: width 0.22s cubic-bezier(.4,0,.2,1); overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { width: 0; height: 0; }
.sidebar:hover { width: 220px; }
.sidebar-brand {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap; overflow: hidden;
  min-height: 64px; display: flex; flex-direction: row; align-items: center; gap: 10px;
}
.brand-logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 15px; font-weight: 600;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; opacity: 0; transition: opacity 0.15s ease; }
.sidebar:hover .brand-text { opacity: 1; }
.brand-name {
  font-family: 'Fraunces', serif;
  font-size: 15px; font-weight: 600; color: var(--accent);
  display: block; line-height: 1.2;
}
.brand-sub { font-size: 10px; color: var(--text-muted); margin-top: 1px; display: block; }
.nav { padding: 12px 8px; flex: 1; overflow: hidden; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--radius-sm); cursor: pointer; font-size: 13.5px;
  font-weight: 500; color: var(--text-secondary); transition: all var(--transition); margin-bottom: 2px;
  user-select: none; white-space: nowrap; position: relative;
}
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active { background: var(--accent-light); color: var(--accent); }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item > span:not(.settings-onb-badge) { opacity: 0; transition: opacity 0.15s ease; }
.sidebar:hover .nav-item > span:not(.settings-onb-badge) { opacity: 1; }
.dark-toggle span { opacity: 0; transition: opacity 0.15s ease; }
.sidebar:hover .dark-toggle span { opacity: 1; }
.dark-toggle .toggle-switch { opacity: 0; transition: opacity 0.15s ease; }
.sidebar:hover .dark-toggle .toggle-switch { opacity: 1; }
.sidebar-footer {
  padding: 8px 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}
.dark-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  user-select: none;
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar:not(:hover) .dark-toggle,
.sidebar:not(:hover) .sidebar-signout {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}
.sidebar:not(:hover) .dark-toggle span,
.sidebar:not(:hover) .dark-toggle .toggle-switch,
.sidebar:not(:hover) .sidebar-signout span {
  display: none;
}
.sidebar:not(:hover) .sidebar-footer-row {
  padding: 0;
  justify-content: center;
}
.sidebar:not(:hover) .sidebar-account .color-legend {
  padding-left: 8px;
  padding-right: 8px;
}
.sidebar:not(:hover) .dark-toggle svg,
.sidebar:not(:hover) .sidebar-signout svg {
  margin: 0;
}
.dark-toggle svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: block;
  margin: 0;
}
.dark-toggle span { opacity: 0; transition: opacity 0.18s; }
.sidebar:hover .dark-toggle span { opacity: 1; }
.toggle-switch {
  width: 36px;
  height: 20px;
  background: var(--border);
  border-radius: 99px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
  margin-left: auto;
  transition: opacity 0.18s, background 0.2s;
}
.sidebar:hover .toggle-switch { opacity: 1; }
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
html.dark .toggle-switch { background: var(--accent); }
html.dark .toggle-switch::after { transform: translateX(16px); }

.sidebar-signout {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-footer {
  padding: 8px 0;
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-top: auto;
}
.sidebar-footer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  overflow: hidden;
}
.sidebar-account .color-legend {
  margin-bottom: 0;
  padding: 0 14px 8px;
}
.sidebar-account .sidebar-footer-row {
  padding-top: 12px;
}
.sidebar-signout:hover { background: var(--danger-light); color: var(--danger); }
.sidebar-signout svg { flex-shrink: 0; width: 20px; height: 20px; }
.sidebar-signout span { opacity: 0; transition: opacity 0.18s; }
.sidebar:hover .sidebar-signout span { opacity: 1; }
.color-legend { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; opacity:0; transition: opacity 0.15s ease; padding: 0 16px; }
.sidebar:hover .color-legend { opacity:1; }
.legend-item { opacity:0; transition: opacity 0.15s ease; }
.sidebar:hover .legend-item { opacity:1; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; margin-bottom: 4px; color: var(--text-secondary); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sidebar-account {
  margin-top: auto;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.legend-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 14px 10px;
}
.legend-empty {
  opacity: 0;
  transition: opacity 0.15s ease;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar:hover .legend-empty { opacity: 1; }
.legend-content .legend-item {
  margin-bottom: 0;
}
.legend-content .legend-item span {
  line-height: 1.15;
}

/* Main */
.main { flex: 1; height: 100vh; display: flex; flex-direction: column; min-width: 0; overflow-y: auto; overflow-x: hidden; }
.page { display: none; flex-direction: column; width: 100%; }
.page.active { display: block; flex-shrink: 0; min-height: 100%; }
#page-calendar.active { height: 100vh; overflow: hidden; flex: 1; min-height: 0; display: flex; flex-direction: column; }

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-enter {
  animation: pageFadeIn 0.18s ease forwards;
}

/* Top bar */
.topbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0 20px; height: 52px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 50;
  gap: 12px; flex-shrink: 0;
}
.page-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.topbar-actions { display: flex; gap: 8px; align-items: center; }

/* Content */
.content { padding: 24px 20px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card-header { padding: 18px 20px 14px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 14px; font-weight: 600; }
.card-body { padding: 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent; transition: all var(--transition);
  font-family: 'DM Sans', sans-serif; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #C62828; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface2); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }
.btn svg { width: 14px; height: 14px; }

/* Form elements */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text);
  background: var(--surface); font-family: 'DM Sans', sans-serif;
  transition: border-color var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Online lesson composer */
.lesson-online-card {
  border-top: 1px solid var(--border-light);
  margin-top: 4px;
  padding-top: 12px;
}
.lesson-online-subsection {
  margin: 2px 0 16px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.lesson-online-subsection-title {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lesson-online-switch {
  --lesson-online-switch-width: 42px;
  --lesson-online-switch-height: 24px;
  --lesson-online-switch-knob: 16px;
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface2);
  cursor: pointer;
}
.lesson-online-switch:hover {
  border-color: rgba(61, 186, 106, 0.28);
}
.lesson-online-switch input {
  position: absolute; opacity: 0; pointer-events: none;
}
.lesson-online-switch-ui {
  width: var(--lesson-online-switch-width); height: var(--lesson-online-switch-height); border-radius: 999px;
  background: var(--border); border: 1px solid var(--border);
  position: relative; flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}
.lesson-online-switch-knob {
  position: absolute;
  top: calc((var(--lesson-online-switch-height) - var(--lesson-online-switch-knob)) / 2);
  left: calc((var(--lesson-online-switch-height) - var(--lesson-online-switch-knob)) / 2);
  width: var(--lesson-online-switch-knob); height: var(--lesson-online-switch-knob); border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: transform var(--transition);
}
.lesson-online-switch input:checked + .lesson-online-switch-ui {
  background: var(--accent); border-color: var(--accent);
}
.lesson-online-switch input:checked + .lesson-online-switch-ui .lesson-online-switch-knob {
  transform: translateX(calc(var(--lesson-online-switch-width) - var(--lesson-online-switch-height)));
}
.lesson-online-switch-copy {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.lesson-online-switch-copy strong {
  font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.2;
}
.lesson-online-switch-copy small {
  font-size: 11.5px; color: var(--text-muted); line-height: 1.35;
}
.lesson-online-fields {
  margin-top: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm); background: var(--surface2);
  border: 1px solid var(--border); flex-direction: column; gap: 12px;
}
.lesson-online-note {
  padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface);
  border: 1px dashed var(--border); color: var(--text-secondary); font-size: 12.5px; line-height: 1.55;
}
.lesson-online-connection {
  flex-direction: column; gap: 8px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.lesson-online-connection-status {
  font-size: 12.5px; color: var(--text-secondary); line-height: 1.5;
}

details.zoom-dev-config {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface2);
  padding: 10px 12px;
}
details.zoom-dev-config > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}
details.zoom-dev-config > summary::-webkit-details-marker { display: none; }
details.zoom-dev-config .zoom-dev-config-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Badge */
.badge {
  display: inline-flex; align-items: center; padding: 2px 8px;
  border-radius: 20px; font-size: 11px; font-weight: 600;
}
.badge-success { background: var(--accent-light); color: var(--accent); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-neutral { background: var(--surface2); color: var(--text-secondary); }

/* Alerts */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 10px;
  display: flex; align-items: flex-start; gap: 10px; font-size: 13px;
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-danger { background: var(--danger-light); color: var(--danger); border: 1px solid #F5C0BE; }
.alert-warning { background: var(--warning-light); color: var(--warning); border: 1px solid #F0D6B0; }
.alert-info { background: var(--info-light); color: var(--info); border: 1px solid #B8D0F0; }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border-light); }
td { padding: 11px 14px; border-bottom: 1px solid var(--border-light); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface2); }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.stat-label { font-size: 11.5px; color: var(--text-muted); font-weight: 500; margin-bottom: 6px; }
.stat-value { font-size: 26px; font-weight: 600; font-family: 'Fraunces', serif; line-height: 1; }
.stat-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.modal-box {
  background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 520px;
  max-height: 90vh; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  min-height: 0; position: relative; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.modal-box.modal-lg { max-width: 680px; }
.modal-header { padding: 20px 24px 16px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; background: var(--surface); z-index: 10; border-bottom: 1px solid var(--border-light, transparent); }
.modal-title { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; }
.modal-close { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; border: none; background: var(--surface2); color: var(--text-secondary); font-size: 18px; }
.modal-close:hover { background: var(--border); }
.modal-body { padding: 16px 24px; overflow-y: auto; flex: 1; min-height: 0; -webkit-overflow-scrolling: touch; }
.modal-footer { padding: 16px 24px 20px; display: flex; gap: 8px; justify-content: flex-end; flex-shrink: 0; background: var(--surface); z-index: 10; border-top: 1px solid var(--border-light, transparent); margin-top: auto; }

/* ===== CALENDAR ===== */
.cal-layout { display: flex; gap: 0; flex: 1; min-height: 0; overflow: hidden; }

/* Mini calendar sidebar */
.mini-cal-sidebar {
  width: 220px; flex-shrink: 0; border-right: 1px solid var(--border);
  background: var(--surface); overflow-y: auto; padding: 16px;
}
.mini-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mini-cal-title { font-size: 13px; font-weight: 600; }
.mini-cal-nav { display: flex; gap: 2px; }
.mini-cal-nav button {
  width: 24px; height: 24px; border: none; background: transparent; cursor: pointer;
  border-radius: 4px; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.mini-cal-nav button:hover { background: var(--surface2); }
.mini-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.mini-cal-day-header { text-align: center; font-size: 10px; color: var(--text-muted); font-weight: 600; padding: 4px 0; }
.mini-cal-day {
  text-align: center; font-size: 11px; padding: 4px 2px; border-radius: 4px; cursor: pointer;
  color: var(--text-secondary); transition: all var(--transition);
}
.mini-cal-day:hover { background: var(--surface2); color: var(--text); }
.mini-cal-day.other { color: var(--text-muted); opacity: 0.5; }
.mini-cal-day.today { background: var(--accent); color: #fff !important; font-weight: 600; }
.mini-cal-day.selected { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.mini-cal-day.has-event::after { content:''; display: block; width: 4px; height: 4px; background: var(--accent-mid); border-radius: 50%; margin: 1px auto 0; }

.mini-cal-search { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.mini-cal-search input { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; font-family: 'DM Sans', sans-serif; background: var(--surface); color: var(--text); }
.mini-cal-search input:focus { outline: none; border-color: var(--accent); }
.search-results { margin-top: 8px; max-height: 200px; overflow-y: auto; }
.search-result-item { padding: 6px 8px; border-radius: var(--radius-sm); cursor: pointer; font-size: 11.5px; color: var(--text-secondary); border-left: 3px solid transparent; margin-bottom: 2px; }
.search-result-item:hover { background: var(--surface2); color: var(--text); }

/* Cal main */
.cal-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }

#cal-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }

.cal-toolbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0 20px; height: 52px; display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.cal-view-nav { display: flex; align-items: center; gap: 6px; }
.cal-view-nav button {
  width: 28px; height: 28px; border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-secondary);
}
.cal-view-nav button:hover { background: var(--surface2); }
.cal-period-label { font-size: 15px; font-weight: 600; min-width: 160px; color: var(--text); }
.cal-view-tabs { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-left: auto; }
.cal-view-tab { padding: 5px 12px; font-size: 12px; cursor: pointer; background: var(--surface); color: var(--text-secondary); border: none; font-family: 'DM Sans', sans-serif; font-weight: 500; transition: all var(--transition); }
.cal-view-tab.active { background: var(--accent); color: #fff; }
.cal-view-tab:hover:not(.active) { background: var(--surface2); }

/* Week/Day view */
.cal-week-grid {
  flex: 1; overflow: visible;
  display: grid;
  grid-template-columns: 52px repeat(7, 1fr);
}
.cal-week-header {
  display: grid;
  grid-template-columns: 52px repeat(7, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0; z-index: 10;
}
.cal-week-header-cell {
  padding: 8px 4px; text-align: center; font-size: 11px;
  border-right: 1px solid var(--border-light); color: var(--text-secondary);
}
.cal-week-header-day { font-size: 18px; font-weight: 600; color: var(--text); display: block; }
.cal-week-header-cell.today .cal-week-header-day { color: var(--accent); }
.cal-week-header-cell.today { background: var(--accent-light); }
.cal-time-col { color: var(--text-muted); font-size: 10px; text-align: right; padding-right: 8px; padding-top: 0; border-right: 1px solid var(--border-light); position: relative; }
.cal-time-label { white-space: nowrap; }
.cal-time-label { position: absolute; top: -7px; right: 8px; background: var(--surface); padding: 0 2px; }
.cal-day-col { border-right: 1px solid var(--border-light); position: relative; min-height: 1200px; background: var(--surface); }
.cal-day-col:hover { background: var(--surface2); }
.cal-day-col.touch-target { background: rgba(42,107,60,0.08) !important; }
.cal-hour-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--border-light); }
.cal-hour-line.half { border-top-style: dashed; opacity: 0.5; }
.cal-event-block {
  position: absolute; left: 2px; right: 2px; border-radius: 4px;
  padding: 3px 6px; font-size: 11px; font-weight: 500; overflow: hidden;
  cursor: pointer; transition: filter var(--transition);
  z-index: 2; border-left: 3px solid rgba(0,0,0,0.2);
}
.cal-event-block.online { padding-right: 24px; }
.cal-event-block:hover { filter: brightness(0.92); z-index: 5; }
.cal-event-block .ev-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 11px; }
.cal-event-block .ev-sub { font-size: 10px; opacity: 0.85; }
.cal-online-badge {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.38);
  border: 1px solid rgba(255,255,255,0.28);
  color: currentColor;
  position: absolute;
  top: 4px;
  right: 4px;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.cal-online-badge svg { width: 10px; height: 10px; display: block; }

/* Modo Edição */
.cal-edit-mode-btn { transition: all var(--transition); }
.cal-edit-mode-btn.active { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; }
@keyframes edit-mode-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(229,57,53,0.35); } 50% { box-shadow: 0 0 0 4px rgba(229,57,53,0); } }
.cal-event-block.edit-mode-active { animation: edit-mode-pulse 1.5s infinite; cursor: crosshair !important; }
.cal-event-block.edit-mode-active:hover { filter: brightness(0.88) !important; }

/* Botões de marcar feita e "✓ Todas" — só visíveis em modo edição */
.cal-event-block .ev-complete-btn { display: none !important; }
#cal-body.edit-mode .cal-event-block .ev-complete-btn { display: flex !important; }
#cal-body:not(.edit-mode) button[title*="Marcar todas"],
#cal-body:not(.edit-mode) button[title*="todas as aulas"],
#cal-body:not(.edit-mode) button[title*="já estão"] { display: none !important; }

.cal-drop-zone { position: absolute; inset: 0; }
.cal-current-time { position: absolute; left: 0; right: 0; z-index: 3; }
.cal-current-time::before { content:''; position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); }
.cal-current-time::after { content:''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; background: var(--danger); border-radius: 50%; }

/* Month view */
.cal-month-grid {
  flex: 1; overflow-y: auto;
  display: grid; grid-template-rows: auto 1fr;
}
.cal-month-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(100px, 1fr);
  border-left: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
}
.cal-month-day-header {
  text-align: center; font-size: 11px; color: var(--text-muted); font-weight: 600;
  padding: 8px; background: var(--surface); border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}
.cal-month-cell {
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 4px; cursor: pointer; transition: background var(--transition);
  min-height: 100px; background: var(--surface);
}
.cal-month-cell:hover { background: var(--surface2); }
.cal-month-cell.other { background: var(--bg); opacity: 0.6; }
.cal-month-cell.today { background: var(--accent-light); }
.cal-month-num {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.cal-month-cell.today .cal-month-num { background: var(--accent); color: #fff; }
.cal-month-ev {
  font-size: 10px; padding: 1px 5px; border-radius: 3px; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; font-weight: 500;
}

/* Day view */
.cal-day-view { flex: 1; overflow: visible; display: flex; }
.cal-day-view .cal-time-col { flex-shrink: 0; width: 52px; }
.cal-day-view .cal-day-col { flex: 1; }

/* Drag */
/* Original slot fades out; the drag image (browser default) is fully opaque */
.dragging { opacity: 0.2 !important; cursor: grabbing !important; }

/* ===== STUDENTS ===== */
.students-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filter-chip {
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
  cursor: pointer; border: 1.5px solid var(--text-secondary); background: transparent;
  color: var(--text-secondary); transition: all var(--transition);
}
.filter-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.filter-chip:hover:not(.active) { background: var(--surface2); color: var(--text); border-color: var(--text); }
.filter-sep { color: var(--border); }

/* ===== PAYMENTS ===== */
.payment-month-tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; }
.payment-month-tab { padding: 6px 14px; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 500; cursor: pointer; border: 1.5px solid var(--text-secondary); background: transparent; color: var(--text-secondary); white-space: nowrap; transition: all var(--transition); }
.payment-month-tab.active { background: var(--accent); color: #fff !important; border-color: var(--accent); font-weight: 600; }
.payment-month-tab:hover:not(.active) { background: var(--surface2); color: var(--text); border-color: var(--text); }

.student-payment-group { margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.student-payment-header {
  padding: 12px 16px; background: var(--surface2); display: flex; align-items: center;
  justify-content: space-between; cursor: pointer; user-select: none;
}
.student-payment-name { font-weight: 600; font-size: 14px; }
.student-payment-total { font-size: 13px; }
.student-payment-rows { background: var(--surface); }
.student-payment-row { display: flex; align-items: center; padding: 10px 16px; border-top: 1px solid var(--border-light); gap: 10px; font-size: 13px; }
.student-payment-row .details-text { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
/* Botões dentro das linhas de pagamento: surface2 para contraste sobre surface */
.student-payment-row .btn-secondary,
.student-payment-rows .btn-secondary {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--text);
}
.student-payment-row .btn-secondary:hover,
.student-payment-rows .btn-secondary:hover { background: var(--border); }
/* Botão Recibo no cabeçalho do grupo (surface2) — usar surface para ter contraste */
.student-payment-header .btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.student-payment-header .btn-secondary:hover { background: var(--surface2); }

/* Detail notes */
.detail-input { width: 100%; border: none; background: transparent; font-size: 12px; color: var(--text-secondary); font-family: 'DM Sans', sans-serif; cursor: pointer; }
.detail-input:focus { outline: none; color: var(--text); }
.detail-input::placeholder { color: var(--text-muted); }

/* ===== DASHBOARD ===== */
.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }

/* PC Dashboard redesign */
.pc-dash-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 20px;
}
.pc-dash-greeting { font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }
.pc-dash-subtitle { font-size: 26px; font-weight: 700; font-family: 'Fraunces', serif; line-height: 1.1; color: var(--text); }

/* Stats row (compact pills) */
.pc-stats-row {
  display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.pc-stat-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 10px 16px;
  box-shadow: var(--shadow-sm); flex: 1; min-width: 120px;
}
.pc-stat-label { font-size: 11.5px; color: var(--text-muted); font-weight: 500; }
.pc-stat-value { font-size: 20px; font-weight: 700; font-family: 'Fraunces', serif; margin-left: auto; }
.pc-stat-sub { font-size: 11px; color: var(--text-muted); }

/* PC week strip */
.pc-week-strip {
  display: flex; gap: 8px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}
.pc-week-day-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 8px 6px; border-radius: 10px;
  border: none; background: transparent; cursor: pointer;
  position: relative; transition: background 0.15s;
  color: var(--text-secondary);
}
.pc-week-day-btn:hover { background: var(--surface2); }
.pc-week-day-btn.active {
  background: var(--accent); color: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,0.35);
  transform: translateY(-2px) scale(1.04);
  border-radius: 12px;
}
.pc-week-day-btn.active .pc-day-num { font-size: 22px; }
.pc-week-day-btn.active .pc-day-name { color: rgba(255,255,255,0.85); }
.pc-week-day-btn.today:not(.active) { border: 1.5px solid var(--accent); color: var(--accent); }
.pc-day-num { font-size: 18px; font-weight: 700; font-family: 'Fraunces', serif; line-height: 1; transition: font-size 0.1s; }
.pc-day-name { font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.pc-day-badge {
  position: absolute; top: 4px; right: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--danger, #e53935); color: #fff;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.pc-week-day-btn.active .pc-day-badge { background: rgba(255,255,255,0.3); }


/* PC main grid (2/3 + 1/3) */
.pc-dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }

/* Lesson rows in PC day card */
.pc-lesson-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: background 0.1s;
}
.pc-lesson-row:last-child { border-bottom: none; }
.pc-lesson-row:hover { background: var(--surface2); margin: 0 -20px; padding: 10px 20px; border-radius: 8px; border-bottom-color: transparent; }
.pc-lesson-bar { width: 4px; height: 36px; border-radius: 2px; flex-shrink: 0; }
.pc-lesson-info { flex: 1; min-width: 0; }
.pc-lesson-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-lesson-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pc-lesson-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; margin-left: auto; }

/* Alert cards (PC) */
.pc-alerts-body { display: flex; flex-direction: column; gap: 10px; }
.pc-alert-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: opacity 0.15s;
}
.pc-alert-card:hover { opacity: 0.85; }
.pc-alert-card.warning { background: rgba(255,167,38,0.08); border-color: var(--medium, #FFA726); }
.pc-alert-card.danger  { background: rgba(229,57,53,0.07);  border-color: var(--danger, #e53935); }
.pc-alert-card.info    { background: rgba(41,182,246,0.07); border-color: var(--info, #29b6f6); }
.pc-alert-card.success { background: rgba(76,175,80,0.07);  border-color: var(--success, #4caf50); }
.pc-alert-icon { font-size: 18px; flex-shrink: 0; }
.pc-alert-info { flex: 1; min-width: 0; }
.pc-alert-title { font-size: 13px; font-weight: 600; color: var(--text); }
.pc-alert-desc  { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.pc-alert-arrow { font-size: 14px; color: var(--text-muted); flex-shrink: 0; }

/* Modal de dívidas (dashboard — linhas da lista) */
.debt-popup-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: background 0.12s;
}
.debt-popup-row:last-child { border-bottom: none; }
.debt-popup-row:hover { background: var(--surface2); }
.debt-popup-name { font-weight: 600; font-size: 13.5px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.debt-popup-meta { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.debt-popup-amount { font-weight: 700; font-size: 14px; color: var(--danger); white-space: nowrap; margin-left: 4px; }

/* Tab Resumo do aluno */
.st-summary-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px;
}
.st-summary-stat {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px; text-align: center;
}
.st-summary-val {
  font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.1;
}
.st-summary-val.accent { color: var(--accent); }
.st-summary-lbl { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }
.st-summary-stat.danger { border-color: var(--danger); background: var(--danger-light); }
.st-summary-stat.danger .st-summary-val { color: var(--danger); }
.st-summary-stat.ok { border-color: #2e7d32; background: #f1f8f2; }
.st-summary-stat.ok .st-summary-val { color: #2e7d32; }
.st-summary-stat.warning { border-color: var(--warning); background: var(--warning-light); }
.st-summary-stat.warning .st-summary-val { color: var(--warning); }
.st-summary-stat.muted .st-summary-val { color: var(--text-muted); font-size: 18px; }
.st-summary-notes {
  font-size: 13.5px; color: var(--text-secondary); background: var(--surface2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; line-height: 1.5; white-space: pre-wrap;
}
.st-summary-notes.muted { color: var(--text-muted); font-style: italic; }

/* Dívidas sidebar PC */
.pc-debt-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 4px; border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: background 0.15s; border-radius: var(--radius-sm);
}
.pc-debt-row:last-child { border-bottom: none; }
.pc-debt-row:hover { background: var(--surface2); }
.pc-debt-name { font-weight: 600; font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-debt-meta { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.pc-debt-amount { font-weight: 700; font-size: 13.5px; color: var(--danger); white-space: nowrap; margin-left: 4px; }

/* Sidebar week list */
.pc-sidebar-day { padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.pc-sidebar-day:last-child { border-bottom: none; }
.pc-sidebar-day-label {
  font-size: 11px; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.pc-sidebar-day-num { font-size: 11px; font-weight: 400; color: var(--text-muted); }
.pc-sidebar-lesson {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0 4px 8px; font-size: 12.5px;
}
.pc-sidebar-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pc-sidebar-lesson-info { flex: 1; min-width: 0; display: flex; gap: 5px; align-items: baseline; }
.pc-sidebar-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
.pc-sidebar-subj { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-sidebar-time { font-size: 11px; color: var(--text-secondary); flex-shrink: 0; margin-left: auto; }

/* Recurring modal */
.recur-option { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.recur-option:last-child { border-bottom: none; }
.recur-option label { font-size: 13.5px; cursor: pointer; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Utility */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.ml-auto { margin-left: auto; }
.text-muted { color: var(--text-muted); font-size: 12px; }
.text-danger { color: var(--danger); }
.text-success { color: var(--accent); }
.font-600 { font-weight: 600; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); font-size: 14px; }
.empty-state-icon { font-size: 32px; margin-bottom: 12px; }

/* Checkbox — accent-color nativo com fallback para mobile */
input[type=checkbox] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Tooltip */
[title] { cursor: help; }

/* ===== AUTH & LOADING SCREENS ===== */
#auth-screen, #loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.auth-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px 40px;
  max-width: 380px; width: 100%; text-align: center;
  box-shadow: var(--shadow);
}
.auth-logo { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.auth-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

/* Mensagens de feedback */
.auth-message {
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 14px; text-align: left;
}
.auth-message-error   { background: var(--danger-light);  color: var(--danger);  border: 1px solid #f5c0be; }
.auth-message-success { background: var(--info-light);    color: var(--info);    border: 1px solid #b8d0f0; }

/* Botões sociais (Google + Microsoft) */
.btn-social {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  font-family: 'DM Sans', sans-serif; color: var(--text);
  transition: all var(--transition); width: 100%; justify-content: center;
  margin-bottom: 8px;
}
.btn-social:hover { background: var(--surface2); }

/* Divisor "ou" */
.auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0; color: var(--text-muted); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Formulário email/password */
.auth-form { text-align: left; }
.auth-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--text);
  background: var(--surface); font-family: 'DM Sans', sans-serif;
  margin-bottom: 10px; transition: border-color var(--transition);
}
.auth-input:focus { outline: none; border-color: var(--accent); }
.btn-auth-primary {
  width: 100%; padding: 11px; border-radius: var(--radius-sm);
  background: var(--accent); color: white; border: none;
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: background var(--transition);
  margin-bottom: 10px;
}
.btn-auth-primary:hover { background: var(--accent-mid); }
.auth-links { display: flex; justify-content: space-between; margin-top: 2px; }
.auth-link {
  background: none; border: none; color: var(--accent);
  font-size: 12.5px; cursor: pointer; font-family: 'DM Sans', sans-serif;
  padding: 0; text-decoration: underline;
}
.auth-link:hover { color: var(--accent-mid); }

/* Barra de força da password */
.pw-strength { margin: -4px 0 10px; }
.pw-bar {
  height: 4px; background: var(--border); border-radius: 2px;
  overflow: hidden; margin-bottom: 8px;
}
.pw-bar-fill {
  height: 100%; width: 0%; border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}
.pw-rules {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px;
}
.pw-rules li {
  font-size: 11.5px; color: var(--danger);
  display: flex; align-items: center; gap: 4px;
  transition: color 0.2s;
}
.pr-icon { font-size: 11px; font-weight: 700; width: 12px; }

/* Compatibilidade — manter .btn-google como alias */
.btn-google { display: none; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { margin-top: 16px; font-size: 14px; color: var(--text-muted); }
.user-badge { padding: 10px 16px; font-size: 11px; color: var(--text-muted); border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.user-badge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-signout { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 11px; padding: 2px 6px; border-radius: 4px; font-family: 'DM Sans', sans-serif; flex-shrink: 0; }
.btn-signout:hover { background: var(--danger-light); color: var(--danger); }
#app-shell { display: none; }

/* Elementos só-mobile: escondidos por defeito no desktop */
.dash-alert-bell { display: none; }
.mobile-nav-add { display: none; }
.cal-fab { display: none; }
.hidden-fab { display: none !important; }

/* ===================================================
   MOBILE — barra de navegação em baixo, sidebar oculta
   =================================================== */
@media (max-width: 768px) {

  /* Esconde sidebar */
  .sidebar { display: none !important; }

  /* Conteúdo ocupa ecrã todo */
  .main { margin-left: 0 !important; height: 100vh; scrollbar-width: none; -ms-overflow-style: none; }
  .main::-webkit-scrollbar { display: none; }
  /* Calendar fills remaining space on mobile */
  #page-calendar.active { height: calc(100vh - env(safe-area-inset-bottom, 0px)); flex: 1; }

  /* Topbar mobile — identical to cal-mobile-header */
  .topbar {
    padding: 8px 12px;
    height: auto;
    min-height: 52px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 8px;
  }
  .page-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
  }
  .topbar-actions { gap: 6px; }
  .topbar .btn, .topbar .btn-primary, .topbar .btn-sm {
    font-size: 13px;
    padding: 7px 12px;
  }


  /* Conteúdo com padding menor e espaço para bottom nav */
  .content { padding: 16px; padding-bottom: 80px; }

  /* Stats 2x2 no mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }
  .stat-card { padding: 16px 14px !important; }
  .stat-value { font-size: 24px; }
  .stat-label { font-size: 11.5px; }
  .stat-sub { font-size: 11px; }

  /* Esconder botões de ação do header no mobile (Dashboard, Alunos e Calendário) */
  .topbar .btn-primary, .cal-mobile-header .btn-primary { display: none !important; }

  /* Dashboard grid em coluna única */
  .dash-grid { grid-template-columns: 1fr !important; }

  /* Cards mais compactos */
  .card-header { padding: 14px 16px 10px; }
  .card-body { padding: 14px; }

  /* Tabela scroll horizontal */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 500px; }

  /* ── CALENDÁRIO MOBILE (Google Calendar style) ── */
  /* Esconde a topbar do calendário — substituída pelo header mobile */
  #page-calendar .topbar { display: none; }

  /* Layout: tudo numa coluna, sem overflow duplo */
  #page-calendar { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

  .cal-layout {
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  /* Mini-cal colapsável no topo */
  .mini-cal-sidebar {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.28s cubic-bezier(.4,0,.2,1) !important;
    max-height: 280px !important;
    flex-shrink: 0 !important;
  }
  .mini-cal-sidebar.collapsed { max-height: 0 !important; border-bottom: none !important; }

  .mini-cal-header { padding: 10px 16px 4px !important; }
  .mini-cal-grid { padding: 0 8px 8px !important; }
  .mini-cal-search { display: none !important; } /* esconde pesquisa no mobile — está no header */

  /* Header mobile do calendário — sempre visível no topo */
  .cal-mobile-header {
    display: flex !important;
    align-items: center; padding: 8px 12px; gap: 8px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-shrink: 0; position: sticky; top: 0; z-index: 20;
  }
  .cal-mobile-month {
    font-size: 15px; font-weight: 600; flex: 1; cursor: pointer;
    display: flex; align-items: center; gap: 4px;
  }
  .cal-mobile-month svg { transition: transform 0.2s ease; }
  .cal-mobile-month.collapsed svg { transform: rotate(-90deg); }

  /* Toolbar do calendário — compacto no mobile */
  .cal-toolbar {
    padding: 6px 10px !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .cal-period-label { font-size: 12px !important; min-width: 0 !important; flex: 1; }
  .cal-view-tabs { margin-left: 0 !important; }
  .cal-view-tab { padding: 4px 8px !important; font-size: 11px !important; }
  .cal-view-nav button { width: 24px !important; height: 24px !important; }

  /* Main calendar area fills remaining space, scrolls internally */
  .cal-main {
    flex: 1 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }

  /* Cal body scrolls */
  #cal-body { flex: 1 !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch !important; background: var(--surface) !important; }

  /* Week grid on mobile — more compact */
  .cal-week-header-cell { padding: 4px 2px !important; }
  .cal-week-header-day { font-size: 14px !important; }

  /* Modais mais largos no mobile */
  .modal-overlay { padding: 12px; align-items: flex-end; overflow-y: auto; }
  .modal-box {
    max-width: 100% !important; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 92vh; overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  }

  /* Pagamentos tabs scroll */
  .payment-month-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }

  /* Botões maiores para touch */
  .btn { padding: 10px 16px; font-size: 13.5px; }
  .btn-sm { padding: 8px 14px; }

  /* Form inputs maiores */
  .form-input, .form-select, .form-textarea { padding: 11px 12px; font-size: 16px; } /* 16px evita zoom no iOS */
  .lesson-online-switch {
    --lesson-online-switch-width: 38px;
    --lesson-online-switch-height: 22px;
    --lesson-online-switch-knob: 14px;
    padding: 7px 9px;
    gap: 8px;
  }
  .lesson-online-subsection {
    margin-bottom: 14px;
    padding: 10px 0 12px;
  }
  .lesson-online-subsection-title {
    margin-bottom: 6px;
    font-size: 12px;
  }
  .lesson-online-fields {
    margin-bottom: 20px;
    padding: 12px;
  }
  
  /* Settings ocupa ecrã todo */
  #page-settings .content { max-width: 100% !important; }

  /* Barra de navegação em baixo */
  .mobile-nav {
    display: flex !important;
    align-items: center;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: none;
    padding: 0 12px calc(8px + env(safe-area-inset-bottom));
    height: auto;
    box-shadow: none;
  }
  html.dark .mobile-nav {
    background: transparent;
    border-top: none;
    box-shadow: none;
  }
  .mobile-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: 3px; cursor: pointer; padding: 4px 0;
    color: var(--text-muted); font-size: 10px; font-weight: 500;
    transition: color var(--transition); user-select: none;
  }
  .mobile-nav-item svg { width: 22px; height: 22px; }
  .mobile-nav-item.active { color: var(--accent); }
  .mobile-nav-item:active { opacity: 0.7; }

  /* Botão + central da nav */
  .mobile-nav-add { display: none !important; }

  /* FAB Nova Aula — só visível no calendário mobile */
  .cal-fab {
    display: flex;
    position: fixed;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 16px);
    right: 16px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(229,57,53,0.5);
    z-index: 50;
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .cal-fab:active { transform: scale(0.92); box-shadow: 0 2px 8px rgba(229,57,53,0.35); }

  /* Sininho de alertas no dashboard mobile */
  .dash-alert-bell {
    display: flex !important;
    align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
  }
  .dash-alert-bell svg { width: 18px; height: 18px; color: var(--text-secondary); }
  .dash-alert-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--accent); color: white;
    font-size: 9px; font-weight: 700;
    min-width: 16px; height: 16px;
    border-radius: 8px; padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--surface);
  }

  /* Blocos de aulas maiores no mobile */
  .cal-event-block { font-size: 12px !important; padding: 5px 7px !important; border-radius: 5px !important; border-left-width: 4px !important; }
  .cal-event-block.online { padding-right: 26px !important; }
  .cal-event-block .ev-name { font-size: 12.5px !important; white-space: normal !important; line-height: 1.3; }
  .cal-event-block .ev-sub { font-size: 11px !important; margin-top: 2px; }
  .cal-event-block .ev-complete-btn { width: 20px !important; height: 20px !important; font-size: 11px !important; }
  .cal-online-badge { width: 16px; height: 16px; top: 5px; right: 5px; }
  .cal-online-badge svg { width: 9px; height: 9px; }
}

/* Esconde a bottom nav no desktop - overridden below for mobile */

/* ===== DARK MODE ===== */
html.dark {
  --bg: #0F1117;
  --surface: #1A1D27;
  --surface2: #22263A;
  --border: #2E3348;
  --border-light: #252840;
  --text: #E8E9F0;
  --text-secondary: #9198B8;
  --text-muted: #5C6380;
  --accent: #EF5350;
  --accent-light: #2A1515;
  --accent-mid: #D32F2F;
  --danger: #E05252;
  --danger-light: #2A1818;
  --warning: #D4900A;
  --warning-light: #2A1F0A;
  --info: #4A8FD4;
  --info-light: #0F1E2E;
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2);
}
html.dark .cal-time-label { background: var(--surface); }
html.dark .auth-box { border-color: var(--border); }
html.dark #auth-screen,
html.dark #loading-screen {
  background:
    radial-gradient(circle at top, rgba(121, 196, 142, 0.08) 0%, transparent 36%),
    linear-gradient(180deg, #0b0f14 0%, #10151c 100%);
}
html.dark .auth-box {
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}
html.dark .auth-logo { color: var(--accent); }
html.dark .auth-sub { color: var(--text-muted); }
html.dark .btn-social {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--border);
}
html.dark .btn-social:hover { background: rgba(255, 255, 255, 0.08); }
html.dark .auth-divider { color: var(--text-muted); }
html.dark .auth-divider::before,
html.dark .auth-divider::after { background: var(--border); }
html.dark .auth-input {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border);
}
html.dark .auth-input::placeholder { color: var(--text-muted); }
html.dark .auth-input:focus {
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(121, 196, 142, 0.14);
}
html.dark .btn-auth-primary {
  color: #0b0f14;
}
html.dark .auth-link { color: var(--accent); }
html.dark .auth-link:hover { color: #f1d48a; }
html.dark .auth-message-error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.2);
}
html.dark .auth-message-success {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.2);
}
html.dark .loading-text { color: var(--text-muted); }
html.dark .spinner {
  border-color: var(--border);
  border-top-color: var(--accent);
}

/* ===== FONT SIZE SCALE ===== */
/* zoom escala tudo proporcionalmente incluindo px hardcoded */
.main, .sidebar { zoom: var(--font-scale); }

/* ===== ACCENT COLOR SWATCHES ===== */
.accent-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid transparent; cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  outline: none;
}
.accent-swatch:hover { transform: scale(1.15); }
.accent-swatch.active { border-color: var(--text); transform: scale(1.1); }
.dark-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 13.5px; font-weight: 500;
  color: var(--text-secondary); transition: all var(--transition);
  margin-bottom: 2px; user-select: none;
}
.dark-toggle:hover { background: var(--surface2); color: var(--text); }
.toggle-switch {
  width: 36px; height: 20px; background: #B0AAA4; border-radius: 10px;
  position: relative; transition: background var(--transition); flex-shrink: 0;
}
.toggle-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: white; transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
/* Estado ON — verde claro com bom contraste */
.toggle-switch.toggle-on { background: #2E7D32 !important; }
.toggle-switch.toggle-on::after { transform: translateX(16px); }
/* Estado OFF — cinza mais escuro para contraste */
.toggle-switch:not(.toggle-on) { background: #8A8580 !important; }
/* html.dark */
html.dark .toggle-switch.toggle-on { background: #43A047 !important; }
html.dark .toggle-switch:not(.toggle-on) { background: #4A4A52 !important; }

/* ===== FULL WIDTH LAYOUT ===== */
body { display: block; }
.app-layout { display: flex; height: 100vh; width: 100%; }
.main { margin-left: 56px; }

/* ===== CUSTOM DROPDOWN ===== */
.custom-dropdown { position: relative; }
.custom-dropdown-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; background: var(--surface); font-size: 13.5px; user-select: none;
  transition: border-color var(--transition);
}
.custom-dropdown-trigger:hover { border-color: var(--accent); }
.custom-dropdown-trigger.open { border-color: var(--accent); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.custom-dropdown-panel {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 500;
  background: var(--surface); border: 1px solid var(--accent);
  border-top: none; border-bottom-left-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm);
  max-height: 200px; overflow-y: auto; box-shadow: var(--shadow);
}
.custom-dropdown-panel.hidden { display: none; }
.dropdown-chip-wrap {
  display: flex; flex-wrap: wrap; gap: 4px; flex: 1; min-width: 0;
}
.dropdown-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  background: var(--accent-light); color: var(--accent); border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.dropdown-chip button {
  background: none; border: none; cursor: pointer; color: var(--accent);
  font-size: 13px; line-height: 1; padding: 0; display: flex; align-items: center;
}

/* ===== DRAG GHOST PREVIEW ===== */
.drag-ghost {
  position: absolute; left: 0; right: 0;
  border-radius: 6px; pointer-events: none; z-index: 10;
  display: flex; align-items: flex-start; padding: 6px 10px;
  font-size: 12px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  opacity: 0.92;
  border-left-width: 4px; border-left-style: solid;
}

/* ===== TOUCH DRAG ===== */
#touch-drag-ghost {
  position: fixed; z-index: 9999; pointer-events: none;
  border-radius: 4px; padding: 4px 6px; font-size: 11px; font-weight: 600;
  opacity: 0.85; box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  min-width: 80px; display: none;
  border-left: 3px solid rgba(0,0,0,0.2);
}
#touch-drag-ghost.active { display: block; }
.cal-event-block { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

@media (min-width: 769px) {
  .mobile-nav { display: none !important; }
  .cal-mobile-drawer-overlay { display: none !important; }
  .cal-mobile-drawer { display: none !important; }
  .cal-mobile-header { display: none !important; }
  .cal-mobile-header-menu { display: none !important; }
}

/* ===== MOBILE "MAIS" DRAWER ===== */
.mais-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}
.mais-overlay.open { display: block; }

.mais-drawer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 301;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--border);
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  max-height: 85vh;
  overflow-y: auto;
}
.mais-drawer.open { transform: translateY(0); }

.mais-drawer-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 12px auto 4px;
}

.mais-drawer-title {
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.8px;
  padding: 8px 20px 12px;
}

.mais-section {
  border-top: 1px solid var(--border);
  padding: 8px 0;
}

.mais-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px; cursor: pointer;
  transition: background var(--transition);
  font-size: 15px; color: var(--text);
}
.mais-row:active { background: var(--surface2); }
.mais-row svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-secondary); }
.mais-row-label { flex: 1; }
.mais-row-right { color: var(--text-muted); font-size: 13px; }

.mais-inline {
  padding: 4px 20px 12px;
  background: var(--surface2);
}

/* Botões dentro do drawer mobile: usar surface2 para ter contraste sobre surface */
.mais-drawer .btn-secondary {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--text);
}
.mais-drawer .btn-secondary:hover { background: var(--border); }

.mais-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; font-size: 14px; color: var(--text);
  min-height: 48px; transition: background var(--transition);
}
.mais-toggle-row[onclick] { cursor: pointer; }
.mais-toggle-row[onclick]:active { background: var(--surface2); }

.mais-price-row {
  padding: 8px 20px 12px;
  display: flex; gap: 10px; align-items: center;
}

.mais-notif-row {
  padding: 8px 20px 12px;
}

/* ===== CAL SIDEBAR — STUDENT FILTER + TODAY PANEL ===== */
.cal-sidebar-section {
  padding: 12px 14px;
  border-top: 1px solid var(--border-light);
}
.cal-sidebar-section-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 8px;
}
.cal-student-chips {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.cal-student-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px; cursor: pointer;
  font-size: 11px; font-weight: 500;
  border: 1.5px solid var(--text-secondary); color: var(--text-secondary);
  background: transparent; transition: all var(--transition);
  user-select: none;
}
.cal-student-chip:hover { border-color: var(--accent); color: var(--accent); }
.cal-student-chip.active { background: var(--accent); border-color: var(--accent); color: #fff !important; font-weight: 600; }
.cal-student-chip .chip-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}

.cal-today-lesson {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--border-light);
  font-size: 11.5px;
}
.cal-today-lesson:last-child { border-bottom: none; }
.cal-today-lesson-bar {
  width: 3px; border-radius: 2px; flex-shrink: 0;
  align-self: stretch; min-height: 32px;
}
.cal-today-lesson-name { font-weight: 600; color: var(--text); }
.cal-today-lesson-time { color: var(--text-muted); font-size: 10.5px; margin-top: 1px; }
.cal-today-lesson-done { opacity: 0.45; text-decoration: line-through; }
.cal-today-empty { font-size: 12px; color: var(--text-muted); padding: 4px 0; }

/* ===== MOBILE CALENDAR DRAWER ===== */
@media (max-width: 768px) {
  .cal-mobile-drawer-overlay {
    display: none; position: fixed; inset: 0; z-index: 400;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
  }
  .cal-mobile-drawer-overlay.open { display: block; }

  .cal-mobile-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 401;
    width: 85vw; max-width: 320px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }
  .cal-mobile-drawer.open { transform: translateX(0); }

  .cal-drawer-header {
    padding: 20px 20px 12px;
    font-family: 'Instrument Serif', serif;
    font-size: 22px; color: var(--accent);
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
  }

  .cal-drawer-section { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
  .cal-drawer-section-title {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--text-muted);
    padding: 0 20px 8px;
  }

  .cal-drawer-view-item {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 20px; cursor: pointer; font-size: 15px;
    color: var(--text); transition: background var(--transition);
  }
  .cal-drawer-view-item:active { background: var(--surface2); }
  .cal-drawer-view-item.active { color: var(--accent); background: var(--accent-light); }
  .cal-drawer-view-item svg { width: 20px; height: 20px; flex-shrink: 0; }

  .cal-drawer-search-wrap { padding: 8px 16px; }
  .cal-drawer-filters { padding: 4px 16px 8px; display: flex; flex-wrap: wrap; gap: 4px; }
  .cal-drawer-today { padding: 4px 16px 12px; }
  .cal-drawer-today-title {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 6px;
  }

  /* Mobile header — hamburger + month + nav */
  .cal-mobile-header-menu {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; border-radius: var(--radius-sm); flex-shrink: 0;
  }
  .cal-mobile-header-menu:active { background: var(--surface2); }
}

/* ===== STUDENT STATS BAR ===== */
.student-stats-bar {
  display: flex; gap: 0;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.student-stat {
  flex: 1; padding: 12px 16px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.student-stat:last-child { border-right: none; }
.student-stat-value {
  font-size: 22px; font-weight: 700; color: var(--text);
  line-height: 1;
}
.student-stat-label {
  font-size: 11px; color: var(--text-muted);
  margin-top: 3px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .student-stats-bar { flex-wrap: wrap; }
  .student-stat {
    flex: 1 1 calc(50% - 1px);
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
  }
  .student-stat:nth-child(even) { border-right: none; }
  .student-stat:nth-last-child(-n+2) { border-bottom: none; }
  .student-stat-value { font-size: 18px; }
}

/* ===== REPORTS / RELATÓRIOS ===== */

/* KPI cards no topo */
.reports-grid-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.reports-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.reports-kpi-label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.reports-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.reports-kpi-value.text-success { color: var(--accent); }
.reports-kpi-value.text-danger  { color: var(--danger); }

/* Grelha de gráficos */
.reports-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.reports-chart-card { margin-bottom: 0; }
.reports-chart-wide { grid-column: 1 / -1; }

.card-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.reports-chart-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.reports-chart-donut {
  height: 180px;
}
.reports-svg-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
.reports-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  color: var(--text-secondary);
}
.reports-donut {
  width: 100%;
  display: block;
}
.reports-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 2px 0;
}
.reports-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.reports-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
}
.reports-chart-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.reports-chart-note--weekly {
  padding: 0 12px 12px;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

/* Layout do card de alunos */
.reports-students-body {
  display: flex;
  align-items: center;
  gap: 20px;
}
.reports-students-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 120px;
}
.reports-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.reports-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Estados de loading/erro */
.reports-loading,
.reports-error {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.reports-error { color: var(--danger); }

/* ── Subscription cards ──────────────────────────────────────────────────── */
.sub-card {
  border-radius: var(--radius);
  padding: 18px;
  border: 1.5px solid var(--border);
  background: var(--surface2);
}
.sub-card--pro   { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.sub-card--warning { border-color: var(--warning, #f59e0b); background: color-mix(in srgb, #f59e0b 8%, var(--surface)); }
.sub-card--free  { border-color: var(--border); }

.sub-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sub-plan-name { font-size: 14px; font-weight: 500; color: var(--text); }

.sub-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.03em;
}
.sub-badge--pro     { background: var(--accent); color: #fff; }
.sub-badge--warning { background: #f59e0b; color: #fff; }
.sub-badge--free    { background: var(--surface2); color: var(--text-secondary); border: 1px solid var(--border); }

.sub-renew-note, .sub-cancel-note {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0 0 12px;
}
.sub-cancel-note { color: #f59e0b; }

.sub-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Free vs Pro comparison table inside upgrade card */
.sub-plan-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.sub-plan-col {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.sub-plan-col--pro {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.sub-plan-col-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sub-plan-col--pro .sub-plan-col-title { color: var(--accent); }
.feat-yes { color: var(--text-secondary); }
.feat-no  { color: var(--text-muted); text-decoration: line-through; opacity: 0.6; }

.sub-upgrade-cta { display: flex; flex-direction: column; gap: 8px; }
.sub-price { font-size: 22px; color: var(--text); margin: 0; }
.sub-price span { font-size: 13px; color: var(--text-secondary); font-weight: 400; }

.btn-upgrade {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.15s;
}
.btn-upgrade:hover   { opacity: 0.88; }
.btn-upgrade:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-sub-manage {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-sub-manage:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }

.sub-disclaimer { font-size: 11.5px; color: var(--text-muted); margin: 0; }

/* Toggle mensal/anual */
.sub-interval-toggle {
  display: flex; gap: 4px; background: var(--surface2);
  border-radius: 8px; padding: 3px; width: fit-content;
}
.sub-interval-btn {
  padding: 5px 14px; border: none; border-radius: 6px;
  font-size: 12.5px; font-weight: 500; cursor: pointer;
  background: transparent; color: var(--text-secondary);
  transition: all 0.15s ease;
}
.sub-interval-btn.active {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.sub-interval-btn:hover:not(.active) { color: var(--text); }
.sub-interval-save {
  display: inline-block; background: #d1fae5; color: #065f46;
  font-size: 10px; font-weight: 600; padding: 1px 5px;
  border-radius: 4px; margin-left: 4px;
}

/* Trial note */
.sub-trial-note {
  font-size: 12.5px; color: var(--accent); font-weight: 500;
  margin: 0; padding: 6px 10px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: 6px;
}
.sub-trial-cta {
  font-size: 12.5px; font-weight: 600; color: var(--accent); margin: 0;
}
.sub-trial-used {
  color: var(--text-muted) !important; font-weight: 400 !important;
  font-style: italic;
}
.sub-price-note {
  display: block; font-size: 11px; color: var(--text-muted);
  font-weight: 400; margin-top: 2px;
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  white-space: nowrap;
  pointer-events: none;
}
.toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--success { background: var(--accent); color: #fff; }
.toast--error   { background: var(--danger); color: #fff; }
.toast--info    { background: var(--text); color: var(--bg); }

/* Responsivo mobile */
@media (max-width: 768px) {
  .reports-grid-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .reports-charts-grid {
    grid-template-columns: 1fr;
  }
  .reports-chart-wide { grid-column: 1; }
  .reports-kpi-value { font-size: 18px; }
  .reports-chart-card .card-header {
    padding: 10px 12px 6px;
  }
  .reports-chart-card .card-body {
    padding: 0 4px 2px;
  }
  .reports-chart-wrap { height: 180px; }
  .reports-students-body { flex-direction: column; align-items: flex-start; gap: 12px; }
  .reports-chart-donut { height: 130px; }
  .reports-axis-label {
    font-size: 30px !important;
    font-weight: 700 !important;
  }
  .reports-axis-value {
    font-size: 30px !important;
    font-weight: 700 !important;
  }
  .reports-legend {
    gap: 18px;
    padding-top: 16px;
  }
  .reports-legend-item {
    font-size: 20px;
  }
  .reports-chart-note {
    font-size: 13px;
    margin-top: 4px;
  }
}

/* ===== MOBILE DESIGN OVERRIDES ===== */
@media (max-width: 768px) {
  /* Modo claro: herda :root (cores claras). Modo escuro: usa html.dark global. */

  html.dark body {
    background-color: var(--bg) !important;
    background-image: none !important;
  }

  .m-cal-strip {
    display: flex;
    justify-content: space-between;
    padding: 12px 6px;
    margin: 10px 0 16px;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
  }
  .m-cal-day-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    border-radius: 12px;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    position: relative;
  }
  .m-cal-day-btn.active {
    background: var(--text) !important;
    color: var(--surface) !important;
    font-weight: 700;
  }
  .m-cal-day-btn .m-day-num {
    font-size: 18px;
    font-weight: 600;
  }
  .m-cal-day-btn .m-day-name {
    font-size: 9px;
    text-transform: uppercase;
    margin-top: 2px;
  }
  .m-cal-day-btn .m-day-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #E53935;
    color: white;
    font-size: 8px;
    min-width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
  }
  
  .m-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 12px;
    padding: 0 4px;
  }
  .m-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
  }
  .m-section-btn {
    background: var(--text);
    color: var(--surface);
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
  }
  .m-section-btn:active {
    opacity: 0.8;
  }

  .m-carousel-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 4px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .m-carousel-scroll::-webkit-scrollbar {
    display: none;
  }
  .m-lesson-card {
    flex: 0 0 82%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    position: relative;
    box-shadow: var(--shadow);
  }
  .m-card-time {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
  }
  .m-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin: 8px 0 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .m-status-pill {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
  }
  .m-status-pill.pendente {
    background: var(--medium);
    color: #fff;
  }
  .m-status-pill.pago {
    background: #4CAF50;
    color: #fff;
  }
  .m-card-edit-btn {
    background: var(--surface2);
    border: 1px solid var(--border);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
  }

  .m-student-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 4px;
  }
  .m-student-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
  }
  .m-student-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
  }
  .m-student-info {
    min-width: 0;
    flex: 1;
  }
  .m-student-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-student-subtitle {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Customize the bottom nav look for sage/olive theme to be a floating capsule dock */
  .mobile-nav {
    display: flex !important;
    align-items: center;
    justify-content: space-around;
    position: fixed !important;
    bottom: 16px !important;
    left: 16px !important;
    right: 16px !important;
    height: 64px !important;
    border-radius: 32px !important;
    background: rgba(250, 247, 240, 0.94) !important;
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    border: 1px solid rgba(226, 222, 214, 0.9) !important;
    padding: 0 10px !important;
    box-shadow:
      0 10px 28px rgba(26, 25, 22, 0.10),
      0 1px 0 rgba(255, 255, 255, 0.65) inset !important;
    z-index: 9999 !important;
    width: auto !important;
    overflow: hidden;
  }

  html.dark .mobile-nav {
    background: rgba(24, 26, 23, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.35),
      0 1px 0 rgba(255, 255, 255, 0.05) inset !important;
  }
  
  .mobile-nav-item {
    flex: 1 1 0;
    min-width: 0;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--text-secondary) !important;
    font-size: 0 !important; /* Hide text labels for high-end minimalist icon look */
    transition: all 0.25s ease;
    margin: 0 2px;
  }
  
  .mobile-nav-item svg {
    width: 22px !important;
    height: 22px !important;
    display: block;
    transition: all 0.25s ease;
  }

  .mobile-nav-item.active {
    color: var(--accent) !important;
    background: var(--accent-light) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  }

  html.dark .mobile-nav-item.active {
    background: rgba(229, 57, 53, 0.18) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  }

  /* Hide standard page top bar on mobile to match the mockup */
  .topbar {
    display: none !important;
  }
  
  /* Adjust main container to avoid clipping at the top and bottom */
  .main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Custom styles for mobile welcome header */
  .m-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 8px 16px;
    margin-bottom: 12px;
  }
  
  .m-dash-welcome {
    font-size: 26px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: none !important;
    letter-spacing: normal !important;
  }
  
  .m-dash-greeting {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2px;
    opacity: 0.9;
  }
  
  .m-dash-profile {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 20px;
  }
  /* Mobile alert cards styling */
  .m-alerts-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0;
  }
  
  .m-alert-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.15s;
  }
  
  .m-alert-card:active {
    transform: scale(0.98);
  }
  
  .m-alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
  }
  
  .m-alert-card.success .m-alert-icon {
    background: rgba(76, 175, 80, 0.12);
    color: #4CAF50;
  }
  
  .m-alert-card.danger .m-alert-icon {
    background: rgba(229, 57, 53, 0.12);
    color: #E53935;
  }
  
  .m-alert-card.info .m-alert-icon {
    background: rgba(33, 150, 243, 0.12);
    color: #2196F3;
  }
  
  .m-alert-info {
    flex: 1;
    min-width: 0;
  }
  
  .m-alert-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .m-alert-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .m-alert-action {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
  }

  .m-preview-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0 20px;
  }
  .m-preview-day-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.15s;
  }
  .m-preview-day-row:active {
    transform: scale(0.98);
  }
  .m-preview-day-header {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .m-preview-day-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .m-preview-lesson {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
  }
  .m-preview-time {
    font-weight: 600;
    color: var(--text);
    background: var(--surface2);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
  }
  .m-preview-name {
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Dívidas mobile */
  .m-debts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 0 8px;
  }
  .m-debt-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 16px;
    cursor: pointer;
    transition: transform 0.15s;
    box-shadow: var(--shadow-sm);
  }
  .m-debt-row:active { transform: scale(0.98); }
  .m-debt-name {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-debt-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    white-space: nowrap;
  }
  .m-debt-amount {
    font-weight: 700;
    font-size: 15px;
    color: var(--danger);
    white-space: nowrap;
    margin-left: 4px;
  }

  /* Esconder a barra de navegação inferior quando há algum modal/drawer ativo */
  body:has(#modal-overlay[style*="display: flex"]) .mobile-nav,
  body:has(#modal-overlay[style*="display:flex"]) .mobile-nav,
  body:has(.modal-overlay--active) .mobile-nav,
  body:has(#mais-overlay.open) .mobile-nav,
  body:has(#_confirm-overlay) .mobile-nav,
  body.m-modal-open .mobile-nav,
  body.m-drawer-open .mobile-nav {
    display: none !important;
  }
}



/* ================================================================
   ONBOARDING — Welcome Modal + Checklist
   ================================================================ */

/* ── Welcome Modal Overlay ── */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: ob-fade-in 0.3s ease;
}

@keyframes ob-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ob-slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.onboarding-welcome-modal {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 20px;
  padding: 40px 36px 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 64px rgba(0,0,0,0.18);
  animation: ob-slide-up 0.35s ease;
}

.onboarding-welcome-icon {
  font-size: 32px;
  color: var(--accent, #2A6B3C);
  margin-bottom: 16px;
}

.onboarding-welcome-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0 0 12px;
}

.onboarding-welcome-sub {
  font-size: 15px;
  color: var(--text-secondary, #64748b);
  line-height: 1.6;
  margin: 0 0 28px;
}

.onboarding-steps-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  text-align: left;
}

.onboarding-step-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text, #0f172a);
  background: var(--surface2, #f8fafc);
  border-radius: 10px;
  padding: 10px 14px;
}

.onboarding-step-num {
  width: 24px;
  height: 24px;
  background: var(--accent, #2A6B3C);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.onboarding-welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.onboarding-btn-start {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
}

.onboarding-btn-skip {
  background: none;
  border: none;
  color: var(--text-secondary, #64748b);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s;
}
.onboarding-btn-skip:hover { color: var(--text, #0f172a); }

/* ── Checklist Widget ── */
.ob-checklist {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  animation: ob-slide-up 0.3s ease;
}

.ob-checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.ob-checklist-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #0f172a);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ob-checklist-spark {
  color: var(--accent, #2A6B3C);
  font-size: 12px;
}

.ob-checklist-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent, #2A6B3C);
  background: var(--accent-light, #e8f5e9);
  padding: 2px 7px;
  border-radius: 100px;
}

.ob-checklist-order-note {
  margin: 0 16px 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(42, 107, 60, 0.18);
  background: linear-gradient(180deg, rgba(42, 107, 60, 0.08), rgba(42, 107, 60, 0.03));
  color: var(--text-secondary, #64748b);
  font-size: 12.5px;
  line-height: 1.55;
}

.ob-checklist-order-note strong {
  color: var(--text, #0f172a);
}

.ob-checklist-order-note--warning {
  border-color: rgba(220, 38, 38, 0.22);
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.12), rgba(220, 38, 38, 0.05));
  color: #7f1d1d;
}

.ob-checklist-order-note--warning strong {
  color: #991b1b;
}

.ob-checklist-close {
  background: none;
  border: none;
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}
.ob-checklist-close:hover {
  color: var(--text, #0f172a);
  background: var(--surface2, #f1f5f9);
}

.ob-progress-bar {
  height: 3px;
  background: var(--border, #e2e8f0);
  margin: 0 16px 4px;
  border-radius: 2px;
  overflow: hidden;
}

.ob-progress-fill {
  height: 100%;
  background: var(--accent, #2A6B3C);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.ob-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-top: 1px solid var(--border-light, #f1f5f9);
  font-size: 13.5px;
  color: var(--text, #0f172a);
}

.ob-step:hover {
  background: var(--surface2, #f8fafc);
}

.ob-step-index {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary, #64748b);
  background: var(--surface2, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
}

.ob-step--done {
  opacity: 0.62;
  cursor: pointer;
  text-decoration: line-through;
  color: var(--text-secondary, #94a3b8);
}
.ob-step--done:hover {
  background: transparent;
}

.ob-step--active {
  background: var(--accent-light, #e8f5e9);
  box-shadow: inset 3px 0 0 var(--accent, #2A6B3C);
}

.ob-step--next {
  background: rgba(42, 107, 60, 0.06);
  border-top-color: rgba(42, 107, 60, 0.16);
}

.ob-step--next .ob-step-index {
  color: var(--accent, #2A6B3C);
  border-color: rgba(42, 107, 60, 0.35);
  background: var(--accent-light, #e8f5e9);
}

.ob-step--locked {
  opacity: 0.48;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.08), transparent);
}

.ob-step--locked .ob-step-index {
  color: var(--text-muted, #94a3b8);
}

.ob-step-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.ob-step--done .ob-step-icon {
  color: var(--accent, #2A6B3C);
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
}

.ob-step-label-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ob-step-label {
  flex: 1;
}

.ob-step-state {
  display: inline-flex;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
}

.ob-step-state--next {
  color: var(--accent, #2A6B3C);
  background: var(--accent-light, #e8f5e9);
}

.ob-step-state--locked {
  color: var(--text-muted, #94a3b8);
  background: var(--surface2, #f8fafc);
}

.ob-step-arrow {
  color: var(--text-secondary, #94a3b8);
  font-size: 13px;
  transition: transform 0.15s;
}
.ob-step:not(.ob-step--done):hover .ob-step-arrow,
.ob-step--done:hover .ob-step-arrow {
  transform: translateX(3px);
}

/* â”€â”€ Onboarding: tour guiado por tarefa â”€â”€ */
.ob-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 9799;
  pointer-events: none;
}

.ob-guide-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 20, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: auto;
  touch-action: none;
  cursor: default;
}

.ob-guide-overlay[data-allow-target="1"] .ob-guide-backdrop {
  pointer-events: none;
  background: rgba(8, 13, 20, 0.08);
}

.ob-guide-overlay[data-mode="normal"] .ob-guide-backdrop {
  background: rgba(8, 13, 20, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ob-guide-overlay[data-mode="sidebar"] .ob-guide-backdrop {
  background: rgba(8, 13, 20, 0.03);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ob-guide-spotlight {
  position: fixed;
  display: none;
  border-radius: 22px;
  border: 1.5px solid rgba(61, 186, 106, 0.9);
  box-shadow:
    0 0 0 9999px rgba(8, 13, 20, 0.52),
    0 0 0 4px rgba(61, 186, 106, 0.12),
    0 0 24px rgba(61, 186, 106, 0.24);
  transition: all 0.18s ease;
  pointer-events: none;
  z-index: 9800;
}

.ob-guide-spotlight[data-compact="1"] {
  border-radius: 16px;
  box-shadow:
    0 0 0 9999px rgba(8, 13, 20, 0.48),
    0 0 0 2px rgba(61, 186, 106, 0.16),
    0 0 18px rgba(61, 186, 106, 0.22);
}

.ob-guide-bubble {
  position: fixed;
  display: none;
  width: min(360px, calc(100vw - 24px));
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  padding: 18px 52px 16px 18px;
  pointer-events: auto;
  z-index: 9802;
  animation: ob-slide-up 0.25s ease;
}

.ob-guide-bubble[data-compact="1"] {
  width: min(300px, calc(100vw - 20px));
  padding: 16px 48px 14px 16px;
}

.ob-guide-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  background: var(--surface2, #f8fafc);
  color: var(--text-secondary, #64748b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  z-index: 2;
}

.ob-guide-close:hover {
  transform: scale(1.05);
  background: var(--accent-light, #e8f5e9);
  color: var(--accent, #2A6B3C);
}

.ob-guide-bubble::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--surface, #fff);
  border-left: 1px solid var(--border, #e2e8f0);
  border-top: 1px solid var(--border, #e2e8f0);
  transform: rotate(45deg);
  box-shadow: -1px -1px 4px rgba(0, 0, 0, 0.04);
}

.ob-guide-bubble[data-placement="bottom"]::before {
  top: -7px;
  left: var(--ob-guide-arrow-x, 34px);
}

.ob-guide-bubble[data-placement="top"]::before {
  bottom: -7px;
  left: var(--ob-guide-arrow-x, 34px);
  transform: rotate(225deg);
}

.ob-guide-bubble[data-placement="right"]::before {
  left: -7px;
  top: var(--ob-guide-arrow-y, 24px);
  transform: rotate(315deg);
}

.ob-guide-bubble[data-placement="left"]::before {
  right: -7px;
  top: var(--ob-guide-arrow-y, 24px);
  transform: rotate(135deg);
}

.ob-guide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #2A6B3C);
  background: var(--accent-light, #e8f5e9);
  padding: 5px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.ob-guide-progress {
  font-size: 12px;
  color: var(--text-secondary, #64748b);
  margin-bottom: 8px;
}

.ob-guide-title {
  font-size: 18px;
  line-height: 1.25;
  color: var(--text, #0f172a);
  margin: 0 0 10px;
  font-weight: 700;
}

.ob-guide-copy {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary, #64748b);
  margin: 0 0 12px;
}

.ob-guide-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text, #0f172a);
  background: var(--surface2, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.ob-guide-primary-row {
  display: flex;
  justify-content: flex-start;
  margin: 2px 0 12px;
}

.ob-guide-primary-btn {
  min-width: 118px;
  box-shadow: 0 10px 22px rgba(42, 107, 60, 0.18);
}

.ob-guide-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .onboarding-welcome-modal {
    padding: 32px 24px 28px;
  }
  .ob-step {
    padding: 12px 14px;
  }

  .ob-checklist-order-note {
    margin: 0 14px 8px;
    font-size: 12px;
  }

  .ob-guide-bubble {
    width: min(320px, calc(100vw - 20px));
  }

  .ob-guide-title {
    font-size: 17px;
  }
}

body.ob-guide-active .sidebar,
body.ob-guide-active .main,
body.ob-guide-active .mobile-nav {
  pointer-events: none !important;
  user-select: none;
}

body.ob-guide-active .sidebar.ob-guide-allow-click-zone,
body.ob-guide-active .sidebar.ob-guide-allow-click-zone *,
body.ob-guide-active .mobile-nav.ob-guide-allow-click-zone,
body.ob-guide-active .mobile-nav.ob-guide-allow-click-zone * {
  pointer-events: auto !important;
}

body.ob-guide-active .ob-guide-allow-click,
body.ob-guide-active .ob-guide-allow-click * {
  pointer-events: auto !important;
}

.onboarding-welcome-modal {
  position: relative;
}

.onboarding-welcome-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  background: var(--surface2, #f8fafc);
  color: var(--text-secondary, #64748b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.onboarding-welcome-close:hover {
  transform: scale(1.05);
  background: var(--accent-light, #e8f5e9);
  color: var(--accent, #2A6B3C);
}

/* ── Onboarding: highlight campo preço ─────────────────────────────── */
.price-highlight-box {
  border: 2px solid var(--danger) !important;
  box-shadow: 0 0 0 4px rgba(224, 82, 82, 0.12) !important;
  background: rgba(224, 82, 82, 0.04) !important;
}

#settings-price-card.price-highlight-box {
  border-radius: var(--radius-lg);
}

#settings-price-section.price-highlight-box {
  border-radius: 18px;
  margin: 8px 12px 12px;
  overflow: hidden;
}

#settings-price-section.price-highlight-box .mais-row {
  background: rgba(224, 82, 82, 0.05);
}

.price-input-highlight {
  border: 2px solid var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-light, rgba(42,107,60,0.18)) !important;
  animation: price-pulse 1.6s ease-in-out infinite;
  position: relative;
}
@keyframes price-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-light, rgba(42,107,60,0.18)); }
  50%       { box-shadow: 0 0 0 6px var(--accent-light, rgba(42,107,60,0.08)); }
}

/* ── Onboarding: modal de conclusão ──────────────────────────────── */
.onboarding-completion-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px 36px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  position: relative;
  z-index: 10003;
  animation: ob-modal-in 0.35s cubic-bezier(.34,1.56,.64,1);
}
.ob-completion-emoji {
  font-size: 52px;
  margin-bottom: 16px;
  animation: ob-emoji-bounce 0.6s cubic-bezier(.34,1.56,.64,1) 0.2s both;
}
@keyframes ob-emoji-bounce {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.ob-completion-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  font-family: 'Fraunces', serif;
}
.ob-completion-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.ob-completion-support {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  padding: 12px 16px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.ob-completion-btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
}

/* ── Onboarding: badge no ícone de definições ─────────────────────── */
.settings-onb-badge {
  display: none;
  position: absolute;
  top: 4px;
  left: 31px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e53e3e;
  pointer-events: none;
  box-shadow: 0 0 0 3px var(--surface);
  z-index: 200;
}
.mobile-nav-item {
  position: relative;
}

/* ── Página Materiais dos Alunos ─────────────────────────────────── */
.mat-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.mat-file-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.mat-file-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.mat-file-visual {
  width: 100%;
  height: 140px;
  background: var(--surface2);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.mat-file-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mat-file-thumb-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.mat-file-body {
  padding: 12px 14px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mat-file-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mat-file-desc {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mat-file-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.mat-subject-tag {
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 99px;
}
.mat-year-tag {
  font-size: 11px;
  font-weight: 600;
  background: var(--surface2);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid var(--border);
}
.mat-file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.mat-student-name {
  font-weight: 600;
  color: var(--text);
}
.mat-file-actions {
  display: flex;
  gap: 8px;
  padding: 8px 14px 12px;
  border-top: 1px solid var(--border);
}
@media (max-width: 600px) {
  .mat-files-grid {
    grid-template-columns: 1fr;
  }
}

/* Sidebar footer parity with the aluno app */
.sidebar .sidebar-footer {
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.sidebar .sidebar-footer-row {
  padding: 10px 14px;
}
.sidebar .dark-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  user-select: none;
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  justify-content: flex-start;
  padding: 0;
  margin-bottom: 0;
}
.sidebar .dark-toggle svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: block;
  margin: 0;
}
.sidebar .dark-toggle span {
  opacity: 0;
  transition: opacity 0.18s;
}
.sidebar:hover .dark-toggle span {
  opacity: 1;
}
.sidebar .toggle-switch {
  width: 36px;
  height: 20px;
  background: var(--border);
  border-radius: 99px;
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.18s, background 0.2s;
}
.sidebar:hover .toggle-switch {
  opacity: 1;
}
.sidebar .toggle-switch::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.sidebar:not(:hover) .dark-toggle,
.sidebar:not(:hover) .sidebar-signout {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}
.sidebar:not(:hover) .dark-toggle span,
.sidebar:not(:hover) .dark-toggle .toggle-switch,
.sidebar:not(:hover) .sidebar-signout span {
  display: none;
}
.sidebar:not(:hover) .sidebar-footer-row {
  padding: 0;
  justify-content: center;
}
.sidebar:not(:hover) .sidebar-account .color-legend {
  padding-left: 8px;
  padding-right: 8px;
}
.sidebar:not(:hover) .dark-toggle svg,
.sidebar:not(:hover) .sidebar-signout svg {
  margin: 0;
}
.sidebar-signout svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.sidebar-signout span {
  opacity: 0;
  transition: opacity 0.18s;
}
.sidebar:hover .sidebar-signout span {
  opacity: 1;
}

/* ── Onboarding: checklist modal + primeira conclusão ─────────────── */
.ob-checklist--modal {
  margin-bottom: 0;
  box-shadow: none;
}

.ob-checklist--modal .ob-checklist-header {
  padding-top: 12px;
}

.ob-checklist-choice-overlay {
  position: fixed;
  inset: 0;
  z-index: 9801;
  pointer-events: none;
}

.ob-checklist-choice-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 20, 0.48);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}

.ob-checklist-choice-bubble {
  width: min(420px, calc(100vw - 20px));
  z-index: 9803;
  display: block;
  pointer-events: auto;
}

.ob-checklist-choice-portal {
  position: fixed;
  z-index: 9802;
  pointer-events: auto;
  overflow: visible;
  border-radius: 16px;
  visibility: visible;
}

.ob-checklist-choice-portal .ob-checklist {
  margin-bottom: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

body.ob-checklist-choice-active .ob-checklist--choice-focus {
  position: relative;
  z-index: 9804;
  pointer-events: auto;
  filter: none;
}

body.ob-checklist-choice-active .ob-checklist {
  position: relative;
  z-index: 9802;
  pointer-events: auto;
  filter: none;
  box-shadow:
    0 0 0 1px rgba(61, 186, 106, 0.16),
    0 18px 42px rgba(0,0,0,0.12);
}

body.ob-checklist-choice-active {
  overflow: hidden;
}

body.ob-checklist-choice-active .ob-checklist-close {
  display: none !important;
}

.ob-checklist-modal-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ob-checklist-modal-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-light, #e8f5e9);
  border: 1px solid rgba(61, 186, 106, 0.16);
  color: var(--text, #0f172a);
  font-size: 13px;
  line-height: 1.55;
}

.ob-student-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding-top: 8px;
}

.ob-student-success-icon {
  font-size: 48px;
  line-height: 1;
}

.ob-student-success-title {
  font-size: 22px;
  line-height: 1.25;
  color: var(--text, #0f172a);
  margin: 0;
  font-weight: 700;
  font-family: 'Fraunces', serif;
}

.ob-student-success-copy {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary, #64748b);
  margin: 0;
}

body.ob-guide-sidebar-focus .sidebar {
  filter: blur(4px);
}

@media (max-width: 767px) {
  body.ob-guide-sidebar-focus .sidebar {
    filter: none;
  }
}
