/* ==========================================================================
   MyExcise · Manual navigation drop-in  (mx-manual-nav.css)
   Load AFTER bootstrap.min.css, modern-ui.css and home.css:
     <link rel="stylesheet" href="/css/mx-manual-nav.css?v=1">
   Everything new is prefixed  .mxm-  ; the few overrides of existing
   classes carry the comment word "override" and are deliberately narrow.
   ========================================================================== */

:root {
  --mxm-blue: #1d4ed8;        /* header blue already used site-wide */
  --mxm-blue-dark: #1e40af;
  --mxm-navy: #1e3a8a;        /* hero band */
  --mxm-ink: #0f172a;
  --mxm-muted: #475569;       /* 7:1 on white */
  --mxm-line: #e2e8f0;
  --mxm-soft: #eef2ff;
  --mxm-soft-line: #c7d2fe;
  --mxm-purple: #6d28d9;      /* Ask AI */
  --mxm-cream: #fbf7ea;
  --mxm-radius: 14px;
  --mxm-tap: 44px;            /* minimum touch target */
}

/* --------------------------------------------------------------------------
   1. HOME · the Manual card  (replaces .mx-hero-covers)
   -------------------------------------------------------------------------- */
.mx-hero-block.mxm-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }  /* override */
@media (max-width: 767.98px) { .mx-hero-block.mxm-hero { grid-template-columns: 1fr; gap: 12px; } }
.mx-hero-block.mxm-hero .mx-hero-covers { display: none !important; }  /* override: old twin covers, if still in the template */

.mxm-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 14px; background: #fff; border: 1px solid #bfdbfe; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.mxm-card__top { display: flex; gap: 14px; align-items: flex-start; }
.mxm-card__cover {
  flex: 0 0 62px; width: 62px; height: 84px; border-radius: 3px 7px 7px 3px; overflow: hidden;
  background: var(--mxm-cream); border: 1px solid #d6cba5; box-shadow: inset 4px 0 0 #7f1d1d, 2px 2px 0 var(--mxm-line);
}
.mxm-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mxm-card__text { flex: 1 1 auto; min-width: 0; }
.mxm-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--mxm-muted); }
.mxm-card__title { margin: 2px 0 4px; font-family: "Source Serif Pro", "Source Serif 4", Georgia, "Times New Roman", serif; font-size: 22px; line-height: 1.2; font-weight: 700; color: var(--mxm-ink); }
.mxm-card__meta { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--mxm-muted); }
@media (min-width: 768px) {
  .mxm-card { padding: 18px; }
  .mxm-card__cover { flex-basis: 84px; width: 84px; height: 114px; }
  .mxm-card__title { font-size: 26px; }
  .mxm-card__meta { font-size: 13.5px; }
}

