/* ===== Sindhi AI - shared UI layer (plain CSS: works with or without the compiled Tailwind file) ===== */

/* ---------------------------------------------------------------------------------------------
   AJRAK KE NUMBER (apni andazi se yahin badlein, phir Ctrl+F5). Poore project mein SAME asar hota hai:
   --ajrak-veil : 0 = ajrak poora saaf nazar aaye,  1 = bilkul saada safed (ajrak ghayab)
                  (chhota number = ajrak zyada, bara number = ajrak kam)
   --ajrak-size : nakshi ka size (bara number = bari nakshi)
   --------------------------------------------------------------------------------------------- */
:root {
  --ajrak-veil: 0.92;
  --ajrak-size: 340px;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
* { -webkit-tap-highlight-color: transparent; }

/* ---- very light Ajrak background (text stays clear; the pattern is only a soft hint) ---- */
body[class] {
  animation: sxFade .25s ease-out;
}
.dark body[class] { background: #0b1120; }
@keyframes sxFade { from { opacity: 0 } to { opacity: 1 } }

/* chat / lesson reading areas: a soft white veil so long text is always crisp over the pattern */
#messages, #msgs, #tab-body { overscroll-behavior: contain; scroll-behavior: smooth; }

/* ---- full-height app screens (dvh = correct height on phones with a moving address bar) ---- */
.app-h { height: calc(100vh - 3.5rem); height: calc(100dvh - 3.5rem); }
.sx-subjchat { height: calc(100vh - 6rem); height: calc(100dvh - 6rem); }

/* ---- header ---- */
.sx-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid #e2e8f0; }
.dark .sx-header { background: rgba(15,23,42,.9); border-color: #1e293b; }
.sx-hin { max-width: 80rem; margin: 0 auto; height: 3.5rem; display: flex; align-items: center; gap: .75rem; padding: 0 1rem; }
.sx-brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.08rem; color: #1e468a; white-space: nowrap; }
.dark .sx-brand { color: #818cf8; }
.sx-logo { width: 36px; height: 30px; object-fit: contain; }
.sx-links { display: flex; gap: .25rem; margin-inline-start: .75rem; }
.sx-links a { padding: .42rem .85rem; border-radius: .65rem; font-size: .9rem; font-weight: 500; color: #334155; transition: background .15s, color .15s; }
.dark .sx-links a { color: #cbd5e1; }
.sx-links a:hover { background: #f1f5f9; } .dark .sx-links a:hover { background: #1e293b; }
.sx-links a.on { background: #eaf0fa; color: #163a75; font-weight: 700; } .dark .sx-links a.on { background: #0f2a55; color: #bcd0f5; }
.sx-right { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.sx-iconbtn { height: 2.25rem; min-width: 2.25rem; display: inline-grid; place-items: center; border: 1px solid #cbd5e1; border-radius: .65rem; background: transparent; font-size: 1rem; transition: background .15s; }
.dark .sx-iconbtn { border-color: #334155; } .sx-iconbtn:hover { background: #f1f5f9; } .dark .sx-iconbtn:hover { background: #1e293b; }
.sx-user { font-size: .85rem; color: #64748b; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-logout { background: #f1f5f9; border-radius: .65rem; padding: .45rem .9rem; font-size: .88rem; font-weight: 500; } .dark .sx-logout { background: #1e293b; } .sx-logout:hover { background: #e2e8f0; }
.sx-burger { display: none; }
.sx-only-m { display: none; }
@media (max-width: 767.98px) {
  .sx-burger { display: inline-grid; }
  .sx-user, .sx-only-d { display: none; }
  .sx-only-m { display: block; }
  .sx-links { display: none; position: fixed; top: 3.5rem; left: 0; right: 0; z-index: 35; flex-direction: column; gap: .15rem; margin: 0; padding: .6rem .75rem 1rem; background: #fffdfa; border-bottom: 1px solid #e2e8f0; box-shadow: 0 18px 30px -12px rgb(15 23 42 / .25); max-height: calc(100dvh - 3.5rem); overflow: auto; }
  .dark .sx-links { background: #0f172a; border-color: #1e293b; }
  body.nav-open .sx-links { display: flex; animation: sxFade .15s ease-out; }
  .sx-links a { padding: .85rem 1rem; font-size: 1.02rem; }
  .sx-links .sx-logout { width: 100%; text-align: start; padding: .85rem 1rem; font-size: 1.02rem; }
}

/* ---- Sindhi topi loader ---- */
@keyframes topiBob { 0%,100% { transform: translateY(0) rotate(-7deg) } 50% { transform: translateY(-9px) rotate(7deg) } }
@keyframes topiFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
.sx-topi { width: 84px; height: auto; animation: topiBob 1s ease-in-out infinite; transform-origin: 50% 90%; filter: drop-shadow(0 6px 8px rgb(142 27 27 / .25)); }
.sx-hero { width: 92px; animation: topiFloat 3s ease-in-out infinite; }
.sx-pageload { position: fixed; inset: 0; z-index: 200; display: none; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; background: rgba(255,252,248,.86); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); font-family: 'Noto Naskh Arabic', serif; font-size: 1.15rem; color: #7f1d1d; }
.dark .sx-pageload { background: rgba(11,17,32,.86); color: #fecaca; }
.sx-pageload.show { display: flex; animation: sxFade .18s ease-out; }
/* in-chat "thinking" bubble and in-page waiting message */
.sx-typing { display: flex !important; align-items: center; gap: .6rem; font-size: 0 !important; line-height: 1 !important; min-height: 46px; }
.sx-typing::before, .sx-wait::before { content: ""; flex: none; width: 46px; height: 38px; background: var(--topi) center / contain no-repeat; animation: topiBob 1s ease-in-out infinite; transform-origin: 50% 90%; }
.sx-typing::after { content: "\67f \648 \631 \648  \627 \646 \62a \638 \627 \631  \6aa \631 \64a \648 \2026 "; font-size: .95rem; color: #94a3b8; font-family: 'Noto Naskh Arabic', serif; }
.sx-wait { display: flex; align-items: center; gap: .7rem; color: #64748b; padding: .5rem 0; font-size: .95rem; }

/* ---- mobile: two-pane switch (lesson <-> tutor chat, books <-> subject chat) ---- */
.sx-seg { display: none; }
@media (max-width: 1023.98px) {
  .sx-seg { display: flex; gap: .35rem; padding: .4rem .75rem; background: rgba(255,255,255,.92); border-bottom: 1px solid #e2e8f0; position: sticky; top: 3.5rem; z-index: 20; }
  .dark .sx-seg { background: rgba(15,23,42,.92); border-color: #1e293b; }
  .sx-seg button { flex: 1; padding: .6rem .5rem; border-radius: .75rem; font-weight: 700; font-size: .92rem; border: 1px solid #cbd5e1; background: #fff; transition: all .15s; }
  .dark .sx-seg button { background: #1e293b; border-color: #334155; }
  .sx-seg button.on { background: #1e468a; border-color: #1e468a; color: #fff; box-shadow: 0 4px 10px -3px rgb(30 70 138 / .5); }
  [data-pane=content] > aside, [data-pane=books] > aside { display: none !important; }
  [data-pane=chat] > section, [data-pane=chat] > div:not(.sx-seg) { display: none !important; }
  .sx-subjchat { height: calc(100vh - 9.5rem); height: calc(100dvh - 9.5rem); position: static !important; }
}

body.pane-chat .sx-subjhead { display: none; }
@media (max-width: 639.98px) { section.mb-5 > div.mb-3 > h2 { flex: 1 1 100%; } }

/* ---- chat history drawer on phones ---- */
@media (max-width: 767.98px) {
  #sidebar:not(.hidden) { position: fixed; z-index: 40; top: 3.5rem; bottom: 0; left: 0; display: flex; width: 84%; max-width: 20rem; box-shadow: 18px 0 40px -12px rgb(15 23 42 / .35); animation: sxFade .15s ease-out; }
  #side { width: 86%; max-width: 21rem; }
}

/* ---- message input bars: on a phone the text box gets its own full-width row, buttons sit under it ---- */
@media (max-width: 639.98px) {
  .cbar { flex-wrap: wrap; }
  .cbar textarea { order: -1; flex: 1 1 100%; }
  .cbar > button:last-child { margin-inline-start: auto; }
  select, input, textarea { font-size: 16px; }   /* stops the phone from zooming in when you tap a box */
  .md table { display: block; overflow-x: auto; }
}
@media (max-width: 639.98px) { .tbar { flex-wrap: nowrap !important; overflow-x: auto; gap: .5rem !important; padding-inline: .75rem !important; } .tbar > * { flex: none; white-space: nowrap; } #mode { max-width: 8.5rem; } }
.cbar button, .cbar textarea { transition: background .15s, box-shadow .15s, border-color .15s; }
@supports (padding: env(safe-area-inset-bottom)) { .cbar-wrap { padding-bottom: calc(.75rem + env(safe-area-inset-bottom)); } }

/* ---- general polish ---- */
a, button { transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s; }
button:active:not(:disabled) { transform: scale(.97); }
:focus-visible { outline: 2px solid #2a5aa8; outline-offset: 2px; }
.rtl-text { -webkit-font-smoothing: antialiased; }

/* reading-area headers get a soft veil too; tutor boxes in side panels: text box on its own row */
aside .cbar { flex-wrap: wrap; }
aside .cbar textarea { order: -1; flex: 1 1 100%; }
aside .cbar > button:last-child { margin-inline-start: auto; }

/* ===== ONE Ajrak "paper" for every surface (page, header, sidebars, chat area, bars) so the pattern looks exactly the same everywhere.
   background-attachment: fixed keeps all surfaces aligned to the same pattern. White cards, boxes and inputs stay solid white. ===== */
body[class], .sx-header, .sx-links, .sx-seg, #sidebar, #side, #messages, #msgs, #tab-body, .tbar, .cbar-wrap,
.app-h section > div:first-child, .app-h aside > div:first-child, .sx-subjchat {
  background-color: #fffcf8;
  background-image: linear-gradient(rgba(255,253,250,var(--ajrak-veil)), rgba(255,253,250,var(--ajrak-veil))), var(--ajrak);
  background-size: auto, var(--ajrak-size) var(--ajrak-size);
  background-attachment: fixed;
}
.sx-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
.dark :is(#sidebar, #side, #messages, #msgs, #tab-body, .tbar, .cbar-wrap, .sx-subjchat, .app-h section > div:first-child, .app-h aside > div:first-child) { background: transparent; }
.dark body[class] { background: #0b1120; }

/* ===== Education: chapter / part cards (subject page) and lesson sidebar ===== */
.sx-chip { display: inline-flex; align-items: center; gap: .25rem; border: 1px solid #cbd5e1; background: #fff; border-radius: 9999px; padding: .12rem .6rem; font-size: .72rem; font-weight: 600; color: #475569; white-space: nowrap; direction: ltr; }
.sx-chip-main { background: #eaf0fa; border-color: #9db8e6; color: #163a75; }
.dark .sx-chip { background: #1e293b; border-color: #334155; color: #cbd5e1; } .dark .sx-chip-main { background: #0f2a55; border-color: #163a75; color: #bcd0f5; }
.sx-stats { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }

/* chapter = one clear box with a coloured header band */
.sx-ch { margin-bottom: .9rem; border: 2px solid #bcd0f5; border-radius: 1rem; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgb(15 23 42 / .06); }
.dark .sx-ch { background: #0f172a; border-color: #312e81; }
.sx-chh { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; padding: .7rem .9rem; cursor: pointer; background: linear-gradient(90deg, #eaf0fa, #f8fafc); list-style: none; }
.sx-chh::-webkit-details-marker { display: none; }
.dark .sx-chh { background: #0f2a55; }
.sx-ch[open] > .sx-chh { border-bottom: 2px solid #bcd0f5; } .dark .sx-ch[open] > .sx-chh { border-color: #312e81; }
.sx-chi { font-size: 1.25rem; }
.sx-cht { flex: 1 1 12rem; font-weight: 800; font-size: 1.02rem; min-width: 0; }
.sx-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.sx-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: .75rem; padding: .85rem; }
.sx-empty { padding: .9rem; color: #94a3b8; font-size: .9rem; }

/* one numbered part: header strip (number + name) and its buttons */
.sx-part, .sx-card { border: 1.5px solid #cbd5e1; border-radius: .85rem; background: #fff; overflow: hidden; }
.dark .sx-part, .dark .sx-card { background: #1e293b; border-color: #334155; }
.sx-part:hover { border-color: #818cf8; box-shadow: 0 6px 14px -8px rgb(30 70 138 / .5); }
.sx-phead { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.dark .sx-phead { background: #0f172a; border-color: #334155; }
.sx-pnum { flex: none; min-width: 2.4rem; text-align: center; background: #1e468a; color: #fff; border-radius: .5rem; padding: .1rem .45rem; font-weight: 800; font-size: .82rem; direction: ltr; }
.sx-pnum-x { background: #64748b; }
.sx-pname { flex: 1; min-width: 0; font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-pbody { display: flex; flex-direction: column; gap: .4rem; padding: .55rem; }
.sx-pitem { display: flex; gap: .35rem; }
.sx-pbtn { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: .5rem; border: 1.5px solid #cbd5e1; border-radius: .6rem; padding: .5rem .7rem; font-weight: 700; font-size: .9rem; background: #fff; }
.dark .sx-pbtn { background: #0f172a; border-color: #475569; }
.sx-pbtn:hover { border-color: #1e468a; color: #163a75; }
.sx-pbtn-topic { border-color: #9db8e6; background: #eaf0fa; } .sx-pbtn-ex { border-color: #6ee7b7; background: #ecfdf5; } .sx-pbtn-ans { border-color: #fcd34d; background: #fffbeb; }
.dark .sx-pbtn-topic, .dark .sx-pbtn-ex, .dark .sx-pbtn-ans { background: #0f172a; }
.sx-pp { font-size: .7rem; font-weight: 500; color: #64748b; direction: ltr; white-space: nowrap; }
.sx-pask { flex: none; width: 2.3rem; border: 1.5px solid #cbd5e1; border-radius: .6rem; background: #fff; } .sx-pask:hover { border-color: #1e468a; background: #eaf0fa; }
.dark .sx-pask { background: #0f172a; border-color: #475569; }

/* lesson sidebar cards: the open part is clearly marked */
.sx-card { padding: .5rem; }
.sx-card.on { border-color: #1e468a; box-shadow: 0 0 0 2px rgb(30 70 138 / .18); }

/* lesson page header: left aligned title + "3 / 12" pager */
.sx-title h1, .sx-title p { text-align: left; unicode-bidi: isolate; }
.sx-pager { flex: none; display: flex; align-items: center; gap: .15rem; border: 1.5px solid #cbd5e1; border-radius: .75rem; background: #fff; padding: .15rem; font-size: .85rem; }
.dark .sx-pager { background: #0f172a; border-color: #475569; }
.sx-pager a, .sx-pager .off { width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: .55rem; font-size: 1.2rem; font-weight: 700; }
.sx-pager a:hover { background: #eaf0fa; color: #163a75; } .sx-pager .off { opacity: .3; }
.sx-pager b { padding: 0 .35rem; min-width: 3.2rem; text-align: center; direction: ltr; }
@media (max-width: 639.98px) { .sx-parts { grid-template-columns: 1fr; padding: .6rem; } .sx-chh { padding: .6rem .7rem; } }

/* ===== LAYOUT LINES: the Ajrak is only a background - every part keeps a clear border so the layout never gets lost ===== */
/* thin grey divider lines are too faint over a pattern: make the structural ones clearly visible */
[class*="border-slate-200"] { border-color: #c2ccda; }
[class*="border-slate-300"] { border-color: #aab6c8; }
.sx-header { border-bottom: 1.5px solid #b9c4d4; box-shadow: 0 3px 10px -6px rgb(15 23 42 / .35); }
.dark .sx-header { border-bottom-color: #1e293b; box-shadow: none; }

/* app screens (AI chat, lesson): every area is its own bordered panel with a small gap between them */
.app-h { padding: .6rem; gap: .6rem; }
.app-h > aside, .app-h > section, .app-h > nav, #panes > section, #panes > aside {
  border: 1.5px solid #b9c4d4; border-radius: 1rem; overflow: hidden;
  box-shadow: 0 2px 6px -2px rgb(15 23 42 / .18);
}
#panes { gap: .6rem; }
.dark .app-h > aside, .dark .app-h > section, .dark .app-h > nav, .dark #panes > section, .dark #panes > aside { border-color: #334155; box-shadow: none; }
@media (max-width: 767.98px) { .app-h { padding: .35rem; gap: .35rem; } #panes { gap: .35rem; } }

/* section dividers inside a panel */
.tbar, .cbar-wrap, .app-h section > div:first-child, .app-h aside > div:first-child { border-color: #b9c4d4; }
.tbar { border-bottom-width: 1.5px; } .cbar-wrap { border-top-width: 1.5px; }
.dark .tbar, .dark .cbar-wrap, .dark .app-h section > div:first-child, .dark .app-h aside > div:first-child { border-color: #334155; }

/* ===== SaaS kit: plans, usage meters, tables, forms, policy pages (own classes; no Tailwind rebuild needed) ===== */
.sx-wrap { max-width: 64rem; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; }
.sx-wrap.narrow { max-width: 46rem; }
.sx-wrap.wide { max-width: 80rem; padding-left: 1.5rem; padding-right: 1.5rem; }
.sx-h1 { font-size: 1.6rem; font-weight: 800; line-height: 1.25; }
.sx-lead { color: #475569; margin: .25rem 0 1.25rem; }
.dark .sx-lead { color: #94a3b8; }
.sx-box { background: #fff; border: 1.5px solid #b9c4d4; border-radius: 1rem; padding: 1rem 1.1rem; margin-bottom: 1rem; box-shadow: 0 2px 6px -2px rgb(15 23 42 / .15); }
.dark .sx-box { background: #1e293b; border-color: #334155; box-shadow: none; }
.sx-box h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: .6rem; }
.sx-note { border: 1.5px solid #fcd34d; background: #fffbeb; color: #78350f; border-radius: .8rem; padding: .65rem .9rem; font-size: .9rem; margin-bottom: 1rem; }
.dark .sx-note { background: #422006; border-color: #92400e; color: #fde68a; }
.sx-note.ok { border-color: #6ee7b7; background: #ecfdf5; color: #064e3b; } .dark .sx-note.ok { background: #022c22; border-color: #047857; color: #a7f3d0; }
.sx-note.bad { border-color: #fca5a5; background: #fef2f2; color: #7f1d1d; } .dark .sx-note.bad { background: #450a0a; border-color: #b91c1c; color: #fecaca; }
.sx-planbar { border: 1.5px solid #bcd0f5; background: #eaf0fa; border-radius: .8rem; padding: .6rem .9rem; margin-bottom: 1.2rem; font-size: .92rem; }
.sx-planbar a { font-weight: 700; color: #163a75; text-decoration: underline; }
.dark .sx-planbar { background: #0f2a55; border-color: #163a75; } .dark .sx-planbar a { color: #9db8e6; }

.sx-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 1rem; align-items: stretch; }
.sx-plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 2px solid #b9c4d4; border-radius: 1.1rem; padding: 1.2rem 1.1rem 1.1rem; box-shadow: 0 3px 10px -4px rgb(15 23 42 / .22); }
.dark .sx-plan { background: #1e293b; border-color: #334155; box-shadow: none; }
.sx-plan.pop { border-color: #1e468a; box-shadow: 0 0 0 3px rgb(30 70 138 / .15), 0 6px 16px -6px rgb(30 70 138 / .4); }
.sx-plan.mine { border-color: #059669; }
.sx-badge { position: absolute; top: -.7rem; inset-inline-start: 1rem; background: #1e468a; color: #fff; font-size: .72rem; font-weight: 800; padding: .15rem .7rem; border-radius: 999px; }
.sx-plan h3 { font-size: 1.15rem; font-weight: 800; }
.sx-plan .desc { color: #64748b; font-size: .88rem; margin: .2rem 0 .7rem; min-height: 2.4rem; }
.sx-price { font-size: 2rem; font-weight: 800; color: #163a75; line-height: 1.1; } .dark .sx-price { color: #9db8e6; }
.sx-price small { font-size: .85rem; font-weight: 600; color: #64748b; }
.sx-feat { list-style: none; margin: .9rem 0 1.1rem; padding: 0; display: grid; gap: .4rem; font-size: .92rem; flex: 1; }
.sx-feat li { display: flex; gap: .45rem; align-items: baseline; } .sx-feat li.no { color: #94a3b8; text-decoration: line-through; }
.sx-btn { display: inline-flex; justify-content: center; align-items: center; gap: .4rem; background: #1e468a; color: #fff; font-weight: 700; border-radius: .75rem; padding: .65rem 1.1rem; border: 0; cursor: pointer; font-size: .95rem; }
.sx-btn:hover { background: #163a75; } .sx-btn.block { width: 100%; }
.sx-btn.ghost { background: #fff; color: #334155; border: 1.5px solid #aab6c8; } .sx-btn.ghost:hover { background: #f1f5f9; }
.dark .sx-btn.ghost { background: #0f172a; color: #e2e8f0; border-color: #475569; }
.sx-btn.sm { padding: .3rem .7rem; font-size: .8rem; border-radius: .55rem; } .sx-btn.red { background: #dc2626; } .sx-btn.green { background: #059669; }
.sx-btn[disabled] { opacity: .5; cursor: not-allowed; }

.sx-meter { margin: .55rem 0; font-size: .88rem; }
.sx-meter .top { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .2rem; }
.sx-meter .bar { height: .6rem; background: #e2e8f0; border-radius: 999px; overflow: hidden; border: 1px solid #cbd5e1; } .dark .sx-meter .bar { background: #0f172a; border-color: #334155; }
.sx-meter .bar i { display: block; height: 100%; background: #1e468a; } .sx-meter .bar i.hot { background: #dc2626; } .sx-meter .bar i.warm { background: #f59e0b; }

.sx-tablewrap { overflow-x: auto; border: 1.5px solid #b9c4d4; border-radius: .9rem; background: #fff; } .dark .sx-tablewrap { background: #1e293b; border-color: #334155; }
.sx-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 38rem; }
.sx-table th { text-align: start; background: #f1f5f9; padding: .55rem .7rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; color: #475569; border-bottom: 1.5px solid #cbd5e1; white-space: nowrap; }
.dark .sx-table th { background: #0f172a; color: #94a3b8; border-color: #334155; }
.sx-table td { padding: .55rem .7rem; border-bottom: 1px solid #e2e8f0; vertical-align: middle; } .dark .sx-table td { border-color: #334155; }
.sx-table tr:last-child td { border-bottom: 0; }
.sx-pill { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: #e2e8f0; color: #334155; }
.sx-pill.green { background: #d1fae5; color: #065f46; } .sx-pill.red { background: #fee2e2; color: #991b1b; } .sx-pill.amber { background: #fef3c7; color: #92400e; } .sx-pill.blue { background: #e0e7ff; color: #163a75; }

.sx-form { display: grid; gap: .9rem; }
.sx-grid2 { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.sx-field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: .25rem; }
.sx-field .hint { font-size: .76rem; color: #64748b; margin-top: .2rem; }
.sx-in { width: 100%; background: #fff; border: 1.5px solid #aab6c8; border-radius: .65rem; padding: .5rem .7rem; font-size: .93rem; color: #0f172a; }
.sx-in:focus { outline: 0; border-color: #1e468a; box-shadow: 0 0 0 3px rgb(30 70 138 / .18); }
.dark .sx-in { background: #0f172a; color: #e2e8f0; border-color: #475569; }
.sx-check { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; padding: .35rem 0; } .sx-check input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; }
.sx-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.sx-legal { text-align: center; font-size: .78rem; color: #64748b; padding: 1rem 0 1.5rem; } .sx-legal a { text-decoration: underline; }

.sx-doc { background: #fff; border: 1.5px solid #b9c4d4; border-radius: 1rem; padding: 1.4rem 1.5rem; line-height: 1.75; } .dark .sx-doc { background: #1e293b; border-color: #334155; }
.sx-doc h2 { font-size: 1.1rem; font-weight: 800; margin: 1.4rem 0 .4rem; } .sx-doc h2:first-of-type { margin-top: .6rem; }
.sx-doc p, .sx-doc li { margin: .4rem 0; } .sx-doc ul { list-style: disc; padding-inline-start: 1.4rem; }
.sx-pubhead { display: flex; align-items: center; justify-content: space-between; gap: .8rem; max-width: 64rem; margin: 0 auto; padding: .8rem 1rem; }
.sx-pubhead a.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: #163a75; }
.sx-spin { display: grid; place-items: center; text-align: center; padding: 2.5rem 1rem; gap: .8rem; }
@media (max-width: 639.98px) { .sx-h1 { font-size: 1.35rem; } .sx-doc { padding: 1rem; } .sx-btn.block-m { width: 100%; } }

/* ===== Plans page (Claude-style), usage card, plan chip, upgrade box, manual-payment methods ===== */
.sx-hero2 { text-align: center; padding: .6rem 0 1.1rem; } .sx-hero2 .sx-lead { max-width: 38rem; margin-inline: auto; }
.sx-plans { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.sx-cta { margin: .9rem 0 .2rem; }
.sx-feat { margin: .9rem 0 0; padding-top: .9rem; border-top: 1.5px solid #e2e8f0; } .dark .sx-feat { border-color: #334155; }
.sx-feat .ck { flex: none; width: 1.1rem; font-weight: 800; color: #059669; text-align: center; } .sx-feat li.no .ck { color: #94a3b8; }
.sx-feat em { display: block; font-style: normal; color: #64748b; font-size: .82rem; }
.sx-feat li.no { text-decoration: none; } .sx-feat li.no span:last-child { text-decoration: line-through; text-decoration-color: #cbd5e1; }
.sx-plan.mine { border-color: #1e468a; background: #f4f7fc; } .dark .sx-plan.mine { background: #0f2a55; }
.sx-faq { margin: 1.6rem auto 0; max-width: 44rem; display: grid; gap: .5rem; }
.sx-faq details { background: #fff; border: 1.5px solid #b9c4d4; border-radius: .8rem; padding: .7rem 1rem; } .dark .sx-faq details { background: #1e293b; border-color: #334155; }
.sx-faq summary { cursor: pointer; font-weight: 700; } .sx-faq p { margin: .5rem 0 0; color: #475569; font-size: .92rem; } .dark .sx-faq p { color: #94a3b8; }

.sx-usage { background: #fff; border: 1.5px solid #b9c4d4; border-radius: 1rem; padding: .9rem 1.1rem; margin-bottom: 1.4rem; box-shadow: 0 2px 6px -2px rgb(15 23 42 / .15); }
.dark .sx-usage { background: #1e293b; border-color: #334155; box-shadow: none; }
.sx-usage .hd { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.sx-usage .hd span { display: block; font-size: .84rem; color: #64748b; }
.sx-mgrid { display: grid; gap: .2rem 1.4rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: .5rem; }
.sx-chipplan { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: .3rem .75rem; border: 1.5px solid #aab6c8; background: #fff; color: #334155; white-space: nowrap; }
.sx-chipplan.free { border-color: #bcd0f5; background: #eaf0fa; color: #163a75; } .sx-chipplan.free b { color: #1e468a; } .sx-chipplan.paid { border-color: #6ee7b7; background: #ecfdf5; color: #065f46; }
.dark .sx-chipplan { background: #0f172a; color: #e2e8f0; border-color: #475569; }
@media (max-width: 639.98px) { .sx-chipplan { font-size: .72rem; padding: .25rem .55rem; } }

.sx-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1rem; background: rgb(15 23 42 / .5); animation: sxFade .15s ease-out; }
.sx-mbox { width: 100%; max-width: 24rem; background: #fff; border-radius: 1.1rem; padding: 1.4rem 1.3rem 1.2rem; text-align: center; box-shadow: 0 20px 50px -12px rgb(15 23 42 / .5); border: 1.5px solid #bcd0f5; }
.dark .sx-mbox { background: #1e293b; border-color: #163a75; }
.sx-mbox .ic { font-size: 2rem; } .sx-mbox h3 { font-size: 1.15rem; font-weight: 800; margin: .2rem 0 .4rem; } .sx-mbox p { color: #475569; font-size: .93rem; margin-bottom: 1rem; } .dark .sx-mbox p { color: #94a3b8; }
.sx-mbox .row { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }

.sx-methods { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: .8rem; }
.sx-method { border: 1.5px solid #b9c4d4; border-radius: .9rem; padding: .8rem; text-align: center; background: #fff; } .dark .sx-method { background: #0f172a; border-color: #334155; }
.sx-method h3 { font-weight: 800; margin-bottom: .5rem; }
.sx-method img { width: 13rem; max-width: 100%; margin: 0 auto .6rem; border: 2px solid #b9c4d4; border-radius: .7rem; background: #fff; padding: .35rem; }
.sx-method .kv { display: flex; flex-direction: column; margin-top: .35rem; font-size: .9rem; } .sx-method .kv span { font-size: .72rem; color: #64748b; text-transform: uppercase; letter-spacing: .03em; }

.sx-count { font-size: 2rem; font-weight: 800; letter-spacing: .05em; font-variant-numeric: tabular-nums; color: #163a75; margin: .2rem 0 0; } .dark .sx-count { color: #9db8e6; }
.sx-countl { font-size: .75rem; color: #64748b; margin-bottom: 1rem; }
.sx-lockbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; text-align: center; padding: .6rem 1rem; font-size: .88rem; font-weight: 600; color: #7c2d12; background: #ffedd5; border-top: 1.5px solid #fdba74; }
.sx-box .sx-in, .sx-box select.sx-in, .sx-box textarea.sx-in { box-sizing: border-box; max-width: 100%; }
.sx-box .sx-field { margin-bottom: .7rem; }

.sx-ic { flex: none; vertical-align: -.2em; }
.sx-links a, .sx-logout { display: inline-flex; align-items: center; gap: .45rem; }
.sx-links a .sx-ic { opacity: .85; } .sx-links a.on .sx-ic { opacity: 1; }
.sx-langbtn { gap: .35rem; padding: 0 .65rem; font-size: .82rem; font-weight: 700; cursor: pointer; }
.sx-langform { display: inline-flex; margin: 0; }
.sx-user { display: inline-flex; align-items: center; gap: .3rem; }
.sx-adminbtn { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border: 1px solid #cbd5e1; border-radius: .7rem; font-size: .88rem; font-weight: 600; background: #fff; } .dark .sx-adminbtn { border-color: #334155; background: #0f172a; }
.sx-btn .sx-ic { margin-inline-end: .2rem; }
.sx-iconbtn.sx-langbtn { display: inline-flex; align-items: center; justify-content: center; flex-direction: row; white-space: nowrap; width: auto; }

/* =====================================================================
   Layout v2: one account menu in the header, bottom tab bar on phones,
   a quiet chat toolbar (all chat options live in one "Options" panel)
   ===================================================================== */
.sx-um { position: relative; }
.sx-umbtn { display: flex; align-items: center; gap: .5rem; padding: .22rem .6rem .22rem .25rem; border: 1px solid #cbd5e1; border-radius: 999px; background: transparent; cursor: pointer; color: inherit; }
.dark .sx-umbtn { border-color: #334155; }
.sx-umbtn:hover { background: #f1f5f9; } .dark .sx-umbtn:hover { background: #1e293b; }
.sx-av { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #1e468a; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.sx-umname { font-size: .86rem; font-weight: 500; max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-caret { font-size: .7rem; opacity: .6; }
.sx-pop { position: absolute; inset-inline-end: 0; top: calc(100% + .5rem); min-width: 15.5rem; background: #fff; border: 1px solid #cbd5e1; border-radius: .9rem; box-shadow: 0 18px 40px -12px rgb(15 23 42 / .35); padding: .4rem; display: none; z-index: 60; }
.dark .sx-pop { background: #0f172a; border-color: #334155; }
.sx-um.open .sx-pop { display: block; animation: sxFade .12s ease-out; }
.sx-pop .who { padding: .55rem .7rem .6rem; border-bottom: 1px solid #e2e8f0; margin-bottom: .3rem; display: flex; flex-direction: column; gap: .1rem; }
.dark .sx-pop .who { border-color: #1e293b; }
.sx-pop .who small { color: #64748b; font-size: .76rem; overflow: hidden; text-overflow: ellipsis; }
.sx-pop a, .sx-pop button { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .6rem .7rem; border-radius: .6rem; font-size: .92rem; text-align: start; background: none; border: 0; color: inherit; cursor: pointer; text-decoration: none; }
.sx-pop a:hover, .sx-pop button:hover { background: #f1f5f9; } .dark .sx-pop a:hover, .dark .sx-pop button:hover { background: #1e293b; }
.sx-pop .out { color: #dc2626; }
.sx-pop .sx-ic { opacity: .8; flex: none; }

.sx-bn { display: none; }
@media (max-width: 767.98px) {
  .sx-links, .sx-burger { display: none !important; }
  .sx-umname, .sx-caret { display: none; }
  .sx-umbtn { padding: .2rem; }
  .sx-pop { position: fixed; top: 3.6rem; inset-inline: .6rem; min-width: 0; }
  .sx-bn { display: flex; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.97); border-top: 1.5px solid #cbd5e1; padding: .3rem .4rem calc(.3rem + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -14px rgb(15 23 42 / .35); }
  .dark .sx-bn { background: rgba(15,23,42,.97); border-color: #334155; }
  .sx-bn a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem 0; border-radius: .7rem; font-size: .7rem; font-weight: 600; color: #64748b; text-decoration: none; }
  .sx-bn a.on { color: #163a75; background: #eaf0fa; } .dark .sx-bn a.on { color: #bcd0f5; background: #0f2a55; }
  body:has(.sx-bn) { padding-bottom: calc(3.75rem + env(safe-area-inset-bottom)); }
  body:has(.sx-bn) .app-h { height: calc(100dvh - 3.5rem - 3.75rem - env(safe-area-inset-bottom)); }
  body:has(.sx-bn) #sidebar:not(.hidden), body:has(.sx-bn) #side { bottom: calc(3.75rem + env(safe-area-inset-bottom)); }
}

/* chat toolbar: chats button, title, one Options button */
.tbar2 { display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem; border-bottom: 1.5px solid #b9c4d4; }
.dark .tbar2 { border-color: #334155; }
.tbar2 .ttl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .95rem; }
.tbtn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid #cbd5e1; border-radius: .6rem; padding: .35rem .7rem; font-size: .85rem; background: transparent; color: inherit; cursor: pointer; }
.dark .tbtn { border-color: #334155; } .tbtn:hover { background: #f1f5f9; } .dark .tbtn:hover { background: #1e293b; }
.opts { position: absolute; inset-inline-end: 0; top: calc(100% + .4rem); width: 18rem; max-width: calc(100vw - 1.2rem); background: #fff; border: 1px solid #cbd5e1; border-radius: .9rem; box-shadow: 0 18px 40px -12px rgb(15 23 42 / .35); padding: .8rem; z-index: 50; display: none; }
.dark .opts { background: #0f172a; border-color: #334155; }
.opts.show { display: block; animation: sxFade .12s ease-out; }
.opts label.f { display: block; font-size: .76rem; font-weight: 600; color: #64748b; margin: 0 0 .25rem; }
.opts select { width: 100%; margin-bottom: .7rem; }
.opts .row { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.opts .row button { flex: 1 1 45%; justify-content: center; }
.opts .chk { display: flex; gap: .5rem; align-items: flex-start; font-size: .8rem; color: #64748b; line-height: 1.35; }
.cbar .live { font-weight: 700; }
@media (max-width: 639.98px) { .tbar2 { padding: .45rem .6rem; } #menu { flex: none; } }
@media (min-width: 768px) { #menu { display: none; } }
.opts select { width: 100% !important; }

/* ===== sign in / sign up / reset pages ===== */
.sx-auth-h { font-size: 1.35rem; font-weight: 800; margin: 0 0 .2rem; }
.sx-auth-p { color: #64748b; font-size: .92rem; margin: 0 0 1.1rem; }
.sx-aform { display: flex; flex-direction: column; gap: .85rem; }
.sx-aform .sx-field { margin: 0; }
.sx-aform .sx-field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .3rem; }
.sx-wide { width: 100%; justify-content: center; padding: .7rem 1rem; font-size: 1rem; }
.sx-arow { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .85rem; }
.sx-arow a, .sx-auth-alt a, .sx-terms a { color: #163a75; font-weight: 600; } .dark .sx-arow a, .dark .sx-auth-alt a, .dark .sx-terms a { color: #9db8e6; }
.sx-auth-alt { text-align: center; font-size: .88rem; color: #64748b; margin: 1.1rem 0 0; }
.sx-pw { position: relative; }
.sx-pw .sx-in { padding-inline-end: 2.8rem; }
.sx-eye { position: absolute; inset-inline-end: .35rem; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: 1.05rem; padding: .35rem .5rem; opacity: .7; }
.sx-eye:hover { opacity: 1; }
.sx-hint { display: block; color: #64748b; font-size: .76rem; margin-top: .3rem; }
.sx-meter2 { display: flex; gap: .25rem; margin-top: .45rem; }
.sx-meter2 i { flex: 1; height: .28rem; border-radius: 9px; background: #e2e8f0; transition: background .15s; } .dark .sx-meter2 i { background: #334155; }
.sx-meter2[data-s="1"] i:nth-child(-n+1) { background: #ef4444; }
.sx-meter2[data-s="2"] i:nth-child(-n+2) { background: #f59e0b; }
.sx-meter2[data-s="3"] i:nth-child(-n+3) { background: #84cc16; }
.sx-meter2[data-s="4"] i { background: #16a34a; }
.sx-terms { align-items: flex-start; font-size: .82rem; line-height: 1.45; }
.sx-note { display: flex; gap: .6rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 1rem 0 0; padding: .7rem .8rem; border-radius: .7rem; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: .84rem; }
.dark .sx-note { background: #2a2108; border-color: #5c4a10; color: #fcd34d; }

/* ===== Education: classes / subjects / chapters (clear, one step at a time) ===== */
.sx-edhead { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.2rem; }
.sx-edhead .sx-lead { margin-top: .2rem; }
.sx-search { display: flex; gap: .5rem; flex: 1 1 18rem; max-width: min(26rem, 100%); min-width: 0; }
.sx-search button { flex: none; }
.sx-search input, .sx-find { flex: 1; min-width: 0; border: 1.5px solid #cbd5e1; border-radius: .7rem; padding: .6rem .85rem; background: #fff; font-size: .95rem; color: inherit; }
.dark .sx-search input, .dark .sx-find { background: #0f172a; border-color: #334155; }
.sx-search input:focus, .sx-find:focus { outline: none; border-color: #2a5aa8; box-shadow: 0 0 0 3px rgb(42 90 168 / .2); }
.sx-h2 { font-size: 1.05rem; font-weight: 700; margin: 1.3rem 0 .6rem; }
.sx-block { margin-bottom: .6rem; }
.sx-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.sx-pill2 { border: 1px solid #cbd5e1; border-radius: 999px; padding: .4rem .95rem; font-size: .85rem; background: #fff; text-decoration: none; color: inherit; }
.sx-pill2 span { color: #94a3b8; } .sx-pill2:hover { background: #eaf0fa; } .dark .sx-pill2 { background: #0f172a; border-color: #334155; } .dark .sx-pill2:hover { background: #1e293b; }
.sx-mine { display: flex; align-items: center; gap: .9rem; margin: 1rem 0; padding: .9rem 1.1rem; border-radius: 1rem; background: linear-gradient(135deg, #1e468a, #2a5aa8); color: #fff; text-decoration: none; box-shadow: 0 10px 24px -12px rgb(30 70 138 / .7); }
.sx-mine .ic { font-size: 1.6rem; } .sx-mine b { display: block; font-size: 1.05rem; } .sx-mine small { opacity: .85; } .sx-mine .go { margin-inline-start: auto; font-weight: 700; font-size: .9rem; }
.sx-chips2 { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 .4rem; }
.sx-chips2 button { border: 1.5px solid #cbd5e1; background: #fff; border-radius: 999px; padding: .42rem .95rem; font-size: .87rem; font-weight: 600; color: #334155; cursor: pointer; }
.sx-chips2 button i { font-style: normal; font-size: .72rem; opacity: .65; margin-inline-start: .25rem; }
.sx-chips2 button.on { background: #1e468a; border-color: #1e468a; color: #fff; }
.dark .sx-chips2 button { background: #0f172a; border-color: #334155; color: #cbd5e1; } .dark .sx-chips2 button.on { background: #1e468a; color: #fff; }
.sx-cgrid, .sx-sgrid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); }
.sx-sgrid { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.sx-ccard, .sx-scard { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.05rem; border: 1.5px solid #e2e8f0; border-radius: 1rem; background: #fff; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s, border-color .12s; }
.dark .sx-ccard, .dark .sx-scard { background: #0f172a; border-color: #334155; }
.sx-ccard:hover, .sx-scard:hover { transform: translateY(-2px); border-color: #818cf8; box-shadow: 0 12px 26px -16px rgb(30 70 138 / .55); }
.sx-ccard.mine { border-color: #2a5aa8; background: #eaf0fa; } .dark .sx-ccard.mine { background: #0f2a55; }
.sx-ccard .ic, .sx-scard .ic { font-size: 1.7rem; line-height: 1; margin-bottom: .35rem; }
.sx-ccard b, .sx-scard b { font-size: 1.05rem; } .sx-ccard small, .sx-scard small { color: #64748b; font-size: .78rem; }
.sx-scard .meta { display: flex; flex-direction: column; gap: .3rem; margin-top: .35rem; align-items: flex-start; }
.med { font-style: normal; font-size: .72rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; }
.med-urdu { background: #dcfce7; color: #166534; } .med-sindhi { background: #fef3c7; color: #92400e; } .med-english { background: #dbeafe; color: #1e40af; }
.sx-toolrow { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.sx-toolrow .sx-chips2 { margin: 0; } .sx-find { flex: 0 1 17rem; }
.sx-back { font-size: .9rem; color: #163a75; text-decoration: none; font-weight: 600; } .dark .sx-back { color: #9db8e6; }
.sx-sub { font-weight: 500; color: #64748b; font-size: 1.05rem; }
.sx-empty2 { padding: 2rem 1rem; text-align: center; color: #94a3b8; border: 1.5px dashed #cbd5e1; border-radius: 1rem; margin-top: 1rem; }
[hidden] { display: none !important; }

/* subject page: chapters list, one chapter open at a time */
.sx-bookhead { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .7rem; }
.sx-bookhead h2 { flex: 1 1 12rem; font-size: 1.1rem; font-weight: 700; }
.sx-chfind { width: 100%; margin: 0 0 .8rem; }
.sx-ch > summary.sx-chh2 { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; cursor: pointer; list-style: none; border-radius: .9rem; }
.sx-ch > summary.sx-chh2::-webkit-details-marker { display: none; }
.sx-chh2 .sx-chn { width: 2rem; height: 2rem; border-radius: .6rem; background: #eaf0fa; color: #163a75; display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; }
.dark .sx-chh2 .sx-chn { background: #0f2a55; color: #bcd0f5; }
.sx-chh2 .sx-cht { flex: 1; font-weight: 700; min-width: 0; }
.sx-chh2 .sx-cmeta { display: block; font-weight: 500; font-size: .76rem; color: #64748b; margin-top: .1rem; }
.sx-chh2 .sx-arrow { transition: transform .15s; color: #94a3b8; flex: none; }
.sx-ch[open] > summary .sx-arrow { transform: rotate(90deg); }
.sx-ch[open] > summary { background: #f5f7ff; } .dark .sx-ch[open] > summary { background: #0f2a5533; }
.sx-pill-adm { font-size: .7rem; }
.sx-statline { margin-top: .5rem; font-size: .76rem; color: #64748b; }
select.tbtn { padding-inline-end: 1.6rem; }
.sx-title h1 { word-break: break-word; }

/* ---- "Install app" button (top banner; shown by pwa.js only when the browser can install the app) ---- */
.sx-install { display: inline-flex; align-items: center; gap: .4rem; height: 2.25rem; padding: 0 .85rem; border-radius: 999px; border: 0; background: #1e468a; color: #fff; font-size: .82rem; font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 8px -2px rgb(30 70 138 / .6); transition: background .15s; }
.sx-install:hover { background: #163a75; }
.sx-install[hidden] { display: none !important; }
@media (max-width: 479.98px) { .sx-install { padding: 0; width: 2.25rem; justify-content: center; } .sx-install span { display: none; } }
@media (display-mode: standalone) { .sx-install { display: none !important; } }

/* ---- sign-in / sign-up pages: website navy instead of purple (Ajrak + topi stay as they are) ---- */
.sx-guest .sx-btn, .sx-guest .sx-install { background: #0A1F44; box-shadow: none; }
.sx-guest .sx-btn:hover, .sx-guest .sx-install:hover { background: #10295a; }
.sx-guest .sx-btn.ghost { background: #fff; color: #0A1F44; border-color: #aab6c8; } .sx-guest .sx-btn.ghost:hover { background: #eef2f8; }
.sx-guest .sx-in:focus { border-color: #0A1F44; box-shadow: 0 0 0 3px rgb(10 31 68 / .16); }
.sx-guest :focus-visible { outline-color: #1a3a75; }
.sx-guest .sx-arow a, .sx-guest .sx-auth-alt a, .sx-guest .sx-terms a, .sx-guest .sx-legal a { color: #0A1F44; font-weight: 700; }
.sx-guest .sx-check input, .sx-guest input[type=checkbox] { accent-color: #0A1F44; }
.sx-guest .sx-auth-h { color: #0A1F44; }
.sx-guest .sx-meter2[data-s="4"] i { background: #0A1F44; }
.dark .sx-guest .sx-btn, .dark .sx-guest .sx-install { background: #1a3a75; }
.dark .sx-guest .sx-arow a, .dark .sx-guest .sx-auth-alt a, .dark .sx-guest .sx-terms a, .dark .sx-guest .sx-auth-h { color: #bcd0f5; }
.sx-human { display: flex; justify-content: center; margin: .2rem 0 .9rem; min-height: 65px; }
.sx-suggest { margin-top: .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.sx-sug { border: 1.5px solid #0A1F44; color: #0A1F44; background: #fff; border-radius: 999px; padding: .3rem .85rem; font-size: .82rem; font-weight: 700; cursor: pointer; }
.sx-sug:hover { background: #eef2f8; }
.sx-sugbox { font-size: .85rem; color: #334155; } .sx-sugbox code { background: #eef2f8; color: #0A1F44; border-radius: .4rem; padding: .1rem .45rem; font-weight: 700; user-select: all; }
.dark .sx-sug { background: #0f172a; color: #bcd0f5; border-color: #3b5a96; } .dark .sx-sugbox { color: #cbd5e1; } .dark .sx-sugbox code { background: #1e293b; color: #bcd0f5; }

/* password eye: drawn icons (the old emoji showed as "?" on some phones) */
.sx-eye { display: grid; place-items: center; color: #475569; font-size: 0; opacity: .85; } .sx-eye .sx-e2, .sx-eye.on .sx-e1 { display: none; } .sx-eye.on .sx-e2 { display: block; }
.dark .sx-eye { color: #cbd5e1; }
/* lighter navy for sign-in / sign-up (was too dark) */
.sx-guest .sx-btn, .sx-guest .sx-install { background: #1e468a; } .sx-guest .sx-btn:hover, .sx-guest .sx-install:hover { background: #2a5aa8; }
.sx-guest .sx-in:focus { border-color: #1e468a; box-shadow: 0 0 0 3px rgb(30 70 138 / .18); }
.sx-guest .sx-btn.ghost { color: #1e468a; } .sx-guest .sx-arow a, .sx-guest .sx-auth-alt a, .sx-guest .sx-terms a, .sx-guest .sx-legal a, .sx-guest .sx-auth-h { color: #1e468a; }
.sx-guest .sx-check input, .sx-guest input[type=checkbox] { accent-color: #1e468a; } .sx-guest .sx-meter2[data-s="4"] i { background: #1e468a; }
.sx-sug { border-color: #1e468a; color: #1e468a; } .sx-sugbox code { color: #1e468a; }

/* one navy theme everywhere (replaces the baked-in indigo / brand classes) */
.border-brand-500,.hover\:border-brand-500:hover,.focus\:border-brand-500:focus,.border-brand-600{border-color:#2a5aa8}
.bg-brand-50,.hover\:bg-brand-50:hover,.bg-indigo-100,.hover\:bg-indigo-100:hover{background-color:#eaf0fa}
.bg-brand-500,.bg-brand-600,.hover\:bg-brand-600:hover,.bg-indigo-600{background-color:#1e468a}
.hover\:bg-brand-700:hover{background-color:#163a75}
.bg-brand-500\/80{background-color:rgba(30,70,138,.8)}
.text-brand-600,.text-brand-700,.text-indigo-600,.hover\:text-brand-600:hover{color:#1e468a}
.dark\:bg-indigo-950:is(.dark *){background-color:#0f2a55}.dark\:text-brand-500:is(.dark *){color:#9db8e6}
.focus\:ring-brand-500\/30:focus{--tw-ring-color:rgba(30,70,138,.3)}
.from-indigo-50{--tw-gradient-from:#eaf0fa var(--tw-gradient-from-position);--tw-gradient-to:rgba(234,240,250,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}

/* ---- dashboard: big cards, quota last ---- */
.sx-instrow { margin: 0 0 1rem; } .sx-instrow:empty { display: none; }
.sx-instrow .sx-install { height: 2.4rem; }
.sx-dgrid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1.6rem; }
@media (min-width: 768px) { .sx-dgrid { grid-template-columns: 1fr 1fr; gap: 1.25rem; } .sx-dcard.soon { grid-column: 1 / -1; } }
.sx-dcard { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.2rem; border-radius: 1.25rem; text-decoration: none; background: #fff; border: 1.5px solid #b9c4d4; box-shadow: 0 4px 14px -6px rgb(15 23 42 / .22); transition: transform .15s, box-shadow .15s; color: inherit; }
a.sx-dcard:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgb(30 70 138 / .45); border-color: #1e468a; }
.sx-dico { flex: none; width: 4rem; height: 4rem; border-radius: 1.1rem; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #2a5aa8, #163a75); box-shadow: 0 8px 18px -8px rgb(30 70 138 / .7); }
.sx-dcard.edu .sx-dico { background: linear-gradient(145deg, #1e8a6a, #0f5f4a); box-shadow: 0 8px 18px -8px rgb(15 95 74 / .7); }
.sx-dcard.courses { grid-column: 1 / -1; } .sx-dcard.courses .sx-dico { background: linear-gradient(145deg, #c2750a, #8a4f05); box-shadow: 0 8px 18px -8px rgb(138 79 5 / .7); }
.sx-dcard.soon { border-style: dashed; background: #f6f8fb; box-shadow: none; } .sx-dcard.soon .sx-dico { background: #cbd5e1; color: #475569; box-shadow: none; width: 3.4rem; height: 3.4rem; }
.sx-dbody { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1; }
.sx-dtitle { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; color: #0f2a55; line-height: 1.2; }
.sx-dsd { font-size: 1.05rem; font-weight: 700; color: #1e468a; }
.sx-ddesc { font-size: .85rem; color: #475569; line-height: 1.5; }
.sx-dlock { display: inline-flex; align-items: center; gap: .3rem; margin-top: .35rem; width: fit-content; background: #fef3c7; color: #92400e; font-size: .74rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; }
.sx-dgo { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: #1e468a; color: #fff; }
html[dir=rtl] .sx-dgo svg { transform: scaleX(-1); }
.sx-dbadge { flex: none; background: #e2e8f0; color: #475569; font-size: .75rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; }
.sx-usage-last { margin: 0 0 1.4rem; }
.dark .sx-dcard { background: #1e293b; border-color: #334155; } .dark .sx-dcard.soon { background: #172033; } .dark .sx-dtitle { color: #e2e8f0; } .dark .sx-dsd { color: #9db8e6; } .dark .sx-ddesc { color: #94a3b8; }
@media (max-width: 480px) { .sx-dico { width: 3.4rem; height: 3.4rem; } .sx-dtitle { font-size: 1.2rem; } }
.sx-dsd, .sx-ddesc { unicode-bidi: plaintext; text-align: start; }
html:not([dir=rtl]) .sx-dsd, html:not([dir=rtl]) .sx-ddesc { text-align: left; }

/* dashboard install button: full text + a small line below */
.sx-instrow { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.sx-instrow:has(.sx-install[hidden]) { display: none; }
.sx-instrow .sx-install { height: 2.7rem; padding: 0 1.2rem; width: auto; font-size: .95rem; gap: .5rem; justify-content: center; }
.sx-instrow .sx-install span { display: inline; }
.sx-instcap { font-size: .72rem; color: #64748b; padding-inline-start: .3rem; }
@media (display-mode: standalone) { .sx-instrow { display: none !important; } }

/* ---- chat: Sindhi keyboard fits the phone, empty state, mode hint ---- */
#kb { max-height: 40vh; max-height: 40dvh; overflow-y: auto; overscroll-behavior: contain; }
#kb > div { padding: 0; }
#kb button { min-width: 0 !important; padding: .28rem 0 !important; font-size: 1.1rem; line-height: 1.5; touch-action: manipulation; }
#kb .sx-kbfn { font-size: .8rem; padding: .45rem .1rem !important; }
#kb .flex { gap: .22rem; } #kb > div > .space-y-1 > * + * { margin-top: .22rem; }
#kbtoggle.on { background: #1e468a; color: #fff; border-color: #1e468a; }
.cbar #kbtoggle, .cbar #mic, .cbar #plus { height: 2.6rem; min-width: 2.6rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 .6rem; }
.sx-empty { margin: 2.5rem auto 0; max-width: 24rem; text-align: center; color: #475569; padding: 0 1rem; }
.sx-empty b { display: block; font-size: 1.25rem; color: #0f2a55; margin: .6rem 0 .8rem; }
.sx-empty-ico { display: grid; place-items: center; width: 4.4rem; height: 4.4rem; margin: 0 auto; border-radius: 1.2rem; color: #fff; background: linear-gradient(145deg, #2a5aa8, #163a75); box-shadow: 0 10px 22px -10px rgb(30 70 138 / .7); }
.sx-empty ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; text-align: start; }
.sx-empty li { display: flex; gap: .6rem; align-items: center; background: #fff; border: 1.5px solid #b9c4d4; border-radius: .8rem; padding: .55rem .8rem; font-size: .88rem; }
.sx-empty li span { flex: none; width: 1.6rem; text-align: center; font-size: 1.1rem; color: #1e468a; }
.dark .sx-empty { color: #94a3b8; } .dark .sx-empty b { color: #e2e8f0; } .dark .sx-empty li { background: #1e293b; border-color: #334155; }
.opts .mhint { margin: -.35rem 0 .8rem; font-size: .74rem; line-height: 1.45; color: #64748b; background: #f1f5f9; border-radius: .5rem; padding: .4rem .55rem; } .dark .opts .mhint { background: #1e293b; }

/* ---- Education hub: department cards ---- */
.sx-hgrid { display: grid; gap: .9rem; grid-template-columns: 1fr; margin: .6rem 0 1.6rem; }
@media (min-width: 640px) { .sx-hgrid { grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
@media (min-width: 1024px) { .sx-hgrid { grid-template-columns: repeat(3, 1fr); } }
.sx-hcard { position: relative; display: flex; align-items: center; gap: .95rem; padding: 1.1rem 1.05rem; border-radius: 1.2rem; background: #fff; border: 1.5px solid #b9c4d4; box-shadow: 0 4px 14px -6px rgb(15 23 42 / .22); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.sx-hcard:hover { transform: translateY(-2px); border-color: #1e468a; box-shadow: 0 12px 26px -10px rgb(30 70 138 / .45); }
.sx-hico { flex: none; width: 3.7rem; height: 3.7rem; border-radius: 1.05rem; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #2a5aa8, #163a75); box-shadow: 0 8px 18px -8px rgb(30 70 138 / .7); }
.sx-hico.big { width: 5rem; height: 5rem; border-radius: 1.4rem; margin: 0 auto; }
.i-target .sx-hico { background: linear-gradient(145deg, #d9534f, #a32b27); box-shadow: 0 8px 18px -8px rgb(163 43 39 / .6); }
.i-book .sx-hico { background: linear-gradient(145deg, #8a5cd6, #5a34a3); box-shadow: 0 8px 18px -8px rgb(90 52 163 / .6); }
.i-globe .sx-hico { background: linear-gradient(145deg, #1e8a6a, #0f5f4a); box-shadow: 0 8px 18px -8px rgb(15 95 74 / .6); }
.i-flag .sx-hico { background: linear-gradient(145deg, #e8932c, #b3620e); box-shadow: 0 8px 18px -8px rgb(179 98 14 / .6); }
.i-headset .sx-hico { background: linear-gradient(145deg, #1fa3c4, #0f6f88); box-shadow: 0 8px 18px -8px rgb(15 111 136 / .6); }
.sx-hcard.soon { background: #f6f8fb; } .sx-hcard.soon .sx-hico { filter: saturate(.55); opacity: .9; }
.sx-hbody { display: flex; flex-direction: column; gap: .12rem; min-width: 0; flex: 1; }
.sx-htitle { font-size: 1.12rem; font-weight: 800; line-height: 1.25; color: #0f2a55; letter-spacing: -.005em; }
.sx-hsd { font-size: .98rem; font-weight: 700; color: #1e468a; unicode-bidi: plaintext; text-align: start; }
.sx-hsub { font-size: .8rem; color: #475569; line-height: 1.45; unicode-bidi: plaintext; text-align: start; }
.sx-hmeta { margin-top: .2rem; width: fit-content; font-size: .72rem; font-weight: 700; color: #1e468a; background: #eaf0fa; border-radius: 999px; padding: .12rem .6rem; }
.sx-hgo { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: #1e468a; color: #fff; }
html[dir=rtl] .sx-hgo svg { transform: scaleX(-1); }
.sx-hbadge { flex: none; align-self: flex-start; background: #e2e8f0; color: #475569; font-size: .68rem; font-weight: 800; padding: .22rem .6rem; border-radius: 999px; white-space: nowrap; }
.sx-dept { text-align: center; padding: 1.6rem 1rem 1.4rem; margin-top: .8rem; background: #fff; border: 1.5px solid #b9c4d4; border-radius: 1.3rem; box-shadow: 0 4px 14px -6px rgb(15 23 42 / .2); }
.sx-dnote { max-width: 26rem; margin: .8rem auto 0; font-size: .9rem; color: #64748b; line-height: 1.6; }
.dark .sx-hcard, .dark .sx-dept { background: #1e293b; border-color: #334155; } .dark .sx-hcard.soon { background: #172033; } .dark .sx-htitle { color: #e2e8f0; } .dark .sx-hsd { color: #9db8e6; } .dark .sx-hsub { color: #94a3b8; } .dark .sx-hmeta { background: #0f2a55; color: #bcd0f5; }
@media (max-width: 480px) { .sx-hico { width: 3.3rem; height: 3.3rem; } .sx-htitle { font-size: 1.05rem; } }

.sx-hbody .sx-hbadge { margin-top: .35rem; align-self: flex-start; }
html:not([dir=rtl]) .sx-hsd, html:not([dir=rtl]) .sx-hsub { text-align: left; }

/* hub: calm professional palette, tighter mobile margins, locked cards */
.i-target .sx-hico, .i-book .sx-hico, .i-globe .sx-hico, .i-flag .sx-hico, .i-headset .sx-hico { background: none; box-shadow: none; }
.sx-hcard.soon { cursor: default; background: #f4f6f9; border-color: #d5dce6; box-shadow: none; }
.sx-hcard.soon:hover { transform: none; border-color: #d5dce6; box-shadow: none; }
.sx-hcard.soon .sx-hico { background: #e2e8f0; box-shadow: none; filter: none; opacity: 1; color: #64748b; }
.sx-hcard.soon .sx-htitle { color: #475569; }
.sx-hcard.soon .sx-hsd { color: #64748b; }
.sx-hcard.soon .sx-hbadge { background: #e2e8f0; color: #64748b; }
.dark .sx-hcard.soon .sx-hico { background: #334155; } .dark .sx-hcard.soon .sx-htitle { color: #94a3b8; }
@media (max-width: 639.98px) {
  .sx-wrap, .sx-wrap.wide { padding-left: .1rem; padding-right: .1rem; padding-top: 0; }
  main.px-4 { padding-left: .85rem; padding-right: .85rem; padding-top: 1rem; }
  .sx-hcard { padding: .9rem .85rem; gap: .8rem; }
}

/* class cards: 3 per row on phones, compact */
@media (max-width: 639.98px) {
  .sx-cgrid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .sx-cgrid .sx-ccard { align-items: center; text-align: center; padding: .8rem .35rem; border-radius: .9rem; gap: .1rem; }
  .sx-cgrid .sx-ccard .ic { font-size: 1.5rem; margin-bottom: .2rem; }
  .sx-cgrid .sx-ccard b { font-size: .98rem; }
  .sx-cgrid .sx-ccard small { font-size: .7rem; line-height: 1.25; }
}

/* ---- education: subjects + lesson, full mobile pass ---- */
@media (max-width: 639.98px) {
  .sx-toolrow { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: .55rem; margin-bottom: .75rem; min-width: 0; max-width: 100%; }
  .sx-toolrow > * { min-width: 0; max-width: 100%; }
  .sx-toolrow .sx-chips2 { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .15rem; scrollbar-width: none; }
  .sx-toolrow .sx-chips2::-webkit-scrollbar { display: none; }
  .sx-toolrow .sx-chips2 button { flex: none; white-space: nowrap; padding: .4rem .8rem; font-size: .85rem; }
  .sx-find { flex: none; width: 100%; }
  .sx-sgrid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .sx-sgrid .sx-scard { padding: .8rem .75rem; border-radius: .9rem; gap: .1rem; }
  .sx-sgrid .sx-scard .ic { font-size: 1.45rem; margin-bottom: .2rem; }
  .sx-sgrid .sx-scard b { font-size: .98rem; line-height: 1.3; }
  .sx-sgrid .sx-scard .meta { gap: .25rem; margin-top: .25rem; }
  .sx-sgrid .sx-scard small { font-size: .7rem; line-height: 1.3; }
  .sx-sgrid .med { font-size: .66rem; padding: .1rem .45rem; }
  .sx-sub { font-size: .95rem; }
}
@media (max-width: 1023.98px) {
  #panes > section { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  #panes > section > div:first-child { flex: none; padding: .6rem .7rem; }
  #panes > section .sx-title h1 { font-size: 1.02rem; line-height: 1.35; }
  #panes > section .sx-title p { font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #panes > section .sx-title a { font-size: .72rem; }
  #panes > section > div:first-child > div:nth-child(2) { flex-wrap: nowrap; overflow-x: auto; gap: .4rem; margin-top: .5rem; scrollbar-width: none; }
  #panes > section > div:first-child > div:nth-child(2)::-webkit-scrollbar { display: none; }
  #panes > section .tbtn { flex: none; white-space: nowrap; padding: .3rem .6rem; font-size: .8rem; }
  #panes > section #copied { display: none; }
  #panes > section #tabs { margin-top: .5rem; scrollbar-width: none; }
  #panes > section #tabs .tab { padding: .4rem .8rem; font-size: .85rem; }
  #panes > section #tab-body { flex: none; overflow: visible; min-height: 55vh; padding: .8rem .85rem 1.2rem; font-size: .95rem; line-height: 1.8; }
  #panes > section #tab-body img, #panes > section #tab-body table { max-width: 100%; }
  #panes > section #tab-body table { display: block; overflow-x: auto; }
  #panes > section #tab-body pre { overflow-x: auto; }
  .sx-pager { font-size: .78rem; } .sx-pager a, .sx-pager .off { width: 1.6rem; height: 1.6rem; } .sx-pager b { min-width: 2.6rem; padding: 0 .2rem; }
}

/* subject page, tutor tab on phones: chat fits the screen exactly (no page jump, input always visible) */
@media (max-width: 1023.98px) {
  body.pane-chat main.px-4 { padding-top: .45rem; padding-bottom: 0; }
  body.pane-chat .sx-seg { margin: 0 -.85rem .45rem !important; position: static; }
  body.pane-chat .sx-subjchat { height: calc(100vh - 3.5rem - 3.9rem - 3.75rem - .8rem); height: calc(100dvh - 3.5rem - 3.9rem - 3.75rem - env(safe-area-inset-bottom) - .8rem); min-height: 15rem; }
}
@media (max-width: 1023.98px) {
  body.pane-chat:has(.sx-bn) { padding-bottom: 0; overflow-x: hidden; }
  body.pane-chat footer, body.pane-chat .sx-foot { display: none; }
}

/* Google sign-in button */
.sx-gbtn { display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; min-height: 3rem; padding: .7rem 1rem; border: 1.5px solid #cbd5e1; border-radius: .8rem; background: #fff; color: #1f2937; font-weight: 700; font-size: 1rem; text-decoration: none; box-shadow: 0 2px 6px -2px rgb(15 23 42 / .2); transition: box-shadow .15s, border-color .15s; }
.sx-gbtn:hover { border-color: #1e468a; box-shadow: 0 6px 16px -8px rgb(30 70 138 / .5); }
.sx-gnote { margin: .6rem 0 0; text-align: center; font-size: .74rem; color: #64748b; line-height: 1.5; }
.sx-gnote a { color: #163a75; font-weight: 600; }
.sx-or { display: flex; align-items: center; gap: .7rem; margin: 1.1rem 0 .9rem; color: #94a3b8; font-size: .8rem; }
.sx-or::before, .sx-or::after { content: ""; flex: 1; height: 1px; background: #d5dce6; }
.dark .sx-gbtn { background: #1e293b; border-color: #334155; color: #e2e8f0; }
bdi.mx{direction:ltr;unicode-bidi:isolate}

/* chat and education pages use the whole screen width (no wide empty strips left and right on big screens) */
.mx-auto.max-w-7xl:has(> .app-h) { max-width: none; }

/* Courses */
.cr-msg { padding: .6rem .8rem; border-radius: .8rem; overflow-wrap: anywhere; }
.cr-me { background: #e0e7ff; justify-self: end; max-width: 92%; } .cr-bot { background: #f1f5f9; max-width: 100%; }
.cr-warn { border-color: #f59e0b !important; background: #fffbeb !important; } .cr-note { color: #92400e; }
.cr-row { border-top: 1px solid #e2e8f0; } .cr-mute { color: #64748b; }
.dark .cr-me { background: #312e81; } .dark .cr-bot { background: #0f172a; } .dark .cr-warn { background: #422006 !important; } .dark .cr-note { color: #fcd34d; } .dark .cr-row { border-color: #334155; }
