/* BeyondBooks v2.67.66: Khaga INSIDE the established student app, not a second site.
   Scoped to Khaga content/result only. No question navigator/timer/canonical UI selectors. */
.kh64-integrated{width:100%;max-width:none!important;min-width:0;font-family:'Anek Bangla','Hind Siliguri',system-ui,sans-serif}
.kh64-integrated .kh64-view-head{margin:6px 0 18px;border:0;display:flex;align-items:center;gap:14px}
.kh64-integrated .kh64-view-head h1{color:#102846;font-size:clamp(30px,2.5vw,40px);font-weight:950;letter-spacing:-.02em}
.kh64-integrated .kh64-view-head nav{display:flex;gap:8px}
.kh64-integrated .kh64-view-head nav a,.kh64-integrated .kh64-home-nav a{font-size:16px;line-height:1.3;min-height:47px;box-shadow:none;border:1px solid #d1e3eb;background:#fff;border-radius:13px}
.kh64-integrated .kh64-home-nav{margin:0 0 22px;padding:15px;border-radius:18px;background:#f4faff;border:1px solid #cfecf4}
.kh64-integrated .kh64-home-nav a:first-child{background:#e53b2e;border-color:#e53b2e}
.kh64-integrated .bb26755-profile-shortcut{display:none!important}
.kh64-integrated .kh66-profile{max-width:none}
.kh64-integrated .kh66-player{display:flex;justify-content:space-between;gap:26px;align-items:center;flex-wrap:wrap;border-radius:25px;background:linear-gradient(110deg,#eefbff,#fffaf7);border:1px solid #d0e8ef;padding:clamp(20px,3vw,35px);margin-bottom:18px;box-shadow:0 10px 28px #0c35510b}
.kh64-integrated .kh66-player-main{display:flex;align-items:center;gap:19px;min-width:0;flex:1 1 280px}
.kh64-integrated .kh66-player-avatar{width:90px;height:90px;object-fit:cover;border-radius:24px;border:3px solid #00b2d6;box-shadow:0 9px 16px #0c5d711d;flex:none}
.kh64-integrated .kh66-fallback{background:#d7f6fc;display:grid;place-items:center;font-size:29px;font-weight:950;color:#09637d}
.kh64-integrated .kh66-player-name h2{font-size:clamp(27px,3vw,38px);line-height:1.18;color:#102846;margin:0;font-weight:950}
.kh64-integrated .kh66-player-name p{font-size:17px;line-height:1.45;color:#4b6679;margin:8px 0 0;font-weight:650}
.kh64-integrated .kh66-player-record{display:grid;grid-template-columns:repeat(3,minmax(90px,1fr));gap:14px;flex:0 1 440px}
.kh64-integrated .kh66-player-record div{text-align:center;display:grid;gap:3px;padding:12px 15px;border-radius:17px;background:#fff;border:1px solid #d9eaf0}
.kh64-integrated .kh66-player-record strong{font-size:clamp(26px,2.4vw,35px);font-weight:1000;color:#102846;line-height:1.12}
.kh64-integrated .kh66-player-record span{font-size:15px;font-weight:850;color:#506e81}
.kh64-integrated .kh66-tabs{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 17px;border-bottom:1px solid #d4e6ee;padding:0 0 14px}
.kh64-integrated .kh66-tabs button{font:inherit;font-size:17px;line-height:1.25;font-weight:900;background:#fff;border:1px solid #ccdfeb;color:#22425d;padding:11px 17px;border-radius:13px;min-height:47px;cursor:pointer}
.kh64-integrated .kh66-tabs button[aria-selected=true]{background:#102846;color:#fff;border-color:#102846}
.kh64-integrated.kh66-ready [data-kh66-panel]{display:none}
.kh64-integrated.kh66-ready [data-kh66-panel].kh66-active{display:block}
.kh64-integrated .kh66-panel{padding:clamp(19px,2.5vw,34px);background:#fff;border:1px solid #d5e8ee;border-radius:23px;box-shadow:0 6px 19px #0c355109;margin-bottom:20px}
.kh64-integrated .kh66-panel h2,.kh64-integrated .kh66-panel h3{font-size:clamp(23px,2.1vw,30px);font-weight:950;margin:0 0 8px;color:#102846;line-height:1.3}
.kh64-integrated .kh66-overview-head{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:6px 0 24px}
.kh64-integrated .kh66-overview-head p{font-size:17px;color:#587286;margin:4px 0}
.kh64-integrated .kh66-brain-index{height:142px;width:142px;border-radius:50%;display:grid;place-items:center;flex:none;background:conic-gradient(#00b2d6 var(--kh66-brain,0%),#dce9ef 0);padding:10px}
.kh64-integrated .kh66-brain-index>div{height:100%;width:100%;border-radius:50%;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center}
.kh64-integrated .kh66-brain-index strong{font-size:39px;line-height:1.1;font-weight:1000;color:#102846}.kh64-integrated .kh66-brain-index small{font-size:15px;color:#517082;font-weight:800}
.kh64-integrated .kh66-overview-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:0 0 25px}
.kh64-integrated .kh66-overview-stats>div{padding:19px 18px;background:#f0f9fc;border:1px solid #d3eaf0;border-radius:17px;display:flex;flex-direction:column;gap:5px}
.kh64-integrated .kh66-overview-stats b{font-size:33px;font-weight:1000;color:#102846}.kh64-integrated .kh66-overview-stats span{font-size:16px;color:#47697c;font-weight:800}
.kh64-integrated .kh66-skills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:30px;row-gap:18px}
.kh64-integrated .kh66-skills h3{grid-column:1/-1;margin:3px 0 0}
.kh64-integrated .kh66-skill-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:17px;margin-bottom:9px;color:#102846}
.kh64-integrated .kh66-skill-label b{font-weight:900}.kh64-integrated .kh66-skill-label span{color:#37657b;font-weight:850;font-variant-numeric:tabular-nums}
.kh64-integrated .kh66-track{height:11px;background:#e6f1f6;border-radius:20px;overflow:hidden}.kh64-integrated .kh66-track div{height:100%;border-radius:20px;background:linear-gradient(90deg,#00b2d6,#087d9b)}
.kh64-integrated .kh66-note{font-size:15px;line-height:1.6;color:#5d7587;margin:24px 0 0}
.kh64-integrated .kh66-panel-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.kh64-integrated .kh66-panel-head p{font-size:16px;color:#587386;margin:0}
.kh64-integrated .kh66-history{display:grid;gap:9px}.kh64-integrated .kh66-history-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px 17px;background:#f5fafd;border:1px solid #dfedf2;border-radius:14px}
.kh64-integrated .kh66-history-row>div:first-child{min-width:0;display:flex;flex-direction:column;gap:4px}
.kh64-integrated .kh66-history-row strong{font-size:18px;color:#102846;font-weight:900}.kh64-integrated .kh66-history-row span{font-size:14px;color:#638094}
.kh64-integrated .kh66-history-row>b{font-size:26px;color:#0c718d;font-variant-numeric:tabular-nums}
.kh64-integrated .kh66-share-list{display:grid;gap:9px}.kh64-integrated .kh66-share-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.kh64-integrated .kh66-share-actions a,.kh64-integrated .kh66-share-actions button{font:inherit;font-size:15px;font-weight:900;min-height:41px;display:inline-flex;align-items:center;border:1px solid #bbdae6;border-radius:11px;padding:7px 12px;background:#fff;color:#0b5673;text-decoration:none;cursor:pointer}
.kh64-integrated .kh66-share-actions button{color:#b42d25;border-color:#f0cdca}
.kh64-integrated .kh66-share-actions form{margin:0}
.kh64-integrated .kh66-empty{border-radius:15px;background:#f3f9fc;padding:24px;font-size:17px;color:#426980}
.kh64-integrated [data-kh66-panel=rewards]>.kh60-section{border:0!important;padding:0!important;margin:0!important;box-shadow:none!important}
.kh64-integrated [data-kh66-panel=rewards] .kh60-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:13px}
.kh64-integrated [data-kh66-panel=rewards] .kh60-tile{background:linear-gradient(140deg,#edfbff,#fff);border-radius:17px;font-size:16px;padding:18px;min-height:116px;color:#315871}
.kh64-integrated [data-kh66-panel=rewards] .kh60-tile b{font-size:28px;color:#102846}
.kh64-integrated [data-kh66-panel=settings] .bb26757-settings{border:0!important;padding:0!important;margin:0!important;max-width:720px}
.kh64-integrated [data-kh66-panel=settings] .bb26757-settings button{background:#e53b2e;font-size:17px;max-width:340px}
.kh64-integrated [data-kh66-panel=settings] .bb26757-settings input[type=file]{background:#f6fafc}
.kh64-integrated .kh61-table-wrap{border:0;border-radius:18px;overflow:hidden}
.kh64-integrated .kh60-table{font-size:16px!important;background:#fff;border-collapse:separate;border-spacing:0 7px}
.kh64-integrated .kh60-table thead{background:#eff8fc}
.kh64-integrated .kh60-table tbody tr{background:#f6fbfd}
.kh64-integrated .kh60-table th,.kh64-integrated .kh60-table td{padding:14px 17px;border-bottom:none!important;color:#102846;font-weight:750}
.kh64-integrated .kh60-table td:first-child{font-weight:950;color:#0b7190;font-size:19px}
.kh64-integrated .kh60-table td b{font-size:22px}
.kh64-integrated .kh60-section{margin:0 0 17px!important;padding:clamp(18px,2.4vw,31px)!important}
.kh64-integrated .kh60-section>h2{font-size:26px!important;color:#102846!important}
/* Original exam UI stays untouched. Only the post-submission result module. */
.bb26758-result.kh66-result{max-width:none!important;display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,490px);align-items:center;gap:23px 35px;padding:clamp(22px,3vw,39px)!important;background:#fff!important;border:1px solid #cfe6ee!important;box-shadow:0 12px 30px #10284613;border-radius:26px!important}
.bb26758-result.kh66-result>.kh66-result-copy{grid-column:1;grid-row:1;min-width:0}
.bb26758-result.kh66-result>.kh64-card{grid-column:2;grid-row:1/4;width:100%!important;max-width:none!important;margin:0!important;justify-self:center;box-shadow:0 18px 45px #1537501c}
.bb26758-result.kh66-result>.bb26758-share{grid-column:1;grid-row:2}
.bb26758-result.kh66-result>.bb26758-result-nav{grid-column:1;grid-row:3;margin:0}
.bb26758-result.kh66-result .kh66-result-copy h2{font-size:clamp(27px,2.7vw,39px);font-weight:1000;line-height:1.3;color:#e53b2e}
.bb26758-result.kh66-result .kh66-result-copy p{font-size:18px;line-height:1.6}
.bb26758-result.kh66-result .bb26765-inline-share-form{width:100%;margin:0}
.bb26758-result.kh66-result .bb26765-share-links{justify-content:flex-start}
.bb26758-result.kh66-result .bb26758-share .bb26756-button{width:100%;max-width:none;font-size:19px}
.bb26758-result.kh66-result .bb26758-result-nav a{font-size:16px;min-height:48px}
/* Correct square background is always admin-selected, color gradient is ONLY empty-state fallback. */
.kh64-card.kh65-rich-card{border:0!important;background-color:#10324f;background-size:cover!important;background-position:center!important}
.kh64-card.kh65-rich-card.kh65-has-art{background-image:linear-gradient(rgba(6,24,43,var(--kh64-scrim)),rgba(6,24,43,var(--kh64-scrim))),var(--kh64-image)!important}
.kh64-card.kh65-rich-card .kh64-card-counts{left:6%;width:88%}
.kh64-card.kh65-rich-card .kh64-card-counts span{border-radius:12px;flex-wrap:wrap;min-width:0;gap:3px 7px;background:rgba(9,35,58,.76)}
.kh64-card.kh65-rich-card .kh64-card-counts span b{font-size:clamp(18px,2.2vw,27px);line-height:1.05}
.kh64-card.kh65-rich-card .kh64-card-counts span small{font-size:clamp(12px,1.2vw,17px);line-height:1.25}
.kh64-card.kh65-rich-card .kh64-card-counts span em{width:1.5em;height:1.5em;line-height:1.1}
.kh64-card.kh65-rich-card .kh64-card-score{font-size:clamp(72px,8.9vw,130px);line-height:1.02}
.kh64-card.kh65-rich-card .kh65-score-caption{font-size:clamp(12px,1.2vw,16px)}
.kh64-card.kh65-rich-card .kh64-card-message{font-size:clamp(17px,2vw,24px)}
/* Public link is only a landing page for recipients and social crawlers, not the result workflow. */
.khaga-61-public .kh57-layout{max-width:900px!important;margin:auto;padding:clamp(18px,3vw,36px)!important}
.khaga-61-public .kh57-hero.kh64-card{width:min(100%,620px)!important;margin:0 auto 23px!important}
.khaga-61-public .kh57-actions{max-width:760px;margin:10px auto 25px!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px!important}
.khaga-61-public .kh57-actions>*{font-size:17px!important;min-height:52px!important}
.khaga-61-public .kh57-actions .kh57-cta{grid-column:1/-1;font-size:19px!important}
@media(max-width:1050px){.bb26758-result.kh66-result{grid-template-columns:1fr minmax(250px,390px)}}
@media(max-width:850px){.bb26758-result.kh66-result{grid-template-columns:1fr;gap:17px}.bb26758-result.kh66-result>.kh66-result-copy,.bb26758-result.kh66-result>.kh64-card,.bb26758-result.kh66-result>.bb26758-share,.bb26758-result.kh66-result>.bb26758-result-nav{grid-column:1;grid-row:auto}.bb26758-result.kh66-result>.kh64-card{max-width:540px!important}.bb26758-result.kh66-result .kh66-result-copy{text-align:center}}
@media(max-width:720px){.kh64-integrated .kh66-player{padding:21px;gap:19px}.kh64-integrated .kh66-player-record{flex:1 1 100%;gap:8px}.kh64-integrated .kh66-player-record strong{font-size:26px}.kh64-integrated .kh66-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}.kh64-integrated .kh66-tabs button{flex-shrink:0;font-size:16px;padding:10px 14px}.kh64-integrated .kh66-overview-head{flex-direction:column;align-items:flex-start}.kh64-integrated .kh66-brain-index{height:112px;width:112px}.kh64-integrated .kh66-brain-index strong{font-size:31px}.kh64-integrated .kh66-overview-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.kh64-integrated .kh66-overview-stats>div{padding:12px 9px}.kh64-integrated .kh66-overview-stats b{font-size:26px}.kh64-integrated .kh66-overview-stats span{font-size:13px}.kh64-integrated .kh66-skills{grid-template-columns:1fr}.kh64-integrated .kh66-history-row{padding:12px;gap:6px}.kh64-integrated .kh66-history-row span{font-size:12px}.kh64-integrated .kh66-share-actions{width:100%}}
@media(max-width:480px){.kh64-integrated .kh66-player-avatar{width:71px;height:71px;border-radius:18px}.kh64-integrated .kh66-player-name h2{font-size:25px}.kh64-integrated .kh66-player-name p{font-size:15px}.kh64-integrated .kh66-player-record{gap:5px}.kh64-integrated .kh66-player-record div{padding:12px 5px}.kh64-integrated .kh66-player-record strong{font-size:23px}.kh64-integrated .kh66-player-record span{font-size:12px}.kh64-integrated .kh66-panel{padding:16px}.kh64-integrated .kh66-overview-stats{grid-template-columns:1fr 1fr}.bb26758-result.kh66-result .bb26758-result-nav{grid-template-columns:1fr 1fr}.khaga-61-public .kh57-actions{grid-template-columns:1fr}}
/* Admin-controlled artwork crops and text offsets on the reusable result composition. */
.kh64-card.kh65-rich-card{background-position:var(--kh66-bg-x,50%) var(--kh66-bg-y,50%)!important}
.kh64-card.kh65-rich-card .kh64-card-title{left:calc(var(--kh66-title-x,50%) - 45%);font-size:calc(clamp(24px,3.4vw,38px)*var(--kh66-font-scale,1))}
.kh64-card.kh65-rich-card .kh64-card-score{left:calc(var(--kh66-score-x,50%) - 45%);font-size:calc(clamp(72px,8.9vw,130px)*var(--kh66-font-scale,1))}
.kh64-card.kh65-rich-card .kh64-card-counts{left:calc(var(--kh66-stats-x,50%) - 44%)}
.kh64-card.kh65-rich-card .kh64-card-message{left:calc(var(--kh66-message-x,50%) - 45%);font-size:calc(clamp(17px,2vw,24px)*var(--kh66-font-scale,1))}
.kh64-card.kh65-rich-card .kh65-score-caption{left:calc(var(--kh66-score-x,50%) - 45%)}
.kh64-integrated .bb2360-front .hero.kh66-home-hero{min-height:285px;margin-bottom:17px!important;display:flex;align-items:center;isolation:isolate;position:relative;padding:clamp(24px,4vw,48px)!important;border-radius:27px!important;box-shadow:none!important;border:1px solid #bedfec!important;background:linear-gradient(115deg,#e8f9fd,#f9fcff)!important}
.kh64-integrated .bb2360-front .hero.kh66-has-banner{background-image:linear-gradient(90deg,rgba(10,42,65,.88) 0%,rgba(12,59,79,.58) 48%,rgba(8,47,69,.03) 100%),var(--kh66-banner)!important;background-position:center!important;background-size:cover!important}
.kh64-integrated .bb2360-front .hero.kh66-home-hero:after{display:none!important}
.kh64-integrated .bb2360-front .kh66-home-copy{z-index:2;max-width:650px}
.kh64-integrated .bb2360-front .hero.kh66-home-hero h1{font-size:clamp(38px,5vw,60px)!important;line-height:1.15;margin:0 0 9px;color:#102846!important}
.kh64-integrated .bb2360-front .hero.kh66-home-hero h1 span{color:#e53b2e}
.kh64-integrated .bb2360-front .hero.kh66-home-hero p{font-size:clamp(17px,1.8vw,21px)!important;line-height:1.55;max-width:620px;color:#426379!important;font-weight:800}
.kh64-integrated .bb2360-front .hero.kh66-has-banner h1 span,.kh64-integrated .bb2360-front .hero.kh66-has-banner p{color:#fff!important;text-shadow:0 3px 12px #06243899}
.kh64-integrated .kh66-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.kh64-integrated .kh66-hero-actions a{display:inline-flex;align-items:center;justify-content:center;padding:13px 18px;min-height:49px;border-radius:12px;font-size:17px;text-decoration:none;font-weight:950;color:#fff;background:#e53b2e;border:1px solid #e53b2e;box-shadow:0 8px 17px #e53b2e25}
.kh64-integrated .kh66-hero-actions a+ a{background:#fff;color:#102846;border:1px solid #c4dfeb;box-shadow:none}
.kh64-integrated .bb2360-front .card{min-height:0;box-shadow:none!important;border:1px solid #d4e6ee;border-radius:19px!important}
.kh64-integrated .bb2360-front .card .thumb{height:194px!important;background:#e8f9fd}
.kh64-integrated .bb2360-front .card h3{font-size:clamp(22px,2.3vw,27px)!important}
.kh64-integrated .bb2360-front .card .chip{font-size:12px!important}
.kh64-integrated .bb2360-front .filters{box-shadow:none!important}
.kh64-admin-preview .kh64-card{max-width:430px;width:100%!important;aspect-ratio:1/1}
.kh64-layout-controls label{font-size:15px;font-weight:850}.kh64-layout-controls input[type=number]{min-height:38px;border:1px solid #d0e2ea;border-radius:8px;padding:7px}
@media(max-width:720px){.kh64-integrated .bb2360-front .hero.kh66-home-hero{min-height:240px}.kh64-integrated .kh66-hero-actions a{font-size:15px;padding:11px 13px}}
.kh64-integrated .kh66-ranking-section{border-radius:23px!important}
.kh64-integrated .kh66-ranking-list{display:grid;gap:9px;margin-top:16px}
.kh64-integrated .kh66-ranking-row{display:flex;gap:17px;align-items:center;padding:14px 18px;min-height:64px;border-radius:14px;border:1px solid #dbe8ef;background:#f7fbfd}
.kh64-integrated .kh66-ranking-row:first-child{background:#fef9ed;border-color:#f1e3bd}
.kh64-integrated .kh66-rank{font-size:24px;color:#102846;width:53px;text-align:center;flex-shrink:0;font-weight:950}
.kh64-integrated .kh66-rank-player{font-size:17px;font-weight:900;flex:1;min-width:0;overflow-wrap:anywhere;color:#102846}
.kh64-integrated .kh66-rank-meta{color:#547287;font-size:15px;font-weight:700}
.kh64-integrated .kh66-ranking-row>strong{font-size:22px;font-weight:950;color:#0a718d;min-width:55px;text-align:right}
.kh64-integrated .kh66-home-leaderboard{margin-bottom:21px;display:grid;grid-template-columns:minmax(170px,1fr) minmax(280px,2.4fr) auto;gap:14px;align-items:center;border-radius:19px;border:1px solid #d1e6ed;background:#fff;padding:19px 22px}
.kh64-integrated .kh66-home-leaderboard h2{font-size:25px;font-weight:1000;margin:0 0 4px;color:#102846}
.kh64-integrated .kh66-home-leaderboard p{font-size:15px;color:#587487;margin:0}
.kh64-integrated .kh66-home-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.kh64-integrated .kh66-home-top>div{display:grid;gap:3px;padding:11px 9px;text-align:center;border-radius:12px;background:#ecf8fc;min-width:0}
.kh64-integrated .kh66-home-top b{font-size:24px}.kh64-integrated .kh66-home-top strong{font-size:14px;color:#102846;overflow-wrap:anywhere}.kh64-integrated .kh66-home-top small{font-size:13px;color:#456b7e}
.kh64-integrated .kh66-home-leaderboard>a{color:#075c78;font-size:16px;text-decoration:none;font-weight:950}
@media(max-width:1000px){.kh64-integrated .kh66-home-leaderboard{grid-template-columns:1fr}.kh64-integrated .kh66-home-leaderboard h2{font-size:23px}}
@media(max-width:600px){.kh64-integrated .kh66-ranking-row{gap:8px;padding:11px}.kh64-integrated .kh66-rank{width:35px;font-size:19px}.kh64-integrated .kh66-rank-player{font-size:15px}.kh64-integrated .kh66-rank-meta{font-size:12px}.kh64-integrated .kh66-ranking-row>strong{font-size:19px;min-width:45px}.kh64-integrated .kh66-home-leaderboard{padding:16px}.kh64-integrated .kh66-home-top strong{font-size:12px}}