/* returning user strip (shown by JS when a reading position is saved) */
.mxm-card__resume {
  display: grid; grid-template-columns: 1fr; gap: 3px; padding: 10px 12px;
  border: 1px solid var(--mxm-soft-line); background: var(--mxm-soft); border-radius: 10px;
  color: var(--mxm-ink) !important; text-decoration: none !important;
}
.mxm-card__resume[hidden] { display: none; }
.mxm-card__resume-label { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--mxm-navy); }
.mxm-card__resume-title { font-family: "Source Serif Pro", "Source Serif 4", Georgia, serif; font-size: 16px; font-weight: 700; line-height: 1.25; }
.mxm-card__resume-sub { font-size: 12px; color: var(--mxm-muted); }
.mxm-progress { display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: #dbe3f0; overflow: hidden; }
.mxm-progress__bar { display: block; height: 100%; background: var(--mxm-blue); transition: width .3s; }

/* buttons & chips */
.mxm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--mxm-tap); padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; text-decoration: none !important; transition: background .15s, transform .15s;
}
.mxm-btn--primary { background: var(--mxm-blue); color: #fff !important; }
.mxm-btn--primary:hover, .mxm-btn--primary:focus-visible { background: var(--mxm-blue-dark); color: #fff !important; }
/* 2026-11-23: "Scanned manual" secondary button (replaces the old
   "Scanned pages" chip) — two-line label (title + "2023 print") so the
   scan vs. live-text distinction is visible without opening the card. */
.mxm-btn--secondary {
  background: var(--mxm-soft); color: var(--mxm-navy) !important;
  border-color: var(--mxm-soft-line);
}
.mxm-btn--secondary:hover, .mxm-btn--secondary:focus-visible { background: #e0e7ff; }
.mxm-btn__stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.mxm-btn__stack small { font-size: 11px; font-weight: 500; color: var(--mxm-muted); }
/* Demoted EPUB link — a minor offline fallback, not a primary action. */
.mxm-textlink {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 32px; font-size: 12.5px; font-weight: 600;
  color: var(--mxm-muted) !important; text-decoration: underline !important;
}
.mxm-textlink:hover, .mxm-textlink:focus-visible { color: var(--mxm-navy) !important; }
/* 2026-11-19 fix: chips sit inside the card's left column (1.35fr of the
   hero grid), so at desktop widths the 4-column variant only had ~130 px
   per chip — "Browse chapters" (~130 px) + icon + padding overflowed the
   cell and bled into the next chip. Staying at 2 columns at every width
   keeps the labels fully readable; min-width:0 + overflow:hidden on the
   chip (plus text-overflow:ellipsis on the label span) is belt-and-
   braces: even at odd widths or longer labels the chip clips cleanly. */
.mxm-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mxm-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--mxm-tap); min-width: 0; padding: 0 10px; border-radius: 10px;
  background: var(--mxm-soft); border: 1px solid var(--mxm-soft-line); color: var(--mxm-navy) !important;
  font-size: 13px; font-weight: 600; text-decoration: none !important; white-space: nowrap;
  overflow: hidden;
}
.mxm-chip:hover, .mxm-chip:focus-visible { background: #e0e7ff; }
.mxm-chip i { font-size: 13px; flex-shrink: 0; }
.mxm-chip > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* --------------------------------------------------------------------------
   2. BOTTOM TAB BAR · Manual tab  (works with your existing .mbn-bar rules)
   -------------------------------------------------------------------------- */
.mbn-item.mbn-item-manual.active { color: var(--mxm-blue); }                    /* override */
.mbn-item.mbn-item-manual.active .mbn-dot { background: var(--mxm-blue); }      /* override */

/* Manual pages (/manual, /manual/page/N) use their own layout without the site's
   inline .mbn-bar styles, so the JS-injected bar brings its own, scoped copy. */
body.mxm-has-bottom-nav .mbn-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: #fff; border-top: 1px solid #e5e7eb; box-shadow: 0 -4px 14px rgba(15, 23, 42, .06); padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px)); justify-content: space-around; align-items: stretch; font-family: Inter, "Segoe UI", system-ui, sans-serif; }
body.mxm-has-bottom-nav .mbn-item { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; padding: 6px 4px; color: #64748b; font-size: 10.5px; font-weight: 600; text-decoration: none; -webkit-tap-highlight-color: rgba(124, 58, 237, .12); }
body.mxm-has-bottom-nav .mbn-item i { font-size: 18px; line-height: 1; }
body.mxm-has-bottom-nav .mbn-item.active { color: #4338ca; }
body.mxm-has-bottom-nav .mbn-item-ai { color: #7c3aed; }
body.mxm-has-bottom-nav .mbn-item-ai i { font-size: 22px; }
body.mxm-has-bottom-nav .mbn-dot { display: none; }
body.mxm-has-bottom-nav .mbn-item.active .mbn-dot { display: block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin-top: 2px; }
@media (max-width: 768px) {
  body.mxm-has-bottom-nav .mbn-bar { display: flex; }
  body.mxm-has-bottom-nav .mbk-shell { padding-bottom: 96px; }
}

/* Floating pills on phones: Ask AI already sits in the tab bar, so hide the
   floating prompt box; park the Marathi pill bottom-left so it never covers a card. */
@media (max-width: 768px) {
  #aiPromptBox.ai-prompt-box { display: none !important; }                                  /* override */
  .mx-marathi-toggle { left: 10px !important; right: auto !important; bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important; width: 40px; height: 40px; padding: 0 !important; border-radius: 20px !important; justify-content: center; }  /* override: compact "अ" button */
  .mx-marathi-toggle .mx-marathi-toggle-label, .mx-marathi-toggle .mx-marathi-toggle-icon { display: none; }
  .mx-marathi-toggle::before { content: "अ"; font-family: "Noto Sans Devanagari", "Mukta", sans-serif; font-weight: 700; font-size: 17px; line-height: 1; }
}

/* --------------------------------------------------------------------------
   3. HEADER · plain "Manual" link next to Home (desktop)
   -------------------------------------------------------------------------- */
.mxm-nav-link {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 10px;
  color: #fff !important; font-weight: 600; font-size: 14px; text-decoration: none !important;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); white-space: nowrap;
}
.mxm-nav-link:hover, .mxm-nav-link:focus-visible { background: rgba(255, 255, 255, .22); }
.mxm-nav-link i { font-size: 13px; }
@media (max-width: 767.98px) { .mxm-nav-link { display: none; } }  /* the bottom bar covers phones */

/* --------------------------------------------------------------------------
   4. DRAWER · Manual tile first, one search box, calmer sticky search
   -------------------------------------------------------------------------- */
.mxm-drawer-tile { margin: 6px 8px 10px !important; }
.mxm-drawer-tile__link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  background: var(--mxm-navy); color: #fff !important; text-decoration: none !important;
}
.mxm-drawer-tile__link:hover { background: #172f73; }
.mxm-drawer-tile__cover { flex: 0 0 34px; width: 34px; height: 46px; border-radius: 2px 4px 4px 2px; overflow: hidden; background: var(--mxm-cream); box-shadow: inset 3px 0 0 #7f1d1d; }
.mxm-drawer-tile__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.mxm-drawer-tile__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mxm-drawer-tile__title { font-size: 15px; font-weight: 700; line-height: 1.2; }
.mxm-drawer-tile__sub { font-size: 12px; color: #c7d2fe; }
/* 2026-11-23: #nav-tree-search-wrapper rule removed — it was hiding a
   phantom second search box that NavTree (public/tree.js, now deleted)
   injected. With NavTree gone that box is never created, so the hide
   rule had nothing left to do. */
.offcanvas-body .toc-search-container { position: sticky; top: 0; z-index: 3; background: #fff; padding-bottom: 8px; border-bottom: 1px solid var(--mxm-line); margin-bottom: 6px; }  /* override */

/* --------------------------------------------------------------------------
   5. GLOBAL SEARCH · "Pages & chapters" group (injected by JS)
   -------------------------------------------------------------------------- */
.mxm-sc-pages { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--mxm-navy) !important; color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .3px; }
.mxm-sc-pages .badge { background: #fff; color: var(--mxm-ink); }
.mxm-sr { display: flex !important; align-items: center; gap: 12px; padding: 10px 12px !important; }
.mxm-sr__ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; letter-spacing: .3px; }
.mxm-sr__ico--book { background: var(--mxm-navy); color: #fff; }
.mxm-sr__ico--ch { background: #fef3c7; color: #92400e; }
.mxm-sr__ico--pg { background: #e0e7ff; color: #3730a3; }
.mxm-sr__ico--q { background: var(--mxm-soft); color: var(--mxm-navy); }
.mxm-sr__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mxm-sr__title { font-size: 14px; font-weight: 600; color: var(--mxm-ink); line-height: 1.3; }
.mxm-sr__title .mxm-mr { font-family: "Noto Sans Devanagari", "Mukta", sans-serif; font-weight: 500; color: var(--mxm-muted); margin-left: 6px; font-size: 13px; }
.mxm-sr__sub { font-size: 12px; color: var(--mxm-muted); }
.mxm-sr__sub mark { background: #fef3c7; padding: 0 2px; }
.mxm-sr__chev { color: #94a3b8; font-size: 12px; }
.mxm-sc-hint { padding: 6px 12px 8px; font-size: 11.5px; color: var(--mxm-muted); background: #f8fafc; border-bottom: 1px solid var(--mxm-line); }
.mxm-sc-hint code { font-size: 11px; color: var(--mxm-navy); background: var(--mxm-soft); padding: 1px 5px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   6. MANUAL HUB (/manual) · view toggle, go-to-page, Part tabs, flat chapters
   -------------------------------------------------------------------------- */
.mxm-hub { margin: 14px 0 28px; font-family: Inter, "Segoe UI", system-ui, sans-serif; }
.mxm-hub__util { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--mxm-line); border-radius: 12px; }
.mxm-seg { display: inline-flex; gap: 2px; padding: 3px; background: #f1f5f9; border-radius: 10px; }
.mxm-seg__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--mxm-muted); font: inherit; font-size: 12.5px; font-weight: 600; text-decoration: none !important; cursor: pointer; }
.mxm-seg__btn.is-on { background: #fff; color: var(--mxm-blue); box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.mxm-goto { display: flex; align-items: center; gap: 6px; margin: 0 0 0 auto; }
.mxm-goto label { font-size: 12.5px; font-weight: 500; color: var(--mxm-muted); white-space: nowrap; }
.mxm-goto input { width: 72px; height: 40px; box-sizing: border-box; padding: 0 8px; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; font-size: 14px; text-align: center; color: var(--mxm-ink); }
.mxm-goto button { height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--mxm-navy); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }

.mxm-hub__resume { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 14px; border: 1px solid var(--mxm-soft-line); background: var(--mxm-soft); border-radius: 12px; color: var(--mxm-ink) !important; text-decoration: none !important; }
.mxm-hub__resume[hidden] { display: none; }
.mxm-hub__resume strong { font-family: "Source Serif Pro", Georgia, serif; font-size: 15px; }
.mxm-hub__resume small { color: var(--mxm-muted); font-size: 12px; }
.mxm-hub__resume i { margin-left: auto; color: var(--mxm-navy); }

.mxm-hub__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; background: #fff; border: 1px solid var(--mxm-line); border-bottom: 0; border-radius: 12px 12px 0 0; overflow: hidden; }
.mxm-hub__tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 6px 8px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--mxm-muted); font: inherit; cursor: pointer; }
.mxm-hub__tab strong { font-size: 13.5px; font-weight: 600; }
.mxm-hub__tab span { font-size: 11px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.mxm-hub__tab[aria-selected="true"] { color: var(--mxm-blue); border-bottom-color: var(--mxm-blue); }
.mxm-hub__tab[aria-selected="true"] strong { font-weight: 700; }
.mxm-hub__panel { background: #fff; border: 1px solid var(--mxm-line); border-top: 0; border-radius: 0 0 12px 12px; }
.mxm-hub__panel[hidden] { display: none; }
.mxm-hub__desc { margin: 0; padding: 10px 16px; font-size: 12.5px; color: var(--mxm-muted); border-bottom: 1px solid #f1f5f9; }
.mxm-hub__list { list-style: none; margin: 0; padding: 0; }
.mxm-hub__row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 12px 6px 16px; border-bottom: 1px solid #f1f5f9; color: var(--mxm-ink) !important; text-decoration: none !important; }
.mxm-hub__row:hover, .mxm-hub__row:focus-visible { background: #f8fafc; }
.mxm-hub__list li:last-child .mxm-hub__row { border-bottom: 0; }
.mxm-hub__num { flex: 0 0 46px; padding: 3px 0; border-radius: 6px; background: #e0e7ff; color: #3730a3; font-size: 11px; font-weight: 700; letter-spacing: .3px; text-align: center; }
.mxm-hub__num--blank { background: transparent; color: #94a3b8; }
.mxm-hub__ttl { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; font-family: "Source Serif Pro", "Source Serif 4", Georgia, serif; font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.mxm-hub__mr { font-family: "Noto Sans Devanagari", "Mukta", sans-serif; font-size: 11.5px; font-weight: 500; color: var(--mxm-muted); }
.mxm-hub__pg { font-size: 12px; color: var(--mxm-muted); white-space: nowrap; }
.mxm-hub__row i { color: #94a3b8; font-size: 12px; }
.mxm-hub__more { margin: 10px 0 0; font-size: 12.5px; }
.mxm-hub__more a { color: var(--mxm-blue); font-weight: 600; }
body.mxm-hub-ready #pa-toc:not(.mxm-index-open) { display: none; }   /* detailed accordion index stays available via "Show full index" */
@media (max-width: 480px) {
  .mxm-hub__tab span { font-size: 10.5px; }
  .mxm-goto { margin-left: 0; width: 100%; }
  .mxm-goto input { flex: 1 1 auto; width: auto; }
}

/* --------------------------------------------------------------------------
   7. READER (/manual/page/N) · contents rail, toolbar polish
   -------------------------------------------------------------------------- */
.mxm-rail { margin: 0 0 16px; font-family: Inter, "Segoe UI", system-ui, sans-serif; }
.mxm-rail__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mxm-rail__head h2 { margin: 0; font-size: 14px; font-weight: 700; color: var(--mxm-ink); }
.mxm-rail__head a { font-size: 12px; font-weight: 600; color: var(--mxm-blue); }
.mxm-rail__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 3px; background: #f1f5f9; border-radius: 10px; margin-bottom: 8px; }
.mxm-rail__tab { min-height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--mxm-muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.mxm-rail__tab[aria-selected="true"] { background: #fff; color: var(--mxm-blue); box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.mxm-rail__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.mxm-rail__list[hidden] { display: none; }
.mxm-rail__row { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 8px; border-radius: 8px; color: var(--mxm-ink) !important; text-decoration: none !important; font-size: 13px; font-weight: 500; }
.mxm-rail__row:hover { background: #f8fafc; }
.mxm-rail__row.is-current { background: var(--mxm-soft); color: var(--mxm-navy) !important; font-weight: 700; }
.mxm-rail__num { flex: 0 0 34px; padding: 2px 0; border-radius: 5px; background: #e0e7ff; color: #3730a3; font-size: 10.5px; font-weight: 700; text-align: center; }
.mxm-rail__row.is-current .mxm-rail__num { background: var(--mxm-blue); color: #fff; }
.mxm-rail__ttl { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mxm-rail__pg { font-size: 11px; color: var(--mxm-muted); }
.mxm-rail__sections { list-style: none; margin: 2px 0 4px 20px; padding: 0 0 0 10px; border-left: 2px solid var(--mxm-soft-line); display: flex; flex-direction: column; gap: 1px; }
.mxm-rail__sec { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; padding: 3px 8px; border-radius: 6px; color: #334155 !important; font-size: 12.5px; text-decoration: none !important; }
.mxm-rail__sec:hover { background: #f8fafc; }
.mxm-rail__sec.is-current { background: var(--mxm-soft); color: var(--mxm-navy) !important; font-weight: 600; }
.mxm-rail__sec .mxm-rail__pg { flex: 0 0 auto; }

/* toolbar: one "Text | Scan" switch instead of the PNG pill, Contents always reachable */
.mxm-view { display: inline-flex; gap: 2px; padding: 3px; background: #f1f5f9; border-radius: 10px; }
.mxm-view__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--mxm-muted); font: inherit; font-size: 12px; font-weight: 600; text-decoration: none !important; }
.mxm-view__btn.is-on { background: #fff; color: var(--mxm-blue); box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.mxm-view .mbk-sticky-png-btn { background: transparent !important; border: 0 !important; color: var(--mxm-muted) !important; padding: 0 10px !important; min-height: 34px; border-radius: 8px !important; font-size: 12px !important; font-weight: 600 !important; }  /* override */
.mxm-view .mbk-sticky-png-btn:hover { background: #e2e8f0 !important; filter: none !important; color: var(--mxm-ink) !important; }
.mxm-view .mbk-sticky-png-btn i { display: none; }
.mxm-view .mbk-sticky-png-btn .mbk-png-label { display: inline !important; }
@media (max-width: 600px) {
  /* phones: the INDEX tag (relabelled "Contents" by JS) opens the table of contents,
     so give the bar room — drop the long chapter crumb, keep "Page 569 of 1109" */
  .mbk-sticky-inner { gap: 6px !important; }                                                 /* override */
  .mbk-sticky-crumb { display: none !important; }                                            /* override */
  .mbk-sticky-page { font-size: 12px !important; font-weight: 600; color: #334155 !important; white-space: nowrap; }  /* override */
  .mxm-view__btn, .mxm-view .mbk-sticky-png-btn { padding: 0 8px !important; font-size: 11.5px !important; min-height: 32px; }
}
/* Marathi toggle moves from a floating pill into the manual top bar (JS moves the node) */
.mbk-topbar-actions .mx-marathi-toggle { position: static !important; margin: 0 !important; height: 36px; padding: 0 10px !important; border-radius: 8px !important; font-size: 12.5px !important; box-shadow: none !important; }  /* override */
.mbk-topbar-actions .mx-marathi-toggle .mx-marathi-toggle-icon { display: none; }
@media (max-width: 600px) { .mbk-topbar-actions .mx-marathi-toggle .mx-marathi-toggle-label { display: none; } .mbk-topbar-actions .mx-marathi-toggle::before { content: "अ"; font-family: "Noto Sans Devanagari", "Mukta", sans-serif; font-weight: 700; font-size: 15px; } }

/* --------------------------------------------------------------------------
   8. misc
   -------------------------------------------------------------------------- */
.mxm-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { .mxm-btn, .mxm-progress__bar { transition: none; } }
@media print { .mbn-bar, .mxm-hub__util, .mxm-rail { display: none !important; } }
