/* AquaFisheries Teacher Portal — flat, functional styling. No gradients. */

:root {
  --teal:   #0D9488;
  --blue:   #2563EB;
  --purple: #7C3AED;
  --amber:  #D97706;
  --red:    #DC2626;
  --green:  #16A34A;

  --bg:      #F4F6F7;
  --card:    #FFFFFF;
  --border:  #E1E6E7;
  --text:    #10201F;
  --sub:     #64777A;
  --sidebar: #071E3D;
  --sidebar-text: #B9C6D6;
  --sidebar-active: #10315C;

  /* Subject accent — overwritten at runtime by applySubjectTheme()
     (shared.js) to match whichever of the 3 TLE subjects (AFA / FCS /
     ICT) is currently active, exactly like src/config/subjects.js
     on the mobile app. Used by buttons, stat cards, the active nav item. */
  --accent:      #1D9E75;
  --accent-dark: #0F6E56;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

button, input, textarea, select { font-family: inherit; font-size: 14px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  background: var(--card);
}
.btn-block { width: 100%; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #0B7A70; }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); }
.btn-danger { background: #fff; color: var(--red); border-color: #F3C6C6; }
.btn-danger:hover { background: #FEF2F2; }
.btn-ghost { background: transparent; color: var(--sidebar-text); border-color: #1B3A63; }
.btn-ghost:hover { background: var(--sidebar-active); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: default; }

/* ── Login ───────────────────────────────────────────────
   Mirrors src/screens/LoginScreen.js: ocean-gradient background whose
   colors and accent re-theme per active subject (see applySubjectTheme
   in shared.js), a rounded logo badge, two-tone title, icon-prefixed
   inputs, a pill-shaped submit button, and a forgot-password link. ── */
.ocean-bg {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px 60px;
  /* Exact 7-stop sky gradient from OceanBackground.js's AFAScene. Swapped
     for the FCS kitchen or ICT circuit-board gradient by mountOceanScene()
     when a different subject is active — see ocean.js. */
  background: linear-gradient(180deg,
    #C8EBF9 0%, #A2CCEE 18%, #79B0E4 36%, #5C9AD6 52%, #4782BE 66%, #3568A8 82%, #254F90 100%);
  position: relative;
  overflow: hidden;
}

.login-wrap {
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
}

.login-header { text-align: center; margin-bottom: 22px; }
.login-logo-circle {
  width: 92px; height: 92px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.login-logo-img { width: 78px; height: 78px; object-fit: contain; }
.login-school { font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.25); margin-bottom: 4px; }
.login-title { margin: 0; font-size: 26px; font-weight: 900; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.25); letter-spacing: 0.2px; }
.accent-text { color: var(--accent); }
.login-tagline { margin-top: 5px; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,0.92); }

.login-card {
  background: rgba(255,255,255,0.96);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
.login-card form { text-align: left; }

.field-icon {
  display: flex; align-items: center; gap: 9px;
  background: var(--bg);
  border-radius: 12px;
  padding: 0 13px;
  margin-bottom: 12px;
}
.field-icon-glyph { display: flex; align-items: center; color: var(--sub); flex-shrink: 0; }
.field-icon:focus-within .field-icon-glyph { color: var(--accent); }
.field-icon input {
  flex: 1; border: none; background: transparent;
  padding: 12px 0; font-size: 14px; font-weight: 500; color: var(--text);
}
.field-icon input:focus { outline: none; }
.field-icon:focus-within { box-shadow: 0 0 0 2px var(--accent) inset; }
.eye-toggle { display: flex; align-items: center; background: none; border: none; cursor: pointer; padding: 6px; color: var(--sub); flex-shrink: 0; }

.remember-row {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--sub); margin: 2px 0 18px; cursor: pointer;
}
.remember-row input { width: 15px; height: 15px; accent-color: var(--accent); }

.btn-pill {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none; border-radius: 50px;
  padding: 14px; font-size: 15px; font-weight: 900; letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-pill:hover { background: var(--accent-dark); }
.btn-pill:active { transform: scale(0.98); }
.btn-pill:disabled { opacity: 0.6; cursor: default; }

.forgot-link {
  display: block; margin-top: 14px;
  background: none; border: none; cursor: pointer; padding: 0;
  color: var(--accent); font-size: 13px; font-weight: 700;
}

.login-hint { margin: 16px 0 0; font-size: 11.5px; color: #fff; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,0.25); opacity: 0.9; }

.form-error {
  margin-bottom: 12px; padding: 8px 10px;
  background: #FEF2F2; color: var(--red);
  border: 1px solid #F3C6C6; border-radius: 6px;
  font-size: 12.5px;
  display: flex; align-items: center; gap: 6px;
}

/* ── App shell ───────────────────────────────────────── */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--sidebar);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 18px 18px 14px;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  border-bottom: 1px solid #123259;
}
.brand-mark {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.brand-mark-img { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; background: #fff; }
.sidebar-nav { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 9px;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--sidebar-text);
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}
.nav-item .icon { opacity: 0.85; }
.nav-item:hover { background: var(--sidebar-active); }
.nav-item.active { background: var(--accent); color: #fff; font-weight: 700; }
.nav-item.active .icon { opacity: 1; }
.sidebar-footer { padding: 12px; border-top: 1px solid #123259; }
.sidebar-footer .btn-ghost { gap: 6px; }
.sidebar-user { color: #fff; font-size: 12.5px; font-weight: 600; margin-bottom: 8px; padding: 0 2px; }
.sidebar-user span { display: block; color: var(--sidebar-text); font-weight: 400; font-size: 11.5px; }

.main { flex: 1; min-width: 0; }
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  position: sticky; top: 0; z-index: 5;
}
.topbar h1 { margin: 0; font-size: 18px; }

/* ── Responsive sidebar (off-canvas below ~880px) ────────
   Above the breakpoint the sidebar stays exactly as it always has —
   a permanent 220px column. Below it, it becomes a slide-in drawer
   opened by a hamburger button that only exists at this width. ── */
.sidebar-toggle-btn { display: none; }
.sidebar-backdrop { display: none; }

@media (max-width: 880px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 30;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.25);
  }
  .sidebar.open { transform: translateX(0); }

  .sidebar-backdrop {
    display: block;
    position: fixed; inset: 0; z-index: 25;
    background: rgba(7,30,61,0.45);
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .sidebar-backdrop.open { opacity: 1; pointer-events: auto; }

  .sidebar-toggle-btn {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
    background: rgba(29,94,160,0.08); border: none; cursor: pointer; color: var(--text);
  }

  .main .ocean-scene { left: 0; }
}

/* Mirrors src/components/AppHeader.js: small logo + title on the left,
   avatar circle with initials on the right — same header on every page. */
.topbar-app { display: flex; align-items: center; gap: 12px; }
.topbar-logo { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.topbar-app h1 { flex: 1; }

/* Small "which subject am I looking at" indicator next to the page title,
   used only on the 3 subject-scoped pages (Dashboard/Lessons/Activities).
   Replaces what used to be a second, much bigger duplicate title+subheader
   rendered inside the page content below the topbar. */
.topbar-subject-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-dark);
  font-size: 11.5px; font-weight: 800;
  padding: 4px 10px; border-radius: 50px;
  flex-shrink: 0; white-space: nowrap;
}
.topbar-avatar {
  width: 34px; height: 34px; border-radius: 17px; flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 900; color: var(--accent);
}

/* Dashboard sits on the same ocean scenery as the login screen (mirrors
   <OceanBackground showFish={false} showCrabs={true}> wrapping the whole
   TeacherDashboardScreen) — the topbar goes translucent like AppHeader.js,
   and the stat/hero/lesson cards (already opaque var(--card)) float over
   the water showing through the gaps between them. */
.main.ocean-host {
  position: relative;
  background: linear-gradient(180deg,
    #C8EBF9 0%, #A2CCEE 18%, #79B0E4 36%, #5C9AD6 52%, #4782BE 66%, #3568A8 82%, #254F90 100%);
}
.main .ocean-scene { position: fixed; top: 0; bottom: 0; left: var(--sidebar-w, 220px); right: 0; z-index: 0; }
.main .topbar, .main .view { position: relative; z-index: 1; }
.topbar-translucent { background: rgba(255,255,255,0.92); backdrop-filter: blur(2px); }
.view { padding: 24px 28px 60px; max-width: 1180px; margin: 0 auto; }
.view-wrap { padding: 20px 28px 0; max-width: 1180px; margin: 0 auto; }
.view-wrap:empty { padding: 0; }
.view-wrap .toolbar-tabs { margin-bottom: 0; }

/* ── Generic layout bits ─────────────────────────────── */
.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.stat-card { display: flex; flex-direction: column; gap: 4px; }
.stat-card .stat-num { font-size: 26px; font-weight: 800; }
.stat-card .stat-label { font-size: 12px; color: var(--sub); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }

.section-title { font-size: 14px; font-weight: 700; margin: 26px 0 10px; color: var(--text); }
.section-title:first-child { margin-top: 0; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  padding: 7px 13px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--card); color: var(--sub); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.tab.active { border-color: var(--teal); color: var(--teal); background: #E9F7F5; }

input[type=text], input[type=number], input[type=email], input[type=password], input[type=date], textarea, select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
}
textarea { resize: vertical; min-height: 70px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--teal); outline-offset: -1px; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--sub); margin-bottom: 5px; }
.field .req { color: var(--red); }

.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  margin-bottom: 8px;
}
.list-row .grow { flex: 1; min-width: 0; }
.list-row .title { font-weight: 700; font-size: 13.5px; }
.list-row .subtitle { color: var(--sub); font-size: 12px; margin-top: 2px; }
.list-row .actions { display: flex; gap: 6px; flex-shrink: 0; }

.badge-pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 5px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase;
}
.pill-locked   { background: #F3F4F6; color: var(--sub); }
.pill-unlocked { background: #E9F9EE; color: var(--green); }
.pill-present  { background: #E9F9EE; color: var(--green); }
.pill-absent   { background: #FEF2F2; color: var(--red); }
.pill-late     { background: #FEF6E7; color: var(--amber); }
.pill-manual { background: #E9F7F5; color: var(--teal); }
.pill-link   { background: #EFF4FF; color: var(--blue); }
.pill-file   { background: #F1E8FE; color: var(--purple); }
.pill-submitted { background: #EFF4FF; color: var(--blue); }
.pill-graded    { background: #E9F9EE; color: var(--green); }
.pill-published   { background: #E9F9EE; color: var(--green); }
.pill-unpublished { background: #F3F4F6; color: var(--sub); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--sub);
}
.empty-state .empty-icon { font-size: 34px; margin-bottom: 10px; }
.empty-state .empty-title { font-weight: 700; color: var(--text); margin-bottom: 4px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; min-width: 420px; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 12px; font-size: 13px; border-bottom: 1px solid var(--border); }
.table th { background: var(--bg); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--sub); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #FAFBFC; }

/* ── Modal ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(7, 30, 61, .45);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 50;
}
.modal {
  background: var(--card);
  border-radius: 10px;
  width: 100%; max-width: 560px;
  border: 1px solid var(--border);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.modal-header h2 { margin: 0; font-size: 15.5px; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--sub); }
.modal-body { padding: 18px 20px; max-height: 65vh; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }

.segment { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.segment button {
  padding: 7px 14px; border-radius: 6px; border: 1.5px solid var(--border);
  background: var(--card); color: var(--sub); font-weight: 700; font-size: 12.5px; cursor: pointer;
}
.segment button.active { border-color: var(--teal); color: var(--teal); background: #E9F7F5; }

.loading { text-align: center; padding: 60px 0; color: var(--sub); font-size: 13px; }

.toast {
  position: fixed; bottom: 22px; right: 22px;
  background: var(--text); color: #fff;
  padding: 11px 18px; border-radius: 7px;
  font-size: 13px; font-weight: 600;
  z-index: 100;
}
.toast.error { background: var(--red); }
.toast.success { background: var(--green); }

.avatar-circle {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}


.mini-stats { display: flex; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.mini-stat { font-size: 12.5px; color: var(--sub); }
.mini-stat b { color: var(--text); font-size: 14px; }

.two-col { display: grid; grid-template-columns: 260px 1fr; gap: 20px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.help-text { font-size: 11.5px; color: var(--sub); margin-top: 4px; }

/* ── Manage Lessons page ─────────────────────────────────
   Mirrors src/screens/teacher/ManageLessonsScreen.js. ── */
.ml-statsbar {
  display: flex; align-items: center;
  background: #1D4A88; border-radius: 20px; padding: 16px; margin-bottom: 12px;
  box-shadow: 0 6px 14px rgba(29,74,136,0.28);
}
.ml-stat { flex: 1; text-align: center; }
.ml-stat-icon {
  width: 34px; height: 34px; border-radius: 10px; margin: 0 auto 6px;
  background: rgba(255,255,255,0.16); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.ml-stat-val { font-size: 19px; font-weight: 900; color: #fff; }
.ml-stat-lbl { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.75); margin-top: 2px; }
.ml-statdiv { width: 1px; height: 36px; background: rgba(255,255,255,0.18); }

.ml-tip {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border-radius: 14px; padding: 12px; margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.ml-tip-icon { width: 28px; height: 28px; border-radius: 9px; background: #2C6FBE; color: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ml-tip-tx { font-size: 12px; color: var(--sub); font-weight: 600; line-height: 1.4; }

.ml-list-card { background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); margin-bottom: 90px; }
.ml-list-empty { padding: 28px 0; text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.ml-list-empty .icon { display: block; margin: 0 auto 8px; color: var(--muted); }

.ml-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.ml-row:last-child { border-bottom: none; }
.ml-row:hover { background: rgba(44,111,190,0.04); }
.ml-num-badge {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: rgba(44,111,190,0.08); border: 1px solid rgba(44,111,190,0.25);
  color: #2C6FBE; font-weight: 900; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.ml-row-info { flex: 1; min-width: 0; }
.ml-row-title { font-size: 13.5px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-row-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.ml-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; }
.ml-pill-red { background: rgba(226,75,74,0.10); color: #E24B4A; }
.ml-pill-teal { background: rgba(14,167,158,0.10); color: #0EA79E; }
.ml-pill-purple { background: rgba(124,58,237,0.10); color: #7C3AED; }
.ml-pill-amber { background: rgba(217,119,6,0.10); color: #D97706; }
.ml-del-btn { width: 32px; height: 32px; border-radius: 10px; background: rgba(226,75,74,0.10); color: #E24B4A; border: none; flex-shrink: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ml-del-btn:hover { background: rgba(226,75,74,0.18); }

.ml-fab {
  position: fixed; right: 32px; bottom: 26px; z-index: 2;
  width: 58px; height: 58px; border-radius: 29px;
  background: #0EA79E; color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(14,167,158,0.45);
}
.ml-fab:hover { background: #0A6E68; }

/* ── Lesson editor modal (Content / Video / Quiz tabs) ───
   Mirrors src/screens/teacher/CreateLessonScreen.js's 3 sections —
   nested inside one lesson, not separate pages. ── */
.editor-modal { max-width: 640px; }
.editor-tabs { display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--border); }
.editor-tab {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  padding: 10px 6px 12px; margin-right: 14px;
  font-size: 12.5px; font-weight: 700; color: var(--sub);
  border-bottom: 2px solid transparent;
}
.editor-tab.active { color: #0EA79E; border-bottom-color: #0EA79E; }
.editor-tab.is-locked { opacity: 0.45; cursor: not-allowed; }
.field-row { margin: 4px 0 14px; }
.video-existing { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 10px; padding: 10px; margin-bottom: 14px; }
.video-existing .video-thumb { width: 52px; height: 52px; aspect-ratio: unset; margin-bottom: 0; flex-shrink: 0; }

/* ── Activities page ─────────────────────────────────────
   Mirrors src/screens/teacher/TeacherActivityScreen.js. ── */
.ac-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.ac-chip {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  border-radius: 14px; padding: 12px 6px; color: #fff;
}
.ac-chip .icon { margin-bottom: 2px; }
.ac-chip-val { font-size: 18px; font-weight: 900; }
.ac-chip-lbl { font-size: 10px; font-weight: 700; opacity: 0.9; }
@media (max-width: 640px) { .ac-stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .ac-stats-row { grid-template-columns: 1fr; } }

.ac-empty { text-align: center; padding: 60px 20px; }
.ac-empty-icon {
  width: 78px; height: 78px; border-radius: 39px; margin: 0 auto 16px;
  background: rgba(29,158,117,0.10); color: #1D9E75;
  display: flex; align-items: center; justify-content: center;
}
.ac-empty-title { font-size: 19px; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.ac-empty-sub { font-size: 13px; color: var(--sub); max-width: 380px; margin: 0 auto 20px; line-height: 1.5; }
.ac-empty-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #1D9E75; color: #fff; border: none; border-radius: 50px;
  padding: 13px 26px; font-size: 14.5px; font-weight: 800; cursor: pointer;
}
.ac-empty-btn:hover { background: #157A5A; }

.ac-list { margin-bottom: 90px; }
.ac-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--card); border-radius: 14px; padding: 13px; margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.ac-card-icon { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

.ac-fab {
  position: fixed; right: 32px; bottom: 26px; z-index: 2;
  width: 58px; height: 58px; border-radius: 29px;
  background: #1D9E75; color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(29,158,117,0.45);
}
.ac-fab:hover { background: #157A5A; }

/* ── Ocean scene (js/ocean.js) ───────────────────────────
   CSS port of src/components/OceanBackground.js's AFA scene: sky
   gradient, light rays, waves, sand floor, rocks, kelp, coral, bubbles,
   fish, crabs. Mounted into any container via mountOceanScene(). ── */
.ocean-scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.ocean-ray { position: absolute; top: 0; background: #fff; border-radius: 30px; }

.ocean-wave {
  position: absolute; left: -30%; width: 250%; height: 44px;
  background: #fff; border-radius: 80px;
  animation-name: oceanWaveSway; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate;
}
@keyframes oceanWaveSway { from { transform: translateX(0); } to { transform: translateX(-8%); } }

.ocean-sand-back {
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(180deg, #D6BA92, #CAA872 55%, #C09A5A);
  border-radius: 72px 72px 0 0;
}
.ocean-sand-front {
  position: absolute; bottom: 0; left: 0; right: 0; height: 78px;
  background: #C09A5A;
  border-radius: 48px 48px 0 0;
}
.ocean-rock { position: absolute; background: #A09272; border-radius: 50px; }

.ocean-kelp {
  position: absolute; bottom: 84px;
  border-radius: 4px 4px 2px 2px;
  transform-origin: bottom center;
  animation-name: oceanKelpSway; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate;
}
@keyframes oceanKelpSway { from { transform: rotate(-15deg); } to { transform: rotate(15deg); } }

.ocean-coral {
  position: absolute; bottom: 82px; line-height: 1;
  animation-name: oceanCoralPulse; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate;
}
@keyframes oceanCoralPulse { from { transform: scale(0.95); } to { transform: scale(1.10); } }

.ocean-bubble {
  position: absolute; bottom: 100px; border-radius: 50%;
  background: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.5);
  animation-name: oceanBubbleRise; animation-timing-function: ease-out; animation-iteration-count: infinite;
}
@keyframes oceanBubbleRise {
  0%   { transform: translateY(0); opacity: 0.7; }
  85%  { opacity: 0.15; }
  100% { transform: translateY(-82vh); opacity: 0; }
}

.ocean-fish-outer { position: absolute; animation-timing-function: linear; animation-iteration-count: infinite; }
.ocean-fish-outer.rtl { animation-name: oceanFishRTL; }
.ocean-fish-outer:not(.rtl) { animation-name: oceanFishLTR; }
@keyframes oceanFishLTR { from { left: -60px; } to { left: calc(100% + 60px); } }
@keyframes oceanFishRTL { from { left: calc(100% + 60px); } to { left: -60px; } }
.ocean-fish-inner {
  display: inline-block; line-height: 1;
  animation-name: oceanFishBob; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; animation-duration: 1.1s;
}
.ocean-fish-outer:not(.rtl) .ocean-fish-inner { transform: scaleX(-1); }
@keyframes oceanFishBob { from { margin-top: -6px; } to { margin-top: 6px; } }

.ocean-crab {
  position: absolute; bottom: 84px; font-size: 26px; line-height: 1;
  animation-name: oceanCrabBounce; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; animation-duration: 0.7s;
}
@keyframes oceanCrabBounce { from { transform: translateY(0); } to { transform: translateY(-6px); } }

/* ── Kitchen scene (js/ocean.js) — FCS ───────────────────
   CSS port of FCSScene in OceanBackground.js: string lights, hanging
   utensils, a checkerboard tile floor, rising steam, drifting produce
   icons, a pot on the stove. Reuses .ocean-fish-outer/.ocean-crab for
   the drift/bounce motion, swapping their content for inline SVG. ── */
.kitchen-rail { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: #5E3210; opacity: 0.5; }
.kitchen-light {
  position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #FFD54A;
  animation-name: oceanBlinkPulse; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate;
}
@keyframes oceanBlinkPulse { from { opacity: 0.35; } to { opacity: 1; } }

.kitchen-floor {
  position: absolute; bottom: 0; left: 0; right: 0; height: 84px;
  background-color: #D9A876;
  background-image:
    linear-gradient(45deg, #CC9A66 25%, transparent 25%),
    linear-gradient(-45deg, #CC9A66 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #CC9A66 75%),
    linear-gradient(-45deg, transparent 75%, #CC9A66 75%);
  background-size: 28px 28px;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
}

.kitchen-hang { position: absolute; top: 5px; width: 26px; height: 34px; transform-origin: top center;
  animation-name: oceanKelpSway; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; }
.kitchen-hang-inner { width: 26px; height: 34px; display: block; }

.steam-wisp {
  position: absolute; bottom: 118px; width: 22px; height: 46px; opacity: 0;
  animation-name: steamRise; animation-timing-function: ease-out; animation-iteration-count: infinite;
}
@keyframes steamRise {
  0%   { transform: translateY(0);      opacity: 0; }
  30%  { opacity: 0.6; }
  100% { transform: translateY(-100px); opacity: 0; }
}

.kitchen-pot { position: absolute; bottom: 78px; left: calc(50% - 34px); width: 68px; height: 46px; }

/* Stove flames — rooted under the pot, only flicker in place */
.kitchen-flame { position: absolute; bottom: 70px; width: 11px; height: 15px;
  animation-name: flameFlicker; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
@keyframes flameFlicker {
  0%   { transform: scaleY(0.75); opacity: 0.65; }
  35%  { transform: scaleY(1.15); opacity: 1; }
  60%  { transform: scaleY(0.9);  opacity: 0.8; }
  100% { transform: scaleY(1.05); opacity: 0.95; }
}

/* Grounded still-life — a shelf of jars and counter boards of prepped
   produce, replacing the old flying-icon fish (nothing here moves, the
   way jars on a shelf actually wouldn't). */
.kitchen-shelf { position: absolute; display: flex; flex-direction: column; align-items: center; }
.kitchen-shelf-jars { display: flex; align-items: flex-end; gap: 5px; }
.kitchen-shelf-plank { width: 100%; height: 6px; border-radius: 3px; background: #6B3A1E; margin-top: -1px; }

.kitchen-board { position: absolute; bottom: 82px; display: flex; flex-direction: column; align-items: center; }
.kitchen-board-items { display: flex; gap: 4px; margin-bottom: -6px; z-index: 1; }

/* ── Circuit-board scene (js/ocean.js) — ICT ─────────────
   CSS port of ICTScene in OceanBackground.js: glowing traces + nodes, a
   motherboard grid floor, rising data bits, drifting code brackets and
   floating "windows". ── */
.tech-traces { position: absolute; inset: 0; width: 100%; height: 100%; }
.tech-node {
  position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #7CE7FF;
  animation-name: oceanBlinkPulse; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate;
}
.tech-floor {
  position: absolute; bottom: 0; left: 0; right: 0; height: 100px; background: #080F1F;
  background-image:
    linear-gradient(#132340 1px, transparent 1px),
    linear-gradient(90deg, #132340 1px, transparent 1px);
  background-size: 10% 33.33%, 10% 33.33%;
}
.tech-chip { position: absolute; width: 26px; height: 26px; }
.tech-chip-glow {
  position: absolute; left: -5px; top: -5px; right: -5px; bottom: -5px;
  border-radius: 50%; background: #3B7CE8;
  animation-name: chipGlowPulse; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate;
}
@keyframes chipGlowPulse { from { opacity: 0.25; } to { opacity: 0.85; } }

/* Shared by the kitchen + circuit scenes: sizes the icon used inside a
   bouncing-in-place .ocean-crab (kitchen timers, wifi bars) — the only
   icon motion left in these two scenes besides steam/flame/pulses. */
.icon-crab { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; }

.tech-terminal { position: absolute; width: 96px; height: 68px; }
.tech-terminal-cursor {
  position: absolute; left: 9px; top: 55px; width: 8px; height: 3px; background: #7CE7FF;
  animation-name: oceanBlinkPulse; animation-duration: 0.5s; animation-timing-function: steps(1); animation-iteration-count: infinite; animation-direction: alternate;
}

.tech-scanline {
  position: absolute; left: 0; right: 0; height: 60px; opacity: 0.05; background: #7CE7FF;
  animation-name: scanlineSweep; animation-timing-function: linear; animation-iteration-count: infinite;
}
@keyframes scanlineSweep { from { transform: translateY(-60px); } to { transform: translateY(100vh); } }

/* ── Subject picker (Settings page) ─────────────────────
   Mirrors SubjectPickerModal in TeacherSettingsScreen.js: a list of
   3 subject options, each with an emoji badge, name + description,
   and a checkmark/empty-circle showing which one is active. ── */
.subject-options { display: flex; flex-direction: column; gap: 10px; }
.subject-option {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.subject-emoji-wrap {
  width: 42px; height: 42px; border-radius: 21px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.subject-option-text { flex: 1; min-width: 0; }
.subject-option-name { display: block; font-size: 13.5px; font-weight: 800; color: var(--text); }
.subject-option-desc { display: block; font-size: 11.5px; color: var(--sub); margin-top: 2px; }
.subject-option-check { flex-shrink: 0; }

/* ── Icons ───────────────────────────────────────────── */
/* Local Ionicons SVGs (js/icons.js) — matches the exact icon set the
   mobile app uses via @expo/vector-icons, instead of emoji. */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon svg, svg.icon { display: block; }

/* ── Dashboard (mobile-style hero/stats, subject-themed) ──
   Mirrors src/screens/teacher/TeacherDashboardScreen.js's layout: a
   colored hero card, 3 headline stat cards, small secondary stats, and a
   Recent Lessons list. (The page title itself lives in the topbar.) ── */
.dash-hero {
  background: #1D4A88;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.dash-hero-eyebrow { color: rgba(255,255,255,0.9); font-weight: 700; font-size: 13px; }
.dash-hero-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #0A6E68;
  border-radius: 50px; padding: 10px 18px;
  font-weight: 900; font-size: 13px; text-decoration: none;
}
.dash-hero-btn:hover { background: #F4F6F7; }

.dash-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.dash-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 10px 14px;
  text-align: center;
  overflow: hidden;
}
.dash-stat-strip { height: 3px; margin: -12px -10px 10px; }
.dash-stat-icon { font-size: 15px; margin-bottom: 4px; }
.dash-stat-label { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.dash-stat-value { font-size: 22px; font-weight: 900; color: var(--text); }
.dash-stat-sub { font-size: 10.5px; color: var(--sub); font-weight: 600; margin-top: 2px; }
@media (max-width: 640px) { .dash-stats-row { grid-template-columns: 1fr; } }

.dash-mini-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }

.dash-section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 800; color: var(--text);
  margin-bottom: 10px;
}
.dash-section-hdr a { color: #2C6FBE; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.dash-section-hdr span { display: inline-flex; align-items: center; gap: 5px; color: #0B2545; }

.dash-lesson-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px 10px 0;
  margin-bottom: 8px;
  overflow: hidden;
}
.dash-lesson-accent { width: 4px; align-self: stretch; border-radius: 3px; }
.dash-lesson-icon {
  width: 40px; height: 40px; border-radius: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.dash-lesson-text { flex: 1; min-width: 0; }
.dash-lesson-title { font-size: 13px; font-weight: 700; color: var(--text); }
.dash-lesson-sub { font-size: 11.5px; color: var(--sub); margin-top: 2px; }
.dash-lesson-btn {
  flex-shrink: 0; color: #fff; text-decoration: none;
  border-radius: 50px; padding: 7px 13px; font-size: 11px; font-weight: 800;
}

.dash-empty {
  text-align: center; padding: 40px 20px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
}
.dash-empty-title { font-weight: 800; color: var(--text); margin-bottom: 4px; }
.dash-empty-sub { color: var(--sub); font-size: 12.5px; margin-bottom: 14px; }
.dash-empty-btn {
  display: inline-block; background: var(--accent); color: #fff;
  border-radius: 50px; padding: 9px 16px; font-size: 12.5px; font-weight: 800; text-decoration: none;
}

.video-thumb {
  width: 100%; aspect-ratio: 16/9; background: #0C2A4E; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; color: #7FA8D6; font-size: 26px;
  margin-bottom: 8px; overflow: hidden;
}
.video-thumb video { width: 100%; height: 100%; object-fit: cover; }
.upload-drop {
  border: 2px dashed var(--border); border-radius: 8px; padding: 24px;
  text-align: center; color: var(--sub); font-size: 12.5px; cursor: pointer;
}
.upload-drop:hover { border-color: var(--teal); background: #E9F7F5; }
.progress-bar-outer { background: var(--bg); border-radius: 6px; height: 8px; overflow: hidden; margin-top: 8px; }
.progress-bar-inner { background: var(--teal); height: 100%; width: 0%; transition: width .2s; }

/* ── Mobile-style banner card (Progress / Students headers) ───────── */
.banner-card {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, var(--blue) 0%, #1B5EA0 100%);
  color: #fff; border-radius: 16px; padding: 18px 20px; margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(27,94,160,0.25);
}
.banner-card .banner-icon {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.banner-card .banner-num { font-size: 20px; font-weight: 900; line-height: 1.15; }
.banner-card .banner-sub { font-size: 12.5px; font-weight: 600; opacity: 0.88; margin-top: 1px; }

/* ── Dropdown filter (pill button + floating panel) ────────────────── */
.dropdown-filter { position: relative; display: inline-block; }
.dropdown-filter-btn {
  display: flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--border); border-radius: 50px;
  padding: 9px 16px; font-size: 13px; font-weight: 700; color: var(--text);
  cursor: pointer;
}
.dropdown-filter-btn:hover { border-color: var(--accent); }
.dropdown-filter-btn .chev { color: var(--sub); transition: transform .15s; margin-left: 2px; }
.dropdown-filter.open .dropdown-filter-btn .chev { transform: rotate(180deg); }
.dropdown-filter-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
  background: #fff; border-radius: 12px; min-width: 190px; padding: 6px;
  box-shadow: 0 10px 28px rgba(16,32,31,0.16); border: 1px solid var(--border);
}
.dropdown-filter-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 10px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--text); cursor: pointer;
}
.dropdown-filter-opt:hover { background: var(--bg); }
.dropdown-filter-opt.active { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 800; }

/* ── Student/progress "app card" list (rounded white cards, not rows) ── */
.app-card-list { display: flex; flex-direction: column; gap: 10px; }
.app-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 2px 8px rgba(16,32,31,0.05);
}
.app-card.clickable { cursor: pointer; }
.app-card.clickable:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(16,32,31,0.09); }
.app-card-avatar {
  width: 44px; height: 44px; border-radius: 999px; flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.app-card-body { flex: 1; min-width: 0; }
.app-card-name { font-weight: 800; font-size: 14.5px; color: var(--text); }
.app-card-meta { font-size: 12px; color: var(--sub); font-weight: 600; margin-top: 2px; }
.app-card-side { text-align: right; flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.app-card-pct { font-size: 17px; font-weight: 900; color: var(--accent); }
.app-card-chip {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 6px;
  background: #E9F9EE; color: var(--green); font-size: 10.5px; font-weight: 800;
  padding: 3px 9px; border-radius: 50px;
}
.app-card-progress { width: 100%; }
.app-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.app-card-icon-btn {
  width: 32px; height: 32px; border-radius: 9px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue);
}
.app-card-icon-btn.danger { background: #FEF2F2; color: var(--red); }

/* Section group header (bookmark + label + count), like mobile "TLE 8 - SECTION A" */
.section-group-header {
  display: flex; align-items: center; gap: 7px; margin: 22px 0 10px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: var(--accent-dark);
  text-transform: uppercase;
}
.section-group-header:first-child { margin-top: 0; }
.section-group-count {
  margin-left: auto; background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-dark); font-size: 11px; font-weight: 800;
  border-radius: 50px; padding: 2px 9px;
}

/* Tabs row (All Students | + Add Student), like mobile top tabs */
.page-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 18px; gap: 4px; }
.page-tab {
  display: flex; align-items: center; gap: 6px; padding: 12px 4px; margin-right: 22px;
  font-size: 13.5px; font-weight: 700; color: var(--sub); cursor: pointer;
  border-bottom: 2.5px solid transparent; background: none; border-top: none; border-left: none; border-right: none;
}
.page-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.page-tab.push-right { margin-left: auto; margin-right: 0; }

.search-box {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--border); border-radius: 50px; padding: 11px 18px;
  margin-bottom: 18px; color: var(--sub);
}
.search-box input { border: none; outline: none; flex: 1; font-size: 13.5px; background: transparent; color: var(--text); }

/* ── Settings: mobile-style profile card ───────────────────────────── */
.profile-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; text-align: center; max-width: 480px; }
.profile-avatar-lg {
  width: 88px; height: 88px; border-radius: 999px; margin: 0 auto 14px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900;
  position: relative;
}
.profile-name { font-size: 19px; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.profile-role-pill {
  display: inline-flex; align-items: center; gap: 5px; background: #EFF4FF; color: var(--blue);
  font-size: 12px; font-weight: 800; padding: 5px 14px; border-radius: 50px; margin-bottom: 12px;
}
.profile-meta-row { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--sub); font-weight: 600; margin-top: 4px; }

.settings-list { max-width: 480px; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.settings-row {
  display: flex; align-items: center; gap: 13px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); cursor: default;
}
.settings-row:last-child { border-bottom: none; }
.settings-row-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.settings-row-body { flex: 1; min-width: 0; }
.settings-row-label { font-size: 13.5px; font-weight: 800; color: var(--text); }
.settings-row-sub { font-size: 11.5px; color: var(--sub); font-weight: 600; margin-top: 1px; }
.settings-section-label {
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--sub); margin: 22px 0 8px 2px; max-width: 480px;
}
.settings-section-label:first-of-type { margin-top: 0; }
