/* ============================================================
   Pocolindo — Big Picture canvas
   Screen-frame chrome + screens for every product pillar.
   Built on the Polya tokens (paper · pen · highlighter).
   ============================================================ */
@import url('colors_and_type.css');

* { box-sizing: border-box; }
.ic { flex: none; display: block; }

/* ============================================================
   SCREEN FRAME  (one artboard = one desktop screen + annotation)
   ============================================================ */
.bp-screen {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg-1);
  font-family: var(--font-ui); font-size: var(--t-body);
  overflow: hidden;
}
.bp-app { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--sidenav-w) 1fr; }
.bp-app.solo { grid-template-columns: 1fr; }
.bp-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.bp-body { flex: 1; min-height: 0; overflow: hidden; position: relative; }

/* annotation band — clearly meta, never reads as product UI */
.bp-annot {
  flex: none; height: 92px; background: var(--fg-1); color: var(--ink-invert);
  display: flex; align-items: center; gap: 18px; padding: 0 30px;
}
.bp-annot .role {
  flex: none; display: flex; flex-direction: column; gap: 5px; width: 188px;
  border-right: 1px solid rgba(255,255,255,0.14); padding-right: 18px;
}
.bp-annot .role .k { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hi); }
.bp-annot .role .v { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: #fff; }
.bp-annot .desc { font-family: var(--font-read); font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.82); max-width: 78ch; }
.bp-annot .desc b { color: #fff; font-weight: 600; }
.bp-annot .desc .hl { color: var(--hi); font-weight: 600; }

/* ============================================================
   FULL PRODUCT SIDENAV  (shipped scope)
   ============================================================ */
.bp-side { border-right: 1px solid var(--rule); background: var(--bg); display: flex; flex-direction: column; padding: 18px 14px; min-height: 0; }
.bp-brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 16px; }
.bp-brand .nm { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.bp-navscroll { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.bp-navgroup { display: flex; flex-direction: column; gap: 2px; }
.bp-navgroup .gl { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-4); padding: 2px 11px 6px; }
.bp-nav-item {
  display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: var(--r-input);
  font-size: 14px; font-weight: 500; color: var(--fg-2); width: 100%; border: none; background: transparent;
  text-align: left; font-family: var(--font-ui); cursor: pointer;
}
.bp-nav-item:hover { background: var(--bg-1); color: var(--fg-1); }
.bp-nav-item.active { background: var(--pen-soft); color: var(--pen); font-weight: 600; }
.bp-nav-item .label { flex: 1; }
.bp-nav-item .cnt { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--fg-4); }
.bp-nav-item .live { width: 7px; height: 7px; border-radius: 99px; background: var(--shaky); box-shadow: 0 0 0 3px var(--shaky-soft); }
.bp-side-foot { flex: none; padding-top: 10px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.bp-credits {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--r-card);
  background: var(--hi-soft); border: 1px solid rgba(245,183,60,0.32);
}
.bp-credits .ic-wrap { width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--hi-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.bp-credits .grow { flex: 1; min-width: 0; }
.bp-credits .amt { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--hi-ink); line-height: 1; }
.bp-credits .lbl { font-size: 11px; color: var(--hi-ink); opacity: 0.8; margin-top: 2px; }
.bp-credits .plus { width: 26px; height: 26px; border-radius: 7px; border: none; background: var(--hi-ink); color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.bp-userrow { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: var(--r-input); }
.bp-userrow .grow { min-width: 0; flex: 1; }
.bp-userrow .uname { font-weight: 600; font-size: 14px; }
.bp-userrow .sub { font-size: 11.5px; color: var(--fg-3); display: flex; align-items: center; gap: 5px; }

/* ============================================================
   TOPBAR  (shared)
   ============================================================ */
.bp-top { height: var(--topbar-h); flex: none; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: var(--bg); }
.bp-top .ttl { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 9px; }
.bp-top .ttl .sub { color: var(--fg-3); font-weight: 500; }
.bp-top .right { display: flex; align-items: center; gap: 12px; }
.bp-back { width: 32px; height: 32px; border-radius: var(--r-input); border: 1px solid var(--rule-2); background: var(--paper); color: var(--fg-1); display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* shared atoms reused across screens */
.bp-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: var(--shadow-1); }
.bp-btn { font-family: var(--font-ui); font-weight: 600; font-size: 14px; border-radius: var(--r-input); padding: 9px 15px; cursor: pointer; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.bp-btn.primary { background: var(--pen); color: var(--ink-invert); box-shadow: var(--shadow-pen); }
.bp-btn.secondary { background: var(--paper); color: var(--fg-1); border-color: var(--rule-2); }
.bp-btn.ghost { background: transparent; color: var(--pen); border-color: var(--rule-2); }
.bp-btn.hi { background: var(--hi-ink); color: #fff; }
.bp-btn.sm { padding: 6px 11px; font-size: 13px; }
.bp-avatar { border-radius: var(--r-pill); background: var(--pen-soft); color: var(--pen); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; flex: none; }
.bp-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: var(--r-pill); }
.bp-chip .dot { width: 7px; height: 7px; border-radius: 99px; }
.bp-chip.mastered { background: var(--mastered-soft); color: #2C6B41; } .bp-chip.mastered .dot { background: var(--mastered); }
.bp-chip.practising { background: var(--practising-soft); color: #946312; } .bp-chip.practising .dot { background: var(--practising); }
.bp-chip.shaky { background: var(--shaky-soft); color: #9E4537; } .bp-chip.shaky .dot { background: var(--shaky); }
.bp-caps { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.bp-pad { padding: 30px 36px; height: 100%; overflow: hidden; }
.bp-h1 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.bp-sub { color: var(--fg-2); font-size: 14px; margin-top: 5px; }
.bp-seclabel { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 12px; }
.bp-seclabel .link { font-size: 12.5px; font-weight: 600; color: var(--pen); font-family: var(--font-ui); }

/* progress bar */
.bp-bar { height: 7px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.bp-bar > i { display: block; height: 100%; border-radius: 99px; background: var(--pen); }
.bp-bar.green > i { background: var(--mastered); }
.bp-bar.amber > i { background: var(--practising); }

/* ============================================================
   ONBOARDING  (centered, no sidenav)
   ============================================================ */
.bp-auth { height: 100%; display: grid; grid-template-columns: 1.05fr 1fr; }
.bp-auth-aside { background: var(--pen); color: #fff; padding: 56px 52px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.bp-auth-aside .grid-paper { position: absolute; inset: 0; opacity: 0.10; background-color: transparent; }
.bp-auth-aside .mark { display: flex; align-items: center; gap: 11px; position: relative; }
.bp-auth-aside .mark .nm { font-family: var(--font-display); font-weight: 600; font-size: 23px; }
.bp-auth-aside .pitch { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1.18; letter-spacing: -0.02em; margin-top: auto; position: relative; }
.bp-auth-aside .pitch .u { background: linear-gradient(transparent 60%, rgba(245,183,60,0.5) 60%); }
.bp-auth-aside .pts { margin-top: 26px; display: flex; flex-direction: column; gap: 13px; position: relative; }
.bp-auth-aside .pt { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: rgba(255,255,255,0.9); }
.bp-auth-aside .pt .tick { width: 22px; height: 22px; border-radius: 99px; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; flex: none; }
.bp-auth-main { display: flex; align-items: center; justify-content: center; padding: 40px; }
.bp-auth-card { width: 100%; max-width: 392px; }
.bp-auth-card h2 { font-size: 25px; }
.bp-auth-card .lead { color: var(--fg-2); font-size: 14px; margin-top: 6px; }
.bp-field { margin-top: 16px; }
.bp-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--fg-2); margin-bottom: 6px; }
.bp-input { width: 100%; border: 1px solid var(--rule-2); border-radius: var(--r-input); background: var(--paper); padding: 11px 13px; font-family: var(--font-ui); font-size: 15px; color: var(--fg-1); display: flex; align-items: center; gap: 9px; }
.bp-input .ph { color: var(--fg-4); } .bp-input .val { color: var(--fg-1); }
.bp-input.focus { border-color: var(--pen-ring); box-shadow: 0 0 0 3px var(--pen-soft); }
.bp-input .domain { margin-left: auto; font-family: var(--font-mono); font-size: 12.5px; color: var(--pen); background: var(--pen-soft); padding: 3px 8px; border-radius: 6px; }
.bp-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; font-size: 13px; color: var(--fg-2); background: var(--mastered-soft); border: 1px solid rgba(62,142,90,0.22); padding: 11px 13px; border-radius: var(--r-input); line-height: 1.5; }
.bp-note .ic { color: var(--mastered); margin-top: 1px; }
.bp-otp { display: flex; gap: 10px; margin-top: 8px; }
.bp-otp .cell { flex: 1; height: 56px; border: 1px solid var(--rule-2); border-radius: var(--r-input); background: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 24px; font-weight: 600; color: var(--fg-1); }
.bp-otp .cell.on { border-color: var(--pen); box-shadow: 0 0 0 3px var(--pen-soft); }
.bp-otp .cell.empty { color: var(--fg-4); }
.bp-pickgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.bp-pick { border: 1px solid var(--rule-2); border-radius: var(--r-card); padding: 16px; background: var(--paper); display: flex; flex-direction: column; gap: 9px; cursor: pointer; position: relative; }
.bp-pick.on { border-color: var(--pen); box-shadow: 0 0 0 3px var(--pen-soft); }
.bp-pick .ic-tile { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.bp-pick .nm { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; }
.bp-pick .mt { font-size: 12.5px; color: var(--fg-3); }
.bp-pick .check { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 99px; background: var(--pen); color: #fff; display: flex; align-items: center; justify-content: center; }
.bp-yearrow { display: flex; gap: 8px; margin-top: 10px; }
.bp-year { flex: 1; padding: 11px 0; text-align: center; border: 1px solid var(--rule-2); border-radius: var(--r-input); font-weight: 600; font-size: 14px; color: var(--fg-2); cursor: pointer; }
.bp-year.on { border-color: var(--pen); background: var(--pen-soft); color: var(--pen); }

/* placement / diagnostic */
.bp-place { max-width: 760px; margin: 0 auto; }
.bp-place-track { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.bp-place-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.bp-place-row .ic-tile { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
.bp-place-row .grow { flex: 1; min-width: 0; }
.bp-place-row .nm { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.bp-place-row .mt { font-size: 12.5px; color: var(--fg-3); margin-top: 2px; }

/* ============================================================
   LEARN — Practice / Essays / Notes
   ============================================================ */
.bp-split { display: grid; grid-template-columns: 1fr 384px; height: 100%; min-height: 0; }
.bp-split.notes { grid-template-columns: 320px 1fr; }
.bp-pane { padding: 28px 32px; overflow: hidden; min-height: 0; }
.bp-pane.rail { border-left: 1px solid var(--rule); background: var(--bg); padding: 26px 26px; }
.bp-pane.left-rail { border-right: 1px solid var(--rule); background: var(--bg); }

/* practice */
.bp-q { border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--paper); padding: 22px 24px; box-shadow: var(--shadow-1); }
.bp-q .qhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bp-q .qnum { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.bp-q .qtext { font-family: var(--font-read); font-size: 17px; line-height: 1.6; color: var(--fg-1); }
.bp-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.bp-opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--rule-2); border-radius: var(--r-input); padding: 13px 15px; font-size: 15px; cursor: pointer; background: var(--paper); }
.bp-opt .key { width: 26px; height: 26px; border-radius: 7px; background: var(--bg-1); color: var(--fg-2); font-family: var(--font-mono); font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; font-size: 13px; }
.bp-opt.correct { border-color: var(--mastered); background: var(--mastered-soft); } .bp-opt.correct .key { background: var(--mastered); color: #fff; }
.bp-opt.chosen { border-color: var(--pen); background: var(--pen-soft); } .bp-opt.chosen .key { background: var(--pen); color: #fff; }
.bp-spiral { display: flex; flex-direction: column; gap: 10px; }
.bp-spiral-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-input); background: var(--paper); border: 1px solid var(--rule); }
.bp-spiral-row .grow { flex: 1; min-width: 0; }
.bp-spiral-row .nm { font-weight: 600; font-size: 14px; }
.bp-spiral-row .mt { font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.bp-dotrow { display: flex; gap: 5px; }
.bp-dotrow i { width: 9px; height: 9px; border-radius: 99px; background: var(--bg-2); }
.bp-dotrow i.ok { background: var(--mastered); } .bp-dotrow i.no { background: var(--shaky); } .bp-dotrow i.now { background: var(--pen); }

/* essays */
.bp-essay { font-family: var(--font-read); font-size: 15.5px; line-height: 1.95; color: var(--fg-1); }
.bp-essay p { margin: 0 0 14px; }
.bp-essay .mk { border-bottom: 2px solid var(--practising); background: var(--practising-soft); cursor: pointer; padding: 0 1px; }
.bp-essay .mk.q { border-color: var(--pen); background: var(--pen-soft); }
.bp-essay .mk.g { border-color: var(--mastered); background: var(--mastered-soft); }
.bp-fb { display: flex; flex-direction: column; gap: 12px; }
.bp-fb-card { border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--paper); padding: 14px 15px; border-left: 3px solid var(--practising); }
.bp-fb-card.q { border-left-color: var(--pen); } .bp-fb-card.g { border-left-color: var(--mastered); }
.bp-fb-card .tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--practising); }
.bp-fb-card.q .tag { color: var(--pen); } .bp-fb-card.g .tag { color: var(--mastered); }
.bp-fb-card .tx { font-size: 13.5px; color: var(--fg-1); line-height: 1.5; margin-top: 5px; font-family: var(--font-read); }
.bp-band { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-card); background: var(--bg-1); border: 1px solid var(--rule); }
.bp-band .score { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--pen); line-height: 1; }
.bp-band .score small { font-size: 15px; color: var(--fg-3); }

/* notes */
.bp-notes-toc { display: flex; flex-direction: column; gap: 3px; }
.bp-notes-toc .it { padding: 9px 11px; border-radius: var(--r-input); font-size: 13.5px; font-weight: 500; color: var(--fg-2); cursor: pointer; display: flex; align-items: center; gap: 9px; }
.bp-notes-toc .it.on { background: var(--pen-soft); color: var(--pen); font-weight: 600; }
.bp-notes-doc { max-width: 64ch; }
.bp-notes-doc h2 { font-size: 22px; }
.bp-notes-doc .meta { font-size: 12.5px; color: var(--fg-3); margin-top: 6px; display: flex; gap: 14px; }
.bp-notes-doc h3 { font-family: var(--font-display); font-size: 16px; margin: 22px 0 8px; }
.bp-notes-doc p { font-family: var(--font-read); font-size: 15px; line-height: 1.7; color: var(--fg-1); margin: 0 0 10px; }
.bp-callout { background: var(--hi-soft); border: 1px solid rgba(245,183,60,0.3); border-radius: var(--r-input); padding: 13px 15px; font-family: var(--font-read); font-size: 14px; line-height: 1.6; display: flex; gap: 11px; }
.bp-callout .ic { color: var(--hi-ink); flex: none; margin-top: 2px; }
.bp-formula-inline { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-input); padding: 14px 16px; margin: 12px 0; text-align: center; }

/* ============================================================
   STUDY ROOMS
   ============================================================ */
.bp-rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.bp-room { border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--paper); padding: 16px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 12px; }
.bp-room .rt { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bp-room .nm { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.bp-room .topic { font-size: 12.5px; color: var(--fg-3); margin-top: 3px; }
.bp-live-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--shaky); background: var(--shaky-soft); padding: 3px 8px; border-radius: 99px; flex: none; }
.bp-live-badge .d { width: 6px; height: 6px; border-radius: 99px; background: var(--shaky); }
.bp-faces { display: flex; align-items: center; }
.bp-faces .f { width: 28px; height: 28px; border-radius: 99px; border: 2px solid var(--paper); margin-left: -8px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; font-family: var(--font-display); }
.bp-faces .f:first-child { margin-left: 0; }
.bp-faces .more { font-size: 12px; color: var(--fg-3); margin-left: 8px; }

/* live room */
.bp-roomlive { display: grid; grid-template-columns: 1fr 320px; height: 100%; min-height: 0; }
.bp-stage { background: #211d18; position: relative; padding: 20px; display: flex; flex-direction: column; min-height: 0; }
.bp-stage-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0; }
.bp-tile { border-radius: var(--r-card); background: #2c2620; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.06); }
.bp-tile .ava { width: 64px; height: 64px; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: #fff; }
.bp-tile.speaking { border-color: var(--hi); box-shadow: inset 0 0 0 2px var(--hi); }
.bp-tile .nmtag { position: absolute; bottom: 10px; left: 10px; font-size: 12px; color: #fff; background: rgba(0,0,0,0.4); padding: 3px 9px; border-radius: 6px; display: flex; align-items: center; gap: 6px; }
.bp-tile .mute { color: var(--shaky); }
.bp-stage-bar { flex: none; display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 16px; }
.bp-ctrl { width: 46px; height: 46px; border-radius: 99px; background: rgba(255,255,255,0.1); color: #fff; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; }
.bp-ctrl.off { background: var(--shaky); }
.bp-ctrl.leave { background: var(--shaky); width: auto; padding: 0 18px; border-radius: 99px; font-weight: 600; gap: 7px; }
.bp-roompanel { border-left: 1px solid var(--rule); background: var(--bg); display: flex; flex-direction: column; min-height: 0; }
.bp-roompanel .ph { padding: 16px 18px; border-bottom: 1px solid var(--rule); }
.bp-roompanel .ph .nm { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.bp-roompanel .ph .mt { font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.bp-shared { margin: 14px 18px; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--paper); overflow: hidden; }
.bp-shared .sh { padding: 9px 13px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 7px; }
.bp-shared .sb { padding: 13px; font-family: var(--font-read); font-size: 13.5px; line-height: 1.6; color: var(--fg-1); }
.bp-roomchat { flex: 1; min-height: 0; overflow: hidden; padding: 6px 18px; display: flex; flex-direction: column; gap: 12px; }
.bp-rmsg { font-size: 13px; line-height: 1.45; } .bp-rmsg .who { font-weight: 700; color: var(--fg-1); } .bp-rmsg .tx { color: var(--fg-2); }

/* ============================================================
   LESSONS MARKETPLACE  +  PLAYER
   ============================================================ */
.bp-mk-filters { display: flex; gap: 8px; margin: 16px 0 18px; flex-wrap: wrap; }
.bp-mk-pill { font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--rule-2); background: var(--paper); color: var(--fg-2); cursor: pointer; }
.bp-mk-pill.on { background: var(--pen); color: #fff; border-color: var(--pen); }
.bp-mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bp-lesson { border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--paper); overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.bp-thumb { aspect-ratio: 16 / 9; position: relative; display: flex; align-items: center; justify-content: center; }
.bp-thumb .play { width: 44px; height: 44px; border-radius: 99px; background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center; color: var(--fg-1); }
.bp-thumb .dur { position: absolute; bottom: 8px; right: 8px; font-family: var(--font-mono); font-size: 11px; color: #fff; background: rgba(0,0,0,0.55); padding: 2px 6px; border-radius: 5px; }
.bp-thumb .price { position: absolute; top: 8px; left: 8px; font-size: 11.5px; font-weight: 700; color: var(--hi-ink); background: #fff; padding: 3px 8px; border-radius: 99px; display: flex; align-items: center; gap: 4px; }
.bp-lesson .lb { padding: 13px 15px; display: flex; flex-direction: column; gap: 9px; }
.bp-lesson .lt { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.bp-lesson .creator { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg-3); }
.bp-lesson .creator .verified { color: var(--pen); }
.bp-lesson .lmeta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--fg-3); }
.bp-stars { color: var(--practising); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }

/* player */
.bp-player { display: grid; grid-template-columns: 1fr 340px; height: 100%; min-height: 0; }
.bp-player-main { padding: 24px 28px; overflow: hidden; min-height: 0; }
.bp-video { aspect-ratio: 16 / 9; border-radius: var(--r-card); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.bp-video .bigplay { width: 64px; height: 64px; border-radius: 99px; background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center; color: var(--fg-1); }
.bp-video .scrub { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.bp-video .scrub .track { height: 4px; border-radius: 99px; background: rgba(255,255,255,0.3); }
.bp-video .scrub .track > i { display: block; height: 100%; width: 38%; background: var(--hi); border-radius: 99px; }
.bp-video .scrub .tt { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.85); margin-top: 7px; }
.bp-player-rail { border-left: 1px solid var(--rule); background: var(--bg); padding: 22px; overflow: hidden; min-height: 0; }
.bp-chapter { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: var(--r-input); cursor: pointer; }
.bp-chapter.on { background: var(--pen-soft); }
.bp-chapter .t { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); width: 38px; flex: none; }
.bp-chapter .nm { font-size: 13.5px; font-weight: 500; flex: 1; }
.bp-creator-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--rule); }

/* ============================================================
   CREDITS / EARN-TO-LEARN
   ============================================================ */
.bp-wallet-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.bp-balance { background: var(--pen); color: #fff; border-radius: var(--r-sheet); padding: 26px 28px; position: relative; overflow: hidden; }
.bp-balance .grid-paper { position: absolute; inset: 0; opacity: 0.12; background-color: transparent; }
.bp-balance .k { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; opacity: 0.85; position: relative; }
.bp-balance .amt { font-family: var(--font-display); font-size: 52px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-top: 8px; position: relative; display: flex; align-items: baseline; gap: 10px; }
.bp-balance .amt .u { font-size: 18px; opacity: 0.8; }
.bp-balance .foot { display: flex; gap: 22px; margin-top: 22px; position: relative; }
.bp-balance .foot .v { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.bp-balance .foot .l { font-size: 11.5px; opacity: 0.8; margin-top: 2px; }
.bp-earn-list { display: flex; flex-direction: column; gap: 10px; }
.bp-earn-row { display: flex; align-items: center; gap: 13px; padding: 13px 15px; }
.bp-earn-row .ic-tile { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
.bp-earn-row .grow { flex: 1; min-width: 0; }
.bp-earn-row .nm { font-weight: 600; font-size: 14px; } .bp-earn-row .mt { font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.bp-earn-row .amt { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.bp-earn-row .amt.pos { color: var(--mastered); } .bp-earn-row .amt.neg { color: var(--fg-3); }
.bp-ledger { display: flex; flex-direction: column; }
.bp-ledger-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.bp-ledger-row:last-child { border-bottom: none; }
.bp-ledger-row .grow { flex: 1; } .bp-ledger-row .date { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-4); }
.bp-ledger-row .v { font-family: var(--font-display); font-weight: 600; } .bp-ledger-row .v.pos { color: var(--mastered); } .bp-ledger-row .v.neg { color: var(--shaky); }

/* ============================================================
   PROGRESS / MASTERY MEMORY
   ============================================================ */
.bp-prog-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bp-stat { padding: 16px 18px; display: flex; align-items: center; gap: 13px; }
.bp-stat .ic-tile { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.bp-stat .n { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1; } .bp-stat .l { font-size: 12px; color: var(--fg-3); margin-top: 3px; }
.bp-mastery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 16px; }
.bp-conceptmap { padding: 20px; }
.bp-strand { margin-bottom: 16px; } .bp-strand:last-child { margin-bottom: 0; }
.bp-strand .sn { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; }
.bp-strand .sn .pct { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.bp-nodes { display: flex; gap: 7px; flex-wrap: wrap; }
.bp-node { font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--rule-2); }
.bp-node.mastered { background: var(--mastered-soft); color: #2C6B41; border-color: rgba(62,142,90,0.3); }
.bp-node.practising { background: var(--practising-soft); color: #946312; border-color: rgba(194,135,26,0.3); }
.bp-node.shaky { background: var(--shaky-soft); color: #9E4537; border-color: rgba(199,93,76,0.3); }
.bp-node.locked { background: var(--bg-1); color: var(--fg-4); }
.bp-streak-cal { display: flex; gap: 4px; margin-top: 12px; flex-wrap: wrap; }
.bp-streak-cal i { width: 15px; height: 15px; border-radius: 4px; background: var(--bg-2); }
.bp-streak-cal i.l1 { background: rgba(45,68,199,0.25); } .bp-streak-cal i.l2 { background: rgba(45,68,199,0.5); } .bp-streak-cal i.l3 { background: var(--pen); }
.bp-recall { display: flex; flex-direction: column; gap: 10px; }
.bp-recall-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: var(--r-input); border: 1px solid var(--rule); background: var(--paper); }
.bp-recall-row .grow { flex: 1; min-width: 0; } .bp-recall-row .nm { font-weight: 600; font-size: 13.5px; } .bp-recall-row .mt { font-size: 12px; color: var(--fg-3); margin-top: 2px; }

/* ============================================================
   PRICING  (standalone)
   ============================================================ */
.bp-pricing { height: 100%; overflow: hidden; padding: 40px 48px; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; }
.bp-pricing .head { text-align: center; }
.bp-pricing .head h1 { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.bp-pricing .head p { color: var(--fg-2); font-size: 15px; margin-top: 8px; }
.bp-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; align-items: stretch; }
.bp-tier { border: 1px solid var(--rule-2); border-radius: var(--r-sheet); background: var(--paper); padding: 26px 24px; display: flex; flex-direction: column; gap: 7px; position: relative; }
.bp-tier.feat { border-color: var(--pen); box-shadow: var(--shadow-2); }
.bp-tier .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--pen); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 12px; border-radius: 99px; }
.bp-tier .tn { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.bp-tier .td { font-size: 13px; color: var(--fg-3); min-height: 34px; }
.bp-tier .price { font-family: var(--font-display); font-size: 38px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 6px; margin: 6px 0 2px; }
.bp-tier .price .per { font-size: 14px; color: var(--fg-3); font-weight: 500; }
.bp-tier ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 11px; }
.bp-tier li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--fg-1); line-height: 1.4; }
.bp-tier li .ic { color: var(--mastered); flex: none; margin-top: 1px; } .bp-tier li.off { color: var(--fg-4); } .bp-tier li.off .ic { color: var(--fg-4); }
.bp-tier .cta { margin-top: auto; padding-top: 18px; }

/* ============================================================
   PAST PAPERS LIBRARY
   ============================================================ */
.bp-lib-top { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.bp-search { flex: 1; display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule-2); border-radius: var(--r-input); background: var(--paper); padding: 10px 14px; color: var(--fg-4); }
.bp-table { border: 1px solid var(--rule); border-radius: var(--r-card); overflow: hidden; background: var(--paper); }
.bp-tr { display: grid; grid-template-columns: 1fr 120px 130px 150px 110px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.bp-tr:last-child { border-bottom: none; }
.bp-tr.head { background: var(--bg-1); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.bp-tr .pn { display: flex; align-items: center; gap: 11px; } .bp-tr .pn .ic-tile { width: 32px; height: 32px; border-radius: 8px; background: var(--shaky-soft); color: #9E4537; display: flex; align-items: center; justify-content: center; flex: none; }
.bp-tr .pn .nm { font-weight: 600; } .bp-tr .pn .mt { font-size: 11.5px; color: var(--fg-3); }
.bp-cover { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--mastered); }
.bp-lib-aside { display: flex; flex-direction: column; gap: 8px; }
.bp-facet { font-size: 13.5px; padding: 8px 11px; border-radius: var(--r-input); color: var(--fg-2); display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.bp-facet.on { background: var(--pen-soft); color: var(--pen); font-weight: 600; }
.bp-facet .c { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-4); }

/* ============================================================
   B2B SCHOOLS  (teacher cockpit)
   ============================================================ */
.bp-teach-side { background: #1f2540; color: rgba(255,255,255,0.82); }
.bp-teach-side .bp-brand .nm { color: #fff; }
.bp-teach-side .gl { color: rgba(255,255,255,0.4); }
.bp-teach-side .bp-nav-item { color: rgba(255,255,255,0.7); }
.bp-teach-side .bp-nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.bp-teach-side .bp-nav-item.active { background: rgba(255,255,255,0.14); color: #fff; }
.bp-teach-side .bp-side-foot { border-top-color: rgba(255,255,255,0.12); }
.bp-class-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bp-roster { border: 1px solid var(--rule); border-radius: var(--r-card); overflow: hidden; background: var(--paper); margin-top: 16px; }
.bp-roster-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 130px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.bp-roster-row:last-child { border-bottom: none; }
.bp-roster-row.head { background: var(--bg-1); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.bp-roster-row .st { display: flex; align-items: center; gap: 10px; } .bp-roster-row .st .nm { font-weight: 600; }
.bp-heat { display: flex; gap: 3px; } .bp-heat i { width: 16px; height: 16px; border-radius: 4px; }
.bp-flag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }

.katex-host { font-size: 1.04em; }
.ascii-math { font-family: var(--font-mono); font-size: 0.92em; }

.bp-spin { animation: bp-spin 0.7s linear infinite; }
@keyframes bp-spin { to { transform: rotate(360deg); } }
