/* Versione Liquid Glass anche per le schermate del corso. */
/* Size the columns against the laboratory's available width, including when
   the course sidebar is visible. Grid items must not keep intrinsic text or
   range-input widths that can extend underneath the adjacent graph. */
.lab-layout{grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr))}
.lab-layout>*,.lab-controls>*,.lab-field>*,.lab-readout{min-width:0;max-width:100%}
.lab-controls{overflow-wrap:anywhere}
.lab-field{grid-template-columns:minmax(0,1fr) auto}
.lab-field input[type=range]{margin-inline:0}
.lab-figure{width:100%}
.lab-figure canvas{max-width:100%;height:auto;aspect-ratio:auto}
.lab-controls mjx-container{max-width:100%;overflow-x:auto;overflow-y:hidden}
.lab-controls mjx-container:not([display=true]){display:inline-block;vertical-align:middle}
.training-primary,.study-action,.training-tab[aria-selected=true],.training-tab.is-active,.lab-tab[aria-selected=true]{color:#fff;background:var(--brand-text);border-color:var(--brand-text)}
.training-primary:hover,.study-action:hover{background:#006c49;color:#fff}
.training-primary:focus-visible,.study-action:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
body{background:radial-gradient(ellipse at 0 0,#c9e9dcb8,transparent 50%),radial-gradient(ellipse at 95% 30%,#d4e9f2a3,transparent 45%),#eef5f1;background-attachment:fixed}
.course-masthead{margin-block:14px;padding:12px 22px;border:1px solid #ffffffdf;border-radius:23px;background:#ffffffb8;box-shadow:inset 0 1px 1px #fff,0 8px 28px #284c3908}
.toolbar{background:#f0f8f0ab;border-block:1px solid #ffffffc9;backdrop-filter:blur(24px) saturate(150%)}
.workspace-sidebar{background:linear-gradient(145deg,#ffffffd6,#ffffffa1);border:1px solid #ffffffdf;border-radius:23px;box-shadow:inset 0 1px 1px white,0 10px 30px #224b3608;backdrop-filter:blur(22px)}
.workspace-nav a{border-radius:13px}.workspace-nav a[aria-current=page]{background:linear-gradient(135deg,#d9efdf,#f0fff6);box-shadow:inset 0 1px 0 white}
.workspace-action,.study-start,.study-card,.panel,.exercise,.exam-plan,.learning-dashboard{background:linear-gradient(145deg,#ffffffe3,#ffffffba);border:1px solid #ffffffdb;border-radius:21px;box-shadow:inset 0 1px 1px white,0 8px 26px #264a3606}
.next-session{background:radial-gradient(ellipse at 90% 0,#78b6a633,transparent 60%),linear-gradient(125deg,#084d40f5,#0d584aef);border:1px solid #ffffffa1;border-radius:25px;box-shadow:inset 0 1px 1px #ffffff50,0 14px 30px #1c604d12}
.course-button,.study-action,.study-secondary,.control{border-radius:13px;box-shadow:inset 0 1px 1px #ffffff80}.course-button,.study-action{border-color:#ffffff8f}.next-session .course-button{border-radius:25px;background:linear-gradient(135deg,#fff,#edfff5)}
#search{border-color:#ffffffdf;border-radius:16px;background:#ffffffc7}.local-course-note{border-color:#fff;border-radius:16px;background:#e7f5ecce}
html[data-theme=dark] body{background:radial-gradient(ellipse at 0 0,#244c3e,transparent 50%),#14251f}
html[data-theme=dark] .workspace-sidebar,html[data-theme=dark] .course-masthead,html[data-theme=dark] .toolbar{background:#1d352ce8;border-color:#54736480}
html[data-theme=dark] .workspace-action,html[data-theme=dark] .study-start,html[data-theme=dark] .study-card,html[data-theme=dark] .panel,html[data-theme=dark] .exercise,html[data-theme=dark] .exam-plan,html[data-theme=dark] .learning-dashboard{background:#1c322aec;border-color:#48665788;box-shadow:inset 0 1px 0 #ffffff10}
html[data-theme=dark] #search,html[data-theme=dark] .local-course-note{background:#233f32;color:#edf6f0;border-color:#54736480}
html[data-theme=dark] .workspace-nav a[aria-current=page]{background:#2b4b3c;box-shadow:inset 0 1px 0 #ffffff20}
@media(max-width:760px){body{background-attachment:scroll}.course-masthead{width:calc(100% - 24px);padding:10px 15px;border-radius:21px}.workspace-sidebar{background:#ffffffc9;border-radius:18px}.workspace-action{border-radius:21px}.next-session{padding:24px}}
@media(prefers-reduced-transparency:reduce){body{background:var(--paper)}.toolbar,.course-masthead,.workspace-sidebar,.workspace-action,.study-card,.panel,.exercise,.exam-plan{background:var(--card);backdrop-filter:none}}
