:root {
  --bg: #121212;
  --bg-raised: #181818;
  --bg-card: #181818;
  --bg-deep: #161616;
  --bg-soft: #1a1a1a;
  --bg-dark: #262626;
  --border: #2a2a2a;
  --border-soft: #262626;
  --border-bright: #3a3a3a;
  --text: #f5f5f5;
  --text-dim: #a3a3a3;
  --text-faint: #737373;
  --amber: #d97706;
  --amber-light: #f59e0b;
  --amber-dark: #b45309;
  --amber-tint: #382818;
  --amber-tile: #26170b;
  --green: #16a34a;
  --green-light: #4ade80;
  --green-dark: #14532d;
  --blue: #38bdf8;
  --blue-light: #7dd3fc;
  --blue-dark: #2563eb;
  --blue-tint: #1e293b;
  --red: #ef4444;
  --purple: #7c3aed;
  --purple-tint: #2e1065;
  --purple-light: #c084fc;
  --teal: #059669;
  --teal-tint: #064e3b;
  --teal-light: #34d399;
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 280px;
  --topbar-h: 64px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
hr { border: none; border-top: 1px solid var(--border); }

/* ============ UNIVERSAL SVG SIZING (fixes default 300x150 bug) ============ */
svg { display: block; flex-shrink: 0; overflow: hidden; }
.sv { display: inline-flex; align-items: center; justify-content: center; }
.sv svg { width: 100%; height: 100%; }

/* ============ APP SHELL ============ */
.app { display: flex; flex-direction: column; min-height: 100vh; }
.shell-row { flex: 1; display: flex; min-width: 0; }

/* ============ SIDEBAR ============ */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-raised);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  border-bottom: 1px solid var(--border);
}

