.study-resource-icon{--resource:#2d8a79;--resource-dark:#90ddc5;display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:11px;background:color-mix(in srgb,var(--resource) 12%,var(--panel));color:var(--resource);border:1px solid color-mix(in srgb,var(--resource) 16%,var(--panel))}
.study-resource-icon svg{width:21px;height:21px}
.resource-summary{--resource:#2779b9;--resource-dark:#9dcdff}
.resource-activities{--resource:#b77922;--resource-dark:#f6ce8d}
.resource-map{--resource:#8254b6;--resource-dark:#d3b0ff}
.resource-book{--resource:#2e8a72;--resource-dark:#95e1c5}
.resource-objectives{--resource:#bb5683;--resource-dark:#f5afce}
.resource-notebooks{--resource:#4e6fbb;--resource-dark:#b0c7ff}
:root[data-theme=dark] .study-resource-icon{color:var(--resource-dark);background:color-mix(in srgb,var(--resource-dark) 12%,var(--panel));border-color:color-mix(in srgb,var(--resource-dark) 18%,var(--panel))}
.notebook-main>.study-resource-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0;margin:0 0 25px;background:transparent;border:0;box-shadow:none;border-radius:0}
.study-resource-tabs>button.study-resource{display:flex;align-items:center;gap:10px;min-width:0;min-height:72px;padding:12px;background:var(--panel);border:1px solid var(--edge);border-radius:13px;text-align:left;box-shadow:none;color:var(--text);white-space:normal}
.study-resource-tabs>button.study-resource.active{background:var(--accent-soft);border-color:var(--accent);color:var(--text)}
.study-resource-tabs>button.study-resource:hover{border-color:var(--accent)}
.study-resource>span:last-child{min-width:0}
.study-resource strong{display:block;font-size:13px;font-weight:550;line-height:1.4;overflow-wrap:anywhere}
.study-resource small{display:block;font-size:11px;font-weight:400;color:var(--quiet);margin-top:3px;line-height:1.4}
.notebook-main>.mobile-section-picker{display:none!important}
.subject-resource-shortcuts{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;width:100%;padding-top:12px;margin-top:2px;border-top:1px solid var(--edge)}
.subject-resource-shortcuts>button{display:flex;align-items:center;gap:7px;min-height:44px;min-width:0;border:1px solid var(--edge);border-radius:10px;background:var(--panel);color:var(--text);padding:7px 10px;text-align:left;font-size:12px;flex:1 1 105px}
.subject-resource-shortcuts>button:hover{background:var(--subtle);border-color:var(--accent)}
.subject-resource-shortcuts .study-resource-icon{width:28px;height:28px;border-radius:8px}
.subject-resource-shortcuts .study-resource-icon svg{width:18px;height:18px}
.subject-resource-shortcuts small{display:inline!important;margin:0 0 0 6px!important;font-size:11px!important;font-weight:450;color:var(--quiet)}
.community-post-head .community-post-menu{position:relative;flex:none;align-self:flex-start;margin-left:auto}
.community-post-menu>summary{list-style:none;display:grid;place-items:center;cursor:pointer;border-radius:10px;min-width:38px;min-height:38px;padding:3px 8px;font-size:24px;line-height:1;color:var(--quiet);border:1px solid transparent}
.community-post-menu>summary::-webkit-details-marker{display:none}
.community-post-menu>summary:hover,.community-post-menu[open]>summary{background:var(--subtle);border-color:var(--edge)}
.community-post-menu[open]{z-index:8}
.community-post-menu>div{position:absolute;right:0;top:calc(100% + 5px);width:196px;max-width:calc(100vw - 48px);padding:7px;background:var(--panel);color:var(--text);border:1px solid var(--edge);border-radius:12px;box-shadow:0 9px 28px #0002;display:grid;gap:4px}
.community-post-menu button{min-height:44px;border:0;background:transparent;color:var(--text);padding:10px;text-align:left;border-radius:8px;font:inherit;font-size:13px;white-space:normal}
.community-post-menu button:hover{background:var(--subtle)}
.community-post-menu button[data-community-action=delete]{color:#bc4559}
:root[data-theme=dark] .community-post-menu button[data-community-action=delete]{color:#ffa5b3}
.community-post .community-actions{justify-content:flex-start}
.community-post .community-actions button:last-child{margin-left:auto}

/* Reuse the existing timer and notebook mode, with the reading area at its center. */
.nexo-focus .content>.heading,.nexo-focus .content>.study-tools,.nexo-focus .content>.reading-controls,.nexo-focus .content>.coach-progress,.nexo-focus .notebook-main>.study-resource-tabs{display:none!important}
.nexo-focus .notebook-main{border:0;box-shadow:none;max-width:100%;padding-top:12px}
.nexo-focus .content{padding:18px 22px!important}
.nexo-focus .summary-reader-document{max-width:var(--reading-width,840px);margin-inline:auto}
#nexo-focus-bar{gap:10px}
#nexo-focus-bar .btn{min-height:40px}
#nexo-focus-bar strong{font-weight:550}
@media(min-width:1400px){.notebook-main>.study-resource-tabs{grid-template-columns:repeat(6,minmax(0,1fr))}.study-resource-tabs>button.study-resource{flex-direction:column;align-items:flex-start;gap:9px}}
@media(max-width:700px){
 .topbar{height:60px!important;min-height:60px;padding-inline:10px!important;gap:8px!important}
 .topbar .mobile-menu summary{min-height:40px;padding:7px 9px;display:flex;align-items:center;gap:6px}
 .topbar .back-button{min-height:40px;padding:8px 10px;font-size:13px}
 .topbar .breadcrumb{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
 .topbar .top-actions{gap:6px}
 .topbar .avatar{width:32px;height:32px;flex:none}
 .content[data-page=caderno]{padding:18px 12px calc(94px + env(safe-area-inset-bottom))}
 .content[data-page=caderno]>.heading{gap:12px;margin-bottom:18px}
 .content[data-page=caderno]>.heading h1{font-size:24px}
 .content[data-page=caderno]>.heading .actions{gap:7px}
 .content[data-page=caderno] .notebook-main{padding:15px}
 .notebook-main>.study-resource-tabs{gap:7px;margin-bottom:20px}
 .study-resource-tabs>button.study-resource{flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:91px;padding:9px 4px;text-align:center}
 .study-resource strong{font-size:11px;line-height:1.35}
 .study-resource small{font-size:10px;line-height:1.35}
 .study-resource-tabs .study-resource-icon{width:29px;height:29px;border-radius:9px}
 .study-resource-tabs .study-resource-icon svg{width:19px;height:19px}
 .subject-resource-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .subject-resource-shortcuts>button{padding:7px;gap:5px;flex:none;font-size:10px;justify-content:center;flex-direction:column;align-items:center;text-align:center}
 .subject-resource-shortcuts small{font-size:10px!important;margin-left:4px!important}
 .community-shell .community-head{padding-bottom:2px}
 .community-shell .community-fixed-top{padding-top:6px}
 .community-shell .community-head h1{font-size:16px}
 .community-shell .community-feed-tabs button{min-height:40px;padding:8px 10px}
 .community-shell>.community-bottom button{min-height:34px}
 .community-shell .community-post-head{flex-wrap:nowrap;gap:8px}
 .community-post-head .community-person{flex:1 1 0;min-width:0}
 .community-post-head .community-quiet{font-size:11px;max-width:70px;padding:8px 4px}
 .community-post-menu>summary{min-width:34px;min-height:36px}
 #nexo-focus-bar{padding:8px 10px;gap:7px}
 #nexo-focus-bar strong{font-size:12px;width:auto;flex:1 1 140px}
 #nexo-focus-bar label{font-size:12px}
 #nexo-focus-bar .btn{font-size:11px;min-height:38px;padding:7px 9px}
 #focus-minutes{width:48px}
 .nexo-focus .content{padding:12px 8px!important}
}
@media(max-width:359px){.notebook-main>.study-resource-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.study-resource-tabs>button.study-resource{min-height:82px}}

/* Subject actions share one baseline and consistent touch targets. */
.content[data-page=caderno]>.heading>.subject-heading-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:10px;min-width:0;max-width:100%;margin:0}
.content[data-page=caderno]>.heading>.subject-heading-actions>.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:46px;height:auto;margin:0;padding:11px 15px;line-height:1.3;font-family:inherit;font-size:14px;vertical-align:middle;align-self:stretch;white-space:normal}
.content[data-page=caderno]>.heading>.subject-heading-actions .back-button-icon{width:18px;height:18px;flex:none}
@media(max-width:600px){
 .content[data-page=caderno]>.heading>.subject-heading-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}
 .content[data-page=caderno]>.heading>.subject-heading-actions>.btn{width:100%;min-width:0;font-size:13px;padding:11px 10px}
 .content[data-page=caderno]>.heading>.subject-heading-actions>#study-with-professor{grid-column:1 / -1}
}

.resource-generate{--resource:#23835d;--resource-dark:#a0e8c4}
.study-resource-tabs>button[data-section=generate]{border-color:color-mix(in srgb,var(--accent) 50%,var(--edge));background:color-mix(in srgb,var(--accent) 6%,var(--panel))}
.study-resource-tabs>button[data-section=generate].active{background:var(--accent-soft);border-color:var(--accent)}
.summary-library-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.summary-library-heading h2{margin:0 0 6px}.summary-library-heading p{margin:0;color:var(--quiet);line-height:1.6}
.notebook-main>.summary-generation{max-width:820px;margin:0 auto;padding:24px;box-shadow:none}
.summary-generation-heading{display:flex;gap:14px;align-items:flex-start;margin-bottom:24px}
.summary-generation-heading>.study-resource-icon{width:44px;height:44px;border-radius:13px}
.summary-generation-heading h2{font-size:22px;margin:0 0 8px;line-height:1.3}
.summary-generation-heading p{margin:0;color:var(--quiet);line-height:1.6}
.summary-generation .form{display:grid;gap:12px}.summary-generation .form>textarea,.summary-generation .form>input{width:100%;min-width:0;box-sizing:border-box}
.summary-generation #generate-syllabus-content{min-height:46px;margin-top:16px}
@media(max-width:600px){.notebook-main>.summary-generation{padding:16px}.summary-library-heading>.btn{width:100%}.summary-generation-heading h2{font-size:20px}.summary-generation #generate-syllabus-content{width:100%}}
