/* Authenticated PDF, editor and CMS test workspace. All colors follow the site theme. */
.learning-problem{min-width:0}.learning-problem>.page-heading{margin:12px 0 18px;gap:12px}.learning-problem>.page-heading h1{font-size:25px}.learning-problem .problem-actions{margin-bottom:0}.learning-problem>.page-heading p{font-size:14px}.learning-workspace{--lw-reader:60%;--lw-editor-height:55%;min-width:0;color:var(--academy-text,#e8f0f8)}
.lw-workspace-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px}.lw-view-modes,.lw-layout-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.learning-workspace button,.learning-workspace a{font-size:14px}.learning-workspace button{min-height:44px}.lw-view-modes button[aria-pressed=true],.lw-mobile-tabs button[aria-pressed=true]{border-color:var(--academy-accent,#62dfba);background:var(--academy-raised,#182a3d);color:var(--academy-accent,#62dfba)}.lw-layout-controls>span{font-size:14px;color:var(--academy-muted,#a4b7cb)}.lw-layout-controls button{padding:7px 11px}
.lw-panes{height:clamp(650px,calc(100dvh - 215px),1000px);min-height:0;display:grid;grid-template-columns:minmax(0,var(--lw-reader)) 14px minmax(0,1fr);position:relative;isolation:isolate}.lw-reader,.lw-writer{min-width:0;min-height:0;overflow:hidden}.lw-reader{border:1px solid var(--academy-line,#2b4056);border-radius:16px;display:flex;flex-direction:column;background:var(--academy-surface,#111f30)}.lw-pane-toolbar{min-height:52px;padding:8px 14px;display:flex;justify-content:space-between;align-items:center;gap:8px;background:var(--academy-raised,#182a3d);border-bottom:1px solid var(--academy-line,#2b4056);flex-shrink:0}.lw-pane-toolbar strong{font-size:16px}.lw-pane-toolbar>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.learning-workspace .lw-statement{display:block;flex:1;width:100%;height:100%;min-height:0;max-height:none;margin:0;border:0;border-radius:0;background:#fff}.lw-reader-footer{font-size:14px;color:var(--academy-muted,#a4b7cb);display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;min-height:44px;padding:8px 14px;border-top:1px solid var(--academy-line,#2b4056)}.lw-reader-footer a{color:var(--academy-accent,#62dfba)}
.lw-divider{cursor:col-resize;display:grid;place-items:center;min-height:0;position:relative;touch-action:none;z-index:3}.lw-divider span{height:54px;width:4px;background:var(--academy-control,#647d94);border-radius:4px}.lw-divider:hover span,.lw-divider:focus-visible span,.lw-horizontal-divider:hover span,.lw-horizontal-divider:focus-visible span{background:var(--academy-accent,#62dfba)}.lw-divider:focus-visible,.lw-horizontal-divider:focus-visible{outline:2px solid var(--academy-focus,#7ac8ff);outline-offset:-2px;border-radius:6px}.lw-splitting::after{content:"";position:absolute;inset:0;z-index:2;cursor:grabbing}.lw-splitting{user-select:none}.lw-horizontal-divider{cursor:row-resize;display:grid;place-items:center;flex-shrink:0;height:14px;touch-action:none;position:relative;z-index:3}.lw-horizontal-divider span{width:54px;height:4px;background:var(--academy-control,#647d94);border-radius:4px}
.lw-writer{display:flex;flex-direction:column}.lw-editor-pane{display:flex;flex-direction:column;min-height:230px;height:var(--lw-editor-height);overflow:auto;flex-shrink:0;border:1px solid var(--academy-line,#2b4056);border-radius:16px;background:var(--academy-surface,#111f30)}.lw-submit-form{display:flex;flex-direction:column;gap:8px;padding:10px 12px;flex:1;min-height:0}.lw-language{display:flex;align-items:center;gap:10px;font-size:14px;flex-shrink:0}.lw-language select{width:auto;max-width:100%;flex:1;min-height:44px}.lw-code-label{font-size:14px;color:var(--academy-muted,#a4b7cb);margin:0}.lw-submit-form>.academy-editor{flex:1;min-height:180px;display:flex;flex-direction:column;overflow:hidden}.lw-submit-form .academy-editor .CodeMirror{height:auto;flex:1;min-height:130px}.lw-submit-form .academy-editor.is-expanded{min-height:0}.lw-submit-form .academy-editor.is-expanded .CodeMirror{min-height:100px}.lw-submit-form .academy-editor-toolbar{padding:5px;gap:4px;flex-shrink:0}.lw-submit-form .academy-editor button{padding:4px 7px}.lw-submit-form .academy-editor-toolbar .secondary{font-size:14px}.lw-submit-form .academy-editor-symbols{padding:5px;gap:4px;flex-shrink:0}.lw-submit-form .academy-editor-symbols button{min-width:34px;min-height:36px}.lw-submit-form .academy-editor-help{padding:2px 8px;font-size:14px;flex-shrink:0}.lw-submit-form .academy-editor-help summary{min-height:32px}.lw-submit-form .academy-editor .editor-exit{margin:0 8px 5px;min-height:32px;text-align:left}.lw-upload{font-size:14px;flex-shrink:0}.lw-upload summary{min-height:36px;align-content:center;cursor:pointer;color:var(--academy-muted,#a4b7cb)}.lw-upload .help{font-size:14px;margin:8px 0}.lw-submit-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0}.lw-submit-actions>span{font-size:14px;overflow-wrap:anywhere}.lw-submit-actions>button{white-space:nowrap}
.lw-tools{border:1px solid var(--academy-line,#2b4056);border-radius:16px;display:flex;flex-direction:column;flex:1;min-height:190px;overflow:hidden;background:var(--academy-surface,#111f30)}.lw-tool-tabs{display:flex;overflow-x:auto;gap:0;flex-shrink:0;border-bottom:1px solid var(--academy-line,#2b4056);padding:0 6px;scrollbar-width:thin}.lw-tool-tabs button{font-size:14px;white-space:nowrap;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;padding:9px 11px;color:var(--academy-muted,#a4b7cb)}.lw-tool-tabs button[aria-selected=true]{color:var(--academy-accent,#62dfba);border-bottom-color:var(--academy-accent,#62dfba)}.lw-tool-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:14px}.lw-tool-panel[hidden],.learning-workspace [hidden]{display:none!important}.lw-tool-panel h3{font-size:17px;margin:0 0 10px}.lw-tool-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.lw-tool-heading h3{margin:0}.lw-tool-panel textarea{font-size:16px;max-width:100%}.lw-tool-panel #note{min-height:180px}.lw-test-policy,.lw-run-rule,.lw-result-snapshot{font-size:14px;color:var(--academy-muted,#a4b7cb);line-height:1.7;overflow-wrap:anywhere}.lw-test-policy{margin:10px 0}.lw-test-inputs{display:grid;grid-template-columns:1fr;gap:12px}.lw-test-inputs label{display:block;font-size:14px}.lw-test-inputs textarea{display:block;margin-top:7px;min-height:95px;font:15px/1.6 Consolas,monospace;resize:vertical}.lw-test-inputs .lw-expected-toggle{display:flex;align-items:center;gap:8px;min-height:40px;cursor:pointer}.lw-expected-toggle input{width:18px;height:18px;flex-shrink:0;accent-color:var(--academy-accent,#62dfba)}.lw-run-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.lw-run-actions span{font-size:14px;overflow-wrap:anywhere}.lw-run-feedback{font-size:14px;margin-top:10px;color:var(--academy-info,#9bc7ff);line-height:1.7;overflow-wrap:anywhere}.lw-feedback-error,.lw-result-error{color:var(--academy-danger,#ff9a9f)}.lw-stale,.lw-result-warning{background:var(--academy-warning-bg,#3b3020);color:var(--academy-warning,#f5d18b);border-radius:8px;padding:10px 12px;font-size:14px;line-height:1.7}.lw-output-result{border:1px solid var(--academy-line,#2b4056);background:var(--academy-input,#0c1928);border-radius:12px;margin-top:14px;padding:12px}.lw-result-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.lw-result-heading>span{font-size:14px;color:var(--academy-muted,#a4b7cb)}.lw-result-complete{color:var(--academy-success,#7be0ad)}.lw-output-result h4{font-size:14px;margin:12px 0 6px}.lw-output,.lw-compile-log pre{font:14px/1.7 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;background:var(--academy-bg,#091320);color:var(--academy-text,#e8f0f8);padding:10px;border-radius:8px;margin:0;min-height:40px}.lw-result-message,.lw-comparison{font-size:14px;line-height:1.7;overflow-wrap:anywhere}.lw-compile-log{margin-top:10px;font-size:14px}.lw-compile-log summary{cursor:pointer;min-height:40px;align-content:center}.lw-run-rule{margin:14px 0 0}.lw-mobile-tabs{display:none}.learning-workspace button:focus-visible,.learning-workspace a:focus-visible,.learning-workspace summary:focus-visible{outline:3px solid var(--academy-focus,#7ac8ff);outline-offset:2px}
.learning-workspace[data-mode=read] .lw-panes{grid-template-columns:minmax(0,1fr)}.learning-workspace[data-mode=read] .lw-writer,.learning-workspace[data-mode=read] .lw-divider{display:none}.learning-workspace[data-mode=write] .lw-panes{grid-template-columns:minmax(0,1fr)}.learning-workspace[data-mode=write] .lw-reader,.learning-workspace[data-mode=write] .lw-divider{display:none}.learning-workspace.lw-expanded{position:fixed;inset:10px;z-index:400;padding:14px;background:var(--academy-bg,#091320);border:1px solid var(--academy-control,#647d94);border-radius:16px;display:flex;flex-direction:column;box-shadow:0 0 0 15px #020712b3}.lw-expanded .lw-panes{height:auto;flex:1}.lw-expanded .lw-workspace-toolbar,.lw-expanded .lw-mobile-tabs{flex-shrink:0}
@media(min-width:1550px){.lw-test-inputs{grid-template-columns:1fr 1fr}.learning-workspace[data-mode=split] .lw-test-inputs{grid-template-columns:1fr}.lw-panes{height:calc(100dvh - 220px)}}
@media(max-width:1100px){.lw-layout-controls>[data-lw-ratio]{display:none}.lw-view-modes button{padding-inline:9px}.lw-workspace-toolbar{gap:8px}.lw-panes{grid-template-columns:minmax(0,var(--lw-reader)) 12px minmax(0,1fr)}.lw-pane-toolbar{padding:7px 10px}.lw-tool-scroll{padding:12px}.lw-submit-form{padding:8px}.lw-submit-form .academy-editor-toolbar button{min-width:38px}.lw-submit-form .academy-editor-toolbar{gap:3px}.lw-pane-toolbar>div{gap:4px}}
@media(max-width:960px){.lw-view-modes{display:none}.lw-workspace-toolbar{justify-content:flex-end}.lw-mobile-tabs{display:flex;gap:8px;margin-bottom:10px}.lw-mobile-tabs button{flex:1;border:1px solid var(--academy-control,#647d94);border-radius:10px;min-height:44px;background:var(--academy-surface,#111f30);color:var(--academy-muted,#a4b7cb)}.lw-panes,.learning-workspace[data-mode=read] .lw-panes,.learning-workspace[data-mode=write] .lw-panes{display:flex;flex-direction:column;height:calc(100dvh - 260px);min-height:650px}.lw-divider{display:none}.learning-workspace[data-mobile=read] .lw-reader{display:flex;flex:1}.learning-workspace[data-mobile=read] .lw-writer{display:none}.learning-workspace[data-mobile=write] .lw-reader{display:none}.learning-workspace[data-mobile=write] .lw-writer{display:flex;flex:1}.lw-expanded .lw-panes{flex:1;min-height:0;height:auto}.lw-reader-footer{align-items:flex-start}.lw-editor-pane{min-height:280px}.lw-tools{min-height:220px}.lw-test-inputs{grid-template-columns:1fr}.lw-pane-toolbar [data-lw-focus]{display:none}}
@media(max-width:560px){.learning-problem>.page-heading h1{font-size:22px}.learning-problem>.page-heading{margin:12px 0}.learning-workspace.lw-expanded{inset:3px;padding:8px}.lw-workspace-toolbar{margin-bottom:8px}.lw-layout-controls button{padding-inline:9px}.lw-panes{min-height:700px}.lw-pane-toolbar{padding:7px 10px;flex-wrap:wrap}.lw-reader-footer{font-size:14px;padding:8px 10px}.lw-submit-actions{align-items:flex-start}.lw-submit-actions>span{max-width:58%}.lw-tool-tabs button{padding-inline:10px}.lw-test-inputs textarea{font-size:16px}.lw-result-heading{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.learning-workspace *{scroll-behavior:auto;animation:none;transition:none}}
.lw-editor-pane{min-height:370px;overflow:hidden}.lw-submit-form{gap:8px}.lw-code-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.lw-submit-form>.academy-editor{min-height:140px}.lw-submit-form .academy-editor .CodeMirror{min-height:90px}.lw-editor-options{display:flex;align-items:flex-start;gap:6px 14px;flex-wrap:wrap;flex-shrink:0}.lw-editor-options>details{font-size:14px;flex:1;min-width:140px}.lw-editor-options>details>summary{min-height:36px;align-content:center;cursor:pointer;color:var(--academy-muted,#a4b7cb)}.lw-editor-options:has(details[open]){max-height:160px;overflow:auto}.lw-editor-helpers .academy-editor-symbols{border:1px solid var(--academy-line,#2b4056);border-radius:8px}.lw-editor-helpers .academy-editor-help{font-size:14px}.lw-editor-helpers .editor-exit{font-size:14px;min-height:36px}.lw-submit-actions{margin:0;padding:0}.lw-submit-form .academy-editor.is-expanded{min-height:0}
@media(max-width:560px){.lw-editor-pane{min-height:410px}.lw-editor-options{gap:4px}.lw-editor-options>details{min-width:120px}.lw-editor-options>details>summary{font-size:14px}.lw-editor-options:has(details[open]){max-height:130px}}
@media(min-width:961px){
 body.learning-page .sidebar{width:80px;padding:20px 10px}
 body.learning-page .workspace{margin-left:80px}
 body.learning-page .sidebar .brand{padding:0 7px;margin-bottom:25px}
 body.learning-page .sidebar .brand>span,body.learning-page .nav-caption,body.learning-page .sidebar-bottom>div{display:none}
 body.learning-page .sidebar nav a{font-size:0;gap:0;justify-content:center;padding:12px}
 body.learning-page .sidebar nav a>span{font-size:23px;width:24px}
 body.learning-page .sidebar-bottom{flex-direction:column;padding-top:12px;gap:12px}
 body.learning-page .sidebar-bottom button{margin-left:0}
 body.learning-page .topbar{height:56px;padding:0 24px}
 body.learning-page #content{padding:18px 24px}
 body.learning-page .learning-problem>.page-heading{margin:4px 0 12px}
 body.learning-page .learning-problem>.page-heading h1{margin-bottom:4px}
 body.learning-page .learning-problem>.page-heading p{margin-bottom:0}
 body.learning-page .lw-panes{height:clamp(560px,calc(100dvh - 235px),1100px)}
 body.learning-page .lw-expanded .lw-panes{height:auto;min-height:0}
}
.lw-submit-form .lw-language{margin-bottom:0}.lw-language select{margin:0}
.lw-editor-helpers>.academy-editor-toolbar{display:flex;flex-wrap:wrap}
