:root{--bg:#0d0813;--panel:#171020;--panel2:#21162d;--line:#382448;--text:#f7f1fb;--muted:#b8a8c5;--brand:#a76bea;--brand2:#e3b35b;--good:#47c98a;--warn:#f2b84b;--bad:#ef6f74;--shadow:0 22px 65px rgba(0,0,0,.35);font-family:"SolaimanLipi","Noto Sans Bengali","Hind Siliguri","Segoe UI",sans-serif}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body{min-height:100vh}button,input,textarea{font:inherit}button{cursor:pointer}.auth-gate{position:fixed;inset:0;z-index:100;background:radial-gradient(circle at 20% 20%,#3c1f50 0,#120a1a 42%,#08050c 100%);display:grid;place-items:center;padding:24px}.auth-gate[hidden]{display:none!important}.login-window{width:min(1120px,100%);min-height:650px;background:#110b18;border:1px solid #4e2d66;border-radius:28px;overflow:hidden;box-shadow:var(--shadow);display:grid;grid-template-columns:1.08fr .92fr}.login-visual{position:relative;padding:56px;overflow:hidden;background:linear-gradient(150deg,#2d1640,#130b1c 65%)}.orb{position:absolute;border-radius:50%;filter:blur(4px);opacity:.4}.orb-a{width:340px;height:340px;background:#9b59d0;right:-120px;top:-110px}.orb-b{width:260px;height:260px;background:#d9983d;left:-100px;bottom:-100px}.visual-content{position:relative;z-index:2}.brand-mark{width:70px;height:70px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(145deg,var(--brand),#6d3da7);font:800 34px/1 Georgia;color:white;box-shadow:0 14px 30px #0006}.brand-mark.small{width:45px;height:45px;border-radius:14px;font-size:23px}.eyebrow{letter-spacing:.2em;color:#d8bfeb;margin:24px 0 8px;font-weight:700}.login-visual h1{font-size:58px;line-height:1;margin:0 0 22px}.login-visual h1 span{color:var(--brand2)}.hero-copy{font-size:20px;line-height:1.65;color:#dbcfe3;max-width:620px}.mini-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:32px}.mini-grid div{border:1px solid #5b3970;background:#ffffff0b;border-radius:17px;padding:16px}.mini-grid b{display:block;font-size:27px;color:#fff}.mini-grid span{color:#c7b4d4}.visual-note{display:flex;gap:12px;align-items:flex-start;margin-top:35px;padding:18px;border-radius:18px;background:#fff0;border:1px solid #ffffff1f}.visual-note span{color:var(--brand2)}.visual-note p{margin:0;color:#cbbbd7;line-height:1.55}.login-pane{background:#f8f5fb;color:#21192a;padding:38px;display:flex;flex-direction:column;justify-content:center}.download-banner{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;border:1px solid #decbea;background:#fff;border-radius:17px;padding:13px 15px;text-align:left;color:#2b1737;box-shadow:0 10px 26px #6b43851b}.download-banner:hover{border-color:#b784d6}.download-banner:disabled{opacity:.65;cursor:wait}.download-banner span:nth-child(2){display:flex;flex-direction:column}.download-banner small{color:#7f6d8a;margin-top:2px}.download-badge{width:38px;height:38px;border-radius:12px;display:grid!important;place-items:center;background:#8d55c2;color:white;font-size:22px}.auth-tab-card{margin-top:22px;border:1px solid #dfd2e7;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 10px 28px #6b438512}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;margin:0;border-bottom:1px solid #ddd0e5;background:#f4eef8}.auth-tabs button{border:0;background:transparent;padding:13px;color:#7a687f;font-weight:800}.auth-tabs button.active{color:#6f389b;border-bottom:3px solid #7e45af;background:#fff}.auth-tab-panel{padding:22px 22px 10px}.auth-tab-panel[hidden]{display:none!important}.heading h2{margin:0 0 6px;font-size:32px}.heading p{color:#776a7d;line-height:1.5}.auth-form{display:grid;gap:15px;margin-top:18px}.auth-form label{display:grid;gap:7px;font-weight:700;color:#403547}.auth-form input,.auth-form textarea{width:100%;border:1px solid #d9cce1;background:#fff;color:#1f1625;border-radius:13px;padding:13px 14px;outline:none}.auth-form input:focus,.ask-box textarea:focus{border-color:#8f57bd;box-shadow:0 0 0 3px #8f57bd20}.password-wrap{position:relative}.password-wrap input{padding-right:72px}.show-pass{position:absolute;right:7px;top:7px;border:0;border-radius:9px;padding:7px 10px;background:#eee6f3;color:#5c386f}.primary,.soft-btn,.logout-btn,.icon-btn{border:0;border-radius:12px;padding:11px 15px;font-weight:800}.primary{background:linear-gradient(135deg,#8d4fc0,#673094);color:white;box-shadow:0 8px 22px #7c43a83a}.wide{width:100%}.soft-btn{background:#2a1d35;color:#eadff2;border:1px solid #4a3459}.form-message{min-height:22px;color:#b72c35;font-size:14px}.device-box{margin-top:20px;display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;padding:11px;border-radius:12px;background:#eee7f2;font-size:12px}.device-box code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.device-box button{border:0;background:#ddd0e6;border-radius:8px;padding:7px}.small-note{font-size:12px;color:#7a687f;line-height:1.5}.app-shell{min-height:100vh;display:grid;grid-template-columns:268px 1fr}.sidebar{position:sticky;top:0;height:100vh;background:#100a16;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:20}.side-brand{display:flex;align-items:center;gap:12px;padding:20px;border-bottom:1px solid var(--line)}.side-brand b{display:block;font-size:18px}.side-brand small{display:block;color:var(--muted)}#nav{padding:12px;display:grid;gap:4px;overflow:auto}.nav-item{border:0;background:transparent;color:#c9b9d4;border-radius:12px;padding:11px 12px;text-align:left;display:flex;gap:12px;align-items:center}.nav-item span{width:22px;text-align:center}.nav-item:hover{background:#21152d}.nav-item.active{background:linear-gradient(90deg,#6f3a96,#3c2452);color:white}.nav-item.ai{border:1px solid #694387}.side-status{margin-top:auto;padding:15px;border-top:1px solid var(--line);display:flex;gap:10px;align-items:center}.side-status b,.side-status small{display:block}.side-status small{color:var(--muted);margin-top:3px;max-width:190px;overflow:hidden;text-overflow:ellipsis}.status-dot{width:10px;height:10px;border-radius:50%;background:var(--bad);box-shadow:0 0 0 4px #ef6f7418}.status-dot.online{background:var(--good);box-shadow:0 0 0 4px #47c98a18}.main{min-width:0}.topbar{height:78px;position:sticky;top:0;z-index:15;background:#0d0813e8;backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px}.top-left,.top-actions,.profile{display:flex;align-items:center;gap:12px}.topbar h2{font-size:19px;margin:0}.topbar p{font-size:12px;color:var(--muted);margin:3px 0 0}.icon-btn{background:#24182f;color:#e7dcef;border:1px solid #3b2948}.profile{padding:7px 10px;border:1px solid var(--line);border-radius:12px}.avatar{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:#6d3996;font-weight:800}.logout-btn{background:#3b1d2a;color:#ffc8d2}.page{display:none;padding:26px}.page.active{display:block}.welcome-card{min-height:280px;border:1px solid #4f3261;background:radial-gradient(circle at 85% 20%,#6c368f55 0,transparent 35%),linear-gradient(135deg,#21122f,#15101c);border-radius:24px;padding:38px;display:flex;align-items:center;justify-content:space-between;overflow:hidden}.welcome-card h1{font-size:43px;margin:12px 0}.welcome-card p{max-width:760px;line-height:1.7;color:#c7b7d1}.pill,.badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#332140;border:1px solid #553a65;color:#decde8;font-size:12px;font-weight:800}.badge.warn{color:#ffd98d;background:#4a3516;border-color:#795d26}.halo{font-size:120px;color:#d59e4f;text-shadow:0 0 50px #9d62cc}.stats-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-top:16px}.stat{background:var(--panel);border:1px solid var(--line);border-radius:17px;padding:18px}.stat span,.stat small{display:block;color:var(--muted)}.stat b{display:block;font-size:29px;margin:7px 0;color:#fff}.grid{display:grid;gap:16px;margin-top:16px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.panel{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:20px}.panel p,.muted{color:var(--muted);line-height:1.65}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-head h3{margin:0}.page-head{margin-bottom:20px}.page-head h3{font-size:28px;margin:0 0 7px}.page-head p{color:var(--muted);margin:0}.ai-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px}.ai-panel{min-height:calc(100vh - 130px);display:flex;flex-direction:column}.counter{width:68px;height:68px;border-radius:50%;border:2px solid #754c8d;display:grid;place-items:center;text-align:center;background:#24162f}.counter span{font-size:10px;color:var(--muted);display:block}.counter b{font-size:21px}.chat{flex:1;min-height:370px;max-height:58vh;overflow:auto;padding:18px 2px;display:flex;flex-direction:column;gap:13px}.bubble{max-width:82%;padding:14px 16px;border-radius:17px;line-height:1.65}.bubble p{margin:5px 0 0;color:inherit}.bubble.bot{background:#24172f;border:1px solid #3f2c4b;align-self:flex-start}.bubble.user{background:#71419a;color:#fff;align-self:flex-end}.bubble .sources{margin-top:10px;padding-top:10px;border-top:1px solid #ffffff20;font-size:12px;color:#cbbbd5}.speak-btn{margin-top:9px;border:1px solid #5c3b6d;background:#120c18;color:#ddcce8;border-radius:9px;padding:7px 10px}.ask-box{margin-top:auto;border-top:1px solid var(--line);padding-top:15px}.ask-box textarea{width:100%;resize:vertical;border:1px solid #493356;background:#0f0a14;color:#fff;border-radius:13px;padding:13px;outline:none}.ask-actions{display:flex;justify-content:space-between;gap:10px;margin-top:10px}.source-panel ol{padding-left:21px;color:var(--muted);line-height:1.7}.code-box{white-space:pre-wrap;background:#0e0913;border:1px solid #382649;border-radius:12px;padding:14px;color:#cdbddd;font-family:ui-monospace,Consolas,monospace;font-size:12px;line-height:1.6}.feature{text-align:center}.feature>span{display:grid;place-items:center;width:55px;height:55px;margin:0 auto 14px;border-radius:16px;background:#2f1e3d;color:#d8a853;font-size:25px}.term-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.term{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px;color:#e9ddf0}.term b{color:#d8a853;margin-right:6px}.section-title{margin:30px 0 14px}.library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.library-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:15px}.library-card small{display:block;color:var(--muted);margin-top:6px}.empty-state{border:1px dashed #654579;border-radius:18px;padding:50px;text-align:center;color:var(--muted)}.empty-state b{font-size:26px;color:#e9ddf0}.compact-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:7px}.compact-grid>span{background:var(--panel);border:1px solid var(--line);padding:10px;border-radius:9px;text-align:center}.tag-list{display:flex;flex-wrap:wrap;gap:9px}.tag-list span{padding:8px 12px;border:1px solid #513962;background:#25172f;border-radius:999px}.button-row{display:flex;gap:10px;margin-top:14px}.toast{position:fixed;right:20px;bottom:20px;z-index:200;background:#1e1427;border:1px solid #523664;color:white;border-radius:12px;padding:12px 16px;opacity:0;transform:translateY(15px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:none}.scrim{display:none}
@media(max-width:1180px){.stats-grid{grid-template-columns:repeat(3,1fr)}.term-grid{grid-template-columns:repeat(4,1fr)}.compact-grid{grid-template-columns:repeat(8,1fr)}}
@media(max-width:900px){.login-window{grid-template-columns:1fr;max-height:94vh;overflow:auto}.login-visual{padding:32px}.login-visual h1{font-size:44px}.login-pane{padding:28px}.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:-285px;width:268px;transition:.2s}.menu-open .sidebar{left:0}.scrim{position:fixed;inset:0;background:#0009;z-index:18}.menu-open .scrim{display:block}.topbar{padding:0 14px}.profile{display:none}.page{padding:15px}.ai-layout{grid-template-columns:1fr}.source-panel{order:2}.grid.two,.grid.three{grid-template-columns:1fr}.term-grid{grid-template-columns:repeat(3,1fr)}.library-grid{grid-template-columns:repeat(2,1fr)}.compact-grid{grid-template-columns:repeat(6,1fr)}.welcome-card{padding:25px}.halo{font-size:72px}.top-actions .soft-btn{display:none}}
@media(max-width:600px){.auth-gate{padding:0}.login-window{border-radius:0;min-height:100vh}.login-visual{padding:26px 22px}.login-visual h1{font-size:38px}.hero-copy{font-size:16px}.mini-grid{grid-template-columns:repeat(2,1fr)}.login-pane{padding:24px 20px}.stats-grid{grid-template-columns:repeat(2,1fr)}.term-grid{grid-template-columns:repeat(2,1fr)}.library-grid{grid-template-columns:1fr}.compact-grid{grid-template-columns:repeat(4,1fr)}.welcome-card{display:block}.halo{display:none}.welcome-card h1{font-size:30px}.page-head h3{font-size:24px}.top-actions{gap:6px}.logout-btn{padding:9px}.bubble{max-width:94%}}

/* === Compact desktop layout (2026-09-18) === */
[hidden]{display:none!important}
@media (min-width:901px){
  .auth-gate{padding:18px}
  .login-window{
    width:min(1060px,calc(100vw - 48px));
    height:min(720px,calc(100vh - 36px));
    min-height:0;
    grid-template-columns:1.08fr .92fr;
    border-radius:22px;
  }
  .login-visual{padding:38px 42px}
  .brand-mark{width:58px;height:58px;border-radius:18px;font-size:29px}
  .eyebrow{margin:18px 0 6px;font-size:13px}
  .login-visual h1{font-size:48px;margin:0 0 14px}
  .hero-copy{font-size:17px;line-height:1.55}
  .mini-grid{gap:10px;margin-top:22px}
  .mini-grid div{border-radius:14px;padding:12px}
  .mini-grid b{font-size:23px}
  .mini-grid span{font-size:13px}
  .visual-note{margin-top:24px;padding:13px 15px;border-radius:14px;font-size:14px}

  .login-pane{padding:26px 30px;justify-content:center;overflow:auto}
  .download-banner{border-radius:14px;padding:10px 12px;gap:10px}
  .download-badge{width:34px;height:34px;border-radius:10px;font-size:19px}
  .download-banner b{font-size:14px}
  .download-banner small{font-size:11px}
  .auth-tab-card{margin-top:14px}
  .auth-tabs{margin:0}
  .auth-tab-panel{padding:16px 16px 6px}
  .auth-tabs button{padding:9px;font-size:14px}
  .heading h2{font-size:27px}
  .heading p{font-size:13px;margin:5px 0 0;line-height:1.45}
  .auth-form{gap:10px;margin-top:13px}
  .auth-form label{gap:5px;font-size:14px}
  .auth-form input,.auth-form textarea{border-radius:11px;padding:10px 12px;min-height:42px}
  .show-pass{top:5px;right:5px;padding:6px 9px;font-size:12px}
  .primary,.soft-btn,.logout-btn,.icon-btn{border-radius:10px;padding:9px 13px}
  .form-message{min-height:17px;font-size:12px}
  .device-box{margin-top:13px;padding:8px 10px;font-size:11px}
  .small-note{font-size:10.5px;margin:8px 0 0}

  .app-shell{grid-template-columns:238px 1fr}
  .side-brand{padding:14px 16px}
  .brand-mark.small{width:39px;height:39px;border-radius:12px;font-size:20px}
  .side-brand b{font-size:16px}
  #nav{padding:9px;gap:2px}
  .nav-item{border-radius:10px;padding:8px 10px;font-size:13px;gap:9px}
  .side-status{padding:11px 13px;font-size:12px}
  .topbar{height:64px;padding:0 18px}
  .topbar h2{font-size:17px}
  .page{padding:18px}
  .welcome-card{min-height:220px;border-radius:19px;padding:28px}
  .welcome-card h1{font-size:35px;margin:9px 0}
  .welcome-card p{font-size:14px;line-height:1.55}
  .halo{font-size:92px}
  .stats-grid{gap:10px;margin-top:12px}
  .stat{border-radius:14px;padding:13px}
  .stat b{font-size:24px;margin:4px 0}
  .stat span,.stat small{font-size:12px}
  .grid{gap:12px;margin-top:12px}
  .panel{border-radius:15px;padding:15px}
  .page-head{margin-bottom:14px}
  .page-head h3{font-size:24px}
  .ai-layout{grid-template-columns:minmax(0,1fr) 270px;gap:12px}
  .ai-panel{min-height:calc(100vh - 100px)}
  .counter{width:58px;height:58px}
  .chat{min-height:300px;padding:12px 2px;gap:10px}
  .bubble{padding:11px 13px;border-radius:14px;font-size:14px;line-height:1.55}
  .ask-box{padding-top:11px}
  .ask-box textarea{padding:10px 11px}
  .term-grid{gap:8px}
  .term{padding:9px;font-size:13px}
  .library-grid{gap:9px}
  .library-card{padding:11px;font-size:13px}
}

/* === BAHAR ENTERPRISE REFERENCE LAYOUT MATCH === */
[hidden]{display:none!important}
@media (min-width:851px){
  .auth-gate{padding:10px;overflow:hidden}
  .login-window{
    width:min(920px,calc(100vw - 20px));
    height:min(650px,calc(100vh - 20px));
    min-height:0;
    display:grid;
    grid-template-columns:44.5% 55.5%;
    border-radius:18px;
    overflow:hidden;
  }
  .login-visual{padding:30px 28px 24px}
  .brand-mark{width:60px;height:60px;border-radius:17px;font-size:30px}
  .eyebrow{margin:14px 0 6px;font-size:12px}
  .login-visual h1{font-size:42px;line-height:1.02;margin:0 0 12px}
  .hero-copy{font-size:14px;line-height:1.55;margin:0}
  .mini-grid{gap:8px;margin-top:18px}
  .mini-grid div{border-radius:12px;padding:10px}
  .mini-grid b{font-size:22px}
  .mini-grid span{font-size:11px}
  .visual-note{margin-top:18px;padding:12px;border-radius:12px;font-size:12px}

  .login-pane{padding:22px 26px 16px;justify-content:flex-start;overflow:auto}
  .download-banner{border-radius:10px;padding:8px 10px;gap:8px;min-height:46px}
  .download-badge{width:30px;height:30px;border-radius:8px;font-size:18px}
  .download-banner b{font-size:12px}
  .download-banner small{font-size:9px}
  .auth-tab-card{margin-top:12px;border-radius:12px}
  .auth-tabs button{padding:8px;font-size:13px}
  .auth-tab-panel{padding:14px 16px 8px}
  .heading h2{font-size:24px;margin-bottom:4px}
  .heading p{font-size:11px;margin:0 0 8px;line-height:1.4}
  .auth-form{gap:8px;margin-top:10px}
  .auth-form label{gap:5px;font-size:12px}
  .auth-form input{padding:9px 10px;min-height:39px;border-radius:9px}
  .show-pass{top:4px;right:4px;padding:6px 8px;font-size:11px}
  .primary,.soft-btn,.logout-btn,.icon-btn{border-radius:9px;padding:9px 12px}
  .form-message{min-height:14px;font-size:10px}
  .device-box{margin-top:9px;padding:8px 9px;font-size:9px}
  .device-box button{padding:6px;font-size:10px}
  .small-note{font-size:9px;margin:7px 0 0;line-height:1.4}

  .app-shell{grid-template-columns:238px 1fr}
  .topbar{height:64px}
  .page{padding:18px}
}
@media (max-width:850px){
  .auth-gate{padding:12px;overflow:auto}
  .login-window{width:100%;height:auto;min-height:calc(100vh - 24px);grid-template-columns:1fr;border-radius:16px}
  .login-visual{display:none}
  .login-pane{padding:24px 18px;justify-content:center}
}


/* Surah 2 searchable text library */
.sura-grid .sura-card{min-width:0;border:1px solid var(--line);background:var(--panel);color:var(--text);padding:10px 7px;border-radius:9px;text-align:center;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center}
.sura-grid .sura-card:hover{border-color:#7a4b96;background:#24172f;transform:translateY(-1px)}
.sura-grid .sura-card.loaded{border-color:#9a62bd;background:linear-gradient(180deg,#2a1738,#1b1125);box-shadow:inset 0 0 0 1px #9a62bd2c}
.sura-grid .sura-card.loaded span{font-weight:800;color:#fff}
.sura-grid .sura-card small{font-size:9px;color:#d8b6ec;line-height:1.2}
.surah-detail[hidden],#tafsirIndex[hidden],.surah-full-panel[hidden]{display:none!important}
.surah-detail-head{display:flex;gap:15px;align-items:flex-start;margin-bottom:16px}.surah-detail-head h3{margin:7px 0 4px;font-size:27px}.surah-detail-head p{margin:0}
.surah-search-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:16px}.surah-chat-panel{min-height:calc(100vh - 180px);display:flex;flex-direction:column}.surah-chat{min-height:420px;max-height:60vh}.surah-chat .bubble{max-width:92%}.surah-result-bubble{width:min(920px,96%)}
.search-hits{display:grid;gap:10px;margin-top:12px}.search-hit{background:#0f0a14;border:1px solid #493356;border-radius:13px;padding:12px 13px}.search-hit p{font-size:14px;line-height:1.72;color:#e6dce9;margin:9px 0 0;max-height:240px;overflow:auto}.search-hit-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.search-hit-head b{font-size:13px;color:#e5bd68}.jump-block{border:1px solid #5b3a6d;background:#21142b;color:#e6d6ef;border-radius:8px;padding:6px 8px;font-size:11px;white-space:nowrap}.jump-block:hover{border-color:#9a62bd}
.surah-ask-box textarea{min-height:60px}.surah-side-panel{height:max-content;position:sticky;top:94px}.vertical-buttons{flex-direction:column}.vertical-buttons button{width:100%}
.surah-full-panel{margin-top:16px}.surah-full-text{margin-top:14px;max-height:72vh;overflow:auto;border:1px solid var(--line);border-radius:14px;background:#0e0913;padding:12px}.surah-text-block{padding:13px 14px;border-bottom:1px solid #2e2038;line-height:1.78;color:#eee5f2;scroll-margin-top:120px}.surah-text-block:last-child{border-bottom:0}.surah-text-block small{display:block;color:#a98bb9;font-size:10px;margin-bottom:5px}.surah-text-block.table-block{white-space:normal;font-family:inherit;background:#15101c;border:1px solid #342541;border-radius:10px;margin:7px 0}.surah-text-block.flash{outline:2px solid #d5a852;background:#2a2030;transition:.25s}
@media(max-width:1050px){.surah-search-layout{grid-template-columns:1fr}.surah-side-panel{position:static}.sura-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:700px){.surah-detail-head{flex-direction:column}.surah-detail-head h3{font-size:22px}.sura-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.surah-chat{min-height:330px;max-height:56vh}.surah-chat .bubble{max-width:100%}.search-hit-head{align-items:flex-start;flex-direction:column}.jump-block{align-self:flex-end}.surah-full-text{max-height:68vh;padding:8px}.surah-text-block{padding:11px 9px}}

/* v1.0.6 surah grid cache/style hotfix */
.sura-grid{align-items:stretch}
.sura-grid .sura-card{appearance:none;-webkit-appearance:none;width:100%;min-height:42px}
.sura-grid .sura-card span{background:transparent!important;border:0!important;padding:0!important;border-radius:0!important;color:inherit}
.sura-grid .sura-card small{background:transparent!important;border:0!important;padding:0!important}

/* v1.0.7 — Chapter 26 paragraph-line reader/editor */
.chapter26-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;padding:14px 16px}
.chapter26-bar b{display:block;font-size:13px;color:#e9dff0}.chapter26-bar p{margin:4px 0 0;color:var(--muted);font-size:12px}
.tafsir-detail[hidden],#tafsirIndex[hidden]{display:none!important}
.tafsir-detail-head{display:flex;align-items:flex-start;gap:15px;margin-bottom:14px}
.tafsir-detail-title{min-width:0}.tafsir-detail-title h3{margin:7px 0 4px;font-size:26px;line-height:1.25}.tafsir-detail-title p{margin:0}
.doc-search-panel{position:sticky;top:84px;z-index:8;margin-bottom:12px;padding:12px;background:color-mix(in srgb,var(--panel) 96%,transparent);backdrop-filter:blur(12px)}
.doc-search-form{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:8px;align-items:center}
.doc-search-form input{width:100%;min-width:0;height:44px;border:1px solid var(--line);border-radius:10px;background:#0e0913;color:var(--text);padding:0 14px;font:inherit;outline:none}
.doc-search-form input:focus{border-color:#8d55ad;box-shadow:0 0 0 3px #8d55ad24}
.doc-search-info{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px;color:var(--muted);font-size:12px}
.text-btn{border:0;background:transparent;color:#d1a7e9;padding:4px 0;cursor:pointer;font:inherit;white-space:nowrap}.text-btn:hover{text-decoration:underline}
.doc-paragraph-list{display:grid;gap:7px;padding-bottom:40px}
.doc-block{border:1px solid #2e2038;border-radius:10px;background:#100b15;overflow:hidden;scroll-margin-top:170px;transition:border-color .18s,box-shadow .18s,background .18s}
.doc-block:hover{border-color:#4a3158}.doc-block.expanded{border-color:#71448a;background:#140d1b;box-shadow:0 10px 28px #0000002c}
.doc-block.search-match:not(.expanded){border-color:#4f3d2a}.doc-block.search-focus{outline:2px solid #c89d49;outline-offset:2px}
.doc-line{appearance:none;-webkit-appearance:none;width:100%;height:42px;border:0;background:transparent;color:var(--text);display:grid;grid-template-columns:78px minmax(0,1fr) auto 24px;align-items:center;gap:10px;padding:0 12px;text-align:left;cursor:pointer;font:inherit}
.doc-line:hover{background:#1a1121}.doc-order{font-size:10px;color:#a78ab7;white-space:nowrap}.doc-preview{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:1.2;unicode-bidi:plaintext}
.doc-edited-mark{font-size:9px;color:#aee5bd;border:1px solid #376345;background:#16301e;padding:3px 6px;border-radius:999px;white-space:nowrap}
.doc-chevron{font-size:14px;color:#b799c7;text-align:center}.doc-block.expanded .doc-line{border-bottom:1px solid #2d2036;background:#18101f}
.doc-body{padding:14px 16px 15px}.doc-body[hidden],.doc-editor[hidden]{display:none!important}
.doc-body-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:#987eaa;font-size:10px}.doc-body-meta b{color:#aee5bd;font-weight:700}
.doc-display{font-size:15px;line-height:1.82;color:#eee7f1;unicode-bidi:plaintext}.doc-plain-text{white-space:normal;overflow-wrap:anywhere}.doc-plain-text.align-center{text-align:center}.doc-plain-text.align-right{text-align:right}.doc-plain-text.align-justify{text-align:justify}
.doc-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:14px;padding-top:12px;border-top:1px dashed #35263f}
.doc-editor{margin-top:12px;padding-top:12px;border-top:1px solid #3c2a48}.doc-edit-text{display:block;width:100%;min-height:180px;max-height:52vh;resize:vertical;border:1px solid #51365f;border-radius:10px;background:#0d0812;color:#f3ebf6;padding:12px 13px;font:inherit;font-size:14px;line-height:1.7;outline:none;unicode-bidi:plaintext}.doc-edit-text:focus{border-color:#9a62bd;box-shadow:0 0 0 3px #9a62bd22}
.doc-editor-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:9px}.doc-save-status{min-height:18px;margin-top:7px;text-align:right;font-size:11px;color:var(--muted)}.doc-save-status.saved-server{color:#89d9a1}.doc-save-status.saved-local{color:#e5bd68}
.doc-table-wrap{width:100%;overflow:auto;border:1px solid #382743;border-radius:10px;background:#0d0911}.doc-source-table{width:100%;border-collapse:collapse;min-width:520px;font-size:13px}.doc-source-table th,.doc-source-table td{border:1px solid #362641;padding:8px 10px;vertical-align:top;text-align:left;line-height:1.55;unicode-bidi:plaintext}.doc-source-table th{background:#1c1223;color:#eedff5;font-weight:700}.doc-source-table td{background:#110b16;color:#e7dde9}
.sura-grid .sura-card.loaded small{font-size:9px}.sura-grid .sura-card.loaded{position:relative}.sura-grid .sura-card.loaded:after{content:'✓';position:absolute;right:5px;top:4px;font-size:9px;color:#aee5bd}
@media(max-width:900px){.doc-search-panel{top:74px}.doc-search-form{grid-template-columns:minmax(0,1fr) auto auto}.doc-search-form #tafsirClearBtn{grid-column:1/-1;width:100%}.doc-line{grid-template-columns:62px minmax(0,1fr) auto 20px}.chapter26-bar{align-items:flex-start;flex-direction:column}.chapter26-bar button{width:100%}}
@media(max-width:620px){.tafsir-detail-head{flex-direction:column}.tafsir-detail-title h3{font-size:21px}.doc-search-panel{position:static}.doc-search-form{grid-template-columns:1fr 1fr}.doc-search-form input{grid-column:1/-1}.doc-search-form #tafsirVoiceBtn,.doc-search-form #tafsirSearchBtn{width:100%}.doc-search-info{align-items:flex-start;flex-direction:column}.doc-line{height:44px;grid-template-columns:54px minmax(0,1fr) 18px;padding:0 9px;gap:7px}.doc-edited-mark{display:none}.doc-order{font-size:9px}.doc-preview{font-size:12px}.doc-body{padding:12px 10px}.doc-display{font-size:14px;line-height:1.75}.doc-actions,.doc-editor-actions{justify-content:stretch}.doc-actions button,.doc-editor-actions button{flex:1}.doc-source-table{min-width:440px}}

/* v1.0.8 — preserve source DOCX formatting + rich paragraph editing */
.doc-display .doc-plain-text{white-space:pre-wrap;unicode-bidi:plaintext}
.doc-display span[style*="color"]{text-shadow:none}
.doc-display.editing{outline:2px solid #a66bc6;outline-offset:4px;border-radius:8px;background:#120c18;padding:10px;min-height:72px;cursor:text}
.doc-display.editing:focus{box-shadow:0 0 0 4px #a66bc622}
.doc-edit-hint{font-size:12px;line-height:1.6;color:#d7c7df;background:#1c1224;border:1px solid #493356;border-radius:9px;padding:9px 11px}
.doc-cell-paragraph{margin:0 0 6px}.doc-cell-paragraph:last-child{margin-bottom:0}
.doc-source-table span{white-space:pre-wrap}


/* v1.0.9 — rich one-line previews + reliable open/search feedback */
.doc-line{min-height:46px;height:46px}
.doc-preview.doc-preview-rich{display:block;background:#fbf9fc;color:#151017;border:1px solid #e1d9e6;border-radius:7px;padding:6px 10px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:inset 0 1px 0 #fff;unicode-bidi:plaintext}
.doc-preview.doc-preview-rich *{display:inline!important;white-space:nowrap!important;margin:0!important;padding-top:0!important;padding-bottom:0!important;line-height:1.25!important}
.doc-preview.doc-preview-rich br{display:none!important}
.doc-preview-sep{color:#84778a!important;padding:0 5px!important}
.doc-line:hover .doc-preview.doc-preview-rich{border-color:#b89bc8;background:#fff}
.doc-block.expanded .doc-preview.doc-preview-rich{border-color:#9d6ab8;box-shadow:0 0 0 2px #9d6ab822}
.doc-block.search-match:not(.expanded) .doc-preview.doc-preview-rich{border-color:#c49a3b;box-shadow:0 0 0 2px #c49a3b22}
.doc-block.search-focus .doc-preview.doc-preview-rich{border-color:#ffca55;box-shadow:0 0 0 4px #ffca5533}
.doc-display.doc-paper{background:#fff;color:#111;border:1px solid #e0d9e3;border-radius:10px;padding:16px;box-shadow:0 6px 18px #00000018;overflow-wrap:anywhere}
.doc-display.doc-paper .doc-plain-text{color:#111}
.doc-display.doc-paper .doc-table-wrap{background:#fff;border-color:#cfc5d4}
.doc-display.doc-paper .doc-source-table th{background:#f0ebf3;color:#111;border-color:#cfc5d4}
.doc-display.doc-paper .doc-source-table td{background:#fff;color:#111;border-color:#d9d0dd}
.doc-display.doc-paper.editing{background:#fffef8;color:#111;outline-color:#9b59bd}
@media(max-width:620px){.doc-line{height:46px}.doc-preview.doc-preview-rich{padding:6px 8px}.doc-display.doc-paper{padding:12px}}

/* v1.0.11 — search filter mode: only exact matching paragraphs remain visible */
.doc-block[hidden],.doc-block.search-hidden{display:none!important}
.doc-block.search-match{border-color:#6f4a86}
.doc-block.search-match.expanded{border-color:#9460b2;box-shadow:0 0 0 1px #9460b233}
.doc-block.search-match.expanded .doc-body{display:block}


/* v1.0.12 — collapsed filtered results, search-term highlighting, editor color palettes */
.doc-search-highlight{background:#ffea3a!important;color:#321700!important;border-radius:3px;padding:0 .08em;box-shadow:0 0 0 1px #d8b80088;font-weight:800!important;text-shadow:none!important}
.doc-preview.doc-preview-rich .doc-search-highlight{display:inline!important;background:#ffdf3a!important;color:#261500!important;padding:0 2px!important;border-radius:3px;box-shadow:none}
.doc-block.search-match:not(.expanded) .doc-preview.doc-preview-rich{border-color:#d1a53c;box-shadow:0 0 0 2px #d1a53c2b}
.doc-color-toolbar{margin-top:10px;display:grid;gap:9px;padding:10px;border:1px solid #d8cedd;background:#f8f4fa;border-radius:10px;color:#24182b}
.doc-color-group{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.doc-color-group>b{font-size:11px;min-width:72px;color:#5a4862}
.doc-color-btn{width:28px;height:28px;border-radius:7px;border:2px solid #fff;background:var(--sw);box-shadow:0 0 0 1px #8f8295;cursor:pointer;padding:0;flex:0 0 auto}
.doc-color-btn:hover,.doc-color-btn:focus-visible{transform:scale(1.08);box-shadow:0 0 0 2px #70468a;outline:0}.doc-bg-swatch{border-radius:5px}
.doc-custom-label{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#5d4d64;border-left:1px solid #d8cedd;padding-left:9px;margin-left:2px}.doc-custom-color{width:34px;height:28px;border:1px solid #ad9ab7;border-radius:6px;padding:1px;background:#fff;cursor:pointer}
.doc-display.editing ::selection{background:#b7d8ff;color:#111}
@media(max-width:620px){.doc-color-group>b{width:100%;min-width:0}.doc-custom-label{border-left:0;padding-left:0;margin-left:4px}.doc-color-toolbar{padding:9px 8px}}

/* v1.0.15 — home reference lists placed in the former blank area */
.home-reference-stack{display:grid;gap:18px;margin-top:18px}
.home-reference-panel{background:linear-gradient(180deg,#120b19,#0f0915);border:1px solid var(--line);border-radius:18px;padding:18px}
.home-reference-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}
.home-reference-head h3{margin:0 0 3px;font-size:25px}
.home-reference-head p{margin:0;color:var(--muted);font-size:14px}
.home-term-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.home-term-grid .term{padding:9px 10px;min-height:38px;font-size:14px;display:flex;align-items:center;background:#171020}
.home-term-grid .term b{flex:0 0 auto}
.home-support-title{margin:22px 0 12px;font-size:21px}
.home-more-btn{white-space:nowrap}
@media(max-width:1180px){.home-term-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.home-term-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-reference-head{align-items:flex-start}.home-reference-head h3{font-size:22px}}
@media(max-width:600px){.home-term-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-reference-panel{padding:13px}.home-reference-head{display:block}.home-more-btn{margin-top:10px}.home-term-grid .term{font-size:13px}}

/* v1.0.16 — linked Entity 01 document reader */
.term-link{position:relative;text-decoration:none!important;cursor:pointer;transition:border-color .16s,transform .16s,box-shadow .16s;background:linear-gradient(135deg,#1a1022,#21142b)!important}
.term-link:hover{border-color:#b879d7!important;box-shadow:0 0 0 2px #a967ca22;transform:translateY(-1px)}
.term-link>span:not(.term-link-arrow){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.term-link-arrow{margin-left:auto;color:#d7a950;font-weight:800;font-size:13px;padding-left:8px}
.entity-reader-page{min-height:100vh;background:var(--bg);color:var(--text)}
.entity-reader-topbar{position:sticky;top:0;z-index:30;min-height:86px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;padding:10px 22px;border-bottom:1px solid var(--line);background:#0d0813f2;backdrop-filter:blur(14px)}
.entity-reader-brand{display:flex;align-items:center;gap:10px;min-width:180px}.entity-reader-brand b,.entity-reader-brand small{display:block}.entity-reader-brand small{color:var(--muted);margin-top:2px}
.entity-reader-title{min-width:0}.entity-reader-title h1{margin:4px 0 2px;font-size:25px}.entity-reader-title p{margin:0;color:var(--muted);font-size:12px}
.entity-reader-actions{display:flex;align-items:center;gap:8px}.entity-reader-main{width:min(1500px,calc(100% - 32px));margin:0 auto;padding:18px 0 50px}.entity-search-panel{top:96px}.entity-source-note{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 12px;margin:-2px 0 12px;border:1px dashed #473154;border-radius:10px;color:var(--muted);font-size:11px}.entity-source-note b{color:#e9dff0}
.entity-reader-page.light .entity-reader-topbar{background:#f8f3fbf2}
@media(max-width:820px){.entity-reader-topbar{grid-template-columns:auto 1fr;padding:10px 12px}.entity-reader-brand{min-width:0}.entity-reader-actions{grid-column:1/-1;justify-content:flex-end}.entity-reader-main{width:calc(100% - 18px);padding-top:10px}.entity-search-panel{top:132px}.entity-source-note{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.entity-reader-brand small{display:none}.entity-reader-title h1{font-size:20px}.entity-reader-title .pill{font-size:10px}.entity-reader-actions .soft-btn{padding:9px 10px}.entity-search-panel{position:static}.entity-source-note{font-size:10px}}


/* v1.0.17 — Entity 01 opens inside the Home reference box, preserving DOCX rich rows/columns/colors */
.entity-inline-trigger{width:100%;font:inherit;text-align:left;display:flex;align-items:center;gap:0}
.entity-inline-workspace[hidden]{display:none!important}
.entity-inline-workspace{margin-top:4px;border:1px solid #70468a;border-radius:14px;overflow:hidden;background:#0d0813;box-shadow:inset 0 0 0 1px #a76bea18}
.entity-inline-toolbar{display:flex;align-items:center;gap:14px;padding:10px 12px;border-bottom:1px solid #3a2847;background:#171020}
.entity-inline-title{min-width:0;display:flex;flex-direction:column;gap:2px}.entity-inline-title b{font-size:16px}.entity-inline-title small{color:var(--muted);white-space:normal}
.entity-inline-frame{display:block;width:100%;height:72vh;min-height:620px;border:0;background:#0d0813}
.entity-embedded,.entity-embedded-body{background:#0d0813!important}
.entity-embedded .entity-reader-topbar,.entity-embedded .entity-source-note{display:none!important}
.entity-embedded .entity-reader-main{width:100%!important;margin:0!important;padding:0 0 28px!important}
.entity-embedded .entity-search-panel{top:0!important;margin:0 0 10px!important;border-radius:0 0 12px 12px!important;border-top:0!important}
.entity-embedded .doc-paragraph-list{padding:0 10px 16px}
.entity-embedded .doc-block{scroll-margin-top:105px}
.entity-embedded .doc-display.doc-paper{max-width:1100px;margin:0 auto;background:#fff;color:#111}
.entity-embedded .doc-source-table{background:#fff}
@media(max-width:900px){.entity-inline-frame{height:76vh;min-height:560px}.entity-inline-toolbar{align-items:flex-start;flex-direction:column}.entity-inline-toolbar .soft-btn{width:100%}}
@media(max-width:620px){.entity-inline-frame{height:78vh;min-height:520px}.entity-embedded .doc-paragraph-list{padding:0 6px 12px}}

/* v1.0.18 — keep every clicked paragraph open until leaving the Entity 01 view; preserve DOCX colors/highlights */
.entity-embedded .doc-block.expanded,
.entity-reader-page .doc-block.expanded{border-color:#8e5aaa;box-shadow:0 0 0 1px #8e5aaa33}
.doc-preview.doc-preview-rich span[style*="color:#0000CC"],
.doc-display.doc-paper span[style*="color:#0000CC"]{color:#0000CC!important}
.doc-preview.doc-preview-rich span[style*="color:#339966"],
.doc-display.doc-paper span[style*="color:#339966"]{color:#339966!important}
.doc-preview.doc-preview-rich span[style*="background-color"],
.doc-display.doc-paper span[style*="background-color"]{-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .05em}
.doc-block.expanded .doc-body{display:block}


/* v1.0.19 — seamless adjacent opened paragraphs + persistent Word/edit colors */
.doc-display.doc-paper [style*="color"]{text-shadow:none!important}
.doc-display.doc-paper [style*="background-color"]{-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:2px;padding-left:.04em;padding-right:.04em}
.doc-preview.doc-preview-rich [style*="background-color"]{-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:2px;padding-left:.04em!important;padding-right:.04em!important}
.doc-block.doc-merge-group{position:relative;margin-top:0!important;margin-bottom:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.doc-block.doc-merge-group .doc-line{display:none!important}
.doc-block.doc-merge-group .doc-body{display:block!important;padding:0!important}
.doc-block.doc-merge-group .doc-body-meta{display:none!important}
.doc-block.doc-merge-group .doc-display.doc-paper{margin:0!important;border-radius:0!important;border-left:1px solid #d8cedd!important;border-right:1px solid #d8cedd!important;border-top:0!important;border-bottom:0!important;box-shadow:none!important;padding:7px 16px!important;line-height:1.82}
.doc-block.doc-merge-start .doc-display.doc-paper{border-top:1px solid #d8cedd!important;border-radius:11px 11px 0 0!important;padding-top:16px!important}
.doc-block.doc-merge-end .doc-display.doc-paper{border-bottom:1px solid #d8cedd!important;border-radius:0 0 11px 11px!important;padding-bottom:16px!important}
.doc-block.doc-merge-group .doc-actions{position:absolute;right:10px;top:5px;z-index:4;margin:0!important;padding:0!important;border:0!important;gap:5px;opacity:.18;transition:opacity .15s ease}
.doc-block.doc-merge-group:hover .doc-actions,.doc-block.doc-merge-group:focus-within .doc-actions{opacity:1}
.doc-block.doc-merge-group .doc-actions button{padding:4px 7px!important;min-height:26px!important;font-size:9px!important;border-radius:7px!important;box-shadow:0 1px 5px #0002}
.doc-block.doc-merge-group .doc-editor{margin:0;border-left:1px solid #d8cedd;border-right:1px solid #d8cedd;background:#fff;padding:10px 14px;color:#22172a}
.doc-block.doc-merge-end .doc-editor{border-bottom:1px solid #d8cedd;border-radius:0 0 11px 11px}
.entity-embedded .doc-block.doc-merge-group .doc-display.doc-paper{max-width:none!important}
@media(max-width:620px){.doc-block.doc-merge-group .doc-display.doc-paper{padding:7px 11px!important}.doc-block.doc-merge-start .doc-display.doc-paper{padding-top:13px!important}.doc-block.doc-merge-end .doc-display.doc-paper{padding-bottom:13px!important}.doc-block.doc-merge-group .doc-actions{right:6px;top:3px}}

/* v1.0.20 — Word-like table editing toolbar for Entity 01 */
.doc-table-toolbar{margin-top:10px;padding:11px;border:1px solid #cfc1d7;border-radius:11px;background:#f5eff8;color:#25172d;display:grid;gap:9px}
.doc-table-toolbar-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:7px;border-bottom:1px solid #ded2e4}.doc-table-toolbar-title>b{font-size:12px;color:#4c2b5e}.doc-table-status{font-size:10px;color:#6d5a75;text-align:right}
.doc-table-tool-row{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.doc-table-tool-row label{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#5d4966;background:#fff;border:1px solid #d8cedd;border-radius:7px;padding:5px 7px}.doc-table-tool-row input[type="number"]{width:58px;padding:5px 6px;border:1px solid #c9bdcf;border-radius:6px;background:#fff;color:#22172a}.doc-table-tool-row input[type="color"]{width:30px;height:27px;padding:1px;border:1px solid #bfaec8;border-radius:6px;background:#fff}.doc-table-tool-row select{padding:5px 7px;border:1px solid #c9bdcf;border-radius:6px;background:#fff;color:#22172a}
.doc-table-tool-btn,.doc-table-apply-bg,.doc-table-apply-text{border:1px solid #bda9c8;background:#fff;color:#392243;border-radius:7px;padding:7px 9px;font-size:10px;font-weight:700;cursor:pointer}.doc-table-tool-btn:hover,.doc-table-apply-bg:hover,.doc-table-apply-text:hover{border-color:#7a4a91;background:#eee4f3}.doc-table-tool-btn.primary{background:#7c3fa4;color:#fff;border-color:#7c3fa4}.doc-table-tool-btn.danger-lite{color:#7d2635;border-color:#d5aab2;background:#fff7f8}
.doc-display.editing .doc-source-table td,.doc-display.editing .doc-source-table th{cursor:cell;position:relative}.doc-display.editing .doc-source-table td.table-cell-selected,.doc-display.editing .doc-source-table th.table-cell-selected{outline:3px solid #8f45bc!important;outline-offset:-3px;box-shadow:inset 0 0 0 2px #fff8!important}.doc-display.editing .doc-source-table td.table-cell-selected::after,.doc-display.editing .doc-source-table th.table-cell-selected::after{content:"";position:absolute;inset:1px;pointer-events:none;border:1px dashed #5a2677}
.doc-display.editing .doc-table-wrap{overflow:visible}.doc-display.editing .doc-source-table{table-layout:auto}
@media(max-width:720px){.doc-table-toolbar-title{align-items:flex-start;flex-direction:column}.doc-table-status{text-align:left}.doc-table-tool-row{align-items:stretch}.doc-table-tool-row label,.doc-table-tool-btn,.doc-table-apply-bg,.doc-table-apply-text{font-size:10px}.doc-table-color-row{display:grid;grid-template-columns:1fr 1fr}.doc-table-color-row label:first-child{grid-column:1/-1}}


/* v1.0.21 — compact unified top editor toolbar (color + table tools in the same white panel) */
.doc-unified-toolbar{display:grid!important;grid-template-columns:minmax(300px,29%) minmax(0,71%);gap:10px!important;align-items:start;padding:6px 8px!important;margin-top:8px!important}
.doc-color-stack{display:grid;gap:5px;min-width:0;padding:1px 8px 1px 0;border-right:1px solid #ddd2e2}
.doc-unified-toolbar .doc-color-group{gap:4px;min-height:27px;flex-wrap:nowrap}
.doc-unified-toolbar .doc-color-group>b{font-size:9px;min-width:55px;white-space:nowrap}
.doc-unified-toolbar .doc-color-btn{width:23px;height:23px;border-radius:5px;border-width:1px;box-shadow:0 0 0 1px #8f8295}
.doc-unified-toolbar .doc-custom-label{font-size:8px;gap:3px;padding-left:5px;margin-left:2px;white-space:nowrap}
.doc-unified-toolbar .doc-custom-color{width:27px;height:23px;padding:1px;border-radius:5px}
.doc-table-toolbar-inline{margin:0!important;padding:0 0 0 2px!important;border:0!important;border-radius:0!important;background:transparent!important;display:grid!important;gap:4px!important;min-width:0;color:#25172d}
.doc-table-toolbar-inline .doc-table-toolbar-title{padding:0 0 3px!important;gap:7px!important;min-height:18px}
.doc-table-toolbar-inline .doc-table-toolbar-title>b{font-size:9px!important;white-space:nowrap}
.doc-table-toolbar-inline .doc-table-status{font-size:8px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.doc-table-toolbar-inline .doc-table-tool-row{gap:4px!important;flex-wrap:wrap!important}
.doc-table-toolbar-inline .doc-table-tool-row label{font-size:8px!important;gap:3px!important;padding:2px 4px!important;border-radius:5px!important;min-height:25px;white-space:nowrap}
.doc-table-toolbar-inline .doc-table-tool-row input[type="number"]{width:42px!important;padding:2px 4px!important;font-size:9px!important;border-radius:4px!important;height:21px}
.doc-table-toolbar-inline .doc-table-tool-row input[type="color"]{width:24px!important;height:21px!important;border-radius:4px!important;padding:1px!important}
.doc-table-toolbar-inline .doc-table-tool-row select{padding:2px 4px!important;font-size:9px!important;height:23px!important;border-radius:4px!important}
.doc-table-toolbar-inline .doc-table-tool-btn,.doc-table-toolbar-inline .doc-table-apply-bg,.doc-table-toolbar-inline .doc-table-apply-text{padding:4px 6px!important;font-size:8.5px!important;line-height:1!important;min-height:25px!important;border-radius:5px!important;white-space:nowrap}
.doc-table-toolbar-inline .doc-table-size-row{padding-top:0}
.doc-table-toolbar-inline .doc-table-mini-color{padding-right:3px!important}
@media(max-width:1180px){.doc-unified-toolbar{grid-template-columns:1fr!important}.doc-color-stack{border-right:0;border-bottom:1px solid #ddd2e2;padding:0 0 6px}.doc-unified-toolbar .doc-color-group{flex-wrap:wrap}.doc-table-toolbar-inline{padding-top:2px!important}}
@media(max-width:720px){.doc-unified-toolbar{padding:6px!important}.doc-table-toolbar-inline .doc-table-toolbar-title{align-items:flex-start!important;flex-direction:column!important}.doc-table-toolbar-inline .doc-table-status{white-space:normal}.doc-table-toolbar-inline .doc-table-tool-row{align-items:center!important}.doc-table-toolbar-inline .doc-table-tool-row label{width:auto!important}.doc-unified-toolbar .doc-color-group>b{width:auto!important;min-width:52px!important}.doc-unified-toolbar .doc-custom-label{border-left:0!important;padding-left:2px!important}}


/* v1.0.22 — whole paragraph add/edit/delete controls */
.entity-list-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.entity-list-actions .soft-btn,.entity-list-actions .text-btn{min-height:30px;padding:5px 9px;font-size:10px}
.doc-actions .danger-action{border-color:#b94b5e!important;color:#8f2033!important;background:#fff5f7!important}.doc-actions .danger-action:hover{background:#ffe4e9!important;border-color:#8f2033!important}
.doc-block .doc-actions{flex-wrap:wrap}.doc-add-above-btn,.doc-add-below-btn{border-color:#8b69a0!important;background:#f7f0fb!important;color:#4f2c63!important}
.doc-block[data-block-id] .doc-preview:empty::before{content:'নতুন প্যারা — সম্পাদনা করুন';color:#78677f;font-style:italic}
@media(max-width:620px){.entity-list-actions{width:100%}.entity-list-actions button{flex:1}.doc-actions{display:grid!important;grid-template-columns:1fr 1fr}.doc-actions button{width:100%}}


/* v1.0.24 — Entity 01 grouped by its three uploaded-document sub-indexes */
.entity-subindex-intro{margin:0 10px 10px;padding:10px 12px;border:1px solid #5b3970;border-radius:11px;background:linear-gradient(135deg,#191020,#21132b);display:flex;align-items:center;justify-content:space-between;gap:12px}.entity-subindex-intro b{display:block;font-size:16px;color:#f7effb}.entity-subindex-intro span{display:block;margin-top:2px;font-size:11px;color:#bdaac8}
.entity-subgroup{margin:0 10px 9px;border:1px solid #3e294c;border-radius:12px;background:#100b15;overflow:hidden}.entity-subgroup[hidden]{display:none!important}.entity-subgroup-toggle{width:100%;display:grid;grid-template-columns:auto auto minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:10px 12px;border:0;background:linear-gradient(135deg,#17101f,#1d1226);color:#f5edf9;text-align:left;cursor:pointer}.entity-subgroup-toggle:hover{background:linear-gradient(135deg,#1d1327,#271733)}.entity-subgroup-code{font-weight:800;color:#efbf55;font-size:13px}.entity-subgroup-name{font-weight:800;font-size:15px}.entity-subgroup-subtitle{min-width:0;color:#c6b2d0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.entity-subgroup-count{font-size:10px;color:#a98fba;border:1px solid #533864;border-radius:999px;padding:3px 7px;white-space:nowrap}.entity-subgroup-chevron{color:#d9b9e9;font-weight:800}.entity-subgroup-body{padding:9px 0 4px;border-top:1px solid #34223f;background:#0d0912}.entity-subgroup-body[hidden]{display:none!important}.entity-subgroup-tools{display:flex;justify-content:flex-end;padding:0 10px 7px}.entity-subgroup-tools .soft-btn{font-size:9px;min-height:28px;padding:5px 8px}.entity-subgroup-list{display:grid;gap:7px}.entity-subgroup-list .doc-block{margin:0 10px}.entity-main-info-label{margin:17px 10px 7px;padding-top:12px;border-top:1px dashed #4b3158;color:#bca6c8;font-size:11px;font-weight:700}.entity-subgroup-secondary{opacity:.96}.entity-subgroup-secondary .entity-subgroup-toggle{background:#15101a}
.entity-embedded .entity-subindex-intro,.entity-embedded .entity-subgroup,.entity-embedded .entity-main-info-label{margin-left:6px;margin-right:6px}.entity-embedded .entity-subgroup-list .doc-block{margin-left:6px;margin-right:6px}
@media(max-width:760px){.entity-subgroup-toggle{grid-template-columns:auto 1fr auto;gap:6px}.entity-subgroup-subtitle{grid-column:1/-1;grid-row:2;white-space:normal}.entity-subgroup-count{display:none}.entity-subindex-intro{margin-left:6px;margin-right:6px}.entity-subgroup-name{font-size:14px}}

/* v1.0.25 — Entity 01: show exactly three collapsed index paragraphs first; reveal prepared sub-paragraphs only after clicking. */
.entity-reader-page .entity-subindex-intro{margin:8px 10px 10px;padding:8px 11px;border:1px solid #382744;border-radius:9px;background:#120c18;color:#cbbad4;font-size:11px}.entity-reader-page .entity-subindex-intro div{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.entity-reader-page .entity-subindex-intro b{color:#f4eaf9;font-size:13px}.entity-reader-page .entity-subgroup{margin:0 10px 7px;border:1px solid #4b315a;border-radius:8px;background:#100b15;overflow:hidden}.entity-reader-page .entity-subgroup-toggle{min-height:42px;grid-template-columns:auto auto minmax(0,1fr) auto;padding:7px 10px;background:#fbf9fc;color:#1b1020;border:1px solid #d9cfe0;border-radius:7px}.entity-reader-page .entity-subgroup-toggle:hover{background:#fff}.entity-reader-page .entity-subgroup-code{color:#6b2f89;font-size:12px}.entity-reader-page .entity-subgroup-name{color:#24102e;font-size:15px}.entity-reader-page .entity-subgroup-subtitle{color:#5c5262;font-size:11px}.entity-reader-page .entity-subgroup-count{display:none}.entity-reader-page .entity-subgroup-chevron{color:#6b2f89;font-size:15px}.entity-reader-page .entity-subgroup-body{padding:8px 0 5px;border-top:1px solid #3b2848;background:#0d0912}.entity-reader-page .entity-subgroup-body[hidden]{display:none!important}.entity-reader-page .entity-subgroup-list{display:grid;gap:7px}.entity-reader-page .entity-subgroup-list .doc-block{margin-left:18px;margin-right:10px}.entity-reader-page .entity-subgroup-list .doc-order{min-width:58px}.entity-reader-page .entity-main-info-label,.entity-reader-page .entity-subgroup-secondary{display:none!important}
html.light .entity-reader-page .entity-subgroup{background:#fff;border-color:#d7c8df}html.light .entity-reader-page .entity-subgroup-toggle{background:#fff;color:#27172f;border-color:#d7c8df}html.light .entity-reader-page .entity-subgroup-body{background:#f8f4fa;border-color:#dfd4e5}

/* v1.0.28 — updated Mythican contents mapping; prior editor/table behaviors preserved */
.entity-subgroup-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:stretch;background:#100b15}
.entity-subgroup-head .entity-subgroup-toggle{min-width:0}
.entity-parent-actions{display:flex;align-items:center;gap:4px;padding:5px 6px 5px 0;background:#100b15}
.entity-parent-mini{min-width:31px;height:31px;padding:0 7px;border:1px solid #5d3c6f;border-radius:7px;background:#201329;color:#efe4f5;font:700 11px/1 system-ui;cursor:pointer}
.entity-parent-mini:hover{background:#6f3491;color:#fff;border-color:#8d51ad}
.entity-parent-mini.danger-action{background:#33151d;border-color:#6d3440;color:#ffd7df}
.entity-parent-mini.danger-action:hover{background:#7d2638;color:#fff}
.entity-parent-editor{display:grid;grid-template-columns:120px minmax(180px,1fr) minmax(260px,2fr) auto;gap:7px;align-items:end;padding:9px 10px;border-top:1px solid #432c50;border-bottom:1px solid #432c50;background:#160f1d;color:#d8c7df}
.entity-parent-editor[hidden]{display:none!important}
.entity-parent-editor label{display:grid;gap:4px;font-size:9px;font-weight:700;color:#bca8c7}
.entity-parent-editor input{height:31px;min-width:0;padding:5px 8px;border:1px solid #654678;border-radius:7px;background:#fff;color:#211429;font:600 11px/1.2 system-ui}
.entity-parent-editor-actions{display:flex;gap:5px;align-items:center}.entity-parent-editor-actions button{min-height:31px;padding:5px 8px;font-size:10px;white-space:nowrap}
.entity-add-main-parent{white-space:nowrap;min-height:32px;padding:6px 10px;font-size:10px}
.entity-reader-page .entity-subindex-intro{display:flex;align-items:center;justify-content:space-between;gap:12px}
.entity-reader-page .entity-subgroup-head{background:#0f0a14}
.entity-reader-page .entity-subgroup-head .entity-subgroup-toggle{border-radius:7px 0 0 7px}
html.light .entity-subgroup-head,html.light .entity-parent-actions{background:#f8f3fa}html.light .entity-parent-mini{background:#fff;color:#4a275a;border-color:#cab6d4}html.light .entity-parent-mini.danger-action{background:#fff4f5;color:#8a263d;border-color:#e3bac3}html.light .entity-parent-editor{background:#f7f1fa;color:#35213e;border-color:#dfd0e6}
@media(max-width:900px){.entity-parent-editor{grid-template-columns:110px 1fr}.entity-parent-subtitle-label{grid-column:1/-1}.entity-parent-editor-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:680px){.entity-subgroup-head{grid-template-columns:1fr}.entity-subgroup-head .entity-subgroup-toggle{border-radius:7px 7px 0 0!important}.entity-parent-actions{padding:4px 7px 6px;justify-content:flex-end;border-top:1px solid #32213c}.entity-parent-editor{grid-template-columns:1fr}.entity-parent-subtitle-label,.entity-parent-editor-actions{grid-column:auto}.entity-reader-page .entity-subindex-intro{align-items:stretch;flex-direction:column}.entity-add-main-parent{width:100%}}

.entity-toc-summary{display:block;margin-top:6px;color:var(--muted);font-size:12px;line-height:1.5}


/* v1.0.32 — select one or many sub-paragraphs and bulk delete inside a main group */
.doc-line-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px;align-items:stretch}
.doc-line-row .doc-line{min-width:0;width:100%}
.doc-bulk-select{display:flex;align-items:center;gap:4px;min-width:72px;padding:0 7px;border:1px solid #51345f;border-radius:8px;background:#17101f;color:#cbb6d5;font-size:9px;font-weight:700;cursor:pointer;user-select:none}
.doc-bulk-select:hover{background:#22142d;color:#fff}.doc-bulk-checkbox{width:15px;height:15px;accent-color:#8e45b5;cursor:pointer}
.doc-block:has(.doc-bulk-checkbox:checked)>.doc-line-row{outline:1px solid #a65bcb;outline-offset:1px;border-radius:9px}.doc-block:has(.doc-bulk-checkbox:checked) .doc-bulk-select{background:#6f3491;color:#fff;border-color:#a960ca}
.entity-subgroup-tools{justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.entity-bulk-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.entity-bulk-tools .soft-btn{font-size:9px;min-height:28px;padding:5px 8px}.entity-delete-selected.danger-action{background:#3b1720;border-color:#7f3546;color:#ffdbe2}.entity-delete-selected.danger-action:not(:disabled):hover{background:#8a2940;color:#fff}.entity-bulk-tools button:disabled{opacity:.45;cursor:not-allowed}
html.light .doc-bulk-select{background:#fff;border-color:#d5c2de;color:#563565}html.light .doc-block:has(.doc-bulk-checkbox:checked) .doc-bulk-select{background:#7f42a1;color:#fff}
@media(max-width:720px){.doc-line-row{grid-template-columns:1fr}.doc-bulk-select{min-height:26px;justify-content:flex-start}.entity-subgroup-tools{align-items:stretch}.entity-bulk-tools{width:100%}.entity-subgroup-add{width:100%}}

/* v1.0.33 — promote a clicked main paragraph into the upper workspace tab bar */
.entity-inline-toolbar{flex-wrap:nowrap}
.entity-inline-parent-tabs[hidden]{display:none!important}
.entity-inline-parent-tabs{min-width:0;flex:1 1 auto;display:flex;align-items:center;gap:7px;overflow-x:auto;overflow-y:hidden;padding:2px 0 3px;scrollbar-width:thin;white-space:nowrap}
.entity-inline-parent-tab{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:7px 11px;border:1px solid #5d3a70;border-radius:9px;background:#21152b;color:#e9dced;font-size:11px;cursor:pointer}
.entity-inline-parent-tab span{color:#efbf55;font-weight:800}.entity-inline-parent-tab b{font-size:12px;color:inherit}
.entity-inline-parent-tab:hover{background:#2c1a39;border-color:#8451a0}.entity-inline-parent-tab.active{background:#7f3db0;border-color:#a969d1;color:#fff;box-shadow:0 0 0 1px #b777da33 inset}.entity-inline-parent-tab.active span{color:#ffe08a}
.entity-inline-parent-tab-back{background:#15101b;color:#d5c4dc;border-style:dashed}
.entity-parent-focus-mode{padding-top:2px}
.entity-parent-focus-mode .entity-subgroup{margin-top:2px!important}
.entity-parent-focus-mode .entity-subgroup-head{grid-template-columns:1fr!important;border-bottom:1px solid #392344}
.entity-parent-focus-mode .entity-subgroup-head .entity-subgroup-toggle{display:none!important}
.entity-parent-focus-mode .entity-parent-actions{justify-content:flex-end;padding:6px 10px;background:#120c18;border:0}
.entity-parent-focus-mode .entity-subgroup-body{display:block!important;border-top:0!important;padding-top:7px!important}
.entity-parent-focus-mode .entity-subgroup-tools{position:sticky;top:0;z-index:5;background:#0d0912;padding-top:5px;border-bottom:1px solid #2e1f37}
.entity-parent-focus-mode .entity-subgroup-list{padding-top:2px}
html.light .entity-inline-parent-tab{background:#f7f0fa;color:#472957;border-color:#cfb9da}html.light .entity-inline-parent-tab.active{background:#7f3db0;color:#fff;border-color:#7f3db0}
@media(max-width:900px){.entity-inline-toolbar{flex-wrap:wrap}.entity-inline-parent-tabs{width:100%;order:3}.entity-inline-title{flex:1 1 auto}}
@media(max-width:620px){.entity-inline-parent-tab{padding:6px 8px;min-height:31px}.entity-inline-parent-tab b{font-size:11px}.entity-parent-focus-mode .entity-parent-actions{justify-content:stretch}.entity-parent-focus-mode .entity-parent-mini{flex:1}}

/* v1.0.34 — reference-table inspired colorful home entity labels */
.home-entity-board-shell{width:100%;min-width:0}
.home-entity-table-wrap{width:100%;overflow-x:auto;border:1px solid #706478;border-radius:10px;background:#f7f7f5;box-shadow:0 10px 26px #0000002a;scrollbar-width:thin}
.home-entity-table{width:100%;min-width:1240px;border-collapse:separate;border-spacing:0;color:#111;background:#fbfbfa;table-layout:fixed}
.home-entity-table th,.home-entity-table td{border-right:1px solid #777;border-bottom:1px solid #777;padding:4px 5px;text-align:center;vertical-align:middle;background:#fff;height:44px}
.home-entity-table th:last-child,.home-entity-table td:last-child{border-right:0}
.home-entity-table tbody tr:last-child td{border-bottom:0}
.home-entity-table thead th{background:linear-gradient(180deg,#f6f6f6,#dedede);color:#1238c5;font-weight:900;font-size:14px;line-height:1.25;text-shadow:0 1px #fff}
.home-entity-table .home-entity-superhead{font-size:22px;color:#143bdb;letter-spacing:.02em;background:linear-gradient(180deg,#ffffff,#e7e7e7);padding:7px 10px}
.home-entity-table tr.section-break td{border-top:10px solid #f3f3f1}

.home-entity-table td.home-merged-empty{background:#fff;padding:0}
.home-entity-table td.home-merged-rupok-gap,.home-entity-table td.home-merged-char-chod-gap{vertical-align:middle}
.home-entity-label{width:100%;min-height:32px;border:0;border-radius:2px;padding:4px 6px;display:flex;align-items:center;justify-content:center;gap:5px;font-weight:900;font-size:14px;line-height:1.1;white-space:nowrap;overflow:hidden;box-shadow:inset 0 1px #ffffff66,0 1px 2px #0003;transition:transform .12s ease,filter .12s ease,box-shadow .12s ease}
.home-entity-label:hover{transform:translateY(-1px) scale(1.015);filter:saturate(1.12) brightness(1.04);box-shadow:inset 0 1px #ffffff88,0 4px 9px #0004;z-index:2}
.home-entity-label:active{transform:translateY(0) scale(.99)}
.home-entity-no{font-weight:950;color:#101010;flex:0 0 auto}.home-entity-name{overflow:hidden;text-overflow:ellipsis}
.home-entity-label.group-trans{background:linear-gradient(180deg,#c4c600,#a6a900);color:#071c4a}.home-entity-label.group-trans .home-entity-no{color:#111;font-weight:950}.home-entity-label.group-trans .home-entity-name{color:#071c4a;font-weight:950;letter-spacing:.01em;text-shadow:0 1px #ffffff99}
.home-entity-label.group-rupok{background:linear-gradient(180deg,#18b0b0,#059394);color:#071718}.home-entity-label.group-rupok .home-entity-name{text-shadow:0 1px #c7ffff44}
.home-entity-label.group-upoman{background:linear-gradient(180deg,#27f4f5,#04d8dc);color:#08222b}.home-entity-label.group-charitro{background:linear-gradient(180deg,#ff42e9,#f20dce);color:#2b0928}.home-entity-label.group-chodnam{background:linear-gradient(180deg,#b9b707,#9c9b00);color:#141414}
.home-entity-label.group-mulok{background:linear-gradient(180deg,#b7b607,#989900);color:#1035c9}.home-entity-label.group-mulok .home-entity-name{text-shadow:0 1px #fff5}
.home-number-color-grid .term{background:linear-gradient(180deg,#32ff25,#02e619)!important;color:#1237c7!important;border:1px solid #08a918!important;border-radius:3px!important;font-weight:900;box-shadow:inset 0 1px #caffc8,0 1px 2px #0003;padding:8px 9px!important}
.home-number-color-grid .term b{color:#1328c8!important}.home-support-color-grid .term{background:linear-gradient(180deg,#75ff57,#24ed27)!important}
html.light .home-entity-table-wrap{border-color:#777;background:#f7f7f5}.home-reference-panel:has(.home-entity-table){background:linear-gradient(180deg,#120b19,#0d0912)}
@media(max-width:900px){.home-entity-table{min-width:1120px}.home-entity-table .home-entity-superhead{font-size:19px}.home-entity-label{font-size:13px}.home-entity-table th{font-size:12px}}
@media(max-width:600px){.home-entity-table{min-width:1040px}.home-entity-label{font-size:12px;min-height:30px}.home-entity-table th,.home-entity-table td{padding:3px}.home-entity-table-wrap{border-radius:7px}}

/* v1.0.37 — left transformed labels: high-contrast navy text for readability */
.home-entity-table td:first-child .home-entity-label{font-weight:950}
.home-entity-table td:first-child .home-entity-name{color:#071c4a!important;text-shadow:0 1px #ffffffaa!important}
.home-entity-table td:first-child .home-entity-no{color:#111!important}


/* v1.0.38 — symmetric home category widths: right-side category buttons match the left-side buttons */
.home-entity-table col.home-edge-col,.home-entity-table col.home-side-col{width:10.5%}
.home-entity-table col.home-rupok-col{width:9.5%}
.home-entity-table td:first-child .home-entity-label,
.home-entity-table td:nth-last-child(-n+4) .home-entity-label{width:100%;height:32px;min-height:32px;padding:4px 6px}
.home-entity-table td:last-child .home-entity-label{width:100%;height:32px;min-height:32px}
.home-entity-table th:first-child,.home-entity-table th:last-child{min-width:0}


/* v1.0.39 — no blank horizontal row; independent category stacks with equal button sizing */
.home-entity-board-v139{width:100%;min-width:1180px;background:#fbfbfa;color:#111;border:1px solid #777;border-radius:9px;overflow:hidden;box-shadow:0 10px 26px #0000002a}
.home-entity-superhead-v139{background:linear-gradient(180deg,#fff,#e7e7e7);color:#143bdb;font-weight:950;font-size:22px;line-height:1.2;text-align:center;padding:7px 10px;border-bottom:1px solid #777;letter-spacing:.02em;text-shadow:0 1px #fff}
.home-entity-categories-v139{display:grid;grid-template-columns:10.5fr 47.5fr 10.5fr 10.5fr 10.5fr 10.5fr;align-items:stretch;background:#fff}
.home-entity-category-v139{min-width:0;border-right:1px solid #777;background:#fff;display:flex;flex-direction:column}
.home-entity-category-v139:last-child{border-right:0}
.home-entity-category-v139>h4{margin:0;min-height:44px;padding:5px 4px;display:flex;align-items:center;justify-content:center;text-align:center;background:linear-gradient(180deg,#f6f6f6,#dedede);color:#1238c5;border-bottom:1px solid #777;font-size:14px;font-weight:950;line-height:1.12;text-shadow:0 1px #fff}
.home-entity-stack{display:flex;flex-direction:column;gap:7px;padding:7px 5px;min-width:0;flex:1;background:#fff}
.home-rupok-columns-v139{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));min-width:0;flex:1;background:#fff}
.home-rupok-columns-v139>.home-entity-stack{border-right:1px solid #9b9b9b}
.home-rupok-columns-v139>.home-entity-stack:last-child{border-right:0}
.home-rupok-last-v139{padding-top:calc(7px + (39px * 3))}
.home-entity-board-v139 .home-entity-label{height:32px;min-height:32px;max-height:32px;width:100%;padding:4px 5px;font-size:13px;border-radius:2px;flex:0 0 32px}
.home-entity-board-v139 .home-category-trans-v139 .home-entity-name{color:#071c4a!important;text-shadow:0 1px #ffffffaa!important}
.home-entity-board-v139 .home-category-trans-v139 .home-entity-no{color:#111!important}
.home-entity-board-v139 .home-category-mulok-v139 .home-entity-label{height:32px;min-height:32px}
.home-entity-table-wrap:has(.home-entity-board-v139){border:0!important;background:transparent!important;box-shadow:none!important;overflow-x:auto}
@media(max-width:900px){.home-entity-board-v139{min-width:1080px}.home-entity-superhead-v139{font-size:19px}.home-entity-category-v139>h4{font-size:12px}.home-entity-board-v139 .home-entity-label{font-size:12px}}


/* v1.0.40 — SolaimanLipi across all Bangla UI, document, table and editor surfaces */
html,body,button,input,textarea,select,option,label,table,thead,tbody,tfoot,tr,th,td,h1,h2,h3,h4,h5,h6,p,span,a,small,b,strong,em,i,div,section,article,nav,aside,header,footer,[contenteditable="true"],.doc-display,.doc-preview,.doc-preview-rich,.surah-text-block,.entity-reader-page,.entity-inline-workspace,.entity-subgroup,.entity-subgroup-list,.home-entity-board-v139,.home-entity-label,.home-number-color-grid,.home-support-color-grid{font-family:"SolaimanLipi","Noto Sans Bengali","Hind Siliguri","Segoe UI",sans-serif!important;}
/* Keep code/technical snippets monospace where they are intentionally code. */
.code-box,code,pre{font-family:ui-monospace,Consolas,"Courier New",monospace!important;}


/* v1.0.41 — image-backed home entity buttons; behavior unchanged */
.home-entity-board-v139 .home-entity-label.image-backed{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  background-image:linear-gradient(180deg,rgba(8,10,16,.08),rgba(8,10,16,.26)),var(--entity-bg)!important;
  background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
  border:1px solid rgba(255,255,255,.68)!important;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.12),0 1px 3px rgba(0,0,0,.30)!important;
}
.home-entity-board-v139 .home-entity-label.image-backed::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(90deg,rgba(0,0,0,.10),rgba(255,255,255,.04),rgba(0,0,0,.10));
}
.home-entity-board-v139 .home-entity-label.image-backed .home-entity-caption{
  display:inline-flex;align-items:center;justify-content:center;gap:4px;max-width:96%;
  padding:2px 7px;border-radius:999px;background:rgba(255,255,255,.90);
  border:1px solid rgba(255,255,255,.90);box-shadow:0 1px 4px rgba(0,0,0,.34);
  color:#111!important;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.home-entity-board-v139 .home-entity-label.image-backed .home-entity-no,
.home-entity-board-v139 .home-entity-label.image-backed .home-entity-name{
  color:#111!important;text-shadow:none!important;font-weight:950!important;
}
.home-entity-board-v139 .home-category-mulok-v139 .home-entity-label.image-backed .home-entity-no,
.home-entity-board-v139 .home-category-mulok-v139 .home-entity-label.image-backed .home-entity-name{color:#102fbc!important;}
.home-entity-board-v139 .home-entity-label.image-backed:hover{
  transform:translateY(-1px) scale(1.015);filter:saturate(1.08) brightness(1.06);
}


/* v1.0.42 — fixed 1.5in x 1in image buttons, left-side label, local add/edit/delete image tools */
.home-entity-board-v139{width:max-content;min-width:100%;}
.home-entity-categories-v139{
  grid-template-columns:calc(1.5in + 12px) calc(7.5in + 48px) repeat(4,calc(1.5in + 12px));
}
.home-rupok-columns-v139{grid-template-columns:repeat(5,minmax(0,1.5in));gap:6px;padding:0 6px;}
.home-rupok-columns-v139>.home-entity-stack{border-right:0!important;padding-left:0;padding-right:0;}
.home-entity-stack{align-items:center;gap:6px;padding:6px;}
.home-rupok-last-v139{padding-top:calc(3in + 24px)!important;}
.home-entity-card{position:relative;width:1.5in;height:1in;min-width:1.5in;min-height:1in;max-width:1.5in;max-height:1in;flex:0 0 1in;}
.home-entity-board-v139 .home-entity-card>.home-entity-label{
  position:relative;width:1.5in!important;height:1in!important;min-width:1.5in!important;min-height:1in!important;max-width:1.5in!important;max-height:1in!important;
  padding:0!important;border-radius:7px!important;display:block!important;
}
.home-entity-board-v139 .home-entity-label.image-backed{
  background-size:cover!important;background-position:center!important;
}
.home-entity-board-v139 .home-entity-label.image-backed::before{
  background:linear-gradient(90deg,rgba(0,0,0,.18) 0%,rgba(0,0,0,.04) 38%,rgba(0,0,0,0) 72%)!important;
}
.home-entity-board-v139 .home-entity-label.image-backed .home-entity-caption{
  position:absolute!important;left:5px!important;bottom:5px!important;right:auto!important;top:auto!important;
  display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;
  max-width:calc(100% - 10px)!important;padding:3px 7px!important;border-radius:999px!important;
  background:rgba(8,8,10,.68)!important;border:1px solid rgba(255,255,255,.55)!important;
  box-shadow:0 1px 4px rgba(0,0,0,.40)!important;color:#fff!important;text-align:left!important;
  overflow:hidden!important;white-space:nowrap!important;
}
.home-entity-board-v139 .home-entity-label.image-backed .home-entity-no,
.home-entity-board-v139 .home-entity-label.image-backed .home-entity-name,
.home-entity-board-v139 .home-category-mulok-v139 .home-entity-label.image-backed .home-entity-no,
.home-entity-board-v139 .home-category-mulok-v139 .home-entity-label.image-backed .home-entity-name{
  color:#fff!important;text-shadow:0 1px 2px #000!important;font-weight:950!important;
}
.home-entity-image-tools{position:absolute;top:4px;right:4px;z-index:6;display:flex;gap:2px;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-3px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease;}
.home-entity-card:hover .home-entity-image-tools,.home-entity-card:focus-within .home-entity-image-tools{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0);}
.entity-bg-tool{width:21px;height:21px;min-width:21px;padding:0;border:1px solid rgba(255,255,255,.72);border-radius:5px;background:rgba(12,10,18,.76);color:#fff;font:700 12px/19px "Segoe UI Symbol","SolaimanLipi",sans-serif!important;cursor:pointer;box-shadow:0 1px 3px #0007;}
.entity-bg-tool:hover{background:#5b2b85;transform:translateY(-1px)}
.entity-bg-delete:hover{background:#8b2532}
.home-entity-label.image-removed{background-image:linear-gradient(135deg,#24162d,#120d18)!important;}
.home-entity-label.image-removed::after{content:"ছবি যোগ করুন";position:absolute;inset:0;display:grid;place-items:center;color:#cbbbd8;font-size:12px;font-weight:700;}
@media(max-width:900px){
  .home-entity-board-v139{min-width:1580px!important;}
  .home-entity-card,.home-entity-board-v139 .home-entity-card>.home-entity-label{width:1.5in!important;height:1in!important;min-width:1.5in!important;min-height:1in!important;max-width:1.5in!important;max-height:1in!important;}
}


/* v1.0.43 — cleaner home image buttons: no dirty text in the default photos, caption moved to the left-top, fixed height 1in and image width auto */
.home-entity-card{position:relative;min-height:1in!important;height:1in!important;min-width:1.5in!important;width:1.5in!important;max-width:1.5in!important;max-height:1in!important;}
.home-entity-board-v139 .home-entity-card>.home-entity-label{height:1in!important;min-height:1in!important;max-height:1in!important;min-width:1.5in!important;width:1.5in!important;max-width:1.5in!important;border-radius:8px!important;overflow:hidden!important;}
.home-entity-board-v139 .home-entity-label.image-backed{background-size:auto 100%!important;background-position:center center!important;background-repeat:no-repeat!important;}
.home-entity-board-v139 .home-entity-label.image-backed::before{background:linear-gradient(90deg,rgba(0,0,0,.42) 0%,rgba(0,0,0,.16) 32%,rgba(0,0,0,0) 66%)!important;}
.home-entity-board-v139 .home-entity-label.image-backed .home-entity-caption{top:6px!important;left:6px!important;bottom:auto!important;right:auto!important;max-width:calc(100% - 40px)!important;padding:3px 6px!important;background:rgba(7,8,10,.70)!important;border:1px solid rgba(255,255,255,.58)!important;color:#fff!important;backdrop-filter:blur(2px);}
.home-entity-board-v139 .home-entity-label.image-backed .home-entity-no,.home-entity-board-v139 .home-entity-label.image-backed .home-entity-name,.home-entity-board-v139 .home-category-mulok-v139 .home-entity-label.image-backed .home-entity-no,.home-entity-board-v139 .home-category-mulok-v139 .home-entity-label.image-backed .home-entity-name{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.9)!important;}
.home-entity-image-tools{top:5px!important;right:5px!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(-3px)!important;}
.home-entity-card:hover .home-entity-image-tools,.home-entity-card:focus-within .home-entity-image-tools{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translateY(0)!important;}
@media(max-width:900px){.home-entity-board-v139 .home-entity-label.image-backed{background-size:auto 100%!important;}}


/* v1.0.44 — image buttons full-page fit: height fixed 1in, width auto/flexible */
.home-entity-board-v139{width:100%!important;min-width:0!important;max-width:100%!important;}
.home-entity-categories-v139{grid-template-columns:1fr 4.8fr 1fr 1fr 1fr 1fr!important;align-items:start!important;}
.home-rupok-columns-v139{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important;padding:0 6px!important;}
.home-entity-card{width:auto!important;min-width:0!important;max-width:none!important;height:1in!important;min-height:1in!important;max-height:1in!important;}
.home-entity-board-v139 .home-entity-card>.home-entity-label{width:100%!important;min-width:0!important;max-width:none!important;height:1in!important;min-height:1in!important;max-height:1in!important;display:block!important;}
.home-entity-board-v139 .home-entity-label.image-backed{background-size:auto 100%!important;background-position:center center!important;background-repeat:no-repeat!important;}
.home-entity-board-v139 .home-entity-label.image-backed .home-entity-caption{top:6px!important;left:6px!important;right:auto!important;bottom:auto!important;max-width:calc(100% - 42px)!important;}
.home-entity-tools-wrap,.home-entity-image-tools{z-index:3!important;}
@media(max-width:900px){
  .home-entity-board-v139{min-width:1180px!important;}
}

/* v1.0.45 — FIX: flexible-width cards must stretch across each column instead of collapsing */
.home-entity-stack{
  align-items:stretch!important;
  width:100%!important;
  min-width:0!important;
}
.home-entity-card{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:1in!important;
  min-height:1in!important;
  max-height:1in!important;
  flex:0 0 1in!important;
}
.home-entity-board-v139 .home-entity-card>.home-entity-label{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:1in!important;
  min-height:1in!important;
  max-height:1in!important;
}
.home-entity-board-v139 .home-entity-label.image-backed{
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
}
.home-entity-categories-v139{
  width:100%!important;
  grid-template-columns:minmax(120px,1fr) minmax(600px,4.8fr) repeat(4,minmax(120px,1fr))!important;
}
.home-rupok-columns-v139{
  width:100%!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
}
@media(max-width:900px){
  .home-entity-board-v139{min-width:1180px!important;}
  .home-entity-stack{align-items:stretch!important;}
  .home-entity-card,.home-entity-board-v139 .home-entity-card>.home-entity-label{width:100%!important;min-width:0!important;max-width:none!important;}
}


/* v1.0.46 — incremental parent tabs: only clicked parent headings move to upper tabs */
.entity-subgroup-tab-content>.entity-subgroup-head{display:none!important;}
.entity-subgroup-tab-content{margin-top:6px!important;border-top:0!important;}
.entity-subgroup-tab-content>.entity-subgroup-body{border-top:0!important;padding-top:4px!important;}
.entity-remaining-parent-label{margin:10px 10px 7px;padding:7px 10px;border:1px dashed #4b3158;border-radius:8px;background:#130d19;color:#cfbdd8;font-size:11px;font-weight:700;}
.entity-all-parent-opened{text-align:center;color:#a991b7;}


/* v1.0.47 — custom button manager */
.home-entity-head-v147{align-items:center!important;justify-content:flex-start!important;gap:14px!important}.home-entity-head-title{flex:0 0 auto;min-width:300px}.home-entity-head-title h3{margin:0!important}.home-entity-manage-tools{display:flex;align-items:center;gap:7px;flex:1;min-width:0;padding:6px 8px;border:1px solid #563469;border-radius:10px;background:#160e1e}.home-entity-manage-tools .soft-btn{padding:7px 10px;min-height:34px;white-space:nowrap}.home-entity-manage-select{min-width:190px;max-width:320px;flex:1;height:34px;border:1px solid #5b3b6b;border-radius:9px;background:#0f0a14;color:#f4edf8;padding:4px 9px;outline:none}.home-entity-manage-select:focus{border-color:#9b61c6;box-shadow:0 0 0 2px #9b61c626}.home-entity-manage-tools button:disabled{opacity:.42;cursor:not-allowed}.home-custom-entity-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px;padding:10px;border:1px dashed #543464;border-radius:10px;background:#100a16}.home-custom-entity-buttons[hidden]{display:none!important}.home-custom-entity-buttons .home-entity-card{flex:1 1 180px!important;width:auto!important;min-width:150px!important;max-width:260px!important;height:1in!important}.home-custom-entity-buttons .home-entity-label{width:100%!important;height:1in!important;min-height:1in!important;max-height:1in!important}.home-custom-entity-buttons .group-custom{background-color:#251532!important}@media(max-width:900px){.home-entity-head-v147{flex-wrap:wrap!important}.home-entity-head-title{min-width:0}.home-entity-manage-tools{order:3;flex-basis:100%}.home-custom-entity-buttons .home-entity-card{flex-basis:160px!important}}@media(max-width:600px){.home-entity-manage-tools{display:grid;grid-template-columns:1fr 1fr}.home-entity-manage-select{grid-column:1/-1;width:100%;max-width:none}.home-entity-manage-add{grid-column:1/-1}.home-custom-entity-buttons .home-entity-card{min-width:140px!important;max-width:none!important;flex:1 1 140px!important}}

/* v1.0.48 — clear the old upper-left caption area and place custom button tools in the next header box */
.home-entity-head-v147{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:14px!important}
.home-entity-head-spacer{flex:0 0 300px;min-width:300px;height:1px}
.home-entity-tools-label{font-weight:800;color:#f1d7ff;white-space:nowrap;padding:0 3px}
.home-entity-manage-tools{max-width:620px;flex:0 1 620px!important}
@media(max-width:900px){.home-entity-head-spacer{display:none}.home-entity-manage-tools{max-width:none;flex:1 1 100%!important}}

/* v1.0.49 — lower-board button management */
.home-entity-head-v147{justify-content:stretch!important;gap:10px!important}
.home-entity-manage-tools{max-width:none!important;flex:1 1 auto!important;flex-wrap:wrap}
.home-entity-group-select{flex:0 1 220px!important;max-width:240px!important;min-width:175px!important}
.home-entity-head-spacer{display:none!important}
.home-custom-entity-buttons{display:none!important}
.home-entity-card.button-manager-selected{outline:3px solid #b37cff!important;outline-offset:2px;border-radius:9px}
.home-entity-text-tools{position:absolute;right:5px;bottom:5px;z-index:7;display:flex;gap:2px;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(3px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
.home-entity-card:hover .home-entity-text-tools,.home-entity-card:focus-within .home-entity-text-tools{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
.entity-text-tool{min-width:22px;height:21px;padding:0 4px;border:1px solid rgba(255,255,255,.75);border-radius:6px;background:rgba(16,10,20,.82);color:#fff;font:700 11px/1 "SolaimanLipi","Noto Sans Bengali",sans-serif;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.35)}
.entity-text-tool:hover{background:#5a2d78}
.entity-text-tool.danger-action:hover{background:#8c2430}
@media(max-width:900px){.home-entity-manage-tools{flex:1 1 100%!important}.home-entity-group-select{max-width:none!important;flex:1 1 190px!important}}
@media(max-width:600px){.home-entity-manage-tools{display:grid!important;grid-template-columns:1fr 1fr}.home-entity-group-select,.home-entity-manage-select{grid-column:1/-1;max-width:none!important;width:100%!important}.home-entity-manage-add{grid-column:auto!important}}


/* v1.0.50 — entity card tools stay hidden until hover/focus */


/* v1.0.51 — position-aware custom button insertion */
.home-entity-insert-select{flex:0 1 210px!important;min-width:180px!important;max-width:230px!important}
@media(max-width:900px){.home-entity-insert-select{flex:1 1 190px!important;max-width:none!important}}
@media(max-width:600px){.home-entity-insert-select{grid-column:1/-1;width:100%!important;max-width:none!important}}


/* v1.0.52 — number buttons get the same manager behavior as the upper buttons */
.home-number-manage-tools{flex:1;min-width:0}
.number-board-grid{gap:10px}
.number-card{position:relative;min-width:0}
.number-term-button{width:100%;display:flex;align-items:center;gap:6px;text-align:left;min-height:44px;padding-right:74px!important;background:inherit;border:inherit;border-radius:inherit;color:inherit}
.number-term-button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.number-tools{position:absolute;top:6px;right:6px;z-index:6;display:flex;gap:3px;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-3px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
.number-card:hover .number-tools,.number-card:focus-within .number-tools{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
.number-tool{min-width:22px;height:21px;padding:0 4px;border:1px solid rgba(255,255,255,.78);border-radius:6px;background:rgba(16,10,20,.82);color:#fff;font:700 11px/1 "SolaimanLipi","Noto Sans Bengali",sans-serif;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.35)}
.number-tool:hover{background:#5a2d78}.number-tool.danger-action:hover{background:#8c2430}
.number-manager-selected .number-term-button{outline:3px solid #b37cff;outline-offset:2px}
.page[data-view="numbers"] .page-head .home-number-manage-tools{margin-top:14px}
@media(max-width:1100px){.home-number-manage-tools{order:3;flex-basis:100%}}
@media(max-width:700px){.number-term-button{padding-right:68px!important}.home-number-manage-tools{display:grid;grid-template-columns:1fr 1fr}.home-number-manage-tools .home-entity-manage-select{grid-column:1/-1;width:100%;max-width:none}.home-number-manage-tools button{width:100%}}


/* v1.0.53 — number cards fully mirror upper image-button behavior */
.number-board-grid{display:grid!important;grid-template-columns:repeat(auto-fill,1.5in)!important;gap:6px!important;justify-content:start!important;align-items:start!important}
.number-card{position:relative!important;width:1.5in!important;min-width:1.5in!important;max-width:1.5in!important;height:1in!important;min-height:1in!important;max-height:1in!important}
.number-image-label{position:relative!important;display:block!important;width:1.5in!important;min-width:1.5in!important;max-width:1.5in!important;height:1in!important;min-height:1in!important;max-height:1in!important;padding:0!important;border:1px solid #5b4766!important;border-radius:8px!important;overflow:hidden!important;background-color:#1b1223!important;background-image:var(--number-bg,linear-gradient(135deg,#24162d,#120d18))!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;color:#fff!important;box-shadow:0 1px 4px #0005!important;transition:transform .16s ease,filter .16s ease,border-color .16s ease!important}
.number-image-label:hover{transform:translateY(-1px) scale(1.015);filter:saturate(1.06) brightness(1.05);border-color:#a36ac4!important}
.number-image-label.number-image-empty{background-image:linear-gradient(135deg,#24162d,#120d18)!important}
.number-image-label.number-image-empty::after{content:"ছবি যোগ করুন";position:absolute;inset:0;display:grid;place-items:center;color:#bba9c7;font-size:12px;font-weight:700;opacity:.72;pointer-events:none}
.number-image-label.number-image-custom::after{display:none!important}
.number-caption{position:absolute!important;top:6px!important;left:6px!important;right:auto!important;bottom:auto!important;z-index:2;display:inline-flex!important;align-items:center!important;gap:4px!important;max-width:calc(100% - 42px)!important;padding:3px 6px!important;border-radius:999px!important;background:rgba(7,8,10,.72)!important;border:1px solid rgba(255,255,255,.58)!important;box-shadow:0 1px 4px rgba(0,0,0,.40)!important;color:#fff!important;white-space:nowrap!important;overflow:hidden!important;backdrop-filter:blur(2px)}
.number-no,.number-name{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.92)!important;font-weight:950!important}.number-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.number-image-tools{position:absolute;top:5px;right:5px;z-index:7;display:flex;gap:2px;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-3px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
.number-text-tools{position:absolute;right:5px;bottom:5px;z-index:7;display:flex;gap:2px;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(3px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
.number-card:hover .number-image-tools,.number-card:focus-within .number-image-tools,.number-card:hover .number-text-tools,.number-card:focus-within .number-text-tools{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
.number-manager-selected{outline:3px solid #b37cff!important;outline-offset:2px!important;border-radius:9px!important}
.home-number-color-grid .number-image-label,.home-support-color-grid .number-image-label{background-color:#1b1223!important;color:#fff!important;border-color:#5b4766!important}
.home-number-color-grid .number-card b{color:#fff!important}
.home-number-color-grid .term{background:initial!important;border:initial!important;color:initial!important;box-shadow:initial!important;padding:initial!important}
.home-number-color-grid .term b{color:inherit!important}
.home-number-stage,.home-number-stage>#homeNumberListArea,#numberPageStage,#numberPageListArea{min-width:0}
#homeNumberWorkspace,#numberPageWorkspace{margin-top:8px}
@media(max-width:900px){.number-board-grid{grid-template-columns:repeat(auto-fill,1.5in)!important;min-width:0!important;overflow-x:auto}.number-card,.number-image-label{width:1.5in!important;min-width:1.5in!important;max-width:1.5in!important}}


/* v1.0.55 — entity headline treeview; old 80-item back button removed */
.entity-tree-toolbar{display:block!important;padding:8px 10px!important;overflow:visible!important}
.entity-treeview{width:100%;min-width:0;border:1px solid #4d315d;border-radius:10px;background:#100a16;overflow:hidden}
.entity-tree-root{width:100%;min-height:39px;display:flex;align-items:center;gap:8px;padding:8px 11px;border:0;background:linear-gradient(90deg,#291638,#1a1023);color:#fff;text-align:left;cursor:pointer}
.entity-tree-root:hover{background:linear-gradient(90deg,#382049,#21142c)}
.entity-tree-root b{font-size:16px;line-height:1.2}.entity-tree-caret{width:16px;color:#e5bd68;font-weight:900;text-align:center}
.entity-tree-children{max-height:310px;overflow:auto;padding:5px 7px 7px 25px;border-top:1px solid #3c2848;background:#0d0912;scrollbar-width:thin}
.entity-treeview.root-collapsed .entity-tree-children{display:none!important}
.entity-tree-loading,.entity-tree-empty{display:block;padding:8px 4px;color:#a994b4;font-size:11px}
.entity-tree-branch{position:relative;margin:3px 0;border-left:1px solid #594065;padding-left:11px}
.entity-tree-branch:before{content:'';position:absolute;left:0;top:18px;width:10px;border-top:1px solid #594065}
.entity-tree-parent-node{width:100%;min-height:34px;display:flex;align-items:center;gap:6px;padding:6px 8px;border:1px solid #4a3157;border-radius:8px;background:#171020;color:#e9ddef;text-align:left;cursor:pointer}
.entity-tree-parent-node:hover,.entity-tree-branch.active>.entity-tree-parent-node{border-color:#8e59aa;background:#251632;color:#fff}
.entity-tree-branch-caret{width:14px;color:#d8a853;font-weight:900}.entity-tree-code{color:#efbf55;font-weight:900}.entity-tree-parent-node b{font-size:13px}.entity-tree-parent-node small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ab9ab6;font-size:10px}
.entity-tree-subtree{display:none;margin:3px 0 4px 18px;padding-left:12px;border-left:1px dashed #493455}
.entity-tree-branch.open>.entity-tree-subtree{display:grid;gap:3px}
.entity-tree-leaf{position:relative;width:100%;min-height:30px;display:grid;grid-template-columns:10px auto minmax(0,1fr);align-items:center;gap:6px;padding:5px 7px;border:1px solid transparent;border-radius:7px;background:transparent;color:#cfc0d7;text-align:left;cursor:pointer}
.entity-tree-leaf:hover{background:#1b1024;border-color:#49305a;color:#fff}.entity-tree-leaf.active{background:#2b1738;border-color:#8e59aa;color:#fff}
.entity-tree-leaf-line{width:8px;border-top:1px solid #5a4065}.entity-tree-leaf-index{color:#c69a45;font-size:9px;font-weight:800;white-space:nowrap}.entity-tree-leaf-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
.entity-tree-no-leaf{display:block;padding:6px 7px;color:#8f7e9a;font-size:10px}
html.light .entity-treeview{background:#fff;border-color:#d2c1db}html.light .entity-tree-root{background:#f3ebf7;color:#321d3b}html.light .entity-tree-children{background:#faf7fb;border-color:#ded0e5}html.light .entity-tree-parent-node{background:#fff;color:#3a2443;border-color:#d8c9df}html.light .entity-tree-leaf{color:#5b4864}html.light .entity-tree-leaf:hover,html.light .entity-tree-leaf.active{background:#f2e8f7;color:#31183d;border-color:#b99ac8}
@media(max-width:700px){.entity-tree-children{max-height:260px;padding-left:17px}.entity-tree-parent-node small{display:none}.entity-tree-leaf{grid-template-columns:8px auto minmax(0,1fr)}.entity-tree-leaf-text{font-size:9px}}


/* v1.0.57 — inline subtree results inside the same branch area */
.entity-subgroup-workspace{display:grid;grid-template-columns:minmax(280px,36%) minmax(0,1fr);gap:12px;align-items:start;padding:0 10px 8px}
.entity-reader-page .entity-subgroup-workspace{padding:0 10px 8px}
.entity-subgroup-list{min-width:0}
.entity-subgroup-detail{min-width:0;border:1px solid #4a3159;border-radius:12px;background:#120c18;padding:10px 10px 12px;position:sticky;top:6px}
.entity-subgroup-detail-empty{min-height:110px;display:flex;align-items:center;justify-content:center;text-align:center;padding:18px 14px;color:#bfa8cb;font-size:12px;border:1px dashed #5a3a6d;border-radius:10px;background:rgba(255,255,255,.02)}
.entity-subgroup-detail-body:empty{display:none}
.entity-subgroup-has-inline-detail .entity-subgroup-detail-empty{display:none!important}
.entity-subgroup-active .entity-subgroup-list .doc-body{display:none!important}
.entity-subgroup-active .entity-subgroup-list .doc-block{margin-left:0!important;margin-right:0!important}
.entity-subgroup-active .entity-subgroup-list .doc-line-row{margin-right:0}
.entity-subgroup-active .doc-inline-selected>.doc-line-row{outline:2px solid #d9b24d;outline-offset:2px;border-radius:10px}
.entity-subgroup-active .entity-subgroup-detail .doc-body{display:block!important}
.entity-subgroup-active .entity-subgroup-detail .doc-actions{justify-content:flex-end;flex-wrap:wrap}
.entity-subgroup-active .entity-subgroup-detail .doc-paper{min-height:90px}
.entity-reader-page .entity-subgroup-detail{background:#0f0a14;border-color:#4b315a}
html.light .entity-subgroup-detail{background:#fff;border-color:#d8c8df}
html.light .entity-subgroup-detail-empty{background:#faf7fc;border-color:#d6c8de;color:#6a5a74}
@media (max-width:980px){.entity-subgroup-workspace{grid-template-columns:1fr}.entity-subgroup-detail{position:static;order:2}.entity-subgroup-list{order:1}}


/* v1.0.58 — true three-column Entity workspace: Tree | Subtree headlines | Result */
#homeEntityWorkspace{
  display:grid;
  grid-template-columns:minmax(360px,38%) minmax(0,62%);
  grid-template-rows:minmax(0,1fr);
  height:76vh;
  min-height:650px;
  max-height:860px;
  align-items:stretch;
  overflow:hidden;
}
#homeEntityWorkspace>.entity-tree-toolbar{
  grid-column:1;
  grid-row:1;
  height:100%;
  min-height:0;
  overflow:hidden!important;
  padding:8px!important;
  border-right:1px solid #3a2847;
  border-bottom:0!important;
  background:#100a16;
}
#homeEntityWorkspace .entity-treeview{
  height:100%;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
#homeEntityWorkspace .entity-tree-root{flex:0 0 auto}
#homeEntityWorkspace .entity-tree-children{
  flex:1 1 auto;
  min-height:0;
  max-height:none!important;
  overflow:auto;
}
#homeEntityWorkspace>.entity-inline-frame{
  grid-column:2;
  grid-row:1;
  width:100%;
  height:100%!important;
  min-height:0!important;
  border-left:0;
}
/* The iframe already splits this right area into subtree headlines + selected result. */
.entity-embedded .entity-subgroup-active .entity-subgroup-workspace{
  grid-template-columns:minmax(260px,36%) minmax(0,64%);
  gap:10px;
}
.entity-embedded .entity-subgroup-active .entity-subgroup-list{
  min-width:0;
  max-height:calc(76vh - 185px);
  overflow:auto;
  padding-right:3px;
}
.entity-embedded .entity-subgroup-active .entity-subgroup-detail{
  min-width:0;
  max-height:calc(76vh - 185px);
  overflow:auto;
  position:sticky;
  top:4px;
}
@media(max-width:1180px){
  #homeEntityWorkspace{grid-template-columns:minmax(300px,34%) minmax(0,66%)}
  .entity-embedded .entity-subgroup-active .entity-subgroup-workspace{grid-template-columns:minmax(230px,38%) minmax(0,62%)}
}
@media(max-width:900px){
  #homeEntityWorkspace{display:block;height:auto;max-height:none;min-height:0;overflow:visible}
  #homeEntityWorkspace>.entity-tree-toolbar{height:auto;max-height:320px;border-right:0;border-bottom:1px solid #3a2847!important}
  #homeEntityWorkspace .entity-treeview{height:auto;max-height:300px}
  #homeEntityWorkspace .entity-tree-children{max-height:250px!important}
  #homeEntityWorkspace>.entity-inline-frame{height:76vh!important;min-height:560px!important}
  .entity-embedded .entity-subgroup-active .entity-subgroup-workspace{grid-template-columns:1fr}
  .entity-embedded .entity-subgroup-active .entity-subgroup-list,.entity-embedded .entity-subgroup-active .entity-subgroup-detail{max-height:none;overflow:visible;position:static}
}


/* v1.0.62 — strict Tree -> middle paragraph -> right result selection chain */
.entity-subgroup-active .doc-block.doc-tree-selected>.doc-line-row{outline:2px solid #f2c84b!important;outline-offset:2px;border-radius:10px;background:#21162b}
.entity-subgroup-active .doc-block.doc-tree-selected .doc-line{border-color:#a977d2!important;box-shadow:0 0 0 1px rgba(242,200,75,.18)}
.entity-subgroup-active .doc-block.doc-tree-selected .doc-order{color:#ffd96a!important;font-weight:900}
.entity-tree-leaf.active{box-shadow:inset 3px 0 0 #f0c64e}


/* v1.0.63 — desktop column proportions: compact tree | wider paragraph list | result unchanged */
@media (min-width:1181px){
  #homeEntityWorkspace{grid-template-columns:minmax(220px,20%) minmax(0,80%)!important}
  .entity-embedded .entity-subgroup-active .entity-subgroup-workspace{grid-template-columns:minmax(340px,50%) minmax(0,50%)!important;gap:10px}
}
@media (min-width:901px) and (max-width:1180px){
  #homeEntityWorkspace{grid-template-columns:minmax(220px,22%) minmax(0,78%)!important}
  .entity-embedded .entity-subgroup-active .entity-subgroup-workspace{grid-template-columns:minmax(300px,50%) minmax(0,50%)!important;gap:9px}
}
/* Keep selection visible by scrolling the middle list only, not the whole page. */
.entity-embedded .entity-subgroup-active .entity-subgroup-list{overscroll-behavior:contain;scroll-behavior:auto}
.entity-embedded .entity-subgroup-active .entity-subgroup-detail{overscroll-behavior:contain}
#homeEntityWorkspace .entity-tree-children{overscroll-behavior:contain}


/* v1.0.64 — keep root title visible and stabilize the three-column selection chain */
#homeEntityWorkspace{scroll-margin-top:96px}
#homeEntityWorkspace>.entity-tree-toolbar{position:relative}
#homeEntityWorkspace .entity-tree-root{position:sticky;top:0;z-index:12;box-shadow:0 2px 0 rgba(91,53,108,.35)}
#homeEntityWorkspace .entity-tree-root.root-visible{visibility:visible!important;opacity:1!important}
.entity-embedded .entity-subgroup-active .doc-block.doc-tree-selected>.doc-line-row{outline:2px solid #f2c84b!important;outline-offset:2px;border-radius:10px}
.entity-embedded .entity-subgroup-active .entity-subgroup-detail-body:not(:empty){display:block!important}
.entity-embedded .entity-subgroup-active .entity-subgroup-detail .doc-body{display:block!important}


/* v1.0.66 — final column is a single synchronized result surface */
.entity-subgroup-active .entity-subgroup-detail-body>.doc-body{display:block!important;margin:0!important}
.entity-subgroup-active .entity-subgroup-detail-body>.doc-body~.doc-body{display:none!important}
.entity-subgroup-active .doc-block.doc-tree-selected>.doc-line-row{outline:2px solid #f2c84b!important;box-shadow:0 0 0 1px rgba(169,119,210,.45);}


/* v1.0.66 — compact checkbox/paragraph label + longer middle text line */
.entity-subgroup-active .doc-line-row{grid-template-columns:78px minmax(0,1fr)!important;gap:6px!important}
.entity-subgroup-active .doc-bulk-select{min-width:78px!important;width:78px!important;padding:0 6px!important;gap:5px!important;justify-content:flex-start!important}
.entity-subgroup-active .doc-bulk-select .doc-order{min-width:0!important;margin:0!important;font-size:10px!important;color:#b79bc6!important;white-space:nowrap!important}
.entity-subgroup-active .doc-line{grid-template-columns:minmax(0,1fr) auto 18px!important;gap:7px!important;padding:0 8px!important}
.entity-subgroup-active .doc-preview{width:100%!important;max-width:none!important;min-width:0!important;display:block!important;text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}
.entity-subgroup-active .doc-edited-mark{margin-left:4px}
.entity-subgroup-active .doc-chevron{width:16px!important}
.entity-embedded .entity-subgroup-active .entity-subgroup-workspace{grid-template-columns:minmax(410px,58%) minmax(0,42%)!important}
@media(min-width:901px) and (max-width:1180px){.entity-embedded .entity-subgroup-active .entity-subgroup-workspace{grid-template-columns:minmax(360px,58%) minmax(0,42%)!important}}
@media(max-width:900px){.entity-subgroup-active .doc-line-row{grid-template-columns:72px minmax(0,1fr)!important}.entity-subgroup-active .doc-bulk-select{min-width:72px!important;width:72px!important}.entity-embedded .entity-subgroup-active .entity-subgroup-workspace{grid-template-columns:1fr!important}}


/* v1.0.67 — persistent rich text colors/highlights across tree, list and result */
.doc-display.doc-paper [style*="color"],
.doc-preview.doc-preview-rich [style*="color"],
.entity-tree-leaf-rich [style*="color"]{color:var(--saved-rich-color,inherit)}
.doc-display.doc-paper span[style*="color"],.doc-display.doc-paper font[style*="color"],.doc-display.doc-paper b[style*="color"],.doc-display.doc-paper strong[style*="color"],.doc-display.doc-paper i[style*="color"],.doc-display.doc-paper em[style*="color"],.doc-display.doc-paper u[style*="color"],
.doc-preview.doc-preview-rich span[style*="color"],.doc-preview.doc-preview-rich font[style*="color"],.doc-preview.doc-preview-rich b[style*="color"],.doc-preview.doc-preview-rich strong[style*="color"],.doc-preview.doc-preview-rich i[style*="color"],.doc-preview.doc-preview-rich em[style*="color"],.doc-preview.doc-preview-rich u[style*="color"],
.entity-tree-leaf-rich span[style*="color"],.entity-tree-leaf-rich font[style*="color"],.entity-tree-leaf-rich b[style*="color"],.entity-tree-leaf-rich strong[style*="color"],.entity-tree-leaf-rich i[style*="color"],.entity-tree-leaf-rich em[style*="color"],.entity-tree-leaf-rich u[style*="color"]{text-shadow:none!important}
.doc-display.doc-paper [style*="background-color"],.doc-preview.doc-preview-rich [style*="background-color"],.entity-tree-leaf-rich [style*="background-color"]{-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:2px;padding-left:.04em;padding-right:.04em}
.entity-tree-leaf-rich{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.entity-tree-leaf-rich *{display:inline!important;white-space:nowrap!important;margin:0!important}


/* v1.0.70 — clean, organized rich-text/table editing toolbar */
.entity-subgroup-detail .doc-editor{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:hidden;
  box-sizing:border-box;
}
.entity-subgroup-detail .doc-edit-hint{
  margin:0 0 8px;
  padding:7px 9px;
  border:1px solid #4b3358;
  border-radius:8px;
  background:#100b15;
  color:#c9b5d2;
  font-size:10px;
  line-height:1.45;
}
.entity-subgroup-detail .doc-unified-toolbar{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:9px!important;
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  margin:8px 0 0!important;
  padding:9px!important;
  border:1px solid #50335f!important;
  border-radius:11px!important;
  background:#120c18!important;
  color:#f4edf7!important;
  overflow:visible!important;
}
.entity-subgroup-detail .doc-color-stack{
  display:grid;
  grid-template-columns:1fr;
  gap:6px;
  min-width:0;
  padding:0 0 9px;
  border-right:0!important;
  border-bottom:1px solid #3f2a49;
}
.entity-subgroup-detail .doc-color-group{
  display:grid!important;
  grid-template-columns:68px repeat(7,24px) minmax(88px,1fr);
  gap:5px!important;
  align-items:center;
  min-height:30px!important;
  min-width:0;
  padding:4px 6px;
  border:1px solid #382542;
  border-radius:8px;
  background:#0d0912;
}
.entity-subgroup-detail .doc-color-group>b{
  min-width:0!important;
  width:auto!important;
  color:#e8d9ef!important;
  font-size:10px!important;
  white-space:nowrap;
}
.entity-subgroup-detail .doc-color-btn{
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  border-radius:6px!important;
  box-shadow:0 0 0 1px #7c6b84!important;
}
.entity-subgroup-detail .doc-custom-label{
  justify-self:end;
  display:inline-flex!important;
  align-items:center;
  justify-content:flex-end;
  gap:5px!important;
  min-width:0;
  padding:2px 5px!important;
  margin:0!important;
  border:1px solid #463050!important;
  border-radius:6px;
  background:#17101d;
  color:#d9c8e1;
  font-size:9px!important;
  white-space:nowrap;
}
.entity-subgroup-detail .doc-custom-color{
  width:28px!important;
  height:23px!important;
  flex:0 0 28px;
}

.entity-subgroup-detail .doc-table-toolbar-inline{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
  min-width:0;
  width:100%;
  max-width:100%;
  margin:0!important;
  padding:0!important;
  color:#f1e8f5!important;
  background:transparent!important;
  border:0!important;
}
.entity-subgroup-detail .doc-table-toolbar-title{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  min-height:24px!important;
  padding:0 2px 4px!important;
  border-bottom:1px solid #3f2a49!important;
}
.entity-subgroup-detail .doc-table-toolbar-title>b{
  color:#f0e3f5!important;
  font-size:10px!important;
}
.entity-subgroup-detail .doc-table-status{
  max-width:60%;
  color:#ab94b8!important;
  font-size:8.5px!important;
  line-height:1.3;
  text-align:right;
  white-space:normal!important;
}
.entity-subgroup-detail .doc-table-tool-row{
  position:relative;
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  min-width:0;
  margin:0!important;
  padding:28px 7px 7px!important;
  border:1px solid #392543;
  border-radius:8px;
  background:#0e0913;
}
.entity-subgroup-detail .doc-table-tool-row::before{
  position:absolute;
  top:5px;
  left:7px;
  color:#d9c4e3;
  font-size:9px;
  font-weight:800;
  line-height:1;
}
.entity-subgroup-detail .doc-table-toolbar-inline .doc-table-tool-row:nth-child(2)::before{
  content:"টেবিল / রো / কলাম";
}
.entity-subgroup-detail .doc-table-toolbar-inline .doc-table-tool-row:nth-child(3)::before{
  content:"সেল / রঙ / বর্ডার";
}
.entity-subgroup-detail .doc-table-toolbar-inline .doc-table-tool-row:nth-child(4)::before{
  content:"কলাম ও রো-এর আকার";
}
.entity-subgroup-detail .doc-table-tool-row label{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  min-height:28px!important;
  padding:3px 5px!important;
  border:1px solid #d2c6d8!important;
  border-radius:6px!important;
  background:#fff!important;
  color:#37243f!important;
  font-size:9px!important;
  white-space:nowrap!important;
}
.entity-subgroup-detail .doc-table-tool-row input[type="number"]{
  width:46px!important;
  height:22px!important;
  padding:2px 4px!important;
  font-size:9px!important;
}
.entity-subgroup-detail .doc-table-tool-row input[type="color"]{
  width:27px!important;
  height:22px!important;
  padding:1px!important;
}
.entity-subgroup-detail .doc-table-tool-row select{
  height:24px!important;
  padding:2px 5px!important;
  font-size:9px!important;
}
.entity-subgroup-detail .doc-table-tool-btn,
.entity-subgroup-detail .doc-table-apply-bg,
.entity-subgroup-detail .doc-table-apply-text{
  min-height:28px!important;
  padding:5px 7px!important;
  border-radius:6px!important;
  font-size:9px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.entity-subgroup-detail .doc-table-tool-btn.primary{
  font-weight:800;
}
.entity-subgroup-detail .doc-editor-actions{
  display:flex!important;
  justify-content:flex-end!important;
  gap:8px!important;
  margin-top:10px!important;
  padding-top:9px;
  border-top:1px solid #3d2947;
}
.entity-subgroup-detail .doc-editor-actions button{
  min-width:92px;
  min-height:36px;
  padding:7px 14px;
  font-weight:800;
}
.entity-subgroup-detail .doc-save-status{
  min-height:17px;
  margin-top:5px;
  text-align:right;
  font-size:10px;
}

/* prevent the editing toolbar from creating a horizontal scrollbar */
.entity-subgroup-detail,
.entity-subgroup-detail-body,
.entity-subgroup-detail .doc-body,
.entity-subgroup-detail .doc-editor,
.entity-subgroup-detail .doc-unified-toolbar,
.entity-subgroup-detail .doc-table-toolbar-inline{
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
.entity-subgroup-detail .doc-editor *{
  box-sizing:border-box;
}

html.light .entity-subgroup-detail .doc-unified-toolbar{
  background:#fbf8fc!important;
  border-color:#d9cbe0!important;
  color:#2f1d37!important;
}
html.light .entity-subgroup-detail .doc-color-stack{
  border-bottom-color:#ded3e4;
}
html.light .entity-subgroup-detail .doc-color-group,
html.light .entity-subgroup-detail .doc-table-tool-row{
  background:#fff;
  border-color:#ded3e4;
}
html.light .entity-subgroup-detail .doc-color-group>b,
html.light .entity-subgroup-detail .doc-table-tool-row::before,
html.light .entity-subgroup-detail .doc-table-toolbar-title>b{
  color:#4a3156!important;
}
html.light .entity-subgroup-detail .doc-custom-label{
  background:#f7f1fa;
  color:#4d3857;
  border-color:#d8c9df!important;
}
html.light .entity-subgroup-detail .doc-table-status{
  color:#76657e!important;
}

@media(max-width:620px){
  .entity-subgroup-detail .doc-color-group{
    grid-template-columns:64px repeat(4,24px);
  }
  .entity-subgroup-detail .doc-color-group .doc-custom-label{
    grid-column:1/-1;
    justify-self:start;
  }
  .entity-subgroup-detail .doc-table-toolbar-title{
    align-items:flex-start!important;
    flex-direction:column!important;
  }
  .entity-subgroup-detail .doc-table-status{
    max-width:100%;
    text-align:left;
  }
  .entity-subgroup-detail .doc-editor-actions button{
    flex:1;
    min-width:0;
  }
}


/* v1.0.71 — compact icon-only editor toolbar */
.entity-subgroup-detail .doc-edit-hint,
.doc-editor .doc-edit-hint{
  display:none!important;
}
.entity-subgroup-detail .doc-unified-toolbar,
.doc-unified-toolbar,
.doc-color-toolbar{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:5px 0 0!important;
  padding:5px!important;
  border:1px solid #4a3158!important;
  border-radius:8px!important;
  background:#100a15!important;
  overflow:visible!important;
}
.entity-subgroup-detail .doc-color-stack,
.doc-color-stack{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
}
.entity-subgroup-detail .doc-color-group,
.doc-unified-toolbar .doc-color-group,
.doc-color-toolbar .doc-color-group{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:3px!important;
  min-height:28px!important;
  padding:2px 4px!important;
  border:1px solid #382442!important;
  border-radius:7px!important;
  background:#0c0810!important;
}
.doc-toolbar-caption{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:24px!important;
  min-width:24px!important;
  height:24px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #675171!important;
  border-radius:6px!important;
  color:#f4e8f8!important;
  font:800 12px/1 "SolaimanLipi","Noto Sans Bengali",sans-serif!important;
  background:#24152d!important;
}
.entity-subgroup-detail .doc-color-btn,
.doc-color-btn{
  width:22px!important;
  min-width:22px!important;
  height:22px!important;
  padding:0!important;
  border-radius:5px!important;
  border:1px solid #bbaec1!important;
  box-shadow:none!important;
}
.entity-subgroup-detail .doc-custom-label,
.doc-custom-label{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px!important;
  width:auto!important;
  min-width:30px!important;
  min-height:24px!important;
  margin:0!important;
  padding:1px 3px!important;
  border:1px solid #594161!important;
  border-radius:6px!important;
  background:#1a1020!important;
  color:#fff!important;
  overflow:hidden!important;
  cursor:pointer;
}
.doc-tool-mini-label{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  width:14px;
  font-size:10px!important;
  line-height:1!important;
}
.entity-subgroup-detail .doc-custom-color,
.doc-custom-color{
  width:18px!important;
  min-width:18px!important;
  height:18px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  cursor:pointer;
}

.entity-subgroup-detail .doc-table-toolbar-inline,
.doc-table-toolbar-inline{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:4px!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  overflow:visible!important;
}
.entity-subgroup-detail .doc-table-toolbar-title,
.doc-table-toolbar-inline .doc-table-toolbar-title{
  display:flex!important;
  align-items:center!important;
  gap:3px!important;
  min-height:26px!important;
  padding:0 3px!important;
  border:0!important;
}
.entity-subgroup-detail .doc-table-toolbar-title>b,
.doc-table-toolbar-inline .doc-table-toolbar-title>b{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:26px!important;
  height:26px!important;
  border:1px solid #675171!important;
  border-radius:6px!important;
  background:#24152d!important;
  color:#fff!important;
  font-size:13px!important;
}
.entity-subgroup-detail .doc-table-status,
.doc-table-toolbar-inline .doc-table-status{
  display:none!important;
}
.entity-subgroup-detail .doc-table-tool-row,
.doc-table-toolbar-inline .doc-table-tool-row,
.entity-subgroup-detail .doc-table-size-row{
  display:flex!important;
  position:static!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:3px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.entity-subgroup-detail .doc-table-tool-row::before,
.doc-table-toolbar-inline .doc-table-tool-row::before{
  display:none!important;
  content:none!important;
}

.doc-icon-tool,
.entity-subgroup-detail .doc-icon-tool,
.entity-subgroup-detail .doc-table-tool-btn.doc-icon-tool,
.entity-subgroup-detail .doc-table-apply-bg.doc-icon-tool,
.entity-subgroup-detail .doc-table-apply-text.doc-icon-tool{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  width:30px!important;
  min-width:30px!important;
  max-width:30px!important;
  height:30px!important;
  min-height:30px!important;
  padding:0!important;
  margin:0!important;
  border-radius:7px!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.doc-icon-tool[data-tip]::after{
  content:attr(data-tip);
  position:absolute;
  z-index:9999;
  left:50%;
  bottom:calc(100% + 7px);
  transform:translateX(-50%) translateY(3px);
  min-width:max-content;
  max-width:180px;
  padding:5px 8px;
  border:1px solid #70537d;
  border-radius:6px;
  background:#160d1c;
  color:#fff;
  box-shadow:0 5px 18px rgba(0,0,0,.35);
  font-size:10px;
  font-weight:600;
  line-height:1.2;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .12s ease,transform .12s ease,visibility .12s ease;
}
.doc-icon-tool[data-tip]:hover::after,
.doc-icon-tool[data-tip]:focus-visible::after{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0);
}
.doc-mini-field,
.entity-subgroup-detail .doc-mini-field,
.entity-subgroup-detail .doc-table-tool-row label.doc-mini-field,
.entity-subgroup-detail .doc-table-mini-color{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px!important;
  min-width:0!important;
  min-height:30px!important;
  height:30px!important;
  margin:0!important;
  padding:2px 3px!important;
  border:1px solid #594161!important;
  border-radius:7px!important;
  background:#17101d!important;
  color:#e9ddef!important;
  font-size:8px!important;
  white-space:nowrap!important;
}
.doc-mini-field>span,
.entity-subgroup-detail .doc-table-mini-color>span{
  min-width:13px;
  text-align:center;
  font-weight:800;
}
.doc-mini-field input[type="number"],
.entity-subgroup-detail .doc-mini-field input[type="number"]{
  width:36px!important;
  height:22px!important;
  padding:1px 3px!important;
  border-radius:4px!important;
  font-size:9px!important;
}
.doc-target-field select,
.entity-subgroup-detail .doc-target-field select{
  width:62px!important;
  max-width:62px!important;
  height:22px!important;
  padding:1px 2px!important;
  font-size:8px!important;
}
.entity-subgroup-detail .doc-table-mini-color input[type="color"]{
  width:20px!important;
  height:20px!important;
  padding:0!important;
}
.entity-subgroup-detail .doc-actions,
.doc-actions{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:4px!important;
  margin-top:7px!important;
}
.entity-subgroup-detail .doc-editor-actions,
.doc-editor-actions{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:4px!important;
  margin-top:5px!important;
  padding-top:5px!important;
  border-top:1px solid #392541!important;
}
.entity-subgroup-detail .doc-save-status,
.doc-save-status{
  min-height:13px!important;
  margin-top:2px!important;
  font-size:9px!important;
}
.entity-subgroup-detail .doc-editor,
.entity-subgroup-detail .doc-unified-toolbar,
.entity-subgroup-detail .doc-table-toolbar-inline{
  overflow:visible!important;
}

/* compact light mode */
html.light .doc-unified-toolbar,
html.light .doc-color-toolbar{
  background:#faf7fc!important;
  border-color:#d6c8df!important;
}
html.light .doc-unified-toolbar .doc-color-group,
html.light .doc-color-toolbar .doc-color-group,
html.light .doc-mini-field,
html.light .entity-subgroup-detail .doc-table-mini-color{
  background:#fff!important;
  border-color:#d5c7dc!important;
  color:#3d2a47!important;
}
html.light .doc-toolbar-caption,
html.light .doc-table-toolbar-title>b{
  background:#f3ebf7!important;
  border-color:#cbb9d4!important;
  color:#4a3157!important;
}

@media(max-width:720px){
  .entity-subgroup-detail .doc-unified-toolbar,
  .doc-unified-toolbar,
  .doc-color-toolbar{
    gap:3px!important;
    padding:4px!important;
  }
  .doc-icon-tool,
  .entity-subgroup-detail .doc-icon-tool{
    width:28px!important;
    min-width:28px!important;
    max-width:28px!important;
    height:28px!important;
    min-height:28px!important;
  }
  .entity-subgroup-detail .doc-color-btn,
  .doc-color-btn{
    width:20px!important;
    min-width:20px!important;
    height:20px!important;
  }
}


/* v1.0.73 — move Save/Cancel from bottom to the upper action row */
.doc-edit-commit-actions{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-left:4px;
}
.doc-edit-commit-actions[hidden]{
  display:none!important;
}
.doc-actions{
  min-height:34px;
}
.doc-actions .doc-edit-commit-actions .doc-save-btn{
  background:#6d31b3!important;
  border-color:#8d55cb!important;
  color:#fff!important;
}
.doc-actions .doc-edit-commit-actions .doc-cancel-btn{
  background:#24152d!important;
  border-color:#594164!important;
  color:#fff!important;
}
.doc-editor-actions{
  display:none!important;
}
.entity-subgroup-detail .doc-save-status,
.doc-save-status{
  margin-top:3px!important;
  min-height:12px!important;
}


/* v1.0.74 — no duplicate blank principal rows + fixed compact toolbar rows */
.entity-parent-focus-mode>.entity-remaining-parent-label,
.entity-parent-focus-mode>.entity-subgroup:not(.entity-subgroup-active){display:none!important}

/* Keep the top paragraph action row compact and aligned. */
.entity-subgroup-detail .doc-actions,
.doc-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:nowrap!important;
  gap:4px!important;
  min-height:32px!important;
  margin:5px 0!important;
  padding:0!important;
  border:0!important;
}
.doc-edit-commit-actions{display:inline-flex;align-items:center;gap:4px;margin-left:4px}
.doc-edit-commit-actions[hidden]{display:none!important}

/* The editing tools are three deliberate rows instead of one wrapping cloud. */
.entity-subgroup-detail .doc-unified-toolbar,
.doc-unified-toolbar,
.doc-color-toolbar{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-flow:row!important;
  gap:4px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:4px 0 0!important;
  padding:5px!important;
  border:1px solid #4a3158!important;
  border-radius:8px!important;
  background:#100a15!important;
  overflow:visible!important;
}

/* Row 1 + Row 2: text colour and highlight, each on its own compact line. */
.entity-subgroup-detail .doc-color-stack,
.doc-color-stack{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:3px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
.entity-subgroup-detail .doc-color-group,
.doc-unified-toolbar .doc-color-group,
.doc-color-toolbar .doc-color-group{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:3px!important;
  width:max-content!important;
  max-width:100%!important;
  min-height:26px!important;
  margin:0!important;
  padding:2px 4px!important;
  border:1px solid #382442!important;
  border-radius:7px!important;
  background:#0c0810!important;
}

/* Row 3+: table tools are grouped into predictable lines. */
.entity-subgroup-detail .doc-table-toolbar-inline,
.doc-table-toolbar-inline{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  gap:3px 5px!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  overflow:visible!important;
}
.entity-subgroup-detail .doc-table-toolbar-title,
.doc-table-toolbar-inline .doc-table-toolbar-title{
  grid-column:1;
  grid-row:1;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-width:26px!important;
  min-height:28px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
.entity-subgroup-detail .doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(1),
.doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(1){grid-column:2;grid-row:1}
.entity-subgroup-detail .doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(2),
.doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(2){grid-column:1/-1;grid-row:2}
.entity-subgroup-detail .doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(3),
.doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(3){grid-column:1/-1;grid-row:3}
.entity-subgroup-detail .doc-table-tool-row,
.doc-table-toolbar-inline .doc-table-tool-row,
.entity-subgroup-detail .doc-table-size-row{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:3px!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  overflow:visible!important;
}

/* Make every compact control the same visual rhythm. */
.doc-icon-tool,
.entity-subgroup-detail .doc-icon-tool,
.entity-subgroup-detail .doc-table-tool-btn.doc-icon-tool,
.entity-subgroup-detail .doc-table-apply-bg.doc-icon-tool,
.entity-subgroup-detail .doc-table-apply-text.doc-icon-tool{
  width:28px!important;
  min-width:28px!important;
  max-width:28px!important;
  height:28px!important;
  min-height:28px!important;
  padding:0!important;
  margin:0!important;
  border-radius:6px!important;
  font-size:11px!important;
  line-height:1!important;
}
.doc-toolbar-caption,
.entity-subgroup-detail .doc-table-toolbar-title>b{
  width:24px!important;
  min-width:24px!important;
  height:24px!important;
  min-height:24px!important;
}
.entity-subgroup-detail .doc-color-btn,
.doc-color-btn{width:21px!important;min-width:21px!important;height:21px!important}
.doc-mini-field,
.entity-subgroup-detail .doc-mini-field,
.entity-subgroup-detail .doc-table-tool-row label.doc-mini-field,
.entity-subgroup-detail .doc-table-mini-color{
  min-height:28px!important;
  height:28px!important;
  padding:2px 3px!important;
  border-radius:6px!important;
}
.doc-mini-field input[type="number"],
.entity-subgroup-detail .doc-mini-field input[type="number"]{
  width:35px!important;height:21px!important;padding:1px 3px!important
}
.doc-target-field select,
.entity-subgroup-detail .doc-target-field select{width:60px!important;max-width:60px!important;height:21px!important}
.entity-subgroup-detail .doc-table-mini-color input[type="color"]{width:19px!important;height:19px!important}

/* Save/Cancel are already in the upper action row; keep the obsolete bottom row gone. */
.doc-editor-actions{display:none!important}
.entity-subgroup-detail .doc-save-status,.doc-save-status{min-height:11px!important;margin:2px 0 0!important;font-size:9px!important}

@media(max-width:760px){
  .entity-subgroup-detail .doc-actions,.doc-actions{flex-wrap:wrap!important}
  .entity-subgroup-detail .doc-table-toolbar-inline,.doc-table-toolbar-inline{grid-template-columns:1fr!important}
  .entity-subgroup-detail .doc-table-toolbar-title,.doc-table-toolbar-inline .doc-table-toolbar-title,
  .entity-subgroup-detail .doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(1),
  .entity-subgroup-detail .doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(2),
  .entity-subgroup-detail .doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(3),
  .doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(1),
  .doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(2),
  .doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(3){grid-column:1!important;grid-row:auto!important}
  .entity-subgroup-detail .doc-table-tool-row,.doc-table-toolbar-inline .doc-table-tool-row{flex-wrap:wrap!important}
}


/* v1.0.75 — hard DOM-order toolbar layout matching the requested compact reference */
.doc-actions{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:4px!important;width:100%!important;min-height:32px!important;margin:4px 0 6px!important;padding:0 0 6px!important;border-bottom:1px solid #382441!important;overflow:visible!important}
.doc-quick-size-actions{display:inline-flex!important;align-items:center!important;gap:4px!important;flex:0 0 auto!important}
.doc-quick-size-actions[hidden]{display:none!important}
.doc-actions>.doc-quick-size-actions{order:1}
.doc-actions>.doc-add-above-btn{order:2}
.doc-actions>.doc-add-below-btn{order:3}
.doc-actions>.doc-edit-btn{order:4}
.doc-actions>.doc-delete-block-btn{order:5}
.doc-actions>.doc-close-btn{order:6}
.doc-actions>.doc-edit-commit-actions{order:7;margin-left:0!important}
.doc-actions .doc-mini-field{height:30px!important;min-height:30px!important;padding:2px 4px!important}
.doc-actions .doc-mini-field input[type="number"]{width:42px!important;height:22px!important}

.doc-unified-toolbar{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto auto!important;gap:4px!important;padding:5px!important;overflow:visible!important}
.doc-unified-toolbar>.doc-color-stack{grid-column:1!important;grid-row:1!important;display:grid!important;grid-template-columns:max-content!important;gap:3px!important;width:max-content!important;max-width:100%!important}
.doc-unified-toolbar>.doc-color-stack>.doc-color-group{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;width:max-content!important;max-width:100%!important;margin:0!important}
.doc-unified-toolbar>.doc-table-toolbar-inline{grid-column:1!important;grid-row:2!important;display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:3px 4px!important;width:100%!important;margin:0!important;padding:0!important}
.doc-table-toolbar-inline>.doc-table-toolbar-title{grid-column:1!important;grid-row:1!important;align-self:start!important}
.doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(1){grid-column:2!important;grid-row:1!important;display:flex!important;flex-wrap:nowrap!important;gap:3px!important;align-items:center!important}
.doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(2){grid-column:1/-1!important;grid-row:2!important;display:flex!important;flex-wrap:nowrap!important;gap:3px!important;align-items:center!important}
.doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(3){display:none!important}

/* exact compact sizing so the toolbar does not grow vertically */
.doc-toolbar-caption,.doc-table-toolbar-title>b{width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important}
.doc-color-btn{width:22px!important;min-width:22px!important;height:22px!important}
.doc-custom-label{min-height:24px!important;height:24px!important;padding:1px 3px!important}
.doc-icon-tool,.doc-table-tool-btn.doc-icon-tool,.doc-table-apply-bg.doc-icon-tool,.doc-table-apply-text.doc-icon-tool{width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important}
.doc-table-tool-row label.doc-mini-field,.doc-table-mini-color{height:30px!important;min-height:30px!important;padding:2px 3px!important}
.doc-table-tool-row label.doc-mini-field input[type="number"]{width:38px!important;height:22px!important}
.doc-target-field select{width:62px!important;height:22px!important}
.doc-table-mini-color input[type="color"]{width:20px!important;height:20px!important}
.doc-editor-actions{display:none!important}

@media(max-width:900px){
  .doc-actions{flex-wrap:wrap!important}
  .doc-unified-toolbar>.doc-table-toolbar-inline{grid-template-columns:28px minmax(0,1fr)!important}
  .doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(1),.doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(2){flex-wrap:wrap!important}
}


/* v1.0.76 — exact compact toolbar arrangement requested by user.
   Row 1: table icon + width/height/apply + paragraph actions + save/cancel
   Row 2: text colors + highlight colors on ONE line
   Row 3: table structure controls
   Row 4: cell/format controls
*/
.doc-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:4px!important;
  width:100%!important;
  min-height:32px!important;
  margin:4px 0 6px!important;
  padding:0 0 6px!important;
  border-bottom:1px solid #382441!important;
  overflow:visible!important;
}
.doc-top-table-icon{
  order:0;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 30px!important;
  width:30px!important;
  min-width:30px!important;
  height:30px!important;
  border:1px solid #675171!important;
  border-radius:7px!important;
  background:#24152d!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1!important;
}
.doc-actions>.doc-quick-size-actions{order:1}
.doc-actions>.doc-add-above-btn{order:2}
.doc-actions>.doc-add-below-btn{order:3}
.doc-actions>.doc-edit-btn{order:4}
.doc-actions>.doc-delete-block-btn{order:5}
.doc-actions>.doc-close-btn{order:6}
.doc-actions>.doc-edit-commit-actions{order:7!important;display:inline-flex;gap:4px!important;margin-left:0!important}
.doc-actions>.doc-edit-commit-actions[hidden]{display:none!important}
.doc-actions .doc-mini-field{height:30px!important;min-height:30px!important;padding:2px 4px!important}
.doc-actions .doc-mini-field input[type="number"]{width:42px!important;height:22px!important}

/* Editor toolbar is now three compact rows below the action row. */
.doc-unified-toolbar,
.entity-subgroup-detail .doc-unified-toolbar{
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:auto auto auto!important;
  row-gap:4px!important;
  column-gap:0!important;
  width:100%!important;
  max-width:100%!important;
  padding:5px!important;
  overflow:visible!important;
}

/* Text color + highlight must stay on one horizontal line. */
.doc-unified-toolbar>.doc-color-stack,
.entity-subgroup-detail .doc-unified-toolbar>.doc-color-stack{
  grid-column:1!important;
  grid-row:1!important;
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:4px!important;
  width:max-content!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
.doc-unified-toolbar>.doc-color-stack>.doc-color-group,
.entity-subgroup-detail .doc-unified-toolbar>.doc-color-stack>.doc-color-group{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:3px!important;
  width:max-content!important;
  min-width:0!important;
  margin:0!important;
  padding:2px 3px!important;
}

/* Hide the old second "table title" icon because it is now in the top row. */
.doc-table-toolbar-inline>.doc-table-toolbar-title,
.entity-subgroup-detail .doc-table-toolbar-inline>.doc-table-toolbar-title{
  display:none!important;
}

/* Table toolbar: first structure row, then formatting row. */
.doc-unified-toolbar>.doc-table-toolbar-inline,
.entity-subgroup-detail .doc-unified-toolbar>.doc-table-toolbar-inline{
  grid-column:1!important;
  grid-row:2/4!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:auto auto!important;
  gap:4px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
.doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(1),
.entity-subgroup-detail .doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(1){
  grid-column:1!important;
  grid-row:1!important;
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:3px!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
.doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(2),
.entity-subgroup-detail .doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(2){
  grid-column:1!important;
  grid-row:2!important;
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:3px!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
.doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(3),
.entity-subgroup-detail .doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(3){
  display:none!important;
}

/* Keep every compact control the same stable size. */
.doc-toolbar-caption{width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important}
.doc-color-btn{width:22px!important;min-width:22px!important;height:22px!important}
.doc-custom-label{height:24px!important;min-height:24px!important;padding:1px 3px!important}
.doc-icon-tool,
.doc-table-tool-btn.doc-icon-tool,
.doc-table-apply-bg.doc-icon-tool,
.doc-table-apply-text.doc-icon-tool{
  flex:0 0 30px!important;
  width:30px!important;
  min-width:30px!important;
  max-width:30px!important;
  height:30px!important;
  min-height:30px!important;
}
.doc-table-tool-row label.doc-mini-field,
.doc-table-mini-color{
  flex:0 0 auto!important;
  height:30px!important;
  min-height:30px!important;
  padding:2px 3px!important;
}
.doc-table-tool-row label.doc-mini-field input[type="number"]{width:38px!important;height:22px!important}
.doc-target-field select{width:62px!important;height:22px!important}
.doc-table-mini-color input[type="color"]{width:20px!important;height:20px!important}
.doc-editor-actions{display:none!important}

/* Do not let older media-query rules change the desktop order.
   On narrow screens, only then allow graceful wrapping. */
@media(min-width:901px){
  .doc-actions{flex-wrap:nowrap!important}
  .doc-unified-toolbar>.doc-color-stack{flex-wrap:nowrap!important}
  .doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(1),
  .doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(2){flex-wrap:nowrap!important}
}
@media(max-width:900px){
  .doc-actions{flex-wrap:wrap!important}
  .doc-unified-toolbar>.doc-color-stack{flex-wrap:wrap!important;width:100%!important}
  .doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(1),
  .doc-table-toolbar-inline>.doc-table-tool-row:nth-of-type(2){flex-wrap:wrap!important}
}

/* v1.0.77 — keep the final highlight custom-color picker inside the toolbar */
.doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2),
.entity-subgroup-detail .doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2){
  flex-wrap:wrap!important;
  align-content:flex-start!important;
  max-width:178px!important;
}
.doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2)::after,
.entity-subgroup-detail .doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2)::after{
  content:"";
  order:1;
  flex:0 0 100%;
  width:0;
  height:0;
}
.doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2)>.doc-custom-label,
.entity-subgroup-detail .doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2)>.doc-custom-label{
  order:2!important;
  margin-left:auto!important;
  margin-top:1px!important;
}
@media(min-width:901px){
  .doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2),
  .entity-subgroup-detail .doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2){
    flex-wrap:wrap!important;
  }
}


/* v1.0.78 — permanent TWO-LINE editor toolbar.
   Line 1: paragraph/table actions.
   Line 2: text color + highlight.
   Advanced table controls open as a floating panel from the ▦ button. */
.doc-body{position:relative}
.doc-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:4px!important;
  width:100%!important;
  min-height:32px!important;
  margin:4px 0 5px!important;
  padding:0 0 5px!important;
  border-bottom:1px solid #382441!important;
  overflow:visible!important;
}
.doc-top-table-icon{
  order:0!important;
  flex:0 0 30px!important;
  width:30px!important;
  min-width:30px!important;
  max-width:30px!important;
  height:30px!important;
  min-height:30px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #675171!important;
  border-radius:7px!important;
  background:#24152d!important;
  color:#fff!important;
}
.doc-top-table-icon.active{background:#7136a8!important;border-color:#9f69cb!important}
.doc-actions>.doc-quick-size-actions{order:1!important;display:inline-flex!important;align-items:center!important;gap:3px!important}
.doc-actions>.doc-quick-size-actions[hidden]{display:none!important}
.doc-actions>.doc-add-above-btn{order:2!important}.doc-actions>.doc-add-below-btn{order:3!important}
.doc-actions>.doc-edit-btn{order:4!important}.doc-actions>.doc-delete-block-btn{order:5!important}.doc-actions>.doc-close-btn{order:6!important}
.doc-actions>.doc-edit-commit-actions{order:7!important;display:inline-flex!important;gap:4px!important;margin-left:0!important}
.doc-actions>.doc-edit-commit-actions[hidden]{display:none!important}

/* second and only persistent editor line */
.doc-unified-toolbar,
.entity-subgroup-detail .doc-unified-toolbar{
  position:relative!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:32px!important;
  margin:0!important;
  padding:3px 4px!important;
  border:1px solid #4a3158!important;
  border-radius:8px!important;
  background:#100a15!important;
  overflow:visible!important;
}
.doc-unified-toolbar>.doc-color-stack,
.entity-subgroup-detail .doc-unified-toolbar>.doc-color-stack{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:4px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
.doc-unified-toolbar>.doc-color-stack>.doc-color-group,
.entity-subgroup-detail .doc-unified-toolbar>.doc-color-stack>.doc-color-group{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:2px!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:1px 2px!important;
  border:1px solid #382442!important;
  border-radius:6px!important;
  background:#0c0810!important;
}
.doc-toolbar-caption{
  flex:0 0 20px!important;width:20px!important;min-width:20px!important;height:22px!important;min-height:22px!important;
  border-radius:5px!important;font-size:11px!important
}
.doc-color-btn{
  flex:0 0 18px!important;width:18px!important;min-width:18px!important;height:20px!important;min-height:20px!important;
  border-radius:4px!important;padding:0!important
}
.doc-custom-label{
  flex:0 0 25px!important;width:25px!important;min-width:25px!important;height:22px!important;min-height:22px!important;
  padding:1px 2px!important;gap:1px!important;border-radius:5px!important
}
.doc-custom-label .doc-tool-mini-label{display:none!important}
.doc-custom-color{width:20px!important;min-width:20px!important;height:18px!important;padding:0!important}

/* Advanced table controls do not consume a third persistent line. */
.doc-table-toolbar-inline,
.entity-subgroup-detail .doc-table-toolbar-inline{
  display:none!important;
  position:absolute!important;
  z-index:9000!important;
  top:calc(100% + 5px)!important;
  left:0!important;
  right:0!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:6px!important;
  border:1px solid #624171!important;
  border-radius:9px!important;
  background:#100a15!important;
  box-shadow:0 10px 28px rgba(0,0,0,.42)!important;
}
.doc-body.table-tools-open .doc-table-toolbar-inline,
.entity-subgroup-detail .doc-body.table-tools-open .doc-table-toolbar-inline{
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:auto auto!important;
  gap:4px!important;
}
.doc-body.table-tools-open .doc-table-toolbar-title{display:none!important}
.doc-body.table-tools-open .doc-table-tool-row{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:3px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
.doc-body.table-tools-open .doc-table-tool-row:nth-of-type(3){display:none!important}

/* remove v1.0.77 special third-line custom-highlight wrapping */
.doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2),
.entity-subgroup-detail .doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2){
  display:flex!important;grid-template-columns:none!important;grid-template-rows:none!important
}
.doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2)::after,
.entity-subgroup-detail .doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2)::after{display:none!important;content:none!important}
.doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2)>.doc-custom-label,
.entity-subgroup-detail .doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2)>.doc-custom-label{
  grid-column:auto!important;grid-row:auto!important;justify-self:auto!important;margin-top:0!important
}

/* keep all interaction controls compact */
.doc-icon-tool,.doc-table-tool-btn.doc-icon-tool,.doc-table-apply-bg.doc-icon-tool,.doc-table-apply-text.doc-icon-tool{
  width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;padding:0!important
}
.doc-mini-field,.doc-table-mini-color{height:30px!important;min-height:30px!important;padding:2px 3px!important}
.doc-mini-field input[type="number"]{width:40px!important;height:22px!important}
.doc-editor-actions{display:none!important}

@media(max-width:520px){
  .doc-actions{flex-wrap:wrap!important}
  .doc-unified-toolbar>.doc-color-stack{flex-wrap:wrap!important}
  .doc-table-toolbar-inline{left:0!important;right:auto!important;width:min(420px,calc(100vw - 36px))!important}
}


/* v1.0.79 — clean TWO-ROW toolbar. No nested boxes; table tools are a true overlay popup. */
.entity-subgroup-detail .doc-editor,
.doc-editor{overflow:visible!important}

/* ROW 1 — actions */
.doc-actions{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:5px!important;
  width:100%!important;
  min-height:34px!important;
  margin:4px 0 5px!important;
  padding:3px 4px 6px!important;
  border:0!important;
  border-bottom:1px solid #35243f!important;
  background:transparent!important;
  overflow:visible!important;
}
.doc-actions .doc-top-table-icon,
.doc-actions .doc-icon-tool{
  width:28px!important;min-width:28px!important;max-width:28px!important;
  height:28px!important;min-height:28px!important;
  padding:0!important;margin:0!important;
  border-radius:7px!important;
}
.doc-actions .doc-top-table-icon{order:0!important}
.doc-actions>.doc-quick-size-actions{order:1!important;display:inline-flex!important;align-items:center!important;gap:4px!important}
.doc-actions>.doc-quick-size-actions[hidden]{display:none!important}
.doc-actions>.doc-add-above-btn{order:2!important}
.doc-actions>.doc-add-below-btn{order:3!important}
.doc-actions>.doc-edit-btn{order:4!important}
.doc-actions>.doc-delete-block-btn{order:5!important}
.doc-actions>.doc-close-btn{order:6!important}
.doc-actions>.doc-edit-commit-actions{order:7!important;display:inline-flex!important;gap:4px!important;margin-left:auto!important}
.doc-actions>.doc-edit-commit-actions[hidden]{display:none!important}
.doc-actions .doc-mini-field{
  display:inline-flex!important;align-items:center!important;gap:3px!important;
  height:28px!important;min-height:28px!important;padding:2px 4px!important;
  border:1px solid #553a62!important;border-radius:7px!important;background:#16101b!important;color:#efe6f3!important;
}
.doc-actions .doc-mini-field input[type="number"]{width:40px!important;height:20px!important;padding:1px 3px!important;font-size:9px!important}

/* ROW 2 — color + highlight on ONE clean strip */
.doc-unified-toolbar,
.entity-subgroup-detail .doc-unified-toolbar{
  position:relative!important;
  display:block!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  min-height:34px!important;
  margin:0!important;padding:4px 5px!important;
  border:1px solid #493154!important;border-radius:9px!important;
  background:#100b15!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.015)!important;
  overflow:visible!important;
}
.doc-unified-toolbar>.doc-color-stack,
.entity-subgroup-detail .doc-unified-toolbar>.doc-color-stack{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  flex-wrap:nowrap!important;gap:8px!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;border:0!important;background:transparent!important;
}
.doc-unified-toolbar>.doc-color-stack>.doc-color-group,
.entity-subgroup-detail .doc-unified-toolbar>.doc-color-stack>.doc-color-group{
  display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:3px!important;
  width:auto!important;max-width:none!important;min-width:0!important;
  margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;
}
.doc-unified-toolbar>.doc-color-stack>.doc-color-group+ .doc-color-group,
.entity-subgroup-detail .doc-unified-toolbar>.doc-color-stack>.doc-color-group+ .doc-color-group{
  padding-left:8px!important;border-left:1px solid #3b2944!important;
}
.doc-toolbar-caption{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:20px!important;min-width:20px!important;height:22px!important;min-height:22px!important;
  padding:0!important;margin:0!important;border:1px solid #60486b!important;border-radius:5px!important;
  background:#201529!important;color:#f4edf7!important;font-size:10px!important;
}
.doc-color-btn{
  flex:0 0 18px!important;width:18px!important;min-width:18px!important;
  height:20px!important;min-height:20px!important;padding:0!important;margin:0!important;
  border:1px solid #c6bdcb!important;border-radius:4px!important;box-shadow:none!important;
}
.doc-custom-label{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 24px!important;width:24px!important;min-width:24px!important;
  height:22px!important;min-height:22px!important;
  margin:0!important;padding:1px!important;gap:0!important;
  border:1px solid #60486b!important;border-radius:5px!important;background:#17101d!important;
}
.doc-custom-label .doc-tool-mini-label{display:none!important}
.doc-custom-color{width:20px!important;min-width:20px!important;height:18px!important;padding:0!important;border:0!important}

/* Kill ALL old wrapping tricks from v1.0.77. */
.doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2),
.entity-subgroup-detail .doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2){
  flex-wrap:nowrap!important;max-width:none!important;align-content:normal!important;
}
.doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2)::after,
.entity-subgroup-detail .doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2)::after{display:none!important;content:none!important}
.doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2)>.doc-custom-label,
.entity-subgroup-detail .doc-unified-toolbar>.doc-color-stack>.doc-color-group:nth-child(2)>.doc-custom-label{
  order:0!important;margin:0!important;grid-column:auto!important;grid-row:auto!important;justify-self:auto!important;
}

/* Advanced table tools: ALWAYS removed from document flow. */
.doc-table-toolbar-inline,
.entity-subgroup-detail .doc-table-toolbar-inline{
  display:none!important;
  position:absolute!important;
  z-index:12000!important;
  left:4px!important;right:4px!important;
  top:calc(100% + 6px)!important;
  width:auto!important;max-width:none!important;min-width:0!important;
  margin:0!important;padding:7px!important;
  border:1px solid #684576!important;border-radius:9px!important;
  background:#100a15!important;
  box-shadow:0 12px 30px rgba(0,0,0,.5)!important;
}
.doc-body.table-tools-open .doc-table-toolbar-inline,
.entity-subgroup-detail .doc-body.table-tools-open .doc-table-toolbar-inline{
  display:grid!important;grid-template-columns:1fr!important;gap:5px!important;
}
.doc-body.table-tools-open .doc-table-toolbar-title{display:none!important}
.doc-body.table-tools-open .doc-table-tool-row{
  display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:4px!important;
  margin:0!important;padding:0!important;border:0!important;background:transparent!important;
}
.doc-body.table-tools-open .doc-table-tool-row:nth-of-type(3){display:none!important}

/* This guarantees there is no persistent third row. */
.doc-table-toolbar-inline:not(.force-show){height:auto!important}
.doc-editor-actions{display:none!important}

html.light .doc-actions .doc-mini-field{background:#fff!important;color:#36263e!important;border-color:#d6c8dd!important}
html.light .doc-unified-toolbar{background:#faf7fc!important;border-color:#d5c7dc!important}
html.light .doc-unified-toolbar>.doc-color-stack>.doc-color-group+ .doc-color-group{border-left-color:#ddd1e3!important}

@media(max-width:520px){
  .doc-actions{flex-wrap:wrap!important}
  .doc-unified-toolbar>.doc-color-stack{gap:5px!important}
  .doc-unified-toolbar>.doc-color-stack>.doc-color-group{gap:2px!important}
  .doc-color-btn{width:16px!important;min-width:16px!important;height:18px!important}
  .doc-custom-label{width:22px!important;min-width:22px!important}
}


/* v1.0.80 — compact combobox order buttons */
.home-entity-group-order-tools{display:inline-flex;align-items:center;gap:3px;flex:0 0 auto}
.home-entity-manage-tools .group-order-btn{width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;padding:0!important;border-radius:7px!important;font-size:15px!important;font-weight:800!important;line-height:1!important}
.home-entity-manage-tools .group-order-btn:disabled{opacity:.28!important}
@media(max-width:600px){.home-entity-group-order-tools{grid-column:1/-1;justify-content:flex-start}}


/* v1.0.81 — visible category-order tools beside the first combobox */
.home-entity-manage-tools{overflow:visible!important}
.home-entity-group-order-tools{display:inline-flex!important;align-items:center!important;gap:3px!important;flex:0 0 auto!important;visibility:visible!important;opacity:1!important}
.home-entity-group-order-tools .group-order-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:30px!important;min-width:30px!important;height:32px!important;min-height:32px!important;padding:0!important;margin:0!important;border-radius:7px!important;font-size:15px!important;font-weight:900!important;line-height:1!important}
.home-entity-group-order-tools .group-order-btn:disabled{opacity:.3!important;cursor:not-allowed!important}
@media(max-width:1100px){.home-entity-manage-tools{flex-wrap:wrap!important}.home-entity-group-order-tools{order:2!important}}


/* v1.0.82 — category title edit tool */
.home-entity-manage-tools .group-title-edit-btn{width:36px!important;min-width:36px!important;font-size:11px!important;letter-spacing:-.5px!important}


/* v1.0.83 — selected combobox title: move up/down, then explicit save */
.home-entity-group-order-tools{display:inline-flex!important;align-items:center!important;gap:4px!important;flex:0 0 auto!important;visibility:visible!important;opacity:1!important;padding:2px 4px!important;border:1px solid #4f315e!important;border-radius:8px!important;background:#120b18!important}
.home-entity-group-order-tools .group-order-label{display:inline-flex;align-items:center;height:28px;padding:0 5px;color:#cdbbd5;font-size:10px;font-weight:800;white-space:nowrap}
.home-entity-group-order-tools .group-order-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;padding:0!important;margin:0!important;border-radius:7px!important;font-size:15px!important;font-weight:900!important;line-height:1!important}
.home-entity-group-order-tools .group-order-save-btn{font-size:13px!important;background:#2b1740!important;border-color:#8253a0!important}
.home-entity-group-order-tools .group-order-save-btn.has-changes{box-shadow:0 0 0 2px #9b61c633,0 0 12px #8e56b655!important}
.home-entity-group-order-tools .group-order-btn:disabled{opacity:.30!important;cursor:not-allowed!important}
@media(max-width:1100px){.home-entity-group-order-tools{order:2!important}}
@media(max-width:600px){.home-entity-group-order-tools{grid-column:1/-1!important;justify-content:flex-start!important;width:max-content!important}}


/* v1.0.84 — new tafsir Quran Reader; old 114-card grid removed */
.quran-reader-page{min-height:calc(100vh - 110px)}
.quran-reader-window{
  border:1px solid #3d2750;border-radius:16px;background:#0d0812;overflow:hidden;
  box-shadow:0 18px 50px rgba(0,0,0,.28);
}
.quran-reader-head{
  min-height:72px;display:flex;align-items:center;gap:12px;padding:12px 16px;
  border-bottom:1px solid #3b2848;background:linear-gradient(180deg,#1a1022,#120b18)
}
.quran-reader-head-icon{
  display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;
  border-radius:12px;background:linear-gradient(135deg,#8d49d8,#5f2c9b);font-size:22px;color:white
}
.quran-reader-head-copy{min-width:0;flex:1}.quran-reader-head-copy h3{margin:0;font-size:23px}.quran-reader-head-copy p{margin:4px 0 0;color:#bdaac9;font-size:12px}
.quran-reader-source-btn{border:1px solid #5c3a70;border-radius:10px;background:#2b1737;color:#f4e8f8;padding:9px 13px;font-weight:700;cursor:pointer}
.quran-reader-grid{display:grid;grid-template-columns:minmax(220px,22%) minmax(0,1fr) minmax(270px,24%);min-height:690px}
.quran-reader-left,.quran-reader-right{background:#100a15}.quran-reader-left{border-right:1px solid #382543;padding:10px}
.quran-reader-right{border-left:1px solid #382543;padding:12px;display:flex;flex-direction:column;gap:14px}
.quran-reader-center{padding:12px;background:#0b0710;min-width:0;overflow:auto;max-height:76vh}
.quran-reader-tabs,.quran-right-tabs,.quran-script-switch{display:flex;gap:3px;background:#160d1d;border:1px solid #382441;border-radius:10px;padding:3px}
.quran-reader-tabs button,.quran-right-tabs button,.quran-script-switch button{flex:1;border:0;border-radius:7px;background:transparent;color:#cbbbd4;padding:8px 6px;cursor:pointer}
.quran-reader-tabs button.active,.quran-right-tabs button.active,.quran-script-switch button.active{background:#64339a;color:#fff}
.quran-surah-search-wrap{display:flex;align-items:center;gap:7px;margin:9px 0;border:1px solid #50335e;border-radius:9px;padding:0 9px;background:#0b0710}
.quran-surah-search-wrap input{width:100%;height:36px;border:0!important;outline:0;background:transparent!important;color:#fff!important}
.quran-surah-list{display:flex;flex-direction:column;gap:3px;max-height:610px;overflow:auto;padding-right:3px}
.quran-surah-item{display:grid;grid-template-columns:28px minmax(0,1fr) 18px;align-items:center;gap:7px;width:100%;padding:8px 9px;border:1px solid transparent;border-radius:8px;background:transparent;color:#eee4f3;text-align:left;cursor:pointer}
.quran-surah-item:hover{background:#1b1023;border-color:#4a3158}.quran-surah-item.active{background:#5f2f8f;border-color:#8753b2;color:#fff}
.quran-surah-no{font-weight:800}.quran-surah-name{display:flex;flex-direction:column;min-width:0}.quran-surah-name b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quran-surah-name small{color:#bea9c8;font-size:9px}
.quran-surah-loaded{color:#6ddd8d;font-weight:900}
.quran-reader-welcome,.quran-reader-empty-card{min-height:400px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed #543763;border-radius:14px;color:#cdbbd5;background:#100a15}
.quran-welcome-icon{font-size:48px;color:#8d52bd}.quran-reader-welcome h3,.quran-reader-empty-card h3{margin:12px 0 5px}.quran-reader-welcome p,.quran-reader-empty-card p{max-width:460px;margin:0;color:#ac98b8}
.quran-surah-view-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;padding:8px 10px;border:1px solid #3c2948;border-radius:11px;background:#120b18}
.quran-surah-view-head h3{margin:5px 0 0}.quran-surah-pill{display:inline-block;padding:3px 8px;border-radius:999px;background:#633591;color:#fff;font-size:10px}
.quran-verse-list{display:flex;flex-direction:column;gap:10px}
.quran-verse-card{border:1px solid #3d2949;border-radius:13px;background:#120c18;padding:13px 15px;transition:.15s}.quran-verse-card:hover,.quran-verse-card.active{border-color:#75469a;box-shadow:0 0 0 1px rgba(147,89,194,.15)}
.quran-verse-card-top{display:flex;justify-content:space-between;align-items:center;color:#ad95ba;font-size:11px}.quran-verse-card-top div{display:flex;gap:5px}.quran-verse-card-top button{border:0;background:transparent;color:#bda9c7;cursor:pointer}
.quran-verse-arabic{font-size:calc(22px + (var(--quran-font-scale,8) * 1.15px));line-height:1.9;text-align:right;color:#fff;margin:12px 0 6px;font-family:"Noto Naskh Arabic","Amiri","Arial",serif}
.quran-verse-bn{margin:0 0 12px;color:#f0e5f4;font-size:14px;line-height:1.7}
.quran-verse-actions{display:flex;flex-wrap:wrap;gap:5px;border-top:1px solid #34233f;padding-top:9px}.quran-verse-actions button{border:0;background:transparent;color:#bba7c6;padding:4px 5px;cursor:pointer;font-size:10px}.quran-verse-actions button:hover{color:#fff}
.quran-right-section{display:flex;flex-direction:column;gap:9px;padding:4px}.quran-right-label{color:#ad98b9;font-size:11px}.quran-meaning-chip{align-self:flex-end;background:#6a389d;border:1px solid #8654b1;border-radius:7px;padding:7px 9px;color:#fff;font-size:11px}
.quran-right-arabic{font-family:"Noto Naskh Arabic","Amiri","Arial",serif;font-size:27px;line-height:1.9;text-align:right;color:#fff}.quran-right-english{margin:0;color:#e5dce9;line-height:1.5}
.quran-control-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 3px;border-top:1px solid #2d1d37}
.quran-control-row select{background:#17101d;color:#eee;border:1px solid #4b3159;border-radius:7px;padding:6px}
.quran-font-controls{display:flex;align-items:center;gap:12px}.quran-font-controls button{width:28px;height:28px;border:1px solid #4b3159;border-radius:7px;background:#1d1225;color:#fff;cursor:pointer}
.quran-reciter-card{display:flex;flex-direction:column;gap:5px;padding:11px;border:1px solid #392544;border-radius:10px;background:#140d1a}.quran-reciter-card span{color:#a992b5;font-size:10px}.quran-reciter-card b{font-size:11px}
.quran-reset-btn{margin-top:auto;border:1px solid #7f49a8;border-radius:9px;background:linear-gradient(180deg,#7140a5,#522775);color:#fff;padding:11px;font-weight:800;cursor:pointer}
@media(max-width:1100px){.quran-reader-grid{grid-template-columns:240px minmax(0,1fr)}.quran-reader-right{grid-column:1/-1;border-left:0;border-top:1px solid #382543;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.quran-reset-btn{margin-top:0}}
@media(max-width:760px){.quran-reader-grid{grid-template-columns:1fr}.quran-reader-left{border-right:0;border-bottom:1px solid #382543}.quran-surah-list{max-height:280px}.quran-reader-right{display:flex}.quran-reader-head{align-items:flex-start}.quran-reader-source-btn{margin-left:auto}}


/* v1.0.85 — Quran Reader all-content editable */
.quran-reader-head-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}
.quran-reader-head-tools .soft-btn.active{background:linear-gradient(180deg,#7a42af,#5a2d86);border-color:#935cc1;color:#fff}
.quran-editor-panel{border:1px solid #473056;border-radius:14px;background:#100a15;padding:12px 13px;margin-bottom:12px}
.quran-editor-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}.quran-editor-head b{font-size:13px}.quran-editor-head span{font-size:11px;color:#bea9c8}
.quran-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quran-editor-grid label,.quran-verse-editor label{display:flex;flex-direction:column;gap:5px}.quran-editor-grid label.wide,.quran-verse-editor label.wide{grid-column:1/-1}
.quran-editor-grid span,.quran-verse-editor span{font-size:11px;color:#bea9c8}
.quran-editor-grid input,.quran-editor-grid textarea,.quran-verse-editor input,.quran-verse-editor textarea{width:100%;border:1px solid #58386a;border-radius:9px;background:#0d0812;color:#fff;padding:9px 10px;font:inherit}
.quran-editor-grid textarea,.quran-verse-editor textarea{resize:vertical;min-height:48px}
.quran-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px solid #32203d}.quran-editor-note{font-size:11px;color:#aa95b8}
.quran-verse-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;padding-top:11px;border-top:1px dashed #3c2948}.quran-verse-editor-actions{grid-column:1/-1;display:flex;justify-content:flex-end}
.quran-reader-empty-card .soft-btn{margin-top:12px}
@media(max-width:920px){.quran-reader-head-tools{margin-left:0}.quran-editor-grid,.quran-verse-editor{grid-template-columns:1fr}}

.quran-side-item{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:7px;width:100%;padding:8px 9px;border:1px solid transparent;border-radius:8px;background:transparent;color:#eee4f3;text-align:left;cursor:pointer}.quran-side-item:hover{background:#1b1023;border-color:#4a3158}.quran-side-item.active{background:#5f2f8f;border-color:#8753b2;color:#fff}.quran-side-empty{padding:14px 10px;color:#bfaecc;font-size:13px}.quran-verse-side-item .quran-surah-name b,.quran-para-side-item .quran-surah-name b{font-size:13px}

.quran-editor-subpanel{margin:0 0 14px;padding:12px;border:1px solid #3d2750;border-radius:14px;background:rgba(126,74,170,.08)}
.quran-editor-grid.compact{grid-template-columns:2fr 1fr 1fr}


/* v1.0.88 — Full Quran + requested default fonts (local font names only; font files are not bundled) */
@font-face{font-family:"SolaimanLipiLocal";src:local("SolaimanLipi"),local("Solaiman Lipi");font-display:swap}
@font-face{font-family:"AlMajeedQuranicLocal";src:local("Al Majeed Quranic"),local("AlMajeed Quranic"),local("Almajid Quranic"),local("Al Majeed Quran");font-display:swap}
.quran-verse-arabic,.quran-right-arabic{font-family:"AlMajeedQuranicLocal","Al Majeed Quranic","Amiri Quran","Amiri","Noto Naskh Arabic",serif!important}
.quran-verse-bn,.quran-right-bangla,.quran-reader-head-copy,.quran-reader-left,.quran-reader-right,.quran-editor-panel{font-family:"SolaimanLipiLocal","SolaimanLipi","Noto Sans Bengali",sans-serif}
.quran-verse-en,.quran-right-english{font-family:"Times New Roman",Times,serif!important}
.quran-verse-en{margin:6px 0 12px;color:#cdbfd3;font-size:14px;line-height:1.55;border-left:2px solid #4b3159;padding-left:10px}
.quran-right-bangla{margin:0;color:#f0e5f4;line-height:1.65;font-size:14px}
.quran-right-english{font-size:15px}
.quran-source-note{margin-top:6px;padding-top:8px;border-top:1px solid #2f1e39;color:#9785a2;font-size:10px;line-height:1.45}
.quran-data-status{display:inline-flex;align-items:center;min-height:30px;padding:5px 9px;border:1px solid #463052;border-radius:9px;background:#120b18;color:#bdaac9;font-size:10px;white-space:nowrap}

/* v1.0.90 — Bolon Song Script + Local Audio Sync Studio */
.bolon-page-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.bolon-storage-badge{border:1px solid #5a3a6d;background:#25152f;border-radius:999px;padding:7px 11px;color:#dbcbea;font-size:11px;font-weight:800}.bolon-studio{display:grid;grid-template-columns:minmax(220px,19%) minmax(0,1fr) minmax(280px,24%);gap:12px;min-height:690px}.bolon-studio>.panel{padding:12px;border-radius:14px;min-width:0}.bolon-library{display:flex;flex-direction:column;min-height:0}.bolon-library-head,.bolon-audio-title,.bolon-editor-top,.bolon-script-head,.bolon-time-row,.bolon-play-row,.bolon-panel-actions{display:flex;align-items:center;gap:8px}.bolon-library-head,.bolon-audio-title,.bolon-editor-top,.bolon-script-head{justify-content:space-between}.bolon-library-head span,.bolon-audio-title span,.bolon-script-head small{color:#aa98b5;font-size:10px}.bolon-search{width:100%;height:38px;margin:9px 0;border:1px solid #4b3158;border-radius:9px;background:#0d0812;color:#fff;padding:0 10px}.bolon-song-list{display:flex;flex-direction:column;gap:3px;max-height:610px;overflow:auto;padding-right:3px}.bolon-song-item{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:7px;width:100%;border:1px solid transparent;border-radius:8px;background:transparent;color:#eee4f3;text-align:left;padding:8px;cursor:pointer}.bolon-song-item:hover{background:#1b1023;border-color:#4a3158}.bolon-song-item.active{background:#5f2f8f;border-color:#8753b2;color:#fff}.bolon-song-item span{font-size:10px;color:#c7b5d1}.bolon-song-item b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bolon-list-empty{padding:16px;text-align:center;color:#aa96b6}.bolon-editor{display:flex;flex-direction:column;gap:10px;min-height:0}.bolon-slot-title{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.bolon-slot-title>span{flex:0 0 auto;background:#633591;color:#fff;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:800}.bolon-slot-title input{flex:1;min-width:0;height:38px;border:1px solid #51345f;border-radius:9px;background:#0d0812;color:#fff;padding:0 10px;font-weight:700}.bolon-save-state{font-size:10px;color:#aa98b5}.bolon-save-state.saved{color:#72e68f}.bolon-field{display:flex;flex-direction:column;gap:6px}.bolon-field>span{font-size:11px;color:#bda9c7}.bolon-field textarea{width:100%;min-height:150px;border:1px solid #51345f;border-radius:11px;background:#0d0812;color:#fff;padding:10px 12px;resize:vertical;line-height:1.65;font:inherit}.bolon-script-head{border-top:1px solid #35213f;padding-top:10px}.bolon-script-head>div:first-child{display:flex;flex-direction:column;gap:2px}.bolon-script-actions{display:flex;gap:6px;flex-wrap:wrap}.bolon-lyric-lines{display:flex;flex-direction:column;gap:6px;overflow:auto;min-height:220px;max-height:400px;padding-right:4px}.bolon-empty-lines{min-height:180px;border:1px dashed #4d315b;border-radius:12px;display:flex;align-items:center;justify-content:center;text-align:center;color:#9f8aac;padding:20px}.bolon-lyric-line{display:grid;grid-template-columns:34px 76px minmax(0,1fr);align-items:center;gap:7px;border:1px solid #3c2847;border-radius:10px;background:#110a16;padding:7px 9px;cursor:pointer;transition:.15s}.bolon-lyric-line:hover{border-color:#654079;background:#17101e}.bolon-lyric-line.active{border-color:#a366d0;background:linear-gradient(90deg,rgba(127,68,174,.34),rgba(54,26,70,.18));box-shadow:0 0 0 1px rgba(162,99,209,.14),0 0 20px rgba(132,70,178,.16)}.bolon-line-no{font-size:10px;color:#ae98ba}.bolon-line-time{height:30px;border:1px solid #51345f;border-radius:7px;background:#0b0710;color:#fff;padding:0 7px;font-family:ui-monospace,Consolas,monospace;font-size:11px}.bolon-line-text{font-size:14px;line-height:1.5;color:#eee7f2}.bolon-lyric-line.active .bolon-line-text{color:#fff;font-weight:800}.bolon-audio-panel{display:flex;flex-direction:column;gap:12px}.bolon-upload-box{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:120px;border:1px dashed #745090;border-radius:12px;background:#130b19;cursor:pointer;text-align:center;padding:14px}.bolon-upload-box:hover{background:#1b1023;border-color:#9968bd}.bolon-upload-box>span{font-size:30px;color:#a66ad1}.bolon-upload-box b{font-size:13px}.bolon-upload-box small{font-size:10px;color:#a995b5}.bolon-time-row{display:grid;grid-template-columns:58px minmax(0,1fr) 58px;font-size:10px;color:#b9a6c3}.bolon-time-row input[type=range]{width:100%;accent-color:#7e42b6}.bolon-play-row{display:grid;grid-template-columns:1.4fr 1fr 1fr}.bolon-play-row button{width:100%}.bolon-live-sync{border:1px solid #3e294a;border-radius:12px;background:#120b18;padding:11px;display:flex;flex-direction:column;gap:8px}.bolon-live-sync p{margin:4px 0 0;color:#a893b4;font-size:10px;line-height:1.5}.bolon-live-info{font-size:10px;color:#c0aacb;padding-top:4px}.bolon-audio-meta{display:grid;grid-template-columns:1fr;gap:5px}.bolon-audio-meta>div{display:grid;grid-template-columns:70px minmax(0,1fr);gap:8px;border-bottom:1px solid #2e1d38;padding:6px 0}.bolon-audio-meta span{font-size:10px;color:#9f89ac}.bolon-audio-meta b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bolon-panel-actions{margin-top:auto;flex-wrap:wrap}.bolon-local-note{margin:0;color:#9f8aad;font-size:9px;line-height:1.5}.bolon-studio button:disabled{opacity:.45;cursor:not-allowed}.bolon-audio-panel .danger-action{color:#ffd4d9}
@media(max-width:1200px){.bolon-studio{grid-template-columns:230px minmax(0,1fr)}.bolon-audio-panel{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.bolon-audio-title,.bolon-panel-actions,.bolon-local-note{grid-column:1/-1}.bolon-play-row{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.bolon-studio{grid-template-columns:1fr}.bolon-song-list{max-height:260px}.bolon-audio-panel{display:flex}.bolon-lyric-line{grid-template-columns:30px 68px minmax(0,1fr)}}

.bolon-page-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}


/* v1.0.92 — local AI audio transcription + automatic word/line timing */
.bolon-ai-box{border:1px solid #553568;border-radius:12px;background:linear-gradient(180deg,#17101e,#110a16);padding:10px;display:flex;flex-direction:column;gap:8px}
.bolon-ai-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.bolon-ai-head>div{display:flex;flex-direction:column;gap:2px}.bolon-ai-head b{font-size:12px}.bolon-ai-head small,.bolon-ai-info{font-size:9px;color:#aa95b6;line-height:1.45}.bolon-ai-head>span{font-size:9px;color:#86e2a1;border:1px solid #335e44;border-radius:999px;padding:3px 7px;white-space:nowrap}.bolon-ai-head>span.error{color:#ffb6c0;border-color:#71404a}
.bolon-ai-controls{display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:6px}.bolon-ai-controls select{min-width:0;border:1px solid #51345f;border-radius:8px;background:#0d0812;color:#fff;padding:0 7px}.bolon-ai-controls button{min-height:36px}.bolon-ai-auto{display:flex;align-items:center;gap:7px;font-size:9px;color:#c5b5cd}.bolon-ai-auto input{accent-color:#7e42b6}.bolon-ai-progress{height:5px;border-radius:999px;background:#24152d;overflow:hidden}.bolon-ai-progress>div{height:100%;width:0;background:linear-gradient(90deg,#6e34a6,#b068dc);transition:width .2s}.bolon-ai-info{margin:0}.bolon-lyric-line.active{animation:bolonKaraokeGlow 1.1s ease-in-out infinite alternate}@keyframes bolonKaraokeGlow{from{box-shadow:0 0 0 1px rgba(162,99,209,.2),0 0 10px rgba(132,70,178,.18)}to{box-shadow:0 0 0 2px rgba(181,111,228,.35),0 0 26px rgba(158,83,211,.35)}}
@media(max-width:760px){.bolon-ai-controls{grid-template-columns:1fr 1fr}.bolon-ai-controls select{grid-column:1/-1}}

/* v1.0.94 — transcript visible fix */
.bolon-transcript-notice{border:1px solid #59406a;border-radius:10px;background:#17101e;color:#dccce6;padding:9px 11px;font-size:11px;line-height:1.55}
.bolon-transcript-notice[data-kind="working"]{border-color:#7d50a1;background:#24152f;color:#f2e5fa}
.bolon-transcript-notice[data-kind="success"]{border-color:#35694b;background:#102219;color:#bff1cd}
.bolon-transcript-notice[data-kind="error"]{border-color:#8f4650;background:#2a1115;color:#ffd2d7}
#bolonLyricsInput{min-height:190px}

/* v1.0.96 ultra fast AI + smooth progress */
.bolon-ai-progress-meta{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;font-size:9px;color:#bca9c7}.bolon-ai-progress-meta b{font-size:13px;color:#f2dcff;min-width:38px}.bolon-ai-progress-meta span:nth-child(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bolon-ai-progress-meta span:last-child{font-variant-numeric:tabular-nums;color:#d7c4e1}.bolon-ai-progress{height:9px;position:relative;background:#24152d;border:1px solid #3d2849}.bolon-ai-progress>div{position:relative;overflow:hidden;transition:width .25s ease}.bolon-ai-progress>div:after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 0 35%,rgba(255,255,255,.25) 50%,transparent 65% 100%);animation:bolonAIShimmer 1.1s linear infinite}@keyframes bolonAIShimmer{from{transform:translateX(-100%)}to{transform:translateX(100%)}}

/* v1.0.97 simultaneous audio + live transcript */
.bolon-ai-simul{padding:6px 8px;border:1px solid #4f3260;border-radius:8px;background:#150d1d}.bolon-ai-simul:has(input:checked){border-color:#7e42b6;background:#20112c}


/* v1.0.98 — Bengali script + strong karaoke highlight */
#bolonLyricsInput,.bolon-line-text,#bolonActiveLine,#bolonKaraokeNow b{font-family:"SolaimanLipi","Noto Sans Bengali","Nirmala UI",sans-serif!important}
#bolonLyricsInput{font-size:17px!important;line-height:1.75!important}
.bolon-karaoke-now{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;border:1px solid #6d3f86;border-radius:11px;background:#160b1f;padding:9px 11px;min-height:46px}
.bolon-karaoke-now span{font-size:10px;color:#c4a8d3;white-space:nowrap}.bolon-karaoke-now b{font-size:17px;line-height:1.45;color:#fff59b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bolon-lyric-line{position:relative;overflow:hidden}
.bolon-lyric-line.active{border:2px solid #e5b0ff!important;background:linear-gradient(90deg,#7737aa 0%,#5c2487 58%,#321542 100%)!important;box-shadow:0 0 0 2px rgba(229,176,255,.16),0 0 30px rgba(168,78,224,.52)!important;transform:scale(1.006);z-index:2}
.bolon-lyric-line.active:before{content:"▶";position:absolute;left:5px;top:50%;transform:translateY(-50%);font-size:10px;color:#fff59b;animation:bolonPlayBlink .65s ease-in-out infinite alternate}
.bolon-lyric-line.active .bolon-line-no{color:#fff59b!important;font-weight:900}.bolon-lyric-line.active .bolon-line-time{border-color:#f0c6ff!important;background:#2b0d39!important;color:#fff59b!important;font-weight:900}.bolon-lyric-line.active .bolon-line-text{color:#fff59b!important;font-size:16px!important;font-weight:900!important;text-shadow:0 1px 7px rgba(0,0,0,.65)}
@keyframes bolonPlayBlink{from{opacity:.55}to{opacity:1}}


/* v1.0.99 — per-word karaoke highlighting */
.bolon-lyric-line.active{
  border-color:#563266!important;
  background:#110a16!important;
  box-shadow:none!important;
  transform:none!important;
  animation:none!important;
}
.bolon-lyric-line.active:before{content:none!important}
.bolon-lyric-line.active .bolon-line-no{color:#b69bc4!important;font-weight:700!important}
.bolon-lyric-line.active .bolon-line-time{border-color:#51345f!important;background:#0b0710!important;color:#fff!important;font-weight:600!important}
.bolon-lyric-line.active .bolon-line-text{color:#eee7f2!important;font-size:16px!important;font-weight:500!important;text-shadow:none!important}
.bolon-line-text{font-family:"SolaimanLipi","Noto Sans Bengali","Nirmala UI",sans-serif!important;font-size:16px!important;line-height:1.75!important}
.bolon-word{display:inline-block;padding:1px 2px;border-radius:5px;color:#f1eaf4;transition:background .08s,color .08s,transform .08s,box-shadow .08s;cursor:pointer}
.bolon-word:hover{background:#2a1735}
.bolon-word.passed{color:#bbaac4}
.bolon-word.active{
  color:#1b0b23!important;
  background:#fff36a!important;
  font-weight:900!important;
  transform:scale(1.08);
  box-shadow:0 0 0 2px rgba(255,243,106,.22),0 0 14px rgba(255,230,80,.55);
}
.bolon-karaoke-now b{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
.bolon-now-word{display:inline-block;padding:1px 2px;border-radius:5px;color:#efe7f3;margin-right:2px}
.bolon-now-word.passed{color:#bdaac8}
.bolon-now-word.active{background:#fff36a;color:#1a0a21;font-weight:900;box-shadow:0 0 12px rgba(255,236,91,.55)}

/* v1.0.100-test-manual */
#bolonLoadTestBtn:disabled{opacity:.65;cursor:wait} .bolon-ai-info{line-height:1.55}

/* v1.0.101 — clear speech, correction save, MP4 export */
.bolon-ai-clear{padding:6px 8px;border:1px solid #315944;border-radius:8px;background:#0d1c14;color:#ccebd6!important}.bolon-ai-clear:has(input:checked){border-color:#4b9a69;background:#10291b}
.bolon-finish-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:7px}.bolon-finish-actions button{min-height:38px}.bolon-finish-actions #bolonExportMp4Btn{background:#7e42b6;color:#fff}
.bolon-export-box{border:1px solid #503160;border-radius:10px;background:#130b19;padding:9px;display:flex;flex-direction:column;gap:6px}.bolon-export-box[hidden]{display:none!important}.bolon-export-box>div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:10px}.bolon-export-box small{font-size:9px;color:#aa95b6}.bolon-export-progress{height:8px;border:1px solid #432953;border-radius:999px;background:#211329;overflow:hidden}.bolon-export-progress i{display:block;width:0;height:100%;background:linear-gradient(90deg,#7e42b6,#d27cff);transition:width .15s}.bolon-export-box .error{color:#ffb3be}
@media(max-width:760px){.bolon-finish-actions{grid-template-columns:1fr}}

/* v1.0.102 — export word highlight + seekable video preview */
.bolon-export-preview{border:1px solid #58366c;border-radius:12px;background:#0d0812;padding:10px;display:flex;flex-direction:column;gap:8px}.bolon-export-preview[hidden]{display:none!important}.bolon-export-preview-head{display:flex;justify-content:space-between;gap:12px;align-items:center;color:#eadcf2;font-size:10px}.bolon-export-preview-head span{color:#ad98b9}.bolon-export-preview video{width:100%;max-height:390px;background:#000;border-radius:10px;outline:1px solid #3d2749}

/* v1.0.105 — stronger Bengali ASR + strict script + correction dictionary + unclear markers */

/* v1.0.107 — song-safe native Bengali STT + conditional fast fallback */


/* v1.0.114 — Bolon UI red-box fixes only; layout/behavior preserved */
/* Keep every synced-script row at its natural height. Without flex-shrink:0,
   many rows were being squeezed into the 400px scroll area and their text/input got clipped. */
.bolon-lyric-lines{align-items:stretch!important}
.bolon-lyric-line{flex:0 0 auto!important;min-height:44px!important;overflow:visible!important}
.bolon-line-text{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
.bolon-word{vertical-align:baseline!important}

/* Keep the AI header readable in the narrow right column. The long status badge
   can move to its own row instead of squeezing the title into one-word lines. */
.bolon-ai-head{flex-wrap:wrap!important}
.bolon-ai-head>div{flex:1 1 180px!important;min-width:0!important}
.bolon-ai-head>span{flex:0 0 auto!important;max-width:100%!important;line-height:1.3!important}
.bolon-ai-head small{display:block!important;white-space:normal!important;overflow-wrap:anywhere!important}


/* v1.0.115 — Bolon Studio desktop layout: keep the existing song list at left,
   then split the studio into two balanced work areas. No controls/IDs removed. */
.page[data-view="bolon"]{padding:18px 18px 22px}
.page[data-view="bolon"] .bolon-page-head{margin-bottom:12px}
.page[data-view="bolon"] .bolon-page-head h3{font-size:24px;margin-bottom:4px}
.page[data-view="bolon"] .bolon-page-head p{font-size:11px;line-height:1.45;max-width:900px}

.bolon-studio{
  display:grid!important;
  grid-template-columns:210px minmax(0,1fr)!important;
  gap:10px!important;
  align-items:stretch!important;
  min-height:0!important;
}
.bolon-workspace{
  display:grid;
  grid-template-columns:minmax(500px,1.55fr) minmax(330px,.86fr);
  gap:10px;
  min-width:0;
  align-items:stretch;
}
.bolon-studio>.panel,.bolon-workspace>.panel{padding:10px!important;border-radius:13px!important;min-width:0}

/* All three visual columns stay at one desktop height; long content scrolls inside. */
.bolon-library,.bolon-editor,.bolon-audio-panel{
  height:calc(100vh - 176px);
  min-height:610px;
  max-height:820px;
  overflow:hidden;
}
.bolon-library{display:flex!important;flex-direction:column!important}
.bolon-song-list{max-height:none!important;min-height:0!important;flex:1 1 auto!important;overflow:auto!important}

.bolon-editor{display:grid!important;grid-template-rows:auto auto auto auto minmax(0,1fr);gap:8px!important}
.bolon-editor-top{min-height:38px}
.bolon-field{min-height:0}
.bolon-field textarea{
  min-height:190px!important;
  height:clamp(190px,27vh,285px)!important;
  max-height:300px!important;
  resize:vertical!important;
}
.bolon-karaoke-now{min-height:42px!important;padding:7px 10px!important}
.bolon-script-head{padding-top:8px!important}
.bolon-lyric-lines{
  min-height:0!important;
  max-height:none!important;
  height:auto!important;
  overflow:auto!important;
  padding-right:5px!important;
  padding-bottom:4px!important;
}
.bolon-lyric-line{min-height:42px!important;padding:6px 8px!important}

/* Right control studio: compact, scrollable, and never falls below the editor. */
.bolon-audio-panel{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-gutter:stable;
}
.bolon-audio-title{position:sticky;top:-10px;z-index:3;background:var(--panel);padding:3px 0 6px;border-bottom:1px solid #2d1d37}
.bolon-upload-box{min-height:82px!important;padding:9px!important;flex:0 0 auto}
.bolon-upload-box>span{font-size:24px!important}.bolon-upload-box b{font-size:12px!important}
.bolon-ai-box{padding:9px!important;gap:7px!important;flex:0 0 auto}
.bolon-ai-controls{grid-template-columns:90px minmax(0,1fr)!important}
#bolonAICancelBtn:not([hidden]){grid-column:1/-1}
.bolon-ai-auto{font-size:9px!important;line-height:1.35}
.bolon-ai-info{font-size:8.5px!important;line-height:1.45!important}
.bolon-time-row{flex:0 0 auto}
.bolon-play-row{grid-template-columns:1.35fr 1fr 1fr!important;flex:0 0 auto}
.bolon-play-row button{min-height:38px;padding:9px 8px!important}
.bolon-live-sync{padding:9px!important;gap:6px!important;flex:0 0 auto}
.bolon-live-sync p{line-height:1.35!important}
.bolon-audio-meta{grid-template-columns:1fr 1fr!important;gap:0 10px!important;flex:0 0 auto}
.bolon-audio-meta>div{grid-template-columns:62px minmax(0,1fr)!important;padding:5px 0!important}
.bolon-audio-meta>div:last-child{grid-column:1/-1}
.bolon-finish-actions{margin-top:0!important;grid-template-columns:1fr 1fr!important;flex:0 0 auto}
.bolon-export-preview video{max-height:250px!important}
.bolon-local-note{padding-bottom:3px}

/* The library stays exactly as the left portion of the studio; only its sizing is normalized. */
.bolon-library-head{min-height:30px}
.bolon-search{height:36px!important;margin:7px 0!important}
.bolon-song-item{padding:7px!important}

/* Large desktop: give the editor more writing space without widening the AI panel too much. */
@media(min-width:1500px){
  .bolon-studio{grid-template-columns:220px minmax(0,1fr)!important}
  .bolon-workspace{grid-template-columns:minmax(560px,1.62fr) minmax(350px,.88fr)}
}

/* Standard desktop/laptop: left song list remains; right two studio parts stay side-by-side. */
@media(max-width:1320px) and (min-width:1001px){
  .page[data-view="bolon"]{padding:14px}
  .bolon-studio{grid-template-columns:190px minmax(0,1fr)!important;gap:8px!important}
  .bolon-workspace{grid-template-columns:minmax(430px,1.42fr) minmax(305px,.9fr);gap:8px}
  .bolon-studio>.panel,.bolon-workspace>.panel{padding:8px!important}
  .bolon-library,.bolon-editor,.bolon-audio-panel{height:calc(100vh - 165px);min-height:580px}
  .bolon-ai-head small{font-size:8px!important}
  .bolon-ai-info{font-size:8px!important}
}

/* Narrow screens: preserve every option, but stack the two work areas instead of squeezing them. */
@media(max-width:1000px){
  .bolon-studio{grid-template-columns:1fr!important}
  .bolon-library,.bolon-editor,.bolon-audio-panel{height:auto;max-height:none;min-height:0}
  .bolon-song-list{max-height:260px!important;flex:none!important}
  .bolon-workspace{grid-template-columns:1fr}
  .bolon-editor{display:flex!important}
  .bolon-lyric-lines{max-height:430px!important;min-height:240px!important}
  .bolon-audio-panel{overflow:visible!important}
  .bolon-audio-title{position:static}
}


/* v1.0.116 — exact five-part desktop studio layout requested by user.
   1) main app sidebar (existing shell)
   2) Bolon/song list
   3) lyrics + synced timing editor
   4) audio upload + Bengali AI
   5) player + live timing + file/export controls
   All original controls and IDs remain; only layout is changed. */
.page[data-view="bolon"]{
  height:calc(100vh - 64px)!important;
  min-height:0!important;
  padding:10px 10px 12px!important;
  overflow:hidden!important;
  display:none;
  flex-direction:column;
}
.page[data-view="bolon"].active{display:flex!important}
.page[data-view="bolon"] .bolon-page-head{
  flex:0 0 auto!important;
  margin:0 0 8px!important;
  min-height:58px!important;
  align-items:center!important;
}
.page[data-view="bolon"] .bolon-page-head h3{font-size:21px!important;margin:0 0 2px!important}
.page[data-view="bolon"] .bolon-page-head p{font-size:9px!important;line-height:1.35!important;max-width:980px!important}
.page[data-view="bolon"] .bolon-page-actions{flex:0 0 auto!important}

.bolon-studio{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  display:grid!important;
  grid-template-columns:minmax(176px,.66fr) minmax(330px,1.28fr) minmax(300px,1.02fr) minmax(270px,.92fr)!important;
  gap:8px!important;
  align-items:stretch!important;
  overflow:hidden!important;
}
.bolon-workspace{display:contents!important}
.bolon-studio>.panel{
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  min-width:0!important;
  padding:8px!important;
  border-radius:12px!important;
  overflow:hidden!important;
}

/* Part 2 — list column */
.bolon-library{display:flex!important;flex-direction:column!important}
.bolon-library-head{min-height:28px!important;flex:0 0 auto!important}
.bolon-search{height:34px!important;margin:6px 0!important;flex:0 0 auto!important;font-size:11px!important}
.bolon-song-list{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow:auto!important;padding-right:3px!important}
.bolon-song-item{padding:6px!important;grid-template-columns:35px minmax(0,1fr)!important;gap:5px!important}
.bolon-song-item b{font-size:11px!important}.bolon-song-item span{font-size:9px!important}

/* Part 3 — editor/timing column. Everything scrolls inside this column, never the page. */
.bolon-editor{
  display:grid!important;
  grid-template-rows:auto minmax(145px,37%) auto auto minmax(0,1fr)!important;
  gap:6px!important;
}
.bolon-editor-top{min-height:34px!important}
.bolon-slot-title input{height:34px!important;font-size:11px!important;padding:0 8px!important}
.bolon-slot-title>span{font-size:9px!important;padding:4px 7px!important}
.bolon-field{min-height:0!important;overflow:hidden!important}
.bolon-field>span{font-size:9px!important;line-height:1.25!important}
.bolon-field textarea{
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  resize:none!important;
  padding:8px 9px!important;
  font-size:13px!important;
  line-height:1.55!important;
}
.bolon-transcript-notice{font-size:9px!important;padding:6px 8px!important}
.bolon-karaoke-now{min-height:36px!important;padding:5px 8px!important;gap:6px!important;font-size:10px!important}
.bolon-karaoke-now b{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.bolon-script-head{padding-top:5px!important;min-height:35px!important}
.bolon-script-head b{font-size:11px!important}.bolon-script-head small{font-size:8px!important}
.bolon-script-actions{gap:4px!important;flex-wrap:nowrap!important}.bolon-script-actions button{padding:7px 8px!important;font-size:9px!important}
.bolon-lyric-lines{min-height:0!important;max-height:none!important;height:auto!important;overflow:auto!important;gap:4px!important;padding-right:3px!important}
.bolon-lyric-line{grid-template-columns:27px 63px minmax(0,1fr)!important;min-height:36px!important;padding:4px 6px!important;gap:5px!important}
.bolon-line-no{font-size:9px!important}.bolon-line-time{height:27px!important;font-size:9px!important;padding:0 5px!important}.bolon-line-text{font-size:11px!important;line-height:1.35!important}

/* Part 4 — upload + Bengali AI only */
.bolon-ai-panel{
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
  overflow:auto!important;
  scrollbar-gutter:stable;
}
.bolon-ai-panel .bolon-audio-title{position:static!important;padding:0 0 4px!important;min-height:25px!important;flex:0 0 auto!important}
.bolon-upload-box{min-height:88px!important;padding:8px!important;flex:0 0 auto!important}
.bolon-upload-box>span{font-size:23px!important}.bolon-upload-box b{font-size:11px!important}.bolon-upload-box small{font-size:8px!important}
.bolon-ai-box{padding:8px!important;gap:6px!important;flex:0 0 auto!important}
.bolon-ai-head{gap:4px!important}.bolon-ai-head>div{flex:1 1 100%!important}.bolon-ai-head b{font-size:10px!important}.bolon-ai-head small{font-size:7.5px!important;line-height:1.25!important}.bolon-ai-head>span{font-size:8px!important;padding:3px 6px!important}
.bolon-ai-controls{grid-template-columns:82px minmax(0,1fr)!important;gap:5px!important}.bolon-ai-controls select{font-size:9px!important;padding:0 5px!important}.bolon-ai-controls button{font-size:9px!important;min-height:34px!important;padding:7px 6px!important}
.bolon-ai-auto{font-size:7.7px!important;line-height:1.25!important;gap:5px!important}.bolon-ai-progress-meta{font-size:8px!important;gap:5px!important}.bolon-ai-progress-meta b{font-size:11px!important}.bolon-ai-progress{height:7px!important}
.bolon-ai-info{font-size:7.5px!important;line-height:1.35!important;margin:0!important}
#bolonCorrectionDictInfo{padding-bottom:2px!important}

/* Part 5 — playback/live/file/export column */
.bolon-player-panel{
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
  overflow:auto!important;
  scrollbar-gutter:stable;
}
.bolon-player-panel .bolon-time-row{grid-template-columns:48px minmax(0,1fr) 48px!important;font-size:8px!important;flex:0 0 auto!important}
.bolon-player-panel .bolon-play-row{grid-template-columns:1.25fr 1fr 1fr!important;gap:5px!important;flex:0 0 auto!important}
.bolon-player-panel .bolon-play-row button{min-height:36px!important;padding:7px 5px!important;font-size:10px!important}
.bolon-player-panel .bolon-live-sync{padding:8px!important;gap:5px!important;flex:0 0 auto!important}.bolon-player-panel .bolon-live-sync b{font-size:11px!important}.bolon-player-panel .bolon-live-sync p,.bolon-player-panel .bolon-live-info{font-size:8px!important;line-height:1.3!important}.bolon-player-panel .bolon-live-sync button{font-size:9px!important;padding:8px 6px!important}
.bolon-player-panel .bolon-audio-meta{display:grid!important;grid-template-columns:1fr!important;gap:0!important;flex:0 0 auto!important}.bolon-player-panel .bolon-audio-meta>div{grid-template-columns:58px minmax(0,1fr)!important;padding:5px 0!important}.bolon-player-panel .bolon-audio-meta span{font-size:8px!important}.bolon-player-panel .bolon-audio-meta b{font-size:9px!important}
.bolon-player-panel .bolon-finish-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important;flex:0 0 auto!important}.bolon-player-panel .bolon-finish-actions button{min-height:34px!important;padding:7px 5px!important;font-size:9px!important}
.bolon-player-panel .bolon-export-box{font-size:8px!important;flex:0 0 auto!important}.bolon-player-panel .bolon-export-preview{flex:0 0 auto!important}.bolon-player-panel .bolon-export-preview video{max-height:180px!important}.bolon-player-panel .bolon-local-note{font-size:7.5px!important;line-height:1.3!important;margin:0!important}

/* On large monitors use the extra width without increasing page height. */
@media(min-width:1650px){
  .bolon-studio{grid-template-columns:minmax(195px,.7fr) minmax(400px,1.4fr) minmax(330px,1fr) minmax(300px,.9fr)!important}
  .bolon-line-text{font-size:12px!important}
}

/* Desktop/laptop: remain five visual sections. Horizontal scroll is preferred over pushing controls downward. */
@media(max-width:1300px) and (min-width:901px){
  .page[data-view="bolon"]{overflow-x:auto!important;overflow-y:hidden!important}
  .bolon-studio{min-width:1010px!important;grid-template-columns:170px 330px 280px 206px!important}
}

/* Only true mobile/tablet stacks; desktop remains the requested five-part layout. */
@media(max-width:900px){
  .page[data-view="bolon"]{height:auto!important;overflow:visible!important;display:none!important}
  .page[data-view="bolon"].active{display:block!important}
  .bolon-studio{display:grid!important;grid-template-columns:1fr!important;min-width:0!important;overflow:visible!important}
  .bolon-studio>.panel{height:auto!important;max-height:none!important;overflow:visible!important}
  .bolon-song-list{max-height:260px!important}
  .bolon-editor{display:flex!important;flex-direction:column!important}
  .bolon-field textarea{height:240px!important}
  .bolon-lyric-lines{max-height:430px!important;min-height:240px!important}
  .bolon-ai-panel,.bolon-player-panel{overflow:visible!important}
}


/* v1.0.117 — equal-height framed AI/player columns + post-transcription decision */
@media(min-width:901px){
  .bolon-ai-panel,.bolon-player-panel{
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    align-self:stretch!important;
    border:1px solid #59386b!important;
    background:linear-gradient(180deg,#171020 0%,#130c19 100%)!important;
    box-shadow:inset 0 0 0 1px rgba(168,107,234,.045),0 0 0 1px rgba(0,0,0,.12)!important;
    border-radius:12px!important;
  }
  .bolon-ai-panel{overflow:hidden!important}
  .bolon-ai-panel .bolon-audio-title,.bolon-ai-panel .bolon-upload-box{flex:0 0 auto!important}
  .bolon-ai-panel .bolon-ai-box{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;scrollbar-gutter:stable!important}
  .bolon-player-panel{overflow:auto!important;scrollbar-gutter:stable!important}
}
.bolon-decision-modal{position:fixed;inset:0;z-index:10000;background:rgba(5,2,8,.76);backdrop-filter:blur(7px);display:grid;place-items:center;padding:20px}
.bolon-decision-modal[hidden]{display:none!important}
.bolon-decision-card{width:min(520px,94vw);border:1px solid #754b8d;border-radius:18px;background:linear-gradient(155deg,#21142b,#100a16);box-shadow:0 28px 80px rgba(0,0,0,.62),0 0 40px rgba(139,74,187,.16);padding:24px;text-align:center}
.bolon-decision-icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;margin:0 auto 10px;background:#153b27;border:1px solid #49c984;color:#9ff3bd;font-size:28px;font-weight:900}
.bolon-decision-card h3{margin:0 0 8px;font-size:22px;color:#fff}
.bolon-decision-card p{margin:0 0 18px;color:#e2d5e9;font-size:17px;font-weight:800}
.bolon-decision-actions{display:grid;grid-template-columns:1fr 1.18fr;gap:10px;margin-bottom:12px}
.bolon-decision-actions button{min-height:46px}
.bolon-decision-card small{display:block;color:#a995b5;line-height:1.55}
@media(max-width:650px){.bolon-decision-actions{grid-template-columns:1fr}}

/* v1.0.118 — responsive five-part Bolon Studio
   Goal: keep the existing five visual sections, preserve every control/behavior,
   fit both maximized and normal desktop windows without horizontal page scroll,
   and keep long content scrolling inside its own column. */
@media (min-width:901px){
  html,body{overflow-x:hidden!important}
  .main{min-width:0!important;overflow-x:hidden!important}
  .page[data-view="bolon"]{
    width:100%!important;
    max-width:100%!important;
    height:calc(100vh - 78px)!important;
    max-height:calc(100vh - 78px)!important;
    min-height:0!important;
    padding:8px 8px 10px!important;
    overflow:hidden!important;
  }
  .page[data-view="bolon"] .bolon-page-head{
    min-height:50px!important;
    margin:0 0 7px!important;
    gap:8px!important;
  }
  .page[data-view="bolon"] .bolon-page-head h3{font-size:19px!important;line-height:1.05!important}
  .page[data-view="bolon"] .bolon-page-head p{
    font-size:8.5px!important;
    line-height:1.25!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    max-width:min(880px,68vw)!important;
  }
  .page[data-view="bolon"] .bolon-page-actions{gap:6px!important;flex-wrap:nowrap!important}
  .page[data-view="bolon"] .bolon-page-actions button,
  .page[data-view="bolon"] .bolon-storage-badge{font-size:9px!important;padding:7px 9px!important;white-space:nowrap!important}

  .bolon-studio{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    overflow:hidden!important;
    display:grid!important;
    grid-template-columns:
      minmax(0,.72fr)
      minmax(0,1.72fr)
      minmax(0,1.02fr)
      minmax(0,.98fr)!important;
    gap:7px!important;
    align-items:stretch!important;
  }
  .bolon-workspace{display:contents!important;min-width:0!important}
  .bolon-studio>.panel{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:100%!important;
    max-height:100%!important;
    padding:7px!important;
    overflow:hidden!important;
    border:1px solid #4d315d!important;
    border-radius:12px!important;
    background:linear-gradient(180deg,#181020 0%,#130c19 100%)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 8px 24px rgba(0,0,0,.12)!important;
  }

  /* 2/5 — song list */
  .bolon-library{display:flex!important;flex-direction:column!important;overflow:hidden!important}
  .bolon-library-head{min-width:0!important;min-height:26px!important;gap:4px!important}
  .bolon-library-head b{font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .bolon-library-head span{font-size:8px!important;white-space:nowrap!important}
  .bolon-search{height:31px!important;margin:5px 0!important;padding:0 7px!important;font-size:9px!important}
  .bolon-song-list{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable!important}
  .bolon-song-item{grid-template-columns:30px minmax(0,1fr)!important;gap:4px!important;padding:5px!important;min-width:0!important}
  .bolon-song-item span{font-size:8px!important}.bolon-song-item b{font-size:9.5px!important}

  /* 3/5 — lyrics + synced timing */
  .bolon-editor{
    display:grid!important;
    grid-template-rows:auto minmax(118px,36%) auto auto minmax(0,1fr)!important;
    gap:5px!important;
    overflow:hidden!important;
  }
  .bolon-editor-top{min-height:31px!important;gap:5px!important;min-width:0!important}
  .bolon-slot-title{gap:5px!important;min-width:0!important}.bolon-slot-title>span{font-size:8px!important;padding:3px 6px!important}
  .bolon-slot-title input{height:31px!important;min-width:0!important;font-size:9px!important;padding:0 7px!important}
  .bolon-save-state{font-size:7.5px!important;white-space:nowrap!important}
  .bolon-field{min-height:0!important;overflow:hidden!important;gap:3px!important}
  .bolon-field>span{font-size:7.6px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .bolon-field textarea{height:100%!important;min-height:0!important;max-height:none!important;resize:none!important;padding:7px 8px!important;font-size:12px!important;line-height:1.48!important}
  .bolon-transcript-notice{padding:5px 7px!important;font-size:8px!important;line-height:1.3!important}
  .bolon-karaoke-now{min-height:33px!important;padding:5px 7px!important;gap:5px!important;font-size:8.5px!important;overflow:hidden!important}
  .bolon-karaoke-now span{white-space:nowrap!important}.bolon-karaoke-now b{font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .bolon-script-head{min-height:32px!important;padding-top:4px!important;gap:5px!important;min-width:0!important}
  .bolon-script-head>div:first-child{min-width:0!important}.bolon-script-head b{font-size:10px!important}.bolon-script-head small{font-size:7px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:22vw!important}
  .bolon-script-actions{gap:4px!important;flex-wrap:nowrap!important;min-width:0!important}.bolon-script-actions button{min-width:0!important;padding:6px 6px!important;font-size:8px!important;white-space:nowrap!important}
  .bolon-lyric-lines{min-height:0!important;max-height:none!important;height:auto!important;overflow-y:auto!important;overflow-x:hidden!important;gap:3px!important;padding-right:3px!important;scrollbar-gutter:stable!important}
  .bolon-lyric-line{grid-template-columns:24px 57px minmax(0,1fr)!important;gap:4px!important;min-height:32px!important;padding:3px 5px!important;min-width:0!important}
  .bolon-line-no{font-size:7.5px!important}.bolon-line-time{height:25px!important;font-size:8px!important;padding:0 4px!important}.bolon-line-text{font-size:10px!important;line-height:1.3!important;overflow-wrap:anywhere!important}

  /* 4/5 — audio + Bengali AI */
  .bolon-ai-panel{display:flex!important;flex-direction:column!important;gap:6px!important;overflow:hidden!important}
  .bolon-ai-panel .bolon-audio-title{min-height:24px!important;padding:0 0 4px!important;flex:0 0 auto!important;position:static!important;background:transparent!important}
  .bolon-audio-title b{font-size:10px!important}.bolon-audio-title span{font-size:7.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:55%!important}
  .bolon-upload-box{min-height:70px!important;padding:6px!important;gap:3px!important;flex:0 0 auto!important}
  .bolon-upload-box>span{font-size:19px!important}.bolon-upload-box b{font-size:9.5px!important}.bolon-upload-box small{font-size:7px!important;line-height:1.2!important;text-align:center!important}
  .bolon-ai-box{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable!important;padding:6px!important;gap:5px!important}
  .bolon-ai-head{gap:3px!important;align-items:flex-start!important}.bolon-ai-head>div{flex:1 1 100%!important;min-width:0!important}.bolon-ai-head b{font-size:9px!important}.bolon-ai-head small{font-size:6.8px!important;line-height:1.22!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}.bolon-ai-head>span{font-size:7px!important;padding:2px 5px!important}
  .bolon-ai-controls{grid-template-columns:72px minmax(0,1fr)!important;gap:4px!important;min-width:0!important}.bolon-ai-controls select{font-size:8px!important;padding:0 4px!important;min-width:0!important}.bolon-ai-controls button{min-width:0!important;min-height:31px!important;padding:5px 5px!important;font-size:8px!important;line-height:1.15!important;white-space:normal!important}
  #bolonAICancelBtn:not([hidden]){grid-column:1/-1!important}
  .bolon-ai-auto{font-size:6.8px!important;line-height:1.22!important;gap:4px!important;align-items:flex-start!important}.bolon-ai-auto input{flex:0 0 auto!important;margin-top:1px!important}
  .bolon-ai-progress-meta{font-size:7px!important;gap:4px!important}.bolon-ai-progress-meta b{font-size:10px!important;min-width:28px!important}.bolon-ai-progress{height:6px!important}.bolon-ai-info{font-size:6.5px!important;line-height:1.3!important;margin:0!important}

  /* 5/5 — playback + live sync + save/export */
  .bolon-player-panel{display:flex!important;flex-direction:column!important;gap:6px!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable!important}
  .bolon-player-panel .bolon-time-row{grid-template-columns:42px minmax(0,1fr) 42px!important;font-size:7px!important;gap:4px!important;flex:0 0 auto!important}
  .bolon-player-panel .bolon-play-row{grid-template-columns:1.18fr 1fr 1fr!important;gap:4px!important;flex:0 0 auto!important}.bolon-player-panel .bolon-play-row button{min-width:0!important;min-height:32px!important;padding:5px 4px!important;font-size:8.5px!important;white-space:nowrap!important}
  .bolon-player-panel .bolon-live-sync{padding:6px!important;gap:4px!important;flex:0 0 auto!important}.bolon-player-panel .bolon-live-sync b{font-size:9px!important}.bolon-player-panel .bolon-live-sync p,.bolon-player-panel .bolon-live-info{font-size:6.8px!important;line-height:1.25!important}.bolon-player-panel .bolon-live-sync button{font-size:8px!important;padding:6px 4px!important;min-height:30px!important;white-space:normal!important}
  .bolon-player-panel .bolon-audio-meta{grid-template-columns:1fr!important;gap:0!important;flex:0 0 auto!important}.bolon-player-panel .bolon-audio-meta>div{grid-template-columns:50px minmax(0,1fr)!important;gap:5px!important;padding:4px 0!important}.bolon-player-panel .bolon-audio-meta span{font-size:7px!important}.bolon-player-panel .bolon-audio-meta b{font-size:8px!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .bolon-player-panel .bolon-finish-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important;flex:0 0 auto!important}.bolon-player-panel .bolon-finish-actions button{min-width:0!important;min-height:31px!important;padding:5px 4px!important;font-size:7.7px!important;line-height:1.15!important;white-space:normal!important}
  .bolon-player-panel .bolon-export-box{font-size:7px!important;line-height:1.25!important;flex:0 0 auto!important}.bolon-player-panel .bolon-export-preview{flex:0 0 auto!important}.bolon-player-panel .bolon-export-preview-head{font-size:7px!important;gap:4px!important}.bolon-player-panel .bolon-export-preview video{max-height:150px!important;width:100%!important}.bolon-player-panel .bolon-local-note{font-size:6.7px!important;line-height:1.25!important;margin:0!important;padding-bottom:1px!important}

  .bolon-studio button,.bolon-studio input,.bolon-studio select,.bolon-studio textarea{max-width:100%!important;min-width:0}
  .bolon-studio button{overflow-wrap:anywhere}
  .bolon-studio *{scrollbar-width:thin;scrollbar-color:#6e4288 #160e1c}
}

/* Normal desktop window: reclaim a little width from the global sidebar/topbar,
   but keep every menu item and the same visual behavior. */
@media (max-width:1320px) and (min-width:901px){
  .app-shell{grid-template-columns:220px minmax(0,1fr)!important}
  .side-brand{padding:14px!important}.side-brand b{font-size:15px!important}.side-brand small{font-size:10px!important}
  #nav{padding:8px!important;gap:3px!important}.nav-item{padding:8px 9px!important;gap:8px!important;font-size:10px!important}.nav-item span{width:18px!important}
  .side-status{padding:10px!important;font-size:9px!important}.side-status small{font-size:8px!important;max-width:155px!important}
  .topbar{height:68px!important;padding:0 12px!important}.topbar h2{font-size:16px!important}.topbar p{font-size:9px!important}.top-left,.top-actions,.profile{gap:7px!important}.profile{padding:5px 7px!important;font-size:10px!important}.logout-btn,.icon-btn,.top-actions .soft-btn{padding:8px 10px!important;font-size:9px!important}
  .page[data-view="bolon"]{height:calc(100vh - 68px)!important;max-height:calc(100vh - 68px)!important;padding:7px!important}
  .page[data-view="bolon"] .bolon-page-head{min-height:45px!important;margin-bottom:6px!important}
  .page[data-view="bolon"] .bolon-page-head h3{font-size:17px!important}
  .page[data-view="bolon"] .bolon-page-head p{font-size:7.5px!important;max-width:58vw!important}
  .bolon-studio{min-width:0!important;grid-template-columns:minmax(0,.70fr) minmax(0,1.72fr) minmax(0,1.02fr) minmax(0,.96fr)!important;gap:5px!important}
  .bolon-studio>.panel{padding:6px!important;border-radius:10px!important}
  .bolon-editor{grid-template-rows:auto minmax(110px,35%) auto auto minmax(0,1fr)!important}
  .bolon-line-text{font-size:9.5px!important}
  .bolon-player-panel .bolon-export-preview video{max-height:125px!important}
}

/* Smaller normal Windows desktop window: still no page-level horizontal scroll. */
@media (max-width:1120px) and (min-width:901px){
  .app-shell{grid-template-columns:200px minmax(0,1fr)!important}
  .side-brand{padding:11px!important}.brand-mark.small{width:38px!important;height:38px!important}.side-brand b{font-size:14px!important}
  #nav{padding:6px!important}.nav-item{padding:7px!important;font-size:9px!important}
  .topbar{height:64px!important}.topbar h2{font-size:14px!important}.topbar p{font-size:8px!important}.profile{max-width:130px!important}.profile>div:last-child{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .page[data-view="bolon"]{height:calc(100vh - 64px)!important;max-height:calc(100vh - 64px)!important;padding:6px!important}
  .page[data-view="bolon"] .bolon-page-head{min-height:42px!important}.page[data-view="bolon"] .bolon-page-head p{display:none!important}
  .bolon-studio{grid-template-columns:minmax(0,.68fr) minmax(0,1.78fr) minmax(0,1.02fr) minmax(0,.92fr)!important;gap:4px!important}
  .bolon-studio>.panel{padding:5px!important}
  .bolon-search{height:29px!important}.bolon-song-item{grid-template-columns:25px minmax(0,1fr)!important;padding:4px!important}.bolon-song-item b{font-size:8.8px!important}.bolon-song-item span{font-size:7px!important}
  .bolon-slot-title input{font-size:8.5px!important}.bolon-field textarea{font-size:11px!important}.bolon-line-text{font-size:9px!important}.bolon-lyric-line{grid-template-columns:20px 52px minmax(0,1fr)!important}
  .bolon-ai-controls{grid-template-columns:66px minmax(0,1fr)!important}.bolon-ai-controls button{font-size:7.2px!important}.bolon-ai-auto{font-size:6.2px!important}.bolon-ai-info{font-size:6px!important}
  .bolon-player-panel .bolon-play-row button{font-size:7.5px!important}.bolon-player-panel .bolon-finish-actions button{font-size:7px!important}.bolon-player-panel .bolon-export-preview video{max-height:110px!important}
}

/* Readable control panels — AI and player areas */
@media (min-width:1351px){
  .bolon-studio{grid-template-columns:minmax(205px,.58fr) minmax(470px,1.42fr) minmax(380px,1.08fr) minmax(360px,1.02fr)!important;gap:10px!important}
}
@media (min-width:901px){
  .bolon-ai-panel,.bolon-player-panel{padding:12px!important;gap:11px!important;border-color:#70468a!important}
  .bolon-ai-panel .bolon-audio-title{min-height:34px!important;padding:2px 2px 8px!important}
  .bolon-ai-panel .bolon-audio-title b{font-size:15px!important;line-height:1.35!important}
  .bolon-ai-panel .bolon-audio-title span{font-size:11px!important;line-height:1.35!important}
  .bolon-ai-panel .bolon-upload-box{min-height:112px!important;padding:14px!important;border-width:1.5px!important}
  .bolon-ai-panel .bolon-upload-box>span{font-size:29px!important}
  .bolon-ai-panel .bolon-upload-box b{font-size:14px!important;line-height:1.4!important}
  .bolon-ai-panel .bolon-upload-box small{font-size:10.5px!important;line-height:1.45!important}
  .bolon-ai-panel .bolon-ai-box{padding:12px!important;gap:10px!important;border-radius:11px!important}
  .bolon-ai-panel .bolon-ai-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:9px!important;align-items:start!important}
  .bolon-ai-panel .bolon-ai-head>div{min-width:0!important}
  .bolon-ai-panel .bolon-ai-head b{font-size:13.5px!important;line-height:1.45!important}
  .bolon-ai-panel .bolon-ai-head small{font-size:10.5px!important;line-height:1.5!important;color:#cdbbd7!important}
  .bolon-ai-panel .bolon-ai-head>span{font-size:10.5px!important;padding:4px 8px!important}
  .bolon-ai-panel .bolon-ai-controls{grid-template-columns:minmax(110px,.72fr) minmax(190px,1.5fr)!important;gap:8px!important}
  .bolon-ai-panel .bolon-ai-controls select{font-size:11.5px!important;min-height:43px!important;padding:0 9px!important}
  .bolon-ai-panel .bolon-ai-controls button{font-size:12px!important;line-height:1.35!important;min-height:43px!important;padding:8px 10px!important}
  .bolon-ai-panel .bolon-ai-auto{font-size:11px!important;line-height:1.5!important;gap:8px!important;align-items:flex-start!important;padding:3px 2px!important}
  .bolon-ai-panel .bolon-ai-auto input{flex:0 0 auto!important;width:16px!important;height:16px!important;margin-top:1px!important}
  .bolon-ai-panel .bolon-ai-simul,.bolon-ai-panel .bolon-ai-clear{padding:9px 10px!important}
  .bolon-ai-panel .bolon-ai-progress-meta{font-size:10.5px!important;gap:8px!important}
  .bolon-ai-panel .bolon-ai-progress-meta b{font-size:14px!important;min-width:42px!important}
  .bolon-ai-panel .bolon-ai-progress{height:9px!important}
  .bolon-ai-panel .bolon-ai-info{font-size:10.5px!important;line-height:1.55!important;color:#c7b5d1!important}

  .bolon-player-panel .bolon-time-row{grid-template-columns:58px minmax(0,1fr) 58px!important;font-size:10.5px!important;gap:8px!important;align-items:center!important}
  .bolon-player-title{display:flex!important;flex-direction:column!important;gap:3px!important;padding:2px 2px 10px!important;border-bottom:1px solid #3c2848!important;flex:0 0 auto!important}
  .bolon-player-title b{font-size:15px!important;line-height:1.35!important;color:#f7eefb!important}
  .bolon-player-title span{font-size:10.5px!important;line-height:1.4!important;color:#bca9c7!important}
  .bolon-player-panel .bolon-play-row{gap:8px!important}
  .bolon-player-panel .bolon-play-row button{font-size:12.5px!important;min-height:44px!important;padding:9px 7px!important}
  .bolon-player-panel .bolon-live-sync{padding:12px!important;gap:9px!important;border-radius:11px!important}
  .bolon-player-panel .bolon-live-sync b{font-size:14px!important;line-height:1.4!important}
  .bolon-player-panel .bolon-live-sync p,.bolon-player-panel .bolon-live-info{font-size:10.5px!important;line-height:1.5!important;color:#c5b2cf!important}
  .bolon-player-panel .bolon-live-sync button{font-size:12px!important;line-height:1.35!important;min-height:42px!important;padding:9px 8px!important}
  .bolon-player-panel .bolon-audio-meta{padding:7px 10px!important;border:1px solid #3e294a!important;border-radius:11px!important;background:#120b18!important}
  .bolon-player-panel .bolon-audio-meta>div{grid-template-columns:78px minmax(0,1fr)!important;gap:9px!important;padding:8px 2px!important}
  .bolon-player-panel .bolon-audio-meta span{font-size:10.5px!important}
  .bolon-player-panel .bolon-audio-meta b{font-size:11.5px!important;line-height:1.4!important}
  .bolon-player-panel .bolon-finish-actions{gap:8px!important}
  .bolon-player-panel .bolon-finish-actions button{font-size:11.5px!important;line-height:1.35!important;min-height:43px!important;padding:9px 7px!important}
  .bolon-player-panel .bolon-export-box{font-size:10.5px!important;line-height:1.5!important;padding:11px!important}
  .bolon-player-panel .bolon-export-preview-head{font-size:10.5px!important}
  .bolon-player-panel .bolon-local-note{font-size:10px!important;line-height:1.5!important;padding:7px 2px!important;color:#bba8c5!important}
}
@media (max-width:1350px) and (min-width:901px){
  .page[data-view="bolon"]{height:auto!important;max-height:none!important;overflow-y:auto!important}
  .bolon-studio{grid-template-columns:210px minmax(0,1fr) minmax(360px,.9fr)!important;grid-template-rows:minmax(620px,calc(100vh - 135px)) auto!important;overflow:visible!important}
  .bolon-library{grid-column:1;grid-row:1}.bolon-editor{grid-column:2;grid-row:1}.bolon-ai-panel{grid-column:3;grid-row:1}
  .bolon-player-panel{grid-column:2/4;grid-row:2;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(320px,.8fr)!important;height:auto!important;max-height:none!important;overflow:visible!important;align-items:start!important}
  .bolon-player-panel .bolon-player-title{grid-column:1/-1!important}
  .bolon-player-panel .bolon-time-row,.bolon-player-panel .bolon-play-row{grid-column:1}
  .bolon-player-panel .bolon-live-sync{grid-column:1;grid-row:3/7}
  .bolon-player-panel .bolon-audio-meta,.bolon-player-panel .bolon-finish-actions,.bolon-player-panel .bolon-export-box,.bolon-player-panel .bolon-export-preview,.bolon-player-panel .bolon-local-note{grid-column:2}
}
@media (max-width:900px){
  .bolon-ai-panel,.bolon-player-panel{padding:14px!important;gap:12px!important}
  .bolon-ai-auto,.bolon-ai-info,.bolon-live-sync p,.bolon-live-info,.bolon-local-note{font-size:12px!important;line-height:1.55!important}
  .bolon-ai-controls button,.bolon-play-row button,.bolon-live-sync button,.bolon-finish-actions button{font-size:13px!important;min-height:44px!important}
}

/* Clear ON/OFF behavior for every studio control */
.bolon-studio button{transition:transform .13s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease,opacity .18s ease!important}
.bolon-studio button:not(:disabled):hover{border-color:#9d66c2!important;filter:brightness(1.08)}
.bolon-studio button:not(:disabled):active{transform:translateY(1px) scale(.985)!important;box-shadow:inset 0 2px 8px rgba(0,0,0,.38)!important}
.bolon-studio button:disabled{opacity:.38!important;filter:grayscale(.75)!important;cursor:not-allowed!important;box-shadow:none!important}
.bolon-studio button.is-on{color:#07170d!important;background:linear-gradient(135deg,#72ef9c,#33bb69)!important;border-color:#a5ffc3!important;box-shadow:0 0 0 2px rgba(91,235,139,.2),0 0 18px rgba(55,211,107,.42)!important;font-weight:900!important}
.bolon-studio button.is-off:not(:disabled){background:#2a1d35!important;color:#eadff2!important;border-color:#553866!important;box-shadow:none!important}
.bolon-player-panel[data-audio-state="paused"] #bolonPauseBtn{color:#251600!important;background:linear-gradient(135deg,#ffd76b,#e7a72e)!important;border-color:#ffe29a!important;box-shadow:0 0 16px rgba(242,184,75,.35)!important;font-weight:900!important;opacity:1!important;filter:none!important}
.bolon-player-panel[data-audio-state="stopped"] #bolonStopBtn{color:#ffecef!important;background:linear-gradient(135deg,#8d3349,#5d2032)!important;border-color:#d96a82!important;opacity:1!important;filter:none!important;font-weight:900!important}
.bolon-audio-title #bolonAudioStatus{padding:4px 8px!important;border:1px solid #4d3658!important;border-radius:999px!important;background:#21152b!important;font-weight:800!important}
.bolon-audio-title #bolonAudioStatus[data-state="on"]{color:#baffce!important;background:#11331f!important;border-color:#47c98a!important;box-shadow:0 0 12px rgba(71,201,138,.28)!important}
.bolon-audio-title #bolonAudioStatus[data-state="paused"]{color:#ffe09a!important;background:#38280d!important;border-color:#c8932e!important}
.bolon-audio-title #bolonAudioStatus[data-state="off"]{color:#ffc5cf!important;background:#34141d!important;border-color:#a84a61!important}
.bolon-ai-auto{position:relative!important;padding-right:54px!important;cursor:pointer!important}
.bolon-ai-auto:after{content:"বন্ধ";position:absolute;right:4px;top:50%;transform:translateY(-50%);min-width:40px;padding:2px 6px;border-radius:999px;border:1px solid #684153;background:#351722;color:#ffbdc8;font-size:9.5px;line-height:1.35;text-align:center;font-weight:900}
.bolon-ai-auto:has(input:checked):after{content:"চালু";border-color:#3f9d62;background:#123a22;color:#baffce;box-shadow:0 0 10px rgba(71,201,138,.2)}
.bolon-ai-auto:has(input:checked){border-color:#4b9a69!important;background:linear-gradient(90deg,rgba(28,91,51,.32),rgba(27,19,35,.6))!important;color:#effff4!important}
.bolon-ai-auto:not(:has(input:checked)){opacity:.72;color:#b8a8c5!important}
#bolonMarkNextBtn:not(:disabled){color:#1a0d22!important;background:linear-gradient(135deg,#f4ce68,#c99532)!important;border-color:#ffe39a!important;box-shadow:0 0 14px rgba(229,179,66,.28)!important}
#bolonAICancelBtn:not([hidden]){color:#fff!important;background:linear-gradient(135deg,#b83d58,#76253a)!important;border-color:#e56a82!important}

/* v1.0.119 brand icon — use the supplied artwork everywhere a brand mark appears */
.brand-mark,.avatar{padding:0!important;overflow:hidden;background:#18083c!important}
.brand-mark img,.avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}

/* Large desktop: use the extra width, never the extra page height. */
@media (min-width:1500px){
  .bolon-studio{grid-template-columns:minmax(0,.70fr) minmax(0,1.72fr) minmax(0,1.02fr) minmax(0,.98fr)!important;gap:8px!important}
  .bolon-studio>.panel{padding:8px!important}
  .bolon-line-text{font-size:11px!important}
  .bolon-field textarea{font-size:13px!important}
}

/* True tablet/mobile can stack, but desktop never gets horizontal page scrolling. */
@media (max-width:900px){
  .page[data-view="bolon"]{height:auto!important;max-height:none!important;overflow:visible!important}
  .bolon-studio{min-width:0!important;width:100%!important;grid-template-columns:1fr!important;overflow:visible!important}
}
/* Persistent audio/video media library */
.bolon-media-library{margin:12px 0;padding:12px;border:1px solid #5b3674;border-radius:14px;background:linear-gradient(180deg,rgba(82,43,106,.22),rgba(20,11,27,.45))}
.bolon-media-library-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.bolon-media-library-head>div{display:grid;gap:2px}.bolon-media-library-head b{font-size:14px;color:#fff}.bolon-media-library-head small{font-size:12px;color:#d9c7e6}.bolon-media-library-head button{min-height:34px;padding:7px 12px}
.bolon-media-library-list{display:grid;gap:7px;max-height:205px;overflow:auto;padding-right:3px}.bolon-media-empty{padding:18px 10px;text-align:center;color:#bba8c9;border:1px dashed #65417b;border-radius:10px}
.bolon-media-item{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:6px;border:1px solid #4e315f;border-radius:11px;padding:4px;background:#150c1d}.bolon-media-item.active{border-color:#b558ef;box-shadow:0 0 0 1px rgba(181,88,239,.35);background:#24102f}
.bolon-media-select{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;border:0;background:transparent;color:#fff;text-align:left;padding:6px;cursor:pointer}.bolon-media-select>span:nth-child(2){display:grid;gap:3px;min-width:0}.bolon-media-select b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.bolon-media-select small{color:#cdbbd9;font-size:11px}.bolon-media-select em{font-style:normal;font-size:11px;color:#dcaeff}.bolon-media-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#3b1e4d;font-size:18px}.bolon-media-delete{border:0;border-radius:8px;background:#2d192f;color:#e4cce9;cursor:pointer}.bolon-media-delete:hover{background:#702c45;color:#fff}
.bolon-media-ready{margin-top:9px;padding:9px 10px;border-radius:9px;background:#24172c;color:#c9b7d5;font-size:12px;line-height:1.45}.bolon-media-ready.is-ready{border:1px solid #27875a;background:#0d3828;color:#c9ffe3}

/* Editable song list + compact in-page video preview */
.bolon-song-row{display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:3px;align-items:center;border-radius:8px;min-width:0}.bolon-song-row .bolon-song-item{min-width:0}.bolon-song-edit{display:grid;place-items:center;width:28px;height:28px;padding:0!important;border:1px solid #543269;border-radius:7px;background:#24132e;color:#d9b8ef;cursor:pointer;font-size:12px}.bolon-song-edit:hover,.bolon-song-row.active .bolon-song-edit{background:#7a3bab;color:#fff;border-color:#a967d0}.bolon-manual-mode{border:1px solid #47705a!important;background:#143122!important;color:#c9f9dc!important;border-radius:8px!important;padding:6px!important}.bolon-manual-mode input{accent-color:#48c77f!important}
@media(min-width:901px){
  .bolon-player-panel{overflow:hidden!important}
  .bolon-player-panel .bolon-live-sync{padding:5px!important;gap:3px!important}.bolon-player-panel .bolon-live-sync p{margin:2px 0!important}.bolon-player-panel .bolon-live-sync button{min-height:27px!important;padding:4px!important}
  .bolon-player-panel .bolon-audio-meta>div{padding:3px 0!important}
  .bolon-player-panel .bolon-finish-actions button{min-height:28px!important;padding:4px!important}
  .bolon-player-panel .bolon-export-box{padding:6px!important}.bolon-player-panel .bolon-export-box small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .bolon-player-panel .bolon-export-preview{min-height:0!important;max-height:128px!important;padding:6px!important;gap:4px!important;overflow:hidden!important}.bolon-player-panel .bolon-export-preview video{display:block!important;width:100%!important;height:96px!important;max-height:96px!important;object-fit:contain!important;background:#000!important}
  .bolon-player-panel .bolon-local-note{display:none!important}
}
@media(max-height:850px) and (min-width:901px){.bolon-player-panel .bolon-export-preview{max-height:108px!important}.bolon-player-panel .bolon-export-preview video{height:78px!important;max-height:78px!important}.bolon-player-panel .bolon-live-sync p{display:none!important}}

/* Keep the long completion status from squeezing the Bengali AI heading vertically. */
.bolon-ai-panel .bolon-ai-head{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:5px!important;width:100%!important}
.bolon-ai-panel .bolon-ai-head>div{width:100%!important;min-width:0!important}
.bolon-ai-panel .bolon-ai-head>span{justify-self:start!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.35!important}
.bolon-ai-panel .bolon-ai-head b,.bolon-ai-panel .bolon-ai-head small{white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}

/* Guided manual-media + pasted-script workflow */
.bolon-paste-workflow{display:grid;grid-template-columns:repeat(7,minmax(105px,1fr));gap:5px;margin:0 0 7px;flex:0 0 auto;overflow-x:auto;padding:2px}.bolon-paste-workflow button{display:flex;align-items:center;gap:6px;min-width:105px;min-height:44px;padding:5px 7px;border:1px solid #503160;border-radius:10px;background:#160d1d;color:#d8c8e1;text-align:left;cursor:pointer}.bolon-paste-workflow button i{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#33203f;color:#e9d8f4;font-style:normal;font-weight:900;font-size:10px}.bolon-paste-workflow button span{display:grid;min-width:0}.bolon-paste-workflow button b{font-size:9px;white-space:nowrap}.bolon-paste-workflow button small{font-size:7px;color:#aa96b6;white-space:nowrap}.bolon-paste-workflow button.done{border-color:#29784f;background:#102b20}.bolon-paste-workflow button.done i{background:#218653;color:#fff}.bolon-paste-workflow button.active{border-color:#c06cff;background:#482064;box-shadow:0 0 0 2px rgba(192,108,255,.18),0 0 18px rgba(168,77,231,.2)}.bolon-paste-workflow button.active i{background:#a64ce5;color:#fff}.bolon-guide-pulse{animation:bolonGuidePulse .72s ease-in-out 2!important}@keyframes bolonGuidePulse{50%{box-shadow:0 0 0 4px rgba(213,118,255,.55),0 0 28px rgba(190,80,255,.45)!important}}
@media(max-width:900px){.bolon-paste-workflow{grid-template-columns:repeat(7,120px)}}

/* Vocal pauses: retain the last spoken word without showing it as currently active. */
.bolon-word.held,.bolon-now-word.held{background:#3b2d16!important;color:#ffe898!important;border-color:#816b2b!important;box-shadow:none!important;animation:none!important}.bolon-now-word.held{display:inline-block;padding:3px 8px;border:1px solid #816b2b;border-radius:7px}

/* Bolon theory library — original manuscript/audio/video structure in the app theme. */
.bolon-theory-page{height:calc(100vh - 76px);max-height:calc(100vh - 76px);overflow:hidden;padding:14px!important;grid-template-rows:auto auto minmax(0,1fr);gap:12px}
.bolon-theory-page.active{display:grid!important}
.bolon-theory-hero{position:relative;overflow:hidden;text-align:center;padding:18px 24px;border:1px solid #633681;border-radius:18px;background:radial-gradient(circle at 50% -80%,rgba(187,91,255,.46),transparent 70%),linear-gradient(135deg,#24102f,#100916 62%,#251037);box-shadow:0 16px 36px rgba(0,0,0,.22)}
.bolon-theory-hero:after{content:"";position:absolute;inset:auto 18% 0;height:2px;background:linear-gradient(90deg,transparent,#d692ff,transparent)}
.bolon-theory-hero span{display:inline-block;padding:4px 10px;border-radius:999px;background:#7135a2;color:#f7e9ff;font-size:11px;font-weight:800;letter-spacing:.04em}
.bolon-theory-hero h1{margin:5px 0 2px;color:#fff;font-size:clamp(24px,2.2vw,38px);line-height:1.05;text-shadow:0 0 20px rgba(197,104,255,.35)}
.bolon-theory-hero p{margin:0;color:#d8c8e4;font-size:13px}
.bolon-theory-tools{display:flex;align-items:center;gap:8px;padding:8px 10px!important}.bolon-theory-tools button{min-height:36px;padding:7px 13px}.bolon-theory-tools span{margin-left:auto;color:#bfaecb;font-size:12px}
.bolon-theory-layout{display:grid;grid-template-columns:minmax(290px,.82fr) minmax(250px,.68fr) minmax(390px,1.28fr);gap:12px;min-height:0}
.bolon-theory-card{display:flex;min-width:0;min-height:0;flex-direction:column;padding:14px!important;overflow:hidden;border-color:#57316c!important;background:linear-gradient(180deg,rgba(44,21,57,.92),rgba(18,10,24,.96))!important}
.bolon-theory-card-head{display:flex;align-items:center;gap:10px;padding-bottom:11px;margin-bottom:11px;border-bottom:1px solid #4f315d}.bolon-theory-card-head h2{margin:0;color:#fff;font-size:18px}.bolon-theory-card-head p{margin:2px 0 0;color:#bfaecb;font-size:11px}.bolon-theory-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#9147c8,#4e2170);color:#fff;font-size:19px;box-shadow:0 7px 18px rgba(125,51,177,.3)}
#bolonTheoryText{width:100%;height:100%;min-height:280px;resize:none;padding:16px;border:1px solid #55326a;border-radius:13px;outline:0;background:#0d0812;color:#fff;font-family:inherit;font-size:clamp(17px,1.15vw,22px);font-weight:600;line-height:1.85;caret-color:#d182ff}#bolonTheoryText:focus{border-color:#b45ce9;box-shadow:0 0 0 3px rgba(180,92,233,.15)}
.bolon-theory-drop{display:grid;place-items:center;gap:6px;min-height:170px;padding:20px;border:1px dashed #995ec0;border-radius:14px;background:linear-gradient(145deg,rgba(94,41,123,.22),rgba(11,7,15,.3));text-align:center;cursor:pointer;transition:.18s}.bolon-theory-drop:hover{border-color:#d282ff;background:rgba(115,53,151,.27);transform:translateY(-1px)}.bolon-theory-drop>span{font-size:36px}.bolon-theory-drop b{font-size:15px;color:#fff}.bolon-theory-drop small{color:#baa7c7}
.bolon-theory-file-name{margin:10px 0 8px;padding:9px 10px;border-radius:9px;background:#180d20;color:#d9c7e5;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#bolonTheoryAudio{width:100%;margin-top:auto;filter:sepia(.15) hue-rotate(225deg) saturate(1.4)}
.bolon-theory-video-stage{position:relative;display:grid;place-items:center;flex:1;min-height:280px;overflow:hidden;border:1px solid #57316b;border-radius:14px;background:#050308;cursor:pointer}.bolon-theory-video-stage video{display:block;width:100%;height:100%;max-height:100%;object-fit:contain;background:#000}.bolon-theory-video-empty{display:none;text-align:center;color:#d7c1e6}.bolon-theory-video-empty b,.bolon-theory-video-empty small{display:block}.bolon-theory-video-empty b{margin-bottom:7px;font-size:16px}.bolon-theory-video-empty small{color:#ae9abb}.bolon-theory-video-stage.empty .bolon-theory-video-empty{display:block}.bolon-theory-video-stage.empty:hover{border-color:#c06cff;background:#120919}
html.light .bolon-theory-card{background:linear-gradient(180deg,#fff,#f6eefb)!important}html.light #bolonTheoryText{background:#fff;color:#24152c}html.light .bolon-theory-file-name{background:#eee2f4;color:#432751}
@media(max-width:1200px){.bolon-theory-page{height:auto;max-height:none;overflow:visible}.bolon-theory-layout{grid-template-columns:1fr 1fr}.bolon-theory-video-card{grid-column:1/-1;min-height:460px}}
@media(max-width:720px){.bolon-theory-page{padding:9px!important}.bolon-theory-layout{grid-template-columns:1fr}.bolon-theory-video-card{grid-column:auto;min-height:380px}.bolon-theory-tools{flex-wrap:wrap}.bolon-theory-tools span{width:100%;margin:0}.bolon-theory-hero{padding:15px 10px}}

/* Theory reader: manuscript with audio below, page-turning ebook in the centre. */
.bolon-theory-layout{grid-template-columns:minmax(315px,.9fr) minmax(360px,1.08fr) minmax(420px,1.25fr)}
.bolon-theory-left-stack{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;min-width:0;min-height:0}
.bolon-theory-text-card{min-height:0}.bolon-theory-text-card #bolonTheoryText{min-height:160px}.bolon-theory-add-book{width:100%;min-height:42px;margin-top:9px;font-size:13px}
.bolon-theory-audio-card{min-height:190px;max-height:230px}.bolon-theory-audio-card .bolon-theory-card-head{padding-bottom:7px;margin-bottom:8px}.bolon-theory-audio-row{display:grid;grid-template-columns:132px minmax(0,1fr);gap:9px;min-height:0}.bolon-theory-audio-card .bolon-theory-drop{min-height:92px;padding:8px;gap:2px}.bolon-theory-audio-card .bolon-theory-drop>span{font-size:22px}.bolon-theory-audio-card .bolon-theory-drop b{font-size:11px}.bolon-theory-audio-card .bolon-theory-drop small{font-size:9px}.bolon-theory-audio-player{display:flex;flex-direction:column;justify-content:center;min-width:0}.bolon-theory-audio-card .bolon-theory-file-name{margin:0 0 7px}.bolon-theory-audio-card audio{margin:0;width:100%;height:38px}
.bolon-theory-ebook-card{background:radial-gradient(circle at 50% 15%,rgba(124,58,163,.25),transparent 45%),linear-gradient(180deg,rgba(39,18,51,.96),rgba(13,8,18,.98))!important}
.bolon-ebook-book{position:relative;display:flex;flex:1;min-height:300px;padding:17px 15px 15px;perspective:1200px;background:linear-gradient(90deg,#341946 0 10px,#1c1025 10px calc(100% - 10px),#341946 calc(100% - 10px));border:1px solid #70428a;border-radius:8px 18px 18px 8px;box-shadow:inset 12px 0 22px rgba(0,0,0,.35),0 14px 30px rgba(0,0,0,.28)}
.bolon-ebook-ribbon{position:absolute;z-index:2;top:0;right:24px;padding:6px 10px 10px;background:#873fc0;color:#fff;font-size:10px;font-weight:900;clip-path:polygon(0 0,100% 0,100% 75%,50% 100%,0 75%)}
.bolon-ebook-page{width:100%;overflow:auto;padding:34px 28px 28px;border-radius:3px 12px 12px 3px;background:linear-gradient(90deg,#eee2c6,#fffaf0 8%,#fffdf7 92%,#e9ddc1);color:#281c20;white-space:pre-wrap;font-size:clamp(17px,1.15vw,22px);font-weight:600;line-height:1.9;text-shadow:none;box-shadow:inset 14px 0 22px rgba(87,56,34,.11);transform-origin:left center}.bolon-ebook-page.empty{display:grid;place-items:center;text-align:center;color:#8c7b6c;font-size:14px;font-weight:500}.bolon-ebook-page.turn-next{animation:bolonPageNext .48s ease}.bolon-ebook-page.turn-prev{animation:bolonPagePrev .48s ease}@keyframes bolonPageNext{0%{transform:rotateY(-12deg) translateX(8px);opacity:.55}100%{transform:none;opacity:1}}@keyframes bolonPagePrev{0%{transform:rotateY(12deg) translateX(-8px);opacity:.55}100%{transform:none;opacity:1}}
.bolon-ebook-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin-top:10px}.bolon-ebook-nav button{min-height:40px}.bolon-ebook-nav span{min-width:82px;text-align:center;color:#e8d9f1;font-size:12px;font-weight:800}.bolon-ebook-delete{align-self:center;margin:7px auto 0;min-height:30px!important;padding:4px 12px!important;color:#cbb8d5!important;font-size:10px!important}
@media(max-width:1350px){.bolon-theory-layout{grid-template-columns:minmax(300px,.9fr) minmax(350px,1.05fr)}.bolon-theory-video-card{grid-column:1/-1;min-height:480px}}
@media(max-width:780px){.bolon-theory-layout{grid-template-columns:1fr}.bolon-theory-video-card{grid-column:auto}.bolon-theory-left-stack{grid-template-rows:auto auto}.bolon-theory-text-card{min-height:470px}.bolon-theory-audio-card{max-height:none}.bolon-theory-audio-row{grid-template-columns:1fr}.bolon-theory-audio-card .bolon-theory-drop{min-height:110px}.bolon-theory-ebook-card{min-height:560px}.bolon-ebook-page{padding:34px 20px 22px}}

/* Final three-column reader look + persistent font-size controls. */
.bolon-font-tools{display:flex;align-items:center;gap:5px;padding:3px 5px;border:1px solid #4c315a;border-radius:10px;background:#140b1a}.bolon-font-tools b{padding:0 5px;color:#d8c6e3;font-size:11px}.bolon-font-tools button{min-width:38px!important;min-height:30px!important;padding:4px 8px!important;font-weight:900}.bolon-font-tools output{min-width:46px;color:#fff;text-align:center;font-size:11px;font-weight:900}
.bolon-theory-layout{grid-template-columns:minmax(300px,.82fr) minmax(365px,1fr) minmax(430px,1.28fr)!important}
.bolon-theory-left-stack{display:block;min-height:0}.bolon-theory-left-stack>.bolon-theory-text-card{height:100%}
.bolon-theory-right-stack{display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px;min-width:0;min-height:0}.bolon-theory-right-stack .bolon-theory-audio-card{min-height:170px;max-height:205px}.bolon-theory-right-stack .bolon-theory-video-card{grid-column:auto!important;min-height:0!important}
.bolon-theory-page #bolonTheoryText,.bolon-theory-page .bolon-ebook-page{font-size:var(--bolon-reader-font-size,22px)!important}
@media(max-width:1350px){.bolon-theory-layout{grid-template-columns:minmax(300px,.9fr) minmax(360px,1.05fr)!important}.bolon-theory-right-stack{grid-column:1/-1;grid-template-columns:minmax(300px,.65fr) minmax(450px,1.35fr);grid-template-rows:minmax(260px,1fr)}.bolon-theory-right-stack .bolon-theory-audio-card{max-height:none}.bolon-theory-right-stack .bolon-theory-video-card{min-height:360px!important}}
@media(max-width:780px){.bolon-theory-layout{grid-template-columns:1fr!important}.bolon-theory-right-stack{grid-column:auto;grid-template-columns:1fr;grid-template-rows:auto minmax(380px,1fr)}.bolon-theory-right-stack .bolon-theory-audio-card{max-height:none}.bolon-font-tools{order:3}.bolon-theory-tools>span{order:4}}

/* Audio/video playlists and video transport toolbar. */
.bolon-theory-right-stack{grid-template-rows:minmax(235px,.42fr) minmax(0,1fr)}.bolon-theory-right-stack .bolon-theory-audio-card{max-height:none;min-height:235px}.bolon-theory-right-stack .bolon-theory-audio-card .bolon-theory-card-head{margin-bottom:6px}.bolon-theory-right-stack .bolon-theory-audio-row{grid-template-columns:120px minmax(0,1fr)}
.bolon-media-playlist{display:grid;gap:4px;max-height:92px;margin-top:7px;overflow:auto;padding-right:2px}.bolon-video-playlist{max-height:102px}.bolon-playlist-empty{padding:8px;border:1px dashed #523363;border-radius:8px;color:#9d8baa;text-align:center;font-size:10px}.bolon-playlist-item{display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:4px;border:1px solid #432951;border-radius:8px;background:#120a18}.bolon-playlist-item.active{border-color:#a753dd;background:#2b1238;box-shadow:inset 3px 0 #b85cf0}.bolon-playlist-item button{min-width:0;min-height:28px;padding:3px 6px;border:0;background:transparent;color:#d9c8e3;cursor:pointer}.bolon-playlist-item button:first-child{display:flex;align-items:center;gap:6px;text-align:left}.bolon-playlist-item button:first-child span{color:#d17aff}.bolon-playlist-item b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.bolon-playlist-item button:last-child:hover{background:#69263c;color:#fff}
.bolon-video-toolbar{display:grid;grid-template-columns:34px 38px 34px 34px auto minmax(90px,1fr) 34px 72px 34px;align-items:center;gap:4px;margin:0 0 7px;padding:6px;border:1px solid #4c2c5d;border-radius:10px;background:#120a18}.bolon-video-toolbar button{display:grid;place-items:center;min-width:0;height:30px;padding:0;border:1px solid #513161;border-radius:7px;background:#291634;color:#f5eaff;cursor:pointer}.bolon-video-toolbar button:hover{border-color:#be69ee;background:#71349a}.bolon-video-toolbar span{min-width:82px;color:#cfbdd9;text-align:center;font:700 10px/1 sans-serif}.bolon-video-toolbar input[type="range"]{width:100%;accent-color:#a34ada}.bolon-video-toolbar #bolonVideoVolume{min-width:55px}.bolon-theory-video-card .bolon-theory-video-stage{min-height:150px}
@media(max-width:620px){.bolon-video-toolbar{grid-template-columns:repeat(4,1fr);}.bolon-video-toolbar span,.bolon-video-toolbar #bolonVideoSeek{grid-column:span 2}.bolon-video-toolbar #bolonVideoVolume{grid-column:span 2}.bolon-video-toolbar button{min-height:34px}}

/* Separate playlist shelf: media is queued first, then played by selecting a row. */
.bolon-theory-layout{grid-template-columns:minmax(285px,.82fr) minmax(350px,1fr) minmax(330px,.82fr) minmax(260px,.7fr)!important}
.bolon-playlist-shelf{display:grid;grid-template-rows:1fr 1fr;gap:12px;min-width:0;min-height:0}.bolon-playlist-panel{display:flex;min-height:0;flex-direction:column;padding:11px!important;overflow:hidden;background:linear-gradient(180deg,rgba(46,22,60,.96),rgba(15,8,21,.98))!important}.bolon-playlist-head{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:8px;padding-bottom:9px;margin-bottom:8px;border-bottom:1px solid #50305f}.bolon-playlist-head>span{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,#9348c9,#572477);color:#fff}.bolon-playlist-head h3{margin:0;color:#fff;font-size:14px}.bolon-playlist-head p{margin:2px 0 0;color:#aa98b6;font-size:9px}.bolon-playlist-head>b{display:grid;place-items:center;min-width:27px;height:27px;padding:0 6px;border:1px solid #7b4793;border-radius:999px;background:#2a1435;color:#e9d6f5;font-size:11px}.bolon-playlist-panel .bolon-media-playlist{flex:1;max-height:none;margin:0}.bolon-playlist-panel .bolon-playlist-item{min-height:38px}.bolon-playlist-panel .bolon-playlist-item b{font-size:11px}.bolon-playlist-panel .bolon-playlist-empty{display:grid;place-items:center;height:100%;min-height:90px}
.bolon-playlist-panel .bolon-media-playlist{align-content:start;scrollbar-gutter:stable}.bolon-playlist-panel .bolon-playlist-item button:first-child{display:grid;grid-template-columns:34px 18px minmax(0,1fr);gap:5px}.bolon-playlist-item button:first-child i{display:grid;place-items:center;height:24px;border-right:1px solid #4e315d;color:#b9a4c7;font:800 9px/1 sans-serif;font-style:normal}.bolon-playlist-item.active button:first-child i{color:#f0cfff}.bolon-playlist-panel .bolon-playlist-item b{text-align:left}.bolon-playlist-panel .bolon-playlist-item:nth-child(odd){background:#160b1d}.bolon-playlist-panel .bolon-playlist-item:nth-child(even){background:#1c0e24}
@media(max-width:1600px){.bolon-theory-layout{grid-template-columns:minmax(300px,.85fr) minmax(360px,1fr) minmax(380px,1fr)!important}.bolon-playlist-shelf{grid-column:1/-1;grid-template-columns:1fr 1fr;grid-template-rows:minmax(220px,auto)}}
@media(max-width:1000px){.bolon-theory-layout{grid-template-columns:1fr 1fr!important}.bolon-playlist-shelf{grid-column:1/-1}.bolon-theory-right-stack{grid-column:1/-1}}
@media(max-width:780px){.bolon-theory-layout{grid-template-columns:1fr!important}.bolon-playlist-shelf{grid-column:auto;grid-template-columns:1fr;grid-template-rows:320px 320px}}

/* Playlist input belongs above each numbered list; fullscreen always remains visible. */
.bolon-playlist-input{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;min-height:38px;margin:0 0 8px;padding:7px 9px;border:1px solid #8e4fb0;border-radius:9px;background:linear-gradient(135deg,#71329b,#4b2169);color:#fff;text-align:center;font-size:12px;font-weight:900;cursor:pointer;box-shadow:0 6px 14px rgba(0,0,0,.18)}.bolon-playlist-input:hover{border-color:#db91ff;filter:brightness(1.12)}.bolon-playlist-input small{color:#eadcf2;font-size:9px;font-weight:500}.bolon-theory-audio-player{width:100%;height:100%;justify-content:center}.bolon-theory-audio-card .bolon-theory-file-name{margin-bottom:12px}.bolon-theory-video-stage{cursor:default!important}
.bolon-video-toolbar{grid-template-columns:32px 36px 32px 32px minmax(66px,1fr) 32px 70px!important;grid-template-rows:30px 30px;overflow:visible!important}.bolon-video-toolbar #bolonVideoPrevBtn{grid-column:1;grid-row:1}.bolon-video-toolbar #bolonVideoPlayBtn{grid-column:2;grid-row:1}.bolon-video-toolbar #bolonVideoStopBtn{grid-column:3;grid-row:1}.bolon-video-toolbar #bolonVideoNextBtn{grid-column:4;grid-row:1}.bolon-video-toolbar #bolonVideoTime{grid-column:5/7;grid-row:1}.bolon-video-toolbar #bolonVideoFullscreenBtn{grid-column:7;grid-row:1;width:70px!important;font-size:18px;background:#613087;border-color:#bd68ec;box-shadow:0 0 10px rgba(173,82,224,.25)}.bolon-video-toolbar #bolonVideoSeek{grid-column:1/5;grid-row:2}.bolon-video-toolbar #bolonVideoMuteBtn{grid-column:5;grid-row:2}.bolon-video-toolbar #bolonVideoVolume{grid-column:6/8;grid-row:2;min-width:70px!important}
@media(max-width:620px){.bolon-video-toolbar{grid-template-columns:repeat(4,1fr)!important;grid-template-rows:auto!important}.bolon-video-toolbar>*{grid-column:auto!important;grid-row:auto!important}.bolon-video-toolbar #bolonVideoTime,.bolon-video-toolbar #bolonVideoSeek,.bolon-video-toolbar #bolonVideoVolume{grid-column:span 2!important}.bolon-video-toolbar #bolonVideoFullscreenBtn{width:auto!important}}

/* Compact reliable volume group: icon, slider and percentage stay together. */
.bolon-video-toolbar{grid-template-columns:32px 36px 32px 32px minmax(70px,1fr) 70px!important;grid-template-rows:30px 32px!important}.bolon-video-toolbar #bolonVideoTime{grid-column:5!important;grid-row:1!important}.bolon-video-toolbar #bolonVideoFullscreenBtn{grid-column:6!important;grid-row:1!important;width:70px!important}.bolon-video-toolbar #bolonVideoSeek{grid-column:1/5!important;grid-row:2!important}.bolon-video-volume{grid-column:5/7;grid-row:2;display:grid;grid-template-columns:32px minmax(64px,1fr) 39px;align-items:center;gap:5px;min-width:0}.bolon-video-volume #bolonVideoMuteBtn{grid-column:1!important;grid-row:1!important;width:32px;height:30px}.bolon-video-volume #bolonVideoMuteBtn.is-muted{background:#6d273d;border-color:#d3627e}.bolon-video-volume #bolonVideoVolume{grid-column:2!important;grid-row:1!important;min-width:0!important;width:100%}.bolon-video-volume output{color:#dccbe6;text-align:right;font:800 9px/1 sans-serif}
@media(max-width:620px){.bolon-video-toolbar{grid-template-columns:repeat(4,1fr)!important;grid-template-rows:auto!important}.bolon-video-toolbar #bolonVideoTime{grid-column:1/3!important;grid-row:auto!important}.bolon-video-toolbar #bolonVideoFullscreenBtn{grid-column:3/5!important;grid-row:auto!important;width:auto!important}.bolon-video-toolbar #bolonVideoSeek{grid-column:1/5!important;grid-row:auto!important}.bolon-video-volume{grid-column:1/5;grid-row:auto}}

/* Move the complete volume control above the transport bar. */
.bolon-video-info-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(155px,205px);align-items:center;gap:8px;margin:7px 0}.bolon-video-info-row .bolon-theory-file-name{margin:0}.bolon-video-info-row .bolon-video-volume{display:grid;grid-template-columns:32px minmax(55px,1fr) 38px;grid-column:auto;grid-row:auto;align-items:center;gap:5px;min-width:0;padding:4px 6px;border:1px solid #4e2f5d;border-radius:9px;background:#130a19}.bolon-video-info-row .bolon-video-volume #bolonVideoMuteBtn{display:grid;place-items:center;width:32px;height:30px;padding:0;border:1px solid #593469;border-radius:7px;background:#2b1737;color:#fff}.bolon-video-info-row .bolon-video-volume #bolonVideoVolume{width:100%;min-width:0;accent-color:#ae50e6}.bolon-video-info-row .bolon-video-volume output{color:#eadcf2;text-align:right;font:800 9px/1 sans-serif}
.bolon-video-toolbar{grid-template-columns:32px 36px 32px 32px minmax(70px,1fr) 70px!important;grid-template-rows:30px 24px!important}.bolon-video-toolbar #bolonVideoSeek{grid-column:1/7!important;grid-row:2!important;width:100%}
@media(max-width:620px){.bolon-video-info-row{grid-template-columns:1fr}.bolon-video-info-row .bolon-video-volume{width:100%}}

/* Independent audio/video category selectors. */
.bolon-playlist-head{grid-template-columns:36px minmax(0,1fr) minmax(92px,118px) auto}.bolon-category-select{width:100%;height:31px;min-width:0;padding:4px 22px 4px 8px;border:1px solid #7c4794;border-radius:8px;outline:0;background:#1b0e24;color:#f5eafa;font-family:inherit;font-size:10px;font-weight:800;cursor:pointer}.bolon-category-select:focus{border-color:#ca75f4;box-shadow:0 0 0 2px rgba(190,92,235,.18)}.bolon-category-select option{background:#180c20;color:#fff}
@media(max-width:430px){.bolon-playlist-head{grid-template-columns:36px minmax(0,1fr) auto}.bolon-category-select{grid-column:2/4;grid-row:2}}

/* Editable ebook text lists (Bolon, Lalon and user-created categories). */
.bolon-ebook-head{flex-wrap:wrap}.bolon-text-category-tools{display:grid;grid-template-columns:minmax(100px,150px) 30px 30px;gap:5px;margin-left:auto}.bolon-text-category-tools select{height:32px;min-width:0;padding:4px 24px 4px 9px;border:1px solid #8d4eaa;border-radius:8px;outline:0;background:#170c1e;color:#fff;font-family:inherit;font-size:11px;font-weight:800}.bolon-text-category-tools button{display:grid;place-items:center;width:30px;height:32px;padding:0;border:1px solid #704087;border-radius:8px;background:#32183e;color:#f3e6fa;cursor:pointer}.bolon-text-category-tools button:hover{border-color:#cf78f6;background:#71329a}.bolon-ebook-ribbon{max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:560px){.bolon-text-category-tools{width:100%;grid-template-columns:minmax(0,1fr) 36px 36px;margin-left:48px}}

.bolon-main-serial{margin-left:auto;padding:6px 10px;border:1px solid #7f459b;border-radius:9px;background:#21102a;color:#efdafa;font-size:11px;font-weight:900;white-space:nowrap}.bolon-new-paragraph-btn{margin-left:0;min-height:34px;padding:6px 11px;border:1px solid #8d4fac;border-radius:9px;background:linear-gradient(135deg,#71339a,#4d2268);color:#fff;font-family:inherit;font-size:11px;font-weight:900;white-space:nowrap;cursor:pointer}.bolon-new-paragraph-btn:hover{border-color:#dc91ff;filter:brightness(1.12)}

.bolon-song-search{position:relative;display:grid;grid-template-columns:28px minmax(170px,260px);align-items:center;margin-left:2px;border:1px solid #573369;border-radius:10px;background:#100815}.bolon-song-search>span{display:grid;place-items:center;color:#ce7ef5;font-size:17px}.bolon-song-search input{width:100%;height:34px;padding:5px 9px;border:0;outline:0;background:transparent;color:#fff;font-family:inherit;font-size:11px}.bolon-song-search input::placeholder{color:#9f8aac}.bolon-song-search-results{position:absolute;z-index:40;top:calc(100% + 6px);left:0;width:min(430px,75vw);max-height:330px;overflow:auto;padding:6px;border:1px solid #75428e;border-radius:11px;background:#120918;box-shadow:0 18px 40px rgba(0,0,0,.48)}.bolon-song-search-results button{display:grid;width:100%;grid-template-columns:44px minmax(0,1fr);gap:7px;padding:8px;border:0;border-bottom:1px solid #382143;background:transparent;color:#e9dcef;text-align:left;cursor:pointer}.bolon-song-search-results button:hover{background:#321440}.bolon-song-search-results button i{color:#ce82f5;font:800 10px/1.4 sans-serif;font-style:normal}.bolon-song-search-results button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.bolon-song-search-results>div{padding:20px;color:#b7a4c2;text-align:center;font-size:11px}
@media(max-width:900px){.bolon-song-search{order:4;flex:1;grid-template-columns:28px minmax(130px,1fr)}.bolon-theory-tools>span{order:5}}

.bolon-song-search{grid-template-columns:28px minmax(175px,260px) 30px 42px 30px}.bolon-song-search>button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-left:1px solid #43284f;background:#24122e;color:#fff;font-size:19px;cursor:pointer}.bolon-song-search>button:hover{background:#713397}.bolon-song-search>output{color:#d9c6e4;text-align:center;font:800 9px/1 sans-serif}.bolon-search-result{display:grid;grid-template-columns:minmax(0,1fr) 34px 34px;gap:3px;border-bottom:1px solid #382143}.bolon-search-result.active{background:#351646;box-shadow:inset 3px 0 #c268ef}.bolon-song-search-results .bolon-search-result>button{display:grid;width:auto;min-width:0;grid-template-columns:none;place-items:center;padding:6px;border:0;border-bottom:0;background:transparent;color:#e9dcef;cursor:pointer}.bolon-song-search-results .bolon-search-result>button:first-child{grid-template-columns:44px minmax(0,1fr);gap:7px;text-align:left}.bolon-song-search-results .bolon-search-result>button:nth-child(2):hover{background:#5d3470;color:#fff}.bolon-song-search-results .bolon-search-result>button:nth-child(3):hover{background:#70273d;color:#fff}.bolon-search-result button:first-child i{color:#ce82f5;font:800 10px/1.4 sans-serif;font-style:normal}.bolon-search-result button:first-child span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.bolon-song-search>output{cursor:pointer;border-radius:6px;padding:5px 2px}.bolon-song-search>output:hover{background:#40204f;color:#fff}
@media(max-width:900px){.bolon-song-search{grid-template-columns:28px minmax(130px,1fr) 30px 42px 30px}}

.bolon-ebook-footer{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;margin-top:7px}.bolon-ebook-footer .bolon-ebook-delete{margin:0}.bolon-ebook-totals{justify-self:end;padding:6px 9px;border:1px solid #5a356a;border-radius:8px;background:#160b1d;color:#d9c7e4;font-size:10px;font-weight:800;white-space:nowrap}.bolon-ebook-totals::first-letter{color:#d483ff}
.bolon-theory-page:not(.edit-mode) #bolonTheoryText{cursor:default}.bolon-theory-page:not(.edit-mode) .bolon-playlist-input,.bolon-theory-page:not(.edit-mode) [data-audio-remove],.bolon-theory-page:not(.edit-mode) [data-video-remove]{pointer-events:none;opacity:.48}.bolon-theory-page:not(.edit-mode) button:disabled{opacity:.48;cursor:not-allowed}.bolon-setting-switch{display:flex;align-items:center;gap:12px;margin:14px 0;padding:13px;border:1px solid #69407c;border-radius:12px;background:#170c1e;cursor:pointer}.bolon-setting-switch input{width:20px;height:20px;accent-color:#9147c8}.bolon-setting-switch span{display:grid;gap:3px}.bolon-setting-switch b{color:#fff}.bolon-setting-switch small{color:#cdb9d8}
@media(max-width:560px){.bolon-ebook-footer{grid-template-columns:1fr}.bolon-ebook-totals{justify-self:stretch;text-align:center}}
.bolon-library-category{display:grid;grid-template-columns:minmax(70px,110px) 25px 25px;gap:3px;margin-left:auto}.bolon-library-category select{min-width:0;height:27px;padding:2px 20px 2px 6px;border:1px solid #714287;border-radius:7px;background:#140a1a;color:#fff;font-family:inherit;font-size:9px;font-weight:800}.bolon-library-category button{display:grid;place-items:center;width:25px;height:27px;padding:0;border:1px solid #684079;border-radius:7px;background:#30163d;color:#fff;cursor:pointer}.bolon-library-category button:hover{background:#71339a}.bolon-library-head>span{flex:0 0 auto}
