body[data-ps-section="console"]{font:13px/1.5 var(--ps-font);overflow:hidden;background:#07111c}
.cw-console,.cw-console *{box-sizing:border-box}.cw-console button,.cw-console input,.cw-console select{font:inherit}.cw-console button,.cw-console select,.cw-console input{border:1px solid #294254;background:#0b1d2c;color:#dce9f1;border-radius:5px}.cw-console button{cursor:pointer;padding:7px 11px;transition:background .15s,border-color .15s;color:#b9d2dd}.cw-console button:hover:not(:disabled){background:#173649;border-color:#3b697b;color:#e6fbff}.cw-console button:disabled{opacity:.42;cursor:default}.cw-console a{color:#80cfdf;text-decoration:none}.cw-console a:hover{text-decoration:underline;text-underline-offset:3px}.cw-console :focus-visible{outline:2px solid #78ded9;outline-offset:3px}.cw-console [hidden]{display:none!important}.cw-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.cw-console{height:calc(100vh - var(--ps-header-height));height:calc(100dvh - var(--ps-header-height));min-height:460px;display:flex;flex-direction:column}.cw-console:fullscreen{height:100vh;height:100dvh;min-height:0;background:#07111c}.cw-bar{height:59px;flex:none;border-bottom:1px solid #213646;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 25px;background:linear-gradient(90deg,#0b202c,#08121f)}.cw-bar-title,.cw-bar-actions{display:flex;align-items:center;gap:17px;min-width:0}.cw-bar h1{font:700 17px var(--ps-mono);letter-spacing:.13em;margin:0;color:#d9f1ef}.cw-prompt-mark{font:700 21px var(--ps-mono);color:#82e8b8;text-shadow:0 0 20px #6ee7bd44}.cw-bar-description{font-size:11px;color:#7f9cac}.cw-bar-actions button{font-size:11px;background:transparent}.cw-readonly{color:#74b7aa;font:9px var(--ps-mono);letter-spacing:.08em}.cw-layout{min-height:0;flex:1;display:grid;grid-template-columns:300px minmax(0,1fr)}.cw-library{min-height:0;display:flex;flex-direction:column;border-right:1px solid #263c4d;background:#091624;padding:19px 14px 0}.cw-library-heading{display:flex;align-items:center;justify-content:space-between;margin:0 3px 14px}.cw-library h2{margin:0;font-size:13px;font-weight:650;letter-spacing:.01em}.cw-search{position:relative}.cw-search input{width:100%;padding:10px 28px 10px 11px;font-size:11px;outline-offset:1px}.cw-search>span{position:absolute;right:10px;top:6px;color:#779ba8;font-size:20px;pointer-events:none}.cw-library>select{margin-top:9px;padding:8px 9px;font-size:11px;width:100%}.cw-library-count{font:9px var(--ps-mono);color:#6f92a4;padding:12px 3px 7px}.cw-script-list{overflow-y:auto;min-height:0;flex:1;margin:0 -5px 0 0;padding-right:5px;scrollbar-width:thin;scrollbar-color:#284858 transparent}.cw-script-group{font:9px var(--ps-mono);letter-spacing:.1em;color:#6e9aa8;padding:15px 9px 7px;margin:0;text-transform:uppercase}.cw-script-list button{position:relative;display:block;text-align:left;width:100%;background:transparent;border:1px solid transparent;border-radius:5px;padding:10px 10px;margin:2px 0}.cw-script-list button:hover:not(:disabled){background:#0e2432}.cw-script-list button[aria-current="true"]{border-color:#285347;background:linear-gradient(95deg,#14362e8c,#10283566)}.cw-script-list button[aria-current="true"]:before{content:"";position:absolute;left:-1px;top:11px;bottom:11px;width:2px;background:#80e8b6;box-shadow:0 0 10px #6ee7bd44}.cw-script-title{display:block;font-size:11px;line-height:1.45;color:#d6e6ee;font-weight:600}.cw-script-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;line-height:1.5;color:#819eae;margin-top:4px}.cw-script-detail{display:block;font:8px var(--ps-mono);color:#608a9b;margin-top:6px;letter-spacing:.02em}.cw-script-list button[aria-current="true"] .cw-script-title{color:#9bf1cb}.cw-library-footer{flex:none;border-top:1px solid #1c3546;padding:12px 4px 11px;margin-top:10px}.cw-library-footer a{font-size:10px}.cw-library-footer p{margin:5px 0 0;color:#617f90;font-size:10px;line-height:1.5}.cw-workspace{min-width:0;min-height:0;display:flex;flex-direction:column;background:radial-gradient(ellipse at 80% 0%,#0c2d3733,transparent 50%),#07111d}.cw-selected{padding:20px 24px 14px;flex:none;border-bottom:1px solid #1d3342}.cw-selected-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:7px}.cw-eyebrow{font:9px var(--ps-mono);letter-spacing:.13em;color:#74c6b4;text-transform:uppercase}.cw-selected-top>a{font-size:10px;color:#7ca6b5}.cw-selected h2{font-size:21px;line-height:1.25;letter-spacing:-.02em;margin:0 0 8px;font-weight:650;color:#e1eff2}.cw-selected p{margin:0;color:#90aaba;font-size:11px;line-height:1.6;max-width:1050px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.cw-selected-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:10px}.cw-tag{font:9px var(--ps-mono);padding:3px 7px;border:1px solid #253e4c;border-radius:3px;color:#83aab8;background:#0d202b}.cw-tag.cw-amber{color:#dfb47e;border-color:#59452e;background:#281f1533}.cw-settings{display:grid;grid-template-columns:150px minmax(210px,1fr) minmax(200px,1.2fr);gap:11px;padding:12px 24px;flex:none;border-bottom:1px solid #1c3140}.cw-settings label{font:9px var(--ps-mono);color:#6f95a5;display:flex;flex-direction:column;gap:5px}.cw-settings input,.cw-settings select{height:34px;width:100%;min-width:0;padding:7px 9px;font-size:10px;outline-offset:1px}.cw-settings select:disabled{opacity:.75}.cw-settings input{font:10px var(--ps-mono)}.cw-settings input::placeholder{color:#557483}.cw-runbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 24px;flex:none}.cw-run-actions,.cw-output-actions{display:flex;align-items:center;gap:7px}.cw-runbar button{font-size:10px;white-space:nowrap}.cw-runbar .cw-primary{background:#153d32;color:#9bf1cb;border-color:#326453;font-weight:650;padding:8px 14px}.cw-runbar .cw-primary:hover:not(:disabled){background:#1b4e3f;border-color:#73b99b;color:#c8ffe2}#cw-run-status{font:9px var(--ps-mono);color:#809eac;margin-left:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:360px}.cw-runbar .cw-error-status{color:#f19c9c!important}.cw-tabs{display:flex;align-items:center;padding:0 24px;gap:23px;border-bottom:1px solid #273e4c;flex:none;overflow-x:auto;scrollbar-width:none}.cw-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;padding:9px 0 10px;font-size:10px;white-space:nowrap;color:#7f9eae}.cw-tabs button:hover:not(:disabled){background:none;border-color:transparent;color:#c7e7ee}.cw-tabs button[aria-selected="true"]{color:#99e9ca;border-bottom-color:#71dcae}.cw-tabs button>span{margin-left:5px;font:8px var(--ps-mono);background:#17303d;color:#87b0c0;border-radius:3px;padding:2px 4px}.cw-panels{flex:1;min-height:150px;position:relative;overflow:hidden;background:#050e18}.cw-panel{height:100%;overflow:auto;scrollbar-width:thin;scrollbar-color:#284858 #08131e;outline-offset:-3px!important}.cw-output{padding:17px 24px 28px;font:11px/1.65 var(--ps-mono);min-height:100%}.cw-welcome{margin:clamp(18px,4vh,50px) 0 0;max-width:640px}.cw-welcome-mark{font:700 32px var(--ps-mono);color:#2f6a66}.cw-welcome h3{font:600 19px var(--ps-font);color:#b9d8df;margin:13px 0 8px}.cw-welcome p{color:#6e8e9e;margin:6px 0;font-size:11px}.cw-welcome .cw-welcome-hint{font-size:10px;max-width:520px;color:#52788a}.cw-examples{display:flex;gap:7px;margin-top:17px}.cw-examples button{font:10px var(--ps-mono);padding:5px 12px;background:#0c1c29;color:#73b2b4}.cw-run-heading{padding:6px 0 12px;margin:0 0 12px;color:#96c5c8;border-bottom:1px dashed #1d3b47;white-space:pre-wrap;overflow-wrap:anywhere}.cw-run-heading strong{color:#a9ead0}.cw-entry{margin:0 0 11px;padding:0 0 11px;border-bottom:1px solid #112633}.cw-entry-heading{display:flex;align-items:baseline;gap:9px;min-width:0;color:#bfdae2}.cw-entry-heading strong{font-size:10px;font-weight:500;overflow-wrap:anywhere}.cw-entry-status{font-size:8px;color:#80deb2;white-space:nowrap;letter-spacing:.04em}.cw-entry.cw-entry-error .cw-entry-status{color:#f29999}.cw-entry-duration{font-size:8px;color:#4e7789;margin-left:auto;white-space:nowrap}.cw-entry-summary{white-space:pre-wrap;overflow-wrap:anywhere;color:#8eb8c5;font-size:10px;margin-top:5px}.cw-entry-error .cw-entry-summary{color:#e2a4a4}.cw-entry details{margin-top:5px;color:#7299aa}.cw-entry summary{font-size:9px;cursor:pointer;display:list-item;width:fit-content;max-width:100%}.cw-entry pre,.cw-message{white-space:pre-wrap;overflow-wrap:anywhere;font:10px/1.65 var(--ps-mono);margin:8px 0 0;color:#89a9b8}.cw-entry pre{padding:11px;background:#0b1925;border:1px solid #18313e;border-radius:4px}.cw-message{margin:6px 0 12px;color:#78a5b5}.cw-message.cw-message-error{color:#f2a4a4}.cw-message.cw-message-success{color:#91dfb6}.cw-document-panel{display:flex;flex-direction:column}.cw-document-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 22px;border-bottom:1px solid #18303e;position:sticky;top:0;background:#091623;z-index:1;color:#6e96a7;font:9px var(--ps-mono)}.cw-document-bar>div{display:flex;gap:13px;align-items:center}.cw-document-bar button{font-size:9px;padding:4px 10px;background:#102330}.cw-document-panel>pre{padding:18px 24px;margin:0;font:11px/1.7 var(--ps-mono);white-space:pre;tab-size:4;color:#9cbac8;min-height:0;overflow:visible}.cw-command-form{flex:none;border-top:1px solid #2b4854;display:flex;align-items:center;gap:12px;background:#0b1e2b;padding:12px 24px}.cw-command-prefix{white-space:nowrap;font:11px var(--ps-mono);color:#83dfb5}.cw-command-prefix>span{color:#527e8b;margin-left:7px}.cw-command-form input{flex:1;min-width:0;border:none;background:transparent;padding:6px 0;font:11px var(--ps-mono);color:#d0eced;border-radius:0;outline-offset:3px}.cw-command-form input::placeholder{color:#517686}.cw-command-form button{font-size:10px;padding:4px 9px;background:transparent;border-color:#274553}.cw-command-form #cw-command-submit{font-size:16px;line-height:20px;padding:1px 9px}.cw-footer{flex:none;display:flex;justify-content:space-between;gap:15px;padding:8px 24px;background:#081521;border-top:1px solid #142d3b;color:#507c8f;font:8px/1.5 var(--ps-mono)}.cw-footer>span:last-child{white-space:nowrap;color:#689b9e}.cw-mobile-library,#cw-library-close{display:none}.cw-noscript{padding:20px}.cw-empty{color:#7894a3;padding:14px 9px;font-size:11px}.cw-loading{color:#78b7bb}.cw-help-grid{display:grid;grid-template-columns:minmax(140px,230px) 1fr;gap:7px 22px;padding:8px 0}.cw-help-grid code{color:#a6e9c9;font:10px var(--ps-mono)}.cw-help-grid span{font:10px/1.5 var(--ps-mono);color:#779eae}
@media(min-width:1800px){.cw-layout{grid-template-columns:330px minmax(0,1fr)}.cw-selected,.cw-settings,.cw-runbar,.cw-output,.cw-command-form{padding-left:32px;padding-right:32px}.cw-selected h2{font-size:24px}.cw-script-title{font-size:12px}.cw-script-description{font-size:11px}.cw-tabs{padding-left:32px}}
@media(max-width:1100px){.cw-layout{grid-template-columns:260px minmax(0,1fr)}.cw-settings{grid-template-columns:135px minmax(0,1fr)}.cw-address-label{grid-column:1/-1}.cw-settings{gap:8px;padding-top:10px;padding-bottom:10px}.cw-settings .cw-address-label{display:grid;grid-template-columns:115px 1fr;align-items:center}.cw-bar-description{display:none}.cw-selected,.cw-output{padding-left:18px;padding-right:18px}.cw-selected p{-webkit-line-clamp:2}.cw-runbar,.cw-settings,.cw-command-form{padding-left:18px;padding-right:18px}.cw-tabs{padding-left:18px;gap:19px}.cw-runbar{flex-wrap:wrap}.cw-run-actions{min-width:0}#cw-run-status{max-width:230px}.cw-footer>span:last-child{display:none}}
@media(max-width:760px){.cw-console{min-height:0}.cw-bar{height:51px;padding:0 14px;gap:8px}.cw-bar-title{gap:10px}.cw-bar h1{font-size:14px;letter-spacing:.1em}.cw-prompt-mark{font-size:18px}.cw-readonly{display:none}.cw-bar-actions{gap:7px}.cw-bar-actions button{padding:7px 9px;font-size:10px}.cw-mobile-library{display:inline-block}.cw-layout{display:flex;min-height:0}.cw-workspace{width:100%}.cw-library{position:fixed;z-index:9102;left:0;top:var(--ps-header-height);bottom:0;width:min(340px,90vw);transform:translateX(-102%);transition:transform .18s ease;box-shadow:15px 0 60px #0008;border-right:1px solid #345061}.cw-console:fullscreen .cw-library{top:0}.cw-console.cw-library-open .cw-library{transform:none}#cw-library-close{display:block;font-size:22px;border:0;background:none;line-height:1;padding:5px 8px}.cw-backdrop{position:fixed;z-index:9101;inset:var(--ps-header-height) 0 0;border:0!important;border-radius:0!important;background:#010810b3!important}.cw-console:fullscreen .cw-backdrop{inset:0}.cw-selected{padding:13px 14px 11px}.cw-selected h2{font-size:18px;margin-bottom:6px}.cw-selected p{font-size:10px;-webkit-line-clamp:2}.cw-selected-top{margin-bottom:6px}.cw-selected-top>a{font-size:9px}.cw-selected-meta{margin-top:8px;gap:5px}.cw-tag{font-size:8px}.cw-settings{padding:10px 14px;grid-template-columns:130px minmax(0,1fr);gap:7px}.cw-settings label{font-size:8px}.cw-settings input,.cw-settings select{font-size:9px;height:31px;padding:5px 7px}.cw-settings .cw-address-label{grid-template-columns:104px minmax(0,1fr)}.cw-runbar{padding:9px 14px;gap:7px}.cw-run-actions{gap:6px;flex:1}.cw-runbar button{font-size:9px;padding:6px 8px}.cw-runbar .cw-primary{padding:7px 9px}#cw-run-status{font-size:8px;margin-left:3px;max-width:180px}.cw-output-actions{gap:5px}.cw-tabs{padding:0 14px;gap:20px}.cw-tabs button{font-size:9px;padding-top:8px;padding-bottom:9px}.cw-output{padding:13px 14px 20px}.cw-welcome{margin:18px 0 0}.cw-welcome h3{font-size:17px}.cw-welcome p{font-size:10px}.cw-welcome .cw-welcome-hint{font-size:9px}.cw-command-form{padding:9px 14px;gap:8px}.cw-command-prefix{font-size:9px}.cw-command-form input{font-size:10px}.cw-command-form #cw-help{font-size:9px;padding:4px 7px}.cw-command-form #cw-command-submit{padding:1px 7px}.cw-footer{padding:6px 14px;font-size:7px}.cw-document-panel>pre{padding:13px 14px;font-size:10px}.cw-document-bar{padding:8px 14px;font-size:8px}.cw-help-grid{grid-template-columns:1fr;gap:3px}.cw-help-grid span{margin-bottom:8px}.cw-panels{min-height:120px}}
@media(max-width:420px){#cw-fullscreen span{display:none}.cw-runbar{flex-wrap:wrap}.cw-run-actions{width:100%;flex:none}.cw-output-actions{margin-left:auto}.cw-settings{grid-template-columns:115px minmax(0,1fr)}.cw-selected p{-webkit-line-clamp:2}.cw-selected h2{font-size:17px}.cw-command-prefix{font-size:0}.cw-command-prefix>span{font-size:12px;margin:0}.cw-footer{font-size:7px}.cw-tabs{gap:15px}.cw-tabs button{font-size:8px}}
@media(max-height:720px) and (min-width:761px){.cw-bar{height:45px}.cw-library{padding-top:12px}.cw-selected{padding-top:12px;padding-bottom:10px}.cw-selected h2{font-size:18px;margin-bottom:5px}.cw-selected p{-webkit-line-clamp:2;font-size:10px}.cw-selected-meta{margin-top:7px}.cw-settings{padding-top:8px;padding-bottom:8px}.cw-runbar{padding-top:8px;padding-bottom:8px}.cw-welcome{margin-top:8px}.cw-footer{padding-top:5px;padding-bottom:5px}}
@media(prefers-reduced-motion:reduce){.cw-console *{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:760px) and (max-height:740px){.cw-workspace{overflow-y:auto}.cw-panels{flex:none;height:240px}.cw-command-form,.cw-footer{flex-shrink:0}}
.cw-live-badge{font:8px var(--ps-mono);letter-spacing:.04em;color:#8fd8b8;white-space:nowrap;display:inline-flex;align-items:center;gap:5px}.cw-live-badge:before{content:"";height:4px;width:4px;border-radius:50%;background:#7bd5ad}.cw-network-result{margin:12px 0;font-size:10px;color:#7295a7}.cw-network-result pre{white-space:pre-wrap;overflow-wrap:anywhere;color:#84a5b5;font-size:10px}.cw-network-result summary{cursor:pointer}.cw-embedded #ps-shell{display:none!important}.cw-embedded{--ps-header-height:0px!important}.cw-embedded .cw-console{height:100vh;height:100dvh;min-height:0}.cw-embedded .cw-bar{height:45px}.cw-embedded .cw-backdrop,.cw-embedded .cw-library{--ps-header-height:0px}@media(max-width:1000px){.cw-live-badge{font-size:7px}}@media(max-width:760px){.cw-live-badge{display:none}}@media(max-width:420px){.cw-runbar{flex-wrap:nowrap}.cw-run-actions{width:auto;flex:1;min-width:0}.cw-runbar #cw-run-status{display:none}.cw-output-actions{margin-left:0}.cw-runbar button{padding-left:7px;padding-right:7px;font-size:9px}}
@media(max-width:760px){.cw-runbar{position:relative;padding-bottom:24px}.cw-live-badge{display:inline-flex;position:absolute;bottom:6px;left:14px;font-size:7px}}
/* Native script pickers share the console palette and remain keyboard accessible. */
.cw-console select{color-scheme:dark}.cw-console select option,.cw-console select optgroup{background:#0b1d2c;color:#b9d2dd}.cw-console select optgroup{color:#83cdbb}.cw-console select option:checked{background:#173d33;color:#a3f0ce}.cw-library-label{flex:none;margin:10px 2px 4px;font:9px var(--ps-mono);letter-spacing:.04em;color:#7ea99e}.cw-library>.cw-library-label+select{flex:none;margin-top:0;height:33px;padding:6px 9px;font-size:10px}.cw-library>#cw-script-picker{color:#a3e6c9;border-color:#2e574c;background:#0d252b}.cw-library>#cw-script-picker:disabled{color:#6c8e90;opacity:.65}.cw-library>#cw-script-picker:focus-visible{outline-color:#85e3ba}

/* v15: a consistent research palette, with distinct data and source colours. */
.cw-console{--cw-lilac:#c5adff;--cw-cyan:#83dce7;--cw-green:#99e7bc;--cw-amber:#f1c98a;--cw-red:#f5a5ad}
.cw-bar{background:linear-gradient(110deg,#181c34,#0b1826 65%,#0b222c)}
.cw-bar h1{color:#e0d5ff}.cw-bar-description{color:#a89ac2}.cw-prompt-mark{color:var(--cw-lilac);text-shadow:0 0 17px #ac8ce53b}
.cw-console button:focus-visible,.cw-console select:focus-visible,.cw-console input:focus-visible{outline-color:var(--cw-lilac)}
.cw-library-heading h2,.cw-eyebrow{color:var(--cw-lilac)}.cw-library-label,.cw-script-group{color:#ae9bc8}
.cw-script-list button[aria-current="true"]{background:linear-gradient(95deg,#39274f99,#18273a66);border-color:#665087}
.cw-script-list button[aria-current="true"]:before{background:#bc9aef;box-shadow:0 0 10px #b48fee55}
.cw-script-list button[aria-current="true"] .cw-script-title{color:#dbc6ff}.cw-script-description{color:#96adbb}.cw-script-detail{color:#8b9bb6}
.cw-library>#cw-script-picker{color:#d5c2f9;border-color:#615080;background:#1c2035}.cw-console select option:checked{background:#3b2c52;color:#e0d0fb}.cw-console select optgroup{color:#c1a8e8}
.cw-selected h2{color:#e0d7ee}.cw-selected p{color:#a3b8c5}.cw-selected-top>a{color:var(--cw-cyan)}
.cw-tabs button[aria-selected="true"]{color:#d3baff;border-bottom-color:#b08add}.cw-tabs button>span{background:#2c2541;color:#c8b4e5}.cw-settings label{color:#a399b9}
.cw-tag{color:#adc2d0;border-color:#344355}.cw-tag.cw-amber{color:var(--cw-amber)}
.cw-console .cw-library-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:31px;color:#d6c0f6;border-color:#5b4a76;background:#221e34}
.cw-console .cw-library-toggle:hover:not(:disabled){border-color:#a188c5;background:#352845;color:#f0e6ff}
.cw-run-heading{color:#9abdc8;border-color:#3e3553}.cw-run-heading strong{color:#d9c2fd}.cw-entry-heading strong{color:#c8b7df}.cw-entry-summary{color:#b8cbd5}.cw-entry-duration{color:#88a4b5}
.cw-entry pre{background:#0b1422;border-color:#28344c;color:#b6c5d8}.cw-entry-error .cw-entry-heading strong,.cw-entry-error .cw-entry-status{color:var(--cw-red)}
.cw-entry-error .cw-entry-summary{color:#e7aeb6}.cw-entry details,.cw-network-result{color:#9bacc3}.cw-entry summary:hover,.cw-network-result summary:hover{color:#c9b3ed}
.cw-examples{flex-wrap:wrap}.cw-examples button{color:#c9b0ed;background:#1d1d31;border-color:#413655}.cw-welcome-mark{color:#8060aa}.cw-welcome h3{color:#d1bde8}.cw-welcome p{color:#a6b7c7}.cw-welcome .cw-welcome-hint{color:#8fa5b7}
.cw-document-bar{color:#aea1c5;background:#101628}.cw-document-panel>pre{color:#bdc9da}.cw-command-form{background:linear-gradient(90deg,#1a1e32,#102130);border-top-color:#514065}.cw-command-prefix{color:var(--cw-lilac)}.cw-command-form input{color:#e2e8f5}.cw-command-form input::placeholder{color:#98a2b7}
.cw-help-grid code{color:#d0b4fa}.cw-help-grid span{color:#a5bac9}.cw-message{color:#a0becd}.cw-message-success{color:var(--cw-green)!important}.cw-message-error{color:var(--cw-red)!important}
/* Highlight spans contain text only. Source text and whitespace stay intact. */
.cw-syntax-keyword{color:#c6a6ff}.cw-syntax-function{color:#8bd8e9}.cw-syntax-builtin{color:#afd5ff}.cw-syntax-string{color:#a8deb6}.cw-syntax-number{color:#efc78b}.cw-syntax-literal{color:#efa6c2}.cw-syntax-key{color:#b6a3eb}.cw-syntax-address{color:#81dfe5}.cw-syntax-comment{color:#849bad;font-style:italic}
.cw-entry-holdings{padding-bottom:17px}.cw-entry-holdings>.cw-entry-heading{padding:6px 0 9px}.cw-entry-holdings>.cw-entry-heading strong{font-size:13px;font-weight:650;color:#dfd0fa}
.cw-holdings{min-width:0}.cw-holdings-address{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#97aabf;font-size:10px}.cw-holdings-address code{overflow-wrap:anywhere;min-width:0;font:10px var(--ps-mono)}
.cw-console .cw-copy-value{padding:3px 7px;min-height:25px;font-size:9px;background:#142733;color:#abcedb;border-color:#385464;white-space:nowrap}.cw-console .cw-copy-value:hover:not(:disabled){background:#223c49;border-color:#6591a3}
.cw-holdings-meta{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:10px 0 7px}.cw-holdings-time{color:#8e9eb4;font-size:9px;overflow-wrap:anywhere}
.cw-holdings-scope{font:11px/1.65 var(--ps-font);color:#b8c7d4;margin:8px 0 15px;overflow-wrap:anywhere}
.cw-holdings-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;border:1px solid #293b4f;border-radius:7px;overflow:hidden;background:#0a1522}
.cw-holdings-table thead th{font:9px var(--ps-mono);text-transform:uppercase;letter-spacing:.07em;font-weight:500;color:#9ba9c3;background:#131b2d;padding:11px 12px;text-align:left;border-bottom:1px solid #34425a}.cw-holdings-table thead th:nth-child(1){width:21%}.cw-holdings-table thead th:nth-child(2){width:47%;text-align:right}.cw-holdings-table thead th:nth-child(3){width:32%}
.cw-holdings-table .cw-holdings-group-heading th{font:10px var(--ps-mono);letter-spacing:.06em;text-transform:uppercase;padding:8px 12px;text-align:left;border-bottom:1px solid #263344;background:#181d30;color:var(--cw-lilac)}
.cw-holdings-stables .cw-holdings-group-heading th{color:var(--cw-green);background:#102a24;border-bottom-color:#24503c}.cw-holdings-bridged .cw-holdings-group-heading th{color:var(--cw-cyan);background:#102731;border-bottom-color:#22515a}.cw-holdings-other .cw-holdings-group-heading th{color:#b9b0cf;background:#1b1d2d}
.cw-holding>th,.cw-holding>td{padding:12px;vertical-align:top;border-bottom:1px solid #233143;overflow-wrap:anywhere;text-align:left}.cw-holding:last-child>th,.cw-holding:last-child>td{border-bottom:0}
.cw-holding-asset strong{font:650 12px var(--ps-mono);color:#d4c0f0}.cw-holdings-stables .cw-holding-asset strong{color:var(--cw-green)}.cw-holdings-bridged .cw-holding-asset strong{color:var(--cw-cyan)}
.cw-holding-note{display:block;color:#8ca5b5;font:9px/1.5 var(--ps-font);margin-top:3px}.cw-holding .cw-holding-amount{text-align:right}.cw-holding-amount>strong{font:600 13px/1.65 var(--ps-mono);font-variant-numeric:tabular-nums;color:#d1e8dd;overflow-wrap:anywhere}.cw-holding-zero .cw-holding-amount>strong{color:#94acb4}
.cw-holding-info details{margin:0}.cw-holding-info summary{font-size:9px;line-height:1.8;color:#9aaec1}.cw-holding-contract{display:flex;gap:7px;align-items:flex-start;flex-direction:column;margin:8px 0}.cw-holding-contract code{font:9px/1.6 var(--ps-mono);overflow-wrap:anywhere;max-width:100%}.cw-holding-info p{white-space:pre-wrap;overflow-wrap:anywhere;color:#9aafbf;font:9px/1.65 var(--ps-mono);margin:8px 0 0}.cw-holding-units{max-width:100%}
.cw-holding-pdai>th,.cw-holding-pdai>td{background:#d9c25c0b;box-shadow:inset 0 1px #efd98c33,inset 0 -1px #efd98c22}.cw-holding-pdai .cw-holding-asset strong,.cw-holding-pdai .cw-holding-amount>strong{color:#f0e2a4;text-shadow:0 0 12px #edce7455}
.cw-holding-unavailable .cw-holding-amount>strong{color:var(--cw-amber);font-size:11px}.cw-holding-error{display:block;color:#ddbd97;font:9px/1.6 var(--ps-font);margin-top:4px;text-align:right}
.cw-holdings-footnote{font:10px/1.65 var(--ps-font);color:#9aabba;margin:10px 0 0}.cw-balance-requests{margin:15px 0;border:1px solid #2c3a50;border-radius:6px;padding:10px 12px;background:#0b1422}.cw-balance-requests>summary{cursor:pointer;color:#bba8dc;font:10px var(--ps-mono)}.cw-balance-requests>.cw-entry{margin-top:13px}
@media(min-width:761px){.cw-console.cw-library-collapsed .cw-layout{grid-template-columns:minmax(0,1fr)}.cw-console.cw-library-collapsed .cw-library{display:none}}
@media(max-width:900px){.cw-holdings-table thead th:nth-child(1){width:24%}.cw-holdings-table thead th:nth-child(2){width:46%}.cw-holdings-table thead th:nth-child(3){width:30%}.cw-holding>th,.cw-holding>td{padding:10px 8px}.cw-holding-amount>strong{font-size:11px}}
@media(max-width:620px){.cw-holdings-table,.cw-holdings-table tbody{display:block}.cw-holdings-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.cw-holdings-table .cw-holdings-group-heading{display:block}.cw-holdings-table .cw-holdings-group-heading th{display:block;width:100%;padding:8px 11px}.cw-holding{display:grid;grid-template-columns:minmax(84px,.7fr) minmax(0,1.7fr);padding:11px;border-bottom:1px solid #27384a;gap:6px 9px}.cw-holding:last-child{border-bottom:0}.cw-holding>th,.cw-holding>td{display:block;padding:0;border:0;min-width:0}.cw-holding .cw-holding-info{grid-column:1/-1}.cw-holding-amount>strong{font-size:12px}.cw-holding-asset strong{font-size:12px}.cw-holding-pdai{background:#d9c25c0b;box-shadow:inset 0 1px #efd98c33,inset 0 -1px #efd98c22}.cw-holding-pdai>th,.cw-holding-pdai>td{background:none;box-shadow:none}.cw-holding-contract{flex-direction:row;align-items:center;flex-wrap:wrap}.cw-holdings-scope{font-size:10px}.cw-holdings-address{gap:6px}.cw-holdings-address code{flex-basis:100%}.cw-holdings-meta{gap:5px}.cw-holdings-time{font-size:8px;flex-basis:100%}.cw-holding-info summary{font-size:9px}.cw-holdings-footnote{font-size:9px}.cw-holding-error{text-align:right}.cw-holdings-table{border-radius:5px}}
.cw-entry-partial>.cw-entry-heading .cw-entry-status{color:var(--cw-amber)}

/* v16: output-first workspace. Existing result/source rendering is preserved. */
.cw-console{min-height:0;--cw-orange:#ffc17c}
.cw-console .cw-bar{height:48px;min-height:48px;padding:0 14px;gap:12px;background:linear-gradient(100deg,#151b2d,#0a1824 75%)}
.cw-bar-title{flex:1;gap:12px;overflow:hidden}
.cw-bar h1{font-size:11px;letter-spacing:.1em;white-space:nowrap;color:#bca8e2}
.cw-bar h1>span{color:#cfb1ff;margin-right:5px}
.cw-bar-divider{height:18px;width:1px;flex:none;background:#354055}
.cw-bar h2{margin:0;font:600 13px/1.3 var(--ps-font);color:#e3d9f4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.cw-console .cw-bar button{font-size:11px;min-height:30px;padding:5px 10px;white-space:nowrap}
.cw-console .cw-library-toggle{flex:none;min-width:114px;background:#241f36;border-color:#584573;color:#dac1ff}
.cw-bar-actions{gap:7px;flex:none}
.cw-console .cw-info-button{border:0;background:transparent;color:#a48ebd;padding:3px;min-width:27px;font-size:17px}
.cw-console .cw-primary{background:#163c31;border-color:#376b55;color:#aff4d0;font-weight:600}
.cw-console .cw-primary:hover:not(:disabled){background:#22533f;border-color:#72b394;color:#dcffed}
#cw-stop:disabled{display:none}
#cw-settings-open{background:#111f2d;border-color:#354657;color:#bdd0db}
#cw-network-label{font-size:10px;color:#86d2ba}.cw-settings-separator{color:#566e7d}
.cw-console #cw-fullscreen{font-size:18px;padding:2px 9px;color:#92b6c2}
#cw-fullscreen span{display:none}
.cw-layout{grid-template-columns:270px minmax(0,1fr)}
.cw-library{padding:13px 12px 0;background:#091523}
.cw-library-heading{margin:0 2px 10px;min-height:27px}
.cw-library-heading h2{font-size:12px}
.cw-console #cw-library-close{display:block;font-size:19px;line-height:1;padding:4px 8px;border:1px solid #4e405f;border-radius:5px;background:#1b1c30;color:#d2b6f2;min-height:28px}
.cw-library-label{margin-top:8px;font-size:9px}
.cw-library>.cw-library-label+select{height:31px}
.cw-library-count{padding-top:10px;font-size:8px}
.cw-script-title{font-size:11px}.cw-script-description{font-size:10px}
.cw-script-list button{padding:8px 9px}.cw-script-list button[aria-current="true"]{border-color:#5e4c7d}
.cw-library-footer{padding:9px 3px}.cw-library-footer p{font-size:9px}
.cw-workspace{overflow:hidden}
.cw-result-toolbar{display:flex;align-items:center;min-height:42px;flex:none;padding:0 16px;gap:10px;border-bottom:1px solid #2a3349;background:#0a1320}
.cw-result-toolbar .cw-tabs{padding:0;gap:20px;border:0;flex:1;min-width:0}
.cw-result-toolbar .cw-tabs button{padding:12px 0 10px;font-size:10px}
.cw-output-actions{gap:6px;flex:none}
.cw-output-actions button{font-size:10px;padding:4px 8px;min-height:26px;background:transparent}
.cw-output-actions #cw-run-status{font-size:9px;max-width:180px;margin:0 9px 0 0;color:#9ab8bd}
.cw-panels{flex:1;min-height:0;height:auto}
.cw-output{padding:18px 22px 28px;font-size:12px}
.cw-run-heading{font-size:11px}.cw-entry-summary{font-size:11px}.cw-entry-heading strong{font-size:11px}
.cw-welcome{margin:clamp(20px,7vh,70px) 0 0;max-width:680px}
.cw-welcome-mark{font-size:34px;color:#a48ac5}
.cw-welcome h3{font-size:24px;letter-spacing:-.025em;color:#dfd2ee;margin-top:12px}
.cw-welcome p{font:13px/1.7 var(--ps-font);color:#a8bbc9;max-width:590px}
.cw-welcome .cw-welcome-hint{font:11px/1.7 var(--ps-font);color:#7e98ab}
.cw-examples{gap:9px;margin-top:22px}
.cw-examples button{font:11px var(--ps-font);padding:9px 13px;min-height:36px;color:#d3b8ef;background:#1c1b30;border-color:#4e3f62}
.cw-command-form{display:block;padding:10px 16px 12px;background:#0c1521;border-top:1px solid #344051}
.cw-command-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 7px}
.cw-command-caption label{color:var(--cw-orange);font:600 11px var(--ps-font);letter-spacing:.01em;cursor:text}
.cw-command-caption>span{font:9px var(--ps-mono);color:#8194a8}
.cw-command-input-row{display:flex;align-items:center;gap:10px;border:1px solid #aa7441;border-radius:7px;background:linear-gradient(100deg,#2a201c7a,#101b28 60%);padding:6px 8px 6px 13px;box-shadow:0 0 0 1px #e8a05d0b;min-height:46px}
.cw-command-prefix,.cw-command-prefix>span{font-size:17px;color:#ffbf7a;margin:0}
.cw-command-form input{font:13px/1.6 var(--ps-mono);color:#f5e7d6;min-height:30px;padding:4px 0}
.cw-command-form input::placeholder{color:#c3ad96;opacity:1}
.cw-command-form input:focus-visible{outline:none}
.cw-command-input-row:focus-within{border-color:#ffd29c;box-shadow:0 0 0 2px #ffbe7140,0 0 22px #ffaf561f}
.cw-command-form #cw-command-submit{font:600 12px var(--ps-font);padding:7px 13px;line-height:1.3;background:#513621;border-color:#936437;color:#ffdcad;min-height:31px;white-space:nowrap}
.cw-command-form #cw-command-submit:hover:not(:disabled){background:#6a4629;border-color:#dda265;color:#ffebd3}
.cw-command-form #cw-help{padding:6px 9px;font-size:11px;min-height:31px;color:#bbcad6}
.cw-command-nudge .cw-command-input-row{animation:cw-command-invite 2.6s ease-in-out infinite}
@keyframes cw-command-invite{0%,100%{border-color:#956c42;box-shadow:0 0 0 1px #ffb5690a,0 0 6px #ffaf560a}50%{border-color:#ffc687;box-shadow:0 0 0 1px #ffbd7633,0 0 18px #ffad5e33,inset 0 0 13px #ffad5e09}}
.cw-footer{padding:6px 18px;min-height:25px;align-items:center;gap:12px;font-size:8px;background:#08131e;color:#7390a3}
.cw-footer .cw-live-badge{display:inline-flex;position:static;font-size:8px;flex:none;color:#8fd8b8}
.cw-browser-note{flex:1;text-align:left}.cw-footer>span:last-child{font-size:8px}
.cw-dialog{width:min(510px,calc(100vw - 28px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #62517e;border-radius:12px;padding:23px;background:linear-gradient(140deg,#182135,#0b1825);color:#dce6ef;box-shadow:0 24px 100px #000a;font:13px/1.6 var(--ps-font)}
.cw-dialog::backdrop{background:#020711aa;backdrop-filter:blur(3px)}
.cw-dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}
.cw-dialog-heading h2{font-size:20px;line-height:1.3;margin:5px 0 0;letter-spacing:-.02em;color:#e0cffa}
.cw-dialog-heading button{font-size:22px;line-height:1;padding:5px 9px;background:transparent;color:#c2b0d6}
.cw-dialog-intro{font:12px/1.75 var(--ps-font);margin:16px 0;color:#afbfce;max-width:100%;overflow-wrap:anywhere}
.cw-dialog .cw-settings{padding:0;border:0;grid-template-columns:1fr;gap:14px}
.cw-dialog .cw-settings label,.cw-dialog .cw-settings .cw-address-label{display:flex;flex-direction:column;align-items:stretch;font:11px var(--ps-font);color:#c1afd8;gap:6px;grid-column:auto}
.cw-dialog .cw-settings input,.cw-dialog .cw-settings select{height:40px;padding:9px 10px;font-size:12px;background:#0b1928;border-color:#394b61}
.cw-dialog .cw-settings input{font-size:11px}
.cw-dialog .cw-settings input[aria-invalid="true"]{border-color:#e5a46c;box-shadow:0 0 0 1px #e5a46c44}
.cw-dialog-note{font:11px/1.7 var(--ps-font);color:#839eb0;margin:15px 0}
.cw-dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid #2c3b50;padding-top:16px;margin-top:18px}
.cw-dialog-footer>span{font-size:10px;color:#87baa9}
.cw-dialog-footer button{font-size:11px;white-space:nowrap;padding:8px 12px}
.cw-dialog .cw-selected-meta{margin:15px 0;gap:7px}
.cw-info-map{display:inline-block;font-size:12px;margin-top:8px}
@media(min-width:761px){.cw-console.cw-library-collapsed .cw-layout{grid-template-columns:minmax(0,1fr)}.cw-console.cw-library-collapsed .cw-library{display:none}}
@media(max-width:1150px){.cw-layout{grid-template-columns:250px minmax(0,1fr)}.cw-bar h1{display:none}.cw-bar-divider{display:none}.cw-bar-title{gap:9px}.cw-output-actions #cw-run-status{max-width:105px;font-size:8px}.cw-result-toolbar{padding:0 12px}.cw-result-toolbar .cw-tabs{gap:14px}.cw-result-toolbar .cw-tabs button{font-size:9px}.cw-output-actions button{font-size:9px;padding:4px 6px}}
@media(max-width:900px){#cw-network-label,.cw-settings-separator{display:none}.cw-output-actions #cw-run-status{display:none}.cw-result-toolbar .cw-tabs{gap:11px}.cw-bar-title{gap:7px}.cw-console .cw-bar button{padding:5px 8px;font-size:10px}.cw-console .cw-library-toggle{min-width:100px}}
@media(max-width:760px){
  .cw-console .cw-bar{height:auto;min-height:77px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:33px 34px;padding:5px 10px;gap:0 8px}
  .cw-bar-title{display:contents}.cw-bar h2{grid-column:1;grid-row:2;font-size:12px;min-width:0;padding-left:2px;align-self:center}
  .cw-console .cw-library-toggle{grid-row:1;grid-column:1;justify-self:start;min-width:0;min-height:28px;font-size:10px;padding:4px 9px}
  .cw-bar h1,.cw-bar-divider{display:none}.cw-console .cw-info-button{grid-row:2;grid-column:2;justify-self:end;min-height:26px;font-size:17px;margin-right:3px}
  .cw-bar-actions{grid-row:1;grid-column:2;gap:5px}.cw-console .cw-bar-actions button{font-size:10px;min-height:28px;padding:4px 7px}
  .cw-console #cw-fullscreen{font-size:16px;min-width:27px;padding:1px 6px}
  .cw-layout{display:flex}.cw-library{padding-top:13px;width:min(320px,90vw)}
  .cw-result-toolbar{min-height:67px;flex-wrap:wrap;gap:0;padding:0 12px 5px;align-content:center}
  .cw-result-toolbar .cw-tabs{flex-basis:100%;gap:20px}.cw-result-toolbar .cw-tabs button{font-size:10px;padding:8px 0 7px}
  .cw-output-actions{width:100%;justify-content:flex-end;gap:7px;padding-top:3px}.cw-output-actions #cw-run-status{display:block;max-width:170px;margin-right:auto;font-size:8px}.cw-output-actions button{font-size:9px;min-height:23px;padding:2px 7px}
  .cw-workspace{overflow:hidden}.cw-panels{flex:1;min-height:0;height:auto}
  .cw-output{padding:14px 14px 22px;font-size:11px}.cw-welcome{margin:18px 0 0}.cw-welcome h3{font-size:22px;line-height:1.25}.cw-welcome p{font-size:12px}.cw-welcome .cw-welcome-hint{font-size:10px}
  .cw-examples{gap:7px;margin-top:16px}.cw-examples button{font-size:11px;padding:7px 10px;min-height:33px}
  .cw-command-form{padding:9px 10px 10px}.cw-command-caption{gap:8px;margin-bottom:7px}.cw-command-caption label{font-size:11px}.cw-command-caption>span{font-size:8px}
  .cw-command-input-row{min-height:47px;gap:7px;padding:5px 6px 5px 10px}.cw-command-form input{font-size:12px;min-height:31px}.cw-command-form #cw-command-submit{font-size:11px;padding:7px 9px}.cw-command-form #cw-help{font-size:10px;padding:6px 7px}.cw-command-prefix{font-size:15px}
  .cw-footer{padding:5px 12px;min-height:24px;gap:5px}.cw-footer .cw-live-badge{font-size:7px}.cw-browser-note{display:none}.cw-footer>span:last-child{font-size:7px;margin-left:auto}
  .cw-dialog{padding:19px;max-height:calc(100dvh - 24px)}.cw-dialog-heading h2{font-size:19px}.cw-dialog-footer{gap:8px}.cw-dialog-footer>span{font-size:9px}.cw-dialog-footer button{font-size:10px;padding:8px}
}
@media(max-width:380px){.cw-result-toolbar .cw-tabs{gap:13px}.cw-result-toolbar .cw-tabs button{font-size:9px}.cw-command-caption>span{font-size:7px}.cw-command-form #cw-help{display:none}.cw-command-form input{font-size:11px}}
@media(prefers-reduced-motion:reduce){.cw-command-nudge .cw-command-input-row{animation:none;border-color:#ffc687;box-shadow:0 0 12px #ffad5e22}}

.cw-security-notice{position:relative;flex:none;margin:0;padding:0 18px 9px;background:#0c1521;color:#ff8592;font:12px/1.6 var(--ps-font)}
#cw-security-toggle{display:inline-flex;align-items:center;gap:7px;width:auto;min-height:29px;margin:0;padding:4px 9px;border:1px solid #a34d5a;border-radius:5px;background:#321c27;color:#ff9ca5;cursor:pointer;font:700 11px/1.4 var(--ps-font)}
#cw-security-toggle:hover,#cw-security-toggle[aria-expanded="true"]{border-color:#f87f90;background:#452332}
#cw-security-toggle:focus-visible{outline:2px solid #ff9ca5;outline-offset:3px}
.cw-security-tooltip{position:absolute;left:18px;bottom:calc(100% - 1px);z-index:40;box-sizing:border-box;width:min(600px,calc(100% - 36px));max-height:60vh;overflow:auto;padding:14px 16px;border:1px solid #cc5f70;border-radius:8px;background:#23131ff5;color:#ff9ca5;box-shadow:0 8px 28px #0008}
.cw-security-tooltip[hidden]{display:none!important}
.cw-security-notice p{margin:0}.cw-security-notice strong{font-weight:700}.cw-security-notice span{color:inherit}
.cw-security-notice .cw-security-ip{margin-top:4px;overflow-wrap:anywhere}
.cw-security-notice #cw-client-ip{font-family:var(--ps-mono)}
.cw-security-notice .cw-security-subline{margin-top:5px;font-weight:400;color:#e3b2b7;font-size:11px}
@media(max-width:760px){.cw-security-notice{padding:0 12px 7px;font-size:11px;line-height:1.55}.cw-security-tooltip{left:12px;width:calc(100% - 24px);padding:12px}.cw-security-notice .cw-security-subline{font-size:11px}}
/* Shoutbox is anchored to the lower-right corner. */
body[data-ps-section="console"] .ps-community-toggle,body[data-ps-section="console"] .ps-community-panel{bottom:max(8px,env(safe-area-inset-bottom))!important}
@media(max-width:760px){body[data-ps-section="console"] .ps-community-toggle,body[data-ps-section="console"] .ps-community-panel{bottom:max(8px,env(safe-area-inset-bottom))!important}}

/* v17: all script context and settings live in the collapsible left panel. */
.cw-layout{position:relative;grid-template-columns:280px minmax(0,1fr);overflow:hidden}
.cw-library{padding:0;overflow:hidden}
.cw-library-heading{flex:none;height:48px;min-height:48px;margin:0;padding:0 12px;border-bottom:1px solid #343047;background:linear-gradient(110deg,#1d2034,#111b2b)}
.cw-library-heading h2{font-size:12px;color:#d4bff0}
.cw-console #cw-library-close{display:inline-flex;align-items:center;gap:5px;font-size:20px;min-height:30px;padding:3px 8px;border-color:#55436a;background:#272039}
#cw-library-close span{font:10px var(--ps-font)}
.cw-library-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#4b3b65 #0a1422;padding:0 11px 12px}
.cw-library-section{border-bottom:1px solid #283146}
.cw-library-section>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:59px;padding:13px 3px;cursor:pointer;list-style:none;color:#d6c2ef}
.cw-library-section>summary::-webkit-details-marker,.cw-script-group>summary::-webkit-details-marker{display:none}
.cw-library-section>summary>span{min-width:0}
.cw-library-section>summary strong{display:block;font:600 12px/1.45 var(--ps-font);overflow-wrap:anywhere}
.cw-library-section>summary small{display:block;font:10px/1.5 var(--ps-font);color:#889caf;margin-top:3px}
.cw-library-section>summary .cw-eyebrow{display:block;font-size:8px;margin-bottom:4px;color:#a28bbf}
.cw-library-section>summary::after,.cw-script-group>summary::after{content:'›';flex:none;font:20px/1 var(--ps-font);color:#b59bcc;transition:transform .15s}
.cw-library-section[open]>summary::after,.cw-script-group[open]>summary::after{transform:rotate(90deg)}
.cw-library-section>summary:hover{color:#f0e1ff}
.cw-section-body{padding:0 3px 15px}
.cw-section-body>p{font:11px/1.7 var(--ps-font);color:#a0b6c6;margin:0 0 10px;overflow-wrap:anywhere}
.cw-section-body .cw-section-note{font-size:10px;color:#889ead}
.cw-section-body .cw-selected-meta{gap:5px;margin:12px 0}
.cw-section-body .cw-tag{font-size:8px;padding:3px 5px}
.cw-section-body .cw-info-map{font-size:10px;margin-top:1px}
.cw-section-body .cw-settings{padding:0;margin:12px 0;border:0;grid-template-columns:minmax(0,1fr);gap:12px}
.cw-section-body .cw-settings label,.cw-section-body .cw-settings .cw-address-label{display:flex;flex-direction:column;align-items:stretch;grid-column:auto;gap:5px;font:10px var(--ps-font);color:#bba6d3}
.cw-section-body .cw-settings input,.cw-section-body .cw-settings select{height:36px;font-size:11px;padding:7px 9px;background:#0b1828;border-color:#38485f}
.cw-section-body .cw-settings input{font-size:10px}
.cw-section-body .cw-settings input[aria-invalid="true"]{border-color:#e5a46c;box-shadow:0 0 0 1px #e5a46c44}
.cw-library-runbar{flex:none;padding:11px 12px calc(11px + env(safe-area-inset-bottom,0px));border-top:1px solid #3e3553;background:#101b2b;box-shadow:0 -5px 16px #050e1833}
.cw-library-runbar #cw-settings-run{font:600 11px var(--ps-font);width:100%;min-height:42px;padding:10px}
.cw-library-controls .cw-library-label{display:block;margin:10px 0 5px;font-size:9px}
.cw-library-controls>select{width:100%;height:34px;padding:6px 8px;font-size:10px;min-width:0}
.cw-library-controls #cw-script-picker{color:#ddc9fc;border-color:#615080;background:#1c2035}
.cw-library-controls #cw-script-picker:disabled{opacity:.65}
.cw-library-controls .cw-search input{font-size:10px;padding:9px 25px 9px 9px}
.cw-library-count{font-size:8px;line-height:1.6;padding:11px 0 7px}
.cw-script-list{overflow:visible;flex:none;margin:0;padding:0}
.cw-script-group{padding:0;margin:5px 0;border:1px solid #2b2d43;border-radius:6px;letter-spacing:0;text-transform:none;background:#101829}
.cw-script-group>summary{display:flex;align-items:center;gap:8px;padding:10px 9px;min-height:38px;font:600 10px/1.4 var(--ps-font);color:#c5afd9;list-style:none;cursor:pointer}
.cw-script-group>summary>span:first-child{flex:1}
.cw-script-group>summary::after{font-size:17px}
.cw-group-count{color:#9e88ba;font:9px var(--ps-mono);padding:2px 5px;border-radius:4px;background:#261e37}
.cw-script-group-body{padding:0 4px 5px}
.cw-script-group-body button{padding:8px 9px;margin:3px 0}
.cw-script-group-body .cw-script-description{display:none}
.cw-script-group-body .cw-script-title{font-size:11px}
.cw-script-group-body .cw-script-detail{font-size:7px;line-height:1.5;margin-top:4px}
.cw-library-footer{margin-top:10px;padding:9px 3px}
.cw-console .cw-bar{height:48px;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 16px}
.cw-bar-title{display:flex;gap:16px}
.cw-bar h1{display:block;font-size:12px}
.cw-bar-readonly{font:8px var(--ps-mono);color:#81bda7;letter-spacing:.06em;white-space:nowrap}
.cw-library-rail{background:#14182a;border-right:1px solid #3d3152;min-width:0}
.cw-console #cw-library-toggle{display:flex;width:100%;flex-direction:column;align-items:center;gap:15px;padding:12px 3px;min-height:125px;border:0;border-radius:0;background:transparent;color:#d1b5f5}
#cw-library-toggle>span:first-child{font:26px/1 var(--ps-font)}
.cw-rail-label{writing-mode:vertical-rl;font:10px var(--ps-mono);letter-spacing:.1em;text-transform:uppercase}
.cw-console #cw-library-toggle:hover{background:#32253f;color:#f1ddff}
@media(min-width:761px){.cw-console.cw-library-collapsed .cw-layout{grid-template-columns:36px minmax(0,1fr)}}
@media(max-width:1000px){.cw-layout{grid-template-columns:260px minmax(0,1fr)}.cw-bar-readonly{display:none}}
@media(max-width:760px){
 .cw-layout{display:flex;overflow:hidden}.cw-library{width:min(330px,90vw);padding:0}
 .cw-library-heading{height:48px;min-height:48px}.cw-console #cw-library-close{min-height:36px;padding:4px 10px}
 .cw-library-section>summary{min-height:58px}.cw-script-group>summary{min-height:44px}
 .cw-library-rail{position:absolute;top:0;left:0;z-index:2;width:41px;height:48px;border-right:1px solid #453553;border-bottom:1px solid #343047}
 .cw-console #cw-library-toggle{height:48px;min-height:48px;padding:0;justify-content:center}.cw-rail-label{display:none}
 .cw-console .cw-bar{height:48px;min-height:48px;padding:0 10px 0 51px;display:flex;gap:7px}
 .cw-bar-title{display:flex;gap:0}.cw-bar h1{display:block;font-size:11px}.cw-bar-actions{display:flex;gap:5px}
 .cw-console .cw-bar-actions button{font-size:10px;min-height:30px;padding:4px 7px}
 .cw-console #cw-fullscreen{font-size:16px;min-width:27px;padding:1px 6px}
 #cw-network-label{display:inline}
}
@media(max-width:350px){.cw-bar h1{font-size:10px}.cw-bar h1>span{display:none}.cw-console .cw-bar-actions button{font-size:9px}}
@media(max-width:760px){.cw-console #cw-library-toggle{gap:1px}.cw-console #cw-library-toggle>span:first-child{font-size:23px}.cw-rail-label{display:block;writing-mode:horizontal-tb;font:6px var(--ps-mono);letter-spacing:.03em}}

/* v19: append-only terminal runs and a persistent output scrollbar. */
#cw-panel-output{overflow-y:scroll;scrollbar-gutter:stable;scrollbar-color:#655580 #0b1422}
#cw-panel-output::-webkit-scrollbar{width:9px;height:9px}
#cw-panel-output::-webkit-scrollbar-track{background:#0b1422}
#cw-panel-output::-webkit-scrollbar-thumb{background:#655580;border-radius:6px;border:2px solid #0b1422}
.cw-terminal-run{min-width:0}
.cw-terminal-run+.cw-terminal-run{margin-top:25px;padding-top:20px;border-top:1px solid #3e3553}
.cw-balance-progress{color:#c6b1e7;font-size:11px;padding:8px 0}

/* Compact verification control; challenge opens only when needed. */
.cw-human-bar{flex:none;display:flex;align-items:center;gap:8px;padding:0 18px 6px;background:#0c1521;color:#8999ad;font:9px var(--ps-font)}
.cw-console #cw-human-button{padding:4px 8px;min-height:27px;font:10px var(--ps-font);color:#cab4e8;background:#211e32;border-color:#514166}
.cw-human-dialog{width:min(370px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;border:1px solid #6a5489;border-radius:12px;padding:24px;background:#0d1929;color:#dce9f1;font:13px/1.6 var(--ps-font,Arial,sans-serif);box-shadow:0 18px 80px #000a}
.cw-human-dialog::backdrop{background:#030813bb;backdrop-filter:blur(3px)}
.cw-human-dialog h2{margin:0 30px 10px 0;font-size:18px;color:#ddc9f4}
.cw-human-dialog p{margin:8px 0 15px;color:#aec0ce}
.cw-human-dialog .cw-human-note{font-size:10px;color:#879eaf;margin-bottom:0}
.cw-human-close{position:absolute;right:12px;top:10px;border:1px solid #574467;border-radius:6px;background:#261e36;color:#dcc7f5;font-size:22px;line-height:30px;width:34px;cursor:pointer}
.cw-human-retry{border:1px solid #4e7865;border-radius:5px;background:#163c31;color:#aff4d0;padding:9px 12px;margin-top:12px;cursor:pointer}
#cw-human-widget{min-width:0;display:flex;justify-content:center}
@media(max-width:760px){.cw-human-bar{padding:0 12px 5px;font-size:8px}.cw-human-bar>span{font-size:8px}body[data-ps-section="console"] .ps-community-toggle,body[data-ps-section="console"] .ps-community-panel{bottom:max(8px,env(safe-area-inset-bottom))!important}}
@media(max-width:359px){.cw-human-dialog{padding:18px}.cw-human-bar>span{display:none}}

/* One compact safety row; red disclosure opens above it without taking space. */
.cw-safety-bar{position:relative;flex:none;display:flex;align-items:center;gap:10px;padding:0 155px 8px 18px;background:#0c1521;min-height:37px}
.cw-safety-bar .cw-human-bar{padding:0;flex:none}.cw-safety-bar .cw-human-bar>span{display:none}
.cw-safety-bar .cw-security-notice{position:static;padding:0;flex:none}
.cw-safety-bar .cw-security-tooltip{bottom:calc(100% - 1px)}
.cw-safety-bar #cw-human-button{min-height:29px;font-size:11px;font-weight:600}
.cw-presence-slot{flex:none;display:flex;align-items:center;min-width:0}
.cw-presence-slot:empty{display:none}
.cw-presence-slot .ps-presence{display:inline-flex;align-items:center;gap:6px;color:#91a69e;font:10px/1.25 var(--ps-mono);white-space:nowrap}
.cw-presence-slot .ps-presence-dot{width:5px;height:5px;border-radius:50%;background:#60756c;flex:none}
.cw-presence-slot .ps-presence-live{color:#9cf1c9}
.cw-presence-slot .ps-presence-live .ps-presence-dot{background:#74e9b5;box-shadow:0 0 7px #74e9b580}
.cw-command-form.cw-command-locked .cw-command-input-row{animation:none;box-shadow:none;border-color:#62503e}
.cw-command-form input:disabled{opacity:.7;cursor:not-allowed}
body[data-ps-section="console"] .ps-community-toggle{right:12px;padding:7px 10px;min-height:36px}
@media(max-width:760px){.cw-safety-bar{gap:7px;padding:0 58px 7px 12px;flex-wrap:wrap}.cw-safety-bar #cw-human-button{font-size:10px;padding:4px 7px}.cw-safety-bar #cw-security-toggle{font-size:10px;padding:4px 7px}.cw-footer{padding-right:58px}}
@media(max-width:760px){body[data-ps-section="console"] .ps-community-toggle{width:36px;justify-content:center;padding:7px}body[data-ps-section="console"] .ps-community-toggle>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.cw-footer{padding-right:58px}}
