/* CW shared tree UI (24 Nov 2026): branch bar + batches sidebar. Used by exam pages, batch pages, /batches. */
.cwt-top{background:linear-gradient(135deg,#0B1F4B 0%,#132E66 60%,#1B3D80 100%);border-radius:20px;color:#fff;padding:clamp(14px,2.4vw,24px)}
.cwt-slim{padding:12px clamp(12px,2vw,18px);border-radius:16px;margin:14px 0 0}
.cwt-slh{font:700 15px/1.2 Oswald,sans-serif;text-transform:uppercase;letter-spacing:.02em;color:#fff;margin:0 0 8px}
.cwt-br{display:grid;gap:8px}.cwt-row{display:flex;align-items:center;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.cwt-row::-webkit-scrollbar{display:none}
.cwt-row>b{flex:0 0 auto;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#FCD34D;min-width:64px}
.cwt-ch{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:999px;border:1.5px solid rgba(255,255,255,.28);background:rgba(255,255,255,.08);color:#fff;font-weight:700;font-size:13.5px;cursor:pointer}
.cwt-ch small{background:rgba(255,255,255,.18);border-radius:999px;padding:1px 7px;font-size:11.5px}.cwt-ch.on{background:#FCD34D;border-color:#FCD34D;color:#0B1F4B}.cwt-ch.on small{background:rgba(11,31,75,.12)}
.cwt-row[hidden],.cwt-ch[hidden]{display:none}
.cwt-lay{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:start;margin-top:16px}
.cwt-side{position:sticky;top:84px;display:grid;gap:12px;grid-column:2;grid-row:1;min-width:0}
.cwt-main{grid-column:1;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0}
.cwt-box{background:#fff;border:1px solid #E2E8F0;border-radius:18px;padding:14px;box-shadow:0 6px 18px rgba(11,31,75,.06)}
.cwt-box h2{font:700 18px/1.2 Oswald,sans-serif;text-transform:uppercase;color:#0F172A;margin:0;display:flex;align-items:center;gap:8px}.cwt-box h2 em{font-style:normal;background:#DC2626;color:#fff;font:800 11px Inter,sans-serif;padding:2px 7px;border-radius:6px}
.cwt-tools{display:flex;gap:6px;margin:10px 0}.cwt-tools input,.cwt-tools select{height:38px;border:1px solid #E2E8F0;border-radius:10px;padding:0 10px;font-size:13px;min-width:0}.cwt-tools input{flex:1}
.cwt-path{font-size:12.5px;color:#475569;margin-top:4px}.cwt-path a{color:#C2410C!important;font-weight:800}
.cwt-bl{display:grid;gap:10px;max-height:calc(100vh - 300px);min-height:200px;overflow:auto;padding-right:2px}
.cwt-b{display:grid;grid-template-columns:104px minmax(0,1fr);gap:10px;align-items:start;padding-bottom:10px;border-bottom:1px solid #E2E8F0}.cwt-b:last-child{border-bottom:0;padding-bottom:0}
.cwt-b img{width:104px;height:59px;object-fit:cover;border-radius:8px;display:block}.cwt-b h3{font:700 13.5px/1.25 Inter,sans-serif;color:#0F172A;margin:0 0 4px}
.cwt-b .pr{font-size:13px}.cwt-b .pr b{font:700 17px Oswald,sans-serif;color:#0F172A}.cwt-b .pr s{color:#94A3B8;margin-left:4px}.cwt-b .pr i{font-style:normal;color:#475569;margin-left:6px}
.cwt-b .ac{display:flex;gap:6px;margin-top:6px}.cwt-b .ac a{flex:1;display:flex;align-items:center;justify-content:center;min-height:36px;border-radius:9px;font-weight:800;font-size:12.5px}
.cwt-b .ac .d{border:1.5px solid #4338CA;color:#4338CA!important}.cwt-b .ac .e{background:linear-gradient(180deg,#F97316,#DC2626);color:#fff!important}
.cwt-empty{display:none;font-size:13.5px;color:#475569}
.cwt-ox a{display:flex;justify-content:space-between;gap:8px;padding:9px 0;border-bottom:1px dashed #E2E8F0;font-weight:700;font-size:13.5px;color:#0B1F4B!important}.cwt-ox a:last-child{border-bottom:0}.cwt-ox small{color:#475569;font-weight:600;white-space:nowrap}
.cwt-team{display:flex;gap:8px;margin-top:8px}.cwt-team a{flex:1;display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:12px;font-weight:800;color:#fff!important}.cwt-team .w{background:#15803D}.cwt-team .c{background:#DC2626}
@media (max-width:991px){.cwt-lay{grid-template-columns:1fr}.cwt-side{position:static;grid-column:auto;grid-row:auto}.cwt-main{grid-column:auto;grid-row:auto}.cwt-bl{max-height:none;overflow:visible;min-height:0}}
.cwt-first{margin:0 0 14px}
.cwx-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:12px 0 0;padding:6px;background:#fff;border:1px solid #E2E8F0;border-radius:14px;box-shadow:0 4px 14px rgba(11,31,75,.05)}.cwx-tabs::-webkit-scrollbar{display:none}
.cwx-tabs a{flex:0 0 auto;min-height:40px;display:inline-flex;align-items:center;gap:4px;padding:0 14px;border-radius:10px;font:700 13.5px Inter,sans-serif;color:#0B1F4B!important;text-decoration:none;white-space:nowrap}
.cwx-tabs a:hover{background:#FFF7E0}.cwx-tabs a.on{background:#0B1F4B;color:#fff!important}.cwx-tabs small{color:#B45309;font-weight:700}
@media (max-width:640px){.cwt-slim{padding:8px 10px!important;border-radius:12px;margin:8px 0 0}.cwt-first{margin:0 0 8px!important}.cwt-slh{font-size:12px!important;margin:0 0 5px!important;letter-spacing:.03em}.cwt-br{gap:5px!important}.cwt-row{gap:5px!important;padding-bottom:0!important}.cwt-row>b{font-size:9.5px!important;min-width:44px!important;letter-spacing:.03em!important}.cwt-ch{min-height:30px!important;padding:0 10px!important;font-size:12.5px!important;gap:4px!important;border-width:1px!important}.cwt-ch small{font-size:10px!important;padding:0 5px!important}}
/* compact v5 (25 Nov 2026): desktop = one line; phone = no title, 28px chips */
@media (min-width:768px){.cwt-slim{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;padding:8px 14px!important;border-radius:14px}.cwt-slim .cwt-slh{margin:0!important;font-size:13px!important;white-space:nowrap}.cwt-slim .cwt-br{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px}.cwt-slim .cwt-row{flex-wrap:nowrap;overflow:visible;padding:0;gap:6px}.cwt-slim .cwt-row>b{min-width:0;font-size:10px;letter-spacing:.04em}.cwt-slim .cwt-ch{min-height:32px;padding:0 12px;font-size:13px;gap:5px}.cwt-slim .cwt-ch small{font-size:10.5px;padding:0 6px}}
@media (max-width:767px){.cwt-slim .cwt-slh{display:none!important}.cwt-slim{padding:7px 9px!important}.cwt-slim .cwt-br{gap:4px!important}.cwt-slim .cwt-ch{min-height:28px!important;padding:0 9px!important;font-size:12px!important}.cwt-slim .cwt-row>b{min-width:40px!important;font-size:9px!important}}
@media (max-width:420px){#cwb-list .cwb-tools{width:100%;display:flex;gap:6px}#cwb-list .cwb-tools input{flex:1 1 auto;min-width:0}#cwb-list .cwb-tools select{flex:0 1 auto;min-width:0;max-width:46%}}
/* v7 (25 Nov 2026, Sir): less padding inside chips, readable text */
.cwt-ch{padding:0 9px!important;gap:5px!important}.cwt-ch small{padding:0 5px!important}
@media (max-width:767px){.cwt-slim .cwt-ch,.cwt-ch{min-height:30px!important;padding:0 8px!important;font-size:13px!important;gap:4px!important}.cwt-slim .cwt-row>b,.cwt-row>b{min-width:0!important;font-size:10px!important;padding-right:2px}.cwt-ch small{font-size:10.5px!important;padding:0 4px!important}
.cwx-h{padding:12px 12px!important}.cwx-h .cwt-bc{font-size:12px;margin-bottom:4px}.cwx-h h1{font-size:23px!important;margin:2px 0 6px!important}.cwx-by{gap:5px!important;font-size:12px!important}.cwx-by span{padding:2px 8px!important}}
/* branch-bar context line (25 Nov 2026) */
.cwt-ctx{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:6px;font-size:12.5px;line-height:1.35;color:#E2E8F0;flex-basis:100%}.cwt-ctx[hidden]{display:none!important}.cwt-ctx b{color:#FCD34D;font-weight:700}
.cwt-ctx a{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:999px;background:#FCD34D;color:#0B1F4B!important;font-weight:800;font-size:12.5px;text-decoration:none}
@media (min-width:768px){.cwt-slim .cwt-ctx{margin-top:0}}

/* exam resource strip (25 Nov 2026) */
.cwt-res{display:flex;align-items:center;gap:8px;flex-basis:100%;width:100%;margin-top:8px;padding:5px;background:#fff;border-radius:14px;min-width:0;box-sizing:border-box}
.cwt-res[hidden]{display:none!important}
.cwt-rh{flex:0 0 auto;padding-left:7px;font-weight:800;font-size:12.5px;line-height:1.2;color:#B45309;white-space:nowrap}
.cwt-rl{display:flex;gap:3px;flex:1 1 auto;min-width:0;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.cwt-rl::-webkit-scrollbar{display:none}
.cwt-rp{flex:0 0 auto;display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:10px;font-weight:700;font-size:13px;line-height:1;color:#0B1F4B!important;text-decoration:none!important;white-space:nowrap}
.cwt-rp:hover{background:#EEF2FF}
.cwt-rp.on{background:#0B1F4B;color:#fff!important}
.cwt-go{flex:0 0 auto;display:inline-flex;align-items:center;min-height:34px;padding:0 16px;border-radius:999px;background:#FCD34D;color:#0B1F4B!important;font-weight:800;font-size:13px;line-height:1;text-decoration:none!important;white-space:nowrap}
.cwt-go:hover{background:#FBBF24}
@media(max-width:575px){.cwt-res{flex-wrap:wrap;row-gap:4px}.cwt-rh{flex:1 1 auto}.cwt-rl{order:3;flex-basis:100%}}
