/* विद्याधाम — प्लेटफ़ॉर्म घटक (style.css + premium.css के बाद लोड): नेविगेशन, हब-कार्ड, टेस्ट-इंजन, डैशबोर्ड, प्रोफ़ाइल */
:root {
  --ok: #1F7A4D; --ok-soft: #ECF8F1;
  --bad: #B42318; --bad-soft: #FDF1F1;
  --warn: #8A5A07; --warn-soft: #FEF3DC;
  --rev: #6B3FA0; --rev-soft: #F3EDFB;
}

/* ---------- हेडर: डेस्कटॉप पर दो पंक्तियां (ब्रांड + टूल / सभी मुख्य टैब) ---------- */
.nav-tools { display: flex; align-items: center; gap: 8px; }
.nav-ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: var(--navy); background: transparent; border: 1px solid transparent; cursor: pointer; position: relative; }
.nav-ic:hover { background: var(--soft-blue); }
.nav-ic svg { width: 21px; height: 21px; }
.nav-login { white-space: nowrap; }
.nav-avatar { display: grid; place-items: center; border-radius: 50%; }
.avatar { border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); background: var(--ivory); }
.avatar-ini { display: inline-grid; place-items: center; background: var(--navy); color: #F0C66F; font-weight: 800; font-family: var(--font); }
.avatar-ini svg { width: 60%; height: 60%; }
.bell-wrap { position: relative; }
.bell-badge { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font: 700 11px/18px var(--font-latin); text-align: center; }
.notif-panel { position: absolute; right: 0; top: 48px; width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 90; }
.np-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.np-head a { color: var(--navy-3); font-weight: 600; font-size: 14px; }
.np-list { list-style: none; }
.np-list li a { display: grid; gap: 2px; padding: 11px 16px; border-bottom: 1px solid #F1ECE0; }
.np-list li.unread a { background: var(--soft-gold); }
.np-list li a:hover { background: var(--soft-blue); }
.np-sec { font-size: 12px; font-weight: 700; color: var(--gold-dark); }
.np-t { color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.45; }
.np-list small { color: var(--muted); font-size: 12.5px; }
.np-empty { padding: 18px 16px; color: var(--muted); }

@media (min-width: 981px) {
  .site-header .nav { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand tools" "menu menu"; height: auto; row-gap: 0; padding-top: 10px; }
  .site-header .brand { grid-area: brand; }
  .site-header .nav-tools { grid-area: tools; justify-self: end; }
  .site-header .nav-main { grid-area: menu; border-top: 1px solid #EFE7D6; margin-top: 10px; }
  .site-header .nav-links { height: 48px; gap: 2px; }
  .site-header .nav-links a { padding: 8px 14px; font-size: 16px; }
  .site-header .nav-links a.active::after { bottom: 0; height: 3px; }
  .nav-toggle { display: none !important; }
}
@media (max-width: 980px) {
  .site-header .nav { height: 66px; }
  .site-header .nav-links { top: 66px; }
  .nav-tools { gap: 4px; }
}
.nl-short { display: none; }
@media (max-width: 760px) { .nav-toggle { display: none !important; } }   /* मोबाइल पर नीचे की पट्टी + "और" शीट ही मेन्यू */
@media (max-width: 600px) {
  .nl-long { display: none; } .nl-short { display: inline; }
  .nav-prem { display: none; }
  .nav-login { padding: 8px 12px; font-size: 14px; }
  .brand-name { font-size: 22px; }
  .brand-name small { display: none; }
  .brand-logo { width: 40px; height: 40px; }
  .nav-ic { width: 38px; height: 38px; }
  .topbar .container { min-height: 34px; font-size: 13px; }
}
@media (max-width: 380px) { .nav-tools .nav-ic[href="search.html"] { display: none; } }

/* ---------- मोबाइल: नीचे की पट्टी + "और" शीट ---------- */
.bottom-nav .bn-more { display: grid; justify-items: center; gap: 2px; font: 600 11.5px var(--font); color: var(--slate); padding: 4px 2px; border-radius: 10px; background: none; border: 0; cursor: pointer; }
.bottom-nav .bn-more svg { width: 22px; height: 22px; }
.bottom-nav .bn-more.active { color: var(--navy); background: var(--soft-gold); }
.more-sheet { position: fixed; inset: 0; z-index: 120; }
.ms-backdrop { position: absolute; inset: 0; background: rgba(9, 43, 47, .45); }
.ms-panel { position: absolute; left: 0; right: 0; bottom: 0; background: #FFFDF9; border-radius: 20px 20px 0 0; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 40px -20px rgba(0,0,0,.35); max-height: 80vh; overflow: auto; }
.ms-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ms-head b { font-size: 18px; color: var(--navy); }
.ms-close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.ms-close svg { width: 20px; height: 20px; }
.ms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ms-grid a { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 14px 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; min-height: 88px; }
.ms-grid a svg { width: 24px; height: 24px; color: var(--navy-3); }
.ms-grid a.active { background: var(--soft-gold); border-color: var(--gold); }
@media (min-width: 761px) { .more-sheet { display: none !important; } }

/* ---------- सामान्य घटक ---------- */
.vd-toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; max-width: calc(100vw - 32px); }
.vd-toast.show { opacity: 1; transform: translate(-50%, 0); }
.vd-toast.err { background: var(--bad); }
.sec { padding: 56px 0; }
.sec-tight { padding: 36px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); color: var(--navy); line-height: 1.25; }
.sec-head p { color: var(--muted); margin-top: 4px; }
.sec-head .more { color: var(--navy-3); font-weight: 700; white-space: nowrap; }
.kicker2 { display: inline-block; font: 700 12.5px var(--font-latin); letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.hub-card { background: #FFFEFB; border: 1px solid #E9E1D1; border-radius: 16px; padding: 18px; display: grid; gap: 8px; align-content: start; transition: border-color .2s, box-shadow .2s; position: relative; }
.hub-card:hover { border-color: #D9BC7A; box-shadow: 0 12px 30px -22px rgba(16,47,57,.5); }
.hub-card h3 { font-size: 18px; color: var(--navy); line-height: 1.35; }
.hub-card p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.hub-card .hc-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--soft-gold); color: var(--gold-dark); }
.hub-card .hc-ic svg { width: 22px; height: 22px; }
.hub-card .hc-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.hub-card.locked { opacity: .92; }
.hub-card a.stretch::after { content: ""; position: absolute; inset: 0; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 14.5px var(--font); color: var(--ink); cursor: pointer; line-height: 1.3; }
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip small { color: inherit; opacity: .7; font-weight: 600; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--soft-blue); color: var(--navy-3); }
.pill-new { background: #FDE8E8; color: var(--bad); }
.pill-gold { background: var(--soft-gold); color: var(--gold-dark); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-lock { background: #F2F4F7; color: #475467; }
.empty-state { text-align: center; padding: 34px 18px; border: 1px dashed #D9CFB8; border-radius: 16px; background: #FFFEFB; color: var(--muted); }
.empty-state b { display: block; color: var(--navy); font-size: 18px; margin-bottom: 4px; }
.list { list-style: none; display: grid; gap: 10px; }
.list-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 14px 16px; border: 1px solid #E9E1D1; border-radius: 14px; background: #FFFEFB; }
.list-item .li-t { color: var(--ink); font-weight: 600; line-height: 1.45; }
.list-item .li-m { color: var(--muted); font-size: 14px; margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.list-item .btn { white-space: nowrap; }
@media (max-width: 600px) { .list-item { grid-template-columns: 1fr; } .list-item .btn { justify-self: start; } }
.btn-ghost { background: transparent; border-color: transparent; color: var(--navy-3); padding: 8px 10px; }
.btn-ghost:hover { background: var(--soft-blue); }
.btn-mark { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 6px 12px; font: 600 14px var(--font); cursor: pointer; }
.btn-mark svg { width: 16px; height: 16px; }
.btn-mark.on { background: var(--soft-gold); border-color: var(--gold); color: var(--gold-dark); }
.seg { display: flex; gap: 4px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button, .seg a { flex: none; font: 600 15px var(--font); border: 0; background: none; color: var(--muted); padding: 9px 16px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.seg .active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.seg-big { margin-bottom: 22px; }
.seg-big button { font-size: 16.5px; padding: 11px 22px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 18px; }
.filters input, .filters select, .field input, .field select, .field textarea { width: 100%; font: 500 15.5px var(--font); padding: 10px 12px; border: 1px solid #D5CCB8; border-radius: 10px; background: #fff; color: var(--ink); min-height: 44px; }
.field { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: 15px; }
.field small { font-weight: 400; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.note-small { font-size: 14px; color: var(--muted); }
.loading { color: var(--muted); padding: 20px 0; }
.skeleton { background: linear-gradient(90deg, #F3EEE2 25%, #FAF6EC 50%, #F3EEE2 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; min-height: 90px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* ---------- होम ---------- */
.hero-v2 { padding: 64px 0 72px; }
.hero-v2 h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.22; }
.hero-v2 .lead { max-width: 640px; }
.hero-v2 .hero-grid { grid-template-columns: 1.15fr .85fr; }
.hero-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(233,189,105,.35); border-radius: 22px; padding: 22px; color: #E0EEEB; display: grid; gap: 12px; }
.hero-panel h2 { color: #fff; font-size: 18px; }
.hero-panel .hp-row { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; background: rgba(255,255,255,.06); border-radius: 14px; padding: 12px; }
.hero-panel .hp-row svg { width: 22px; height: 22px; color: #F0C66F; justify-self: center; }
.hero-panel .hp-row b { color: #fff; display: block; font-size: 16px; }
.hero-panel .hp-row span { font-size: 14px; }
.today2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.today2 .t-card { background: #FFFEFB; border: 1px solid #E9E1D1; border-radius: 20px; padding: 22px; display: grid; gap: 12px; align-content: start; box-shadow: 0 12px 30px -24px rgba(16,47,57,.5); }
.today2 .t-card.mains { background: #F4FAF7; border-color: #CFE3DC; }
.t-card .t-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.t-card h3 { font-size: 21px; color: var(--navy); }
.t-card .t-q { color: var(--ink); font-weight: 600; font-size: 17px; line-height: 1.55; }
.t-card .t-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.t-card .btn { justify-self: start; }
@media (max-width: 860px) { .today2 { grid-template-columns: 1fr; } .hero-v2 .hero-grid { grid-template-columns: 1fr; } }
.upd-list { list-style: none; display: grid; gap: 0; border: 1px solid #E9E1D1; border-radius: 16px; overflow: hidden; background: #FFFEFB; }
.upd-list li { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; padding: 13px 16px; border-bottom: 1px solid #F1ECE0; }
.upd-list li:last-child { border-bottom: 0; }
.upd-list .u-sec { font-size: 13px; font-weight: 700; color: var(--gold-dark); }
.upd-list .u-t { color: var(--ink); font-weight: 600; line-height: 1.45; }
.upd-list .u-m { color: var(--muted); font-size: 13.5px; }
@media (max-width: 640px) { .upd-list li { grid-template-columns: 1fr; gap: 4px; } .upd-list .btn { justify-self: start; } }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
.count-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.count-grid div { background: #FFFEFB; border: 1px solid #E9E1D1; border-radius: 14px; padding: 14px; text-align: center; }
.count-grid b { display: block; font: 800 28px var(--font-latin); color: var(--navy); }
.count-grid span { font-size: 14px; color: var(--muted); }
@media (max-width: 700px) { .count-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- टेस्ट इंजन ---------- */
.tx { padding: 24px 0 40px; }
.tx-start { max-width: 760px; margin: 0 auto; background: #FFFEFB; border: 1px solid #E9E1D1; border-radius: 20px; padding: 26px; display: grid; gap: 16px; }
.tx-start h1 { font-size: clamp(24px, 3.4vw, 32px); color: var(--navy); line-height: 1.3; }
.tx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.tx-facts div { background: var(--ivory); border-radius: 12px; padding: 12px; }
.tx-facts b { display: block; color: var(--navy); font-size: 18px; }
.tx-facts span { font-size: 13.5px; color: var(--muted); }
.tx-opts-row { display: grid; gap: 8px; }
.tx-radio { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.tx-radio input { margin-top: 5px; accent-color: var(--navy); width: 18px; height: 18px; }
.tx-radio:has(input:checked) { border-color: var(--navy-3); background: var(--soft-blue); }
.tx-radio small { display: block; color: var(--muted); font-weight: 400; }
.tx-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.tx-bar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #FFFDF9; border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: 16px; }
.tx-bar h1 { font-size: 17px; color: var(--navy); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tx-timer { font: 700 18px var(--font-latin); color: var(--navy); background: var(--soft-gold); border-radius: 10px; padding: 6px 12px; white-space: nowrap; }
.tx-timer.low { background: var(--bad-soft); color: var(--bad); }
.tx-card { background: #fff; border: 1px solid #E9E1D1; border-radius: 18px; padding: 22px; }
.tx-qhead { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; color: var(--muted); font-size: 14.5px; }
.tx-qhead b { color: var(--navy); font-size: 16px; }
.tx-q { font-size: 19px; color: var(--ink); font-weight: 600; line-height: 1.6; margin-bottom: 16px; white-space: pre-line; }
.tx-opts { display: grid; gap: 10px; }
.tx-opt { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 12px 14px; border: 1.5px solid #DDD3BE; border-radius: 12px; background: #fff; font: 500 16.5px var(--font); color: var(--ink); cursor: pointer; line-height: 1.5; min-height: 52px; }
.tx-opt:hover { border-color: var(--navy-3); }
.tx-opt .l { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font: 700 15px var(--font-latin); color: var(--navy); }
.tx-opt.sel { border-color: var(--navy); background: var(--soft-blue); }
.tx-opt.sel .l { background: var(--navy); color: #fff; }
.tx-opt.right { border-color: var(--ok); background: var(--ok-soft); }
.tx-opt.right .l { background: var(--ok); color: #fff; }
.tx-opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.tx-opt.wrong .l { background: var(--bad); color: #fff; }
.tx-opt.e-opt { border-style: dashed; color: var(--muted); }
.tx-opt:disabled { cursor: default; }
.tx-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; margin-top: 18px; }
.tx-actions .grp { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-review { border-color: #C9B5E4; color: var(--rev); background: #fff; }
.btn-review.on { background: var(--rev-soft); border-color: var(--rev); }
.tx-side { position: sticky; top: 70px; display: grid; gap: 12px; }
.tx-pal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tx-pal button { aspect-ratio: 1; border-radius: 10px; border: 1.5px solid #DDD3BE; background: #fff; font: 700 14.5px var(--font-latin); color: var(--ink); cursor: pointer; position: relative; min-height: 40px; }
.tx-pal button.cur { outline: 3px solid var(--gold); outline-offset: 1px; }
.tx-pal .s-ans { background: var(--ok); border-color: var(--ok); color: #fff; }
.tx-pal .s-skip { background: #FFF1F0; border-color: #F1B0AC; color: var(--bad); }
.tx-pal .s-rev { background: var(--rev); border-color: var(--rev); color: #fff; }
.tx-pal .s-rev.s-ans::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 8px; height: 8px; border-radius: 50%; background: #7BE0A8; }
.tx-pal .s-right { background: var(--ok); border-color: var(--ok); color: #fff; }
.tx-pal .s-wrong { background: var(--bad); border-color: var(--bad); color: #fff; }
.tx-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 13px; color: var(--muted); }
.tx-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid #DDD3BE; }
.tx-explain { margin-top: 14px; border-radius: 12px; padding: 12px 14px; background: var(--soft-blue); border-left: 4px solid var(--navy-3); font-size: 15.5px; }
.tx-explain.ok { background: var(--ok-soft); border-color: var(--ok); }
.tx-explain.bad { background: var(--bad-soft); border-color: var(--bad); }
.tx-pal-toggle { display: none; }
@media (max-width: 900px) {
  .tx-layout { grid-template-columns: 1fr; }
  .tx-side { position: static; }
  .tx-pal-toggle { display: inline-flex; }
  .tx-side.collapsed .tx-pal-box { display: none; }
  .tx-card { padding: 18px 14px; }
  .tx-q { font-size: 17.5px; }
}
.res-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.res-tiles div { background: #FFFEFB; border: 1px solid #E9E1D1; border-radius: 14px; padding: 14px; text-align: center; }
.res-tiles b { display: block; font: 800 26px var(--font-latin); color: var(--navy); }
.res-tiles span { font-size: 13.5px; color: var(--muted); }
.res-tiles .t-ok b { color: var(--ok); } .res-tiles .t-bad b { color: var(--bad); }
@media (max-width: 640px) { .res-tiles { grid-template-columns: 1fr 1fr; } }
.res-score { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: linear-gradient(120deg, #073B3B, #075B50); color: #E4EEE8; border-radius: 20px; padding: 22px 24px; }
.res-score .big { font: 800 44px var(--font-latin); color: #fff; line-height: 1; }
.res-score .big small { font-size: 20px; color: #B9D3CC; }
.res-score p { margin: 0; }
.topic-tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.topic-tbl th, .topic-tbl td { padding: 9px 10px; border-bottom: 1px solid #EFE8D9; text-align: left; }
.topic-tbl th { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.rv-item { border: 1px solid #E9E1D1; border-radius: 14px; padding: 16px; background: #fff; }
.rv-item + .rv-item { margin-top: 12px; }
.rv-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; font-size: 14px; color: var(--muted); }

/* ---------- डैशबोर्ड ---------- */
.dash-head { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: linear-gradient(120deg, #073B3B, #075B50); color: #E4EEE8; border-radius: 22px; padding: 22px; }
.dash-head h1 { color: #fff; font-size: clamp(22px, 3vw, 30px); line-height: 1.25; }
.dash-head .dh-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.dash-head .pill { background: rgba(255,255,255,.12); color: #F0C66F; }
.dash-head .avatar { border-color: #E9BD69; }
.streak { display: grid; justify-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(233,189,105,.4); border-radius: 16px; padding: 10px 16px; color: #fff; min-width: 110px; }
.streak svg { width: 26px; height: 26px; color: #F0C66F; }
.streak b { font: 800 26px var(--font-latin); line-height: 1.1; }
.streak span { font-size: 12.5px; color: #CFE2DC; }
@media (max-width: 640px) { .dash-head { grid-template-columns: auto 1fr; } .dash-head .streak { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 10px; align-items: center; } }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: #FFFEFB; border: 1px solid #E9E1D1; border-radius: 14px; padding: 14px; }
.kpi b { display: block; font: 800 26px var(--font-latin); color: var(--navy); line-height: 1.15; }
.kpi span { font-size: 13.5px; color: var(--muted); }
.kpi a { position: absolute; inset: 0; }
.panel2 { background: #FFFEFB; border: 1px solid #E9E1D1; border-radius: 18px; padding: 20px; }
.panel2 h2, .panel2 h3 { color: var(--navy); font-size: 19px; margin-bottom: 12px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-grid.ca-split { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 860px) { .dash-grid, .dash-grid.ca-split { grid-template-columns: 1fr; } .dash-grid > * { min-width: 0; } }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; align-items: end; height: 150px; padding-top: 10px; }
.bars .b { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.bars .b i { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #D2A24B, #0E6258); min-height: 2px; flex: none; }
.bars .b small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.bars .b em { font: 700 12px var(--font-latin); color: var(--navy); font-style: normal; }
.heat { display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; }
.heat span { aspect-ratio: 1; border-radius: 4px; background: #EFE9DC; }
.heat .h1 { background: #CFE3DC; } .heat .h2 { background: #7FB8A6; } .heat .h3 { background: #17635D; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 70px; gap: 10px; align-items: center; font-size: 14.5px; padding: 6px 0; }
.hbar .bar { height: 10px; }
.hbar b { text-align: right; color: var(--navy); font-family: var(--font-latin); }
.legend-note { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.calc-note { font-size: 14px; color: var(--muted); background: var(--ivory); border-radius: 12px; padding: 12px 14px; }
.calc-note summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.calc-note ul { margin: 8px 0 0 18px; display: grid; gap: 4px; }

/* ---------- प्रोफ़ाइल: फोटो काटना ---------- */
.crop-wrap { display: grid; gap: 12px; justify-items: center; }
.crop-box { width: 260px; height: 260px; border-radius: 50%; overflow: hidden; position: relative; background: #EFE9DC; touch-action: none; cursor: grab; border: 3px solid var(--gold); }
.crop-box canvas { width: 100%; height: 100%; display: block; }
.crop-wrap input[type=range] { width: 260px; accent-color: var(--navy); }
.photo-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* ---------- सूचना / लेख / पुस्तक ---------- */
.notice-card { background: #FFFEFB; border: 1px solid #E9E1D1; border-radius: 16px; padding: 18px; display: grid; gap: 8px; scroll-margin-top: 140px; }
.notice-card.pinned { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233,189,105,.18); }
.notice-card:target { border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(23,99,93,.2); }
.notice-card h3 { font-size: 18.5px; color: var(--navy); line-height: 1.4; }
.notice-card .n-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); }
.notice-card ul.n-dates { list-style: none; display: grid; gap: 4px; background: var(--ivory); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.notice-card .n-act { display: flex; gap: 8px; flex-wrap: wrap; }
.official-note { display: flex; gap: 12px; align-items: center; background: var(--soft-blue); border: 1px solid #CFE3DC; border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-size: 15px; }
.official-note svg { width: 24px; height: 24px; color: var(--navy-3); flex: none; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.art-card { background: #FFFEFB; border: 1px solid #E9E1D1; border-radius: 16px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; position: relative; }
.art-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--ivory); }
.art-card .ac-b { padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.art-card h3 { font-size: 17.5px; line-height: 1.4; color: var(--navy); }
.art-card h3 a::after { content: ""; position: absolute; inset: 0; }
.art-card p { color: var(--muted); font-size: 15px; }
.prose { max-width: 760px; margin: 0 auto; font-size: 17.5px; }
.prose h2 { font-size: 22px; color: var(--navy); margin: 26px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px 22px; display: grid; gap: 6px; }
.fact-box { border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
.fact-box.pre { background: var(--soft-gold); border: 1px solid #EAD9B2; }
.fact-box.mains { background: #F4FAF7; border: 1px solid #CFE3DC; }
.fact-box.facts { background: var(--soft-blue); border: 1px solid #CFE3DC; }
.fact-box h2 { margin-top: 0 !important; font-size: 18px !important; }
.book-detail { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.book-detail .bd-cover img, .book-detail .bd-cover .gen-cover { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
@media (max-width: 760px) { .book-detail { grid-template-columns: 1fr; } .book-detail .bd-cover { max-width: 240px; } }
.toc-list { list-style: none; display: grid; gap: 6px; counter-reset: ch; }
.toc-list li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #EFE8D9; border-radius: 10px; background: #fff; }
.toc-list li.done { background: var(--ok-soft); border-color: #B7E2C8; }
.reader { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* ---------- मुख्य परीक्षा: उत्तर-लेखन ---------- */
.writer textarea { width: 100%; min-height: 320px; font: 500 17px/1.8 var(--font); padding: 14px 16px; border: 1px solid #D5CCB8; border-radius: 12px; background: #fff; color: var(--ink); resize: vertical; }
.writer-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.wc { font: 700 15px var(--font-latin); color: var(--navy); }
.wc.over { color: var(--bad); }
.model-box { background: #F4FAF7; border: 1px solid #CFE3DC; border-radius: 14px; padding: 16px 18px; white-space: pre-line; }
.mq-card { background: #FFFEFB; border: 1px solid #E9E1D1; border-radius: 16px; padding: 16px 18px; display: grid; gap: 8px; }
.mq-card .mq-t { color: var(--ink); font-weight: 600; font-size: 16.5px; line-height: 1.55; }
.mq-card .mq-m { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); }

/* ---------- PYQ ---------- */
.pyq-q { border: 1px solid #E9E1D1; border-radius: 14px; padding: 14px 16px; background: #fff; display: grid; gap: 6px; }
.pyq-q + .pyq-q { margin-top: 10px; }
.pyq-q .pq-m { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); align-items: center; }
.pyq-q .pq-t { color: var(--ink); font-weight: 600; line-height: 1.55; }
.pyq-q.locked .pq-t { color: var(--muted); font-weight: 500; }
.search-hero { display: flex; gap: 10px; max-width: 720px; margin: 18px auto 0; }
.search-hero input { flex: 1; font: 500 17px var(--font); padding: 13px 16px; border: 1.5px solid #D5CCB8; border-radius: 12px; min-height: 50px; }
.res-group { margin-bottom: 22px; }
.res-group h2 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }

/* प्रिंट (मासिक संकलन) */
@media print {
  .topbar, .site-header, .site-footer, .bottom-nav, .wa-float, .no-print, .filters, .seg { display: none !important; }
  body { padding: 0 !important; font-size: 12pt; }
  .art-card, .notice-card, .panel2 { break-inside: avoid; box-shadow: none; }
}

/* सुलभता: कीबोर्ड से "मुख्य सामग्री पर जाएं" */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.form select { font: 500 16px var(--font); padding: 12px 14px; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; min-height: 46px; width: 100%; }
.hub-card[href] { color: inherit; }
.seg a { text-decoration: none; }

/* टेस्ट पेज: साइट-हेडर स्थिर नहीं — टेस्ट-पट्टी (समय + जमा करें) ऊपर चिपकी रहे */
body[data-page="test"] .site-header { position: static; }
body[data-page="test"] .tx-side { top: 64px; }
.tx-bar .btn { white-space: nowrap; }
@media (max-width: 600px) { .tx-bar h1 { font-size: 15px; } .tx-timer { font-size: 16px; padding: 5px 9px; } .tx-bar .btn { padding: 8px 12px; } }
/* लंबे प्रश्न (कथन, DI तालिका): पंक्तियां बनी रहें; सूची में 4 पंक्ति तक */
.t-card .t-q, .mq-card .mq-t, .pyq-q .pq-t { white-space: pre-line; }
.mq-card .mq-t { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
