#code-dialog{width:min(1220px,95vw);padding:22px}#code-dialog .dialog-heading{margin-bottom:10px}.kernel-bar{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);margin-bottom:18px;font-size:12px;line-height:1.8}.kernel-bar [data-kernel-status]{flex:1;color:var(--teal)}.kernel-bar button{font-size:12px;padding:7px 9px;border:1px solid var(--line);border-radius:4px}.cell-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.cell-heading h3{font-size:18px;color:var(--navy);line-height:1.6}.cell-heading>span{font-size:11px;color:var(--teal);letter-spacing:.08em}.cell-note{font-size:13px;color:var(--muted);line-height:1.9;margin:8px 0 15px}.cell-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.cell-editor{min-width:0}.cell-editor textarea{width:100%;height:360px;display:block;resize:vertical;border:1px solid #2b3e5f;border-radius:6px;background:#12213e;color:#deeee9;font:12px/1.9 ui-monospace,SFMono-Regular,Consolas,monospace;padding:17px;tab-size:4;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto}.cell-toolbar{display:flex;gap:12px;align-items:center;margin-top:12px;font-size:12px;flex-wrap:wrap}.cell-toolbar button:not(.solid){color:var(--muted);padding:8px}.cell-toolbar>span{margin-left:auto;color:var(--muted);font-size:10px}.cell-output{min-width:0;border:1px solid var(--line);border-radius:6px;padding:13px;background:#fbfcfe;max-height:420px;overflow:auto}.output-label{font-size:11px!important;color:var(--teal);font-weight:600;padding-bottom:10px;border-bottom:1px solid var(--line);margin-bottom:12px;line-height:1.8}.error-text{color:#ad4536}.text-output{font:12px/1.8 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}.rich-output{border:0;display:block;width:100%;background:white;margin:12px 0}.table-output{height:280px}.figure-output{height:320px}.cell-output>p{font-size:12px;line-height:1.8}.lab-body{height:auto;display:block;background:#edf1f5}.lab-body .app-header{height:62px;position:sticky;top:0;justify-content:space-between}.lab-main{max-width:1220px;margin:35px auto 80px;padding:0 25px}.lab-hero{background:white;padding:35px;border-top:4px solid var(--teal)}.lab-hero .eyebrow{font-size:12px}.lab-hero h1{font-size:32px;color:var(--navy);margin:15px 0}.lab-hero p{font-size:15px;line-height:1.9;max-width:900px;color:var(--muted)}.lab-downloads{display:flex;gap:22px;flex-wrap:wrap;margin-top:20px;font-size:13px;color:var(--teal)}.lab-body .kernel-bar{background:white;padding:15px 20px;position:sticky;top:62px;z-index:3;border-top:1px solid var(--line);flex-wrap:wrap}.lab-index{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.lab-index a{font-size:12px;color:var(--muted);background:white;padding:8px 10px;border:1px solid var(--line);border-radius:4px}.code-cell{margin:25px 0;padding:28px;background:white;border:1px solid var(--line);border-radius:5px;scroll-margin-top:155px}.lab-body .cell-editor textarea{height:370px}.lab-body .cell-output{max-height:435px}.lab-body .cell-heading h3{font-size:21px}.lab-body .cell-note{font-size:14px}.lab-footer{font-size:12px;line-height:2;color:var(--muted)}@media(max-width:700px){#code-dialog{padding:18px}.cell-grid{grid-template-columns:1fr}.cell-editor textarea{height:300px;font-size:12px}.cell-output{max-height:430px}.cell-heading h3{font-size:17px}.cell-note{font-size:12px}.kernel-bar{flex-wrap:wrap;gap:7px}.kernel-bar [data-kernel-status]{flex-basis:100%}.lab-main{margin:15px auto 40px;padding:0 12px}.lab-hero{padding:24px}.lab-hero h1{font-size:27px}.lab-hero p{font-size:14px}.lab-body .app-header{height:56px}.lab-body .kernel-bar{top:56px;padding:12px}.code-cell{padding:20px;scroll-margin-top:200px}.lab-body .cell-editor textarea{height:330px}.lab-downloads{font-size:12px;gap:13px}.lab-body .cell-heading h3{font-size:18px}.lab-body .cell-note{font-size:13px}.cell-toolbar>span{margin-left:0}}@media print{.lab-body .app-header,.kernel-bar,.cell-toolbar,.lab-index{display:none}.cell-grid{grid-template-columns:1fr}.cell-editor textarea{height:400px;color:black;background:white}.code-cell{break-inside:avoid}.lab-main{padding:0;margin:0}.cell-output{max-height:none}}
/* Readable editing and explicit execution states. */
:root{--code-size:16px}.cell-heading>button{font-size:14px;color:var(--teal);padding:8px 10px;border:1px solid var(--line);border-radius:4px}.cell-note{font-size:17px;line-height:1.8}.cell-editor textarea,.lab-body .cell-editor textarea{font-size:var(--code-size);line-height:1.7;height:410px;white-space:pre;overflow-wrap:normal}.cell-editor textarea[readonly]{opacity:.8}.cell-toolbar,.cell-toolbar>span{font-size:14px}.cell-toolbar button{font-size:14px}.cell-action-status{font-size:14px;color:var(--teal);min-height:24px;padding-top:8px}.cell-output,.lab-body .cell-output{max-height:none;overflow:visible;padding:17px}.cell-output[data-state=stale]{background:#faf4e8}.cell-output[data-state=stale] .output-label{color:#805619}.cell-output[data-state=error] .output-label{color:#a23f31}.cell-output[data-state=running]{background:#edf6f4}.output-label{font-size:15px!important}.text-output{font-size:15px;line-height:1.7}.cell-output>p{font-size:16px;line-height:1.8}.figure-output{height:auto;aspect-ratio:7/4}.table-output{height:350px}.kernel-bar{font-size:15px;align-items:center;flex-wrap:wrap}.kernel-bar button{font-size:14px;padding:9px 12px}.kernel-bar [data-kernel-status]{font-size:15px;color:var(--muted);min-width:240px}.code-size{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:14px}.code-size select{border:1px solid var(--line);padding:6px;background:white;border-radius:4px}.session-scope{font-size:14px;line-height:1.7;color:var(--muted);margin-bottom:18px}.lab-hero{border-top:0}.lab-hero p{font-size:18px}.lab-index a{font-size:15px;line-height:1.6}.lab-downloads{font-size:16px}.lab-footer{font-size:16px}.lab-body .cell-note{font-size:17px}.code-cell:fullscreen,#embedded-cell:fullscreen{background:white;overflow:auto;padding:32px}.code-cell:fullscreen .cell-editor textarea,#embedded-cell:fullscreen .cell-editor textarea{height:65dvh}.code-cell:fullscreen .cell-grid,#embedded-cell:fullscreen .cell-grid{grid-template-columns:1fr 1fr}.cell-expanded{position:fixed;inset:20px;z-index:var(--z-modal);overflow:auto;background:white;padding:26px!important;border:1px solid var(--line)}#code-dialog{width:min(1400px,96vw)}.lab-body .kernel-bar{top:60px}.lab-body .app-header{height:60px}.lab-main{max-width:1440px}.code-cell{padding:30px;scroll-margin-top:190px}.lab-body .cell-heading h3{font-size:24px}
@media(max-width:1024px){.cell-grid{grid-template-columns:1fr}.cell-editor textarea,.lab-body .cell-editor textarea{height:370px}.lab-body .app-header{height:58px}.lab-body .kernel-bar{position:static;top:auto}.code-cell{scroll-margin-top:80px}.kernel-bar [data-kernel-status]{flex-basis:100%}.lab-body .cell-heading h3{font-size:22px}.lab-main{padding:0 18px}.code-cell:fullscreen .cell-grid,#embedded-cell:fullscreen .cell-grid{grid-template-columns:1fr}}
@media(max-width:600px){#code-dialog{padding:18px}.cell-note,.lab-body .cell-note{font-size:16px}.cell-heading h3,.lab-body .cell-heading h3{font-size:20px}.cell-heading{gap:12px;align-items:flex-start}.cell-heading>button{font-size:13px;white-space:nowrap}.cell-editor textarea,.lab-body .cell-editor textarea{font-size:var(--code-size);padding:14px;height:340px}.cell-toolbar{gap:8px}.cell-toolbar button{font-size:14px}.cell-toolbar>span{margin-left:0;font-size:13px}.cell-output{padding:13px}.lab-main{padding:0 10px}.code-cell{padding:22px 18px}.lab-hero{padding:25px 20px}.lab-hero h1{font-size:28px}.lab-hero p{font-size:17px}.lab-downloads{font-size:15px}.kernel-bar{gap:8px}.lab-index a{font-size:14px}.lab-footer{font-size:15px}.lab-body .cell-output{max-height:none}.code-cell:fullscreen,#embedded-cell:fullscreen{padding:20px}.cell-expanded{inset:8px}}
