/* Common laboratory shell; does not override the actual simulation renderer. */
body.v22-lab{--v22-ink:#18344f;--v22-border:#bed0e1;--v22-panel:#fff;--v22-soft:#e9f1f9;--v22-accent:#24568e}html[data-portal-theme=dark] body.v22-lab{--v22-ink:#e4eef8;--v22-border:#496580;--v22-panel:#162b42;--v22-soft:#203c55;--v22-accent:#376b9c}
body.v22-lab main :is(.ec-banner,.bc74-hero,.unified-hero){background:linear-gradient(125deg,#102841,#27557c)!important;border:1px solid #355b7f!important;border-radius:16px!important;box-shadow:0 5px 18px #10284114!important;padding:20px 24px!important;min-height:0!important;max-height:none!important;box-sizing:border-box!important;color:#f1f7ff!important;margin-bottom:14px!important}
body.v22-lab main :is(.ec-banner,.bc74-hero,.unified-hero) h1{font-size:clamp(1.5rem,3vw,2.15rem)!important;line-height:1.2!important;color:#f3f8ff!important;margin:8px 0!important}
body.v22-lab main :is(.ec-banner,.bc74-hero,.unified-hero) :is(p,small,.eyebrow,.bc74-kicker){color:#c7dced!important;font-size:.9rem!important}
.v22-brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:.78rem;color:#e4f0fc!important;padding-bottom:9px;margin-bottom:9px;border-bottom:1px solid #7294b477}.v22-brand b{display:grid;place-items:center;width:32px;height:32px;background:#e6f0fc;color:#174574;border-radius:9px;font-size:.75rem}.v22-brand small{display:block;color:#c7dced!important;font-weight:400;font-size:.72rem!important}
body.v22-lab main .v22-tabs{display:flex!important;flex-wrap:wrap!important;gap:8px!important;border:1px solid var(--v22-border)!important;background:var(--v22-panel)!important;padding:10px!important;border-radius:13px!important;margin:12px 0 16px!important;align-items:center!important;box-sizing:border-box!important;box-shadow:0 4px 12px #112e4610!important}
body.v22-lab main .v22-tabs>button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-width:0!important;max-width:100%!important;flex:1 1 auto!important;padding:10px 12px!important;line-height:1.35!important;font:650 13px/1.35 system-ui,sans-serif!important;cursor:pointer!important;border:1px solid var(--v22-border)!important;border-radius:8px!important;background:var(--v22-panel)!important;color:var(--v22-ink)!important;text-align:center!important;white-space:normal!important;box-shadow:none!important}
body.v22-lab main .v22-tabs>button[aria-selected=true]{color:white!important;background:linear-gradient(130deg,#285a8d,#17466f)!important;border-color:#24568e!important;box-shadow:0 3px 8px #244d7830!important}
.v22-tabs>button img{width:18px!important;height:18px!important;flex:none!important;margin:0!important;vertical-align:middle!important}.v22-tabs>button[aria-selected=true] img{filter:brightness(0) invert(1)!important}
.v22-tabs>button:focus-visible,.v22-action:focus-visible,.v22-copy:focus-visible{outline:3px solid #58a0d9;outline-offset:2px}
body.v22-lab .v22-steps{list-style:none!important;padding:0!important;margin:12px 0!important;counter-reset:v22step!important;display:grid!important;gap:8px!important}
body.v22-lab .v22-steps>li{display:block!important;list-style:none!important;counter-increment:v22step!important;position:relative!important;padding:12px 12px 12px 54px!important;margin:0!important;border:1px solid var(--v22-border)!important;border-radius:10px!important;background:var(--v22-panel)!important;color:var(--v22-ink)!important;line-height:1.6!important;min-height:45px!important;overflow-wrap:anywhere!important}
body.v22-lab .v22-steps>li::before{content:counter(v22step,decimal-leading-zero)!important;display:grid!important;place-items:center!important;position:absolute!important;left:10px!important;top:10px!important;width:32px!important;height:30px!important;border-radius:8px!important;background:#24547e!important;color:#fff!important;font:700 13px/1 system-ui!important;margin:0!important;transform:none!important;inset:auto!important;left:10px!important;top:10px!important}
body.v22-lab .v22-steps>li::marker{content:''!important}
body.v22-lab .v22-code{background:#10263d!important;color:#e3effb!important;border:1px solid #345d82!important;border-radius:10px!important;padding:14px!important;overflow:auto!important;white-space:pre!important;tab-size:4!important;font:500 13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace!important;text-align:left!important;max-height:520px;min-width:0!important}
body.v22-lab .v22-code code{display:block!important;background:transparent!important;padding:0!important;font:inherit!important;color:inherit!important;white-space:inherit!important;border:0!important}
body.v22-lab .v22-code .v76-keyword{color:#b6d5ff!important;font-weight:700!important}.v22-code .v76-command{color:#8fe8cf!important;font-weight:700!important}.v22-code .v76-string{color:#b7e7a0!important}.v22-code .v76-number{color:#ffcb8b!important}.v22-code .v76-comment{color:#9eb8d1!important;font-style:italic!important}.v22-code .v76-operator{color:#89d8ed!important}.v22-code .v76-name{color:#d6eaff!important}.v22-code .v76-option{color:#f4d397!important}.v22-code .v76-error{color:#ffad9c!important}.v22-code .v76-path{color:#a5d5ff!important}
.v22-codebox{margin:12px 0;min-width:0;max-width:100%}.v22-codehead{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;border:1px solid #345d82;border-radius:9px 9px 0 0;background:#1b3c58;color:#cfe2f5;font-weight:650;font-size:.78rem}.v22-codebox>.v22-code{margin:0!important;border-top:0!important;border-radius:0 0 10px 10px!important}.v22-copy{border:1px solid #7092b1!important;background:#244e73!important;color:#fff!important;border-radius:6px!important;padding:5px 9px!important;cursor:pointer!important;font:650 12px/1.3 system-ui!important}
.v22-notebook{margin:14px 0;padding:clamp(12px,2.5vw,24px);border:1px solid var(--v22-border);border-radius:14px;background:var(--v22-panel);color:var(--v22-ink);box-sizing:border-box;min-width:0}.v22-nbhero{background:linear-gradient(125deg,#102841,#27557c);border-radius:12px;color:#e5f0fb;padding:16px;margin-bottom:16px}.v22-nbhero h2{margin:0 0 8px!important;color:#fff!important}.v22-nbhero p{color:#c7dced!important;margin:6px 0!important}.v22-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.v22-action{display:inline-flex;align-items:center;padding:9px 13px;border-radius:8px;font:650 13px/1.3 system-ui;text-decoration:none!important;border:1px solid #83a9c9;background:#e8f1fa!important;color:#153e65!important;cursor:pointer}.v22-action.primary{background:#24568e!important;color:#fff!important;border-color:#7098be}.v22-notebook .v22-cell{border:1px solid var(--v22-border);border-radius:12px;padding:12px;margin:12px 0;min-width:0;overflow-wrap:anywhere}.v22-cellhead{display:flex;align-items:center;gap:8px;margin:0 0 8px;color:var(--v22-ink);font:700 .75rem/1.3 system-ui;letter-spacing:.06em;text-transform:uppercase}.v22-cellhead span{background:var(--v22-soft);color:var(--v22-ink);border:1px solid var(--v22-border);border-radius:7px;padding:5px 9px}.v22-cell .v22-markdown{line-height:1.62;white-space:pre-wrap;font-size:.93rem;overflow-wrap:anywhere}.v22-cell .v22-code{max-height:560px}.v22-cell p{line-height:1.6}.v22-notebook details{border:1px solid var(--v22-border);border-radius:10px;padding:10px;margin:10px 0}.v22-notebook summary{cursor:pointer;font-weight:650}.v22-notebook[hidden]{display:none!important}.v22-notebook[data-c51-hide=true]{display:none!important}
@media(max-width:640px){body.v22-lab main .v22-tabs>button{flex-basis:calc(50% - 8px)!important;padding:9px!important;font-size:12px!important}body.v22-lab main :is(.ec-banner,.bc74-hero,.unified-hero){padding:16px!important}.v22-notebook{padding:10px}.v22-cell{padding:8px!important}}
