/* ============================================================
   STUDY NOTES — Premium gamified reader
   ============================================================ */

.study-premium-page .neet-main,
.study-reader-page .neet-main { padding-bottom: 0; }

.study-shell { max-width: 920px; margin: 0 auto; padding: 2px 8px 14px; }
.study-shell--hub { max-width: 980px; }

.study-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 8px; color: var(--gold, #f5b400); text-decoration: none;
  font-size: .82rem; font-weight: 700; opacity: .9;
}
.study-back:hover { opacity: 1; }

.study-kicker {
  margin: 0 0 6px; font-size: 12px; font-weight: 900; letter-spacing: .06em;
  text-transform: uppercase; color: #38bdf8;
}

/* ---- Hub ---- */
.study-hub-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 10px; padding: 10px 12px; border-radius: 12px;
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(245,180,0,.12), transparent 55%),
    radial-gradient(500px 180px at 100% 20%, rgba(56,189,248,.1), transparent 50%),
    rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
}
.study-hub-hero h1 {
  margin: 0 0 3px; font-size: clamp(1.15rem, 2.4vw, 1.35rem); font-weight: 950; color: #fff;
}
.study-hub-hero p { margin: 0; color: rgba(255,255,255,.68); line-height: 1.35; max-width: 560px; font-size: .82rem; }
.study-xp-pill {
  padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: .72rem;
  background: rgba(245,180,0,.12); border: 1px solid rgba(245,180,0,.35); color: #f5d78a;
  white-space: nowrap;
}
.study-hub-hero--arena {
  border-color: rgba(171,71,188,.22);
  box-shadow: 0 8px 24px rgba(107,44,174,.12);
}
.study-hub-hero-stats {
  display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center;
}
.study-xp-pill--pulse {
  animation: studyPillPulse 2.5s ease-in-out infinite;
}
.study-xp-pill--map {
  background: rgba(171,71,188,.12); border-color: rgba(171,71,188,.35); color: #ce93d8;
}
@keyframes studyPillPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(245,180,0,0); }
  50% { box-shadow: 0 0 20px rgba(245,180,0,.25); }
}
.study-open-badge {
  font-size: .65rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; color: #7de37d;
  background: rgba(125,227,125,.12); border: 1px solid rgba(125,227,125,.3);
}

.study-subject-grid--premium {
  display: grid; gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 920px;
  margin: 0 auto;
  justify-content: center;
}
.study-subject-grid--count-1 { grid-template-columns: minmax(260px, 320px); }
.study-subject-grid--count-2 { grid-template-columns: repeat(2, minmax(260px, 320px)); }
.study-subject-grid--count-3 { grid-template-columns: repeat(3, minmax(0, 320px)); }
.study-subject-grid--count-4 { grid-template-columns: repeat(2, minmax(260px, 320px)); max-width: 680px; }
@media (max-width: 900px) {
  .study-subject-grid--premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
  }
}
@media (max-width: 640px) {
  .study-subject-grid--premium {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
}

.study-subject-tile {
  position: relative; padding: 14px 12px; border-radius: 14px; text-decoration: none;
  color: inherit; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03); transition: transform .15s, box-shadow .15s, border-color .15s;
  overflow: hidden;
}
.study-subject-tile::before {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.12), transparent 55%);
}
.study-subject-tile--open:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  border-color: rgba(245,180,0,.35);
}
.study-subject-tile--bio { border-color: rgba(125,227,125,.25); }
.study-subject-tile--phy { border-color: rgba(66,165,245,.25); }
.study-subject-tile--chem { border-color: rgba(171,71,188,.25); }
.study-subject-tile--math { border-color: rgba(245,180,0,.28); }
.study-subject-tile--locked { opacity: .92; }

