/* Responsive Learning Center; isolated from UML canvas */
.learning-dialog{width:min(1080px,96vw);max-height:94vh;padding:0;border:1px solid #43617d;border-radius:16px;color:#e8f4ff;background:#102237;box-shadow:0 24px 80px #0009}.learning-dialog::backdrop{background:#061323aa}.learning-shell{padding:20px}.learning-shell header{display:flex;justify-content:space-between;gap:12px;align-items:start;border-bottom:1px solid #37526e;padding-bottom:12px}.learning-shell h2{margin:5px 0;font-size:1.35rem}.learning-shell header p,.learning-warning{color:#adcae1;font-size:.86rem}.learning-eyebrow{font-size:10px;letter-spacing:1px;color:#79d7fa}.learning-shell button{cursor:pointer;color:inherit;background:#1c3956;border:1px solid #42617f;border-radius:9px;padding:9px 12px}.learning-shell button:focus-visible{outline:2px solid #65cffa}.learning-content{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;margin-top:14px;min-height:0}.learning-cases{display:flex;flex-direction:column;gap:8px}.learning-case{text-align:left}.learning-case small{display:block;margin-top:4px;color:#afd4e9}.learning-case.active,.learning-tabs .active{background:#17698a}.learning-detail{min-width:0;max-height:65vh;overflow:auto}.learning-detail h3{margin:2px 0 8px}.learning-detail p{line-height:1.65}.learning-tabs,.learning-actions{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.learning-material{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.learning-lesson{border:1px solid #3f5e78;background:#172c44;border-radius:10px;padding:12px}.learning-lesson h4{margin:0 0 6px}.learning-lesson p{font-size:.88rem;margin:0}.learning-actions button:first-child{background:#0c7897}.welcome-learning-launch{display:block;width:100%;margin:12px 0;padding:11px;background:#146484;color:#fff;border:1px solid #4bb8e0;border-radius:10px}.learning-status-btn{flex-shrink:0;background:#154c70;color:#e7f9ff;border:1px solid #3a88ad;border-radius:7px;padding:4px 9px;font-size:12px}@media(max-width:700px){.learning-shell{padding:12px}.learning-content{grid-template-columns:1fr}.learning-cases{flex-direction:row;overflow:auto}.learning-case{flex:0 0 180px}.learning-material{grid-template-columns:1fr}.learning-detail{max-height:52vh}.learning-shell h2{font-size:1.08rem}}

/* HF38: TRUE WORKSPACE, not modal; fills the application viewport. */
.learning-workspace[hidden]{display:none!important}
.learning-workspace.learning-workspace-open{display:block!important;position:fixed!important;inset:40px 5px 36px!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;z-index:11000!important;margin:0!important;padding:0!important;border:1px solid #345875!important;border-radius:13px!important;overflow:hidden!important;background:#0b1d31!important;color:#e7f5ff!important;box-shadow:none!important}
.learning-workspace .learning-shell{height:100%!important;width:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;padding:0!important;background:#101f36}
.learning-workspace .learning-workspace-header{flex:0 0 auto;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px;padding:17px 23px!important;background:linear-gradient(110deg,#10344e,#1a2948);border-bottom:1px solid #365575!important}
.learning-workspace .learning-workspace-header h2{font-size:1.4rem!important;margin:4px 0!important;color:#f5fbff!important}.learning-workspace .learning-workspace-header p{margin:4px 0;color:#a8cbe5}.learning-workspace .learning-top-actions{display:flex;align-items:center;gap:12px}.learning-workspace .learning-workspace-tag{border:1px solid #386d89;padding:7px 12px;border-radius:9px;color:#7fe1ed;font-size:12px}
.learning-workspace #learningClose{background:#25445e!important;white-space:nowrap}
.learning-workspace .learning-content{display:grid!important;grid-template-columns:minmax(240px,280px) minmax(0,1fr)!important;gap:0!important;min-height:0!important;flex:1!important;margin:0!important;overflow:hidden!important}
.learning-workspace .learning-sidebar{display:flex;flex-direction:column;min-height:0;overflow-y:auto;overflow-x:hidden;background:#102b43;border-right:1px solid #355979;padding:18px 12px;gap:10px}
.learning-workspace .learning-sidebar-heading{padding:6px 9px;color:#69d8ee;letter-spacing:1.1px;font-size:11px;font-weight:800}.learning-workspace .learning-case-heading{margin-top:13px;border-top:1px solid #36546e;padding-top:18px}
.learning-workspace #hf24LearningNavigation{display:flex!important;flex-direction:column!important;gap:7px!important;width:100%!important;margin:0!important;padding:0!important;overflow:visible!important;background:transparent!important;border:none!important}
.learning-workspace #hf24LearningNavigation button{width:100%!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:11px!important;text-align:left!important;white-space:normal!important;min-height:43px!important;padding:10px 12px!important;font-size:12px!important;background:#1a3c59!important;border:1px solid #3b6381!important;border-radius:9px!important}
.learning-workspace #hf24LearningNavigation button.hf24-current{background:#087b8b!important;border-color:#3fd4df!important}
.learning-workspace .learning-cases{display:flex!important;flex-direction:column!important;gap:7px!important;overflow:visible!important}
.learning-workspace .learning-case{width:100%!important;flex:initial!important;font-size:12px!important;text-align:left;padding:10px 12px!important}.learning-workspace .learning-case.active{background:#12677e!important;border-color:#4bd3e1!important}.learning-workspace .learning-case small{font-size:11px!important}
.learning-workspace .learning-detail{min-height:0!important;height:100%!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding:25px clamp(16px,3vw,40px) 35px!important;background:#15273e!important}
.learning-workspace .learning-main-heading{padding-bottom:14px;border-bottom:1px solid #34516d;margin-bottom:17px}.learning-workspace .learning-main-heading h3{font-size:clamp(19px,2vw,27px);margin:7px 0 8px;color:#fff}.learning-workspace .learning-main-heading p{color:#c5daed}.learning-workspace #learningOutcomes{color:#86dcef;font-size:13px}
.learning-workspace .hf24-notice{padding:12px 14px!important;margin:0 0 16px!important;border:1px solid #35748e!important;border-radius:9px!important;background:#123c57!important;font-size:12px!important;color:#cee8f5!important}
.learning-workspace .learning-material{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}.learning-workspace .learning-lesson{padding:18px!important;min-height:110px;background:#183550!important;border-color:#426889!important}.learning-workspace .learning-actions{margin:23px 0 12px;gap:10px}
.learning-workspace .learning-workspace-footer{display:flex;justify-content:space-between;gap:12px;padding:8px 20px;font-size:11px;color:#a7c4db;border-top:1px solid #345674;background:#102c42;flex:0 0 auto}
@media(max-width:760px){.learning-workspace.learning-workspace-open{inset:0!important;border-radius:0!important}.learning-workspace .learning-content{grid-template-columns:minmax(145px,35%) minmax(0,1fr)!important}.learning-workspace .learning-sidebar{padding:10px 6px}.learning-workspace .learning-detail{padding:14px 12px!important}.learning-workspace .learning-material{grid-template-columns:1fr!important}.learning-workspace .learning-workspace-tag{display:none}.learning-workspace .learning-workspace-footer{flex-wrap:wrap}.learning-workspace .learning-workspace-header{padding:12px!important}.learning-workspace .learning-workspace-header h2{font-size:1.05rem!important}}

/* HF39 — exclusive workspace mode: never display UML editor underneath Learning Center.
   The editor DOM remains mounted, preserving in-memory project and diagram state. */
body.s2d-learning-active{margin:0!important;padding:0!important;width:100%!important;height:100dvh!important;overflow:hidden!important;background:#101f36!important}
body.s2d-learning-active > .app{display:none!important}
body.s2d-learning-active > #learningDialog.learning-workspace-open{
 position:relative!important;inset:auto!important;display:block!important;
 width:100%!important;height:100dvh!important;max-height:100dvh!important;
 margin:0!important;border:0!important;border-radius:0!important;box-sizing:border-box!important;
 z-index:auto!important;box-shadow:none!important;overflow:hidden!important
}
body.s2d-learning-active #learningDialog .learning-shell{height:100%!important;max-height:100%!important}
body.s2d-learning-active #learningDialog .learning-content{min-height:0!important;overflow:hidden!important}
body.s2d-learning-active #learningDialog .learning-sidebar,
body.s2d-learning-active #learningDialog .learning-detail{overscroll-behavior:contain;scrollbar-width:thin}
@media(max-width:760px){body.s2d-learning-active > #learningDialog.learning-workspace-open{height:100dvh!important}}
