/* Comfortable study controls use the existing theme tokens in both modes. */
.folder-study-overview{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:20px 0;padding:24px;border:1px solid var(--edge);border-radius:18px;background:color-mix(in srgb,var(--accent) 5%,var(--panel));min-width:0}
.folder-study-overview h2{font-size:22px;line-height:1.35;margin:8px 0}.folder-study-overview p{line-height:1.65;margin:0 0 8px;overflow-wrap:anywhere}.folder-study-overview small{color:var(--quiet)}.folder-study-overview>.btn{flex:none;min-height:46px}
.folder-tools,.subject-options-menu{position:relative;flex:none}.folder-tools>summary,.subject-options-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;min-height:46px;box-sizing:border-box}.folder-tools>summary::-webkit-details-marker,.subject-options-menu>summary::-webkit-details-marker{display:none}.folder-tools>div,.subject-options-menu>div{position:absolute;right:0;top:calc(100% + 7px);z-index:20;display:grid;gap:7px;width:240px;max-width:calc(100vw - 48px);padding:10px;border:1px solid var(--edge);border-radius:13px;background:var(--panel);box-shadow:0 12px 32px #102a2b22}.folder-tools>div>.btn,.subject-options-menu>div>.btn{min-height:44px;white-space:normal;text-align:left}.subject-options-menu>summary{width:46px;font-size:23px}.subject-resources{grid-column:1/-1;min-width:0;width:100%;border-top:1px solid var(--edge);padding-top:10px;margin-top:4px}.subject-resources>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:13px;color:var(--accent-ink);line-height:1.5}.subject-resources .subject-resource-shortcuts{border-top:0;margin:0;padding:6px 0}
.study-journey{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border:1px solid var(--edge);border-radius:14px;padding:12px;background:var(--subtle);margin:0 0 24px}.study-journey>button{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:3px 8px;padding:8px;border:0;background:transparent;color:var(--text);text-align:left;border-radius:10px;min-width:0;min-height:52px}.study-journey>button:hover{background:var(--panel)}.study-journey>button>span{grid-row:1/3;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--accent-soft);color:var(--accent-ink)}.study-journey strong{font-size:13px;font-weight:550}.study-journey small{font-size:11px;color:var(--quiet);line-height:1.5;overflow-wrap:anywhere}.summary-reading-estimate{color:var(--quiet);font-size:13px;line-height:1.65}.summary-library-list article small{display:block;line-height:1.6;color:var(--quiet);font-size:12px}.summary-reader-footer{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.summary-reader-footer>.btn{min-height:46px;white-space:normal}.generation-elapsed{display:block;margin-top:9px}.generation-reassurance{font-size:12px;line-height:1.65;margin-bottom:0;color:var(--quiet)}.generation-flow [data-open-generation-recovery]{min-height:44px;text-align:left;white-space:normal}
.account-migration-reminder{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--edge);border-radius:16px;background:var(--panel);padding:20px;margin:20px 0}.account-migration-reminder p{line-height:1.6;color:var(--quiet);margin:7px 0 0;font-size:14px}.account-migration-reminder>.btn{flex:none;min-height:46px}.community-focus{min-width:0}.community-focus .nexo-section-head{align-items:center;gap:12px;flex-wrap:wrap}.community-focus-actions{display:grid;gap:8px;margin:16px 0}.community-focus-actions>button{display:grid;grid-template-columns:32px minmax(0,1fr);text-align:left;align-items:center;gap:4px 10px;border:1px solid var(--edge);background:var(--subtle);color:var(--text);border-radius:12px;padding:12px;min-height:62px;min-width:0}.community-focus-actions>button>span{grid-row:1/3;font-size:23px}.community-focus-actions strong{font-size:14px;font-weight:550}.community-focus-actions small{color:var(--quiet);line-height:1.5}.community-focus-friends{display:grid;gap:7px;padding-top:10px}.community-focus-friends>span{font-size:12px;color:var(--quiet)}.community-focus-friends button{display:grid;gap:5px;min-height:48px;padding:10px;border:0;background:transparent;text-align:left;color:var(--text);border-radius:10px;min-width:0}.community-focus-friends strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.community-focus-posts{border-top:1px solid var(--edge);padding-top:10px;margin:18px 0 0}.community-focus-posts>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:13px}.community-focus [data-community-focus-refresh]{min-height:44px}
@media(max-width:900px){.folder-study-overview{padding:20px;flex-wrap:wrap}.heading>.folder-heading-actions>.folder-tools{align-self:stretch}.folder-tools>summary{height:100%}}
@media(max-width:600px){
 .content[data-page=materias],.content[data-page=caderno]{min-width:0;overflow-wrap:anywhere}
 .content[data-page=caderno] .notebook-main{padding:16px;min-width:0}
 .notebook-main>.study-resource-tabs{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:2px 2px 10px;scrollbar-width:thin;margin-bottom:14px;max-width:100%}
 .notebook-main>.study-resource-tabs>.study-resource{flex:0 0 154px;min-height:62px;scroll-snap-align:start;padding:9px}
 .study-journey{gap:4px;padding:6px;margin-bottom:20px}.study-journey>button{display:flex;flex-direction:column;align-items:center;text-align:center;padding:8px 4px;gap:7px}.study-journey small{font-size:10px}
 .folder-study-overview{padding:18px;gap:16px}.folder-study-overview h2{font-size:20px}.folder-study-overview>.btn{width:100%;white-space:normal}
 .summary-reader-footer>.btn{width:100%;min-height:46px}.summary-library-list article{min-width:0}.summary-reader-body{overflow-wrap:anywhere}
 .content[data-page=caderno] input:not([type=radio]):not([type=checkbox]),.content[data-page=caderno] textarea,.content[data-page=caderno] select,.folder-import input,.folder-import textarea{font-size:16px;max-width:100%;min-width:0;box-sizing:border-box}
 .content[data-page=caderno] input[type=file],.folder-import input[type=file]{width:100%;overflow:hidden;padding:12px}
 .generation-flow ol{gap:12px 8px}.generation-flow li{line-height:1.4;font-size:11px;align-items:flex-start}.generation-flow progress{min-height:10px}
 .account-migration-reminder{flex-direction:column;align-items:stretch;padding:16px;gap:14px}.account-migration-reminder>.btn{width:100%}
 .community-focus{padding:18px}.community-feed-tabs{min-width:0;overflow-x:auto;scrollbar-width:thin}.community-feed-tabs>button{min-height:44px;white-space:nowrap;flex:1 0 auto}.community-scroll .community-post{min-width:0}.community-chat-form textarea{font-size:16px}.community-chat-form{min-width:0}.community-bottom button{min-height:44px}
 .folder-heading-actions .folder-tools{flex:1 1 100%}.folder-tools>div{left:0;right:auto;width:100%;max-width:100%}.subject-row>.actions{align-items:center}.subject-row .subject-options-menu>summary{min-height:46px}
}
@media(prefers-reduced-motion:reduce){.study-resource-tabs{scroll-behavior:auto}}
