/* Layout comum: todos os valores visuais vêm de theme.css. */
body.portal-body{--bg:var(--theme-background);--card:var(--theme-surface);--text:var(--theme-text);--muted:var(--theme-muted);--line:var(--theme-border);--blue:var(--theme-accent);--purple:var(--theme-accent);margin:0;background:var(--theme-background);color:var(--theme-text);font-family:var(--theme-font)}.portal-body *{box-sizing:border-box}.portal-body a{text-decoration:none}.portal-body .icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}.portal-shell{display:flex;min-height:100vh}.portal-sidebar{width:var(--theme-sidebar-width);height:100vh;position:sticky;top:0;z-index:30;background:var(--theme-surface);border-right:1px solid var(--theme-border);display:flex;flex-direction:column;transition:width .22s}.sidebar-brand{height:var(--theme-header-height);border-bottom:1px solid var(--theme-border);display:flex;align-items:center;gap:13px;padding:0 19px;color:var(--theme-primary);white-space:nowrap;font-size:20px;font-weight:800}.sidebar-brand .sidebar-label span{color:var(--theme-accent)}.sidebar-logo{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:var(--theme-primary);color:#fff;font-size:26px}.sidebar-nav{flex:1;overflow:auto;padding:19px 12px}.sidebar-link{display:flex;align-items:center;gap:15px;padding:14px 13px;color:var(--theme-muted);font-size:15px;border-radius:10px;margin:2px 0;white-space:nowrap}.sidebar-link .icon{color:var(--theme-muted)}.sidebar-link:hover,.sidebar-link.is-active{background:var(--theme-accent-soft);color:var(--theme-accent)}.sidebar-link:hover .icon,.sidebar-link.is-active .icon{color:var(--theme-accent)}.sidebar-collapse{min-height:64px;border:0;border-top:1px solid var(--theme-border);background:var(--theme-surface);color:var(--theme-accent);display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;font-size:15px}.sidebar-is-collapsed .portal-sidebar{width:var(--theme-sidebar-collapsed)}.sidebar-is-collapsed .sidebar-label{display:none}.sidebar-is-collapsed .sidebar-brand{justify-content:center;padding:0}.sidebar-is-collapsed .sidebar-link{justify-content:center;padding:15px}.sidebar-is-collapsed .sidebar-collapse .icon{transform:rotate(180deg)}.portal-workspace{min-width:0;flex:1}.portal-header{height:var(--theme-header-height);background:var(--theme-primary);color:#fff;display:flex;align-items:center;padding:0 28px;gap:14px}.portal-header h1{font-size:21px;font-weight:500;margin:0;flex:1}.header-actions{display:flex;align-items:center;gap:17px}.header-actions button{border:0;background:transparent;color:white;width:34px;height:34px;display:grid;place-items:center;cursor:pointer}.header-actions button:first-child{background:#ffffff1b;border:1px solid #ffffff36;border-radius:50%;width:42px;height:42px}.header-avatar{width:34px;height:34px;border:2px solid white;border-radius:50%;display:grid;place-items:center;background:#163b53;font-weight:800}.header-name{font-size:14px}.mobile-menu{display:none}.portal-content{max-width:none;padding:26px 28px 48px;margin:auto}.portal-content .page-heading{padding:8px 0 25px}.portal-content .page-heading a,.portal-content .page-heading small{color:var(--theme-accent)}.portal-content .page-heading h1{color:var(--theme-text)}.portal-content .page-heading p{color:var(--theme-muted)}.portal-content .panel,.portal-content .question{background:var(--theme-surface);border:1px solid var(--theme-border);box-shadow:var(--theme-shadow);border-radius:var(--theme-radius);color:var(--theme-text)}.portal-content .panel p{color:var(--theme-muted)}.portal-content .button{background:var(--theme-accent);border-radius:999px}.portal-content .button.white{background:#fff;color:var(--theme-accent)}.portal-content .text-link,.portal-content .big-number{color:var(--theme-accent)}.portal-content .subject-grid.large{padding:0 0 40px}.portal-content .course-banner{margin:0 0 28px}.portal-content .course-layout,.portal-content .lesson-layout,.portal-content .questions{padding-left:0;padding-right:0}.portal-content .filter-pills{padding-left:0;padding-right:0}.overview-heading,.chart-panel,.kpi{background:var(--theme-surface);border:1px solid var(--theme-border);box-shadow:var(--theme-shadow);border-radius:var(--theme-radius)}.overview-heading{min-height:158px;padding:27px;display:flex;align-items:center;gap:20px;justify-content:space-between}.overview-heading small,.panel-eyebrow{font-size:12px;letter-spacing:2px;font-weight:800;color:var(--theme-accent)}.overview-heading h2{font-size:30px;line-height:1.18;margin:12px 0}.overview-heading p,.overview-intro p,.chart-panel p{color:var(--theme-muted);margin:0;font-size:15px}.heading-actions{display:flex;gap:9px;flex-wrap:wrap}.chip,.overview-tabs a{border:1px solid var(--theme-border);border-radius:999px;background:var(--theme-surface);padding:13px 17px;color:var(--theme-muted);font-weight:700;white-space:nowrap}.chip:hover,.overview-tabs a:hover{color:var(--theme-accent);border-color:var(--theme-accent)}.chip-accent,.overview-tabs a.active{background:var(--theme-accent);border-color:var(--theme-accent);color:#fff}.overview-tabs{display:flex;gap:10px;overflow:auto;padding:25px 12px}.overview-intro{margin:10px 0 21px}.overview-intro h2{font-size:25px;margin:0 0 10px}.overview-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.kpi{min-height:152px;padding:18px;display:flex;flex-direction:column;color:var(--theme-text)}.kpi small{color:var(--theme-muted);font-size:13px;margin-top:12px}.kpi strong{font-size:29px;margin:13px 0}.kpi strong em{font-size:15px;font-style:normal;color:var(--theme-muted)}.kpi-foot{color:var(--theme-accent);font-size:12px;font-weight:700}.kpi.featured{background:var(--theme-primary);color:white;border-color:var(--theme-primary)}.kpi.featured small,.kpi.featured .kpi-foot{color:#bed5e3}.kpi-icon{display:grid;place-items:center;width:32px;height:32px;color:var(--theme-primary)}.kpi-icon.orange{color:var(--theme-accent)}.kpi-icon.green{color:var(--theme-success)}.kpi-icon.blue{color:var(--theme-blue)}.kpi.featured .kpi-icon{color:#fff}.overview-charts{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr);gap:18px;margin-top:18px}.chart-panel{padding:23px;min-width:0}.chart-panel h3{font-size:19px;margin:10px 0}.chart-title{display:flex;justify-content:space-between;align-items:start}.chart-badge{border-radius:30px;background:var(--theme-surface-muted);padding:10px 13px;color:var(--theme-primary);font-size:12px;font-weight:700}.chart-key{font-size:12px;color:var(--theme-muted);margin-top:26px}.chart-key i,.donut-legend i{display:inline-block;width:11px;height:11px;border-radius:50%;background:var(--theme-accent);margin-right:5px}.bars-chart{height:280px;display:grid;grid-template-columns:repeat(8,minmax(50px,1fr));gap:9px;align-items:end;margin-top:8px;padding-top:15px;background:repeating-linear-gradient(to top,transparent 0,transparent 54px,var(--theme-border) 55px,transparent 56px)}.bar-column{min-width:0;height:100%;display:flex;flex-direction:column;justify-content:end;align-items:center}.bar-value{font-size:12px;color:var(--theme-muted)}.bar-track{height:195px;width:60%;display:flex;align-items:end}.bar-track i{display:block;width:100%;border-radius:8px 8px 0 0;min-height:4px}.bar-column small{font-size:11px;text-align:center;color:var(--theme-muted);margin-top:9px;overflow:hidden;text-overflow:ellipsis;width:100%}.chart-donut{width:215px;height:215px;margin:28px auto;background:conic-gradient(var(--theme-blue) calc(var(--value)*1%),var(--theme-warning) 0);border-radius:50%;display:grid;place-items:center}.chart-donut>div{width:148px;height:148px;background:var(--theme-surface);border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}.chart-donut strong{font-size:32px;color:var(--theme-text)}.chart-donut span{color:var(--theme-muted)}.donut-legend{display:flex;justify-content:space-between;gap:10px;color:var(--theme-muted);font-size:12px}.donut-legend b{color:var(--theme-text)}.donut-legend .good{background:var(--theme-blue)}.donut-legend .other{background:var(--theme-warning)}.overview-bottom{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.next-courses{margin-top:17px}.next-courses a{display:flex;align-items:center;gap:12px;border-top:1px solid var(--theme-border);padding:13px 0;color:var(--theme-text)}.next-courses a>.icon{margin-left:auto;color:var(--theme-accent)}.next-courses small{display:block;color:var(--theme-muted);margin-top:4px}.course-icon{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;font-size:22px}.study-steps{display:grid;gap:11px;margin-top:20px}.study-steps a{color:var(--theme-text);padding:12px;border:1px solid var(--theme-border);border-radius:var(--theme-radius-small)}.study-steps span{color:var(--theme-accent);font-weight:800;margin-right:10px}.toast-stack{position:fixed;right:24px;bottom:24px;z-index:100;display:grid;gap:10px}.portal-toast{background:var(--theme-primary);color:#fff;min-width:290px;max-width:390px;border-radius:14px;box-shadow:0 12px 38px #0003;padding:13px 15px;display:flex;align-items:center;gap:12px;animation:toast-in .2s ease}.portal-toast.success{background:#126c45}.portal-toast.error{background:#a52c3d}.toast-symbol{border:1px solid #fff9;border-radius:50%;width:24px;height:24px;text-align:center;font-weight:800}.portal-toast button{margin-left:auto;background:none;border:0;color:#fff;font-size:22px;cursor:pointer}@keyframes toast-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media(max-width:1100px){.overview-kpis{grid-template-columns:repeat(2,1fr)}.overview-charts{grid-template-columns:1fr}.overview-heading{align-items:start;flex-direction:column}.heading-actions{width:100%}}@media(max-width:760px){.portal-sidebar{position:fixed;transform:translateX(-100%);width:var(--theme-sidebar-width)!important}.sidebar-mobile-open .portal-sidebar{transform:translateX(0)}.portal-header{padding:0 16px}.portal-header h1{font-size:18px}.mobile-menu{display:block;border:0;background:transparent;color:white;font-size:23px}.header-name{display:none}.portal-content{padding:15px}.overview-heading h2{font-size:23px}.overview-kpis,.overview-bottom{grid-template-columns:1fr}.bars-chart{overflow:auto;min-width:550px}.overview-charts .chart-panel:first-child{overflow:auto}.portal-content .subject-grid.large{grid-template-columns:repeat(2,1fr)}}