.snav { padding: 10px 0; }
.snav-label {
  padding: 14px 18px 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.snav-label.special { color: var(--amber); }
.snav a, .snav .sub-link {
  display: flex; align-items: center; gap: 11px;
  padding: 8.5px 18px;
  color: var(--text-dim);
  font-size: 13.5px;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.snav a:hover, .snav .sub-link:hover { background: var(--bg-dark); color: var(--text); }
.snav a.active, .snav .sub-link.active { background: #262626; color: #fff; }
.snav .ic { width: 16px; height: 16px; flex-shrink: 0; color: #888; }
.snav a.active .ic, .snav .sub-link.active .ic { color: var(--amber-light); }
.snav .count {
  margin-left: auto; font-size: 10.5px; font-weight: 700;
  color: var(--text-dim); background: var(--bg-dark);
  padding: 1px 7px; border-radius: 999px;
}
.snav a.active .count { color: var(--amber-light); background: var(--amber-tint); }

/* folder tree */
.tree-group { margin-block: 4px; }
.tree-group > .tree-label {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 18px; cursor: pointer; color: var(--text-dim); font-size: 12.5px;
}
.tree-group > .tree-label .ic { width: 14px; height: 14px; color: var(--amber); }
.tree-group > .tree-label:hover { color: var(--text); }
.sub { margin-left: 14px; border-left: 1px solid var(--border); padding-left: 10px; }
.sub > .tree-label { padding: 7px 10px; font-size: 12.5px; color: var(--text-dim); cursor: pointer; display: flex; gap: 8px; align-items: center; }
.sub .ic { width: 12px; height: 12px; color: var(--amber); }
.sub > .tree-label.active { color: var(--amber-light); font-weight: 600; }
.sub > .tree-label:hover { color: var(--text); }

.sidebar-badge {
  padding: 14px 18px; border-top: 1px solid var(--border); margin-top: auto;
  font-size: 11.5px; color: var(--text-faint);
  background: var(--amber-tile);
}
.sidebar-badge b { color: var(--amber-light); font-weight: 600; }

/* ============ MAIN / CONTENT ============ */
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 30;
}
.burger { display: none; width: 22px; height: 22px; color: var(--text); flex-shrink: 0; }

/* top-bar brand (user directive: brand lives here, sidebar brand removed) */
.tb-brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.tb-brand img { height: 40px; width: auto; }
.tb-brand img.tb-logo { border-radius: 4px; }
.tb-brand .tb-name { font-weight: 800; font-size: 13.5px; line-height: 1.2; }
.tb-brand .tb-sub { color: var(--text-faint); font-size: 10.5px; line-height: 1.2; }

.crumb { color: var(--text-faint); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb b { color: var(--text); font-weight: 600; }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.profile-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: border-color .12s, background .12s;
}
.profile-btn:hover { background: var(--bg-soft); border-color: #3a3a3a; }
.profile-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.profile-name { font-size: 12.5px; font-weight: 600; }
.profile-caret { width: 14px; height: 14px; color: var(--text-faint); }
.top-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--text-dim); border: 1px solid var(--border); background: var(--bg-raised); transition: background .12s; }
.top-icon:hover { background: var(--bg-soft); color: var(--text); }
.top-icon .sv { width: 17px; height: 17px; }

.page { padding: 24px 22px 60px; max-width: 1150px; margin: 0 auto; width: 100%; }
.page-header { margin-bottom: 18px; }
.page-header h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.page-header .sub { color: var(--text-dim); margin-top: 4px; font-size: 13.5px; max-width: 720px; }
.eyebrow { color: var(--amber-light); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.8px; }
.eyebrow-green { color: var(--green-light); }
.eyebrow-purple { color: var(--purple-light); }

/* ============ GRIDS / CARDS ============ */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.card-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 9px; }
.card-sub { color: var(--text-dim); font-size: 12.5px; margin-top: 3px; }

/* progress bar */
.bar { height: 6px; border-radius: 999px; background: #262626; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--amber); }
.bar.green > i { background: var(--green); }
.bar.blue > i { background: var(--blue); }
.bar.purple > i { background: var(--purple); }
.bar.thin { height: 4px; }

/* header-level workspace progress bar (gradient) */
.wk-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.wk-top .n { color: var(--text-dim); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.wk-top .bar { flex: 1; height: 8px; }
.bar.gradient { background: #262626; }
.bar.gradient > i { background: linear-gradient(90deg, var(--amber), var(--green)); }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 11px; font-weight: 800; font-size: 14px; transition: filter .12s, background .12s, transform .12s; }
.btn:hover { transform: translateY(-1px); }
.btn .sv { width: 17px; height: 17px; }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-light); }
.btn-outline { border: 1px solid var(--border); color: var(--text-dim); background: transparent; }
.btn-outline:hover { background: var(--bg-soft); color: var(--text); border-color: #3a3a3a; }
.btn-dark { background: var(--bg-dark); color: var(--text-dim); border: 1px solid #333; }
.btn-dark:hover { background: #303030; color: var(--text); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { filter: brightness(1.1); }
.btn-gradient { background: linear-gradient(90deg, var(--amber), var(--amber-light)); color: #fff; }
.btn-gradient:hover { filter: brightness(1.08); }
.btn-grad-green { background: linear-gradient(90deg, var(--green), #15803d); color: #fff; }
.btn-grad-green:hover { filter: brightness(1.08); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 7px; }

/* ============ PILLS / BADGES ============ */
.pill { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.pill-dark { background: #262626; color: var(--text-dim); }
.pill-amber { background: var(--amber-tint); color: var(--amber-light); }
.pill-amber-soft { background: var(--amber-tile); color: var(--amber-light); }
.pill-green { background: var(--green-dark); color: var(--green-light); }
.pill-teal { background: var(--teal-tint); color: var(--teal-light); }
.pill-purple { background: var(--purple-tint); color: var(--purple-light); }
.pill-blue { background: var(--blue-tint); color: var(--blue-light); }
.pill-red { background: #7f1d1d; color: #fca5a5; }
.pill-watched { background: var(--green-dark); color: var(--green-light); }
.pill-pending { background: var(--amber-tint); color: var(--amber-light); }

.drop-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #262626; color: var(--text-dim); border: 1px solid #333;
  border-radius: 999px; padding: 8px 14px; font-size: 12.5px; font-weight: 600;
}
.drop-pill .sv { width: 12px; height: 12px; color: var(--text-faint); }

/* ============ HERO BANNERS ============ */
.hero {
  display: flex; gap: 16px; align-items: center;
  background: linear-gradient(135deg, #2c1a0e, #1a1a1a);
  border: 1px solid #3d2411; border-radius: var(--radius);
  padding: 18px; margin-top: 18px;
}
.hero.alt { background: linear-gradient(135deg, #1e1e1e, #141414); border-color: var(--border); }
.hero .hbadge { background: var(--amber-dark); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; width: max-content; }
.hero .htitle { font-weight: 800; font-size: 18px; line-height: 1.3; }
.hero .hsub { color: var(--text-dim); font-size: 13px; margin-top: 6px; line-height: 1.6; }
.hero-jumbo { font-weight: 800; font-size: 19px; line-height: 1.3; margin-top: 8px; }

/* ============ DAY 1 PRODUCT CARDS ============ */
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-card {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
.p-top { display: flex; gap: 14px; align-items: center; padding: 20px; }
.icobox { width: 64px; height: 64px; border-radius: 16px; background: var(--amber-tile); color: var(--amber-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icobox .sv { width: 30px; height: 30px; }
.icobox.lg { width: 72px; height: 72px; border-radius: 18px; }
.icobox.lg .sv { width: 34px; height: 34px; }
.icobox.green { background: var(--green-dark); color: var(--green-light); }
.icobox.blue { background: var(--blue-tint); color: var(--blue-light); }
.icobox.teal { background: var(--teal-tint); color: var(--teal-light); }
.icobox.purple { background: var(--purple-tint); color: var(--purple-light); }
.icobox.scrim { background: transparent; }
.imgbox { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; flex-shrink: 0; }
.imgbox img { width: 100%; height: 100%; object-fit: cover; }
.imgbox.lg { width: 72px; height: 72px; border-radius: 18px; }
.pt-title { font-weight: 800; font-size: 17.5px; line-height: 1.28; }
.pt-sub { color: var(--text-dim); font-size: 13px; margin-top: 4px; line-height: 1.45; }
.pt-pct { margin-left: auto; font-weight: 800; font-size: 20px; }
.pt-pct.amber { color: var(--amber-light); }
.pt-pct.green { color: var(--green-light); }
.p-bar { height: 10px; background: #262626; margin: 0 20px; border-radius: 999px; overflow: hidden; }
.p-bar i { display: block; height: 100%; background: var(--amber); }
.p-bar.green i { background: var(--green); }
.p-bar.blue i { background: var(--blue); }
.p-foot { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 15px 20px; margin-top: auto; }
.p-foot .btn { width: 100%; padding: 12px 18px; font-size: 14.5px; }

/* Daily Feedback wide card */
.df-fb { background: var(--bg-deep); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-top: 10px; }
.df-fb .q { font-weight: 700; font-size: 13.5px; margin-bottom: 10px; }
.radio-pair { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ HOMEPAGE ============ */
.home { max-width: 1040px; margin: 0 auto; padding: 40px 24px 80px; }
.home-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.home-brand { display: flex; align-items: center; gap: 12px; }
.home-brand img { height: 36px; width: auto; border-radius: 8px; }
.home-hello { font-size: 12px; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; }
.home-hello h1 { font-size: 26px; font-weight: 800; color: var(--text); text-transform: none; letter-spacing: 0; }
.home-sub { color: var(--text-dim); margin-top: 8px; max-width: 640px; }
.enrolled { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.enr-card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.enr-cover { height: 96px; background: linear-gradient(135deg, #33200a, #181818); display: flex; align-items: center; padding: 14px 18px; gap: 13px; }
.enr-cover img.cover { width: 52px; height: 68px; border-radius: 6px; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.enr-cover .t { color: #fff; font-weight: 800; font-size: 16px; line-height: 1.25; }
.enr-cover .s { color: #caa26a; font-size: 12px; margin-top: 3px; }
.enr-body { padding: 16px 18px 18px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat-box { background: #0d0d0d; border: 1px solid var(--border); border-radius: 9px; padding: 9px 10px; }
.stat-box .v { font-size: 15px; font-weight: 800; color: var(--text); }
.stat-box .l { font-size: 10.5px; color: var(--text-faint); margin-top: 1px; }
.stat-box.good .v { color: var(--green-light); }
.stat-box.warn .v { color: var(--amber-light); }
.readiness { margin-bottom: 6px; }
.readiness .rl { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.readiness .rl b { color: var(--text); font-weight: 700; }

/* ============ MISC ============ */
.avatar { border-radius: 50%; object-fit: cover; }
.app.hide-sidebar .sidebar { display: none; }
.app.hide-sidebar .content { width: 100%; }
.app.hide-sidebar .burger { display: none; }
.row-flex { display: flex; align-items: center; gap: 10px; }
.spread { justify-content: space-between; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.gap12 { gap: 12px; } .gap16 { gap: 16px; }
.section-head { margin-bottom: 14px; }
.section-head h2 { font-size: 17px; font-weight: 700; }
.section-head .sub { color: var(--text-dim); font-size: 13px; margin-top: 3px; }
.overflow-hide { overflow: hidden; }

/* feed / list rows */
.feed-item { display: flex; gap: 13px; padding: 15px 18px; }
.feed-item + .feed-item { border-top: 1px solid var(--border); }
.feed-item .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.feed-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.feed-title { font-weight: 700; font-size: 14px; }
.feed-body { color: var(--text-dim); font-size: 13px; margin-top: 3px; }
.feed-time { color: var(--text-faint); font-size: 11.5px; margin-top: 5px; }

/* ============ COMMUNITY ============ */
.post-composer { display: flex; gap: 12px; align-items: flex-start; background: #222222; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-top: 16px; }
.post-composer textarea { width: 100%; background: transparent; border: none; outline: none; color: var(--text); font-family: inherit; font-size: 13.5px; resize: none; }
.post-card { display: flex; gap: 14px; align-items: flex-start; }
.post-card + .post-card { border-top: 1px solid var(--border); }
.post-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--border); }
.post-av.teal { border-color: var(--teal); }
.post-av.purple { border-color: var(--purple); }
.post-author { font-weight: 700; font-size: 14px; }
.post-body { color: var(--text-dim); font-size: 13px; margin-top: 3px; line-height: 1.55; }
.post-react { color: var(--text-faint); font-size: 11.5px; margin-top: 8px; }

/* ============ CALENDAR ============ */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cal-dow { background: #0d0d0d; color: var(--text-faint); text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 8px 0; }
.cal-day { min-height: 76px; border: 1px solid var(--border); background: var(--bg-raised); padding: 8px; }
.cal-day .d { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.cal-day.pm { background: #151515; }
.cal-day.pm .d { color: #4a4a4a; }
.cal-day.today { outline: 2px solid var(--amber); outline-offset: -2px; }
.cal-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 7px 3px 0 0; }
.cal-dot.amber { background: var(--amber); }
.cal-dot.blue { background: var(--blue); }

.event-row { display: flex; gap: 0; margin-top: 14px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; align-items: stretch; }
.event-dcol { background: var(--amber-tile); min-width: 90px; display: flex; flex-direction: column; justify-content: center; padding: 12px 14px; border-right: 1px solid #3d2411; text-align: center; }
.event-dcol.blue { background: var(--blue-tint); border-right-color: #28445e; }
.event-dcol .bd { font-weight: 800; font-size: 20px; line-height: 1.1; }
.event-dcol .bt { color: var(--amber-light); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.event-dcol.blue .bt { color: var(--blue-light); }
.event-body { padding: 14px 16px; flex: 1; }
.event-title { font-weight: 700; font-size: 14.5px; line-height: 1.4; }
.event-meta { color: var(--text-dim); font-size: 12.5px; margin-top: 4px; }
.event-btns { display: flex; gap: 8px; margin-top: 12px; }
.event-btns .btn { flex: 1; padding: 8px 12px; font-size: 12.5px; }

/* ============ RECORDINGS ============ */
.rec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rec-card { display: flex; gap: 16px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; align-items: flex-start; }
.rec-card + .rec-card { margin-top: 14px; }
.rec-thumb { position: relative; width: 320px; flex-shrink: 0; aspect-ratio: 16/9; }
.rec-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.play-ov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.play-ov .pb { width: 60px; height: 60px; border-radius: 50%; background: rgba(0,0,0,.55); border: 1px solid var(--amber); color: var(--amber-light); display: flex; align-items: center; justify-content: center; }
.play-ov .pb .sv { width: 24px; height: 24px; }
.play-ov .pb.green { border-color: var(--green); color: var(--green-light); }
.play-ov .pb.pending { border-color: var(--amber); color: var(--amber-light); }
.rec-meta { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 12.5px; margin-top: 6px; }
.rec-av { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

/* ============ TEXTBOOK / READING WORKSPACE ============ */
.wk-layout { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.xv-panel { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.xv-panel .phead { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.xv-panel .total { color: var(--text-faint); font-size: 12px; font-weight: 600; }
.chapters-panel { display: flex; flex-direction: column; gap: 8px; }
.chapter-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 9px; background: var(--bg-raised);
  border: 1px solid var(--border); cursor: pointer; font-size: 13px; color: var(--text-dim);
  transition: background .12s, border-color .12s;
}
.chapter-item:hover { background: var(--bg-soft); }
.chapter-item.done { border-color: #1c3b26; }
.chapter-item.done .icn { color: var(--green-light); }
.chapter-item.active { border-color: var(--amber); background: var(--amber-tint); color: var(--text); }
.chapter-item.active .icn { color: var(--amber-light); }
.chapter-item.locked { opacity: .5; cursor: not-allowed; }
.chapter-item .icn { width: 16px; height: 16px; flex-shrink: 0; }
.chapter-item .num { margin-left: auto; font-size: 11px; color: var(--text-faint); }
.chapter-item.locked .num { color: #555; }

.chapter-canvas {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  line-height: 1.85;
  color: #d6d6d6;
  max-width: 780px;
}
.chapter-canvas h2 { color: var(--text); font-size: 20px; margin-bottom: 6px; }
.chapter-canvas .ch-book { color: var(--amber-light); font-size: 12.5px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 7px; }
.chapter-canvas p { margin-bottom: 14px; }
.chapter-canvas h3 { color: var(--amber-light); font-size: 15px; margin: 22px 0 10px; }
.chapter-canvas ul, .chapter-canvas ol { margin: 0 0 14px 20px; }
.chapter-canvas li { margin-bottom: 7px; }
.chapter-canvas .callout { background: var(--amber-tile); border-left: 3px solid var(--amber); padding: 12px 14px; border-radius: 0 8px 8px 0; margin-bottom: 16px; font-size: 13.5px; }
.crumb-lite { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-faint); margin-bottom: 14px; width: max-content; max-width: 100%; flex-wrap: wrap; }
.crumb-lite .sv { width: 12px; height: 12px; }
.canvas-end { display: flex; justify-content: flex-end; margin-top: 24px; }
.checklist { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-dim); }
.check-item input { margin-top: 3px; accent-color: var(--green); }
.check-item .lbl { color: var(--green-light); }

/* ============ QUIZ ============ */
.q-card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; max-width: 780px; min-height: 440px; margin: 0 auto; }
.q-card .qnum { color: var(--amber-light); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.q-card h2 { font-size: 18px; font-weight: 700; margin: 8px 0 18px; }
.quiz-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.quiz-progress .bar { flex: 1; height: 8px; }
.quiz-progress .n { color: var(--text-dim); font-size: 12.5px; font-weight: 600; }
.option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-deep);
  margin-bottom: 10px; cursor: pointer; font-size: 14px; color: var(--text-dim);
  transition: border-color .12s, background .12s, color .12s;
}
.option:hover { border-color: #3f3f3f; background: #1d1d1d; }
.option.sel { border-color: var(--amber); background: var(--amber-tint); color: var(--text); }
.option .rad { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--text-faint); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.option.sel .rad { border-color: var(--amber); }
.option.sel .rad::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.option.correct { border-color: var(--green); background: var(--green-dark); color: var(--text); }
.option.wrong { border-color: var(--red); background: #2a1414; color: var(--text); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.quiz-nav .faint { color: var(--text-faint); font-size: 12.5px; }
.quiz-score { text-align: center; padding: 30px; max-width: 780px; margin: 0 auto; }
.quiz-score .big { font-size: 52px; font-weight: 800; color: var(--amber-light); }
.quiz-score .pc { font-size: 16px; color: var(--text-dim); margin-top: 2px; }

/* ============ VIDEOS LIST ============ */
.video-row { display: flex; gap: 16px; padding: 12px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); align-items: flex-start; }
.video-row + .video-row { margin-top: 12px; }
.video-row .thumb-wrap { position: relative; width: 160px; height: 95px; flex-shrink: 0; }
.video-row .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.play-ov.sm .pb { width: 34px; height: 34px; }
.play-ov.sm .pb .sv { width: 14px; height: 14px; }
.v-dur { color: var(--text-faint); font-size: 12px; }
.v-btns { display: flex; gap: 8px; margin-top: 10px; align-items: center; }

/* ============ WATCH WORKSPACE ============ */
.player { position: relative; background: #000; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 400px; display: flex; align-items: center; justify-content: center; }
.player video { width: 100%; height: 100%; object-fit: contain; }
.player.fallback { background: radial-gradient(circle at 50% 40%, #1a1a1a, #000); }
.pplay { width: 70px; height: 70px; border-radius: 50%; background: rgba(0,0,0,.55); border: 1px solid var(--amber); color: var(--amber-light); display: flex; align-items: center; justify-content: center; }
.pplay.sm { width: 40px; height: 40px; }
.pplay .sv { width: 26px; height: 26px; }
.player .pbg { position: absolute; inset: 0; overflow: hidden; }
.player .pbg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.player .pcenter { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.player .ptitle { position: relative; z-index: 2; color: #fff; font-weight: 700; font-size: 15px; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.ctl { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(18,18,18,.9); padding: 10px 14px; border-top: 1px solid var(--border); z-index: 3; }
.ctlb { height: 4px; border-radius: 999px; background: #262626; overflow: hidden; margin-bottom: 8px; }
.ctlb i { display: block; height: 100%; width: 45%; background: var(--amber); }
.ctrow { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-dim); }
.callout { background: var(--amber-tile); border-left: 3px solid var(--amber); padding: 12px 14px; border-radius: 0 8px 8px 0; margin-top: 14px; font-size: 13.5px; }
.callout b { color: var(--amber-light); }

/* ============ PIE RINGS (conic multi-segment) ============ */
.pie-radar { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.pie-ring { width: 200px; height: 200px; border-radius: 50%; position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pie-ring .inner { position: absolute; inset: 28px; background: var(--bg-raised); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pie-ring .inner b { font-size: 26px; color: var(--text); }
.pie-ring .inner span { font-size: 11px; color: var(--text-faint); }
.pie-ring .inner b.amber { color: var(--amber-light); }
.legend { display: flex; flex-direction: column; gap: var(--x-gap, 8px); }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-dim); }
.legend-row .sw { width: 12px; height: 12px; border-radius: 3px; }

/* ============ CHARTS (accountability) ============ */
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding: 0 4px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-col .val { font-size: 10px; color: var(--text-faint); }
.bar-col .b { width: 100%; max-width: 40px; border-radius: 5px 5px 2px 2px; min-height: 4px; transition: height .3s; }
.bar-col .lb { font-size: 10.5px; color: var(--text-faint); }

/* metrics panel */
.mets { display: flex; flex-direction: column; gap: 12px; }
.met { border-radius: 12px; padding: 14px 16px; background: #0d0d0d; border: 1px solid var(--border); }
.met .ml { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .5px; }
.met .mv { font-size: 24px; font-weight: 800; margin-top: 4px; }
.met .mv.green { color: var(--green-light); }
.met .mv.amber { color: var(--amber-light); }
.met .mv.teal { color: var(--teal-light); }
.met .mv.blue { color: var(--blue-light); }
.met .mb { height: 6px; border-radius: 999px; background: #262626; overflow: hidden; margin-top: 8px; }
.met .mb i { display: block; height: 100%; }

/* trophy banner (visual summary) */
.trophy-banner { display: flex; gap: 14px; align-items: center; background: var(--amber-tile); border: 1px solid var(--amber); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.trophy-banner .sv { width: 38px; height: 38px; color: var(--amber-light); }
.trophy-banner .th { font-weight: 700; font-size: 15px; }
.trophy-banner .ts { color: var(--text-dim); font-size: 12.5px; margin-top: 2px; }
.trophy-banner .ts.right { margin-left: auto; }

/* mind map */
.mm { display: flex; gap: 14px; align-items: flex-start; margin-top: 6px; }
.mm-root { background: var(--amber-tile); border: 1px solid var(--amber); border-radius: var(--radius); padding: 14px 18px; font-weight: 700; font-size: 14px; min-width: 140px; text-align: center; }
.mm-children { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mm-child { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 9px; font-size: 13px; color: var(--text-dim); }
.mm-child .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }

/* ============ FORMS ============ */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }
.field input[type=text], .field input[type=email], .field input[type=password], .field textarea, .field select {
  width: 100%; padding: 10px 13px; background: #0d0d0d; border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: inherit; font-size: 13.5px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--amber); }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--text-dim); cursor: pointer; transition: border-color .12s, background .12s, color .12s; background: var(--bg-deep); }
.radio-chip:hover { border-color: #3f3f3f; }
.radio-chip.sel { border-color: var(--amber); background: var(--amber-tint); color: var(--amber-light); }
.check-row { display: flex; gap: 10px; flex-wrap: wrap; }
.check-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--text-dim); cursor: pointer; background: var(--bg-deep); }
.check-chip.sel { border-color: var(--amber); background: var(--amber-tint); color: var(--amber-light); }

/* XP / claim banner */
.xp-banner { display: flex; align-items: center; gap: 18px; border: 2px solid var(--amber); border-radius: 16px; padding: 18px 20px; background: var(--bg-raised); box-shadow: 0 8px 26px rgba(217,119,6,.2); margin-bottom: 18px; flex-wrap: wrap; }
.xp-banner .xp { font-size: 30px; font-weight: 800; color: var(--amber-light); }
.xp-banner .xp small { font-size: 14px; color: var(--text-dim); font-weight: 600; }
.xp-banner .btns { margin-left: auto; }

/* streak */
.streak { display: flex; gap: 6px; }
.streak .s { width: 26px; height: 38px; border-radius: 7px; background: #1d1d1d; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text-faint); }
.streak .s.on { background: var(--green-dark); border-color: var(--green); color: var(--green-light); }
.streak .s.today { background: var(--amber-tint); border-color: var(--amber); color: var(--amber-light); }

/* ============ SUPPORT ============ */
.sup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.sup-card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.sup-card .himg { height: 140px; width: 100%; object-fit: cover; display: block; }
.sup-card .body { padding: 14px 16px; flex: 1; }
.sup-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-light); margin-bottom: 8px; }
.sup-tag.amber { background: var(--amber-tint); color: var(--amber-light); }
.sup-tag.green { background: var(--green-dark); color: var(--green-light); }
.sup-card .foot { background: #141414; border-top: 1px solid var(--border); padding: 10px 16px; display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--text-faint); }
.sup-card .foot .btn { margin-left: auto; }

/* ============ ALUMINAL ============ */
.alum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.alum-card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.alum-card .himg { height: 160px; width: 100%; object-fit: cover; display: block; }
.alum-card .body { padding: 14px 16px; flex: 1; }
.feat { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--amber-tile); border: 1px solid var(--amber); color: var(--amber-light); margin-bottom: 8px; }
.alum-ok { color: var(--teal-light); font-size: 12.5px; font-weight: 600; margin-top: 8px; }
.cta { margin-top: 18px; border: 2px solid var(--amber); border-radius: 16px; padding: 22px; box-shadow: 0 8px 26px rgba(217,119,6,.2); background: var(--bg-raised); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.redbadge { background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; width: max-content; }
.price { font-size: 42px; font-weight: 800; color: var(--text); }
.price-old { color: var(--text-faint); text-decoration: line-through; font-size: 15px; }
.price-off { color: var(--teal-light); font-size: 14px; font-weight: 700; }
.save { color: var(--teal-light); font-size: 13px; font-weight: 600; }

/* ============ DAY TILES (legacy keep) ============ */
.tile {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .12s, border-color .12s;
}
.tile:hover { border-color: #3a3a3a; transform: translateY(-1px); }
.tile-top { display: flex; align-items: center; justify-content: space-between; }
.tile-icn { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.tile-icn .sv { width: 16px; height: 16px; }
.tile-status { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; }
.st-done { background: var(--green-dark); color: var(--green-light); }
.st-progress { background: var(--amber-tint); color: var(--amber-light); }
.st-locked { background: #1c1c1c; color: var(--text-faint); }
.tile h3 { font-size: 14px; font-weight: 700; }
.tile p { color: var(--text-dim); font-size: 12.5px; line-height: 1.5; }
.tile a.go { margin-top: 4px; color: var(--amber-light); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.tile a.go .sv { width: 14px; height: 14px; }
.tile .bar { margin-top: 2px; }

/* ============ PROFILE DROPDOWN ============ */
.drop { position: relative; }
.drop-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 230px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 12px; padding: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.6); z-index: 60; }
.drop-menu .dh { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.drop-menu .dh .n { font-weight: 700; font-size: 13.5px; }
.drop-menu .dh .e { color: var(--text-faint); font-size: 11.5px; }
.drop-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--text-dim); font-size: 13.5px; }
.drop-item .sv { width: 16px; height: 16px; }
.drop-item:hover { background: var(--bg-soft); color: var(--text); }
.drop-item.danger { color: var(--red); }
.drop-item.danger:hover { background: #2a1414; }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: #1f1f1f; border: 1px solid #3a3a3a; color: var(--text); padding: 12px 18px; border-radius: 10px; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; display: flex; align-items: center; gap: 9px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-light); }

/* profile */
.profile-hero { display: flex; align-items: center; gap: 20px; padding: 24px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); }
.profile-hero .big-av { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--amber); }
.profile-hero h1 { font-size: 22px; font-weight: 800; }
.profile-hero .role { color: var(--amber-light); font-size: 13px; font-weight: 600; }
.profile-actions { margin-left: auto; display: flex; gap: 10px; }

/* FAQ */
.faq-row { border-bottom: 1px solid var(--border); padding: 13px 2px; }
.faq-q { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-a { color: var(--text-dim); font-size: 13px; margin-top: 8px; line-height: 1.6; }

/* alert */
.alert { display: flex; gap: 12px; align-items: center; background: var(--amber-tint); border: 1px solid var(--amber); color: var(--amber-light); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .wk-layout { grid-template-columns: 1fr; }
  .p-grid { grid-template-columns: repeat(2, 1fr); }
  .sup-grid, .alum-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 240px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .rec-card { flex-direction: column; }
  .rec-thumb { width: 100%; }
  .p-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed; left: 0; top: 0; height: 100dvh; width: var(--sidebar-w);
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.6);
  }
  .sidebar.open { transform: translateX(0); }
  .backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .backdrop.show { opacity: 1; pointer-events: auto; }
  .burger { display: block; }
  .content { min-width: 0; }
  .tb-brand .tb-name, .tb-brand .tb-sub { display: none; }
  .profile-name, .profile-caret { display: none; }
  .page { padding: 20px 16px 60px; }
  .grid-2, .grid-3, .grid-4, .p-grid, .sup-grid, .alum-grid { grid-template-columns: 1fr; }
  .enrolled { grid-template-columns: 1fr; }
  .home-hello h1 { font-size: 22px; }
  .enr-cover { height: auto; flex-direction: column; align-items: flex-start; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .stat-box { padding: 7px 8px; }
  .stat-box .v { font-size: 13px; }
  .profile-actions { display: none; }
  .xp-banner { flex-direction: column; align-items: flex-start; }
  .xp-banner .btns { margin-left: 0; flex-direction: column; width: 100%; }
  .quiz-nav { flex-direction: column; gap: 12px; align-items: stretch; }
  .product-grid { grid-template-columns: 1fr; }
  .video-row { flex-direction: column; }
  .video-row .thumb-wrap { width: 100%; height: auto; aspect-ratio: 16/9; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero img { width: 100%; height: auto; }
  .event-row { flex-direction: column; }
  .event-dcol { flex-direction: row; gap: 10px; min-width: 0; border-right: none; border-bottom: 1px solid #3d2411; justify-content: flex-start; align-items: baseline; }
  .chapter-canvas { padding: 24px; }
}

@media (max-width: 420px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .page-header h1 { font-size: 19px; }
  .pie-ring { width: 170px; height: 170px; }
}

/* ============ BACK NAV / TOP CHIPS ============ */
.back-nav { margin-bottom: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 13px; font-weight: 700; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; transition: background .12s, color .12s, border-color .12s; }
.back-link:hover { background: var(--bg-soft); color: var(--text); border-color: #3f3f3f; }
.back-link .sv { width: 15px; height: 15px; }

.top-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; border: 1px solid var(--border); background: var(--bg-raised); }
.top-chip .sv { width: 14px; height: 14px; }
.top-xp { color: var(--amber-light); border-color: #3d2411; background: var(--amber-tile); }
.top-streak { color: var(--green-light); border-color: #14532d; background: #0d1f12; }

/* ============ DAY HEAD (DASHBOARD) ============ */
.day-head { display: flex; gap: 18px; justify-content: space-between; align-items: flex-end; margin: 4px 0 20px; flex-wrap: wrap; }
.day-head h1 { font-size: 28px; font-weight: 800; margin-top: 4px; }
.dh-sub { color: var(--text-dim); margin-top: 6px; max-width: 620px; font-size: 14px; }
.dh-right { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.day-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: 12.5px; font-weight: 800; }
.day-pill .sv { width: 15px; height: 15px; color: var(--amber-light); }
.day-pill.amber { border-color: #3d2411; background: var(--amber-tile); color: var(--amber-light); }
.day-pill.green { border-color: #14532d; background: #0d1f12; color: var(--green-light); }
.day-pill.green .sv { color: var(--green-light); }

.dash-wide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; align-items: start; }
.panel-title { font-weight: 800; font-size: 15px; margin-bottom: 12px; }

/* ============ CONFETTI ============ */
.confetti-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; }
.confetti-layer i { position: absolute; top: -14px; border-radius: 2px; animation: confettiFall linear forwards; }
@keyframes confettiFall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(560px) rotate(680deg); opacity: 0; }
}

/* ============ GATE OVERLAY (step-by-step quiz) ============ */
.gate-overlay { position: fixed; inset: 0; background: rgba(8, 8, 12, .78); backdrop-filter: blur(8px); z-index: 120; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.gate-card { width: 520px; max-width: 100%; max-height: 92vh; overflow-y: auto; background: var(--bg-raised); border: 1px solid #3a3a3a; border-radius: 18px; position: relative; animation: gateIn .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes gateIn { from { transform: translateY(26px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.gate-card.pass { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 14px 60px rgba(22, 163, 74, .35); }
.gate-card.fail { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 14px 60px rgba(239, 68, 68, .25); animation: shake .5s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
.gate-card.leaving { animation: gateOut .24s forwards; }
@keyframes gateOut { to { transform: translateY(20px) scale(.95); opacity: 0; } }
.gate-head { display: flex; gap: 12px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.gate-head > .sv { width: 22px; height: 22px; color: var(--amber-light); flex-shrink: 0; }
.gate-title { font-weight: 800; font-size: 16px; }
.gate-sub { color: var(--text-faint); font-size: 12px; margin-top: 2px; }
.gate-body { padding: 22px; position: relative; }
.gate-quiz-root { position: relative; }
.qnum { font-size: 16.5px; font-weight: 700; line-height: 1.45; margin-bottom: 16px; color: var(--text); }
.qopts { display: flex; flex-direction: column; gap: 9px; }
.gate-big { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 22px; margin: 14px 0 6px; text-align: center; }
.gate-big .sv { width: 30px; height: 30px; }
.gate-line { color: var(--text-dim); font-size: 14px; text-align: center; line-height: 1.6; max-width: 380px; margin: 0 auto 18px; }
.gate-line b { color: var(--amber-light); }
.gate-xp { text-align: center; font-weight: 800; font-size: 13px; color: var(--green-light); margin-bottom: 16px; }
.gate-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.th-anim { position: relative; width: 96px; height: 96px; margin: 8px auto 4px; display: flex; align-items: center; justify-content: center; }
.th-anim .th-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--border-bright); border-top-color: var(--green-light); animation: thSpin 1.1s ease; }
.th-ring.big { border-width: 4px; }
@keyframes thSpin { from { transform: rotate(0deg) scale(0); } to { transform: rotate(360deg) scale(1); } }
.th-check { width: 60px; height: 60px; border-radius: 50%; background: var(--green-dark); color: var(--green-light); display: flex; align-items: center; justify-content: center; animation: thPop .5s cubic-bezier(.2, 1.6, .4, 1) .25s backwards; }
.th-check.gold { background: var(--amber-dark); color: var(--amber-light); }
.th-check .sv { width: 40px; height: 40px; }
@keyframes thPop { from { transform: scale(.2); } to { transform: scale(1); } }
.fail-anim { width: 84px; height: 84px; margin: 4px auto 2px; border-radius: 50%; color: #fca5a5; display: flex; align-items: center; justify-content: center; animation: thPop .45s ease .1s backwards; }
.fail-anim .sv { width: 46px; height: 46px; }

/* ============ DASHBOARD OVERLAY (checkin / day complete / sun) ============ */
.dash-overlay { position: fixed; inset: 0; background: rgba(8, 8, 12, .8); backdrop-filter: blur(8px); z-index: 110; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .18s ease; overflow-y: auto; }
.dash-modal { width: 720px; max-width: 100%; background: var(--bg-raised); border: 1px solid #3a3a3a; border-radius: 18px; padding: 22px; position: relative; animation: gateIn .35s cubic-bezier(.2, 1.4, .4, 1); }
.dash-modal.ci-modal { width: 860px; }
.dash-overlay.celebrate { align-items: center; }
.claim-win { width: 440px; max-width: 100%; background: var(--bg-raised); border: 1px solid var(--green); border-radius: 18px; padding: 30px; position: relative; overflow: hidden; animation: gateIn .4s cubic-bezier(.2, 1.4, .4, 1); }
.ci-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.ci-head > .sv { width: 22px; height: 22px; color: var(--amber-light); }
.ci-sub { color: var(--text-faint); font-size: 12.5px; margin-top: 2px; }
.ci-skip { display: block; margin: 16px auto 0; color: var(--text-faint); font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.ci-skip:hover { color: var(--text-dim); }

/* ============ CHECK-IN ============ */
.ci-wrap .ci-form { display: grid; grid-template-columns: 1fr 260px; gap: 18px; }
.ci-bar-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ci-bar-head .bar { flex: 1; height: 10px; }
.ci-bar-head .n { color: var(--text-dim); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ci-claim { display: flex; align-items: center; gap: 18px; border: 2px solid var(--amber); border-radius: 16px; padding: 18px 20px; background: var(--bg-raised); box-shadow: 0 8px 26px rgba(217, 119, 6, .18); margin-bottom: 18px; flex-wrap: wrap; }
.ci-claim .xp { font-size: 30px; font-weight: 800; color: var(--amber-light); }
.ci-claim .xp small { font-size: 14px; color: var(--text-dim); font-weight: 600; }
.ci-claim-txt { flex: 1; min-width: 220px; color: var(--text-dim); font-size: 13.5px; }
.btn-claim { min-width: 200px; }
.btn-claim:disabled, .btn-claim.is-locked { opacity: .45; filter: grayscale(.5); cursor: not-allowed; transform: none; }
.ci-q { margin-bottom: 20px; }
.ci-label { font-weight: 800; font-size: 14.5px; margin-bottom: 10px; }
.ci-label b { color: var(--amber-light); }
.fb-area { width: 100%; min-height: 84px; background: #0d0d0d; border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-family: inherit; font-size: 13.5px; padding: 11px 13px; resize: vertical; margin-top: 10px; }
.fb-area:focus { outline: none; border-color: var(--amber); }
.fb-branch { margin-top: 12px; border: 1px solid var(--border-bright); border-radius: 12px; padding: 14px; background: var(--bg-deep); animation: branchIn .25s ease; }
@keyframes branchIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.branch-q { font-weight: 800; font-size: 14px; }
.branch-prompt { color: var(--text-faint); font-size: 12.5px; margin-top: 2px; }
.ci-side { background: var(--bg-deep); border: 1px solid var(--border); border-radius: 14px; padding: 18px; align-self: start; }
.ci-side .lbl { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 13.5px; }
.ci-side .lbl .sv { width: 15px; height: 15px; color: var(--amber-light); }
.next-line { margin-top: 16px; color: var(--text-faint); font-size: 12px; text-align: center; }

.star-row { display: flex; gap: 6px; margin-top: 6px; }
.starb { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #454545; border: 1px solid var(--border); background: var(--bg-deep); transition: transform .12s, color .12s, border-color .12s, background .12s; }
.starb:hover { transform: scale(1.12); }
.starb.on { color: var(--amber-light); border-color: var(--amber); background: var(--amber-tint); }
.starb .sv { width: 24px; height: 24px; }
.starb.on .sv { animation: starPop .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes starPop { 0% { transform: scale(.4) rotate(-20deg); } 100% { transform: scale(1) rotate(0); } }

/* feedback panel */
.fb-inner { display: flex; flex-direction: column; gap: 16px; }
.fb-qs { display: flex; flex-direction: column; gap: 16px; }
.fb-q-block { background: var(--bg-deep); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.fb-q { font-weight: 800; font-size: 14px; }

/* ============ PREVIOUS SESSION Q&A ============ */
.prev-qa-panel .qa-inner { }
.qa-headline { font-weight: 800; font-size: 15px; }
.qa-subline { color: var(--text-faint); font-size: 12.5px; margin-top: 2px; margin-bottom: 14px; }
.qa-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.qa-progress .bar { flex: 1; height: 8px; }
.qa-progress .n { color: var(--text-dim); font-size: 12px; font-weight: 700; }
.qa-question { font-size: 16px; font-weight: 800; line-height: 1.45; margin-bottom: 14px; }
.prev-done { display: flex; align-items: center; gap: 12px; background: var(--green-dark); border: 1px solid var(--green); border-radius: 12px; padding: 14px 16px; }
.prev-done > .sv { width: 18px; height: 18px; color: var(--green-light); }
.prev-done b { font-weight: 800; font-size: 14px; }

/* ============ CLAIM ZONE / COUNTDOWN ============ */
.claim-zone { margin-top: 18px; }
.claim-done-banner { display: flex; align-items: center; gap: 10px; background: var(--amber-tile); border: 1px solid var(--amber); color: var(--amber-light); border-radius: 12px; padding: 13px 16px; font-size: 13.5px; }
.claim-done-banner .sv { width: 18px; height: 18px; }
.claim-done-banner b { color: var(--amber-light); font-family: ui-monospace, monospace; }
.p-claim-state { display: flex; align-items: center; justify-content: space-between; margin: 6px 18px 0; gap: 10px; }
.blur-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--green-dark); color: var(--green-light); font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.blur-tag .sv { width: 13px; height: 13px; }
.countdown { font-family: ui-monospace, monospace; font-size: 13px; font-weight: 800; color: var(--text-dim); }

/* ============ PITCH DECK VIEWER ============ */
.deck-stage { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); min-height: 440px; display: flex; align-items: flex-end; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.deck-img { position: absolute; inset: 0; background-size: cover; background-position: center; animation: deckZoom 6s ease forwards; }
@keyframes deckZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.deck-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .88) 8%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .3)); }
.deck-body { position: relative; z-index: 2; padding: 26px 28px; width: 100%; }
.deck-kicker { color: var(--amber-light); font-weight: 800; font-size: 12px; letter-spacing: 1px; }
.deck-title { font-size: 30px; font-weight: 800; line-height: 1.2; margin-top: 4px; text-shadow: 0 3px 14px rgba(0, 0, 0, .8); }
.deck-sub { color: #e5e7eb; font-size: 15px; margin-top: 2px; font-weight: 600; }
.deck-bullets { list-style: none; margin: 16px 0 0; display: flex; flex-direction: column; gap: 9px; }
.deck-bullets li { display: flex; gap: 9px; align-items: center; font-size: 14px; font-weight: 600; }
.deck-bullets li .sv { width: 15px; height: 15px; color: var(--green-light); flex-shrink: 0; }
.deck-nav { display: flex; gap: 10px; margin-top: 18px; }
.deck-nav .btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ============ DAY COMPLETE / SUN JOURNEY ============ */
.day-comp { text-align: center; padding: 14px 6px 6px; position: relative; overflow: hidden; }
.day-comp .confetti-layer { z-index: 0; }
.dc-title { font-size: 30px; font-weight: 800; margin-top: 4px; position: relative; z-index: 2; }
.dc-line { color: var(--text-dim); font-size: 15px; margin: 6px auto 18px; max-width: 420px; line-height: 1.55; position: relative; z-index: 2; }
.dc-stats { margin-bottom: 20px; position: relative; z-index: 2; }
.dc-icon-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.dc-icon { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; padding: 12px 6px; border-radius: 12px; background: var(--bg-deep); border: 1px solid var(--border); }
.dc-icon .sv { width: 20px; height: 20px; color: #555; }
.dc-icon.ok { border-color: var(--green); background: var(--green-dark); }
.dc-icon.ok .sv { color: var(--green-light); }
.dc-icon em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--text-faint); }
.dc-icon.ok em { color: var(--green-light); }
.dc-nextline { color: var(--text-faint); font-size: 12.5px; margin-bottom: 8px; }

.sun-stage { text-align: center; padding: 8px 4px 10px; position: relative; overflow: hidden; }
.sun-earth { position: relative; height: 220px; border-radius: 16px; background: linear-gradient(to bottom, rgba(56, 189, 248, .12), rgba(8, 8, 12, .1)); margin-bottom: 8px; }
.earth-arc { position: absolute; bottom: 26px; left: -10%; right: -10%; height: 190px; border-radius: 50% 50% 0 0; background: radial-gradient(circle at 50% 130%, rgba(16, 163, 74, .65), rgba(6, 78, 59, .55) 40%, rgba(8, 8, 12, .35) 72%); }
.sun-orb { position: absolute; bottom: 20px; left: 8%; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 55%, #d97706); box-shadow: 0 0 60px 18px rgba(245, 158, 11, .55); animation: sunRide 2.8s cubic-bezier(.45, .05, .4, 1) forwards; }
@keyframes sunRide {
  0% { left: 6%; bottom: 34px; }
  45% { left: 47%; bottom: 120px; }
  100% { left: 92%; bottom: 30px; transform: scale(.92); opacity: .95; }
}
.glow { position: absolute; bottom: 14px; left: 6%; width: 70px; height: 22px; border-radius: 50%; background: rgba(245, 158, 11, .35); filter: blur(14px); animation: glowRide 2.8s cubic-bezier(.45, .05, .4, 1) forwards; }
@keyframes glowRide { 0% { left: 6%; } 100% { left: 92%; } }
.day-pin { position: absolute; bottom: 34px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.day-pin b { font-size: 12px; color: var(--text-dim); }
.pin-a { left: 6%; }
.pin-b { right: 5%; }
.dp-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(22, 163, 74, .8); }
.clouds { position: absolute; inset: 0; pointer-events: none; }
.clo { position: absolute; border-radius: 50px; background: rgba(255, 255, 255, .12); filter: blur(6px); }
.c1 { width: 90px; height: 22px; top: 30px; left: 20%; animation: drift 9s linear infinite; }
.c2 { width: 130px; height: 26px; top: 70px; right: 14%; animation: drift 12s linear infinite reverse; }
.c3 { width: 70px; height: 18px; top: 110px; left: 8%; animation: drift 10s linear infinite; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(40px); } }
.journey-line { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--amber-light); }
.jl-ship { width: 46px; height: 46px; border-radius: 50%; background: var(--amber-tint); border: 1px solid var(--amber); display: flex; align-items: center; justify-content: center; }
.jl-ship .sv { width: 26px; height: 26px; }
.journey-line.ride .jl-ship { animation: jlRide 2.4s ease-in-out infinite; }
@keyframes jlRide { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.journey-title { margin-top: 16px; font-weight: 800; font-size: 20px; }
.journey-sub { color: var(--text-dim); font-size: 14px; margin-top: 4px; }

/* ============ PROFILE EXTRAS ============ */
.hero-mini { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-deep); font-size: 12.5px; color: var(--text-dim); }
.hero-mini .sv { width: 15px; height: 15px; color: var(--amber-light); }
.hero-mini.green .sv { color: var(--green-light); }
.hero-mini.blue .sv { color: var(--blue-light); }
.hero-mini b { color: var(--text); }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ins-chip { background: var(--bg-deep); border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px; }
.ins-chip span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-faint); font-weight: 700; }
.ins-chip b { font-size: 17px; font-weight: 800; }
.prof-sk { margin-bottom: 14px; }
.sk-lab { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.sk-lab b { color: var(--amber-light); }
.frameworks { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.frameworks .phead { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.frameworks .phead .sv { width: 16px; height: 16px; color: var(--amber-light); }
.fw-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.fw-chip { background: var(--amber-tile); border: 1px solid #3d2411; color: var(--amber-light); font-size: 12.5px; font-weight: 700; padding: 7px 13px; border-radius: 999px; }

/* journey strip (profile) */
.journey-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 16px; }
.jy-step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 6px; text-align: center;
}
.jy-step .jy-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-deep); border: 2px solid var(--border); color: var(--text-faint); display: flex; align-items: center; justify-content: center; }
.jy-step .jy-dot .sv { width: 18px; height: 18px; }
.jy-step.done { border-color: #1c3b26; background: linear-gradient(180deg, var(--bg-raised), #0d1f12); }
.jy-step.done .jy-dot { background: var(--green-dark); border-color: var(--green); color: var(--green-light); }
.jy-step b { font-size: 12.5px; }
.jy-step em { font-style: normal; font-size: 10.5px; color: var(--text-faint); font-weight: 600; }
.jy-step.done em { color: var(--green-light); }

/* responsive tweaks for new dash-wide + ci layout */
@media (max-width: 900px) {
  .dash-wide-grid { grid-template-columns: 1fr; }
  .ci-wrap .ci-form { grid-template-columns: 1fr; }
  .day-head { flex-direction: column; align-items: flex-start; }
  .dh-right { align-items: flex-start; }
  .journey-strip { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 560px) {
  .journey-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ============ REF-STYLE RESTYLE ADDITIONS ============ */

/* Courses landing (ref block layout) */
.home-welcome { margin-bottom: 26px; }
.home-welcome .home-hello { font-size: 12px; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; }
.home-welcome h1 { font-size: 26px; font-weight: 800; margin: 0 0 8px; }
.home-welcome .sub { color: var(--text-dim); max-width: 640px; line-height: 1.55; }
.enr-footer { padding: 14px 18px 18px; }
.enr-footer .btn { width: 100%; padding: 12px 18px; font-size: 14.5px; }

/* Day titlebar (ref 06) */
.day-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 4px 0 20px; }
.day-titlebar h1 { font-size: 28px; font-weight: 800; margin-top: 4px; }
.pill-progress { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 800; }
.pill-progress .sv { width: 16px; height: 16px; color: var(--amber-light); }

/* Workspace "Chapter X of N" progress header (refs 09/11/12/13/15) */
.wk-top .bar { flex: 1; height: 8px; }

/* Check-in (ref 14) polish */
.ci-bar-head .bar { height: 8px; border-radius: 999px; }
.ci-q .radio-row { flex-wrap: wrap; }
.ci-claim .btn { padding: 12px 22px; font-size: 14px; }
.ci-bar-head .n, .wk-top .n { font-size: 12.5px; font-weight: 700; white-space: nowrap; }

/* Reading workspace (ref 09) */
.chapter-canvas .est { color: var(--text-faint); font-size: 12.5px; margin: 4px 0 16px; }

/* Video tutorials (ref 11) completed checkbox */
.v-btns .cb { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-dim); }
.v-btns .cb input { accent-color: var(--green); }

/* Watch workspace (ref 12) player controls + playlist */
.player .ctl { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(18, 18, 18, .92); padding: 10px 14px; border-top: 1px solid var(--border); z-index: 3; }
.player .ctlb { height: 4px; border-radius: 999px; background: #262626; overflow: hidden; margin-bottom: 8px; }
.player .ctlb i { display: block; height: 100%; width: 45%; background: var(--amber); }
.player .ctrow { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-faint); }
.pl-list { display: flex; flex-direction: column; gap: 8px; }
.pl-panel { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.pl-panel .panel-title { display: flex; justify-content: space-between; align-items: center; }
.pl-panel .panel-title .num { font-size: 11px; color: var(--text-faint); font-weight: 600; }
.pl-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 9px;
  background: var(--bg-raised); border: 1px solid var(--border); font-size: 13px; color: var(--text-dim); cursor: pointer;
  margin-bottom: 8px; transition: border-color .12s, background .12s, color .12s;
}
.pl-item .icn { width: 16px; height: 16px; flex-shrink: 0; }
.pl-item.done { border-color: #1c3b26; }
.pl-item.done .icn { color: var(--green-light); }
.pl-item.active { border-color: var(--amber); background: var(--amber-tint); color: var(--text); }
.pl-item.active .icn { color: var(--amber-light); }
.pl-item .num { margin-left: auto; font-size: 11px; color: var(--text-faint); }

/* Accountability (ref 15) */
.acc-layout { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.acc-pie { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.acc-chart { margin-top: 6px; }

@media (max-width: 900px) {
  .acc-layout { grid-template-columns: 1fr; }
}