:root{--ink:#fefadf;--muted:#8e8e87;--purple:#5f6b39;--purple-dark:#78864c;--lav:rgba(95,107,57,.13);--line:rgba(254,250,223,.09);--bg:#0a0a0a;--white:#11110f;--coral:#a16f58;--mint:#7e8c56;--amber:#9a8a55;--shadow:none}
*{scrollbar-width:thin;scrollbar-color:#34382a #0a0a0a}
body{background:#0a0a0a;color:#fefadf;font-family:'Exo 2',sans-serif;font-weight:300;letter-spacing:.015em}
body:before{content:'';position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 75% 12%,rgba(95,107,57,.11),transparent 28%),linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px);background-size:auto,100% 72px;z-index:-1}
.mobile-brand{display:none;align-items:center;gap:8px;font:500 18px 'IBM Plex Serif';color:#fefadf}.mobile-brand img{width:27px;height:27px;object-fit:contain;filter:invert(1) sepia(.12)}
h1,h2,h3,.brand,.stat-card strong{font-family:'IBM Plex Serif',serif!important;font-weight:500!important}
.app-shell{background:transparent}
.sidebar{width:260px;background:rgba(9,9,9,.93);border-right:1px solid var(--line);padding:32px 24px 22px;backdrop-filter:blur(24px)}
.brand{color:#fefadf;font:500 22px 'IBM Plex Serif';letter-spacing:.02em;padding:0 8px 42px}.brand-logo{filter:invert(1) sepia(.12);opacity:.92}.sidebar>.brand .brand-logo{width:31px;height:31px}
.nav-item{color:#777970;border-radius:0;padding:13px 9px;font:400 12px 'Exo 2';letter-spacing:.08em;text-transform:uppercase;border-left:1px solid transparent;transition:.25s}.nav-item span{font-size:15px}.nav-item:hover,.nav-item.active{background:linear-gradient(90deg,rgba(95,107,57,.14),transparent);color:#fefadf;border-left-color:#5f6b39}.sidebar-bottom .nav-item{border-top:1px solid var(--line)}
.focus-card{background:transparent;border:1px solid var(--line);border-radius:0;padding:18px;margin:10px 0 20px}.focus-card>span{color:#7f8d52}.focus-card strong{font-family:'IBM Plex Serif';font-weight:400}.focus-card div{background:#20211d}.focus-card i{background:#5f6b39}.user-card{border-color:var(--line)}.avatar{background:#1b1c17;color:#b7bd9a;border:1px solid rgba(95,107,57,.35)}.user-card button{color:#86877e}
main{margin-left:260px;width:calc(100% - 260px)}
.topbar{height:82px;background:rgba(10,10,10,.84);border-color:var(--line);padding:0 42px;backdrop-filter:blur(24px)}
.search{background:transparent;border-bottom:1px solid var(--line);border-radius:0;color:#5f6b39;width:330px;padding:11px 2px}.search input{color:#dedbc8;font-family:'Exo 2';font-weight:300}.search input::placeholder{color:#62635e}
.icon-btn{background:transparent;border:1px solid var(--line);border-radius:0;color:#8b8b83}.notification i{background:#78864c}
.primary{background:#5f6b39;border:1px solid #78834d;color:#fffdf1;border-radius:0;box-shadow:none;font:500 11px 'Exo 2';letter-spacing:.08em;text-transform:uppercase;transition:.25s}.primary:hover{background:#707d47;transform:none}.primary.small{padding:12px 18px}
.view{padding:58px 52px;max-width:1600px}.welcome-row,.page-title{margin-bottom:42px}.eyebrow{color:#829052;font-size:9px;letter-spacing:.22em}.welcome-row h1,.page-title h1{font-size:38px;letter-spacing:-.02em;margin-bottom:9px}.welcome-row p,.page-title p{color:#7c7d76;font-size:12px}
.stats-grid{gap:1px;background:var(--line);border:1px solid var(--line);margin-bottom:28px}.stat-card{background:#0e0e0d;border:0;border-radius:0;padding:23px 20px;box-shadow:none;min-height:105px}.stat-card:before{content:'';position:absolute;left:0;top:0;width:1px;height:0;background:#5f6b39;transition:.35s}.stat-card:hover:before{height:100%}.stat-icon{border-radius:0;background:transparent!important;border:1px solid var(--line);color:#8c9960!important}.stat-card span{letter-spacing:.16em;color:#70716b}.stat-card strong{font-size:22px}.stat-card small{color:#6f706a}.stat-card>b,.coral>b,.amber>b{background:transparent;color:#7d8956;border:1px solid rgba(95,107,57,.22);border-radius:0}
.dashboard-grid{gap:24px;grid-template-columns:minmax(0,1.75fr) minmax(290px,.7fr)}.main-column,.side-column{gap:24px}
.panel{background:rgba(16,16,15,.75);border:1px solid var(--line);border-radius:0;padding:26px;box-shadow:none;backdrop-filter:blur(18px)}.panel-head{margin-bottom:24px}.panel h2{font-size:17px}.panel-head p{color:#6e6f69;letter-spacing:.04em}.text-btn{color:#84905b;font:400 10px 'Exo 2';letter-spacing:.08em;text-transform:uppercase}
.task-row{border-color:var(--line);padding:16px 2px}.task-check{border-radius:0;background:transparent;border:1px solid #474940;color:#fefadf}.task-check:hover{border-color:#78864c}.task-row.done .task-check{background:#5f6b39;border-color:#5f6b39}.task-main strong{font-weight:400;color:#e9e6d3}.task-main small,.task-date small{color:#686963}.task-date strong{font-weight:400;color:#b1af9f}.tag{background:transparent;color:#89935f;border:1px solid rgba(95,107,57,.25);border-radius:0;letter-spacing:.08em}.subject-dot{border-radius:0;transform:rotate(45deg)}
.ai-banner{background:linear-gradient(125deg,rgba(95,107,57,.22),rgba(14,14,13,.95) 58%);border:1px solid rgba(95,107,57,.3);border-radius:0;padding:29px;box-shadow:none}.ai-banner:after{width:160px;height:160px;border:1px solid rgba(95,107,57,.2);border-radius:0;transform:rotate(45deg);right:-80px;top:-80px}.ai-orb{border-radius:0;background:transparent;border:1px solid rgba(95,107,57,.4);color:#a4ad7f}.ai-banner h3{font-size:20px}.ai-banner p{color:#96968c}.ai-input{background:#0d0d0c;border:1px solid var(--line);border-radius:0}.ai-input input{background:transparent;color:#e7e4d1}.ai-input button{background:#5f6b39;color:#fff;border-radius:0}
.mini-calendar button,.calendar-toolbar button{background:transparent;border:1px solid var(--line);border-radius:0;color:#85867f}.days span{border-radius:0}.days .today{background:#5f6b39}.days .event:after{background:#89945f;border-radius:0}.priorities .panel-head>span{background:transparent;border:1px solid var(--line);border-radius:0;color:#89945f}.priority-item{border-color:var(--line)}.priority-item>b{background:transparent;border:1px solid var(--line);border-radius:0;color:#87925f}.priority-item em{background:transparent;color:#948b62;border:1px solid rgba(154,138,85,.24);border-radius:0}.soft-btn{background:transparent;border:1px solid rgba(95,107,57,.3);color:#929c6c;border-radius:0;text-transform:uppercase;letter-spacing:.1em}
.full-calendar{padding:0}.calendar-week b,.calendar-day{border-color:var(--line)}.calendar-day{color:#777870}.calendar-day.today>b{background:#5f6b39;border-radius:0}.calendar-event{background:rgba(95,107,57,.12);color:#a7af83;border-radius:0;border-color:#5f6b39}.calendar-event.coral{background:rgba(154,138,85,.1);color:#b2a574;border-color:#9a8a55}
.subjects-grid{gap:16px}.subject-card{background:rgba(16,16,15,.72);border:1px solid var(--line);border-radius:0;padding:26px;box-shadow:none}.subject-card:hover{border-color:rgba(95,107,57,.35)}.subject-icon{border-radius:0;filter:saturate(.45);background:#5f6b39!important}.subject-card h3{font-size:18px;font-weight:400!important}.subject-card p,.progress-label{color:#6f7069}.progress{background:#25251f;border-radius:0}.progress i{background:#5f6b39!important;border-radius:0}.pill{background:transparent;border:1px solid rgba(95,107,57,.28);color:#909a68;border-radius:0}
.settings-panel>label{border-color:var(--line)}.settings-panel label>i{background:#252621;border-radius:0}.settings-panel label>i:after{border-radius:0;background:#bcb9a8}.settings-panel input:checked+i{background:#5f6b39}
.modal-backdrop{background:rgba(0,0,0,.78);backdrop-filter:blur(12px)}.modal{background:#10100f;border:1px solid rgba(254,250,223,.12);border-radius:0;box-shadow:0 40px 100px rgba(0,0,0,.55)}.modal-close{background:transparent;border:1px solid var(--line);border-radius:0;color:#aaa99e}.modal-icon{background:transparent;border:1px solid rgba(95,107,57,.35);border-radius:0;color:#939d6c}.modal-sub{color:#777871}.ai-big-input{border-color:var(--line);border-radius:0}.ai-big-input textarea{background:transparent;color:#e8e5d2}.ai-big-input button{background:#5f6b39;color:#fff;border-radius:0}.parsed-fields label{color:#9a998f}.parsed-fields input,.parsed-fields select{background:#0c0c0b;color:#dedbc9;border-color:var(--line);border-radius:0}.form-submit{margin-top:10px}
.toast{background:#171812;border:1px solid rgba(95,107,57,.32);border-radius:0}.toast>span{background:#5f6b39;border-radius:0}
.dashboard-empty,.dashboard-error,.dashboard-loading{display:grid;gap:5px;place-items:start;padding:30px 2px;border-top:1px solid var(--line);color:#777970;font-size:12px}.dashboard-empty strong,.dashboard-error strong{font:400 16px 'IBM Plex Serif';color:var(--ink)}.dashboard-empty small,.dashboard-error small{color:var(--muted)}.task-row.overdue .task-date small{color:#b27862}.task-row.overdue .task-check{border-color:#8d5f4c}
.activity-clickable{cursor:pointer;transition:background .2s,padding .2s}.activity-clickable:hover,.activity-clickable:focus-visible{background:rgba(95,107,57,.08);padding-left:10px;padding-right:10px;outline:1px solid rgba(95,107,57,.25)}
.placeholder-page{min-height:calc(100vh - 200px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;position:relative;padding:8vw;border-top:1px solid var(--line);overflow:hidden}.placeholder-page:after{content:'';position:absolute;width:280px;height:280px;border:1px solid rgba(95,107,57,.18);transform:rotate(45deg);right:10%;top:50%;margin-top:-140px}.placeholder-page>span{position:absolute;right:5%;top:8%;font:400 clamp(90px,15vw,210px) 'IBM Plex Serif';color:rgba(95,107,57,.07)}.placeholder-page h1{font:500 clamp(42px,7vw,82px) 'IBM Plex Serif';margin:4px 0 18px;letter-spacing:-.04em}.placeholder-page>p:last-child{color:var(--muted);font-size:14px;border-left:1px solid #5f6b39;padding-left:18px}
.sidebar-overlay{display:none;position:fixed;inset:0;border:0;background:rgba(0,0,0,.62);backdrop-filter:blur(4px);z-index:19}.sidebar-overlay.open{display:block}.modal-open{overflow:hidden}
.activity-form{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:26px}.activity-form label{font:400 10px 'Exo 2';color:#9a998f;letter-spacing:.08em;text-transform:uppercase}.activity-form input,.activity-form select,.activity-form textarea{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid var(--line);border-radius:0;background:#0c0c0b;color:#dedbc9;font:300 12px 'Exo 2';outline:none}.activity-form textarea{resize:vertical;min-height:95px}.activity-form input:focus,.activity-form select:focus,.activity-form textarea:focus{border-color:#5f6b39}.form-wide{grid-column:1/-1}.form-message{margin:0;color:#b27862;font-size:12px;min-height:18px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:5px}.form-actions .soft-btn{width:auto;padding:11px 18px}.form-actions button:disabled{opacity:.55;cursor:not-allowed}.detail-modal{width:min(620px,100%)}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line);margin-top:28px}.detail-grid>div{display:grid;gap:7px;padding:17px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.detail-grid span,.detail-description span,.detail-progress span{font-size:9px;letter-spacing:.13em;text-transform:uppercase;color:#7f8178}.detail-grid strong{font:400 13px 'Exo 2';color:var(--ink)}.detail-description{margin-top:24px;border-left:1px solid #5f6b39;padding-left:18px}.detail-description p{font-size:12px;line-height:1.7;color:var(--muted);white-space:pre-wrap}.detail-progress{display:grid;gap:9px;margin-top:22px}.detail-progress>div{display:flex;justify-content:space-between}.detail-progress strong{font:400 13px 'Exo 2';color:var(--ink)}.detail-progress i,.activity-progress span{display:block;height:7px;background:rgba(255,255,255,.07);border:1px solid var(--line);overflow:hidden}.detail-progress b,.activity-progress i{display:block;height:100%;background:#5f6b39}.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px}.detail-actions button{width:auto}.danger-btn{border:1px solid rgba(178,120,98,.4);background:transparent;color:#c58d79;padding:11px 18px;font:500 11px 'Exo 2';letter-spacing:.08em;text-transform:uppercase;cursor:pointer}.danger-btn:hover{background:rgba(178,120,98,.1)}
.activities-panel{display:grid;gap:22px}.activities-toolbar{display:grid;gap:18px}.activities-search{border-bottom:1px solid var(--line);color:#5f6b39;padding:12px 0}.activities-search input{width:calc(100% - 28px);border:0;outline:0;background:transparent;color:#dedbc9;font:300 13px 'Exo 2';margin-left:8px}.activities-search input::placeholder{color:#656760}.activities-filters{display:flex;gap:8px;flex-wrap:wrap}.activities-filters button{border:1px solid var(--line);background:transparent;color:#8b8d83;padding:9px 12px;font:400 10px 'Exo 2';letter-spacing:.08em;text-transform:uppercase;cursor:pointer}.activities-filters button:hover,.activities-filters button.active{border-color:rgba(95,107,57,.55);background:rgba(95,107,57,.13);color:var(--ink)}.activities-advanced-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding-top:18px;border-top:1px solid var(--line)}.activities-advanced-filters label{display:grid;gap:7px;color:#8b8d83;font:400 10px 'Exo 2';letter-spacing:.12em;text-transform:uppercase}.activities-advanced-filters select{width:100%;border:1px solid var(--line);border-radius:0;background:#0c0c0b;color:#dedbc9;padding:12px;font:300 12px 'Exo 2';outline:0}.activities-advanced-filters select:focus{border-color:#5f6b39}.activities-list{display:grid;gap:10px}.activity-card{display:grid;grid-template-columns:minmax(0,1.2fr) auto minmax(120px,.32fr);align-items:center;gap:18px;padding:18px;border:1px solid var(--line);background:rgba(255,255,255,.012);cursor:pointer;transition:.2s}.activity-card:hover,.activity-card:focus-visible{border-color:rgba(95,107,57,.45);background:rgba(95,107,57,.07);outline:0}.activity-card h3{font:400 16px 'IBM Plex Serif';margin:0 0 6px}.activity-card p{margin:0;color:var(--muted);font-size:11px}.activity-progress{display:flex;align-items:center;gap:9px;margin-top:10px}.activity-progress span{flex:1;height:5px}.activity-progress small{font-size:10px;color:var(--muted)}.activity-meta{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.activity-meta span{border:1px solid rgba(95,107,57,.24);color:#9ca678;padding:5px 8px;font-size:9px;letter-spacing:.07em;text-transform:uppercase}.activity-deadline{text-align:right}.activity-deadline strong{display:block;font:400 13px 'Exo 2';color:var(--ink)}.activity-deadline small{color:var(--muted);font-size:10px}.activity-card.done{opacity:.62}.activity-card.overdue .activity-deadline small{color:#b27862}
.auth-screen{background:radial-gradient(circle at 70% 20%,rgba(95,107,57,.13),transparent 28%),#0a0a0a}.auth-card{background:rgba(16,16,15,.88);border:1px solid var(--line);border-radius:0;box-shadow:none;padding:46px}.auth-card:before{content:'';position:absolute;width:180px;height:180px;border:1px solid rgba(95,107,57,.12);transform:rotate(45deg);right:-125px;top:-125px}.auth-card{position:relative;overflow:hidden}.auth-card h1{font-family:'IBM Plex Serif';font-weight:500;font-size:30px}.auth-card label{color:#999990;font-family:'Exo 2';font-weight:400}.auth-card input{background:#0c0c0b;color:#f1eedc;border-color:var(--line);border-radius:0}.auth-card input:focus{border-color:#5f6b39;box-shadow:0 0 0 1px #5f6b39}.auth-brand .brand-logo{filter:invert(1) sepia(.12)}
@media(max-width:1100px){.view{padding:42px 30px}.stats-grid{gap:1px}.dashboard-grid{grid-template-columns:1fr}}
@media(max-width:800px){main{margin-left:0;width:100%}.topbar{height:68px;padding:0 18px}.view{padding:34px 18px}.welcome-row h1,.page-title h1{font-size:31px}.sidebar{width:270px}.mobile-menu{color:#fefadf}.stats-grid{grid-template-columns:1fr 1fr}.stat-card{min-height:100px}.auth-card{padding:32px}}
@media(max-width:480px){.stats-grid{grid-template-columns:1fr}.welcome-row{gap:12px}.panel{padding:20px}.welcome-row h1,.page-title h1{font-size:27px}}

/* Light mode: mesma linguagem editorial, com papel quente e oliva. */
html[data-theme="light"]{--ink:#1a1b16;--muted:#73756d;--purple:#5f6b39;--purple-dark:#4d592c;--lav:rgba(95,107,57,.1);--line:rgba(37,40,29,.12);--bg:#f5f2e8;--white:#fffdf5;--shadow:none}
html[data-theme="light"] body{background:#f5f2e8;color:#1a1b16}
html[data-theme="light"] body:before{background:radial-gradient(circle at 75% 12%,rgba(95,107,57,.1),transparent 28%),linear-gradient(rgba(40,42,31,.025) 1px,transparent 1px);background-size:auto,100% 72px}
html[data-theme="light"] .sidebar{background:rgba(246,243,233,.95);border-color:var(--line)}
html[data-theme="light"] .brand,html[data-theme="light"] .mobile-brand{color:#1a1b16}
html[data-theme="light"] .brand-logo,html[data-theme="light"] .mobile-brand img,html[data-theme="light"] .auth-brand .brand-logo{filter:none}
html[data-theme="light"] .nav-item{color:#707268}html[data-theme="light"] .nav-item:hover,html[data-theme="light"] .nav-item.active{color:#25271d;background:linear-gradient(90deg,rgba(95,107,57,.12),transparent)}
html[data-theme="light"] .focus-card{background:rgba(255,255,255,.35)}html[data-theme="light"] .focus-card div{background:#dddccc}
html[data-theme="light"] .topbar{background:rgba(245,242,232,.88)}html[data-theme="light"] .search input{color:#282a21}html[data-theme="light"] .search input::placeholder{color:#898b81}
html[data-theme="light"] .icon-btn{color:#55584d;background:rgba(255,255,255,.36)}
html[data-theme="light"] .panel,html[data-theme="light"] .subject-card{background:rgba(255,253,245,.78)}
html[data-theme="light"] .stat-card{background:#fffdf5}html[data-theme="light"] .stat-card strong,html[data-theme="light"] .task-main strong{color:#22241c}
html[data-theme="light"] .task-date strong{color:#54564d}html[data-theme="light"] .task-check{background:#fffdf5;border-color:#a4a69d}
html[data-theme="light"] .ai-banner{background:linear-gradient(125deg,#556032,#76804e);color:#fffdf1}html[data-theme="light"] .ai-banner p{color:#e4e6d7}html[data-theme="light"] .ai-input{background:#fffdf5}html[data-theme="light"] .ai-input input{color:#25271f}
html[data-theme="light"] .calendar-day{color:#65675e}html[data-theme="light"] .subject-card p,html[data-theme="light"] .progress-label{color:#74766c}
html[data-theme="light"] .modal{background:#fffdf5;color:#1a1b16}html[data-theme="light"] .modal-close,html[data-theme="light"] .ai-big-input textarea,html[data-theme="light"] .parsed-fields input,html[data-theme="light"] .parsed-fields select{background:#f7f4ea;color:#25271f}
html[data-theme="light"] .auth-screen{background:radial-gradient(circle at 70% 20%,rgba(95,107,57,.12),transparent 28%),#f5f2e8}html[data-theme="light"] .auth-card{background:rgba(255,253,245,.92);color:#1a1b16}html[data-theme="light"] .auth-card input{background:#f7f4ea;color:#25271f}
html[data-theme="light"] .toast{background:#25271f;color:#fffdf1}
html[data-theme="light"] .activity-clickable:hover,html[data-theme="light"] .activity-clickable:focus-visible{background:rgba(95,107,57,.07)}html[data-theme="light"] .activity-form input,html[data-theme="light"] .activity-form select,html[data-theme="light"] .activity-form textarea,html[data-theme="light"] .activities-search input,html[data-theme="light"] .activities-advanced-filters select{background:#f7f4ea;color:#25271f}html[data-theme="light"] .sidebar-overlay{background:rgba(30,31,25,.35)}html[data-theme="light"] .activity-card{background:rgba(255,253,245,.65)}html[data-theme="light"] .activities-search input{background:transparent}
html[data-theme="light"] .calendar-day-cell{background:rgba(255,253,245,.55)}html[data-theme="light"] .calendar-day-cell div span,html[data-theme="light"] .calendar-day-item{background:rgba(95,107,57,.06);color:#26281f}
@media(max-width:800px){.mobile-brand{display:flex}.topbar .mobile-menu{margin-right:6px}.header-actions{margin-left:auto}.header-actions .theme-toggle{display:block}}
@media(max-width:800px){.placeholder-page{min-height:calc(100vh - 136px);padding:42px 24px}.placeholder-page:after{width:160px;height:160px;right:-90px}.sidebar.open{box-shadow:20px 0 60px rgba(0,0,0,.45)}}
@media(max-width:800px){.activity-card{grid-template-columns:1fr}.activity-meta{justify-content:flex-start}.activity-deadline{text-align:left}}
@media(max-width:800px){.activities-advanced-filters{grid-template-columns:1fr}}@media(max-width:480px){.mobile-brand span{display:none}.mobile-brand img{width:25px;height:25px}.theme-toggle{display:block!important}.activity-form,.detail-grid{grid-template-columns:1fr}.form-wide{grid-column:auto}.modal{padding:24px}.form-actions{flex-direction:column-reverse}.form-actions button{width:100%!important}.activities-filters{display:grid;grid-template-columns:1fr 1fr}.activities-filters button{text-align:center}}

.calendar-title{gap:24px}.calendar-view-switch{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.calendar-view-switch>span{font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-right:5px}.calendar-view-switch button{border:1px solid var(--line);background:transparent;color:#8b8d83;padding:9px 12px;font:400 10px 'Exo 2';letter-spacing:.08em;text-transform:uppercase;cursor:pointer}.calendar-view-switch button.active{background:rgba(95,107,57,.13);border-color:rgba(95,107,57,.55);color:var(--ink)}.calendar-view-switch em{font-style:normal;color:#8f936c;margin-left:5px}.calendar-panel{display:grid;gap:18px}.calendar-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:16px}.calendar-header h2{font:400 25px 'IBM Plex Serif';text-transform:capitalize}.calendar-header button{border:1px solid var(--line);background:transparent;color:var(--ink);width:38px;height:38px;cursor:pointer}.calendar-weekdays,.calendar-month-grid{display:grid;grid-template-columns:repeat(7,1fr)}.calendar-weekdays span{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);padding:10px;border-bottom:1px solid var(--line)}.calendar-day-cell{min-height:128px;text-align:left;background:rgba(255,255,255,.01);border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--ink);padding:12px;cursor:pointer;display:flex;flex-direction:column;gap:7px}.calendar-day-cell:hover{background:rgba(95,107,57,.07)}.calendar-day-cell.muted{background:transparent;cursor:default}.calendar-day-cell strong{font:400 14px 'Exo 2'}.calendar-day-cell.today strong{display:grid;place-items:center;background:#5f6b39;color:#fff;width:28px;height:28px}.calendar-day-cell em{font-style:normal;color:#8f936c;font-size:10px}.calendar-day-cell div{display:grid;gap:4px;margin-top:auto}.calendar-day-cell div span,.calendar-day-item{border-left:3px solid #7f8d52;background:rgba(255,255,255,.025);padding:5px 7px;font-size:9px;color:#d8d5c2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-event-prova,.calendar-day-item.calendar-event-prova{border-color:#4e86c6}.calendar-event-trabalho,.calendar-day-item.calendar-event-trabalho{border-color:#6f9f5b}.calendar-event-seminario,.calendar-day-item.calendar-event-seminario{border-color:#b9a45b}.calendar-event-apresentacao,.calendar-day-item.calendar-event-apresentacao{border-color:#8c6cc6}.calendar-event-entrega,.calendar-day-item.calendar-event-entrega{border-color:#c2814a}.calendar-event-lembrete,.calendar-day-item.calendar-event-lembrete{border-color:#8f9189}.calendar-event-overdue,.calendar-day-item.calendar-event-overdue{border-color:#b25f58}.calendar-day-list{display:grid;gap:10px;margin-top:24px}.calendar-day-item{display:flex;justify-content:space-between;gap:15px;align-items:center;white-space:normal;cursor:pointer}.calendar-day-item strong{display:block;font:400 14px 'IBM Plex Serif';color:var(--ink)}.calendar-day-item small,.calendar-day-item span{color:var(--muted);font-size:10px}
@media(max-width:800px){.calendar-title{align-items:flex-start}.calendar-weekdays span{font-size:8px;padding:8px 2px;text-align:center}.calendar-day-cell{min-height:90px;padding:8px}.calendar-day-cell em{font-size:8px}.calendar-day-cell div span{font-size:0;height:6px;padding:0}.calendar-day-list .calendar-day-item{display:grid}.calendar-view-switch{width:100%}}

.subject-view-switch{display:flex;gap:8px}.subject-view-switch button{border:1px solid var(--line);background:transparent;color:#8b8d83;padding:10px 13px;font:400 10px 'Exo 2';letter-spacing:.08em;text-transform:uppercase;cursor:pointer}.subject-view-switch button.active{background:rgba(95,107,57,.13);border-color:rgba(95,107,57,.55);color:var(--ink)}.subjects-hub{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.subjects-hub.list-mode{grid-template-columns:1fr}.subject-hub-card{display:grid;gap:20px;border:1px solid var(--line);background:rgba(255,255,255,.012);padding:22px;cursor:pointer;transition:.2s}.subject-hub-card:hover,.subject-hub-card:focus-visible{border-color:rgba(95,107,57,.45);background:rgba(95,107,57,.06);outline:0}.subjects-hub.list-mode .subject-hub-card{grid-template-columns:minmax(0,1.4fr) minmax(220px,.7fr) minmax(180px,.5fr) auto;align-items:center}.subject-hub-main{display:flex;align-items:center;gap:14px}.subject-hub-main h3{font:400 18px 'IBM Plex Serif';margin:0 0 5px}.subject-hub-main p{margin:0;color:var(--muted);font-size:11px}.subject-hub-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.subject-hub-stats span,.subject-detail-stats>div{border:1px solid var(--line);padding:12px;font:400 17px 'IBM Plex Serif';color:var(--ink)}.subject-hub-stats small,.subject-detail-stats span{display:block;margin-top:4px;font:400 9px 'Exo 2';letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}.subject-hub-progress{display:grid;gap:8px}.subject-hub-progress strong{font:400 18px 'IBM Plex Serif'}.subject-hub-progress i{display:block;height:7px;border:1px solid var(--line);background:rgba(255,255,255,.07)}.subject-hub-progress b{display:block;height:100%;background:#5f6b39}.subject-add{justify-self:start}.subject-detail-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:24px}.subject-new-activity{margin-top:22px}.subject-soon-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:22px}.subject-soon-grid article{border:1px solid var(--line);padding:13px}.subject-soon-grid strong{display:block;font:400 12px 'IBM Plex Serif'}.subject-soon-grid small{color:var(--muted);font-size:10px}html[data-theme="light"] .subject-hub-card{background:rgba(255,253,245,.65)}@media(max-width:1100px){.subjects-hub{grid-template-columns:repeat(2,1fr)}.subjects-hub.list-mode .subject-hub-card{grid-template-columns:1fr}.subject-soon-grid{grid-template-columns:repeat(2,1fr)}.subject-detail-stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.subjects-hub{grid-template-columns:1fr}.subject-view-switch{width:100%}.subject-view-switch button{flex:1}.subject-hub-stats{grid-template-columns:1fr 1fr 1fr}}

.activities-view-switch{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.activities-view-switch>span{font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-right:5px}.activities-view-switch button{border:1px solid var(--line);background:transparent;color:#8b8d83;padding:9px 12px;font:400 10px 'Exo 2';letter-spacing:.08em;text-transform:uppercase;cursor:pointer}.activities-view-switch button.active{background:rgba(95,107,57,.13);border-color:rgba(95,107,57,.55);color:var(--ink)}.activities-list.grouped-mode{gap:18px}.activity-subject-group{border:1px solid var(--line);background:rgba(255,255,255,.012);padding:20px;display:grid;gap:16px}.activity-subject-group header{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,.25fr) auto;gap:18px;align-items:center}.activity-subject-group h3{font:400 22px 'IBM Plex Serif';margin:0 0 6px}.activity-subject-group small,.activity-group-next{color:var(--muted);font-size:11px}.activity-group-list{display:grid;gap:8px}.activity-group-list .activity-card{background:rgba(0,0,0,.08)}html[data-theme="light"] .activity-subject-group{background:rgba(255,253,245,.65)}@media(max-width:800px){.activity-subject-group header{grid-template-columns:1fr}.activities-view-switch{width:100%}.activities-view-switch button{flex:1}}

.period-filter{display:grid;gap:7px;color:#8b8d83;font:400 10px 'Exo 2';letter-spacing:.12em;text-transform:uppercase}.period-filter select,.settings-form select{border:1px solid var(--line);background:#0c0c0b;color:#dedbc9;padding:12px;font:300 12px 'Exo 2'}.statistics-content{display:grid;gap:24px}.stats-insight-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.stat-insight-card,.productivity-card,.achievements-grid article{border:1px solid var(--line);background:rgba(255,255,255,.012);padding:22px}.stat-insight-card span{font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}.stat-insight-card strong,.productivity-card>strong{display:block;font:400 34px 'IBM Plex Serif';margin:8px 0;color:var(--ink)}.stat-insight-card small,.productivity-card p,.stats-summary p,.achievements-grid small{color:var(--muted);font-size:12px}.productivity-card{background:linear-gradient(135deg,rgba(95,107,57,.16),rgba(255,255,255,.015))}.productivity-card h3{font:400 22px 'IBM Plex Serif';margin:0 0 8px}.achievements-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:14px}.achievements-grid article.locked{opacity:.45}.profile-hero{display:flex;align-items:center;gap:22px;border:1px solid var(--line);background:rgba(255,255,255,.012);padding:28px;margin-bottom:20px}.profile-avatar{width:82px;height:82px;display:grid;place-items:center;border:1px solid rgba(95,107,57,.45);background:rgba(95,107,57,.12);font:400 28px 'IBM Plex Serif'}.profile-hero h1{font:400 36px 'IBM Plex Serif';margin:0}.profile-hero p,.profile-hero small{color:var(--muted)}.profile-hero .primary{margin-left:auto}.profile-grid,.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.profile-grid .panel p{color:var(--muted);font-size:13px}.settings-content{display:grid;gap:18px}.settings-form{display:grid;gap:13px}.settings-form label:not(.settings-toggle){display:grid;gap:7px;color:#8b8d83;font:400 10px 'Exo 2';letter-spacing:.12em;text-transform:uppercase}.settings-toggle{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:13px 0;color:var(--ink)}.settings-toggle input{display:none}.settings-toggle i{width:42px;height:22px;border:1px solid var(--line);background:#252621;position:relative}.settings-toggle i:after{content:'';position:absolute;width:16px;height:16px;left:3px;top:2px;background:#bcb9a8;transition:.2s}.settings-toggle input:checked+i{background:#5f6b39}.settings-toggle input:checked+i:after{left:21px}.pro-card{border:1px solid rgba(95,107,57,.28);padding:14px;margin:14px 0;background:rgba(95,107,57,.08)}.settings-save{justify-self:start}html[data-theme="light"] .period-filter select,html[data-theme="light"] .settings-form select{background:#f7f4ea;color:#25271f}html[data-theme="light"] .stat-insight-card,html[data-theme="light"] .productivity-card,html[data-theme="light"] .profile-hero,html[data-theme="light"] .achievements-grid article{background:rgba(255,253,245,.68)}@media(max-width:1100px){.stats-insight-grid,.profile-grid,.settings-grid{grid-template-columns:repeat(2,1fr)}.achievements-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.stats-insight-grid,.profile-grid,.settings-grid,.achievements-grid{grid-template-columns:1fr}.profile-hero{display:grid}.profile-hero .primary{margin-left:0}}
.intelligence-card{border-color:rgba(204,157,59,.32);background:linear-gradient(145deg,rgba(204,157,59,.12),rgba(255,255,255,.03))}
.home-intelligence ul{display:grid;gap:12px;margin:0 0 16px;padding:0;list-style:none}
.home-intelligence li{display:flex;gap:10px;align-items:flex-start;color:var(--text)}
.home-intelligence li span{display:grid;place-items:center;min-width:28px;height:28px;border:1px solid rgba(204,157,59,.35);border-radius:999px;color:#cc9d3b}
.home-intelligence li p{margin:3px 0 0;color:var(--muted);line-height:1.45}
.intelligence-footer{display:flex;align-items:center;justify-content:space-between;margin:14px 0;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.intelligence-footer em{font-style:normal;color:#cc9d3b;font-size:1.35rem;font-family:"IBM Plex Serif",serif}
.history-toolbar{display:grid;gap:16px;margin-bottom:22px}
.history-content{display:grid;gap:12px}
.history-item{display:flex;gap:14px;align-items:flex-start;padding:16px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.035)}
.history-item>span{display:grid;place-items:center;min-width:34px;height:34px;border-radius:50%;background:rgba(204,157,59,.12);color:#cc9d3b}
.history-item strong{display:block;color:var(--text);font-weight:500}
.history-item small{display:block;margin-top:5px;color:var(--muted)}
.planning-grid,.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.plan-column{min-height:260px}
.plan-column h2,.summary-card h2{margin-top:0}
.plan-item{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);cursor:pointer}
.plan-item:last-child{border-bottom:0}
.plan-item strong{display:block;color:var(--text);font-weight:500}
.plan-item small{display:block;margin-top:5px;color:var(--muted)}
.plan-item em{font-style:normal;color:#cc9d3b;white-space:nowrap}
.muted-text{color:var(--muted)}
.summary-card ul{margin:16px 0;padding-left:18px;color:var(--muted)}
.summary-card li{margin:8px 0}
.whatsapp-status-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;border-color:rgba(204,157,59,.25)}
.whatsapp-status-panel h2{font:400 22px 'IBM Plex Serif';margin:4px 0 8px}
.whatsapp-status-panel p{color:var(--muted);margin:0}
.soon-badge{border:1px solid rgba(204,157,59,.35);color:#cc9d3b;padding:8px 12px;font-size:10px;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap}
.suggestions-panel{margin-bottom:18px}
.suggestions-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.suggestions-list>div{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);padding:13px;background:rgba(255,255,255,.02)}
.suggestions-list span{display:grid;place-items:center;min-width:28px;height:28px;border:1px solid rgba(204,157,59,.28);color:#cc9d3b}
.suggestions-list p{margin:4px 0 0;color:var(--muted);line-height:1.45}
.plan-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:4px}
.plan-head small{color:var(--muted);font-size:10px;text-align:right}
.summary-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.summary-actions .soft-btn span{color:#cc9d3b;margin-left:5px}

@media (max-width:900px){
  .planning-grid,.summary-grid,.suggestions-list{grid-template-columns:1fr}
  .whatsapp-status-panel{display:grid}
}

/* Refinamento Sprint 5 */
.achievement-card{display:grid!important;grid-template-columns:auto 1fr;gap:8px 10px;align-items:center;min-width:0}
.achievement-card .achievement-icon{grid-row:1/3;display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(95,107,57,.35);color:#9da774}
.achievement-card strong{display:block;line-height:1.35;overflow-wrap:anywhere}
.achievement-card .achievement-badge{justify-self:start;margin:0;padding:4px 7px;border:1px solid rgba(95,107,57,.3);color:#9da774;font-size:8px;letter-spacing:.09em;text-transform:uppercase}
.achievement-card.locked{opacity:.48}.achievement-card.locked .achievement-badge{color:var(--muted);border-color:var(--line)}
.achievement-card.unlocked{background:linear-gradient(135deg,rgba(95,107,57,.14),rgba(255,255,255,.015));border-color:rgba(95,107,57,.34)}
.history-section-head{margin-bottom:18px}.history-section-head h2{font:400 22px 'IBM Plex Serif';margin:0 0 7px}.history-section-head p{margin:0;color:var(--muted);font-size:11px;line-height:1.6}
.history-item{min-width:0;border-radius:0}.history-copy{min-width:0;display:grid;gap:5px}.history-copy strong{overflow-wrap:anywhere;line-height:1.45}.history-type{color:#9da774!important;text-transform:uppercase;letter-spacing:.12em;font-size:8px!important}.history-copy time{color:var(--muted);font-size:9px}
.plan-item{min-width:0}.plan-item>div{min-width:0}.plan-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.plan-meta span{border:1px solid rgba(95,107,57,.28);color:#9da774;padding:4px 7px;font-size:8px;letter-spacing:.08em;text-transform:uppercase}.plan-view{flex:0 0 auto;white-space:nowrap}.planning-empty{border:1px solid var(--line);padding:30px}
.intelligence-empty{color:var(--muted);line-height:1.6;margin-bottom:16px}.summary-alert{color:#c58d79}.whatsapp-soon{opacity:.62;cursor:not-allowed!important}.inline-badge{display:inline-block;margin-left:7px;padding:3px 6px;border:1px solid rgba(204,157,59,.35);color:#cc9d3b;font-size:8px;letter-spacing:.08em}.summary-actions button{width:auto}
html[data-theme="light"] .whatsapp-status-panel,html[data-theme="light"] .history-item,html[data-theme="light"] .suggestions-list>div,html[data-theme="light"] .plan-column,html[data-theme="light"] .summary-card{background:rgba(255,253,245,.78)}
html[data-theme="light"] .soon-badge,html[data-theme="light"] .inline-badge,html[data-theme="light"] .plan-meta span,html[data-theme="light"] .achievement-badge{color:#59652f;border-color:rgba(69,82,34,.35)}
html[data-theme="light"] .history-copy strong,html[data-theme="light"] .plan-item strong,html[data-theme="light"] .suggestions-list p,html[data-theme="light"] .summary-card p,html[data-theme="light"] .summary-card li{color:#34362b}
html[data-theme="light"] .soft-btn{color:#4f5b2c;border-color:rgba(69,82,34,.35)}
@media(max-width:700px){
  .whatsapp-status-panel,.history-item,.plan-item{align-items:flex-start}
  .history-toolbar .activities-filters{display:grid;grid-template-columns:1fr 1fr}
  .plan-item{display:grid}.plan-view{justify-self:start}
  .summary-actions{display:grid}.summary-actions button{width:100%}
  .achievements-grid{gap:8px}.achievement-card{grid-template-columns:auto minmax(0,1fr)}
  .page-title{gap:18px}.page-title>.soft-btn{width:100%}
}
@media(max-width:420px){.history-toolbar .activities-filters{grid-template-columns:1fr}.whatsapp-status-panel{padding:18px}.history-item{padding:13px}.plan-column,.summary-card{padding:18px}}

/* EduMind 2026 — redesign editorial SaaS */
:root{
  --bg:#11130f;--white:#191c16;--ink:#f4f5ec;--muted:#9da393;
  --line:rgba(226,235,210,.105);--purple:#9bb56a;--purple-dark:#7f9952;
  --lav:rgba(155,181,106,.13);--shadow:0 18px 55px rgba(0,0,0,.18);
  --radius-sm:10px;--radius-md:16px;--radius-lg:24px;
}
*{scrollbar-color:#52603d transparent}
body{background:var(--bg);font-family:'Exo 2',sans-serif;letter-spacing:.005em}
body:before{opacity:.55;background:radial-gradient(circle at 78% 8%,rgba(155,181,106,.09),transparent 25%),radial-gradient(circle at 18% 72%,rgba(116,91,173,.055),transparent 24%)}
main{max-width:none}.view{max-width:1480px;margin:0 auto;padding:52px clamp(28px,4vw,68px) 76px}
h1,h2,h3{letter-spacing:-.025em}.eyebrow{color:#a9bd79;font-weight:600;letter-spacing:.16em}
.page-title,.welcome-row{align-items:flex-end;margin-bottom:34px}.page-title h1,.welcome-row h1{font-size:clamp(34px,4vw,54px);line-height:1.02;font-weight:500}.page-title p,.welcome-row>div>p:last-child{font-size:14px;line-height:1.65;color:var(--muted);max-width:680px}

/* Navigation */
.sidebar{width:264px;padding:24px 16px 18px;background:rgba(20,23,17,.96);border-right:1px solid var(--line);backdrop-filter:blur(24px)}
main{margin-left:264px;width:calc(100% - 264px)}.brand{padding:4px 12px 26px;font-size:21px}.brand-logo{width:30px;height:30px}.sidebar nav{gap:5px}
.nav-item{min-height:44px;padding:0 13px;border-radius:12px;color:#9da393;font-size:12px;transition:background .18s,color .18s,transform .18s}.nav-item span{display:grid;place-items:center;width:23px;font-size:15px}.nav-item:hover{color:#eef1e4;background:rgba(255,255,255,.045);transform:translateX(2px)}.nav-item.active{color:#f5f7ec;background:linear-gradient(90deg,rgba(155,181,106,.18),rgba(155,181,106,.07));box-shadow:inset 0 0 0 1px rgba(155,181,106,.16)}.nav-item.active:before{border-radius:99px;background:#a8c476}
.focus-card,.user-card{border-radius:16px}.focus-card{padding:16px;background:linear-gradient(145deg,rgba(155,181,106,.12),rgba(255,255,255,.025))}.user-card{padding:12px 10px}.avatar{border-radius:11px;background:#a7bf76;color:#17200f}.user-card button{border-radius:9px}
.topbar{height:76px;padding:0 clamp(28px,4vw,68px);background:rgba(17,19,15,.78);backdrop-filter:blur(24px);border-color:var(--line)}.search{max-width:480px;padding:10px 14px;border:1px solid transparent;border-radius:12px;background:rgba(255,255,255,.035);transition:.2s}.search:focus-within{border-color:rgba(155,181,106,.34);background:rgba(255,255,255,.055)}.icon-btn{border-radius:11px;background:rgba(255,255,255,.035)}

/* Shared surfaces and controls */
.panel,.stat-card,.subject-hub-card,.activity-subject-group,.profile-hero,.stat-insight-card,.productivity-card,.achievements-grid article{border:1px solid var(--line);border-radius:var(--radius-lg);background:linear-gradient(145deg,rgba(255,255,255,.034),rgba(255,255,255,.018));box-shadow:none}
.panel{padding:28px}.panel-head{margin-bottom:22px}.panel-head h2{font-size:20px;font-weight:500}.panel-head p{margin-top:5px}
.primary,.soft-btn,.danger-btn,.text-btn,.subject-view-switch button,.activities-view-switch button,.calendar-view-switch button,.activities-filters button{border-radius:11px;transition:transform .18s,background .18s,border-color .18s,color .18s,box-shadow .18s}.primary{padding:12px 18px;background:#a5bf73;color:#17200f;border:1px solid #afc87e;font-weight:600;box-shadow:0 8px 24px rgba(120,145,74,.14)}.primary:hover{background:#b4cd83;transform:translateY(-1px);box-shadow:0 11px 30px rgba(120,145,74,.2)}.soft-btn{padding:11px 16px;border-color:rgba(155,181,106,.24);color:#b5c58f;background:rgba(155,181,106,.055)}.soft-btn:hover{background:rgba(155,181,106,.12);border-color:rgba(155,181,106,.42)}.danger-btn{border-radius:11px}.text-btn{padding:7px 9px}.text-btn:hover{background:rgba(155,181,106,.09)}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid rgba(164,193,111,.25)!important;outline-offset:2px}
.tag,.activity-meta span,.plan-meta span,.achievement-badge,.soon-badge,.inline-badge,.pill{border-radius:999px!important;padding:5px 9px!important;letter-spacing:.06em!important}

/* Dashboard */
.stats-grid{gap:14px}.stat-card{min-height:132px;padding:22px}.stat-card:hover{transform:translateY(-2px);border-color:rgba(155,181,106,.22)}.stat-card strong{font-size:31px}.stat-icon{border-radius:13px}.dashboard-grid{gap:20px}.task-row{padding:17px 2px}.task-check{border-radius:7px}.activity-clickable:hover,.activity-clickable:focus-visible{border-radius:12px;background:rgba(155,181,106,.055)}
.intelligence-card{background:radial-gradient(circle at 100% 0,rgba(196,218,145,.13),transparent 32%),linear-gradient(145deg,rgba(155,181,106,.1),rgba(255,255,255,.025));border-color:rgba(155,181,106,.23)}.home-intelligence li span{border-radius:9px;background:rgba(155,181,106,.08)}
.mini-calendar .days span,.mini-calendar button{border-radius:9px}.priority-item>b{border-radius:9px}

/* Activities and filters */
.activities-panel{gap:26px}.activities-toolbar{gap:16px}.activities-search{padding:13px 15px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.025)}.activities-search:focus-within{border-color:rgba(155,181,106,.38)}
.activities-filters button,.activities-view-switch button,.subject-view-switch button,.calendar-view-switch button{padding:9px 13px;border-radius:999px}.activities-filters button.active,.activities-view-switch button.active,.subject-view-switch button.active,.calendar-view-switch button.active{background:rgba(155,181,106,.15);border-color:rgba(155,181,106,.34)}
.activities-advanced-filters select,.period-filter select,.settings-form select{border-radius:11px;background:#151812;padding:12px 14px}.activity-card{border-radius:16px;padding:19px 20px;background:rgba(255,255,255,.018)}.activity-card:hover{transform:translateY(-1px);border-color:rgba(155,181,106,.3)}.activity-progress span,.detail-progress i,.subject-hub-progress i{border-radius:99px}.activity-progress i,.detail-progress b,.subject-hub-progress b{border-radius:99px}.activity-subject-group{padding:24px}

/* Calendar */
.calendar-panel{padding:26px;overflow:hidden}.calendar-header button{border-radius:11px}.calendar-weekdays span{padding:12px}.calendar-day-cell{min-height:132px;padding:12px;background:rgba(255,255,255,.012);transition:.18s}.calendar-day-cell:hover{background:rgba(155,181,106,.055)}.calendar-day-cell.today strong{border-radius:9px;background:#9db66d}.calendar-day-cell div span,.calendar-day-item{border-radius:7px;background:rgba(255,255,255,.035)}.calendar-day-item{padding:13px 15px}

/* Subjects, statistics, profile and settings */
.subjects-hub{gap:18px}.subject-hub-card{padding:24px}.subject-hub-card:hover{transform:translateY(-2px)}.subject-icon{border-radius:13px!important}.subject-hub-stats span,.subject-detail-stats>div{border-radius:13px;background:rgba(255,255,255,.018)}
.stats-insight-grid{gap:16px}.stat-insight-card{padding:24px}.stat-insight-card strong{font-size:38px}.productivity-card{padding:30px;background:radial-gradient(circle at 90% 20%,rgba(174,203,117,.14),transparent 33%),rgba(155,181,106,.065)}.productivity-card>strong{font-size:52px}.achievements-grid{gap:12px}.achievement-card{border-radius:17px!important}.achievement-card .achievement-icon{border-radius:11px}.achievement-card .achievement-badge{border-radius:999px!important}
.profile-hero{padding:32px}.profile-avatar{border-radius:20px}.profile-grid,.settings-grid{gap:18px}.settings-grid .panel,.profile-grid .panel{min-height:100%}.settings-toggle i{border-radius:99px}.settings-toggle i:after{border-radius:50%}.pro-card{border-radius:14px}.settings-form input,.settings-form textarea{border-radius:11px}

/* WhatsApp, planning, summaries */
.whatsapp-status-panel{border-radius:20px;background:linear-gradient(135deg,rgba(155,181,106,.1),rgba(255,255,255,.025))}.history-item{border-radius:15px;padding:17px}.history-icon{border-radius:11px!important}.suggestions-list>div{border-radius:14px;background:rgba(255,255,255,.022)}.suggestions-list span{border-radius:9px}.plan-column,.summary-card{border-radius:20px}.plan-item{padding:16px 0}.plan-view{border-radius:9px}.summary-actions{gap:10px}

/* Forms and modals */
.modal-backdrop{background:rgba(4,6,3,.72);backdrop-filter:blur(14px)}.modal{border-radius:24px;padding:34px;background:#191c16;box-shadow:0 35px 100px rgba(0,0,0,.42)}.modal-close{border-radius:10px}.modal-icon{border-radius:13px}.activity-form{gap:18px}.activity-form input,.activity-form select,.activity-form textarea{border-radius:11px;padding:13px 14px;background:#141711}.detail-grid{border:0;gap:9px}.detail-grid>div{border:1px solid var(--line);border-radius:12px}.detail-description{border-radius:0 12px 12px 0;background:rgba(155,181,106,.035);padding:15px 18px}.toast{border-radius:15px;box-shadow:var(--shadow)}.toast>span{border-radius:10px}

/* Light mode */
html[data-theme="light"]{--bg:#f4f5ef;--white:#fff;--ink:#20231c;--muted:#6f7668;--line:rgba(39,50,30,.11);--purple:#718a45;--purple-dark:#5e7439;--lav:rgba(113,138,69,.1);--shadow:0 18px 45px rgba(51,61,39,.07)}
html[data-theme="light"] body{background:#f4f5ef}html[data-theme="light"] body:before{background:radial-gradient(circle at 80% 4%,rgba(138,166,85,.1),transparent 24%)}
html[data-theme="light"] .sidebar{background:rgba(248,249,244,.94)}html[data-theme="light"] .topbar{background:rgba(244,245,239,.82)}
html[data-theme="light"] .panel,html[data-theme="light"] .stat-card,html[data-theme="light"] .subject-hub-card,html[data-theme="light"] .activity-card,html[data-theme="light"] .activity-subject-group,html[data-theme="light"] .profile-hero,html[data-theme="light"] .stat-insight-card,html[data-theme="light"] .productivity-card,html[data-theme="light"] .achievements-grid article{background:rgba(255,255,255,.82);box-shadow:0 12px 34px rgba(51,61,39,.045)}
html[data-theme="light"] .search,html[data-theme="light"] .activities-search{background:rgba(255,255,255,.72)}html[data-theme="light"] .activities-advanced-filters select,html[data-theme="light"] .period-filter select,html[data-theme="light"] .settings-form select,html[data-theme="light"] .activity-form input,html[data-theme="light"] .activity-form textarea,html[data-theme="light"] .activity-form select{background:#fbfcf8}
html[data-theme="light"] .primary{background:#78924a;color:#fff;border-color:#78924a}html[data-theme="light"] .soft-btn{background:rgba(113,138,69,.06)}html[data-theme="light"] .modal{background:#fff}

/* Responsive */
@media(max-width:1100px){.view{padding:42px 28px 64px}.stats-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{gap:18px}}
@media(max-width:800px){.sidebar{width:280px;border-radius:0 22px 22px 0}.topbar{height:68px;padding:0 18px}.view{padding:34px 18px 54px}.page-title,.welcome-row{align-items:flex-start}.page-title h1,.welcome-row h1{font-size:34px}.panel{padding:22px}.stats-grid{gap:10px}.calendar-panel{padding:14px}.calendar-day-cell{min-height:94px}.activity-card,.subjects-hub.list-mode .subject-hub-card{grid-template-columns:1fr}.profile-hero{padding:24px}}
@media(max-width:560px){.stats-grid{grid-template-columns:1fr}.page-title,.welcome-row{gap:18px}.page-title>.primary,.welcome-row>.primary{width:100%}.panel{padding:19px;border-radius:18px}.stat-card{border-radius:18px}.activities-advanced-filters{gap:10px}.calendar-weekdays span{padding:8px 1px}.calendar-day-cell{min-height:78px;padding:7px}.modal{border-radius:20px 20px 0 0;padding:24px 18px;max-height:92vh;margin-top:auto}.modal-backdrop{align-items:flex-end}.detail-actions,.form-actions{display:grid;grid-template-columns:1fr}.detail-actions button,.form-actions button{width:100%!important}}

/* Responsividade universal — notebooks, tablets, iPad e celulares */
html,body{width:100%;max-width:100%;overflow-x:hidden}.app-shell,main,.view,.panel{min-width:0}.view>*{min-width:0}img,svg,video,canvas{max-width:100%;height:auto}input,select,textarea,button{max-width:100%}
.panel-head>*,.page-title>*,.welcome-row>*,.task-main,.activity-card>*,.subject-hub-card>*,.profile-hero>*{min-width:0}.task-main strong,.activity-card h3,.subject-hub-main h3,.page-title p,.welcome-row p{overflow-wrap:anywhere}

/* Notebook compacto e tablet em paisagem */
@media(max-width:1280px){
  .sidebar{width:236px}.sidebar .nav-item{padding-left:11px;padding-right:11px}.brand{padding-left:8px}
  main{margin-left:236px;width:calc(100% - 236px)}
  .topbar{padding-inline:28px}.view{padding:42px 28px 64px}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-grid{grid-template-columns:minmax(0,1fr)}
  .side-column{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.side-column>*:first-child{grid-column:1/-1}
  .subjects-hub{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stats-insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-grid,.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .achievements-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Tablet/iPad: sidebar vira drawer para preservar área útil */
@media(max-width:1024px){
  .sidebar{width:min(320px,86vw);transform:translateX(-105%);transition:transform .25s ease;box-shadow:none}.sidebar.open{transform:translateX(0);box-shadow:24px 0 70px rgba(0,0,0,.34)}
  main{margin-left:0;width:100%}.mobile-menu{display:grid;place-items:center;border:0;background:transparent;color:var(--ink);font-size:22px;min-width:40px;height:40px;border-radius:10px}.mobile-brand{display:flex}
  .topbar{padding-inline:22px}.topbar .search{width:min(36vw,360px)}
  .view{max-width:100%;padding:38px 24px 58px}
  .activities-advanced-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
  .activity-subject-group header{grid-template-columns:minmax(0,1fr) auto}.activity-subject-group header .text-btn{grid-column:1/-1;justify-self:start}
  .calendar-day-cell{min-height:105px}.calendar-day-cell div span{font-size:8px}
  .subject-soon-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .planning-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-column:last-child{grid-column:1/-1}
}

/* Tablet em retrato e celulares grandes */
@media(max-width:768px){
  .topbar{gap:10px;padding-inline:16px}.topbar .search{display:none}.header-actions{gap:7px}.header-actions .notification{display:none}.header-actions .small{padding:10px 12px}
  .view{padding:30px 16px 48px}.page-title,.welcome-row{display:grid;grid-template-columns:1fr;align-items:start;gap:18px}.page-title>button,.welcome-row>button{justify-self:start}
  .page-title h1,.welcome-row h1{font-size:clamp(30px,8vw,42px)}
  .stats-grid,.side-column,.subjects-hub,.stats-insight-grid,.profile-grid,.settings-grid,.summary-grid,.planning-grid,.suggestions-list{grid-template-columns:1fr}.side-column>*:first-child,.plan-column:last-child{grid-column:auto}
  .stat-card{min-height:112px}.activities-advanced-filters{grid-template-columns:1fr}.activities-view-switch,.subject-view-switch,.calendar-view-switch{width:100%}.activities-view-switch button,.subject-view-switch button{flex:1}
  .activity-card{grid-template-columns:1fr;gap:13px}.activity-meta{justify-content:flex-start}.activity-deadline{text-align:left}.activity-subject-group header{grid-template-columns:1fr}.activity-subject-group header .text-btn{grid-column:auto}
  .subjects-hub.list-mode .subject-hub-card{grid-template-columns:1fr}.subject-hub-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .profile-hero{display:grid;grid-template-columns:auto 1fr}.profile-hero .primary{grid-column:1/-1;margin:0;justify-self:start}.profile-avatar{width:68px;height:68px}
  .achievements-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .calendar-panel{overflow-x:auto;overscroll-behavior-inline:contain}.calendar-weekdays,.calendar-month-grid{min-width:620px}.calendar-day-cell{min-height:96px}.calendar-view-switch>span{width:100%}
  .subject-soon-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.subject-detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .modal-backdrop{padding:12px}.modal{width:min(620px,100%)}
}

/* Celulares médios e pequenos */
@media(max-width:520px){
  .topbar{height:64px}.mobile-brand span{display:none}.header-actions .small{font-size:0;width:40px;height:40px;padding:0}.header-actions .small:after{content:'＋';font-size:18px}.icon-btn{width:40px;height:40px}
  .view{padding:24px 12px 42px}.page-title,.welcome-row{margin-bottom:24px}.page-title h1,.welcome-row h1{font-size:clamp(28px,9vw,36px)}
  .panel,.activity-subject-group,.subject-hub-card{padding:18px;border-radius:17px}.panel-head{align-items:flex-start;gap:12px}.panel-head .text-btn{white-space:nowrap}
  .stats-grid{gap:9px}.stat-card{padding:18px}.stat-card strong{font-size:27px}.stat-card>b{position:static;margin-left:auto;align-self:flex-start}
  .task-row{grid-template-columns:28px minmax(0,1fr);align-items:start}.task-date{grid-column:2;text-align:left}.task-main .tag{display:inline-block;margin-top:5px}
  .activities-filters,.history-toolbar .activities-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.activities-filters button{width:100%}
  .activity-card{padding:16px}.activity-meta{gap:5px}.activity-meta span{font-size:8px}
  .activity-subject-group{padding:16px}.activity-subject-group h3{font-size:19px}
  .subject-hub-stats{gap:5px}.subject-hub-stats span{padding:9px;font-size:15px}.subject-hub-stats small{font-size:7px}
  .calendar-panel{margin-inline:-4px;padding:10px}.calendar-weekdays,.calendar-month-grid{min-width:560px}.calendar-header h2{font-size:20px}.calendar-view-switch{display:grid;grid-template-columns:repeat(3,1fr)}.calendar-view-switch>span{grid-column:1/-1}.calendar-view-switch button{padding:9px 6px;font-size:8px}
  .achievements-grid{grid-template-columns:1fr}.subject-soon-grid{grid-template-columns:1fr 1fr}
  .history-item,.plan-item,.calendar-day-item{display:grid}.plan-view{justify-self:start}.whatsapp-status-panel{display:grid}.soon-badge{justify-self:start}
  .summary-actions,.detail-actions,.form-actions{display:grid;grid-template-columns:1fr}.summary-actions button,.detail-actions button,.form-actions button{width:100%!important}
  .activity-form,.detail-grid{grid-template-columns:1fr}.form-wide{grid-column:auto}
  .modal-backdrop{align-items:end;padding:0}.modal{width:100%;max-height:94dvh;border-radius:20px 20px 0 0;padding:25px 16px calc(20px + env(safe-area-inset-bottom));overscroll-behavior:contain}.modal-close{position:sticky;float:right;top:0;z-index:2}
  .toast{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));width:auto}
}

/* Telefones muito estreitos */
@media(max-width:360px){
  .view{padding-inline:9px}.panel,.subject-hub-card,.activity-subject-group{padding:15px}.page-title h1,.welcome-row h1{font-size:27px}
  .activities-filters,.history-toolbar .activities-filters{grid-template-columns:1fr}.subject-hub-stats,.subject-detail-stats{grid-template-columns:1fr 1fr}.subject-soon-grid{grid-template-columns:1fr}
  .header-actions{gap:4px}.mobile-menu,.icon-btn,.header-actions .small{width:36px;min-width:36px;height:36px}
}

/* Telas baixas e orientação paisagem */
@media(max-height:600px) and (orientation:landscape){
  .sidebar{padding-top:14px}.sidebar>.brand{padding-bottom:12px}.nav-item{min-height:36px}.focus-card{display:none}.user-card{padding-top:8px}
  .topbar{height:58px}.view{padding-top:24px}.modal{max-height:96dvh}
}

/* =========================================================
   EDUMIND COBALT — linguagem visual inspirada na referência
   ========================================================= */
:root{
  --bg:#151515;--white:#1d1d1d;--ink:#f4f4f2;--muted:#aaa9a5;
  --line:rgba(255,255,255,.105);--purple:#2057f5;--purple-dark:#1647da;
  --lav:rgba(32,87,245,.14);--coral:#ff725e;--mint:#55d6a8;--amber:#ffc44f;
  --shadow:none;--radius-sm:7px;--radius-md:10px;--radius-lg:14px;
}
html{background:var(--bg)}body{background:#151515;color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-weight:400}
body:before{opacity:1;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:46px 46px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.72),transparent 88%)}
h1,h2,h3,.brand,.stat-card strong,.productivity-card>strong,.profile-avatar{font-family:Arial,Helvetica,sans-serif!important}.eyebrow{font-family:'Courier New',monospace;color:#7898ff;font-weight:700;letter-spacing:.17em}

/* estrutura escura, limpa e geométrica */
.sidebar{background:#171717;border-right-color:rgba(255,255,255,.1);border-radius:0!important;padding:20px 13px}.sidebar:before{content:'';position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:36px 36px;pointer-events:none;mask-image:linear-gradient(to bottom,#000,transparent 65%)}.sidebar>*{position:relative}
.brand{font-size:21px!important;font-weight:800!important;letter-spacing:-.04em;padding:4px 10px 22px}.brand-logo{filter:invert(1);opacity:1}.nav-item{border-radius:8px;color:#a7a7a4;font-family:Arial,Helvetica,sans-serif;font-size:12px;font-weight:700;letter-spacing:-.01em}.nav-item:hover{color:#fff;background:#242424;transform:none}.nav-item.active{color:#fff;background:#2555e9;box-shadow:none}.nav-item.active:before{display:none}.nav-item span{color:inherit}.focus-card{background:#202020;border:1px solid rgba(255,255,255,.09);border-radius:9px}.focus-card>span,.focus-card i{color:#6f92ff;background:#2b5ef6}.user-card{border-radius:9px;border-color:rgba(255,255,255,.1);background:#191919}.avatar{border-radius:7px;background:#fff;color:#171717;font-weight:800}
.topbar{height:72px;background:rgba(21,21,21,.92);border-top:4px solid #2057f5;border-bottom-color:rgba(255,255,255,.1);backdrop-filter:blur(18px)}.topbar:after{content:'';position:absolute;left:0;right:0;top:0;height:1px;background:#4d79ff}.search{border:1px solid rgba(255,255,255,.1);border-radius:8px;background:#202020;color:#7898ff}.search:focus-within{background:#242424;border-color:#3566f7}.search input{font-family:Arial,Helvetica,sans-serif}.icon-btn{border-radius:8px;background:#232323;color:#e8e8e5}.icon-btn:hover{background:#2b2b2b}
.view{padding-top:48px}.page-title h1,.welcome-row h1{font-size:clamp(38px,4.4vw,64px);line-height:.94;font-weight:850;letter-spacing:-.065em}.page-title p,.welcome-row>div>p:last-child{color:#aaa9a5;font-size:15px;max-width:640px}.welcome-row span{display:inline-block}

/* botões e pills */
.primary{border-radius:8px;background:#f2f2f0;color:#171717;border-color:#f2f2f0;font-family:Arial,Helvetica,sans-serif;font-weight:800;box-shadow:none}.primary:hover{background:#fff;border-color:#fff;box-shadow:none;transform:translateY(-1px)}.primary.small{background:#2457ed;color:#fff;border-color:#2457ed}.primary.small:hover{background:#3467fa}.soft-btn,.text-btn{border-radius:8px;background:#242424;border:1px solid rgba(255,255,255,.12);color:#f0f0ed;font-family:Arial,Helvetica,sans-serif;font-weight:700}.soft-btn:hover,.text-btn:hover{background:#2c2c2c;border-color:rgba(255,255,255,.22)}.danger-btn{border-radius:8px;background:#291b19}.activities-filters button,.activities-view-switch button,.subject-view-switch button,.calendar-view-switch button{border-radius:8px!important;background:#222;border-color:rgba(255,255,255,.1);color:#bdbdb8;font-family:Arial,Helvetica,sans-serif;font-weight:700}.activities-filters button:hover,.activities-filters button.active,.activities-view-switch button.active,.subject-view-switch button.active,.calendar-view-switch button.active{background:#2a58e8;border-color:#2a58e8;color:#fff}
.tag,.activity-meta span,.plan-meta span,.achievement-badge,.soon-badge,.inline-badge,.pill{border-radius:6px!important;font-family:'Courier New',monospace!important;font-weight:700!important}.tag{background:rgba(255,114,94,.12);color:#ff8d7d}.soon-badge,.inline-badge{color:#83a0ff;border-color:rgba(72,112,255,.45);background:rgba(32,87,245,.1)}

/* superfícies */
.panel,.stat-card,.subject-hub-card,.activity-subject-group,.profile-hero,.stat-insight-card,.productivity-card,.achievements-grid article{border-radius:10px;background:#1d1d1d;border:1px solid rgba(255,255,255,.1);box-shadow:none}.panel{padding:26px}.panel:hover{border-color:rgba(255,255,255,.15)}.panel-head h2,.panel h2{font-weight:800;letter-spacing:-.035em}.panel-head p{color:#969692}
.stats-grid{gap:10px;background:transparent;border:0}.stat-card{min-height:138px;padding:20px;align-items:flex-start}.stat-card:before{display:none}.stat-card:hover{transform:none;border-color:rgba(255,255,255,.22)}.stat-card:nth-child(1){background:linear-gradient(145deg,#2458ef,#1643c8);border-color:#3768f4}.stat-card:nth-child(1) span,.stat-card:nth-child(1) small,.stat-card:nth-child(1)>b{color:#dbe4ff}.stat-card:nth-child(1) strong{color:#fff}.stat-card:nth-child(2){background:#1d1d1d}.stat-card:nth-child(3){background:#1b211f}.stat-card:nth-child(4){background:#211f19}.stat-icon{border-radius:7px;border-color:rgba(255,255,255,.15);background:rgba(255,255,255,.07)!important;color:#fff!important}.stat-card span{font-family:'Courier New',monospace;letter-spacing:.13em}.stat-card strong{font-size:32px;font-weight:850;letter-spacing:-.055em}.stat-card>b{border-radius:6px;background:rgba(255,255,255,.06)}
.dashboard-grid{gap:16px}.intelligence-card{background:#1d1d1d;border-color:rgba(255,255,255,.1);position:relative;overflow:hidden}.intelligence-card:before{content:'';position:absolute;right:-42px;top:-42px;width:150px;height:150px;background:#2057f5;border-radius:28px;transform:rotate(20deg);opacity:.18}.intelligence-card>*{position:relative}.home-intelligence li span{border-radius:7px;background:#222a42;border-color:#335bd0;color:#86a1ff}.task-row{border-color:rgba(255,255,255,.08)}.task-check{border-radius:5px;background:#181818}.task-main strong{font-weight:750}.mini-calendar .days .today{background:#2057f5}.priority-item>b{border-radius:6px;background:#222a42;color:#83a0ff}

/* atividades */
.activities-search{border-radius:8px;background:#1d1d1d;border-color:rgba(255,255,255,.1)}.activities-search input{font-family:Arial,Helvetica,sans-serif}.activities-advanced-filters select,.period-filter select,.settings-form select{border-radius:8px;background:#1d1d1d;color:#eee;border-color:rgba(255,255,255,.12);font-family:Arial,Helvetica,sans-serif}.activity-card{border-radius:9px;background:#1b1b1b;border-color:rgba(255,255,255,.09)}.activity-card:hover{background:#202020;border-color:rgba(67,107,255,.5);transform:none}.activity-card h3{font-family:Arial,Helvetica,sans-serif;font-weight:800;letter-spacing:-.025em}.activity-progress span,.detail-progress i,.subject-hub-progress i{border-radius:3px;background:#292929}.activity-progress i,.detail-progress b,.subject-hub-progress b{border-radius:3px;background:#2b5ff3}.activity-subject-group{border-radius:10px;background:#191919}.activity-subject-group h3{font-family:Arial,Helvetica,sans-serif;font-weight:850}

/* calendário */
.calendar-panel{border-radius:10px;background:#1a1a1a}.calendar-header button{border-radius:7px;background:#222}.calendar-header h2{font-family:Arial,Helvetica,sans-serif;font-weight:850;letter-spacing:-.04em}.calendar-weekdays span{font-family:'Courier New',monospace;color:#999}.calendar-day-cell{background:#191919;border-color:rgba(255,255,255,.08)}.calendar-day-cell:hover{background:#222}.calendar-day-cell.today strong{border-radius:5px;background:#2057f5}.calendar-day-cell div span,.calendar-day-item{border-radius:5px;background:#242424}.calendar-event-prova,.calendar-day-item.calendar-event-prova{border-color:#3d70ff}.calendar-event-trabalho,.calendar-day-item.calendar-event-trabalho{border-color:#51d3a4}.calendar-event-seminario,.calendar-day-item.calendar-event-seminario{border-color:#ffd15f}.calendar-event-apresentacao,.calendar-day-item.calendar-event-apresentacao{border-color:#b17cff}.calendar-event-entrega,.calendar-day-item.calendar-event-entrega{border-color:#ff8a59}

/* disciplinas, estatísticas e gamificação */
.subject-hub-card{border-radius:10px;background:#1c1c1c}.subject-hub-card:hover{background:#202020;border-color:#3b67e8;transform:none}.subject-icon{border-radius:7px!important;background:#2457ed!important}.subject-hub-main h3{font-family:Arial,Helvetica,sans-serif;font-weight:850}.subject-hub-stats span,.subject-detail-stats>div{border-radius:7px;background:#181818}.stat-insight-card{border-radius:9px}.stat-insight-card:nth-child(2),.stat-insight-card:nth-child(6){border-color:rgba(49,91,231,.45)}.stat-insight-card strong{font-family:Arial,Helvetica,sans-serif!important;font-size:42px;font-weight:850;letter-spacing:-.06em}.productivity-card{border-radius:10px;background:linear-gradient(135deg,#2558eb,#153fc0);border-color:#3768f4}.productivity-card p,.productivity-card h3,.productivity-card>strong{color:#fff}.productivity-card>strong{font-size:64px;font-weight:900}.achievement-card{border-radius:8px!important}.achievement-card.unlocked{background:#222a42;border-color:#315cd8}.achievement-card .achievement-icon{border-radius:6px;background:#222}.achievement-card .achievement-badge{border-radius:5px!important}

/* perfil, configurações e inteligência */
.profile-hero{border-radius:10px;background:#1d1d1d}.profile-avatar{border-radius:8px;background:#2457ed;border-color:#3768f4;color:#fff;font-weight:900}.profile-hero h1{font-weight:900;letter-spacing:-.055em}.settings-toggle i{background:#292929}.settings-toggle input:checked+i{background:#2457ed}.pro-card{border-radius:8px;background:#222a42;border-color:#315cd8}.whatsapp-status-panel{border-radius:10px;background:#1d1d1d}.history-item,.suggestions-list>div{border-radius:8px;background:#191919}.history-icon,.suggestions-list span{border-radius:6px!important;background:#222a42;color:#83a0ff}.plan-column,.summary-card{border-radius:10px}.plan-meta span{background:#222a42;color:#95abff}.summary-alert{color:#ff8d7d}

/* modais e formulários */
.modal-backdrop{background:rgba(0,0,0,.76);backdrop-filter:blur(10px)}.modal{border-radius:12px;background:#1c1c1c;border-color:rgba(255,255,255,.14);box-shadow:0 34px 100px rgba(0,0,0,.55)}.modal h2{font-family:Arial,Helvetica,sans-serif;font-weight:900;letter-spacing:-.045em}.modal-close,.modal-icon{border-radius:7px;background:#242424}.activity-form input,.activity-form select,.activity-form textarea{border-radius:7px;background:#171717;color:#eee;border-color:rgba(255,255,255,.12);font-family:Arial,Helvetica,sans-serif}.activity-form input:focus,.activity-form select:focus,.activity-form textarea:focus{border-color:#386bf7}.detail-grid>div{border-radius:7px;background:#191919}.detail-description{background:#191d2b;border-color:#3563e4}.toast{border-radius:8px;background:#f1f1ef;color:#171717}.toast>span{border-radius:6px;background:#2057f5;color:#fff}

/* light mode cobalt */
html[data-theme="light"]{--bg:#f3f3f1;--white:#fff;--ink:#171717;--muted:#6c6c69;--line:rgba(20,20,20,.12);--purple:#2057f5;--purple-dark:#1647da;--lav:rgba(32,87,245,.1)}
html[data-theme="light"] body{background:#f3f3f1;color:#171717}html[data-theme="light"] body:before{background-image:linear-gradient(rgba(0,0,0,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(0,0,0,.045) 1px,transparent 1px)}
html[data-theme="light"] .sidebar{background:#f7f7f5}html[data-theme="light"] .brand-logo{filter:none}html[data-theme="light"] .nav-item{color:#666}html[data-theme="light"] .nav-item:hover{background:#e9e9e6;color:#171717}html[data-theme="light"] .nav-item.active{background:#2057f5;color:#fff}
html[data-theme="light"] .topbar{background:rgba(243,243,241,.92)}html[data-theme="light"] .search,html[data-theme="light"] .icon-btn{background:#fff;color:#171717}
html[data-theme="light"] .panel,html[data-theme="light"] .stat-card:not(:first-child),html[data-theme="light"] .subject-hub-card,html[data-theme="light"] .activity-card,html[data-theme="light"] .activity-subject-group,html[data-theme="light"] .profile-hero,html[data-theme="light"] .stat-insight-card,html[data-theme="light"] .achievements-grid article,html[data-theme="light"] .whatsapp-status-panel,html[data-theme="light"] .history-item,html[data-theme="light"] .suggestions-list>div,html[data-theme="light"] .plan-column,html[data-theme="light"] .summary-card{background:#fff;border-color:rgba(20,20,20,.11);box-shadow:none}
html[data-theme="light"] .activities-search,html[data-theme="light"] .activities-advanced-filters select,html[data-theme="light"] .period-filter select,html[data-theme="light"] .settings-form select,html[data-theme="light"] .activity-form input,html[data-theme="light"] .activity-form select,html[data-theme="light"] .activity-form textarea{background:#fff;color:#171717}html[data-theme="light"] .calendar-day-cell{background:#fff;color:#171717}html[data-theme="light"] .calendar-day-cell:hover{background:#f0f2f8}html[data-theme="light"] .modal{background:#fff}html[data-theme="light"] .detail-grid>div{background:#f6f6f4}
html[data-theme="light"] .primary{background:#171717;color:#fff;border-color:#171717}html[data-theme="light"] .primary.small{background:#2057f5;border-color:#2057f5}html[data-theme="light"] .soft-btn,html[data-theme="light"] .text-btn,html[data-theme="light"] .activities-filters button,html[data-theme="light"] .activities-view-switch button,html[data-theme="light"] .subject-view-switch button,html[data-theme="light"] .calendar-view-switch button{background:#fff;color:#313131;border-color:rgba(20,20,20,.14)}html[data-theme="light"] .activities-filters button.active,html[data-theme="light"] .activities-view-switch button.active,html[data-theme="light"] .subject-view-switch button.active,html[data-theme="light"] .calendar-view-switch button.active{background:#2057f5;color:#fff;border-color:#2057f5}

/* cobalt em todos os breakpoints existentes */
@media(max-width:1024px){.sidebar{background:#171717}html[data-theme="light"] .sidebar{background:#f7f7f5}.mobile-menu{color:var(--ink)}}
@media(max-width:520px){.panel{border-radius:9px}.stat-card{border-radius:9px}.modal{border-radius:12px 12px 0 0}.page-title h1,.welcome-row h1{letter-spacing:-.055em}.calendar-panel{border-radius:8px}}

/* =========================================================
   EDUMIND LIME — identidade orgânica, jovem e tecnológica
   ========================================================= */
:root{
  --bg:#181918;--white:#232423;--ink:#f4f5ef;--muted:#aaaDA6;
  --line:rgba(255,255,255,.105);--purple:#b6ff4d;--purple-dark:#9ee63c;
  --lav:rgba(182,255,77,.12);--coral:#ff8378;--mint:#b6ff4d;--amber:#ffd768;
  --shadow:0 18px 50px rgba(0,0,0,.16);--radius-sm:14px;--radius-md:22px;--radius-lg:32px;
}
body{background:#181918;color:var(--ink);font-family:'Exo 2',Arial,sans-serif;font-weight:400}
body:before{opacity:.48;background:radial-gradient(circle at 82% 8%,rgba(182,255,77,.075),transparent 22%),radial-gradient(circle at 15% 78%,rgba(182,255,77,.04),transparent 18%);mask-image:none}
h1,h2,h3,.brand,.stat-card strong,.productivity-card>strong,.profile-avatar{font-family:'Exo 2',Arial,sans-serif!important}.eyebrow{font-family:'Exo 2',Arial,sans-serif;color:#b6ff4d;font-weight:600;letter-spacing:.14em}

/* sidebar e ícones lineares sem dependências */
.sidebar{background:#111211;border-right:1px solid rgba(255,255,255,.075);padding:22px 14px;border-radius:0!important}.sidebar:before{display:none}.brand{font-weight:600!important;letter-spacing:-.025em}.nav-item{min-height:48px;border-radius:15px;color:#a7aaa3;font-family:'Exo 2',Arial,sans-serif;font-weight:500;font-size:12px;gap:11px}.nav-item span{width:30px;height:30px;border:1px solid rgba(255,255,255,.13);border-radius:50%;font-size:0;display:grid;place-items:center}.nav-item span:before{font-size:14px;font-weight:300;line-height:1}.nav-item[data-view="home"] span:before{content:'⌂'}.nav-item[data-view="activities"] span:before{content:'✓'}.nav-item[data-view="calendar"] span:before{content:'□'}.nav-item[data-view="subjects"] span:before{content:'▤'}.nav-item[data-view="statistics"] span:before{content:'⌁'}.nav-item[data-view="whatsapp"] span:before{content:'○'}.nav-item[data-view="planning"] span:before{content:'↗'}.nav-item[data-view="summaries"] span:before{content:'≡'}.nav-item[data-view="profile"] span:before{content:'◯'}.nav-item[data-view="settings"] span:before{content:'⚙'}
.nav-item:hover{background:#202120;color:#fff}.nav-item:hover span{border-color:#b6ff4d;color:#b6ff4d}.nav-item.active{background:#b6ff4d;color:#111;border-radius:16px}.nav-item.active span{background:#111;color:#b6ff4d;border-color:#111}.focus-card{border-radius:22px;background:#202120;border-color:rgba(255,255,255,.1)}.focus-card>span{color:#b6ff4d}.focus-card i{background:#b6ff4d}.user-card{border-radius:19px;background:#1e1f1e;padding:11px}.avatar{border-radius:50%;background:#b6ff4d;color:#121312}

/* topbar flutuante */
.topbar{height:78px;background:rgba(24,25,24,.88);border-top:0;border-bottom:1px solid rgba(255,255,255,.075);backdrop-filter:blur(22px)}.topbar:after{display:none}.search{height:45px;border-radius:999px;background:#f3f4ef;color:#161716;border:0;padding-inline:18px}.search input{color:#161716!important;font-family:'Exo 2',Arial,sans-serif}.search input::placeholder{color:#747772}.icon-btn,.mobile-menu{border-radius:50%;background:#242524;border:1px solid rgba(255,255,255,.12);color:#f4f5ef}.icon-btn:hover,.mobile-menu:hover{border-color:#b6ff4d;color:#b6ff4d;background:#292a29}
.page-title h1,.welcome-row h1{font-size:clamp(38px,4.1vw,58px);font-weight:500;letter-spacing:-.052em;line-height:1}.page-title p,.welcome-row>div>p:last-child{color:#a8aaa5}

/* botões e pills */
.primary,.primary.small{border-radius:999px;background:#b6ff4d;color:#101210;border-color:#b6ff4d;font-family:'Exo 2',Arial,sans-serif;font-weight:600;box-shadow:none;padding-inline:20px}.primary:hover,.primary.small:hover{background:#c4ff70;border-color:#c4ff70;color:#101210;transform:translateY(-1px)}.soft-btn,.text-btn{border-radius:999px;background:#292a29;border:1px solid rgba(255,255,255,.12);color:#eceee8;font-family:'Exo 2',Arial,sans-serif;font-weight:500}.soft-btn:hover,.text-btn:hover{background:#323332;border-color:#b6ff4d;color:#b6ff4d}.danger-btn{border-radius:999px}.activities-filters button,.activities-view-switch button,.subject-view-switch button,.calendar-view-switch button{border-radius:999px!important;background:#222322;border-color:rgba(255,255,255,.11);color:#c0c2bc;font-family:'Exo 2',Arial,sans-serif;font-weight:400}.activities-filters button:hover,.activities-filters button.active,.activities-view-switch button.active,.subject-view-switch button.active,.calendar-view-switch button.active{background:#b6ff4d;border-color:#b6ff4d;color:#111}
.tag,.activity-meta span,.plan-meta span,.achievement-badge,.soon-badge,.inline-badge,.pill{border-radius:999px!important;font-family:'Exo 2',Arial,sans-serif!important}.tag{background:rgba(182,255,77,.1);color:#b6ff4d}.soon-badge,.inline-badge{background:rgba(182,255,77,.09);border-color:rgba(182,255,77,.38);color:#b6ff4d}

/* cards orgânicos */
.panel,.stat-card,.subject-hub-card,.activity-subject-group,.profile-hero,.stat-insight-card,.productivity-card,.achievements-grid article{background:#232423;border:1px solid rgba(255,255,255,.09);border-radius:30px;box-shadow:none}.panel{padding:28px}.panel-head h2,.panel h2{font-weight:500;letter-spacing:-.035em}.panel:hover{border-color:rgba(255,255,255,.15)}
.stats-grid{gap:12px}.stat-card{min-height:145px;border-radius:30px;padding:23px;align-items:flex-start}.stat-card:nth-child(1){background:#b6ff4d;border-color:#b6ff4d;color:#111;border-radius:30px 30px 30px 12px}.stat-card:nth-child(1) span,.stat-card:nth-child(1) small,.stat-card:nth-child(1)>b,.stat-card:nth-child(1) strong{color:#111}.stat-card:nth-child(1) .stat-icon{border-color:rgba(0,0,0,.16);color:#111!important;background:rgba(255,255,255,.18)!important}.stat-card:nth-child(2),.stat-card:nth-child(3),.stat-card:nth-child(4){background:#2a2b2a}.stat-card:nth-child(2){border-radius:30px 12px 30px 30px}.stat-card:nth-child(3){border-radius:12px 30px 30px 30px}.stat-card:nth-child(4){border-radius:30px 30px 12px 30px}.stat-icon{border-radius:50%;width:42px;height:42px}.stat-card strong{font-weight:500;font-size:33px}.stat-card span{font-family:'Exo 2',Arial,sans-serif}.stat-card>b{border-radius:999px;background:rgba(255,255,255,.06)}
.dashboard-grid{gap:18px}.intelligence-card{background:#b6ff4d;color:#111;border-color:#b6ff4d;border-radius:34px 34px 12px 34px}.intelligence-card:before{display:none}.intelligence-card h2,.intelligence-card p,.intelligence-card strong{color:#111}.intelligence-card .panel-head p{color:rgba(0,0,0,.58)}.home-intelligence li span{border-radius:50%;background:transparent;border-color:rgba(0,0,0,.22);color:#111}.intelligence-card .soft-btn{background:#111;color:#fff;border-color:#111}.intelligence-card .soft-btn:hover{background:#292a29;color:#b6ff4d}.task-check{border-radius:50%}.task-row{border-color:rgba(255,255,255,.075)}.mini-calendar .days .today{border-radius:50%;background:#b6ff4d;color:#111}.priority-item>b{border-radius:50%;background:transparent;border-color:rgba(182,255,77,.32);color:#b6ff4d}

/* atividades */
.activities-search{height:48px;border-radius:999px;background:#232423;border-color:rgba(255,255,255,.1);padding-inline:18px}.activities-search input{font-family:'Exo 2',Arial,sans-serif}.activities-advanced-filters select,.period-filter select,.settings-form select{border-radius:999px;background:#232423;color:#f3f4ef;border-color:rgba(255,255,255,.12);font-family:'Exo 2',Arial,sans-serif;padding-inline:16px}.activity-card{border-radius:26px;background:#252625;border-color:rgba(255,255,255,.08);padding:21px}.activity-card:nth-child(3n+1){border-radius:26px 26px 26px 10px}.activity-card:hover{background:#2c2d2c;border-color:rgba(182,255,77,.42)}.activity-card h3{font-family:'Exo 2',Arial,sans-serif;font-weight:500}.activity-progress span,.detail-progress i,.subject-hub-progress i{border-radius:999px;background:#383938}.activity-progress i,.detail-progress b,.subject-hub-progress b{border-radius:999px;background:#b6ff4d}.activity-subject-group{border-radius:34px;padding:25px}.activity-subject-group h3{font-family:'Exo 2',Arial,sans-serif;font-weight:500}

/* calendário */
.calendar-panel{border-radius:34px;background:#212221}.calendar-header button{width:42px;height:42px;border-radius:50%;background:#292a29}.calendar-header button:hover{border-color:#b6ff4d;color:#b6ff4d}.calendar-header h2{font-family:'Exo 2',Arial,sans-serif;font-weight:500}.calendar-weekdays span{font-family:'Exo 2',Arial,sans-serif}.calendar-day-cell{background:#242524;border:6px solid #212221;border-radius:18px;min-height:128px}.calendar-day-cell:hover{background:#2b2c2b}.calendar-day-cell.today{box-shadow:inset 0 0 0 1px #b6ff4d}.calendar-day-cell.today strong{border-radius:50%;background:#b6ff4d;color:#111}.calendar-day-cell div span,.calendar-day-item{border-radius:999px;background:#333433}.calendar-event-prova,.calendar-day-item.calendar-event-prova{border-color:#b6ff4d}.calendar-day-item{border-radius:20px;padding:14px 16px}

/* disciplinas e estatísticas */
.subject-hub-card{border-radius:34px;background:#272827;padding:25px}.subject-hub-card:nth-child(3n+1){border-radius:34px 34px 12px 34px}.subject-hub-card:hover{background:#2e2f2e;border-color:rgba(182,255,77,.42)}.subject-icon{border-radius:50%!important;background:transparent!important;border:1px solid rgba(182,255,77,.4);color:#b6ff4d!important}.subject-hub-main h3{font-family:'Exo 2',Arial,sans-serif;font-weight:500}.subject-hub-stats span,.subject-detail-stats>div{border-radius:18px;background:#202120}.stat-insight-card{border-radius:28px}.stat-insight-card strong{font-family:'Exo 2',Arial,sans-serif!important;font-weight:500}.productivity-card{background:#b6ff4d;border-color:#b6ff4d;color:#111;border-radius:36px 36px 12px 36px}.productivity-card p,.productivity-card h3,.productivity-card>strong{color:#111}.productivity-card>strong{font-weight:500}.achievement-card{border-radius:26px!important}.achievement-card.unlocked{background:#b6ff4d;border-color:#b6ff4d;color:#111}.achievement-card.unlocked strong,.achievement-card.unlocked small{color:#111}.achievement-card .achievement-icon{border-radius:50%}.achievement-card .achievement-badge{border-radius:999px!important}

/* perfil, configurações, WhatsApp e planejamento */
.profile-hero{border-radius:36px 36px 12px 36px}.profile-avatar{border-radius:50%;background:#b6ff4d;color:#111;border-color:#b6ff4d;font-weight:500}.profile-hero h1{font-weight:500}.settings-toggle i{background:#393a39}.settings-toggle input:checked+i{background:#b6ff4d}.settings-toggle input:checked+i:after{background:#111}.pro-card{border-radius:22px;background:rgba(182,255,77,.08);border-color:rgba(182,255,77,.28)}.whatsapp-status-panel{border-radius:34px 34px 12px 34px}.history-item,.suggestions-list>div{border-radius:24px;background:#272827}.history-icon,.suggestions-list span{border-radius:50%!important;background:transparent;border-color:rgba(182,255,77,.35);color:#b6ff4d}.plan-column,.summary-card{border-radius:34px}.plan-column:nth-child(2){border-radius:34px 12px 34px 34px}.plan-meta span{background:rgba(182,255,77,.09);color:#b6ff4d}.summary-alert{color:#ff9b91}

/* modais e formulários */
.modal-backdrop{background:rgba(0,0,0,.7);backdrop-filter:blur(14px)}.modal{border-radius:34px;background:#242524;border-color:rgba(255,255,255,.12);box-shadow:0 35px 100px rgba(0,0,0,.46);padding:34px}.modal h2{font-family:'Exo 2',Arial,sans-serif;font-weight:500}.modal-close,.modal-icon{border-radius:50%;background:#303130}.modal-icon{border-color:rgba(182,255,77,.32);color:#b6ff4d}.activity-form input,.activity-form select,.activity-form textarea{border-radius:18px;background:#1d1e1d;color:#f3f4ef;border-color:rgba(255,255,255,.11);font-family:'Exo 2',Arial,sans-serif;padding:14px}.activity-form input:focus,.activity-form select:focus,.activity-form textarea:focus{border-color:#b6ff4d}.detail-grid>div{border-radius:20px;background:#202120}.detail-description{border-radius:0 22px 22px 0;background:rgba(182,255,77,.055);border-color:#b6ff4d}.toast{border-radius:999px;background:#f2f3ee;color:#111}.toast>span{border-radius:50%;background:#b6ff4d;color:#111}

/* light mode com a mesma personalidade */
html[data-theme="light"]{--bg:#efefec;--white:#fff;--ink:#151615;--muted:#686b65;--line:rgba(20,22,18,.11);--purple:#a8f542;--purple-dark:#92db32;--lav:rgba(168,245,66,.13)}
html[data-theme="light"] body{background:#efefec;color:#151615}html[data-theme="light"] body:before{background:radial-gradient(circle at 82% 8%,rgba(168,245,66,.12),transparent 23%)}
html[data-theme="light"] .sidebar{background:#f7f7f4}html[data-theme="light"] .nav-item{color:#666963}html[data-theme="light"] .nav-item span{border-color:rgba(0,0,0,.14)}html[data-theme="light"] .nav-item:hover{background:#e7e8e3;color:#151615}html[data-theme="light"] .nav-item.active{background:#b6ff4d;color:#111}html[data-theme="light"] .topbar{background:rgba(239,239,236,.9)}
html[data-theme="light"] .panel,html[data-theme="light"] .stat-card:not(:first-child),html[data-theme="light"] .subject-hub-card,html[data-theme="light"] .activity-card,html[data-theme="light"] .activity-subject-group,html[data-theme="light"] .profile-hero,html[data-theme="light"] .stat-insight-card,html[data-theme="light"] .achievements-grid article:not(.unlocked),html[data-theme="light"] .whatsapp-status-panel,html[data-theme="light"] .history-item,html[data-theme="light"] .suggestions-list>div,html[data-theme="light"] .plan-column,html[data-theme="light"] .summary-card{background:#fff;border-color:rgba(20,22,18,.1)}
html[data-theme="light"] .activities-search,html[data-theme="light"] .activities-advanced-filters select,html[data-theme="light"] .period-filter select,html[data-theme="light"] .settings-form select,html[data-theme="light"] .activity-form input,html[data-theme="light"] .activity-form select,html[data-theme="light"] .activity-form textarea{background:#fff;color:#151615}html[data-theme="light"] .calendar-panel{background:#e7e8e3}html[data-theme="light"] .calendar-day-cell{background:#fff;border-color:#e7e8e3;color:#151615}html[data-theme="light"] .calendar-day-cell:hover{background:#f5ffe8}html[data-theme="light"] .modal{background:#fff}html[data-theme="light"] .detail-grid>div{background:#f4f5f0}
html[data-theme="light"] .primary,html[data-theme="light"] .primary.small{background:#b6ff4d;color:#111;border-color:#b6ff4d}html[data-theme="light"] .soft-btn,html[data-theme="light"] .text-btn,html[data-theme="light"] .activities-filters button,html[data-theme="light"] .activities-view-switch button,html[data-theme="light"] .subject-view-switch button,html[data-theme="light"] .calendar-view-switch button{background:#fff;color:#30332e;border-color:rgba(0,0,0,.13)}html[data-theme="light"] .activities-filters button.active,html[data-theme="light"] .activities-view-switch button.active,html[data-theme="light"] .subject-view-switch button.active,html[data-theme="light"] .calendar-view-switch button.active{background:#b6ff4d;color:#111;border-color:#b6ff4d}

/* mantém a linguagem orgânica nos tamanhos menores */
@media(max-width:1024px){.sidebar{background:#111211}html[data-theme="light"] .sidebar{background:#f7f7f4}}
@media(max-width:520px){.panel,.stat-card,.subject-hub-card,.activity-subject-group{border-radius:24px}.stat-card:nth-child(1),.intelligence-card,.productivity-card,.profile-hero,.whatsapp-status-panel{border-radius:26px 26px 10px 26px}.modal{border-radius:30px 30px 0 0}.calendar-panel{border-radius:26px}}

/* Ajustes visuais solicitados — junho 2026 */

/* 1 e 4: ícones perfeitamente centralizados */
.nav-item{align-items:center}.nav-item span{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;line-height:1!important;overflow:hidden}.nav-item span:before{display:block;line-height:1!important;transform:none!important;text-align:center}
.stat-icon,.modal-icon,.history-icon,.achievement-icon,.subject-icon,.home-intelligence li span{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;padding:0!important}
.intelligence-card .panel-head>span{display:grid;place-items:center;align-self:center;width:30px;height:30px;border:1px solid rgba(0,0,0,.18);border-radius:50%;color:#111;line-height:1}

/* 3: contraste correto no EduMind Hoje */
.intelligence-card,.intelligence-card h2,.intelligence-card h3,.intelligence-card p,.intelligence-card li,.intelligence-card li p,.intelligence-card strong,.intelligence-card small,.intelligence-card em,.intelligence-card .eyebrow{color:#111!important}.intelligence-card .panel-head p{color:rgba(0,0,0,.62)!important}.intelligence-card .home-intelligence li span{color:#111!important;border-color:rgba(0,0,0,.24)!important}

/* 5: sidebar rolável e ícones mais compactos */
.sidebar{overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:rgba(182,255,77,.35) transparent}.sidebar nav{flex:0 0 auto}.nav-item{min-height:43px;margin:2px 0}.nav-item span{width:27px!important;height:27px!important;flex:0 0 27px!important}.nav-item span:before{font-size:12px!important}.sidebar-bottom{margin-top:22px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.focus-card{flex-shrink:0}.user-card{flex-shrink:0}

/* 6: assinatura completa no cabeçalho mobile */
.mobile-brand{gap:9px}.mobile-brand span{display:inline!important;font-family:'Exo 2',Arial,sans-serif;font-size:16px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}.mobile-brand img{flex:0 0 27px}

/* 7: calendário sempre cabe na largura disponível */
@media(max-width:768px){
  .calendar-panel{overflow-x:hidden!important;width:100%;padding:12px!important}
  .calendar-weekdays,.calendar-month-grid{width:100%!important;min-width:0!important;grid-template-columns:repeat(7,minmax(0,1fr))!important}
  .calendar-weekdays span{min-width:0;padding:8px 1px!important;font-size:clamp(6px,1.45vw,9px)!important;overflow:hidden}
  .calendar-day-cell{min-width:0!important;min-height:clamp(70px,13vw,104px)!important;padding:6px!important;border-width:3px!important;border-radius:12px!important;gap:3px!important;overflow:hidden}
  .calendar-day-cell strong{font-size:clamp(10px,2.2vw,13px)!important}
  .calendar-day-cell em{font-size:0!important;position:relative;height:7px;margin-top:2px}
  .calendar-day-cell em:after{content:'';display:block;width:5px;height:5px;border-radius:50%;background:#b6ff4d}
  .calendar-day-cell div{display:flex!important;gap:2px!important;align-items:center;margin-top:auto!important;overflow:hidden}
  .calendar-day-cell div span{display:block!important;width:5px!important;min-width:5px!important;height:5px!important;border:0!important;border-radius:50%!important;padding:0!important;font-size:0!important;background:#b6ff4d!important}
}
@media(max-width:420px){
  .calendar-panel{padding:7px!important}
  .calendar-header{padding:8px 3px 12px}.calendar-header h2{font-size:17px!important;text-align:center}.calendar-header button{width:34px;height:34px}
  .calendar-weekdays span{font-size:6px!important;letter-spacing:.05em!important}
  .calendar-day-cell{min-height:58px!important;padding:4px!important;border-width:2px!important;border-radius:9px!important}
  .calendar-day-cell.today strong{width:23px;height:23px}
}

/* 8: respiro nos títulos dos cards de configuração */
.settings-grid>.panel>h2{margin:0 0 22px!important}.settings-grid>.panel>h2+button,.settings-grid>.panel>h2+p,.settings-grid>.panel>h2+label{margin-top:0}.settings-grid>.panel button+button{margin-top:10px}.settings-grid>.panel .danger-btn{margin-top:12px}

/* 2: celular sempre mantém as quatro métricas em 2 × 2 */
@media(max-width:768px){
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .stat-card{min-width:0;min-height:128px;padding:17px!important;display:grid;grid-template-columns:38px minmax(0,1fr);align-content:start;gap:8px 10px}
  .stat-icon{width:38px!important;height:38px!important;grid-row:1/3}
  .stat-card>div:not(.stat-icon){min-width:0}.stat-card strong{font-size:clamp(22px,5vw,30px)!important;line-height:1.05;overflow-wrap:anywhere}.stat-card small{line-height:1.3}.stat-card>b{position:absolute!important;right:12px!important;top:12px!important;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(max-width:420px){
  .stats-grid{gap:7px!important}.stat-card{min-height:119px;padding:13px!important;grid-template-columns:31px minmax(0,1fr);gap:6px 8px;border-radius:20px!important}.stat-icon{width:31px!important;height:31px!important}.stat-card span{font-size:7px!important;letter-spacing:.08em!important}.stat-card strong{font-size:clamp(19px,6vw,25px)!important}.stat-card small{font-size:8px!important}.stat-card>b{font-size:7px!important;right:8px!important;top:8px!important;padding:3px 5px!important}
}

/* 5 e 6: controles mobile menores e equilibrados */
@media(max-width:1024px){.mobile-menu,.icon-btn,.header-actions .small{width:38px!important;min-width:38px!important;height:38px!important;padding:0!important}.mobile-menu{font-size:18px}.header-actions .small{font-size:0}.header-actions .small:after{content:'＋';font-size:16px;line-height:1}.topbar{gap:8px}}
@media(max-width:360px){.mobile-brand span{font-size:14px}.mobile-brand img{width:24px;height:24px;flex-basis:24px}.mobile-menu,.icon-btn,.header-actions .small{width:34px!important;min-width:34px!important;height:34px!important}}

/* Ajustes complementares de navegação e espaçamento */

/* 1 e 5: topbar simplificada — busca, notificação e atalho removidos */
.topbar>.search,#quickAdd,.topbar .notification{display:none!important}.topbar{justify-content:flex-end}.topbar .header-actions{margin-left:auto}.topbar .theme-toggle{display:grid!important}
@media(min-width:1025px){.topbar{height:62px}.topbar .mobile-brand,.topbar .mobile-menu{display:none!important}}
@media(max-width:1024px){.topbar{justify-content:flex-start}.topbar .header-actions{margin-left:auto}}

/* 2: elimina qualquer resíduo azul do card Semana produtiva */
.focus-card>span{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:1px solid rgba(182,255,77,.32);border-radius:50%;background:transparent!important;color:#b6ff4d!important}.focus-card div{background:#343633!important}.focus-card i{background:#b6ff4d!important}

/* 3: mini calendário clicável e foco semanal real */
.mini-calendar{cursor:pointer}.mini-calendar:focus-visible{outline:2px solid #b6ff4d;outline-offset:3px}.mini-calendar .panel-head h2{text-transform:capitalize}.mini-calendar .days{min-height:120px;align-content:start}.mini-calendar .days span{min-height:27px;display:grid;place-items:center;cursor:pointer}.mini-calendar .days span:not(.muted):hover{background:rgba(182,255,77,.12)}.mini-calendar .days .event:after{background:#b6ff4d}.mini-calendar .panel-head button{width:35px;height:35px;padding:0;border-radius:50%;cursor:pointer}.focus-activity{width:100%;background:transparent;color:inherit;text-align:left;border-left:0;border-right:0;border-bottom:0;cursor:pointer}.focus-activity:hover{background:rgba(182,255,77,.045)}.focus-activity em{white-space:nowrap}.priorities .soft-btn{margin-top:14px}

/* 4: rolagem continua funcionando, sem barra invadindo controles */
.sidebar,.modal,.calendar-panel{scrollbar-width:none}.sidebar::-webkit-scrollbar,.modal::-webkit-scrollbar,.calendar-panel::-webkit-scrollbar{display:none;width:0;height:0}body{scrollbar-color:rgba(182,255,77,.32) transparent;scrollbar-width:thin}body::-webkit-scrollbar{width:8px}body::-webkit-scrollbar-track{background:transparent}body::-webkit-scrollbar-thumb{background:rgba(182,255,77,.32);border:2px solid transparent;background-clip:padding-box;border-radius:999px}
.modal{padding-right:34px}.modal-close{right:20px;top:18px}

/* 6: selects com seta afastada da borda */
select{appearance:none;-webkit-appearance:none;padding-right:46px!important;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%)!important;background-position:calc(100% - 20px) calc(50% - 2px),calc(100% - 15px) calc(50% - 2px)!important;background-size:5px 5px,5px 5px!important;background-repeat:no-repeat!important}.period-filter select{min-width:160px}

/* 7: espaçamento mínimo consistente entre blocos */
.view>article+article,.view>.panel+.panel,.whatsapp-status-panel+.history-panel{margin-top:20px!important}.settings-grid,.profile-grid,.stats-insight-grid,.subjects-hub,.planning-grid,.summary-grid,.achievements-grid{gap:20px!important}.settings-grid>.panel,.profile-grid>.panel{margin:0!important}.history-panel{margin-top:20px}.statistics-content>*+*,.planning-content>*+*,.summaries-content>*+*{margin-top:20px}.form-actions,.detail-actions,.summary-actions{gap:12px!important}

/* 8: avatar sempre circular, nunca achatado */
.user-card .avatar,.profile-avatar{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;aspect-ratio:1/1!important;flex:0 0 42px!important;border-radius:50%!important;line-height:1;overflow:hidden}.user-card>div:nth-child(2){min-width:0;flex:1}.user-card strong,.user-card small{overflow-wrap:anywhere}.user-card button{flex:0 0 auto}
@media(max-width:520px){.modal{padding-right:18px}.modal-close{right:16px}.view>article+article,.whatsapp-status-panel+.history-panel{margin-top:16px!important}.settings-grid,.profile-grid,.stats-insight-grid,.subjects-hub,.planning-grid,.summary-grid,.achievements-grid{gap:14px!important}}

/* Workspace acadêmico das disciplinas */
.subject-page-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.subject-page-actions .primary{white-space:nowrap}.subject-card-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.subject-card-actions button{width:auto;padding:9px 13px}.subject-card-actions .danger-btn{padding:9px 13px}.subject-hub-main small{display:block;margin-top:5px;color:var(--muted);font-size:10px}
.subject-workspace-modal{width:min(1180px,96vw);max-height:94vh;padding:32px}.subject-workspace-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;padding-right:44px}.subject-workspace-icon{width:58px;height:58px;display:grid;place-items:center;border:1px solid rgba(182,255,77,.35);border-radius:50%;color:#b6ff4d;font-size:22px}.subject-workspace-head h2{font-size:clamp(28px,4vw,44px);margin:0 0 5px}.subject-workspace-head p:not(.eyebrow){margin:0;color:var(--muted)}.subject-workspace-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.subject-workspace-actions button{width:auto}
.subject-workspace-summary{display:grid;grid-template-columns:auto auto minmax(180px,1fr);align-items:end;gap:20px;margin:24px 0;padding:18px 20px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.025)}.subject-workspace-summary span{display:block;color:var(--muted);font-size:9px;letter-spacing:.1em;text-transform:uppercase;margin-bottom:5px}.subject-workspace-summary strong{font-size:14px}.subject-workspace-summary>i{display:block;height:7px;border-radius:999px;background:#383938;overflow:hidden}.subject-workspace-summary b{display:block;height:100%;border-radius:999px;background:#b6ff4d}
.subject-tabs{display:flex;gap:7px;overflow-x:auto;padding:3px 0 14px;scrollbar-width:none;border-bottom:1px solid var(--line)}.subject-tabs::-webkit-scrollbar{display:none}.subject-tabs button{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;background:#292a29;color:#c4c6c0;padding:10px 14px;font:500 10px 'Exo 2';cursor:pointer}.subject-tabs button:hover,.subject-tabs button.active{background:#b6ff4d;border-color:#b6ff4d;color:#111}.subject-tab-content{min-height:380px;padding-top:24px}
.subject-dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.subject-dashboard-grid article{min-height:112px;border:1px solid var(--line);border-radius:24px;background:#272827;padding:18px;display:grid;align-content:space-between}.subject-dashboard-grid article:nth-child(1){background:#b6ff4d;color:#111}.subject-dashboard-grid span{color:var(--muted);font-size:9px;letter-spacing:.1em;text-transform:uppercase}.subject-dashboard-grid article:nth-child(1) span{color:rgba(0,0,0,.58)}.subject-dashboard-grid strong{font-size:clamp(20px,2.6vw,32px);font-weight:500;overflow-wrap:anywhere}.subject-situation{margin:16px 0 24px;padding:22px;border:1px solid rgba(182,255,77,.25);border-radius:26px;background:rgba(182,255,77,.055)}.subject-situation h3{font-size:18px;margin:6px 0 0}.subject-section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.subject-section-title h3{margin:0}.subject-section-title p{margin:5px 0 0;color:var(--muted)}
.subject-coming-soon,.subject-assistant{text-align:center;min-height:350px;display:grid;place-items:center;align-content:center;gap:10px;border:1px dashed rgba(182,255,77,.28);border-radius:28px;background:rgba(182,255,77,.025);padding:30px}.subject-coming-soon>span,.subject-assistant-icon{width:58px;height:58px;display:grid;place-items:center;border:1px solid rgba(182,255,77,.38);border-radius:50%;color:#b6ff4d;font-size:22px}.subject-coming-soon h3,.subject-assistant h3{font-size:25px;margin:3px 0}.subject-coming-soon p,.subject-assistant p{color:var(--muted);max-width:620px;margin:0 auto 10px}.subject-coming-soon button{width:auto}
.subject-notes{display:grid;gap:14px}.subject-notes h3,.subject-notes p{margin:0}.subject-notes p{color:var(--muted)}.subject-notes textarea{width:100%;min-height:280px;resize:vertical;border:1px solid var(--line);border-radius:24px;background:#1d1e1d;color:var(--ink);padding:20px;font:14px/1.7 'Exo 2';outline:none}.subject-notes textarea:focus{border-color:#b6ff4d}.subject-notes button{justify-self:start;width:auto}
.subject-files{display:grid;gap:18px}.subject-upload-zone{text-align:center;border:1px dashed rgba(182,255,77,.34);border-radius:30px;padding:40px;background:rgba(182,255,77,.025)}.subject-upload-zone>span{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 13px;border-radius:50%;background:#b6ff4d;color:#111;font-size:25px}.subject-upload-zone h3{margin:0 0 7px}.subject-upload-zone p{color:var(--muted)}.subject-upload-zone button{width:auto}.subject-file-types{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.subject-file-types article{border:1px solid var(--line);border-radius:22px;padding:24px;text-align:center;background:#272827}
.subject-schedule-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.subject-schedule-form>div,.subject-schedule-form button{grid-column:1/-1}.subject-schedule-form h3,.subject-schedule-form p{margin:0}.subject-schedule-form p{color:var(--muted);margin-top:5px}.subject-schedule-form label{display:grid;gap:7px;color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase}.subject-schedule-form input{width:100%;border:1px solid var(--line);border-radius:18px;background:#1d1e1d;color:var(--ink);padding:14px;outline:none}.subject-schedule-form input:focus{border-color:#b6ff4d}.subject-schedule-form button{justify-self:start;width:auto}
.assistant-suggestions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.assistant-suggestions button{border:1px solid var(--line);border-radius:999px;background:#292a29;color:var(--muted);padding:9px 13px}.assistant-input{display:flex;width:min(620px,100%);margin-top:15px;border:1px solid var(--line);border-radius:999px;padding:5px;background:#1d1e1d}.assistant-input input{flex:1;min-width:0;border:0;background:transparent;color:var(--muted);padding:10px 14px}.assistant-input button{border:0;border-radius:999px;padding:0 18px}.subject-assistant .soon-badge{margin-top:8px}
html[data-theme="light"] .subject-dashboard-grid article:not(:first-child),html[data-theme="light"] .subject-file-types article{background:#fff}html[data-theme="light"] .subject-notes textarea,html[data-theme="light"] .subject-schedule-form input,html[data-theme="light"] .assistant-input{background:#fff;color:#151615}html[data-theme="light"] .subject-tabs button{background:#fff;color:#30332e}html[data-theme="light"] .subject-tabs button.active{background:#b6ff4d;color:#111}
@media(max-width:900px){.subject-workspace-head{grid-template-columns:auto 1fr}.subject-workspace-actions{grid-column:1/-1;justify-content:flex-start}.subject-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.subject-workspace-summary{grid-template-columns:1fr 1fr}.subject-workspace-summary>i{grid-column:1/-1}.subject-file-types{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.subject-page-actions{display:grid;width:100%}.subject-page-actions .primary{width:100%}.subject-workspace-modal{width:100%;padding:24px 16px}.subject-workspace-head{grid-template-columns:1fr;padding-right:35px}.subject-workspace-icon{width:48px;height:48px}.subject-workspace-actions{display:grid;grid-template-columns:1fr}.subject-workspace-actions button{width:100%}.subject-workspace-summary{grid-template-columns:1fr}.subject-workspace-summary>i{grid-column:auto}.subject-dashboard-grid{grid-template-columns:1fr 1fr;gap:8px}.subject-dashboard-grid article{min-height:96px;padding:14px;border-radius:18px}.subject-section-title{align-items:flex-start;display:grid}.subject-section-title button{width:100%}.subject-file-types{grid-template-columns:1fr 1fr}.subject-schedule-form{grid-template-columns:1fr}.subject-schedule-form>div,.subject-schedule-form button{grid-column:auto}.subject-card-actions{display:grid;grid-template-columns:1fr 1fr}.subject-card-actions button{width:100%}.subject-tab-content{min-height:320px}.subject-tabs{margin-inline:-4px}}

/* Página própria do Dashboard da disciplina */
#subject-dashboard-view{max-width:1480px}.subject-back-button{display:inline-flex;align-items:center;gap:8px;margin:0 0 28px;padding:10px 15px;border:1px solid var(--line);border-radius:999px;background:#292a29;color:var(--ink);font:500 11px 'Exo 2';cursor:pointer}.subject-back-button:hover{border-color:#b6ff4d;color:#b6ff4d}
.subject-dashboard-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:20px;margin-bottom:22px;padding:30px;border:1px solid var(--line);border-radius:36px 36px 12px 36px;background:linear-gradient(135deg,rgba(182,255,77,.1),rgba(255,255,255,.025))}.subject-dashboard-head h1{font-size:clamp(34px,5vw,62px);font-weight:500;line-height:1;letter-spacing:-.055em;margin:0 0 7px}.subject-dashboard-head p:not(.eyebrow){margin:0;color:var(--muted);font-size:14px}.subject-dashboard-head .subject-workspace-icon{width:68px;height:68px;font-size:25px}.subject-dashboard-head .subject-workspace-actions{align-self:center}
#subject-dashboard-view>.subject-workspace-summary{margin:0 0 20px;padding:20px 24px;border-radius:28px}#subject-dashboard-view>.subject-tabs{position:sticky;top:62px;z-index:5;margin:0 0 4px;padding:12px;background:rgba(24,25,24,.94);backdrop-filter:blur(16px);border:1px solid var(--line);border-radius:22px}#subject-dashboard-view>.subject-tab-content{padding-top:20px}
#subject-dashboard-view .subject-dashboard-grid{grid-template-columns:repeat(4,minmax(0,1fr))}#subject-dashboard-view .subject-dashboard-grid article{min-height:132px}#subject-dashboard-view .subject-situation{padding:28px;margin-block:20px 28px}#subject-dashboard-view .subject-situation h3{font-size:22px}#subject-dashboard-view .calendar-day-list{gap:12px}
html[data-theme="light"] .subject-back-button{background:#fff;color:#222}html[data-theme="light"] .subject-dashboard-head{background:linear-gradient(135deg,rgba(182,255,77,.22),rgba(255,255,255,.85))}html[data-theme="light"] #subject-dashboard-view>.subject-tabs{background:rgba(239,239,236,.94)}
@media(max-width:1050px){#subject-dashboard-view .subject-dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.subject-dashboard-head{grid-template-columns:auto 1fr}.subject-dashboard-head .subject-workspace-actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:768px){.subject-dashboard-head{padding:24px;grid-template-columns:auto 1fr;border-radius:28px 28px 10px 28px}.subject-dashboard-head .subject-workspace-icon{width:54px;height:54px}.subject-dashboard-head h1{font-size:clamp(30px,8vw,45px)}#subject-dashboard-view .subject-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#subject-dashboard-view>.subject-tabs{top:68px;border-radius:18px}.subject-dashboard-head .subject-workspace-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.subject-dashboard-head .subject-workspace-actions button{width:100%}}
@media(max-width:480px){.subject-back-button{margin-bottom:18px}.subject-dashboard-head{grid-template-columns:1fr;padding:20px}.subject-dashboard-head .subject-workspace-actions{grid-template-columns:1fr}.subject-dashboard-head .subject-workspace-icon{width:48px;height:48px}#subject-dashboard-view .subject-dashboard-grid{gap:8px}#subject-dashboard-view .subject-dashboard-grid article{min-height:105px;padding:14px}#subject-dashboard-view>.subject-workspace-summary{padding:17px;border-radius:22px}#subject-dashboard-view>.subject-tabs{margin-inline:-3px;padding:8px}}

/* Dashboard central com Estatísticas e Resumos incorporados */
.dashboard-overview-grid,.dashboard-bottom-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:18px;margin-top:18px}.dashboard-summary-panel,.dashboard-productivity-panel,.dashboard-charts-panel,.dashboard-subjects-panel,.dashboard-achievements-panel{margin:0!important}.dashboard-summary-tabs{display:flex;gap:6px}.dashboard-summary-tabs button{border:1px solid var(--line);border-radius:999px;background:#292a29;color:var(--muted);padding:8px 12px;font:500 9px 'Exo 2';cursor:pointer}.dashboard-summary-tabs button.active{background:#b6ff4d;border-color:#b6ff4d;color:#111}.dashboard-summary-message{min-height:44px;color:var(--muted);line-height:1.6}.dashboard-summary-metrics{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.dashboard-summary-metrics span{min-width:82px;display:grid;gap:3px;border:1px solid var(--line);border-radius:17px;background:#292a29;padding:12px;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.06em}.dashboard-summary-metrics strong{font-size:20px;color:var(--ink);font-weight:500;text-transform:none}.dashboard-summary-panel .summary-actions{display:flex;gap:8px}.dashboard-summary-panel .summary-actions button{width:auto}.dashboard-whatsapp-soon i{display:inline-block;margin-left:5px;color:#b6ff4d;font-style:normal;font-size:8px}
.dashboard-productivity-panel{background:linear-gradient(135deg,rgba(182,255,77,.1),rgba(255,255,255,.025))}.dashboard-productivity-panel #dashboardProductivity{display:grid;grid-template-columns:auto 1fr;gap:22px;align-items:center}.dashboard-index{--index:0deg;width:126px;height:126px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#b6ff4d var(--index),#393a39 0);position:relative}.dashboard-index:before{content:'';position:absolute;inset:12px;border-radius:50%;background:#242524}.dashboard-index>div{position:relative;text-align:center}.dashboard-index strong{display:block;font-size:33px;font-weight:500}.dashboard-index small{color:var(--muted);font-size:8px}.dashboard-productivity-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dashboard-productivity-list span{display:grid;gap:3px;border-bottom:1px solid var(--line);padding:8px 0}.dashboard-productivity-list small{color:var(--muted);font-size:8px;text-transform:uppercase;letter-spacing:.07em}.dashboard-productivity-list strong{font-size:13px;overflow-wrap:anywhere}
.dashboard-charts-panel{margin-top:18px!important}.dashboard-charts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.dashboard-charts>section{min-width:0;border:1px solid var(--line);border-radius:24px;background:#272827;padding:20px}.dashboard-charts h3{font-size:15px;font-weight:500;margin:0 0 18px}.dashboard-bar-row{display:grid;gap:5px;margin-top:11px}.dashboard-bar-row>div{display:flex;justify-content:space-between;gap:10px;font-size:10px}.dashboard-bar-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.dashboard-bar-row i{display:block;height:6px;border-radius:999px;background:#393a39;overflow:hidden}.dashboard-bar-row b{display:block;height:100%;border-radius:999px;background:#b6ff4d}.dashboard-week-chart{height:180px;display:grid;grid-template-columns:repeat(7,1fr);gap:7px;align-items:end}.dashboard-week-chart>div{height:100%;display:grid;grid-template-rows:1fr auto auto;gap:4px;text-align:center;align-items:end}.dashboard-week-chart i{height:100%;display:flex;align-items:end;justify-content:center;border-radius:999px;background:#393a39;overflow:hidden}.dashboard-week-chart b{display:block;width:100%;min-height:5px;background:#b6ff4d;border-radius:999px}.dashboard-week-chart strong{font-size:10px}.dashboard-week-chart span{font-size:8px;color:var(--muted);text-transform:capitalize}
.dashboard-subjects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dashboard-subject-card{display:grid;gap:8px;text-align:left;border:1px solid var(--line);border-radius:22px;background:#272827;color:var(--ink);padding:15px;cursor:pointer}.dashboard-subject-card:hover{border-color:rgba(182,255,77,.4)}.dashboard-subject-card>div{display:flex;align-items:center;gap:7px}.dashboard-subject-card small,.dashboard-subject-card em{color:var(--muted);font-size:9px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-subject-card>i{height:5px;border-radius:999px;background:#393a39;overflow:hidden}.dashboard-subject-card b{display:block;height:100%;background:#b6ff4d}.dashboard-achievements{display:grid;gap:9px}.dashboard-achievements article{display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:20px;background:#272827;padding:14px}.dashboard-achievements article>span{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%}.dashboard-achievements article strong,.dashboard-achievements article small{display:block}.dashboard-achievements article small{color:var(--muted);font-size:9px;margin-top:3px}.dashboard-achievements article.unlocked{background:#b6ff4d;color:#111}.dashboard-achievements article.unlocked small{color:rgba(0,0,0,.6)}.dashboard-achievements article.locked{opacity:.55}
html[data-theme="light"] .dashboard-summary-tabs button,html[data-theme="light"] .dashboard-summary-metrics span,html[data-theme="light"] .dashboard-charts>section,html[data-theme="light"] .dashboard-subject-card,html[data-theme="light"] .dashboard-achievements article:not(.unlocked){background:#fff;color:#151615}html[data-theme="light"] .dashboard-index:before{background:#fff}html[data-theme="light"] .dashboard-index{background:conic-gradient(#a8f542 var(--index),#dddeda 0)}
@media(max-width:1100px){.dashboard-overview-grid,.dashboard-bottom-grid{grid-template-columns:1fr}.dashboard-charts{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-charts>section:last-child{grid-column:1/-1}}
@media(max-width:700px){.dashboard-charts{grid-template-columns:1fr}.dashboard-charts>section:last-child{grid-column:auto}.dashboard-productivity-panel #dashboardProductivity{grid-template-columns:1fr}.dashboard-index{margin:auto}.dashboard-subjects{grid-template-columns:1fr}.dashboard-summary-panel .panel-head{display:grid;gap:13px}.dashboard-summary-tabs{justify-self:start}}
@media(max-width:420px){.dashboard-summary-metrics{display:grid;grid-template-columns:1fr 1fr}.dashboard-summary-metrics span{min-width:0}.dashboard-productivity-list{grid-template-columns:1fr}.dashboard-summary-panel .summary-actions{display:grid}.dashboard-summary-panel .summary-actions button{width:100%}.dashboard-charts>section{padding:16px;border-radius:20px}.dashboard-week-chart{height:145px}}
.subject-note-grid,.subject-file-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.subject-note-card{min-height:180px;text-align:left;display:grid;align-content:start;gap:12px;border:1px solid var(--line);border-radius:26px;background:#272827;color:var(--ink);padding:22px;cursor:pointer}.subject-note-card:hover{border-color:#b6ff4d;transform:translateY(-2px)}.subject-note-card span{font-size:9px;color:#b6ff4d;letter-spacing:.08em}.subject-note-card strong{font-size:18px}.subject-note-card p{margin:0;color:var(--muted);line-height:1.55;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.subject-note-editor{display:grid;gap:18px}.subject-note-editor header{display:flex;align-items:center;justify-content:space-between}.subject-note-editor header span{font-size:9px;color:var(--muted);letter-spacing:.1em}.subject-note-editor label{display:grid;gap:8px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}.subject-note-editor input,.subject-note-editor textarea{width:100%;border:1px solid var(--line);border-radius:20px;background:#1d1e1d;color:var(--ink);padding:16px;font:14px/1.6 'Exo 2';outline:none}.subject-note-editor textarea{resize:vertical;min-height:280px}.subject-note-editor input:focus,.subject-note-editor textarea:focus{border-color:#b6ff4d}.subject-note-actions{display:flex;gap:10px}.subject-note-actions button{width:auto}
.subject-files-real{display:grid;gap:24px}.subject-files-status{min-height:18px;color:#b6ff4d;font-size:11px;text-align:center}.subject-file-group{display:grid;gap:12px}.subject-file-group>header{display:flex;align-items:center;gap:10px}.subject-file-group h3{margin:0}.subject-file-group>header span{display:grid;place-items:center;min-width:25px;height:25px;border-radius:50%;background:#b6ff4d;color:#111;font-size:10px}.subject-file-card{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;border:1px solid var(--line);border-radius:24px;background:#272827;padding:16px}.subject-file-icon{width:44px;height:44px;display:grid;place-items:center;border:1px solid rgba(182,255,77,.35);border-radius:50%;color:#b6ff4d;font-size:10px}.subject-file-card strong,.subject-file-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.subject-file-card small{margin-top:5px;color:var(--muted);font-size:9px}.subject-file-actions{grid-column:1/-1;display:flex;gap:7px}.subject-file-actions button{flex:1;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);padding:8px;font-size:9px;cursor:pointer}.subject-file-actions button:hover{border-color:#b6ff4d}.subject-file-actions .danger{color:#ee9a84;border-color:rgba(238,100,70,.3)}html[data-theme="light"] .subject-note-card,html[data-theme="light"] .subject-file-card,html[data-theme="light"] .subject-note-editor input,html[data-theme="light"] .subject-note-editor textarea{background:#fff;color:#151615}
@media(max-width:950px){.subject-note-grid,.subject-file-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.subject-note-grid,.subject-file-grid{grid-template-columns:1fr}.subject-note-actions{display:grid}.subject-note-actions button{width:100%}.subject-upload-zone{padding:28px 18px}.subject-file-card{border-radius:20px}}
.topbar{height:58px!important;min-height:58px!important;justify-content:flex-end!important;padding-block:0!important}.topbar .header-actions{margin-left:auto;height:100%;display:flex;align-items:center}.theme-toggle{display:grid!important;place-items:center!important;padding:0!important}.theme-toggle span{display:grid;place-items:center;width:100%;height:100%;line-height:1}.dashboard-rhythm-panel{min-height:250px}.rhythm-chart{display:grid;grid-template-columns:150px 1fr;gap:28px;align-items:center}.rhythm-chart>div{width:140px;height:140px;border-radius:50%;display:grid;place-content:center;text-align:center;background:conic-gradient(#b6ff4d var(--rhythm),#363735 0);position:relative}.rhythm-chart>div:before{content:'';position:absolute;inset:13px;border-radius:50%;background:#242524}.rhythm-chart strong,.rhythm-chart small{position:relative}.rhythm-chart strong{font-size:30px}.rhythm-chart small{color:var(--muted)}.rhythm-chart ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}.rhythm-chart li{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.rhythm-chart span{color:var(--muted)}.rhythm-chart b{color:#b6ff4d}
.activities-list.grid-mode{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.activities-list.grid-mode .activity-card{min-width:0;min-height:245px;display:flex;flex-direction:column;align-items:stretch;gap:18px;padding:20px}.activities-list.grid-mode .activity-card>div:first-child{flex:1}.activities-list.grid-mode .activity-meta{display:flex;flex-wrap:wrap}.activities-list.grid-mode .activity-deadline{text-align:left}.load-more-btn{grid-column:1/-1;width:100%;margin-top:14px;padding:15px;border:1px solid rgba(182,255,77,.3);border-radius:999px;background:rgba(182,255,77,.05);color:#b6ff4d;font:600 11px 'Exo 2';cursor:pointer}.load-more-btn:hover{background:rgba(182,255,77,.12)}.load-more-btn small{margin-left:8px;color:var(--muted)}
.calendar-title-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}.local-event-detail{display:grid;gap:18px;padding:18px;border:1px solid var(--line);border-radius:22px}.local-event-detail p{margin:0;color:var(--muted)}.local-event-detail .danger-btn{justify-self:start}.weekday-picker{border:0;padding:0;margin:0;display:grid;gap:8px}.weekday-picker>span{color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase}.weekday-options{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.weekday-options label{display:flex!important;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:14px;padding:12px 6px!important;background:#1d1e1d;color:var(--ink)!important;cursor:pointer}.weekday-options input{width:auto!important;accent-color:#b6ff4d}.activity-form select{width:100%;border:1px solid var(--line);border-radius:18px;background:#1d1e1d;color:var(--ink);padding:14px;outline:none}.compact-summary{display:flex!important;align-items:center;gap:18px;padding:16px 22px!important;min-height:0!important;margin-block:14px 20px!important}.compact-summary .eyebrow{flex:0 0 auto}.compact-summary h3{font-size:15px!important;margin:0!important}.subject-tabs{width:100%;display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr));overflow:visible!important}.subject-tabs button{width:100%;text-align:center}.subject-tab-content{width:100%}
html[data-theme="light"] .rhythm-chart>div:before,html[data-theme="light"] .weekday-options label,html[data-theme="light"] .activity-form select{background:#fff}
@media(max-width:1250px){.activities-list.grid-mode{grid-template-columns:repeat(3,minmax(0,1fr))}.subject-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.activities-list.grid-mode{grid-template-columns:repeat(2,minmax(0,1fr))}.rhythm-chart{grid-template-columns:120px 1fr}.rhythm-chart>div{width:115px;height:115px}.weekday-options{grid-template-columns:repeat(3,1fr)}.calendar-title-actions{width:100%;justify-content:flex-start}}
@media(max-width:560px){.topbar{height:54px!important;min-height:54px!important}.activities-list.grid-mode{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.activities-list.grid-mode .activity-card{min-height:210px;padding:14px}.rhythm-chart{grid-template-columns:1fr}.rhythm-chart>div{margin:auto}.weekday-options{grid-template-columns:repeat(2,1fr)}.compact-summary{display:grid!important}.subject-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-title-actions,.calendar-title-actions .primary{width:100%}}
.load-less{border-color:var(--line);background:transparent;color:var(--muted)}.subject-dashboard-grid article{min-height:92px!important;padding:14px 16px!important}.subject-dashboard-grid strong{font-size:clamp(18px,1.8vw,25px)!important;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.subject-dashboard-grid span{font-size:8px!important}.subject-dashboard-grid article:nth-child(n+5) strong{font-size:clamp(15px,1.45vw,21px)!important}
#home-view{padding-top:20px!important;padding-bottom:28px!important}#home-view .welcome-row{margin-bottom:14px;align-items:center}#home-view .welcome-row h1{font-size:clamp(28px,3vw,42px)!important;margin:3px 0 4px!important;line-height:1}#home-view .welcome-row>div>p:last-child{font-size:13px;margin:0}#home-view .welcome-row .eyebrow{font-size:8px;margin:0}#home-view .welcome-row .primary{padding:10px 15px;font-size:9px}
#home-view .stats-grid{gap:10px;margin-bottom:12px}#home-view .stat-card{min-height:88px!important;padding:13px 15px!important;border-radius:22px}#home-view .stat-card .stat-icon{width:38px;height:38px}#home-view .stat-card strong{font-size:24px!important}#home-view .stat-card span,#home-view .stat-card small{font-size:8px}#home-view .stat-card>b{font-size:8px}
#home-view .dashboard-grid{grid-template-columns:minmax(0,2.2fr) minmax(270px,.8fr);gap:12px;margin:0}#home-view .main-column,#home-view .side-column{gap:12px}#home-view .panel{padding:16px;border-radius:24px}#home-view .panel-head{margin-bottom:10px}#home-view .panel-head h2{font-size:16px}#home-view .panel-head p{font-size:8px}#home-view .task-row{padding:9px 2px}#home-view .task-row:nth-child(n+5){display:none}#home-view .task-main strong{font-size:11px}#home-view .task-main small,#home-view .task-date{font-size:8px}#home-view .mini-calendar,#home-view .priorities,#home-view .dashboard-rhythm-panel{display:none!important}#home-view .intelligence-card{min-height:100%;padding:16px!important}#home-view .home-intelligence{gap:8px}#home-view .home-intelligence li{font-size:10px;line-height:1.25}
#home-view .dashboard-overview-grid{grid-template-columns:1.15fr .85fr;gap:12px;margin-top:12px}#home-view .dashboard-summary-panel,#home-view .dashboard-productivity-panel{min-height:150px}#home-view .dashboard-summary-message{min-height:25px;font-size:10px}#home-view .dashboard-summary-metrics{margin:8px 0;gap:6px}#home-view .dashboard-summary-metrics span{padding:8px;min-width:64px}#home-view .dashboard-summary-metrics strong{font-size:15px}#home-view .dashboard-productivity-panel #dashboardProductivity{grid-template-columns:82px 1fr;gap:14px}#home-view .dashboard-index{width:78px;height:78px}#home-view .dashboard-index:before{inset:8px}#home-view .dashboard-index strong{font-size:21px}#home-view .dashboard-productivity-list{gap:4px}#home-view .dashboard-productivity-list span{padding:4px 0}#home-view .dashboard-productivity-list strong{font-size:10px}
#home-view .dashboard-charts-panel{margin-top:12px!important}#home-view .dashboard-charts{grid-template-columns:1.2fr .9fr .9fr;gap:10px}#home-view .dashboard-charts>section{padding:12px;border-radius:17px;min-height:145px;background:linear-gradient(145deg,#272827,#20221f)}#home-view .dashboard-charts h3{font-size:11px;margin-bottom:8px}#home-view .dashboard-week-chart{height:95px}#home-view .dashboard-bar-row{margin-top:6px}#home-view .dashboard-bottom-grid{gap:12px;margin-top:12px}#home-view .dashboard-subjects,#home-view .dashboard-achievements{gap:6px}#home-view .dashboard-subject-card,#home-view .dashboard-achievements article{padding:9px;border-radius:15px}#home-view .dashboard-bottom-grid .panel{min-height:0}
@media(max-width:1100px){#home-view .dashboard-grid,#home-view .dashboard-overview-grid{grid-template-columns:1fr}#home-view .intelligence-card{min-height:auto}#home-view .dashboard-charts{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){#home-view{padding-top:16px!important}#home-view .welcome-row h1{font-size:30px!important}#home-view .dashboard-charts{grid-template-columns:1fr}#home-view .dashboard-charts>section{min-height:130px}}
#subject-dashboard-view{padding-top:20px!important;padding-bottom:32px!important}
#subject-dashboard-view .subject-back-button{margin-bottom:12px;padding:8px 13px;font-size:9px}
#subject-dashboard-view .subject-dashboard-head{gap:14px;margin-bottom:10px;padding:17px 20px;border-radius:24px 24px 9px 24px}
#subject-dashboard-view .subject-dashboard-head .subject-workspace-icon{width:46px;height:46px;font-size:18px}
#subject-dashboard-view .subject-dashboard-head h1{font-size:clamp(27px,3.2vw,43px);margin-bottom:4px}
#subject-dashboard-view .subject-dashboard-head p:not(.eyebrow){font-size:10px}
#subject-dashboard-view .subject-dashboard-head .eyebrow{font-size:8px;margin-bottom:4px}
#subject-dashboard-view .subject-workspace-actions{gap:7px}
#subject-dashboard-view .subject-workspace-actions button{padding:9px 13px;font-size:9px}
#subject-dashboard-view>.subject-workspace-summary{margin-bottom:10px;padding:12px 17px;border-radius:18px;gap:14px}
#subject-dashboard-view>.subject-workspace-summary span{font-size:7px;margin-bottom:3px}
#subject-dashboard-view>.subject-workspace-summary strong{font-size:11px}
#subject-dashboard-view>.subject-workspace-summary>i{height:5px}
#subject-dashboard-view>.subject-tabs{position:static;margin-bottom:0;padding:7px;gap:5px;border-radius:16px;grid-template-columns:repeat(8,minmax(0,1fr))}
#subject-dashboard-view>.subject-tabs button{padding:8px 9px;font-size:8px}
#subject-dashboard-view>.subject-tab-content{padding-top:10px;min-height:250px}
#subject-dashboard-view .subject-dashboard-grid{gap:8px;grid-template-columns:repeat(7,minmax(0,1fr))}
#subject-dashboard-view .subject-dashboard-grid article{min-height:82px!important;padding:11px 12px!important;border-radius:17px}
#subject-dashboard-view .subject-dashboard-grid strong{font-size:clamp(14px,1.35vw,20px)!important}
#subject-dashboard-view .subject-dashboard-grid article:nth-child(n+5) strong{font-size:clamp(12px,1.1vw,16px)!important}
#subject-dashboard-view .subject-situation{margin:9px 0 12px!important;padding:11px 16px!important;border-radius:17px}
#subject-dashboard-view .subject-situation h3{font-size:13px!important}
#subject-dashboard-view .subject-section-title{margin-bottom:8px}
#subject-dashboard-view .subject-section-title h3{font-size:16px}
#subject-dashboard-view .calendar-day-list{gap:7px;margin-top:10px}
#subject-dashboard-view .calendar-day-item{padding:9px 11px;border-radius:13px}
#subject-dashboard-view .calendar-day-item strong{font-size:11px}
#subject-dashboard-view .calendar-day-item small,#subject-dashboard-view .calendar-day-item span{font-size:8px}
@media(max-width:1200px){#subject-dashboard-view .subject-dashboard-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:768px){#subject-dashboard-view{padding-top:14px!important}#subject-dashboard-view .subject-dashboard-head{padding:15px}#subject-dashboard-view .subject-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#subject-dashboard-view>.subject-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:480px){#subject-dashboard-view .subject-dashboard-head{gap:10px}#subject-dashboard-view .subject-dashboard-head h1{font-size:27px}#subject-dashboard-view>.subject-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Densidade compacta global do EduMind */
.view{padding-top:22px!important;padding-bottom:34px!important}
.page-title{margin-bottom:16px!important;gap:16px}
.page-title h1{font-size:clamp(30px,3.4vw,47px)!important;line-height:1;margin:4px 0 7px!important}
.page-title>div>p:last-child{font-size:12px;line-height:1.4;margin:0}
.page-title .eyebrow{font-size:8px;margin:0}
.page-title .primary,.page-title .soft-btn{padding:10px 15px;font-size:9px}
.panel{padding:17px!important;border-radius:22px!important}
.panel-head{margin-bottom:11px!important;gap:12px}
.panel-head h2{font-size:17px!important;margin:0}
.panel-head p{font-size:9px!important;margin-top:3px}
.activities-panel{padding:17px!important}
.activities-toolbar{gap:11px!important}
.activities-search{min-height:42px;padding:8px 14px!important}
.activities-search input{font-size:11px}
.activities-view-switch,.activities-filters{gap:6px!important}
.activities-view-switch button,.activities-filters button,.subject-view-switch button,.calendar-view-switch button{padding:8px 11px!important;font-size:8px!important}
.activities-advanced-filters{gap:10px!important;padding-top:11px!important}
.activities-advanced-filters label{font-size:8px!important}
.activities-advanced-filters select,.period-filter select{min-height:42px;padding:9px 34px 9px 13px!important;font-size:10px}
.activity-card{padding:13px 16px!important;min-height:92px!important;border-radius:18px!important;gap:12px!important}
.activity-card h3{font-size:14px!important;margin-bottom:4px!important}
.activity-card p,.activity-card small,.activity-card span{font-size:8px!important}
.activity-progress{margin-top:8px!important}
.activity-progress>span{height:4px!important}
.subjects-hub{gap:11px!important}
.subject-hub-card{padding:16px!important;border-radius:21px!important;gap:12px!important}
.subject-hub-main h3{font-size:17px!important;margin-bottom:3px}
.subject-hub-main p,.subject-hub-main small{font-size:8px!important}
.subject-icon{width:42px!important;height:42px!important}
.subject-hub-stats span{font-size:17px!important}
.subject-hub-stats small{font-size:7px!important}
.subject-card-actions button{padding:8px 10px!important;font-size:8px!important}
.calendar-panel{padding:16px!important}
.calendar-header{padding-bottom:10px!important}
.calendar-header h2{font-size:20px!important}
.calendar-header button{width:34px!important;height:34px!important}
.calendar-day-cell{min-height:88px!important;padding:8px!important;gap:4px!important}
.calendar-day-cell strong{font-size:11px!important}
.calendar-day-cell em,.calendar-day-cell div span{font-size:7px!important}
.whatsapp-status-panel,.history-panel{padding:17px!important}
.history-section-head h2{font-size:18px!important}
.history-section-head p{font-size:9px!important}
.history-toolbar{gap:10px!important;margin-block:11px!important}
.history-content{gap:7px!important}
.history-item{padding:11px 13px!important;border-radius:16px!important}
.history-icon{width:34px!important;height:34px!important}
.history-copy strong{font-size:11px!important}
.history-copy small,.history-copy time{font-size:7px!important}
.planning-grid,.summary-grid,.settings-grid,.profile-grid,.statistics-grid{gap:11px!important}
.plan-column,.summary-card,.settings-card,.profile-card{padding:16px!important}
.plan-head h2,.summary-card h2,.settings-card h2{font-size:17px!important}
.plan-item{padding:11px!important;border-radius:15px!important}
.plan-item strong{font-size:11px!important}
.plan-item small,.plan-meta{font-size:8px!important}
.profile-hero{padding:20px!important;border-radius:24px!important}
.profile-hero h1{font-size:clamp(27px,3vw,41px)!important}
.profile-avatar{width:58px!important;height:58px!important;flex-basis:58px!important}
.settings-content,.profile-content,.statistics-content,.planning-content,.summaries-content{gap:12px!important}
.settings-content h2,.profile-content h2,.statistics-content h2{font-size:18px!important}
.modal{padding:22px!important;border-radius:25px!important;max-height:92dvh}
.modal h2{font-size:25px!important;margin:5px 0 7px!important}
.modal-sub{font-size:10px!important;margin-bottom:14px!important}
.modal-icon{width:42px!important;height:42px!important;margin-bottom:9px!important}
.modal-close{width:34px!important;height:34px!important;right:14px!important;top:14px!important}
.activity-form{gap:11px!important}
.activity-form label{gap:5px!important;font-size:8px!important}
.activity-form input,.activity-form select,.activity-form textarea{padding:11px 13px!important;min-height:41px!important;border-radius:14px!important;font-size:11px!important}
.activity-form textarea{min-height:78px!important}
.form-actions{margin-top:3px!important}
.form-actions button{padding:10px 14px!important;font-size:9px!important}
.detail-grid{gap:9px!important;margin-block:14px!important}
.detail-grid>div{padding:12px!important;border-radius:16px!important;min-height:68px!important}
.detail-grid span,.detail-description span,.detail-progress span{font-size:7px!important}
.detail-grid strong{font-size:11px!important}
.detail-description{padding:13px!important;border-radius:16px!important}
.detail-description p{font-size:10px!important}
.detail-actions button{padding:9px 13px!important;font-size:8px!important}
.load-more-btn{padding:11px!important;margin-top:9px!important;font-size:9px!important}
@media(max-width:800px){.view{padding:18px 15px 30px!important}.page-title{margin-bottom:13px!important}.panel{padding:14px!important}.activity-card{padding:12px!important}.modal{padding:20px 15px!important}.calendar-day-cell{min-height:72px!important}}
@media(max-width:480px){.page-title h1{font-size:29px!important}.page-title>div>p:last-child{font-size:10px}.activities-panel{padding:12px!important}.activity-card{min-height:82px!important}.panel-head h2{font-size:15px!important}}
.dashboard-verse{max-width:760px!important;color:var(--muted)!important;font-size:11px!important;line-height:1.55!important}.dashboard-verse small{display:inline-block;margin-left:5px;color:#b6ff4d;font-size:9px;font-weight:600}.app-scripture-footer{max-width:1480px;margin:14px auto 0;padding:18px 28px 22px;border-top:1px solid var(--line);color:var(--muted);font-size:8px;line-height:1.55;text-align:center;letter-spacing:.02em}.app-scripture-footer span{margin-left:4px;color:var(--ink);font-weight:600;white-space:nowrap}html[data-theme="light"] .dashboard-verse small{color:#657f31}@media(max-width:800px){.dashboard-verse{font-size:10px!important}.dashboard-verse small{display:block;margin:3px 0 0}.app-scripture-footer{padding:15px 18px 20px;font-size:7px}}
#home-view .stats-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.class-today-card{background:linear-gradient(145deg,rgba(182,255,77,.13),#292b28)!important;border-color:rgba(182,255,77,.28)!important}.class-today-card .stat-icon{color:#b6ff4d!important;border-color:rgba(182,255,77,.3)!important}.class-today-card strong{font-size:clamp(11px,.95vw,14px)!important;line-height:1.2;overflow-wrap:anywhere}.class-today-card small{line-height:1.3}@media(max-width:1250px){#home-view .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:800px){#home-view .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){#home-view .stats-grid{grid-template-columns:1fr}}

.profile-photo-field{gap:10px}.profile-photo-control{display:flex;align-items:center;gap:16px}.profile-photo-preview{width:72px;height:72px;flex:0 0 72px;border-radius:50%;display:grid;place-items:center;background-color:var(--accent,#b6ff4d);background-position:center;background-size:cover;color:#10110f;font-weight:800}.profile-photo-control input[type=file]{max-width:100%;padding:10px;border:1px solid var(--line);border-radius:14px}.profile-photo-control small{display:block;margin-top:7px}.profile-avatar.has-photo,#userAvatar.has-photo{background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;color:transparent!important}.activity-form select#profilePeriod{width:100%}@media(max-width:600px){.profile-photo-control{align-items:flex-start;flex-direction:column}.profile-photo-preview{width:64px;height:64px;flex-basis:64px}}

/* Compactação exclusiva para celulares, preservando o layout de desktop. */
@media (max-width:600px){
  #home-view .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  #home-view .stat-card{width:100%;height:112px;min-height:112px!important;padding:10px!important;border-radius:19px!important;grid-template-columns:32px minmax(0,1fr)!important;gap:8px!important;background:#292a29!important;border-color:var(--line)!important}
  #home-view .stat-card:first-child{background:#b6ff4d!important;border-color:#b6ff4d!important}
  #home-view .class-today-card{background:#292a29!important;border-color:var(--line)!important}
  #home-view .stat-card .stat-icon{width:32px!important;height:32px!important;font-size:13px!important}
  #home-view .stat-card span{font-size:6px!important;letter-spacing:.12em!important}
  #home-view .stat-card strong,#home-view .class-today-card strong{font-size:17px!important;line-height:1.05!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  #home-view .stat-card small{font-size:6.5px!important;line-height:1.25!important}
  #home-view .stat-card>b{top:10px!important;right:10px!important;font-size:6px!important}

  #activities-view .activities-toolbar{gap:7px!important}
  #activities-view .activities-search{min-height:36px!important;padding:6px 10px!important}
  #activities-view .activities-view-switch{display:grid!important;grid-template-columns:auto 1fr 1fr;align-items:center;gap:5px!important}
  #activities-view .activities-view-switch span{font-size:6px!important}
  #activities-view .activities-view-switch button{padding:6px 8px!important;font-size:6.5px!important;min-height:27px!important}
  #activities-view .activities-filters{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px!important}
  #activities-view .activities-filters button{padding:6px 3px!important;font-size:6px!important;min-height:26px!important}
  #activities-view .activities-advanced-filters{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px!important;padding-top:7px!important}
  #activities-view .activities-advanced-filters label{min-width:0;font-size:6px!important;gap:3px!important}
  #activities-view .activities-advanced-filters select{width:100%;min-width:0;min-height:34px!important;height:34px;padding:5px 20px 5px 7px!important;font-size:7px!important;border-radius:11px!important;text-overflow:ellipsis}

  #calendarDayModal{align-items:center!important;justify-content:center!important;padding:14px!important}
  #calendarDayModal .modal{width:min(94vw,430px)!important;max-height:78dvh!important;margin:auto!important;border-radius:24px!important}
  #calendarDayModal h2{font-size:19px!important;line-height:1.15!important;padding-right:30px}
  #calendarDayModal .calendar-day-list{gap:7px!important;margin-top:12px!important}
  #calendarDayModal .calendar-day-item{padding:10px 12px!important;min-height:66px!important;border-radius:15px!important}

  #subjects-view .subjects-hub{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  #subjects-view .subject-hub-card{min-width:0;padding:10px!important;border-radius:17px!important;gap:7px!important}
  #subjects-view .subject-hub-main{gap:7px!important;align-items:flex-start!important}
  #subjects-view .subject-icon{width:30px!important;height:30px!important;flex:0 0 30px!important;font-size:12px!important}
  #subjects-view .subject-hub-main h3{font-size:12px!important;line-height:1.1!important;overflow-wrap:anywhere}
  #subjects-view .subject-hub-main p{font-size:6px!important;line-height:1.2!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  #subjects-view .subject-hub-stats{gap:4px!important}
  #subjects-view .subject-hub-stats span{padding:7px 4px!important;font-size:12px!important;border-radius:11px!important}
  #subjects-view .subject-hub-stats small{font-size:5px!important}
  #subjects-view .subject-hub-progress strong{font-size:12px!important}
  #subjects-view .subject-card-actions{grid-template-columns:1fr 1fr!important;gap:4px!important}
  #subjects-view .subject-card-actions button{min-width:0;padding:6px 2px!important;font-size:5.5px!important}

  #subject-dashboard-view{padding-top:10px!important}
  #subject-dashboard-view .subject-back-button{margin-bottom:7px!important;padding:6px 9px!important;font-size:7px!important}
  #subject-dashboard-view .subject-dashboard-head{padding:11px!important;gap:7px!important;margin-bottom:7px!important;border-radius:18px!important}
  #subject-dashboard-view .subject-dashboard-head .subject-workspace-icon{width:34px!important;height:34px!important;font-size:13px!important}
  #subject-dashboard-view .subject-dashboard-head h1{font-size:21px!important}
  #subject-dashboard-view .subject-dashboard-head p:not(.eyebrow){font-size:7px!important}
  #subject-dashboard-view .subject-workspace-actions{grid-template-columns:1fr 1fr!important;gap:5px!important}
  #subject-dashboard-view .subject-workspace-actions button{padding:7px 5px!important;font-size:6px!important}
  #subject-dashboard-view>.subject-workspace-summary{padding:9px 11px!important;gap:7px!important;margin-bottom:7px!important}
  #subject-dashboard-view>.subject-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important;padding:5px!important;gap:3px!important}
  #subject-dashboard-view>.subject-tabs button{padding:6px 2px!important;font-size:6px!important;min-width:0}
  #subject-dashboard-view>.subject-tab-content{padding-top:7px!important;min-height:180px!important}

  #planning-view .page-title,#settings-view .page-title{gap:8px!important}
  #planning-view .page-title h1,#settings-view .page-title h1{font-size:25px!important}
  #planning-view .planning-grid,#settings-view .settings-grid,#profile-view .profile-grid{grid-template-columns:1fr!important;gap:7px!important}
  #planning-view .plan-column,#settings-view .settings-card,#settings-view .panel,#profile-view .panel{padding:11px!important;border-radius:16px!important}
  #planning-view .plan-item{padding:8px!important;min-height:0!important}
  #profile-view .profile-hero{padding:12px!important;border-radius:18px!important;gap:9px!important;display:grid!important;grid-template-columns:auto 1fr!important}
  #profile-view .profile-avatar{width:44px!important;height:44px!important;flex-basis:44px!important}
  #profile-view .profile-hero h1{font-size:20px!important;line-height:1.05!important}
  #profile-view .profile-hero p,#profile-view .profile-hero small{font-size:8px!important}
  #profile-view .profile-hero .primary{grid-column:1/-1;width:100%;padding:8px!important;font-size:7px!important}
  #profile-view .profile-grid h2,#settings-view h2{font-size:14px!important}
  #profile-view .profile-grid p,#settings-view p,#settings-view label{font-size:8px!important;line-height:1.35!important}
}

/* Light mode: superfícies sempre claras em todo o sistema. */
html[data-theme="light"] body,
html[data-theme="light"] .app-shell,
html[data-theme="light"] .main{background:#f5f6f2!important}
html[data-theme="light"] .panel,
html[data-theme="light"] .stat-card:not(:first-child),
html[data-theme="light"] .class-today-card,
html[data-theme="light"] .activity-card,
html[data-theme="light"] .activities-panel,
html[data-theme="light"] .subject-hub-card,
html[data-theme="light"] .subject-dashboard-head,
html[data-theme="light"] .subject-workspace-summary,
html[data-theme="light"] .subject-tabs,
html[data-theme="light"] .subject-dashboard-grid article:not(:first-child),
html[data-theme="light"] .subject-situation,
html[data-theme="light"] .calendar-panel,
html[data-theme="light"] .calendar-day-cell,
html[data-theme="light"] .calendar-day-item,
html[data-theme="light"] .plan-column,
html[data-theme="light"] .plan-item,
html[data-theme="light"] .summary-card,
html[data-theme="light"] .settings-card,
html[data-theme="light"] .profile-card,
html[data-theme="light"] .profile-hero,
html[data-theme="light"] .profile-grid .panel,
html[data-theme="light"] .statistics-content article,
html[data-theme="light"] .stat-insight-card,
html[data-theme="light"] .productivity-card,
html[data-theme="light"] .dashboard-summary-panel,
html[data-theme="light"] .dashboard-productivity-panel,
html[data-theme="light"] .dashboard-charts>section,
html[data-theme="light"] .dashboard-subject-card,
html[data-theme="light"] .dashboard-achievements-panel,
html[data-theme="light"] .dashboard-achievements article:not(.unlocked),
html[data-theme="light"] .whatsapp-status-panel,
html[data-theme="light"] .history-panel,
html[data-theme="light"] .history-item,
html[data-theme="light"] .subject-note-card,
html[data-theme="light"] .subject-file-card,
html[data-theme="light"] .subject-coming-soon,
html[data-theme="light"] .subject-assistant,
html[data-theme="light"] .modal,
html[data-theme="light"] .detail-grid>div,
html[data-theme="light"] .detail-description{background:#fff!important;color:#151615!important;border-color:rgba(20,22,18,.11)!important}
html[data-theme="light"] .activities-search,
html[data-theme="light"] .activities-advanced-filters select,
html[data-theme="light"] .period-filter select,
html[data-theme="light"] .settings-form select,
html[data-theme="light"] .settings-form input,
html[data-theme="light"] .activity-form input,
html[data-theme="light"] .activity-form select,
html[data-theme="light"] .activity-form textarea,
html[data-theme="light"] .subject-notes textarea,
html[data-theme="light"] .subject-schedule-form input,
html[data-theme="light"] .assistant-input{background:#fff!important;color:#151615!important}
html[data-theme="light"] .stat-card:not(:first-child) strong,
html[data-theme="light"] .stat-card:not(:first-child) span,
html[data-theme="light"] .stat-card:not(:first-child) small,
html[data-theme="light"] .stat-card:not(:first-child)>b,
html[data-theme="light"] .class-today-card strong{color:#151615!important}
html[data-theme="light"] .stat-card:not(:first-child) small,
html[data-theme="light"] .stat-card:not(:first-child) span{color:#686b65!important}
html[data-theme="light"] .calendar-day-cell:hover{background:#f8ffef!important}

/* Exceções finais de componentes que possuíam fundo escuro próprio. */
html[data-theme="light"] .subject-hub-stats span,
html[data-theme="light"] .subject-detail-stats>div{background:#fff!important;color:#151615!important;border-color:rgba(20,22,18,.12)!important}
html[data-theme="light"] .subject-hub-stats small,
html[data-theme="light"] .subject-detail-stats span{color:#686b65!important}
html[data-theme="light"] .subject-hub-progress i,
html[data-theme="light"] .activity-progress span,
html[data-theme="light"] .detail-progress i{background:#f3f7ec!important;border-color:#dce8ca!important}
html[data-theme="light"] .user-card{background:#fff!important;color:#151615!important;border-color:rgba(20,22,18,.12)!important}
html[data-theme="light"] .user-card strong{color:#151615!important}
html[data-theme="light"] .user-card small,
html[data-theme="light"] .user-card button{color:#686b65!important}
html[data-theme="light"] .calendar-header button{background:#fff!important;color:#151615!important;border-color:rgba(20,22,18,.13)!important}
html[data-theme="light"] .calendar-panel{background:#fff!important}
html[data-theme="light"] .calendar-day-cell{background:#fff!important;border-color:#f5f6f2!important}
html[data-theme="light"] .calendar-weekdays{border-color:rgba(20,22,18,.1)!important}

/* Refinamentos finais de densidade e alinhamento. */
.class-today-card{column-gap:14px!important}.class-today-card>div:nth-child(2){padding-left:3px;min-width:0}
.dashboard-overview-grid{grid-template-columns:1fr!important}
#subject-dashboard-view>.subject-tabs{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.dashboard-index>div{display:grid;place-items:center;gap:4px;padding:7px}.dashboard-index small{display:block;line-height:1.15;max-width:62px}
.dashboard-bar-row i{height:3px!important;border-radius:2px!important}.dashboard-bar-row b{border-radius:2px!important}
.dashboard-week-chart i{width:12px!important;justify-self:center;border-radius:3px!important}.dashboard-week-chart b{border-radius:3px!important}
.activities-list.grid-mode .activity-meta{width:100%;justify-content:center!important;align-items:center;text-align:center;margin-inline:auto}
.activities-list.grid-mode .activity-meta span{display:inline-flex;align-items:center;justify-content:center;min-width:58px}
.official-plans{display:grid;gap:8px;margin-top:15px}.official-plan{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px;padding:11px 13px;border:1px solid var(--line);border-radius:16px}.official-plan.active{border-color:#b6ff4d;background:rgba(182,255,77,.08)}.official-plan span{font-size:11px}.official-plan strong{font-size:12px}.official-plan em{color:#b6ff4d;font-size:8px;font-style:normal;text-transform:uppercase}.current-plan-name{font-size:20px!important;font-weight:600;color:var(--ink)!important}
html[data-theme="light"] .official-plan{background:#fff}html[data-theme="light"] .official-plan.active{background:#f7ffed}html[data-theme="light"] .official-plan em{color:#617d31}
@media(max-width:600px){.class-today-card{column-gap:11px!important}.dashboard-week-chart i{width:8px!important}.official-plan{grid-template-columns:1fr auto;padding:9px}.official-plan em{grid-column:1/-1}.activities-list.grid-mode .activity-meta span{min-width:0;flex:1;padding-inline:4px!important}}

/* Base mobile-first e contenção horizontal global. */
*,*::before,*::after{box-sizing:border-box}
html,body{width:100%;max-width:100%;min-width:0;overflow-x:hidden!important}
body{min-height:100dvh}
img,svg,video,canvas{max-width:100%;height:auto}
button,input,select,textarea{max-width:100%;font:inherit}
.app-shell,main,.topbar,.view,.panel,.page-title,.welcome-row,.stats-grid,.dashboard-grid,.main-column,.side-column,.activities-panel,.activities-toolbar,.activities-list,.subjects-hub,.calendar-panel,.calendar-month-grid,.planning-content,.profile-content,.settings-content,.modal{min-width:0;max-width:100%}
.app-shell{width:100%;overflow-x:clip}
main{min-width:0;overflow-x:hidden}
.view{width:100%}
.view>*{min-width:0}
.panel,.stat-card,.activity-card,.subject-hub-card,.task-row{overflow-wrap:anywhere}
.task-main,.task-date,.subject-hub-main>div,.activity-card>div,.profile-hero>div{min-width:0}
.task-main strong,.task-main small,.subject-hub-main h3,.subject-hub-main p,.activity-card h3,.activity-card p{max-width:100%;overflow-wrap:anywhere}
.modal-backdrop{width:100%;max-width:100%;overflow-x:hidden}
.modal{width:100%!important;max-width:620px!important}

@media(max-width:1024px){
  .sidebar{max-width:min(86vw,300px)}
  main{margin-left:0!important;width:100%!important;max-width:100%!important}
  .topbar{width:100%;padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
  .view{padding-left:max(15px,env(safe-area-inset-left))!important;padding-right:max(15px,env(safe-area-inset-right))!important}
}

@media(max-width:600px){
  .topbar{height:56px!important;min-height:56px!important;gap:7px!important}
  .view{padding-top:14px!important;padding-bottom:max(26px,env(safe-area-inset-bottom))!important}
  .welcome-row,.page-title{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:start!important;gap:10px!important}
  .welcome-row>div,.page-title>div{min-width:0}
  .welcome-row .primary,.page-title>.primary,.page-title>.subject-page-actions,.calendar-title-actions{max-width:100%}
  #home-view .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #home-view .stat-card{min-width:0!important;width:100%!important}
  #home-view .dashboard-grid,#home-view .dashboard-overview-grid,#home-view .dashboard-bottom-grid,#home-view .dashboard-charts{grid-template-columns:minmax(0,1fr)!important}
  .activities-list.grid-mode,.subjects-hub{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .activities-list.grid-mode .activity-card,.subject-hub-card{min-width:0!important;width:100%!important}
  .activities-advanced-filters{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .activities-advanced-filters label,.activities-advanced-filters select{min-width:0!important;width:100%!important}
  .activity-form{grid-template-columns:minmax(0,1fr)!important}
  .activity-form .form-wide{grid-column:auto!important}
  .form-actions,.detail-actions{width:100%;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important}
  .form-actions button,.detail-actions button{width:100%!important;min-width:0}
  .calendar-panel{width:100%!important;overflow:hidden!important}
  .calendar-weekdays,.calendar-month-grid{width:100%!important;min-width:0!important;grid-template-columns:repeat(7,minmax(0,1fr))!important}
  .calendar-day-cell{width:100%;min-width:0!important}
  #subject-dashboard-view>.subject-tabs{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:hidden}
  .subject-tabs button{min-width:0!important;width:100%;white-space:normal}
  .profile-hero,.profile-grid,.settings-grid,.planning-grid{max-width:100%;min-width:0}
  .toast{left:12px!important;right:12px!important;bottom:max(12px,env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important}
}

@media(max-width:350px){
  #home-view .stats-grid,.activities-list.grid-mode,.subjects-hub{grid-template-columns:minmax(0,1fr)!important}
  .activities-advanced-filters{grid-template-columns:minmax(0,1fr)!important}
}

/* Contraste semântico: superfícies escuras mantêm conteúdo claro no modo claro. */
html[data-theme="light"] .dark-card,
html[data-theme="light"] [data-surface="dark"]{background:#202220!important;color:#fff!important}
html[data-theme="light"] .dark-card :is(h1,h2,h3,strong,span,p,small,i),
html[data-theme="light"] [data-surface="dark"] :is(h1,h2,h3,strong,span,p,small,i){color:#fff!important}
html[data-theme="light"] .intelligence-card,
html[data-theme="light"] .achievement-card.unlocked,
html[data-theme="light"] .stat-card:first-child{color:#111!important}
html[data-theme="light"] .intelligence-card :is(h1,h2,h3,strong,span,p,small,i),
html[data-theme="light"] .achievement-card.unlocked :is(h1,h2,h3,strong,span,p,small,i),
html[data-theme="light"] .stat-card:first-child :is(h1,h2,h3,strong,span,p,small,i){color:#111!important}

/* Ajustes finais para 360, 390 e 414 px. */
.tag,.activity-meta span,.pill,.soon-badge,.inline-badge{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
@media(max-width:600px){
  .sidebar{width:min(78vw,250px)!important;max-width:min(78vw,250px)!important;padding:14px 12px max(12px,env(safe-area-inset-bottom))!important}
  .sidebar .brand{padding:2px 7px 12px!important}
  .sidebar .nav-item{min-height:38px!important;padding:7px 8px!important;font-size:9px!important;gap:8px!important}
  .sidebar .nav-item span{width:25px!important;height:25px!important;flex-basis:25px!important}
  .sidebar .focus-card{padding:11px!important;margin:8px 0!important}
  .sidebar .user-card{padding:9px!important;gap:7px!important}
  .view{padding-left:max(10px,env(safe-area-inset-left))!important;padding-right:max(10px,env(safe-area-inset-right))!important}
  .welcome-row,.page-title{grid-template-columns:minmax(0,1fr)!important}
  .welcome-row .primary,.page-title>.primary,.page-title .subject-page-actions,.calendar-title-actions{width:100%!important}
  .welcome-row h1,.page-title h1{font-size:clamp(24px,8vw,30px)!important;line-height:1.02!important}
  .welcome-row p,.page-title p{font-size:9px!important;line-height:1.4!important}
  #home-view .stats-grid{gap:6px!important}
  #home-view .stat-card{height:104px!important;min-height:104px!important;padding:9px!important;gap:7px!important}
  #home-view .stat-card strong,#home-view .class-today-card strong{font-size:15px!important}
  #home-view .panel{padding:12px!important;border-radius:18px!important}
  #home-view .task-row{grid-template-columns:25px minmax(0,1fr) auto!important;gap:7px!important;padding:8px 0!important}
  #home-view .task-main strong{font-size:9px!important}
  #home-view .task-main small,#home-view .task-date strong,#home-view .task-date small{font-size:6.5px!important}
  .activities-panel{padding:10px!important}
  .activities-list.grid-mode{gap:6px!important}
  .activities-list.grid-mode .activity-card{min-height:180px!important;padding:10px!important;gap:8px!important;border-radius:15px!important}
  .activities-list.grid-mode .activity-card h3{font-size:10px!important;line-height:1.2!important}
  .activities-list.grid-mode .activity-card p{font-size:6.5px!important;line-height:1.25!important}
  .activities-list.grid-mode .activity-meta{gap:3px!important}
  .activities-list.grid-mode .activity-meta span{font-size:5.5px!important;padding:4px 3px!important;letter-spacing:.02em!important}
  .activities-list.grid-mode .activity-deadline strong{font-size:9px!important}
  .activities-list.grid-mode .activity-deadline small{font-size:6.5px!important}
  .subject-hub-card{padding:9px!important;gap:6px!important}
  .modal-backdrop{padding:10px!important}
  .modal{width:100%!important;max-width:620px!important;max-height:calc(100dvh - 20px)!important;padding:17px 13px!important}
  .modal h2{font-size:21px!important;line-height:1.12!important;padding-right:32px}
}
@media(max-width:370px){
  #home-view .stats-grid{grid-template-columns:minmax(0,1fr)!important}
  #home-view .stat-card{height:92px!important;min-height:92px!important}
  .activities-list.grid-mode,.subjects-hub{grid-template-columns:minmax(0,1fr)!important}
}

/* Correção mobile prioritária: escala estável, cards legíveis e tema previsível. */
body{position:relative;touch-action:manipulation}
#app,.app-shell,.main-content,main{width:100%;max-width:100%;min-width:0;overflow-x:hidden!important}
.stat-icon,.modal-icon,.history-icon,.subject-icon,.achievement-icon,.profile-avatar,.avatar,.icon-btn,.mobile-menu{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;flex:0 0 auto}

@media(max-width:480px){
  html,body,.app-shell,main{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  input,select,textarea,.auth-card input,.activity-form input,.activity-form select,.activity-form textarea,.activities-search input,.settings-form input,.settings-form select,.subject-note-editor input,.subject-note-editor textarea,.subject-schedule-form input{font-size:16px!important}
  .view{width:100%!important;max-width:100%!important;padding-left:max(16px,env(safe-area-inset-left))!important;padding-right:max(16px,env(safe-area-inset-right))!important}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;background:transparent!important;border:0!important}
  #home-view .stat-card{display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;grid-template-rows:auto!important;align-items:center!important;align-content:center!important;justify-content:stretch!important;width:100%!important;min-width:0!important;height:116px!important;min-height:116px!important;padding:13px!important;gap:10px!important;overflow:hidden!important}
  #home-view .stat-card .stat-icon{width:36px!important;height:36px!important;font-size:15px!important;align-self:center!important}
  #home-view .stat-card>div:not(.stat-icon){min-width:0!important;padding:0!important;align-self:center!important}
  #home-view .stat-card span{font-size:8px!important;line-height:1.2!important;letter-spacing:.08em!important}
  #home-view .stat-card strong,#home-view .class-today-card strong{font-size:18px!important;line-height:1.08!important;margin-top:3px!important;max-width:100%!important;overflow-wrap:anywhere!important}
  #home-view .stat-card small{font-size:9px!important;line-height:1.25!important;margin-top:5px!important}
  #home-view .stat-card>b{right:9px!important;top:9px!important;font-size:7px!important;max-width:42%!important}
  #home-view .class-today-card{column-gap:12px!important}
  #home-view .class-today-card>div:nth-child(2){padding-left:0!important}
  .welcome-row,.page-title{gap:12px!important;margin-bottom:16px!important}
  .welcome-row>.primary,#dashboardAdd,#activitiesAdd,.page-title>.primary{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:12px 14px!important;white-space:nowrap!important}
  .panel,.activities-panel,.subject-hub-card,.activity-card{min-width:0!important;max-width:100%!important}
  .dashboard-grid,.main-column,.side-column,.activities-list,.subjects-hub{gap:12px!important}
  .activities-list.grid-mode .activity-card{overflow:hidden!important}
  .activities-list.grid-mode .activity-card h3,.activities-list.grid-mode .activity-card p{max-width:100%!important;overflow-wrap:anywhere!important;word-break:normal!important}
  .activity-meta{max-width:100%!important;justify-content:center!important}
  .activity-meta span,.tag{white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important}
  .sidebar{width:min(76%,248px)!important;max-width:min(76%,248px)!important}
  .topbar{width:100%!important;max-width:100%!important;overflow:hidden!important}
}

@media(max-width:349px){
  .stats-grid,#home-view .stats-grid,.activities-list.grid-mode,.subjects-hub{grid-template-columns:minmax(0,1fr)!important}
}

/* Light mode definitivo: superfícies comuns claras; destaques preservam contraste. */
html[data-theme="light"]{--bg:#f5f6f2;--white:#fff;--ink:#151615;--muted:#666b62;--line:rgba(20,22,18,.12)}
html[data-theme="light"] body,html[data-theme="light"] main,html[data-theme="light"] .app-shell{background:#f5f6f2!important;color:#151615!important}
html[data-theme="light"] :is(.panel,.stat-card:not(:first-child),.class-today-card,.activity-card,.subject-hub-card,.calendar-panel,.calendar-day-cell,.plan-column,.plan-item,.profile-hero,.profile-grid .panel,.settings-grid .panel,.history-item,.whatsapp-status-panel,.modal){background:#fff!important;color:#151615!important;border-color:rgba(20,22,18,.12)!important}
html[data-theme="light"] :is(.panel,.stat-card:not(:first-child),.class-today-card,.activity-card,.subject-hub-card,.calendar-panel,.plan-column,.profile-hero,.settings-grid .panel) :is(h1,h2,h3,strong,p,span,small){color:inherit}
html[data-theme="light"] .stat-card:first-child,html[data-theme="light"] .intelligence-card,html[data-theme="light"] .achievement-card.unlocked{background:#b6ff4d!important;color:#111!important}
html[data-theme="light"] :is(.stat-card:first-child,.intelligence-card,.achievement-card.unlocked) :is(h1,h2,h3,strong,p,span,small,i){color:#111!important}
html[data-theme="light"] :is(.card--dark,[data-surface="dark"]){background:#222422!important;color:#fff!important}
html[data-theme="light"] :is(.card--dark,[data-surface="dark"]) :is(h1,h2,h3,strong,p,span,small,i){color:#fff!important}
