/* Hotfix21: isolate historical .row and main styles from the new pages. */
body.learningMode20{font-size:17px!important;line-height:1.55}
#learning20{width:100%;max-width:1760px;padding:24px clamp(16px,3vw,48px)}
#learning20>.row{display:grid!important;align-items:start!important;justify-content:normal!important;gap:24px!important;padding:0!important;margin:0!important;border:0!important}
#learning20>.resourceGrid21{grid-template-columns:280px minmax(0,1fr)}
#learning20>.networkGrid21{grid-template-columns:minmax(0,1fr)320px}
#learning20>.row>[class*="col-"]{width:100%!important;max-width:100%!important;min-width:0;flex:none!important;padding:0!important;margin:0!important}
#learning20 .row:not(.resourceGrid21):not(.networkGrid21){display:flex;flex-wrap:wrap;gap:0!important;align-items:stretch!important;justify-content:normal!important;border:0!important;padding:0;margin-bottom:12px}
#learning20 .topicList20{position:static;max-height:calc(100dvh - 160px)}
#learning20>.resourceGrid21>div:first-child,#learning20>.networkGrid21>section:last-child{position:sticky;top:18px;max-height:calc(100dvh - 36px);overflow:auto}
#learning20 .lead{font-size:1.12rem;line-height:1.75}#learning20 h2{font-size:1.7rem}#learning20 .navbar{font-size:16px}
#learning20 .navbar-brand{font-size:22px}#learning20 .btn{min-height:44px;font-size:15px;padding:10px 16px}
#learning20 label{display:block;font-size:15px;font-weight:600;letter-spacing:0;text-transform:none}
#learning20 .network20{min-width:780px}#learning20 .networkScroll20{min-height:360px}
body.access16>main.shell16{margin:0 auto!important;width:100%!important;max-width:1660px!important;padding:24px clamp(20px,4vw,64px) 60px!important;min-height:100vh}
.access16 .top16{display:flex!important;position:relative;width:100%;height:auto!important;min-height:76px;align-items:center;gap:20px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid #d7e6ec}
.access16 .brand16{font-size:26px}.access16 .nav16 a{font-size:16px;min-height:46px;display:inline-flex;align-items:center}
.access16 .hero16{min-height:400px}.access16 .hero16 h1{font-size:clamp(38px,4.3vw,66px)}.access16 .hero16 p{font-size:18px;max-width:650px}
.access16 .heroText16{padding:clamp(28px,4vw,60px)}.access16 .hero16 img{max-height:none}
.access16 .btn16{font-size:16px;min-height:48px;padding:14px 22px}.access16 .card16{font-size:17px;line-height:1.7}.access16 .card16 h2{font-size:25px}
#tool.compilerView21{grid-column:1/-1!important;width:100%;min-width:0}
#compilerGrid21{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:20px;align-items:stretch;margin:20px 0}
#compilerGrid21>section{min-width:0;border:1px solid #c9dce6;border-radius:16px;padding:20px;background:#f7fafc}
#compilerGrid21 .compilerConsole21{background:#112d3a;color:#e2f1f5}
#compilerGrid21 h2{font-size:20px;margin:0 0 16px}
#compilerGrid21 #source{height:540px;min-height:380px!important;width:100%;resize:vertical;font:16px/1.65 ui-monospace,Consolas,monospace;padding:20px}
#compilerGrid21 #runOutput{height:350px;min-height:300px!important;max-height:700px!important;font:16px/1.7 ui-monospace,Consolas,monospace;padding:20px;background:#091c27;color:#dcf8e6;border:1px solid #376170;border-radius:12px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
#compilerGrid21 #liveForm10{display:flex;gap:12px;align-items:end;margin:16px 0}#compilerGrid21 #liveForm10 label{flex:1;min-width:0;margin:0;color:#d7edf4;font-size:15px;text-transform:none;letter-spacing:0}
#compilerGrid21 #liveInput10{height:60px;font-size:20px;min-width:0;margin:8px 0 0;padding:16px;border-radius:10px;background:#fff;color:#112d3a}
#compilerGrid21 #liveSend10{min-height:60px;font-size:16px;white-space:nowrap;background:#087f8c;color:white}
.compilerToolbar21{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:12px 0 20px;padding:14px;background:#eef5f9;border-radius:14px}
.compilerToolbar21 button{background:#176a80;color:white;border-color:#176a80;min-height:46px}
.compilerToolbar21 button:hover{background:#105366;color:#fff}.compilerToolbar21 label{margin:0;min-width:190px}
#prompt21{background:#1d4858;padding:12px 16px;border-left:4px solid #43c9b2;border-radius:8px;font-size:16px;white-space:pre-wrap;overflow-wrap:anywhere}
.compilerConsole21 .toolbar{display:flex;gap:8px;flex-wrap:wrap}.compilerConsole21 .toolbar button{background:#254f60;color:#fff;border:1px solid #54798b}
.compilerConsole21 .muted,.compilerConsole21 p{color:#c6dee7!important;font-size:14px;line-height:1.6}
#formulaLibrary21{margin:20px 0;padding:24px;background:#f1f7fa;border:1px solid #cfdee7;border-radius:16px}
#formulaLibrary21 select{font-size:17px;min-height:48px}#formulaLibrary21 pre{white-space:pre-wrap;font:17px/1.8 ui-monospace,monospace;padding:20px;background:#12364a;color:#e4f4fb;border-radius:12px}
#formulaLibrary21 p{font-size:16px;line-height:1.8}
@media(max-width:1050px){#learning20>.resourceGrid21{grid-template-columns:230px minmax(0,1fr)}#learning20>.networkGrid21{grid-template-columns:minmax(0,1fr)280px}#compilerGrid21{grid-template-columns:1fr}}
@media(max-width:760px){#learning20>.row{grid-template-columns:minmax(0,1fr)!important}#learning20>.resourceGrid21>div:first-child,#learning20>.networkGrid21>section:last-child{position:static;max-height:none}#learning20 .topicList20{max-height:260px}.access16 .hero16{grid-template-columns:1fr}.access16 .hero16 img{max-height:260px}.access16 .hero16 h1{font-size:38px}#compilerGrid21 #liveForm10{flex-direction:column;align-items:stretch}#compilerGrid21 #source{height:400px}}

/* FIX_MENU_COMPILATORE_23 */
.workspace:has(> #tool.compilerView21) {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
}

.workspace > #tool.compilerView21 {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0;
    box-sizing: border-box;
}

.workspace:has(> #tool.compilerView21) > .workspace-sidebar {
    grid-column: 1 !important;
    grid-row: 2 !important;
    position: static !important;
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 18px;
    align-items: start;
}

.workspace:has(> #tool.compilerView21) > .workspace-sidebar > .panel {
    margin: 0 !important;
    min-width: 0;
}