.admin-cover-uploader{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;align-items:center}
@media (min-width:640px){.admin-cover-uploader{grid-template-columns:196px minmax(0,1fr);gap:1.25rem}}
.admin-cover-uploader__thumb{width:100%;aspect-ratio:16 / 9;border-radius:10px;overflow:hidden;background:#02202E}
.admin-cover-uploader__thumb img{width:100%;height:100%;object-fit:cover}
.admin-cover-uploader__meta{display:flex;flex-direction:column;gap:.55rem;min-width:0;max-width:100%}
.admin-hero-cover{position:relative;margin:0;padding:0;border:0;border-radius:0;background-color:#03222E;background-image:url('../img/illus-admin-writing-room.avif?v=91');background-repeat:no-repeat;display:flex;align-items:flex-end}
.admin-hero-cover__scrim{position:absolute;inset:0;background:linear-gradient(to top,rgba(2,20,30,.86) 0%,rgba(2,22,34,.44) 28%,rgba(2,26,38,.06) 56%,rgba(2,26,38,.0) 78%);pointer-events:none;z-index:1}
.admin-hero-cover__inner{position:relative;width:100%;max-width:1120px;margin-inline:auto;display:flex;align-items:flex-end;justify-content:flex-start}
.admin-logo-avatar{background:linear-gradient(145deg,#064E67 0%,#02202E 100%);border:1.5px solid rgba(191,232,240,.34);box-shadow:0 12px 28px rgba(1,14,22,.52),inset 0 1px 0 rgba(255,255,255,.18);display:grid;place-items:center;flex-shrink:0}
.studio-controls{display:flex;flex-direction:column}
@media (min-width:720px){.studio-controls{flex-direction:row;align-items:center;justify-content:space-between;gap:1.5rem}}
.studio-search-wrap{position:relative;width:100%;height:54px;flex:none}
@media (min-width:720px){.studio-search-wrap{width:auto;flex:1 1 auto;max-width:540px}}
.studio-search-icon{position:absolute;top:50%;transform:translateY(-50%);pointer-events:none}
.studio-search{width:100%;transition:border-color .22s,box-shadow .22s}
.studio-segmented{display:grid;grid-template-columns:repeat(3,1fr);flex-shrink:0}
.studio-seg-btn{border:0;background:transparent;cursor:pointer;white-space:nowrap;transition:background-color .22s,color .22s,box-shadow .22s}
.studio-seg-btn.is-active{font-weight:600}
.studio-btn-row{display:flex;flex-wrap:wrap;align-items:center;gap:1rem}
@media (max-width:640px){.admin-hero-cover__inner{padding:1.35rem 1.35rem 1.45rem}}
.studio-thread-card{display:flex;flex-direction:column;gap:1.45rem}
.studio-thread-card.is-unread{border-color:rgba(212,75,13,.34);box-shadow:0 0 0 3px rgba(212,75,13,.06),0 18px 46px -26px rgba(3,38,54,.14)}
.studio-thread-card__top{flex-wrap:wrap}
.studio-thread-card__writing{line-height:1.3;display:inline-block;margin-bottom:.25rem}
.studio-thread-card__writing:hover{color:#054A63}
.thread-pill{display:inline-flex;align-items:center;padding:.32rem .8rem;border-radius:var(--radius-pill);font-size:.75rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}
.thread-pill--new{background:#FCECE4;color:#A83705}
.thread-pill--replied{background:#E6F7F2;color:#0B6F57}
.studio-thread-card__foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.85rem;padding-top:1rem;border-top:1px solid rgba(5,74,99,.08)}
.studio-info-banner{padding:1.15rem 1.4rem;font-size:.95rem;line-height:1.65;margin-bottom:2rem}
.studio-segmented--4{grid-template-columns:repeat(4,1fr)}
@media (max-width:520px){.studio-segmented--4 .studio-seg-btn{padding:.62rem .55rem;font-size:.84rem}}
.users-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(1.65rem,3vw,2.25rem)}
@media (min-width:820px){.users-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.user-card{display:flex;flex-direction:column;gap:1.35rem}
.user-card--blocked{background:#FFFBF9;border-color:rgba(204,71,10,.24)}
.user-card__top{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.user-card__ident{display:flex;align-items:center;gap:.95rem;min-width:0}
.user-card__avatar{width:50px;height:50px;border-radius:16px;background:#EAF3F7;color:#04364A;font-family:var(--font-serif);font-size:1.35rem;font-weight:600;display:grid;place-items:center;flex-shrink:0}
.user-card__avatar--logo{background:linear-gradient(145deg,#07536E 0%,#02202E 100%)}
.user-card__avatar--logo svg{width:28px;height:28px}
.user-card__meta{min-width:0}
.user-card__name{font-family:var(--font-writing-head);font-weight:600;line-height:1.25}
.user-card__email{word-break:break-all;margin-top:.14rem}
.user-status-pill{display:inline-flex;align-items:center;gap:.4rem;padding:.3rem .75rem;border-radius:var(--radius-pill);font-size:.74rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;flex-shrink:0}
.user-status-pill--active{background:#E6F7F2;color:#0B6F57}
.user-status-pill--blocked{background:#FCECE4;color:#A83705}
.user-card__role-val,.user-card__date-val{font-size:.86rem!important;font-weight:600!important}
.user-card__controls{display:flex;flex-direction:column;gap:.85rem;margin-top:auto;padding-top:.35rem}
.user-card__role-wrap{display:block;width:100%}
.user-role-select{width:100%;height:46px;padding:0 1rem;border-radius:14px;border:1px solid rgba(5,74,99,.16);background:#F6F9FB;color:#06212E;font-size:.9375rem;font-weight:600;cursor:pointer}
.user-role-select:focus{outline:none;border-color:#086382;background:#fff}
.user-card__locked-note{margin-top:auto;padding:.85rem 1rem;border-radius:14px;background:#F4F7F9;font-size:.84rem;color:#5E7683;text-align:center}
.studio-subpanel{display:flex;flex-direction:column;gap:1.25rem}
.studio-subpanel--bilingual{background:#FAF9F6;border-color:rgba(204,71,10,.18)}
.studio-subpanel__head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:1rem}
.studio-subpanel__title{font-family:var(--font-sans)}
.studio-subpanel__desc{margin:0}
.studio-switch{display:inline-flex;align-items:center;gap:.65rem;cursor:pointer;user-select:none;flex-shrink:0}
.studio-switch input{position:absolute;opacity:0;width:1px;height:1px}
.studio-switch__track{position:relative;width:48px;height:28px;border-radius:var(--radius-pill);transition:background-color .24s ease}
.studio-switch__track::after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(3,38,54,.22);transition:transform .26s var(--ease-wave)}
.studio-switch input:checked+.studio-switch__track::after{transform:translateX(20px)}
.admin-hero-cover{overflow:hidden;width:100%;aspect-ratio:1672 / 941;min-height:0;max-height:680px;background-size:cover;background-position:center center}
@media (max-width:640px){.admin-hero-cover{aspect-ratio:1672 / 941;min-height:210px;background-position:center center}}
.admin-hero-subrow{display:flex;flex-wrap:wrap;align-items:center}
.admin-hero-edit-name{display:inline-flex;align-items:center;gap:.32rem;border-radius:var(--radius-pill);border:1px solid rgba(191,232,240,.36);background:rgba(255,255,255,.14);color:#fff;font-family:var(--font-sans);font-weight:600;cursor:pointer;transition:background-color .2s,border-color .2s}
.admin-hero-edit-name:hover{background:rgba(255,255,255,.26);border-color:rgba(255,255,255,.65)}
.badge-creator-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:1.25rem}
.badge-live-preview-box{display:flex;flex-direction:column;align-items:flex-start;gap:.45rem;padding:.85rem 1.15rem;border-radius:16px;background:#F4F8FA;border:1px solid rgba(5,74,99,.12);min-width:170px}
.badge-live-preview-label{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#67808E}
.badge-icon-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:.5rem}
.badge-ic-opt{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;padding:.7rem .5rem;border-radius:13px;border:1.5px solid rgba(5,74,99,.13);background:#F8FAFB;color:#365260;font-size:.75rem;font-weight:600;cursor:pointer;transition:background-color .2s ease,border-color .2s ease,color .18s ease,transform .2s ease}
.badge-ic-opt svg{width:20px;height:20px}
.badge-ic-opt:hover{border-color:#054A63;color:#041D29;background:#EDF5F8}
.badge-ic-opt.is-selected{background:#04364A;border-color:#04364A;color:#fff}
.badge-color-picker{display:flex;flex-wrap:wrap;gap:.5rem}
.badges-catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:1rem}
.badge-catalog-item{padding:1.15rem;display:flex;flex-direction:column;gap:.55rem}
.badge-catalog-item__top{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.badge-catalog-item__name{font-weight:600}
.user-badges-drawer{border-radius:14px;border:1px solid rgba(5,74,99,.13);background:#F7FAFC;overflow:hidden}
.user-badges-drawer__sum{padding:.65rem .95rem;font-size:.875rem;font-weight:600;color:#054A63;cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between}
.user-badges-drawer__sum::-webkit-details-marker{display:none}
.user-badges-drawer__sum::after{content:'▾';font-size:.85rem}
.user-badges-drawer[open] .user-badges-drawer__sum::after{content:'▴'}
.user-badges-drawer__grid{display:flex;flex-wrap:wrap;gap:.42rem;padding:.25rem .85rem .85rem}
.assign-badge-chip{display:inline-flex;align-items:center;gap:.34rem;padding:.32rem .68rem;border-radius:var(--radius-pill);border:1px solid rgba(5,74,99,.18);background:#fff;color:#365260;font-size:.78rem;font-weight:600;cursor:pointer;transition:background-color .2s ease,border-color .2s ease,color .18s ease,transform .2s ease}
.assign-badge-chip__ic svg{width:12px;height:12px}
.assign-badge-chip.is-assigned{background:#04364A;border-color:#04364A;color:#fff}
.assign-badge-chip__chk{font-size:.78rem;opacity:.85}
.studio-featured-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}
.studio-featured-bar__info{display:flex;align-items:center;gap:.9rem;min-width:0}
.studio-featured-bar__star{display:grid;place-items:center;flex-shrink:0}
.studio-featured-bar__ctrl{display:flex;align-items:center;gap:.85rem;flex-shrink:0}
.studio-featured-bar__label{white-space:nowrap}
.studio-stepper{display:inline-flex;align-items:center;overflow:hidden}
.studio-stepper__btn{border:0;cursor:pointer}
.studio-stepper__input{border:0;text-align:center;font-variant-numeric:tabular-nums}
.studio-subpanel--featured{background:#FFF9F6;border-color:rgba(204,71,10,.20)}
.studio-subpanel--collapsible{padding:0;gap:0;overflow:hidden}
.studio-subpanel__summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.85rem;padding:clamp(1.15rem,2.3vw,1.55rem);cursor:pointer;list-style:none}
.studio-subpanel__summary::-webkit-details-marker{display:none}
.studio-subpanel__pill{display:inline-flex;align-items:center;border-radius:var(--radius-pill);white-space:nowrap}
.studio-subpanel__body{padding:0 clamp(1.15rem,2.3vw,1.55rem) clamp(1.25rem,2.5vw,1.65rem)}
.spacing-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:1.15rem 1.5rem}
@media (min-width:640px){.spacing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.spacing-ctrl{display:flex;flex-direction:column;gap:.5rem}
.spacing-ctrl__top{display:flex;align-items:center;justify-content:space-between;font-size:.9rem;font-weight:500;color:#355260}
.spacing-ctrl__top strong{font-size:.86rem;color:#042E3F;font-variant-numeric:tabular-nums}
.spacing-ctrl input[type="range"]{width:100%;accent-color:#CC470A;cursor:pointer}
.spacing-actions{margin-top:1.25rem;display:flex;justify-content:flex-end}
.studio-subpanel--quiz{background:#F7FAFC;border-color:rgba(5,74,99,.14)}
.qb-shell{display:flex;flex-direction:column;gap:1.25rem}
.qb-list{display:flex;flex-direction:column;gap:1.15rem}
.qb-empty{padding:1.25rem;border-radius:14px;background:#fff;border:1px dashed rgba(5,74,99,.22);font-size:.92rem;line-height:1.6;color:#546F7D}
.qb-card{display:flex;flex-direction:column;gap:1rem}
.qb-card__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.65rem;padding-bottom:.75rem;border-bottom:1px solid rgba(5,74,99,.08)}
.qb-card__num{font-size:.82rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#A83705}
.qb-card__tools{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem}
.qb-type-select{height:36px;padding:0 .75rem;border-radius:10px;border:1px solid rgba(5,74,99,.18);background:#F4F8FA;color:#05202C;font-size:.84rem;font-weight:600;cursor:pointer}
.qb-icon-btn{font-size:1rem;font-weight:600;cursor:pointer}
.qb-icon-btn:hover{background:#E4F0F5}
.qb-icon-btn--del{color:#B83D06;background:#FFF5F0;border-color:rgba(204,71,10,.22)}
.qb-options{display:flex;flex-direction:column;gap:.55rem}
.qb-opt-row{display:flex;align-items:center;gap:.6rem;padding:.35rem .45rem .35rem .7rem;border-radius:11px;border:1px solid rgba(5,74,99,.13);background:#F9FCFD}
.qb-opt-row.is-correct{border-color:rgba(15,139,109,.45);background:#EFFBF7}
.qb-opt-check{display:inline-flex;align-items:center;cursor:pointer}
.qb-opt-check input{width:18px;height:18px;accent-color:#0F8B6D;cursor:pointer}
.qb-opt-input{flex:1 1 auto;min-width:0;border:0!important;background:transparent!important;padding:.45rem .35rem!important;box-shadow:none!important}
.qb-add-opt-btn{align-self:flex-start;border:0;background:transparent;padding:.35rem .2rem;font-size:.86rem;font-weight:600;color:#054A63;cursor:pointer}
.qb-add-opt-btn:hover{color:#CC470A}
.qb-bool-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.qb-bool-opt{display:flex;align-items:center;gap:.6rem;padding:.75rem 1rem;border-radius:12px;border:1px solid rgba(5,74,99,.16);background:#F8FAFC;font-size:.92rem;font-weight:600;color:#27424F;cursor:pointer}
.qb-bool-opt.is-correct{background:#EAF8F3;border-color:rgba(15,139,109,.48);color:#08664E}
.qb-bool-opt input{width:17px;height:17px;accent-color:#0F8B6D}
.qb-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.85rem}
.qb-count{font-size:.86rem;font-weight:600;color:#546F7D}
.qb-add-btns{display:flex;flex-wrap:wrap;gap:.5rem}
.studio-featured-bar__ctrls{display:flex;flex-wrap:wrap;align-items:center;gap:.85rem 1.35rem}
@media (max-width:560px){.studio-featured-bar__ctrls{width:100%;justify-content:space-between}.studio-featured-bar__ctrls .studio-featured-bar__ctrl{flex:1 1 auto;justify-content:space-between}}
.badge-catalog-item__foot{display:flex;align-items:center;justify-content:space-between;gap:.65rem;margin-top:auto;padding-top:.55rem;border-top:1px solid rgba(5,74,99,.08)}
.badge-del-btn{display:inline-flex;align-items:center;gap:.34rem;font-family:var(--font-sans);cursor:pointer;white-space:nowrap;transition:background-color .2s,color .2s,border-color .2s}
.badge-del-btn svg{width:13px;height:13px;flex-shrink:0}
.quiz-subs-filter-select{height:54px;padding:0 1.1rem;border-radius:16px;border:1px solid rgba(5,74,99,.14);background:#fff;color:#06212E;font-size:.9375rem;font-weight:600;cursor:pointer;max-width:240px}
.qsub-body{display:flex;flex-direction:column;gap:.75rem}
.qsub-question{font-family:var(--font-writing-head);font-weight:600;line-height:1.42}
.qsub-tag{display:inline-block;font-family:var(--font-sans);letter-spacing:.06em;text-transform:uppercase;padding:.16rem .52rem;border-radius:6px;margin-right:.35rem;vertical-align:middle}
.qsub-answer{word-break:break-word}
.admin-hero-cover__inner{z-index:2;padding:clamp(1.6rem,3.2vw,2.75rem) clamp(1.35rem,4vw,3.5rem)}
.admin-logo-avatar{width:clamp(60px,5.4vw,84px);height:clamp(60px,5.4vw,84px);border-radius:clamp(18px,1.7vw,24px);border-width:2px}
.admin-logo-avatar svg{width:clamp(34px,3.2vw,48px);height:clamp(34px,3.2vw,48px)}
.admin-hero-cover .duburi-badge-list--on-dark .duburi-badge{font-size:clamp(.84rem,.98vw,.96rem);padding:.34rem .88rem;gap:.4rem;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.admin-hero-cover .duburi-badge-list--on-dark .duburi-badge svg{width:15px;height:15px}
.admin-hero-subrow{gap:.65rem 1.05rem;margin-top:.45rem}
.admin-hero-edit-name{font-size:clamp(.84rem,.96vw,.94rem);padding:.36rem .95rem;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
@media (min-width:1024px){.admin-hero-cover{aspect-ratio:2.60 / 1;min-height:0;max-height:550px;background-size:cover;background-position:center 44%}}
.cat-mgr-grid{display:grid;grid-template-columns:minmax(0,1fr)}
@media (min-width:860px){.cat-mgr-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
.cat-add-row{display:flex;align-items:center}
.cat-add-row input{flex:1 1 auto;min-width:0;padding:0 1rem;border-radius:13px;border:1.5px solid rgba(5,74,99,.16);background:#FAFBFD;color:#05202C}
.cat-add-row input:focus{outline:none;border-color:#054A63;background:#fff}
.cat-pill-list{display:flex;flex-wrap:wrap}
.cat-mgr-pill{display:inline-flex;align-items:center;gap:.45rem}
.cat-mgr-pill__del{border-radius:50%;font-size:1rem;line-height:1;display:grid;place-items:center;cursor:pointer;transition:background-color .18s,color .18s}
@media (min-width:1024px){.admin-studio-shell .admin-hero-cover{aspect-ratio:2.86 / 1;min-height:0;max-height:492px;background-size:cover;background-position:center 39%}.admin-studio-shell .admin-hero-cover__inner{padding:1.25rem clamp(1.75rem,3.6vw,3.25rem) 1.05rem}}
.admin-studio-shell .studio-featured-bar,.admin-studio-shell .book-token-bar,.admin-studio-shell .studio-info-banner{background:var(--ui-card);border:1px solid var(--ui-border);border-radius:22px;box-shadow:var(--ui-shadow-md);color:var(--ui-ink)}
.admin-studio-shell .studio-featured-bar{padding:clamp(1.25rem,2.4vw,1.75rem) clamp(1.25rem,2.6vw,2rem);margin-bottom:clamp(1.5rem,2.6vw,2.2rem);gap:1.2rem 1.75rem}
.admin-studio-shell .studio-featured-bar__star{width:46px;height:46px;border-radius:14px;background:#E3F3F2;border:1px solid rgba(1,82,85,.22);color:#015255;font-size:1.28rem;box-shadow:none}
.admin-studio-shell .studio-featured-bar__title{color:var(--ui-ink);font-size:clamp(1.06rem,1.25vw,1.2rem);font-weight:700;margin-bottom:.2rem}
.admin-studio-shell .studio-featured-bar__sub{color:var(--ui-ink-soft);font-size:clamp(.92rem,1.02vw,.98rem);line-height:1.55}
.admin-studio-shell .studio-featured-bar__label{color:var(--ui-ink);font-size:.94rem;font-weight:600}
.admin-studio-shell .studio-stepper{border-radius:12px;border:1px solid var(--ui-border-strong);background:#fff;box-shadow:var(--ui-shadow-xs)}
.admin-studio-shell .studio-stepper__btn{width:42px;height:42px;color:var(--ui-ink);font-size:1.18rem;font-weight:600;background:transparent}
.admin-studio-shell .studio-stepper__btn:hover{background:var(--ui-subtle);color:var(--ui-ocean)}
.admin-studio-shell .studio-stepper__input{width:48px;height:42px;color:var(--ui-ink);font-size:1.02rem;font-weight:700;background:transparent;border-inline:1px solid var(--ui-border)}
.admin-studio-shell .book-token-bar{padding:1.25rem 1.55rem;margin-bottom:1.75rem}
.admin-studio-shell .book-token-bar strong,.admin-studio-shell .book-token-bar div{color:var(--ui-ink)!important;font-size:.95rem!important;line-height:1.58}
.admin-studio-shell .studio-controls{gap:1rem 1.25rem;margin-bottom:clamp(1.65rem,2.8vw,2.25rem)}
.admin-studio-shell .studio-search{height:52px;padding:0 1.15rem 0 3.1rem;border-radius:14px;border:1px solid var(--ui-border-strong);background:#fff;color:var(--ui-ink);font-size:1rem;box-shadow:var(--ui-shadow-xs)}
.admin-studio-shell .studio-search::placeholder{color:var(--ui-ink-muted)}
.admin-studio-shell .studio-search:focus{outline:none;border-color:var(--ui-ocean-mid);box-shadow:0 0 0 3px rgba(8,99,130,.13)}
.admin-studio-shell .studio-search-icon{width:19px;height:19px;left:1.05rem;color:var(--ui-ink-muted)}
.admin-studio-shell .studio-segmented{padding:4px;border-radius:14px;background:#EBF1F5;border:1px solid rgba(11,31,42,.06);box-shadow:none;gap:.25rem}
.admin-studio-shell .studio-seg-btn{height:42px;padding:0 1.1rem;border-radius:10px;color:var(--ui-ink-soft);font-size:.94rem;font-weight:600}
.admin-studio-shell .studio-seg-btn:hover{color:var(--ui-ink)}
.admin-studio-shell .studio-seg-btn.is-active{background:#fff;color:var(--ui-ocean);box-shadow:0 1px 3px rgba(11,31,42,.10),0 4px 10px -4px rgba(11,31,42,.12)}
.admin-studio-shell .quiz-subs-filter-select{height:52px;padding:0 1.1rem;border-radius:14px;border:1px solid var(--ui-border-strong);background:#fff;color:var(--ui-ink);font-size:.96rem;font-weight:600;box-shadow:var(--ui-shadow-xs)}
.admin-studio-shell .book-token-bar__input{width:100%;max-width:100%;min-width:0;box-sizing:border-box;height:50px;padding:0 1.05rem;border-radius:12px;border:1px solid #C9D7DF;background:#fff;color:var(--ui-ink);font-size:1rem;box-shadow:var(--ui-shadow-xs);transition:border-color .18s ease,box-shadow .18s ease}
.admin-studio-shell .studio-subpanel,.admin-studio-shell .admin-cover-uploader,.admin-studio-shell .book-page-editor-card,.admin-studio-shell .qb-card{background:#F9FBFC!important;border:1px solid var(--ui-border)!important;border-radius:18px!important;padding:clamp(1.2rem,2.4vw,1.85rem)!important;box-shadow:var(--ui-shadow-xs)!important}
.admin-studio-shell .studio-subpanel__title{color:var(--ui-ink);font-size:clamp(1.06rem,1.25vw,1.18rem);font-weight:700;margin-bottom:.3rem}
.admin-studio-shell .studio-subpanel__desc{color:var(--ui-ink-soft);font-size:.95rem;line-height:1.6;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
.admin-studio-shell .studio-subpanel__pill{background:#EAF4F8;color:var(--ui-ocean);border:1px solid rgba(8,99,130,.16);box-shadow:none;font-size:.84rem;font-weight:700;padding:.34rem .82rem}
.admin-studio-shell .studio-subpanel__body{padding-top:1.35rem;margin-top:1.15rem;border-top:1px solid var(--ui-border)}
.admin-studio-shell .studio-switch__track{background:#D5E1E8;box-shadow:none}
.admin-studio-shell .studio-switch input:checked+.studio-switch__track{background:var(--ui-ocean)}
.admin-studio-shell .studio-switch__text{color:var(--ui-ink);font-size:.95rem;font-weight:600}
.admin-studio-shell .spacing-grid{gap:1.2rem 1.65rem}
.admin-studio-shell .spacing-ctrl{padding:1rem 1.15rem;border-radius:13px;background:#fff;border:1px solid var(--ui-border);box-shadow:none}
.admin-studio-shell .spacing-ctrl__top{font-size:.94rem;color:var(--ui-ink)}
.admin-studio-shell .users-grid,.admin-studio-shell .cat-mgr-grid{gap:clamp(1.35rem,2.4vw,1.95rem)}
.admin-studio-shell .book-admin-card,.admin-studio-shell .studio-thread-card,.admin-studio-shell .user-card,.admin-studio-shell .badge-catalog-item{background:#fff!important;border:1px solid var(--ui-border)!important;border-radius:22px!important;box-shadow:var(--ui-shadow-md)!important;color:var(--ui-ink)!important;overflow:hidden}
.admin-studio-shell .book-admin-card:hover{border-color:rgba(8,99,130,.22)!important;box-shadow:var(--ui-shadow-lg)!important}
.admin-studio-shell .book-admin-card,.admin-studio-shell .studio-thread-card,.admin-studio-shell .user-card{padding:clamp(1.35rem,2.4vw,1.85rem)!important}
.admin-studio-shell .book-admin-card__title,.admin-studio-shell .studio-thread-card__writing,.admin-studio-shell .user-card__name,.admin-studio-shell .badge-catalog-item__name,.admin-studio-shell .qsub-question{color:var(--ui-ink)!important;font-size:clamp(1.22rem,1.5vw,1.44rem)}
.admin-studio-shell .book-admin-card__meta,.admin-studio-shell .studio-thread-card__sub,.admin-studio-shell .user-card__email,.admin-studio-shell .badge-catalog-item__meta{color:var(--ui-ink-soft)!important;font-size:.96rem;line-height:1.62}
.admin-studio-shell .qb-icon-btn{width:44px;height:44px;border-radius:12px;border:1px solid var(--ui-border-strong);background:#fff;color:var(--ui-ink-soft);box-shadow:var(--ui-shadow-xs);display:inline-grid;place-items:center;flex-shrink:0;padding:0}
.admin-studio-shell .qb-icon-btn--del:hover{background:var(--ui-coral);border-color:var(--ui-coral);color:#fff}
.admin-studio-shell .qsub-answer{background:#F6F9FB;border:1px solid var(--ui-border);box-shadow:none;color:var(--ui-ink);font-size:1rem;line-height:1.7;padding:1.1rem 1.25rem;border-radius:14px}
.admin-studio-shell .qsub-tag,.admin-studio-shell .thread-pill{background:#EEF4F7!important;color:var(--ui-ocean)!important;border:1px solid rgba(8,99,130,.14)!important;font-weight:700;font-size:.78rem}
.admin-studio-shell .thread-pill--new{background:var(--ui-coral)!important;color:#fff!important;border-color:var(--ui-coral)!important}
.admin-studio-shell .badge-del-btn{padding:.4rem .88rem;border-radius:10px;border:1px solid rgba(204,71,10,.24);background:#FFF5F1;color:var(--ui-coral);font-size:.84rem;font-weight:700;box-shadow:none}
.admin-studio-shell .badge-del-btn:hover{background:var(--ui-coral);border-color:var(--ui-coral);color:#fff}
.admin-studio-shell .cat-add-row{gap:.75rem;margin-bottom:1.45rem}
.admin-studio-shell .cat-add-row input{height:48px;font-size:.98rem}
.admin-studio-shell .cat-pill-list{gap:.65rem}
.admin-studio-shell .cat-mgr-pill{padding:.48rem .62rem .48rem .95rem;border-radius:999px;background:#F2F7FA;border:1px solid rgba(8,99,130,.14);color:var(--ui-ink);font-size:.92rem;font-weight:600;box-shadow:none}
.admin-studio-shell .cat-mgr-pill__del{width:24px;height:24px;background:#fff;color:var(--ui-ink-soft);border:1px solid var(--ui-border);box-shadow:none}
.admin-studio-shell .cat-mgr-pill__del:hover{background:var(--ui-coral);border-color:var(--ui-coral);color:#fff}
.admin-studio-shell .book-page-lang-tabs{padding:4px;border-radius:12px;background:#EBF1F5;box-shadow:none}
.admin-studio-shell .book-page-lang-tab{padding:.38rem .9rem;border-radius:9px;color:var(--ui-ink-soft);font-size:.88rem;font-weight:600}
.admin-studio-shell .book-page-lang-tab.is-active{background:var(--ui-ocean);color:#fff;box-shadow:0 2px 6px rgba(5,74,99,.22)}
.admin-studio-shell .book-page-editor-card__num{color:var(--ui-ink);font-size:.92rem}
#admin-delete-modal .admin-modal__box{background:#fff;border:1px solid rgba(11,31,42,.10);border-radius:22px;padding:2rem;color:#0B1F2A;box-shadow:0 24px 60px -16px rgba(11,31,42,.28)}
#admin-delete-modal .admin-modal__box h3{color:#0B1F2A;font-size:1.45rem}
#admin-delete-modal .admin-act-btn{min-height:44px;padding:.6rem 1.25rem;border-radius:12px;border:1px solid rgba(11,31,42,.16);background:#fff;color:#0B1F2A;font-size:.94rem;font-weight:600;box-shadow:0 1px 2px rgba(11,31,42,.05)}
#admin-delete-modal .admin-act-btn--danger{background:#CC470A;border-color:#CC470A;color:#fff;box-shadow:0 6px 16px -6px rgba(204,71,10,.45)}
.access-mode-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.75rem;margin-top:.95rem}
.access-mode-opt{display:flex;align-items:center;gap:.65rem;padding:.85rem 1.05rem;border-radius:13px;border:1px solid rgba(11,31,42,.14);background:#fff;color:#0B1F2A;font-size:.94rem;font-weight:600;cursor:pointer;box-shadow:0 1px 2px rgba(11,31,42,.04);transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease}
.access-mode-opt input[type="radio"]{width:17px;height:17px;accent-color:#054A63;flex-shrink:0}
.access-mode-opt.is-active{background:#054A63;border-color:#054A63;color:#fff;box-shadow:0 6px 16px -6px rgba(5,74,99,.42)}
.access-mode-opt.is-active input[type="radio"]{accent-color:#fff}
.access-users-picker{margin-top:1.15rem;display:flex;flex-direction:column;gap:.85rem}
.access-users-picker__top{display:flex;flex-direction:column;gap:.7rem}
.access-users-picker__manual{display:flex;flex-wrap:wrap;gap:.6rem}
.access-users-picker__manual input{flex:1 1 220px;min-width:0}
.access-users-checklist{max-height:260px;overflow-y:auto;display:flex;flex-direction:column;gap:.5rem;padding:.75rem;border-radius:14px;background:#F1F5F8;border:1px solid rgba(11,31,42,.08);box-shadow:none}
.access-user-row{display:flex;align-items:center;gap:.8rem;padding:.7rem .95rem;border-radius:12px;border:1px solid rgba(11,31,42,.09);background:#fff;color:#0B1F2A;cursor:pointer;box-shadow:0 1px 2px rgba(11,31,42,.04);transition:background-color .16s ease,border-color .16s ease,color .16s ease}
.access-user-row input[type="checkbox"]{width:19px;height:19px;accent-color:#054A63;flex-shrink:0}
.access-user-row__info{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:.08rem}
.access-user-row__info strong{font-size:.94rem;color:inherit}
.access-user-row__info span{font-size:.83rem;opacity:.78;overflow:hidden;text-overflow:ellipsis}
.access-user-row__role{font-size:.75rem;font-weight:700;padding:.22rem .62rem;border-radius:var(--radius-pill);background:#EAF4F8;color:#054A63;flex-shrink:0}
.access-user-row.is-selected{background:#054A63;border-color:#054A63;color:#fff}
.access-user-row.is-selected .access-user-row__role{background:rgba(255,255,255,.20);color:#fff}
.access-users-empty{padding:1.15rem;text-align:center;font-size:.92rem;color:#435D6B}
#admin-access-modal .admin-modal__box--access{max-width:580px;width:min(580px,calc(100vw - 2rem));background:#fff;border:1px solid rgba(11,31,42,.10);border-radius:22px;padding:clamp(1.45rem,3vw,2.15rem);color:#0B1F2A;box-shadow:0 28px 70px -16px rgba(11,31,42,.30)}
.acc-modal__head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.acc-modal__head h3{margin:0;font-size:1.45rem;color:#0B1F2A}
.acc-modal__item-title{margin:.5rem 0 .25rem;font-size:1rem;font-weight:600;color:#435D6B}
#admin-access-modal .access-users-picker input[type="text"],#admin-access-modal .access-users-picker input[type="email"]{height:46px;padding:0 1rem;border-radius:12px;border:1px solid #C9D7DF;background:#fff;color:#0B1F2A;font-size:.95rem;box-shadow:0 1px 2px rgba(11,31,42,.04)}
#admin-access-modal .studio-btn--primary,#admin-access-modal .admin-act-btn--danger{background:#054A63;border-color:#054A63;color:#fff;border-radius:12px;min-height:44px;padding:0 1.25rem;box-shadow:0 6px 16px -6px rgba(5,74,99,.40)}
#admin-access-modal .admin-act-btn{min-height:44px;padding:0 1.25rem;border-radius:12px;font-weight:600}
.audio-upload-box{display:flex;flex-direction:column;gap:.75rem;margin-top:.85rem}
.audio-upload-box--nested{padding:1rem 1.1rem;border-radius:14px;background:#fff;border:1px solid rgba(11,31,42,.09)}
.audio-preview-wrap audio{width:100%;height:42px}
.book-pages-mgr__btns{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem}
.roles-create-form{display:flex;flex-direction:column;gap:.9rem;margin-bottom:1.35rem;padding-bottom:1.25rem;border-bottom:1px solid rgba(11,31,42,.09)}
.roles-create-row{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem}
.roles-create-row input{flex:1 1 240px;min-width:0}
.roles-mgr-list{display:flex;flex-direction:column;gap:.85rem}
.role-perm-card{padding:1rem 1.15rem;border-radius:15px;background:#fff;border:1px solid rgba(11,31,42,.09);box-shadow:0 1px 3px rgba(11,31,42,.04);display:flex;flex-direction:column;gap:.75rem}
.role-perm-card__head{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.role-perm-card__name{display:block;font-size:1rem;font-weight:700;color:#0B1F2A}
.role-perm-card__slug{display:block;font-size:.8rem;color:#647C89;margin-top:.1rem}
.role-perm-chips{display:flex;flex-wrap:wrap;gap:.5rem}
.role-perm-chip{display:inline-flex;align-items:center;gap:.45rem;padding:.42rem .78rem;border-radius:999px;border:1px solid rgba(11,31,42,.14);background:#F5F8FA;color:#365260;font-size:.84rem;font-weight:600;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease}
.role-perm-chip input[type="checkbox"]{width:16px;height:16px;accent-color:#054A63;cursor:pointer}
.role-perm-chip.is-on{background:#EAF4F8;border-color:rgba(8,99,130,.30);color:#054A63}
.studio-seg-btn:focus-visible{outline:2px solid rgba(5,74,99,.42);outline-offset:2px}
@media (max-width:1023px){#admin-studio .admin-hero-cover{width:100%;aspect-ratio:1672 / 941;min-height:210px;max-height:none;background-size:cover;background-position:center center}}
@media (min-width:1024px){#admin-studio .studio-sidebar .admin-hero-cover{width:100%;aspect-ratio:1672 / 941;min-height:200px;max-height:255px;flex-shrink:0;background-size:cover;background-position:center center;border-bottom:1px solid rgba(5,74,99,.12)}#admin-studio .studio-sidebar .admin-hero-cover__inner{padding:.95rem 1.05rem 1.05rem;max-width:100%}#admin-studio .studio-sidebar .admin-logo-avatar{width:44px;height:44px;border-radius:13px}#admin-studio .studio-sidebar .admin-logo-avatar svg{width:26px;height:26px}#admin-studio .studio-sidebar .admin-hero-subrow{gap:.45rem;margin-top:.25rem;flex-wrap:wrap}#admin-studio .studio-sidebar .admin-hero-edit-name{padding:.22rem .62rem;font-size:.74rem}}
.studio-featured-bar{background:var(--nm-surface)!important;box-shadow:var(--nm-shadow-out)!important;border:var(--nm-rim)!important}
.book-admin-card{transition:background-color .24s cubic-bezier(.22,1,.36,1),color .22s cubic-bezier(.22,1,.36,1),border-color .24s cubic-bezier(.22,1,.36,1),box-shadow .28s cubic-bezier(.22,1,.36,1),transform .24s cubic-bezier(.22,1,.36,1),opacity .22s ease;background:var(--nm-surface)!important;box-shadow:var(--nm-shadow-out)!important;border:var(--nm-rim)!important}
.studio-subpanel{background:rgba(243,247,249,.72);border:1px solid rgba(255,255,255,.8);box-shadow:var(--nm-shadow-out-sm)}
.studio-search,.book-token-bar__input,.studio-stepper{background:var(--nm-input-bg)!important;box-shadow:var(--nm-shadow-in)!important;border:1px solid rgba(255,255,255,.5)!important;color:var(--nm-ink)}
.studio-search:focus{background:#EFF4F7!important;border-color:rgba(6,59,75,.34)!important;box-shadow:inset 2px 2px 5px rgba(6,59,75,.09),inset -2px -2px 5px rgba(255,255,255,.92),0 0 0 3px rgba(6,59,75,.08)!important;outline:none}
.studio-thread-card{background:var(--nm-surface)!important;border:var(--nm-rim)!important;border-radius:16px!important;padding:20px!important;box-shadow:var(--nm-shadow-out)!important}
.studio-thread-card__top{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem;padding-bottom:.85rem;border-bottom:1px solid rgba(6,59,75,.08)}
.studio-thread-card__writing{font-family:var(--font-serif);font-size:1.18rem;font-weight:600;color:#0B2530;text-shadow:0 1px 0 rgba(255,255,255,.9)}
.studio-thread-card__sub{font-size:.84rem;color:#526D78;margin-top:.22rem}
.studio-thread-card__badges{display:inline-flex;align-items:center;gap:.5rem;flex-shrink:0}
.cmt-nm-icon-btn{width:34px;height:34px;border-radius:10px;background:var(--nm-surface);border:var(--nm-rim);box-shadow:var(--nm-shadow-out-sm);color:#526D78;display:grid;place-items:center;padding:0;flex-shrink:0;transition:box-shadow .2s ease,color .2s ease,transform .18s ease}
.cmt-nm-icon-btn svg{width:16px;height:16px}
.cmt-nm-icon-btn.is-replied{color:#063B4B}
.cmt-nm-icon-btn.is-new{color:#CC470A}
.cmt-nm-icon-btn--trash{cursor:pointer;color:#526D78}
.cmt-nm-icon-btn--trash:hover{color:#0B2530;box-shadow:var(--nm-shadow-in)}
.studio-thread-card__msgs{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem}
.studio-thread-card__msgs .cmt-item{background:rgba(255,255,255,.62)!important;backdrop-filter:blur(10px)!important;-webkit-backdrop-filter:blur(10px)!important;border:1px solid rgba(255,255,255,.85)!important;border-left:3px solid #063B4B!important;border-radius:12px!important;padding:.95rem 1.1rem!important;box-shadow:0 6px 16px rgba(6,59,75,.05),inset 0 1px 0 rgba(255,255,255,.9)!important}
.studio-thread-card__msgs .cmt-item--reply{margin-left:1.15rem;border-left-color:#526D78!important}
.studio-thread-card__msgs .cmt-item__body{color:#0B2530;font-size:.95rem;line-height:1.6}
.cmt-nm-send-btn{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 1.2rem;border-radius:var(--radius-pill);border:1px solid rgba(255,255,255,.16);background:linear-gradient(145deg,#074456,#053240);color:#fff;font-family:var(--font-sans);font-size:.86rem;font-weight:600;cursor:pointer;box-shadow:0 6px 14px rgba(6,59,75,.22);transition:transform .18s ease,box-shadow .2s ease,background .2s ease}
.cmt-nm-send-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(6,59,75,.28)}
.cmt-nm-send-btn:active{transform:scale(.98)}
.studio-thread-card,.book-admin-card{contain:layout style}
@media (max-width:899px), (pointer:coarse){.studio-thread-card__msgs .cmt-item{background:rgba(255,255,255,.78)!important;backdrop-filter:blur(6px)!important;-webkit-backdrop-filter:blur(6px)!important}}
.user-card.user-card--nm{background:linear-gradient(145deg,#F3F7F9,#E6EDF1)!important;border:1px solid rgba(255,255,255,.8)!important;border-radius:12px!important;padding:20px!important;box-shadow:-6px -6px 14px rgba(255,255,255,.92),6px 6px 16px rgba(6,59,75,.09)!important;display:flex!important;flex-direction:column!important;gap:15px!important;contain:layout style}
.user-card__top--nm{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0!important;padding:0!important;border:0!important}
.user-card--nm .user-card__ident{display:flex!important;align-items:center!important;gap:13px!important;min-width:0;flex:1 1 200px}
.user-card__avatar--circle{width:46px!important;height:46px!important;border-radius:50%!important;background:linear-gradient(145deg,#074456,#053240)!important;color:#fff!important;font-family:var(--font-sans)!important;font-size:17px!important;font-weight:700!important;display:grid!important;place-items:center!important;flex-shrink:0;box-shadow:-3px -3px 8px rgba(255,255,255,.85),3px 4px 10px rgba(6,59,75,.22)}
.user-card--nm .user-card__name{font-family:var(--font-sans)!important;font-size:17px!important;font-weight:700!important;line-height:1.25!important;color:#0B2530!important}
.user-card--nm .user-card__email{font-size:13.5px!important;color:#526D78!important;margin-top:2px!important;word-break:break-word}
.user-card__top-right{display:inline-flex!important;align-items:center!important;gap:8px!important;flex-shrink:0;margin-left:auto}
.user-card--nm .user-status-pill{height:32px!important;padding:0 10px!important;display:inline-flex!important;align-items:center!important;border-radius:6px!important;font-size:12.5px!important;font-weight:700!important;letter-spacing:.04em}
.user-nm-block-btn{height:36px!important;padding:0 14px!important;border-radius:8px!important;background:linear-gradient(145deg,#F3F7F9,#E6EDF1)!important;border:1px solid rgba(255,255,255,.85)!important;box-shadow:-3px -3px 8px rgba(255,255,255,.9),3px 3px 9px rgba(6,59,75,.09)!important;color:#0B2530!important;font-family:var(--font-sans);font-size:13.5px!important;font-weight:600!important;cursor:pointer}
.user-nm-block-btn:hover{color:#CC470A!important}
.user-nm-block-btn.is-blocked{background:linear-gradient(145deg,#074456,#053240)!important;color:#fff!important;border-color:rgba(255,255,255,.16)!important}
.user-card--nm .cmt-nm-icon-btn{width:36px!important;height:36px!important;border-radius:8px!important}
.user-card__info-strip{display:grid!important;grid-template-columns:minmax(0,1.38fr) auto minmax(0,1.15fr)!important;gap:6px!important;padding:12px 12px!important;border-radius:8px!important;background:rgba(255,255,255,.62)!important;border:1px solid rgba(255,255,255,.88)!important;box-shadow:inset 2px 2px 5px rgba(6,59,75,.04)!important}
.user-card__info-cell{display:flex;flex-direction:column;gap:3px;min-width:0;padding-inline:4px}
.user-card__info-cell+.user-card__info-cell{border-left:1px solid rgba(6,59,75,.10);padding-left:10px}
.user-card__info-lbl{font-size:11.5px!important;font-weight:600!important;letter-spacing:.08em;text-transform:uppercase;color:#526D78!important}
.user-card__info-val{font-size:13.5px!important;font-weight:700!important;color:#0B2530!important;line-height:1.3;white-space:normal;overflow:visible;text-overflow:clip;word-break:break-word}
.user-card__controls--nm{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:start!important;margin:0!important;padding:0!important;border:0!important}
.user-card__controls--nm .user-card__role-wrap{width:100%;margin:0}
.user-nm-pw-btn{grid-column:1 / -1;width:100%;height:42px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;border:1px solid rgba(6,59,75,.14);background:linear-gradient(145deg,#F3F7F9,#E6EDF1);color:#063B4B;font-family:var(--font-sans);font-size:13.5px;font-weight:700;cursor:pointer;box-shadow:-3px -3px 7px rgba(255,255,255,.9),3px 3px 8px rgba(6,59,75,.09);transition:background-color .2s ease,color .2s ease,box-shadow .2s ease}
.user-nm-pw-btn svg{width:15px;height:15px;flex-shrink:0}
.user-nm-pw-btn:hover{background:#063B4B;color:#fff;border-color:#063B4B}
.user-card__controls--nm .user-role-select{width:100%;height:44px!important;padding:0 32px 0 14px!important;border-radius:8px!important;background-color:#E9EFF3!important;box-shadow:inset 3px 3px 7px rgba(6,59,75,.08),inset -3px -3px 7px rgba(255,255,255,.9)!important;border:1px solid rgba(255,255,255,.58)!important;font-size:14.5px!important;font-weight:600!important;color:#0B2530!important}
.user-badges-drawer--nm{width:100%;border-radius:8px!important;background:#E9EFF3!important;box-shadow:inset 3px 3px 7px rgba(6,59,75,.08),inset -3px -3px 7px rgba(255,255,255,.9)!important;border:1px solid rgba(255,255,255,.58)!important;overflow:hidden}
.user-badges-drawer--nm .user-badges-drawer__sum{min-height:44px!important;padding:0 14px!important;display:flex;align-items:center;justify-content:space-between;font-size:14.5px!important;font-weight:600!important;color:#0B2530!important;cursor:pointer}
.user-badges-drawer--nm[open] .user-badges-drawer__grid{padding:10px 12px 12px;border-top:1px solid rgba(6,59,75,.08);background:rgba(255,255,255,.55)}
@media (max-width:440px){.user-card__controls--nm{grid-template-columns:minmax(0,1fr)!important}}
.books-admin-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:1.5rem}
@media (min-width:820px){.books-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.book-admin-card{background:#fff;border:1px solid rgba(5,74,99,.09);border-radius:24px;padding:1.35rem;display:flex;gap:1.25rem;align-items:flex-start;box-shadow:0 16px 40px -24px rgba(3,38,54,.14)}
@media (max-width:520px){.book-admin-card{flex-direction:column}}
.book-admin-card__thumb{width:96px;aspect-ratio:2 / 3;border-radius:14px;overflow:hidden;background:#033346;flex-shrink:0;box-shadow:-3px 5px 14px rgba(2,22,32,.24);position:relative}
.book-admin-card__thumb img{width:100%;height:100%;object-fit:cover}
.book-admin-card__body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:.45rem}
.book-admin-card__title{font-family:var(--font-writing-head);font-size:1.28rem;font-weight:600;color:#041D29;line-height:1.25;margin:0}
.book-admin-card__bn{font-family:var(--font-bn);font-size:.92rem;color:#5C7481;margin:0}
.book-admin-card__meta{font-size:.84rem;color:#607885}
.book-admin-card__actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.65rem}
.book-pages-mgr{display:flex;flex-direction:column;gap:1.25rem;width:100%;max-width:100%;min-width:0}
.book-pages-mgr__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.85rem}
.book-page-editor-card{background:#FAFBFD;border:1px solid rgba(5,74,99,.13);border-radius:18px;padding:1.15rem 1.25rem;display:flex;flex-direction:column;gap:.85rem}
.book-page-editor-card__top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.65rem;padding-bottom:.7rem;border-bottom:1px solid rgba(5,74,99,.09)}
.book-page-editor-card__num{font-family:var(--font-sans);font-size:.84rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#A83705}
.book-page-lang-tabs{display:inline-flex;gap:4px;padding:3px;border-radius:var(--radius-pill);background:#E8F0F4}
.book-page-lang-tab{padding:.3rem .8rem;border-radius:var(--radius-pill);border:0;background:transparent;color:#365260;font-size:.82rem;font-weight:600;cursor:pointer}
.book-page-lang-tab.is-active{background:#04364A;color:#fff}
.book-page-editor-card__tools{display:inline-flex;align-items:center;gap:.38rem}
.book-page-textarea{min-height:190px!important;border-radius:0 0 10px 10px!important;font-family:var(--font-writing-body);font-size:1rem!important;line-height:1.75!important;background:#FAF9F6!important}
.book-page-textarea--bn{font-family:var(--font-bn)!important}
.book-page-hint{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;font-size:.8rem;color:#5C7481;font-variant-numeric:tabular-nums}
.book-page-hint__fit{font-weight:600;color:#0B6F57}
.book-page-hint__fit.is-full{color:#B83D06}
.book-token-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.85rem;padding:.95rem 1.2rem;border-radius:16px;background:#F4F9FB;border:1px solid rgba(5,74,99,.13);margin-bottom:1.5rem}
.book-token-bar__input{flex:1 1 220px;min-width:0;height:40px;padding:0 .85rem;border-radius:10px;border:1px solid rgba(5,74,99,.20);background:#fff;font-size:.88rem}
.book-page-mode-row{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem}
.book-page-mode-label{font-size:.8rem;font-weight:700;color:#46606D;text-transform:uppercase;letter-spacing:.05em}
.book-page-preview-box{padding:1.25rem;border-radius:0 0 12px 12px;border:1px solid rgba(5,74,99,.14);border-top:0}
.bk-inline-resizers{display:flex;flex-direction:column;gap:.65rem;padding:.85rem 1rem;border-radius:13px;background:#fff;border:1px solid rgba(5,74,99,.12)}
.bk-inline-resizers__head{font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#054A63}
.bk-img-resizer-row{display:flex;align-items:center;gap:.85rem;padding-top:.55rem;border-top:1px solid rgba(5,74,99,.08)}
.bk-img-resizer-row:first-of-type{padding-top:0;border-top:0}
.bk-img-resizer-thumb{width:56px;height:56px;border-radius:8px;object-fit:cover;background:#E8F0F4;flex-shrink:0}
.bk-img-resizer-ctrl{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:.4rem}
.bk-img-resizer-top{display:flex;align-items:center;justify-content:space-between;gap:.5rem;font-size:.82rem;color:#365260}
.bk-img-resizer-ctrl input[type="range"]{width:100%;accent-color:#CC470A}
.bk-img-resizer-btns{display:flex;flex-wrap:wrap;gap:.35rem}
.bk-fullpage-editor{display:grid;grid-template-columns:minmax(0,1fr);gap:1.1rem;padding:1rem;border-radius:14px;background:#fff;border:1px solid rgba(5,74,99,.12)}
@media (min-width:680px){.bk-fullpage-editor{grid-template-columns:190px minmax(0,1fr);align-items:start}}
.bk-fullpage-preview-frame{width:100%;max-width:200px;aspect-ratio:2 / 3;margin-inline:auto;border-radius:10px;overflow:hidden;background:#0F1418;border:1px solid rgba(5,74,99,.16);display:flex;align-items:center;justify-content:center}
.bk-fullpage-empty{padding:1rem;text-align:center;font-size:.8rem;line-height:1.5;color:rgba(235,248,252,.72)}
.bk-fullpage-controls{display:flex;flex-direction:column;gap:.85rem}
.bk-fullpage-resize-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:.85rem}
@media (min-width:560px){.bk-fullpage-resize-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}}
.book-page-textarea:not(.book-page-textarea--bn){font-family:var(--font-book-page)!important;font-size:1.1rem!important;line-height:1.72!important;background:#F8F7F4!important}
.book-page-preview-box{min-height:190px;background:#F8F7F4}
.admin-cover-uploader--book{align-items:start}
.bk-live-cover-thumb{position:relative;width:100%;max-width:146px;aspect-ratio:2 / 3;margin-inline:auto;border-radius:3px 10px 10px 3px;overflow:hidden;background:#032B3B;box-shadow:-5px 8px 20px rgba(2,22,32,.26)}
.bk-live-cover-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.bk-live-cover-thumb__wash{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(2,22,32,.45) 0%,rgba(2,20,30,.25) 45%,rgba(2,16,25,.78) 100%);z-index:1}
.bk-live-cover-thumb__spine{position:absolute;top:0;bottom:0;left:0;width:14px;z-index:3;background:linear-gradient(90deg,rgba(0,0,0,.4) 0%,rgba(255,255,255,.22) 25%,rgba(0,0,0,.28) 60%,transparent 100%)}
.bk-live-cover-thumb__print{position:absolute;inset:0;z-index:2;padding:.75rem .65rem .75rem 1.05rem;display:flex;flex-direction:column;justify-content:flex-end;gap:.22rem;color:#FCF8EF}
.bk-live-cover-thumb__title{font-family:var(--font-serif);font-size:.84rem;font-weight:500;line-height:1.18;text-shadow:0 1px 4px rgba(0,0,0,.6)}
.bk-live-cover-thumb__sub{font-family:var(--font-bn);font-size:.66rem;color:rgba(235,244,248,.88)}
.bk-live-cover-thumb__author{font-size:.6rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:rgba(244,236,220,.90);margin-top:.15rem}
.bk-org-mode-bar{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:.7rem;width:100%;max-width:100%;min-width:0}
.bk-org-mode-btn{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;height:46px;padding:0 1.05rem;border-radius:13px;border:1px solid rgba(11,31,42,.14);background:#fff;color:#365260;font-size:.92rem;font-weight:600;cursor:pointer;box-shadow:0 1px 2px rgba(11,31,42,.04);transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease}
.bk-org-mode-btn svg{width:17px;height:17px;flex-shrink:0}
.bk-org-mode-btn.is-active{background:#054A63;border-color:#054A63;color:#fff;box-shadow:0 6px 16px -6px rgba(5,74,99,.42)}
.bk-toc-auto-note{padding:.85rem 1.05rem;border-radius:13px;background:#EFF6F9;border:1px solid rgba(8,99,130,.18);font-size:.9rem;line-height:1.55;color:#053A4E}
.bk-chapter-block{padding:clamp(1.1rem,2.2vw,1.55rem);border-radius:20px;background:#F4F8FA;border:1.5px solid rgba(8,99,130,.20);display:flex;flex-direction:column;gap:1rem}
.bk-chapter-block__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.65rem}
.bk-chapter-block__title-row{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.bk-chapter-block__badge{display:inline-flex;align-items:center;padding:.28rem .72rem;border-radius:var(--radius-pill);background:#054A63;color:#fff;font-size:.78rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.bk-chapter-block__start{display:inline-flex;align-items:center;padding:.26rem .68rem;border-radius:var(--radius-pill);background:#FFF1E8;border:1px solid rgba(204,71,10,.22);color:#B13B06;font-size:.78rem;font-weight:700}
.bk-chapter-block__count{font-size:.82rem;font-weight:600;color:#546F7D}
.bk-chapter-block__pages{display:flex;flex-direction:column;gap:.95rem}
.bk-chapter-block__foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.7rem;padding-top:.75rem;border-top:1px solid rgba(8,99,130,.12)}
.bk-chapter-add-group{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.bk-chapter-add-qty{width:auto!important;min-width:98px;height:44px!important;padding:0 .75rem!important;font-size:.9rem!important}
.bk-page-audio-row{margin-top:.55rem;padding-top:.7rem;border-top:1px dashed rgba(11,31,42,.12)}
.bk-page-audio-row__top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem}
.bk-page-audio-row__lbl{font-size:.86rem;font-weight:600;color:#0B1F2A}
.bk-page-audio-row__lbl small{font-weight:500;color:#546F7D}
.bk-live-cover-thumb--back{display:grid;place-items:center;background:radial-gradient(ellipse at 65% 24%,#085A75 0%,#033346 60%,#021C27 100%)}
.bk-live-cover-thumb__empty{display:flex;flex-direction:column;align-items:center;gap:.22rem;text-align:center;padding:.75rem;color:rgba(234,248,252,.88);font-family:var(--font-sans);font-size:.78rem;font-weight:600}
.bk-live-cover-thumb__empty small{font-size:.68rem;font-weight:500;color:rgba(191,232,240,.68)}
.bk-live-cover-thumb__spine--right{left:auto;right:0}
.bk-pages-bottom-bar{margin-top:1.1rem;padding-top:1rem;border-top:1px dashed rgba(6,59,75,.16);display:flex;justify-content:center}
.bk-add-page-dock-btn{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:48px;padding:.75rem 1.25rem;border-radius:10px;border:1.5px dashed rgba(6,59,75,.28);background:linear-gradient(145deg,#F3F7F9,#E6EDF1);box-shadow:-4px -4px 10px rgba(255,255,255,.9),4px 4px 12px rgba(6,59,75,.08);color:#063B4B;font-family:var(--font-sans);font-size:.96rem;font-weight:700;cursor:pointer;transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}
.bk-add-page-dock-btn:hover{border-color:#063B4B;background:#fff;color:#CC470A;transform:translateY(-1px)}
.bk-add-page-dock-btn__plus{width:24px;height:24px;border-radius:6px;background:#063B4B;color:#fff;display:grid;place-items:center;font-size:1.15rem;line-height:1}
.bk-add-page-dock-btn:hover .bk-add-page-dock-btn__plus{background:#CC470A}
.bk-preview-pill{display:inline-flex;align-items:center;padding:.18rem .56rem;border-radius:6px;font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.bk-preview-pill--free{background:#E8F6F0;color:#0F766E;border:1px solid rgba(15,118,110,.22)}
.bk-preview-pill--paid{background:#EEF3F6;color:#526D78;border:1px solid rgba(6,59,75,.12)}
.bk-page-sheet-tray{display:flex;justify-content:center;padding:14px 10px;background:#E9EFF3;border:1px solid rgba(6,59,75,.12);border-top:0;border-radius:0 0 10px 10px;overflow-x:auto}
.bk-page-sheet-frame{width:min(360px,100%);max-width:100%;height:620px;flex-shrink:0;display:flex;flex-direction:column;background:#fff;border-radius:4px 10px 10px 4px;border:1px solid rgba(17,24,32,.14);box-shadow:-4px 0 12px rgba(0,0,0,.06),0 12px 28px -10px rgba(3,38,54,.20);overflow:hidden}
.bk-page-sheet-frame .book-page-textarea{flex:1 1 auto;width:100%!important;min-height:0!important;height:100%!important;margin:0!important;padding:24px 22px 12px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;color:#16181A!important;font-family:var(--font-writing-body,'Literata',Georgia,serif)!important;font-size:16.5px!important;line-height:1.72!important;resize:none!important;overflow-y:auto}
.bk-page-sheet-frame .book-page-textarea--bn{font-family:var(--font-bn)!important}
.bk-page-sheet-frame .book-page-preview-box{flex:1 1 auto;min-height:0;height:100%;display:flex;flex-direction:column;padding:24px 22px 16px!important;margin:0;border:0!important;border-radius:0!important;background:#fff!important}
.bk-page-sheet-frame .book-page-preview-body{flex:1 1 auto;min-height:0;font-size:16.5px!important;line-height:1.72!important;padding-right:0!important;overflow-y:auto}
.bk-page-sheet-frame .book-page-preview-body p{margin:0 0 .85em}
.bk-page-sheet-frame .book-page-preview-body img{max-width:100%;height:auto}
.bk-page-sheet-footer{flex-shrink:0;padding:8px 22px 14px;border-top:1px solid rgba(17,17,17,.08);text-align:center;font-family:var(--font-writing-head,'Lora',Georgia,serif);font-size:14px;color:#6E6A63;background:#fff}
.bk-page-sheet-frame .book-page-preview-box .bk-page-sheet-footer{padding:8px 0 0;margin-top:8px}
.bk-measure-mirror p{margin:0 0 .85em}
.bk-measure-mirror p:last-child{margin-bottom:0}
.bk-measure-mirror img{display:block;max-width:100%;height:auto;min-height:140px;margin:.65em auto}
.bk-flow-textarea{width:100%!important;min-height:320px!important;padding:16px 18px!important;border-radius:0 0 10px 10px!important;font-family:var(--font-writing-body,'Literata',Georgia,serif)!important;font-size:1rem!important;line-height:1.72!important;background:#fff!important;color:#16181A!important;resize:vertical}
.bk-flow-preview-box{min-height:280px;max-height:560px;overflow-y:auto;padding:20px 22px;border-radius:0 0 10px 10px;background:#fff;border:1px solid rgba(6,59,75,.14);border-top:0}
.book-page__body{overflow-y:auto;overflow-x:hidden}
.book-page__body.is-lang-bn{font-family:var(--font-bn)!important;line-height:1.72}
.book-inline-figure{display:block;border-radius:10px}
.book-inline-figure img{border-radius:10px}
.book-page__body{flex:1 1 auto;min-height:0;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y;padding-right:.25rem;scrollbar-width:thin;scrollbar-color:rgba(125,116,102,.28) transparent;font-family:var(--font-book-page);font-size:clamp(1.06rem,1.01rem + .26vw,1.18rem);font-weight:400;line-height:1.72;letter-spacing:.004em;font-kerning:normal;font-variant-ligatures:common-ligatures;text-rendering:optimizeLegibility;color:inherit}
.book-page__body h2{font-family:var(--font-writing-head,'Lora',Georgia,serif);font-size:1.36em;font-weight:600;line-height:1.22;letter-spacing:-.012em;color:#0F1E26;margin:0 0 .78em;padding-bottom:.42em;position:relative}
.book-page__body p{margin:0 0 .96em}
.book-page__body blockquote{margin:1.1em 0;padding:.72em 1.05em;border-left:2.5px solid #B8420A;background:rgba(20,42,54,.032);border-radius:0 8px 8px 0;font-family:var(--font-writing-head,'Lora',Georgia,serif);font-style:italic;font-size:1.02em;line-height:1.58}
.book-inline-figure img{width:100%;display:block;max-width:100%;height:auto;object-fit:contain;margin-inline:auto}
.book-inline-figure{overflow:hidden;max-width:100%;margin:.85em auto;break-inside:avoid}
.book-subhead{font-family:var(--font-writing-head,'Lora',Georgia,serif);font-size:1.12em;font-weight:600;line-height:1.3;margin:.9em 0 .45em;color:inherit}
.book-table-wrap{width:100%;overflow-x:auto;margin:.85em 0}
.book-table{width:100%;border-collapse:collapse;font-size:.86em;line-height:1.45;text-align:left}
.book-table th,.book-table td{padding:.42em .6em;border:1px solid rgba(17,17,17,.14);vertical-align:top}
.book-table th{font-weight:700;background:rgba(17,17,17,.05)}
.book-footnotes{margin-top:1.1em;padding-top:.65em;border-top:1px solid rgba(17,17,17,.12);font-size:.78em;line-height:1.5;color:var(--br-muted,#555960);display:flex;flex-direction:column;gap:.35em}
.book-footnote-item{display:flex;gap:.45em;text-align:left!important}
.eco-tag--tuition{background:#E3F3F8!important;color:#054A63!important;border-color:rgba(8,99,130,.24)!important}
.crs-teacher-row{padding:1rem 1.1rem;border-radius:14px;background:#fff;border:1px solid rgba(11,31,42,.10);display:flex;flex-direction:column;gap:.8rem}
.tsub-list{display:flex;flex-direction:column;gap:.65rem;max-height:280px;overflow-y:auto;padding:.5rem;border-radius:12px;background:#E9EFF3;box-shadow:inset 2px 2px 6px rgba(6,59,75,.07)}
.tsub-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.65rem;padding:.75rem .9rem;border-radius:10px;background:#fff;border:1px solid rgba(6,59,75,.10)}
.tsub-row__info{display:flex;flex-direction:column;gap:.15rem;min-width:0}
.tsub-row__info strong{font-size:.92rem;color:#0B2530;word-break:break-all}
.tsub-row__info span{font-size:.8rem;color:#526D78}
.tsub-row__actions{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.45rem}
