/* Central Professor Jonathas — v5.5.7.39.6
   Mobile navigation + central chat composer + folders do Estudar e Ler */

/* ---------- Navegação mobile operacional ---------- */
.mobile-more-panel{display:none}
@media(max-width:900px){
 body:not(.public) .app-bottom-nav,
 body[data-focus-mode="escola"] .app-bottom-nav,
 body[data-focus-mode="reforco"] .app-bottom-nav,
 body[data-focus-mode="academica"] .app-bottom-nav,
 body[data-focus-mode="pessoal"] .app-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}
 body:not(.public) .app-bottom-item{min-width:0!important;overflow:hidden}
 body:not(.public) .app-bottom-item>span:last-child{font-size:.58rem!important;letter-spacing:0!important;text-overflow:clip!important}
 body:not(.public) .app-bottom-item[data-mobile-view="communication"]{position:relative}
 body:not(.public) .app-bottom-item[data-mobile-view="schoolHub"] .app-nav-icon svg,body:not(.public) .app-bottom-item[data-mobile-view="agenda"] .app-nav-icon svg,body:not(.public) .app-bottom-item[data-mobile-view="communication"] .app-nav-icon svg{fill:none!important;stroke:currentColor!important;stroke-width:1.85!important;stroke-linecap:round!important;stroke-linejoin:round!important}
 body:not(.public) .comm-float-button{display:none!important}

 .mobile-more-panel{position:fixed;inset:0;z-index:115;display:block}
 .mobile-more-panel.hidden{display:none!important}
 .mobile-more-backdrop{position:absolute;inset:0;border:0;background:rgba(1,9,18,.64);backdrop-filter:blur(3px)}
 .mobile-more-sheet{position:absolute;left:8px;right:8px;bottom:calc(80px + env(safe-area-inset-bottom));max-height:min(72vh,640px);overflow:auto;border:1px solid rgba(105,165,221,.24);border-radius:24px;padding:15px;background:linear-gradient(180deg,#08213a 0%,#051729 100%);box-shadow:0 24px 70px rgba(0,0,0,.55)}
 .mobile-more-sheet>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding:1px 2px 10px;border-bottom:1px solid rgba(255,255,255,.07)}
 .mobile-more-sheet>header h3{margin:2px 0 0;color:#f3f8fd;font-size:1.05rem}
 .mobile-more-sheet>header .kicker{color:#70b2ed;font-size:.58rem}
 .mobile-more-close{width:38px;height:38px;border:1px solid rgba(126,179,226,.2);border-radius:12px;background:#0b2a48;color:#eaf5ff;font-size:1.4rem;line-height:1}
 .mobile-more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .mobile-more-grid>button{min-width:0;min-height:78px;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:9px;padding:10px;border:1px solid rgba(99,159,215,.14);border-radius:16px;background:rgba(12,43,72,.7);color:#dcecf9;text-align:left;font:inherit}
 .mobile-more-grid>button:active{transform:scale(.985);background:#10385e}
 .mobile-more-grid .nav-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(33,116,201,.16);color:#f1c866}
 .mobile-more-grid .nav-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .mobile-more-grid>button span:last-child{min-width:0;display:grid;gap:3px}
 .mobile-more-grid strong{font-size:.76rem;color:#f4f8fc;line-height:1.15}
 .mobile-more-grid small{font-size:.58rem;color:#87a6c0;line-height:1.3}
 body.mobile-more-open{overflow:hidden}
}
@media(max-width:390px){
 .mobile-more-sheet{left:6px;right:6px;padding:12px}
 .mobile-more-grid{grid-template-columns:1fr 1fr;gap:6px}
 .mobile-more-grid>button{min-height:72px;padding:8px;grid-template-columns:34px minmax(0,1fr)}
 .mobile-more-grid .nav-icon{width:34px;height:34px}
}

/* ---------- Compositor do Chat da Central ---------- */
.central-chat-composer-v557396{position:relative!important;z-index:16!important}
.central-chat-composer-v557396 .central-compose-v557396{position:relative!important;display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:2px!important;align-items:end!important;overflow:visible!important;padding:4px 6px 4px 4px!important}
.central-compose-v557396>.central-compose-tools-toggle{grid-column:1!important;grid-row:1!important;width:38px;height:38px;align-self:end;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;color:var(--chat-muted);font:800 1.5rem/1 inherit;transition:.16s ease;cursor:pointer}
.central-compose-v557396>.central-compose-tools-toggle:hover,.central-compose-v557396>.central-compose-tools-toggle.active{background:color-mix(in srgb,var(--chat-accent-2) 12%,transparent);color:var(--chat-accent-2)}
.central-compose-v557396>.central-compose-tools-toggle.active{transform:rotate(45deg)}
.central-compose-v557396>textarea{grid-column:2!important;grid-row:1!important;min-width:0!important;width:100%!important;padding-left:7px!important;padding-right:7px!important}
.central-compose-tools{position:absolute;z-index:32;left:2px;bottom:calc(100% + 9px);display:grid;grid-template-columns:repeat(4,44px);gap:7px;padding:8px;border:1px solid color-mix(in srgb,var(--chat-border) 84%,transparent);border-radius:17px;background:color-mix(in srgb,var(--chat-surface) 98%,var(--chat-head));box-shadow:0 14px 35px rgba(0,0,0,.2);overflow:visible}
.central-compose-tools.hidden{display:none!important}
.central-compose-tools>.chat-tool-btn,.central-compose-tools>.chat-portal-picker,.central-compose-tools>.chat-math-launcher,.central-compose-tools>.pjs-sticker-picker{position:relative!important;display:block!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;margin:0!important}
.central-compose-tools .chat-tool-btn,.central-compose-tools .chat-portal-open,.central-compose-tools .chat-math-open,.central-compose-tools .pjs-sticker-open{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border:1px solid color-mix(in srgb,var(--chat-border) 75%,transparent)!important;border-radius:13px!important;display:grid!important;place-items:center!important;background:color-mix(in srgb,var(--chat-surface) 90%,var(--chat-head))!important;color:var(--chat-text)!important;padding:0!important;box-shadow:none!important}
.central-compose-tools .pjs-sticker-open img{width:28px!important;height:28px!important;object-fit:contain!important}
.central-compose-tools .chat-portal-open span{font-size:1.05rem!important}
.central-compose-tools .chat-math-open b{font-size:1.05rem!important}
.central-compose-tools .chat-math-open span{display:none!important}
.central-compose-tools input[type="file"]{display:none!important}
.central-chat-composer-v557396 .chat-file-chip,.central-chat-composer-v557396 .chat-portal-drafts,.central-chat-composer-v557396 .chat-math-drafts,.central-chat-composer-v557396 .chat-reply-draft{max-width:100%!important;margin-bottom:6px!important}

@media(max-width:900px){
 .central-chat-composer-v557396{padding:7px 7px calc(7px + env(safe-area-inset-bottom,0px))!important}
 .central-chat-composer-v557396 .chat-compose-row-v5412{grid-template-columns:minmax(0,1fr) 48px!important;gap:7px!important}
 .central-chat-composer-v557396 .central-compose-v557396{min-height:48px!important;grid-template-columns:42px minmax(0,1fr)!important;border-radius:24px!important;padding:4px 6px 4px 4px!important}
 .central-compose-v557396>.central-compose-tools-toggle{width:40px;height:40px;font-size:1.55rem}
 .central-compose-v557396>textarea{min-height:40px!important;font-size:16px!important;padding:9px 7px 8px!important}
 .central-chat-composer-v557396 .chat-audio-btn,.central-chat-composer-v557396 .chat-send-v5412{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important}
 .central-chat-composer-v557396 .chat-audio-status{right:55px!important;height:48px!important;min-height:48px!important}
 .central-compose-tools{left:0;bottom:calc(100% + 8px);grid-template-columns:repeat(4,46px);gap:7px;padding:8px;border-radius:18px}
 .central-compose-tools>.chat-tool-btn,.central-compose-tools>.chat-portal-picker,.central-compose-tools>.chat-math-launcher,.central-compose-tools>.pjs-sticker-picker{width:46px!important;min-width:46px!important;max-width:46px!important;height:46px!important}
 .central-compose-tools .chat-tool-btn,.central-compose-tools .chat-portal-open,.central-compose-tools .chat-math-open,.central-compose-tools .pjs-sticker-open{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important}
}
@media(max-width:370px){
 .central-chat-composer-v557396 .chat-compose-row-v5412{grid-template-columns:minmax(0,1fr) 45px!important;gap:5px!important}
 .central-chat-composer-v557396 .central-compose-v557396{grid-template-columns:38px minmax(0,1fr)!important;padding-right:4px!important}
 .central-compose-v557396>.central-compose-tools-toggle{width:36px;height:38px}
 .central-chat-composer-v557396 .chat-audio-btn,.central-chat-composer-v557396 .chat-send-v5412{width:45px!important;height:45px!important;min-width:45px!important;min-height:45px!important}
 .central-compose-tools{grid-template-columns:repeat(4,42px)}
 .central-compose-tools>.chat-tool-btn,.central-compose-tools>.chat-portal-picker,.central-compose-tools>.chat-math-launcher,.central-compose-tools>.pjs-sticker-picker,.central-compose-tools .chat-tool-btn,.central-compose-tools .chat-portal-open,.central-compose-tools .chat-math-open,.central-compose-tools .pjs-sticker-open{width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important}
}

/* ---------- Pastas do Estudar e Ler — Central ---------- */
.study-folder-manager{display:grid;gap:14px}
.study-folder-create{display:grid;grid-template-columns:minmax(0,1fr) 130px auto;gap:10px;align-items:end}
.study-folder-list,.study-folder-theme-list{display:grid;gap:8px;max-height:52vh;overflow:auto;padding-right:2px}
.study-folder-list>article{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid rgba(105,159,209,.17);border-radius:14px;background:rgba(8,35,60,.52)}
.study-folder-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:rgba(214,169,78,.14);font-size:1.25rem}
.study-folder-list>article>div:nth-child(2){display:grid;gap:3px;min-width:0}.study-folder-list strong{font-size:.84rem}.study-folder-list small{font-size:.65rem;color:var(--muted)}
.study-folder-theme-list>label{display:grid;grid-template-columns:22px minmax(0,1fr);gap:9px;align-items:center;padding:10px 11px;border:1px solid rgba(105,159,209,.14);border-radius:12px;background:rgba(8,35,60,.34);cursor:pointer}
.study-folder-theme-list>label>span{display:grid;gap:2px}.study-folder-theme-list strong{font-size:.78rem}.study-folder-theme-list small{font-size:.62rem;color:var(--muted)}
.study-folder-theme-list input{width:18px;height:18px}
@media(max-width:700px){.study-folder-create{grid-template-columns:1fr}.study-folder-list>article{grid-template-columns:38px minmax(0,1fr)}.study-folder-list>article>.actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.study-folder-list>article>.actions .btn{width:100%}}

/* ---------- Pastas do Estudar e Ler — Portal ---------- */
.pjs-study-library__folders{display:grid;gap:13px;margin-top:16px}
.pjs-study-folder{border:1px solid #d7e5f3;border-radius:18px;background:#fff;box-shadow:0 7px 20px rgba(30,65,110,.055);overflow:hidden}
.pjs-study-folder>summary{list-style:none;display:grid;grid-template-columns:46px minmax(0,1fr) 28px;align-items:center;gap:11px;padding:13px 15px;cursor:pointer;background:linear-gradient(180deg,#f9fcff,#f2f7fd);user-select:none}
.pjs-study-folder>summary::-webkit-details-marker{display:none}
.pjs-study-folder__icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#fff4d8;font-size:1.25rem}
.pjs-study-folder>summary>span:nth-child(2){display:grid;gap:2px}.pjs-study-folder>summary strong{font-size:.94rem;color:#153652}.pjs-study-folder>summary small{font-size:.7rem;color:#668096}.pjs-study-folder>summary>b{font-size:1.1rem;color:#5c7890;transition:transform .18s ease}.pjs-study-folder[open]>summary>b{transform:rotate(180deg)}
.pjs-study-folder>.pjs-study-library__grid{padding:0 13px 13px;margin-top:13px}
.public-portal .pjs-study-library__hero{background:linear-gradient(125deg,#081f3a,#15538b)}
@media(max-width:760px){
 .pjs-study-library__folders{gap:10px;margin-top:12px}
 .pjs-study-folder{border-radius:15px}
 .pjs-study-folder>summary{grid-template-columns:40px minmax(0,1fr) 22px;padding:11px 12px;gap:9px}
 .pjs-study-folder__icon{width:38px;height:38px;border-radius:11px;font-size:1.05rem}
 .pjs-study-folder>summary strong{font-size:.83rem}.pjs-study-folder>summary small{font-size:.62rem}
 .pjs-study-folder>.pjs-study-library__grid{padding:0 10px 10px;margin-top:10px}
}