.study-subject-tile-top {
  display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px;
}
.study-subject-icon {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.12);
}
.study-subject-tile--bio .study-subject-icon { color: #7de37d; box-shadow: 0 0 24px rgba(125,227,125,.25); }
.study-subject-tile--phy .study-subject-icon { color: #42a5f5; box-shadow: 0 0 24px rgba(66,165,245,.25); }
.study-subject-tile--chem .study-subject-icon { color: #ce93d8; box-shadow: 0 0 24px rgba(171,71,188,.25); }
.study-subject-tile--math .study-subject-icon { color: #f5b400; box-shadow: 0 0 24px rgba(245,180,0,.22); }

.study-subject-tile h2 { margin: 0 0 4px; font-size: 1rem; font-weight: 900; color: #fff; }
.study-subject-tile p { margin: 0; font-size: .78rem; color: rgba(255,255,255,.62); line-height: 1.35; }
.study-open-badge {
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800;
  background: rgba(125,227,125,.15); color: #7de37d; border: 1px solid rgba(125,227,125,.35);
}
.study-tile-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: .78rem; font-weight: 800; color: var(--gold, #f5b400);
}

.study-lock-side {
  flex: 0 0 auto; width: 32px; text-align: center; color: #f5b400; font-size: .95rem;
}

/* ---- Subject / class pickers ---- */
.study-subject-hero {
  display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 0 2px;
}
.study-subject-icon--lg {
  width: 48px; height: 48px; border-radius: 14px; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.study-subject-hero--biology .study-subject-icon--lg { color: #7de37d; }
.study-subject-hero--physics .study-subject-icon--lg { color: #42a5f5; }
.study-subject-hero--chemistry .study-subject-icon--lg { color: #ce93d8; }
.study-subject-hero--mathematics .study-subject-icon--lg { color: #f5b400; }
.study-subject-hero h1 { margin: 0; font-size: 1.25rem; font-weight: 950; color: #fff; }
.study-subject-hero .study-kicker { margin-bottom: 2px; font-size: 11px; }

.study-class-grid--premium {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 440px;
}
@media (max-width: 480px) {
  .study-class-grid--premium { max-width: 100%; grid-template-columns: 1fr; }
}
.study-class-tile {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 12px 12px; border-radius: 12px; text-decoration: none; color: inherit;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  transition: background .12s, border-color .12s, transform .12s;
}
.study-class-num {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-weight: 950; font-size: .95rem; color: #0b0612;
  background: linear-gradient(135deg, #f5b400, #ff8f00);
}
.study-class-tile h2 { margin: 0 0 2px; font-size: .95rem; font-weight: 900; }
.study-class-tile p { margin: 0; font-size: .74rem; opacity: .62; }
.study-class-tile:hover {
  background: rgba(245,180,0,.08); border-color: rgba(245,180,0,.3); transform: translateY(-1px);
}
.study-class-arrow { color: var(--gold, #f5b400); opacity: .85; font-size: .8rem; }

/* ---- Chapter list ---- */
.study-list-header { margin-bottom: 8px; padding: 0 2px; }
.study-list-header h1 { margin: 2px 0 4px; font-size: 1.2rem; font-weight: 950; color: #fff; }
.study-trial-hint { color: rgba(255,255,255,.58); font-size: .78rem; margin: 0 0 4px; }

.study-chapter-list--premium { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-width: 720px; }
.study-chapter-row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03);
  text-decoration: none; color: inherit; transition: background .12s, border-color .12s;
}
.study-chapter-row--open:hover {
  background: rgba(245,180,0,.07); border-color: rgba(245,180,0,.28);
}
.study-chapter-row--locked {
  background: rgba(0,0,0,.22); cursor: default;
}
.study-premium-page .study-chapter-row--locked .study-chapter-num,
.study-premium-page .study-chapter-row--locked .study-chapter-title {
  filter: blur(2.8px); opacity: .5; user-select: none;
}
.study-chapter-row.is-trial { order: -1; border-color: rgba(245,180,0,.46); background: linear-gradient(90deg,rgba(245,180,0,.12),rgba(107,44,174,.12)); box-shadow: 0 12px 32px rgba(245,180,0,.1); }
.study-locked-vault { position:relative; overflow:hidden; margin-top:8px; border:1px solid rgba(245,180,0,.2); border-radius:18px; background:rgba(12,6,24,.76); }
.study-locked-vault__rows { display:grid; gap:6px; max-height:230px; padding:8px; overflow:hidden; filter:blur(4px); opacity:.34; pointer-events:none; user-select:none; }
.study-locked-vault__cta { position:relative; z-index:2; display:flex; align-items:center; justify-content:center; gap:12px; min-height:76px; padding:14px 18px; text-align:left; border-bottom:1px solid rgba(245,180,0,.18); background:linear-gradient(90deg,rgba(60,25,77,.96),rgba(20,8,35,.96)); box-shadow:0 14px 32px rgba(0,0,0,.28); }
.study-locked-vault__cta>i { display:grid; flex:0 0 auto; place-items:center; width:40px; height:40px; border-radius:50%; color:#211029; background:#f5b400; box-shadow:0 0 28px rgba(245,180,0,.3); }
.study-locked-vault__cta strong { color:#fff; font-size:1.05rem; }
.study-locked-vault__cta span { color:rgba(255,255,255,.72); font-size:.9rem; }
.study-locked-vault__cta a { flex:0 0 auto; margin-left:8px; padding:10px 16px; border-radius:12px; color:#211029; background:#f5b400; font-weight:950; text-decoration:none; box-shadow:0 12px 28px rgba(245,180,0,.2); }
@media (max-width:640px) {
  .study-locked-vault__cta { flex-wrap:wrap; justify-content:flex-start; gap:9px; }
  .study-locked-vault__cta span { flex:1; min-width:190px; }
  .study-locked-vault__cta a { width:100%; margin-left:0; text-align:center; }
  .study-locked-vault__rows { max-height:170px; }
}
.study-chapter-num { font-weight: 900; color: var(--gold, #f5b400); font-size: .9rem; }
.study-chapter-title { font-weight: 700; line-height: 1.35; }
.study-row-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 72px;
}
.study-row-chevron { color: var(--gold, #f5b400); font-size: .85rem; }
.study-trial-badge {
  padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 900;
  background: rgba(56,189,248,.15); color: #38bdf8; border: 1px solid rgba(56,189,248,.35);
}
.study-unlock-link {
  font-size: .8rem; font-weight: 800; color: #f5b400; text-decoration: none; white-space: nowrap;
}
.study-unlock-link:hover { text-decoration: underline; }

.study-cta, .study-cta-secondary {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 16px;
  border-radius: 12px; background: rgba(245,180,0,.16); border: 1px solid rgba(245,180,0,.4);
  color: var(--gold, #f5b400); text-decoration: none; font-weight: 800; cursor: pointer; font-size: .88rem;
}
.study-cta--glow { box-shadow: 0 0 20px rgba(245,180,0,.15); }
.study-cta-secondary--glow { width: 100%; justify-content: center; margin-top: 12px; }

/* ---- Reader shell (3-column) ---- */
.study-reader-shell {
  position: relative; max-width: 1320px; margin: 0 auto; padding: 6px 8px 24px;
  min-height: calc(100vh - 80px);
}
.study-reader-watermark {
  pointer-events: none; position: fixed; inset: 0; z-index: 9998; opacity: 0;
}
.study-reader-shell.is-protected-blur .study-reader-card,
.study-reader-shell.is-protected-blur .study-mindmap-canvas--premium {
  filter: blur(12px);
}

.study-reader-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 10px; padding: 8px 10px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.study-reader-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: .82rem; color: rgba(255,255,255,.65);
}
.study-reader-crumb a { color: #38bdf8; text-decoration: none; font-weight: 700; }
.study-reader-crumb a:hover { text-decoration: underline; }
.study-reader-xp {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  font-weight: 900; font-size: .85rem; color: #f5d78a;
  background: rgba(245,180,0,.12); border: 1px solid rgba(245,180,0,.3);
}

.study-reader-grid {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 180px;
  gap: 10px; align-items: start; min-height: 66vh;
}

.study-rail-label {
  margin: 0 0 10px; font-size: 11px; font-weight: 900; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
}

/* Left chapter nav */
.study-chapters-rail {
  position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow: auto;
  padding: 12px 10px; border-radius: 16px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.08);
}
.study-chapters-nav { display: flex; flex-direction: column; gap: 4px; }
.study-ch-nav-item {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center; gap: 8px; padding: 10px 8px; border-radius: 10px;
  text-decoration: none; color: rgba(255,255,255,.82); font-size: .78rem; line-height: 1.25;
  border: 1px solid transparent; transition: background .12s, border-color .12s;
}
.study-ch-nav-item--open:hover { background: rgba(255,255,255,.05); }
.study-ch-nav-item.is-active {
  background: rgba(245,180,0,.12); border-color: rgba(245,180,0,.35); color: #fff;
}
.study-ch-nav-item--locked { opacity: .55; cursor: default; }
.study-ch-nav-num { font-weight: 900; color: var(--gold, #f5b400); }
.study-ch-nav-title { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.study-mini-badge {
  font-size: 9px; font-weight: 900; padding: 2px 6px; border-radius: 999px;
  background: rgba(56,189,248,.18); color: #38bdf8;
}

/* Center reader */
.study-reader-main { min-width: 0; display: flex; flex-direction: column; min-height: 70vh; }
.study-reader-head { margin-bottom: 12px; padding: 0 4px; }
.study-reader-title { margin: 0 0 4px; font-size: 1.35rem; font-weight: 950; color: #fff; }
.study-reader-meta { margin: 0; font-size: .82rem; color: rgba(255,255,255,.55); }

.study-mode-tabs {
  display: flex; gap: 8px; margin-bottom: 10px; padding: 0 4px;
}
.study-mode-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px 12px 0 0; cursor: pointer; font-weight: 800;
  border: 1px solid rgba(255,255,255,.1); border-bottom: none;
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.7);
}
.study-mode-tab.is-active {
  background: rgba(20,12,40,.95); color: var(--gold, #f5b400);
  border-color: rgba(245,180,0,.35); box-shadow: 0 -4px 20px rgba(245,180,0,.08);
}

.study-reader-card {
  flex: 1; min-height: 460px; max-height: calc(100vh - 174px);
  overflow: auto; padding: 18px 20px 26px; border-radius: 0 14px 14px 14px;
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(245,180,0,.06), transparent 60%),
    linear-gradient(180deg, rgba(20,12,40,.98), rgba(12,8,28,.98));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  scroll-behavior: smooth;
}
.study-reader-card::-webkit-scrollbar { width: 8px; }
.study-reader-card::-webkit-scrollbar-thumb {
  background: rgba(245,180,0,.35); border-radius: 999px;
}

.study-mode-panel { display: none; }
.study-mode-panel.is-active { display: block; }

/* Native web notes generated from the supplied DOCX content. */
.study-doc-reader { display: grid; gap: 18px; }
.study-doc-reader__intro {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 16px; border: 1px solid rgba(245,180,0,.24); border-radius: 14px;
  background: linear-gradient(135deg,rgba(245,180,0,.12),rgba(124,58,237,.1));
}
.study-doc-reader__intro span { color: #ffd85c; font-size: .72rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.study-doc-reader__intro strong { color: rgba(255,255,255,.82); font-size: .82rem; text-align: right; }
.study-doc-sheet {
  width: min(100%, 980px); margin: 0 auto; padding: clamp(8px,2vw,18px);
  color: rgba(255,255,255,.9); background: transparent;
  font-family: Manrope,Arial,sans-serif; line-height: 1.62;
}
.study-doc-heading { color: #fff; scroll-margin-top: 24px; }
.study-doc-heading--2 { margin: 34px 0 14px; padding: 12px 16px; border-left: 5px solid #8b3fc3; border-radius: 0 12px 12px 0; background: linear-gradient(90deg,rgba(139,63,195,.12),transparent); font-size: 1.32rem; }
.study-doc-heading--3 { margin: 26px 0 10px; color: #e4bdff; font-size: 1.08rem; }
.study-doc-heading--4 { margin: 20px 0 8px; color: #ffd978; font-size: .98rem; }
.study-doc-line { margin: 8px 0; color: rgba(255,255,255,.88); font-size: .94rem; }
.study-doc-line[style] { padding: 9px 12px; border-radius: 10px; background: color-mix(in srgb,var(--doc-fill) 16%,rgba(255,255,255,.04)); }
.study-doc-list-item { position: relative; padding-left: 22px; text-align: left !important; }
.study-doc-sheet ul,.study-doc-sheet ol,.study-doc-sheet li { text-align: left !important; }
.study-doc-list-item::before { content:""; position:absolute; left:4px; top:.72em; width:7px; height:7px; border-radius:50%; background:linear-gradient(135deg,#8b3fc3,#f5b400); box-shadow:0 0 0 3px rgba(139,63,195,.1); }
.study-doc-flow { margin: 10px 0; padding: 10px 14px; border: 1px solid rgba(112,40,168,.16); border-radius: 12px; background: linear-gradient(90deg,rgba(112,40,168,.07),rgba(245,180,0,.08)); font-weight: 750; text-align: center; }
.study-doc-table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background:rgba(255,255,255,.025); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.study-doc-table-wrap table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .86rem; }
.study-doc-table-wrap th,.study-doc-table-wrap td { padding: 10px 12px; border: 1px solid rgba(255,255,255,.1); vertical-align: top; color: rgba(255,255,255,.88); }
.study-doc-table-wrap th { color: #ffe6a0; background: linear-gradient(135deg,rgba(139,63,195,.23),rgba(245,180,0,.13)); font-weight: 900; }
.study-doc-table-wrap td[style],.study-doc-table-wrap th[style] { background: color-mix(in srgb,var(--cell-fill) 14%,rgba(255,255,255,.04)); }
.study-doc-highlight--yellow { padding: 1px 3px; border-radius: 4px; background:#fff09b; }
.study-doc-highlight--green { padding: 1px 3px; border-radius: 4px; background:#bdf5c9; }
.study-doc-highlight--cyan { padding: 1px 3px; border-radius: 4px; background:#bceff1; }
.study-doc-highlight--pink { padding: 1px 3px; border-radius: 4px; background:#ffc4dc; }
.study-doc-highlight--blue { padding: 1px 3px; border-radius: 4px; background:#bedbff; }
.study-doc-highlight--red { padding: 1px 3px; border-radius: 4px; background:#ffc1bd; }
.study-doc-highlight {
  padding: 1px 4px; border-radius: 4px;
  background: var(--study-highlight,#fff09b); color: #17101f;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.study-doc-sheet strong { color: #ffe08a; font-weight: 900; }
.study-doc-sheet em { color: #dcb8f5; }
.study-doc-sheet sup,.study-doc-sheet sub { line-height: 0; }
.study-doc-reader--mindflow .study-doc-flow { border-color:rgba(92,226,163,.2); background:linear-gradient(90deg,rgba(92,226,163,.08),rgba(245,180,0,.07)); }

@media(max-width:640px){
  .study-doc-reader__intro { align-items:flex-start; flex-direction:column; }
  .study-doc-reader__intro strong { text-align:left; }
  .study-doc-sheet { padding:22px 16px; border-radius:14px; }
  .study-doc-heading--2 { font-size:1.12rem; }
  .study-doc-table-wrap table { min-width:460px; }
}

.study-protected {
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}

/* Right TOC */
.study-toc-rail {
  position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow: auto;
  padding: 12px 10px; border-radius: 16px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.08);
  transition: opacity .2s;
}
.study-toc-rail.is-hidden { opacity: .35; pointer-events: none; }
.study-toc--rail ol { margin: 0; padding: 0; list-style: none; }
.study-toc--rail li { margin: 0 0 6px; }
.study-toc--rail a {
  display: block; padding: 6px 8px; border-radius: 8px; font-size: .78rem; line-height: 1.35;
  color: rgba(255,255,255,.72); text-decoration: none; border-left: 2px solid transparent;
}
.study-toc--rail a:hover { background: rgba(255,255,255,.05); color: #fff; }
.study-toc--rail a.is-active {
  color: var(--gold, #f5b400); border-left-color: var(--gold, #f5b400);
  background: rgba(245,180,0,.08); font-weight: 800;
}
.study-toc-l3 a { padding-left: 16px; font-size: .74rem; opacity: .85; }

/* ---- Article content (inside card) ---- */
.study-lead--premium {
  font-size: 1.05rem; line-height: 1.65; color: rgba(255,255,255,.82);
  padding: 14px 16px; border-radius: 12px; margin-bottom: 20px;
  background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.2);
}
.study-section--premium { margin: 28px 0; }
.study-section-heading {
  font-size: 1.15rem; font-weight: 900; color: #fff; margin: 0 0 16px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(245,180,0,.25);
}
.study-concept {
  margin: 20px 0; padding: 16px 16px 14px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
}
.study-concept h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 850; color: #f5e6a8; }
.study-concept h4 { margin: 12px 0 8px; font-size: .92rem; color: rgba(255,255,255,.9); }
.study-concept p, .study-concept li { font-size: .95rem; line-height: 1.65; color: rgba(255,255,255,.86); }

.study-formula-box {
  margin: 14px 0; padding: 16px; border-radius: 12px; text-align: center;
  background: linear-gradient(135deg, rgba(245,180,0,.15), rgba(255,143,0,.08));
  border: 1px solid rgba(245,180,0,.3); color: #fff;
}
.study-formula-text { font-size: 1.1rem; font-weight: 800; margin: 0; }
.study-reaction-box {
  margin: 14px 0; padding: 14px; border-radius: 12px; text-align: center;
  background: rgba(171,71,188,.12); border: 1px solid rgba(171,71,188,.28); color: #fff;
}
.study-derivation-box, .study-numerical-box {
  margin: 14px 0; padding: 14px; border-radius: 12px;
  background: rgba(66,165,245,.1); border: 1px solid rgba(66,165,245,.22); color: rgba(255,255,255,.9);
}
.study-exam-box, .study-exam-inline {
  background: rgba(255,167,38,.12); color: rgba(255,255,255,.92);
  padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,167,38,.25);
}
.study-mistake-box, .study-mistake-inline {
  background: rgba(239,83,80,.12); color: rgba(255,255,255,.92);
  padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(239,83,80,.25);
}
.study-ncert-box {
  background: rgba(171,71,188,.1); color: rgba(255,255,255,.92);
  padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(171,71,188,.22);
}
.study-summary-box--premium {
  margin: 24px 0; padding: 18px; border-radius: 14px;
  background: rgba(125,227,125,.1); border: 1px solid rgba(125,227,125,.28);
}
.study-summary-box--premium h2 { margin: 0 0 12px; color: #7de37d; font-size: 1.05rem; }
.study-appendix--premium { margin: 20px 0; }
.study-appendix--premium h2 { font-size: 1rem; color: var(--gold, #f5b400); margin-bottom: 10px; }

.study-glossary-block {
  margin: 12px 0; padding: 12px; border-radius: 10px;
  border-left: 3px solid var(--gold, #f5b400); background: rgba(255,255,255,.04);
}
.glossary-term {
  display: inline;
  padding: 0 2px;
  border-bottom: 1px dotted rgba(245,180,0,.88);
  border-radius: 5px;
  cursor: help;
  position: relative;
  color: #ffe39a;
  font-weight: 800;
  text-decoration: none;
  outline: none;
  background: linear-gradient(180deg, transparent 52%, rgba(245,180,0,.2) 52%);
  box-shadow: 0 0 0 1px rgba(245,180,0,0);
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}
.glossary-term:hover,
.glossary-term:focus,
.glossary-term.is-open {
  color: #fff6cf;
  background: rgba(245,180,0,.18);
  box-shadow: 0 0 0 1px rgba(245,180,0,.28), 0 0 16px rgba(245,180,0,.16);
}
.glossary-tooltip {
  display: none;
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  transform: translateX(-50%);
  z-index: 80;
  width: max-content;
  min-width: 210px;
  max-width: min(320px, 86vw);
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(28,18,48,.98), rgba(12,8,28,.98));
  border: 1px solid rgba(245,180,0,.38);
  color: #fff;
  font-size: .8rem;
  line-height: 1.42;
  box-shadow: 0 14px 34px rgba(0,0,0,.36), 0 0 18px rgba(245,180,0,.12);
  white-space: normal;
  pointer-events: none;
}
.glossary-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(28,18,48,.98);
  border-left: 1px solid rgba(245,180,0,.28);
  border-top: 1px solid rgba(245,180,0,.28);
}
.glossary-tooltip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold,#f5b400);
  font-size: .84rem;
}
.glossary-tooltip ul {
  margin: 5px 0 0;
  padding-left: 16px;
}
.glossary-tooltip li {
  font-size: .77rem;
  line-height: 1.34;
}
.glossary-tip-label {
  margin: 6px 0 2px;
  color: #f5d78a;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.glossary-term:focus .glossary-tooltip,
.glossary-term:hover .glossary-tooltip,
.glossary-term.is-open .glossary-tooltip { display: none; }

.glossary-floating-tooltip {
  position: fixed;
  z-index: 9999;
  width: max-content;
  min-width: 210px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(28,18,48,.98), rgba(12,8,28,.98));
  border: 1px solid rgba(245,180,0,.38);
  color: #fff;
  font-size: .8rem;
  line-height: 1.42;
  box-shadow: 0 18px 44px rgba(0,0,0,.46), 0 0 20px rgba(245,180,0,.16);
  pointer-events: none;
}
.glossary-floating-tooltip::before {
  content: "";
  position: absolute;
  left: var(--tip-arrow-left, 50%);
  top: var(--tip-arrow-top, -6px);
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(28,18,48,.98);
  border-left: 1px solid rgba(245,180,0,.28);
  border-top: 1px solid rgba(245,180,0,.28);
}
.glossary-floating-tooltip.is-above::before {
  top: auto;
  bottom: -6px;
  border-left: 0;
  border-top: 0;
  border-right: 1px solid rgba(245,180,0,.28);
  border-bottom: 1px solid rgba(245,180,0,.28);
}
.glossary-floating-tooltip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold,#f5b400);
  font-size: .84rem;
}
.glossary-floating-tooltip ul {
  margin: 5px 0 0;
  padding-left: 16px;
}
.glossary-floating-tooltip li {
  font-size: .77rem;
  line-height: 1.34;
}

.study-table-wrap { overflow: auto; margin: 14px 0; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); }
.study-table-wrap table, .study-summary-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.study-table-wrap th, .study-table-wrap td, .study-summary-table th, .study-summary-table td {
  border: 1px solid rgba(255,255,255,.1); padding: 8px 10px;
}
.study-table-wrap th { background: rgba(245,180,0,.1); color: #f5d78a; }

.study-see-also--premium { margin-top: 20px; }
.study-see-also-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.study-chip {
  padding: 6px 10px; border-radius: 999px; border: 1px dashed rgba(245,180,0,.4);
  font-size: .8rem; color: rgba(255,255,255,.85);
}

.study-locked-banner {
  margin-top: 20px; padding: 20px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
}

@media (max-width: 1100px) {
  .study-reader-grid { grid-template-columns: 170px minmax(0, 1fr) 150px; }
}
@media (max-width: 900px) {
  .study-reader-grid { grid-template-columns: 1fr; }
  .study-chapters-rail, .study-toc-rail {
    position: static; max-height: 220px;
  }
  .study-reader-card { max-height: min(70vh, 640px); }
}

/* Spacious, responsive catalogue layouts */
.study-shell {
  width: min(100% - 32px, 1180px);
  max-width: 1180px;
  padding: 16px 0 32px;
}
.study-shell--hub { max-width: 1280px; }
.study-shell--subject { max-width: 1080px; }
.study-shell--catalogue { max-width: 1180px; }

.study-subject-grid--premium {
  width: 100%;
  max-width: 980px;
  gap: 14px;
  justify-content: center;
  justify-items: stretch;
}
.study-subject-grid--count-1 { grid-template-columns: minmax(260px, 320px); max-width: 360px; }
.study-subject-grid--count-2 { grid-template-columns: repeat(2, minmax(260px, 320px)); max-width: 680px; }
.study-subject-grid--count-3 { grid-template-columns: repeat(3, minmax(0, 320px)); max-width: 1020px; }
.study-subject-grid--count-4 { grid-template-columns: repeat(2, minmax(260px, 320px)); max-width: 680px; }
.study-subject-tile {
  min-height: 168px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.study-subject-tile::after {
  content: "";
  position: absolute;
  inset: auto -40px -58px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245,180,0,.16), transparent 64%);
  pointer-events: none;
}
.study-subject-tile--open {
  border: 1px solid rgba(245,180,0,.22);
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    radial-gradient(circle at 12% 8%, rgba(125,227,125,.1), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(171,71,188,.16), transparent 36%);
}
.study-subject-tile--open:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,0,0,.34), 0 0 36px rgba(245,180,0,.12);
}
.study-subject-tile-top { margin-bottom: 14px; }
.study-subject-zone {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #f5d78a;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(245,180,0,.1);
  border: 1px solid rgba(245,180,0,.24);
}
.study-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 12px;
}
.study-card-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  font-size: .72rem;
  font-weight: 800;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.study-card-stats i { color: #f5b400; }
.study-tile-cta { margin-top: auto; padding-top: 8px; }

.study-subject-hero {
  gap: 14px;
  margin: 4px 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
}
.study-subject-hero-copy {
  margin: 6px 0 0;
  color: rgba(255,255,255,.65);
  font-size: .86rem;
}
.study-class-grid--premium {
  width: 100%;
  max-width: none;
  gap: 14px;
}
.study-class-tile {
  position: relative;
  min-height: 136px;
  padding: 20px 72px 20px 20px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(245,180,0,.12), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
}
.study-class-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,.28), 0 0 30px rgba(245,180,0,.1);
}
.study-class-reward {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #f5d78a;
  font-size: .7rem;
  font-weight: 900;
  background: rgba(245,180,0,.1);
  border: 1px solid rgba(245,180,0,.2);
}
.study-class-mini-map {
  position: absolute;
  right: 46px;
  top: 50%;
  width: 58px;
  height: 42px;
  transform: translateY(-50%);
  opacity: .8;
}
.study-class-mini-map::before,
.study-class-mini-map::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 20px;
  border-top: 2px dashed rgba(245,180,0,.38);
}
.study-class-mini-map::after { transform: rotate(38deg); }
.study-class-mini-map i {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #f5b400;
  box-shadow: 0 0 14px rgba(245,180,0,.45);
}
.study-class-mini-map i:nth-child(1) { left: 0; top: 15px; }
.study-class-mini-map i:nth-child(2) { left: 24px; top: 0; background: #42a5f5; }
.study-class-mini-map i:nth-child(3) { right: 0; bottom: 0; background: #ab47bc; }
.study-chapter-list--premium {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: none;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .study-subject-grid--premium { max-width: 680px; }
  .study-subject-grid--count-1 { grid-template-columns: minmax(260px, 320px); }
  .study-subject-grid--count-2,
  .study-subject-grid--count-3,
  .study-subject-grid--count-4 { grid-template-columns: repeat(2, minmax(240px, 320px)); }
}
@media (max-width: 760px) {
  .study-shell { width: min(100% - 24px, 1180px); padding-top: 12px; }
  .study-chapter-list--premium { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .study-subject-grid--premium { max-width: 360px; }
  .study-subject-grid--count-1,
  .study-subject-grid--count-2,
  .study-subject-grid--count-3,
  .study-subject-grid--count-4 { grid-template-columns: 1fr; }
  .study-card-stats { gap: 6px; }
  .study-card-stats span { font-size: .68rem; }
  .study-class-tile { padding: 18px 48px 18px 16px; }
  .study-class-mini-map { display: none; }
}
/* Single-column chapter catalogue */
.study-shell--catalogue { max-width: 1040px; }
.study-shell--catalogue .study-list-header {
  margin: 4px 0 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(245,180,0,.08), rgba(255,255,255,.025));
}
.study-shell--catalogue .study-list-header h1 { font-size: 1.55rem; }
.study-shell--catalogue .study-trial-hint { margin-top: 6px; }
.study-shell--catalogue .study-trial-hint i {
  margin-right: 5px;
  color: #f5b400;
  font-size: 1rem;
}
.study-chapter-list--premium {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin-top: 0;
}
.study-chapter-row {
  grid-template-columns: 112px minmax(0, 1fr) auto;
  min-height: 86px;
  gap: 18px;
  padding: 12px 18px 12px 12px;
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
}
.study-chapter-num {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, rgba(245,180,0,.24), rgba(255,143,0,.1));
  border: 1px solid rgba(245,180,0,.32);
}
.study-chapter-num > i {
  flex: 0 0 auto;
  color: #f5b400;
  font-size: 1.35rem;
}
.study-chapter-num > span { display: flex; flex-direction: column; line-height: 1; }
.study-chapter-num small {
  margin-bottom: 4px;
  color: rgba(255,255,255,.58);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.study-chapter-num strong { color: #fff; font-size: 1.05rem; font-weight: 950; }
.study-chapter-title { font-size: .98rem; font-weight: 800; }
.study-row-actions { min-width: 88px; }
.study-row-chevron { font-size: 1rem; }
.study-chapter-row--open:hover {
  transform: translateX(3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
}

@media (max-width: 640px) {
  .study-shell--catalogue .study-list-header { padding: 15px 16px; }
  .study-chapter-row {
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 76px;
    padding: 9px 12px 9px 9px;
  }
  .study-chapter-num { min-height: 56px; padding: 8px; gap: 7px; }
  .study-chapter-num > i { font-size: 1.05rem; }
  .study-chapter-title { font-size: .88rem; }
  .study-row-actions { min-width: auto; gap: 6px; }
  .study-unlock-link { font-size: .72rem; }
  .study-lock-side { width: 24px; }
}
.study-completion-bar{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:12px 14px;border:1px solid rgba(255,196,0,.22);border-radius:15px;background:linear-gradient(90deg,rgba(255,196,0,.08),rgba(145,52,211,.08))}.study-completion-bar>div{display:flex;align-items:center;gap:10px;margin-right:auto}.study-completion-bar>div>i{color:#ffc400}.study-completion-bar span strong,.study-completion-bar span small{display:block}.study-completion-bar span small{margin-top:2px;color:rgba(255,255,255,.52);font-size:.68rem}.study-completion-bar button{border:1px solid rgba(255,255,255,.15);border-radius:10px;padding:9px 11px;background:rgba(255,255,255,.06);color:#fff;font-weight:800;font-size:.72rem;cursor:pointer}.study-completion-bar button:hover{border-color:#ffc400}.study-completion-bar button.is-complete{color:#64e6a6;border-color:rgba(100,230,166,.35);background:rgba(100,230,166,.09)}.study-mission-toast{position:fixed;right:28px;bottom:92px;z-index:80;max-width:370px;padding:14px 18px;border:1px solid rgba(255,196,0,.45);border-radius:14px;background:#251035;color:#fff;font-weight:800;box-shadow:0 18px 55px rgba(0,0,0,.4);opacity:0;transform:translateY(16px);pointer-events:none;transition:.25s}.study-mission-toast.is-visible{opacity:1;transform:none}@media(max-width:900px){.study-completion-bar{align-items:stretch;flex-direction:column}.study-completion-bar>div{margin-bottom:4px}.study-completion-bar button{width:100%}}

/* Phone-first reading: contain wide documents without shrinking their text. */
.study-doc-reader, .study-doc-sheet, .study-doc-table-wrap { min-width: 0; max-width: 100%; box-sizing: border-box; }
.study-doc-sheet { overflow-wrap: anywhere; }
.study-doc-sheet img { max-width: 100%; height: auto; }
.study-doc-sheet pre { max-width: 100%; overflow-x: auto; }
.study-mode-tab:focus-visible, .study-shell a:focus-visible,
.study-reader-shell button:focus-visible, .study-reader-shell a:focus-visible {
  outline: 2px solid #ffd85c; outline-offset: 3px;
}
@media (max-width: 640px) {
  .study-reader-shell { padding: 4px 0 calc(20px + env(safe-area-inset-bottom)); }
  .study-reader-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .study-reader-main { grid-row: 1; }
  .study-reader-title, .study-chapter-title, .study-subject-hero h1 { overflow-wrap: anywhere; }
  .study-reader-topbar { gap: 6px; padding: 8px; }
  .study-reader-crumb { gap: 6px; min-width: 0; }
  .study-reader-crumb a, .study-back { min-height: 44px; display: inline-flex; align-items: center; }
  .study-reader-xp { padding: 6px 10px; }
  .study-mode-tabs { gap: 8px; padding: 0; }
  .study-mode-tab { flex: 1; justify-content: center; min-height: 48px; padding: 10px 8px; font-size: 1rem; }
  .study-completion-bar { padding: 10px; gap: 8px; }
  .study-completion-bar button { min-height: 44px; font-size: .85rem; }
  .study-reader-card { padding: 14px 12px 22px; min-height: 320px; max-height: 72vh; max-height: 72dvh; }
  .study-doc-reader { gap: 12px; }
  .study-doc-reader__intro { padding: 12px; gap: 8px; }
  .study-doc-sheet { width: 100%; padding: 0; line-height: 1.7; }
  .study-doc-line { font-size: 1rem; }
  .study-doc-heading--2 { padding: 10px; margin-top: 24px; }
  .study-doc-flow { padding: 12px 10px; text-align: left; font-size: 1rem; }
  .study-doc-table-wrap, .study-table-wrap { max-width: 100%; overscroll-behavior-x: contain; }
  .study-doc-table-wrap table { font-size: .94rem; }
  .study-ch-nav-item { min-height: 44px; box-sizing: border-box; font-size: .88rem; }
  .study-mission-toast { left: 12px; right: 12px; max-width: none; bottom: calc(90px + env(safe-area-inset-bottom)); }
  .study-shell { width: calc(100% - 16px); }
  .study-subject-hero { padding: 12px; gap: 10px; }
  .study-class-tile { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px 12px; }
}
@media (max-width: 380px) {
  .study-chapter-row { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; padding: 8px; }
  .study-chapter-num { padding: 6px; gap: 4px; }
  .study-chapter-num > i { display: none; }
  .study-row-actions { flex-wrap: wrap; max-width: 58px; }
}

/* Reflow the document itself on phones, including wide comparison/formula tables. */
.study-table-mobile-label { display: none; }
@media (max-width: 640px) {
  .study-reader-shell, .study-reader-shell *, .study-shell, .study-shell * { box-sizing: border-box; }
  .study-reader-grid > *, .study-mode-panel, .study-doc-reader > *,
  .study-completion-bar > div, .study-shell > * { min-width: 0; }
  .study-reader-card { max-width: 100%; overflow-wrap: anywhere; }
  .study-mode-tab { min-width: 0; flex-wrap: wrap; }
  .study-ch-nav-title { display: block; overflow: visible; -webkit-line-clamp: unset; overflow-wrap: anywhere; }
  .study-doc-sheet pre { white-space: pre-wrap; overflow-wrap: anywhere; overflow: visible; }
  .study-doc-table-wrap, .study-table-wrap { overflow: visible; }
  .study-doc-table-wrap table, .study-table-wrap table { display: block; min-width: 0; width: 100%; }
  .study-doc-table-wrap thead, .study-doc-table-wrap tbody,
  .study-table-wrap thead, .study-table-wrap tbody { display: block; width: 100%; }
  .study-doc-table-wrap tr, .study-table-wrap tr { display: block; padding: 8px; border-bottom: 2px solid rgba(245,180,0,.24); }
  .study-doc-table-wrap tr:last-child, .study-table-wrap tr:last-child { border-bottom: 0; }
  .study-doc-table-wrap th, .study-doc-table-wrap td,
  .study-table-wrap th, .study-table-wrap td {
    display: block; width: 100%; min-width: 0; padding: 10px;
    white-space: normal; overflow-wrap: anywhere; text-align: left;
  }
  .study-table-mobile-label { display: block; margin-bottom: 5px; color: #ffe6a0; font-size: .8rem; font-weight: 900; }
  .study-table-column-headings {
    position: absolute; width: 1px !important; height: 1px; padding: 0 !important;
    overflow: hidden; clip-path: inset(50%);
  }
  .study-chapter-row { grid-template-columns: 64px minmax(0, 1fr); }
  .study-row-actions { grid-column: 2; flex-wrap: wrap; max-width: none; justify-content: flex-start; }
  .study-chapter-num { grid-row: 1 / span 2; }
  .study-xp-pill { white-space: normal; overflow-wrap: anywhere; }
}
