:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#1f2732;background:#f6f7f9;font-size:16px}
.du-root{--accent:var(--du-theme-palette-accent);--line:var(--du-theme-palette-border);--muted:var(--du-theme-palette-muted);color-scheme:var(--du-theme-palette-scheme);accent-color:var(--accent)}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button,.import{cursor:pointer}
/* Ordinary action buttons share the DenseUI palette and control geometry. */
button:where(:not([class^="du-"]):not([class*=" du-"])),button.du-button,.pipeline-dialog .pw-upload{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:28px;padding:4px 10px;border:var(--du-theme-metrics-border-thickness,1px) solid var(--du-theme-palette-border);border-radius:var(--du-theme-shape-control-radius,4px);background:var(--du-theme-palette-raised);color:var(--du-theme-palette-text);font:500 13px/1.3 "Segoe UI",sans-serif;white-space:normal;cursor:pointer}
button:where(:not([class^="du-"]):not([class*=" du-"])):enabled:hover,button.du-button:enabled:hover,.pipeline-dialog .pw-upload:hover,.import:hover{background:var(--du-theme-palette-hover)}
button:is(.primary,.pw-primary,.du-button-primary){background:var(--du-theme-palette-accent);border-color:var(--du-theme-palette-accent);color:var(--du-theme-palette-on-accent)}
button:is(.primary,.pw-primary,.du-button-primary):enabled:hover{background:var(--du-theme-palette-accent-hover)}
button.du-button-danger{background:var(--du-theme-palette-danger);border-color:var(--du-theme-palette-danger);color:var(--du-theme-palette-on-danger)}
button.du-button-ghost{background:transparent;border-color:transparent}
button:disabled,input:disabled,select:disabled{opacity:.54;cursor:default}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.glyph{width:18px;height:18px;flex:none}
.top{min-height:66px;display:flex;align-items:center;gap:18px;padding:0 25px;background:var(--du-theme-palette-surface);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;font-size:23px;letter-spacing:-1.1px;font-weight:710}
.brand img{width:32px;height:32px}
.product{color:var(--du-theme-palette-muted);font-size:14px}
.top-divider{width:1px;height:20px;background:var(--line)}
.top-actions,.preview-actions,.figure-foot span,.runtime,.code-foot div{display:flex;align-items:center;gap:12px}
.top-actions{margin-left:auto;gap:22px}
.runtime,.size,.figure-foot,.code-foot{font-size:12px;color:var(--muted)}
.dot{display:inline-block;background:var(--du-theme-palette-accent);border-radius:50%;width:7px;height:7px}
aside{background:var(--du-theme-palette-surface);padding:24px 18px}
h2{display:flex;align-items:center;gap:9px;font-size:15px;letter-spacing:-.2px;margin:0;font-weight:650}
h2 .glyph{color:var(--du-theme-palette-muted)}
h3{margin:20px 0 12px;font-size:13px;font-weight:680;color:var(--du-theme-palette-text)}
.rule{border-top:1px solid var(--line);margin:23px -18px}
.import{display:flex;position:relative;align-items:center;justify-content:center;gap:7px;border:1px dashed var(--du-theme-palette-border);padding:8px;border-radius:5px;font-size:13px;font-weight:600}
.import input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.import:focus-within{outline:2px solid var(--accent)}
.fieldtype{width:24px;text-align:center;color:var(--du-theme-palette-accent);font-family:monospace;font-size:13px;background:var(--du-theme-palette-raised);border-radius:3px;padding:2px}
.hint{font-size:12px;line-height:1.55;color:var(--muted);margin-top:15px}
main{padding:24px clamp(15px,2.2vw,36px) 30px;min-width:0}
.eyebrow{font-size:12px;font-weight:580;color:var(--muted)}
h1{font-size:clamp(23px,2vw,30px);letter-spacing:-1.1px;margin:5px 0 20px;font-weight:670}
.panel{border:1px solid var(--line);background:var(--du-theme-palette-surface);border-radius:9px;overflow:hidden;box-shadow:0 2px 5px #26213b05}
.panel-head{padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);height:46px}
.panel-head h2{font-size:14px}
.icon{border:none;padding:4px;color:var(--du-theme-palette-muted)}
.icon .glyph{width:16px}
.figure-foot,.code-foot{padding:9px 14px;border-top:1px solid var(--du-theme-palette-border);display:flex;align-items:center;justify-content:space-between}
.code{margin-top:17px}
.tabs{display:flex;height:100%;gap:18px}
.tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--muted);padding:0 1px;background:var(--du-theme-palette-surface);font-size:13px}
.tabs .active{border-bottom-color:var(--accent);color:var(--du-theme-palette-accent)}
.listing,.editor,.table-wrap{height:186px;overflow:auto}
.listing,.editor{font:13px/1.65 "IBM Plex Mono",Consolas,monospace;background:var(--du-theme-palette-surface);tab-size:4}
.listing{padding:11px 0}
.listing>div{display:flex;min-height:21px}
.lineno{display:inline-block;text-align:right;color:var(--du-theme-palette-muted);min-width:40px;padding-right:14px;user-select:none}
.listing code{white-space:pre;color:var(--du-theme-palette-text);font:inherit}
.kw{color:var(--du-theme-palette-accent)}
.str{color:var(--du-theme-palette-accent)}
.comment{color:var(--du-theme-palette-muted)}
.num{color:var(--du-theme-palette-danger)}
.editor{display:block;width:100%;resize:vertical;border:0;padding:11px 15px;white-space:pre}
.code-foot div{gap:6px}
.console,.error pre{font:12px/1.5 monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto}
.console{padding:12px}
.error{background:color-mix(in srgb,var(--du-theme-palette-danger) 12%,var(--du-theme-palette-surface));border:1px solid var(--du-theme-palette-danger);border-radius:6px;padding:12px;margin-bottom:12px}
.error button{float:right}
.swatches{display:flex;gap:5px;margin-top:-3px}
.swatches i{height:7px;flex:1;border-radius:2px}
.switch-label input{appearance:none;width:29px;height:17px;border-radius:20px;background:var(--du-theme-palette-muted);position:relative;cursor:pointer}
.switch-label input:before{content:"";position:absolute;top:3px;left:3px;width:11px;height:11px;border-radius:50%;background:var(--du-theme-palette-surface)}
.switch-label input:checked{background:var(--accent)}
.switch-label input:checked:before{left:15px}
.boot{padding:40px}
.table-wrap table{border-collapse:collapse;font-size:13px;width:100%;text-align:left;white-space:nowrap}
td,th{padding:7px 12px;border-bottom:1px solid var(--du-theme-palette-border)}
th{position:sticky;top:0;background:var(--du-theme-palette-raised)}
@media(min-width:1550px){main{padding-left:3vw;padding-right:3vw}
.listing,.editor,.table-wrap{height:230px}}
@media(max-width:1050px){aside{padding:20px 12px}
.rule{margin:18px -12px}
main{padding:20px 12px}}
@media(max-width:780px){main{grid-area:1 / 1 / 2 / 3}
.top{padding:10px 14px;gap:10px}
.top-divider,.product,.runtime{display:none}
.top-actions{gap:4px}
.panel-head{padding:0 10px}}
.studio-shell{height:100%;overflow:auto;color:var(--du-theme-palette-text);background:var(--du-theme-palette-background);font-family:Inter,"Segoe UI",sans-serif}
.studio-shell .top{min-height:58px}
.app-tools.du-toolbar{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:4px;padding:6px 20px;background:var(--du-theme-palette-background);border-bottom:1px solid var(--du-theme-palette-border);min-height:38px;overflow-x:auto}
.app-tools .du-button{white-space:nowrap}
.app-tools .tool-current,.method-list .chosen,.api-results .chosen,.segmented .current{background:var(--du-theme-palette-hover);color:var(--du-theme-palette-accent);box-shadow:inset 0 0 0 1px var(--du-theme-palette-accent)}
.tool-divider{height:16px;border-left:1px solid var(--du-theme-palette-border);margin:0 4px}
.tool-fill{flex:1}
.segmented,.inline-actions{display:flex;gap:5px;margin:12px 0}
.segmented button{flex:1}
.method-help{margin-top:12px;padding:10px;background:var(--du-theme-palette-raised);border-radius:5px}
.method-help code,.api-detail code{overflow-wrap:anywhere}
.method-help p,.api-detail p{font-size:13px;line-height:1.5}
.settings-form{margin:6px 0 12px}
.settings-form textarea{width:100%;resize:vertical;display:block}
.settings-form input[type=color]{display:block;width:100%;height:27px}
.modal-shade{position:fixed;inset:0;background:#24223366;z-index:8}
.api-dialog{position:fixed;z-index:9;inset:8vh max(4vw,calc((100vw - 1050px)/2));background:var(--du-theme-palette-surface);border:1px solid var(--du-theme-palette-border);box-shadow:0 16px 80px #2223;border-radius:10px;padding:20px;display:flex;flex-direction:column;overflow:hidden}
.api-dialog header,.api-filters{display:flex;justify-content:space-between;align-items:center;gap:12px}
.api-dialog header h2{font-size:22px;margin-top:4px}
.api-filters{margin:16px 0}
.api-filters input{flex:1;min-width:0}
.api-layout{display:grid;grid-template-columns:minmax(0,43%) minmax(0,57%);min-height:0;flex:1}
.api-results,.api-detail{overflow:auto;padding:8px}
.api-results{border-right:1px solid var(--line)}
.api-results button{width:100%;display:block;text-align:left;padding:7px;background:transparent;border:0}
.api-results button strong{display:block;font:12px/1.4 monospace;overflow-wrap:anywhere}
.api-results small,.api-detail small{font-size:12px;color:var(--muted)}
.api-detail{padding:14px;min-width:0}
.api-detail h3{overflow-wrap:anywhere}
.api-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;background:var(--du-theme-palette-raised);font-size:13px}
.error{position:relative;z-index:1}
@media(max-width:780px){.app-tools.du-toolbar{padding:5px}
.api-dialog{inset:2vh 2vw;padding:10px}
.api-layout{grid-template-columns:1fr;grid-template-rows:minmax(120px,40%) 1fr}
.api-results{border-right:0;border-bottom:1px solid var(--line)}}
.class-dialog .api-detail :is(input:not([type=checkbox]):not([type=radio]),select,textarea),.subplot-select select{display:block;width:100%;margin-top:4px}
.script-dialog{max-width:680px;margin:auto;height:fit-content;max-height:86vh;overflow:auto;gap:12px}
.script-dialog label{display:grid;gap:5px;font-size:14px}
.script-dialog input[type=file]{font-size:13px}
.script-dialog textarea{font:13px/1.5 monospace}
.cell-bar{display:flex;align-items:center;gap:8px;padding:8px 12px;flex-wrap:wrap}
.cell-bar label{display:flex;align-items:center;gap:8px;font-size:13px}
.cell-bar select{max-width:min(34vw,440px)}
.code-foot,.code-foot div{flex-wrap:wrap}
.script-dialog header{position:static}
.visual-param,.value-input{min-width:0}
.visual-param{padding:.35rem 0}
.value-input fieldset,.settings-form fieldset{border:1px solid var(--du-theme-palette-border);border-radius:4px;min-width:0;margin:.25rem 0;padding:.4rem .6rem}
.value-input legend,.settings-form legend{font-weight:600;padding:0 .2rem}
.value-input fieldset label,.settings-form fieldset label,.visual-param>label:has(input[type=checkbox]),.settings-form label:has(input[type=checkbox]){display:flex;align-items:center;gap:.45rem}
.visual-param input[type=checkbox],.visual-param input[type=radio],.settings-form input[type=checkbox],.settings-form input[type=radio]{width:auto;min-height:0;accent-color:var(--du-theme-palette-accent)}
.value-row{display:flex;gap:.4rem;margin:.3rem 0}
.value-row input{min-width:0;flex:1}
.value-type{font-size:.8rem}
.value-input input[type=range]{width:100%}
.studio-shell.studio-desktop{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.studio-desktop>.top,.studio-desktop>.app-tools{flex:none}
.studio-desktop .slot-headeractions,.studio-desktop .slot-menu,.studio-desktop .slot-historyactions{display:contents}
.studio-desktop>.studio-docks{flex:1;min-height:0;height:auto;background:var(--du-theme-palette-background)}
.studio-docks .studio-pane-body{width:100%;height:100%;min-width:0;min-height:0;overflow:auto;background:var(--du-theme-palette-surface)}
.studio-pane-body aside{display:block;width:auto;height:auto;position:static;padding:12px;border:0}
.studio-pane-body .slot-source,.studio-pane-body .code{height:100%}
.studio-pane-body .code{display:flex;flex-direction:column;margin:0;border:0;border-radius:0}
.studio-pane-body .code :is(.listing,.editor,.table-wrap){flex:1;min-height:48px;height:auto}
.studio-docks .du-dock-window-titlebar{cursor:grab}
.studio-docks .du-dock-window-titlebar:active{cursor:grabbing}
.studio-tool-window{max-width:100%;max-height:100%}
.slot-dialogs:has(.expanded) .workspace-head,.slot-dialogs:has(.expanded) .error{display:none}
.studio-tool-window .api-dialog{position:relative;inset:auto;z-index:auto;width:100%;height:100%;max-height:none;border:0;border-radius:0;box-shadow:none;overflow:auto}
.studio-tool-window .api-filters{flex-wrap:wrap}
.studio-tool-window .api-filters>*{min-width:0}
.studio-tool-window .api-layout{min-height:110px}
.studio-desktop .tool-divider{flex:0 0 1px;width:1px;height:20px;background:var(--muted);border:0;margin-inline:6px}
.studio-pane-body .rule{margin-inline:0}
.studio-pane-body .slot-data{height:100%;min-width:0}
.studio-pane-body .source-actions{display:flex;justify-content:flex-end;padding:2px 6px}
.studio-docks .du-panel-content>.studio-pane-body{flex:1 1 0%;width:auto;min-width:0;max-width:100%;overflow:auto;scrollbar-gutter:auto}
.studio-pane-body :is(.slot-palette,.slot-properties,.slot-source,.slot-data){min-width:0;max-width:100%}
.studio-pane-body .import{overflow:hidden}
.studio-pane-body .field>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
.studio-desktop .studio-pane-body label.option-row{display:flex;align-items:center;gap:.5rem;margin:.4rem 0;line-height:1.45}
.studio-desktop .studio-pane-body label.option-row>input:is([type=checkbox],[type=radio]){display:inline-block;flex:0 0 auto;width:1em;height:1em;margin:0;padding:0}
.studio-desktop .studio-pane-body label.slider-field,.studio-desktop label.range-label{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:4px 8px}
.studio-desktop :is(.slider-field,.range-label)>output{font-variant-numeric:tabular-nums;color:var(--muted)}
.studio-desktop :is(.slider-field,.range-label)>input[type=range]{display:block;grid-column:1/-1;width:100%;min-width:0;max-width:100%;margin:0;accent-color:var(--accent)}
.theme-toggle[aria-pressed=true]{background:var(--du-theme-palette-hover);border-color:var(--accent)}
@media(prefers-reduced-motion:no-preference){.studio-desktop,.studio-desktop :is(.du-dock-window-titlebar,.du-button,.studio-pane-body,.top,.app-tools,aside,.panel,.pw-pipelines){transition:background-color .16s,color .16s,border-color .16s}}
.workflow-root{padding:0;margin:0;display:flex;flex:1;min-height:0;min-width:0;overflow:hidden}
.workflow-root>.pw-pipelines{flex:1;width:100%;height:100%}
.dialog-content{width:100%;height:100%;min-width:0;min-height:0;overflow:auto;padding:12px;color:var(--du-theme-palette-text);background:var(--du-theme-palette-surface);font:14px/1.45 Inter,"Segoe UI",sans-serif}
.dialog-content:is(.plot-editor-modal,.source-modal,.reference-modal){display:flex;flex-direction:column}
.dialog-content.plot-editor-modal{padding:0;overflow:hidden}
.top-actions .pw-upload{position:relative;overflow:hidden;display:inline-flex;align-items:center;width:auto;margin:0;padding:.43rem .72rem;border:1px solid var(--line);border-radius:6px;background:var(--du-theme-palette-surface);font-weight:550;cursor:pointer;white-space:nowrap}
.top-actions .pw-upload input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}
.top-actions{min-width:0;overflow-x:auto}
.plot-editor-modal .studio-docks{flex:1;min-height:0;position:relative}
.source-modal .slot-source,.branch-listing{flex:1;min-height:0;overflow:auto}
.source-modal .code{height:100%;display:flex;flex-direction:column}
.source-modal .listing,.source-modal .editor{flex:1;height:auto;min-height:0;max-height:none;overflow:auto}
.import-body{display:grid;gap:12px}
.import-body label{display:grid;gap:4px}

/* The editor is window content, not a card nested inside a second scrolling panel. */
.dialog-content.source-modal{padding:0;overflow:hidden;min-height:0;min-width:0;display:flex;flex-direction:column}
.source-modal .slot-source{flex:1 1 0;display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;height:100%;overflow:hidden;background:var(--du-theme-palette-surface)}
.source-modal .source-actions{flex:0 0 auto;justify-content:flex-start;padding:8px 14px;gap:6px}
.source-modal .slot-source>.listing,.source-modal .slot-source>.editor{flex:1 1 0;min-height:0;max-height:none;height:auto;overflow:auto;resize:none;margin:0;border:0;border-radius:0}
.source-modal .slot-source>.console{flex:none;margin:0;max-height:18vh;overflow:auto;border-top:1px solid var(--du-theme-palette-border)}
.source-modal .source-empty{flex:1 1 0;min-height:0;padding:18px 20px;color:var(--du-theme-palette-muted)}
.source-modal>.error,.source-modal>small{flex:none;margin:0;padding:6px 14px}
.pw-window-status{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;padding:5px 12px;background:var(--du-theme-palette-background);border-top:1px solid var(--du-theme-palette-border);color:var(--du-theme-palette-muted);font-size:12px;border-radius:0;box-shadow:none}
.source-modal .code-foot{margin:0;padding:4px 12px;min-height:44px}
.source-modal .code-foot span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
/* Only the code listing scrolls; no duplicated frame scrollbar. */
.source-modal .du-panel-content,.source-modal .du-panel{min-height:0;overflow:hidden}

/* The desktop and each dialog have a single window-level status strip. */
.studio-status{flex:0 0 auto;min-height:26px;padding:3px 12px}
.studio-status .runtime{font-size:12px;gap:7px}
.dialog-content.pipeline-dialog:not(.reference-modal){display:flex;flex-direction:column;overflow:hidden;padding:0}
.dialog-content.pipeline-dialog:not(.reference-modal)>.pw-main{flex:1 1 0;min-height:0;min-width:0;overflow:auto;padding:12px 16px}
.dialog-content.pipeline-dialog:not(.reference-modal)>footer{width:100%}
.value-input fieldset,.settings-form fieldset,.pipeline-dialog fieldset{border:0;border-radius:0;margin:.5rem 0;padding:.4rem 0}
.method-help{background:transparent;border-radius:0;padding:8px 0}

.workflow-root>.global-workspace,.workflow-content,.workflow-content>.pw-pipelines{width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}
.global-workspace{position:relative;flex:1}
.global-workspace>[data-du-persist-key="workflow"]>.du-dock-window-titlebar{display:none}
/* The workflow has no title bar. Its client occupies both DenseUI window rows. */
.global-workspace>[data-du-persist-key="workflow"]>.du-window-client{grid-row:1 / -1}

.studio-shell.studio-desktop>.top{box-sizing:border-box;min-height:32px;padding:2px 8px;gap:8px}
.top .brand{gap:6px;font-size:16px;letter-spacing:-.4px}
.top .brand img{width:21px;height:21px}
.top .top-divider{height:16px}
.top .product{font-size:12px}
.top .top-actions{gap:1px;scrollbar-width:thin}
.top .top-actions :is(button,.pw-upload){display:inline-flex;align-items:center;flex-shrink:0;box-sizing:border-box;width:auto;height:25px;min-height:0;min-width:0;margin:0;padding:2px 7px;border:0;border-radius:2px;box-shadow:none;background:transparent;color:var(--du-theme-palette-text);font:13px/1.2 "Segoe UI",sans-serif;white-space:nowrap}
.top .top-actions :is(button:enabled:hover,.pw-upload:hover,button[aria-pressed=true]){background:var(--du-theme-palette-hover)}
.top .top-actions :is(button:focus-visible,.pw-upload:focus-within){outline:1px solid var(--accent);outline-offset:-1px}

.app-tools button.studio-menu-trigger{border:0;background:transparent;padding:3px 8px}
.studio-menu-trigger::after{content:"";border:3px solid transparent;border-top-color:currentColor;margin:4px 0 0 2px}
.studio-menu-items:popover-open{position:fixed;inset:auto;display:grid;min-width:min(200px,100vw);max-width:100vw;overflow-y:auto;margin:0;padding:4px;border:1px solid var(--line);border-radius:4px;background:var(--du-theme-palette-surface);color:var(--du-theme-palette-text);box-shadow:0 4px 15px #0002}
.studio-menu-items strong{padding:5px 8px 3px;color:var(--du-theme-palette-muted);font:600 12px/1.3 "Segoe UI",sans-serif}
.studio-menu-items button{justify-content:flex-start;padding:4px 8px;border:0;border-radius:2px;background:transparent;color:inherit;font:13px/1.3 "Segoe UI",sans-serif}
.studio-menu-items button:is(:hover,:focus-visible){background:var(--du-theme-palette-hover)}

/* Compact type editing is available in every generated parameter editor. */
.value-input .property-value-cell{display:flex;align-items:center;min-width:0;width:100%;gap:0}
.value-input .property-value-cell>:first-child{flex:1 1 auto;min-width:0}
.value-input .value-type-select{flex:0 0 auto;min-width:76px;max-width:125px;min-height:28px;padding:3px 24px 3px 7px;border:1px solid var(--du-theme-palette-border);border-radius:3px;background-color:var(--du-theme-palette-surface);color:var(--du-theme-palette-muted);font-size:12px;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23666370' stroke-width='1.4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center}
.value-input .value-collection>legend{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}
.value-input .value-empty{color:var(--du-theme-palette-muted)}

/* Plot types and data are independent DenseUI panes, not cards in Properties. */
.plot-types-palette{min-width:0;padding:8px 11px 14px}
.plot-types-palette>.property-section{margin:0;padding:0;border:0}
.plot-method-palette>.hint:first-child{margin:4px 0 10px}
.plot-type-picker{min-width:0;margin:5px 0 12px}
.plot-type-picker>input[type=search]{width:100%;min-width:0;padding:6px 8px}
.plot-type-family{border:0;border-bottom:1px solid var(--du-theme-palette-border);border-radius:0;margin:0;padding:0}
.plot-type-family>summary{padding:8px 4px;cursor:pointer;font-size:12px;font-weight:650}
.plot-type-family>summary small{float:right;color:var(--du-theme-palette-muted);font-weight:400}
.plot-type-options{display:flex;flex-wrap:wrap;gap:3px;padding:2px 0 10px}
.plot-type-options .plot-type-choice{display:flex;align-items:center;gap:7px;flex:1 1 42%;min-width:0;max-width:100%;padding:6px 5px;text-align:left;justify-content:flex-start;font-size:12px;font-weight:450;overflow-wrap:anywhere;white-space:normal;border:1px solid transparent;border-radius:3px;background:transparent}
.plot-type-options .plot-type-choice:hover{background:var(--du-theme-palette-hover)}
.plot-type-options .plot-type-choice.selected{border-color:var(--du-theme-palette-accent);background:var(--du-theme-palette-raised);color:var(--du-theme-palette-text);font-weight:650}
.plot-type-choice .plot-type-icon{width:30px;height:25px;flex:0 0 30px;color:var(--du-theme-palette-muted)}
.plot-type-choice.selected .plot-type-icon,.plot-type-choice:hover .plot-type-icon{color:var(--du-theme-palette-accent)}
.plot-type-choice>span{min-width:0;overflow-wrap:anywhere}
.plot-method-heading{display:flex;align-items:center;justify-content:space-between;gap:7px;border-bottom:1px solid var(--du-theme-palette-border);padding:8px 0 7px;margin-bottom:5px}
.plot-method-heading strong{font-size:13px}
.plot-method-heading small{font-size:11px;color:var(--du-theme-palette-muted)}

/* Flat structured parameter controls; no additional window or nested scroll area. */
.value-input .array-editor,.value-input .value-structured,.value-input .series-pair{min-width:0;display:flex;flex-direction:column;gap:0}
.value-input .array-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0}
.value-input .array-heading strong,.value-input .array-slice,.value-input .series-pair strong{font-size:12px;font-weight:600}
.value-input .array-table{display:flex;flex-direction:column;gap:2px;min-width:0}
.value-input .array-row{display:grid;grid-template-columns:20px repeat(var(--array-columns),minmax(0,1fr));gap:2px;min-width:0;align-items:center}
.value-input .array-cell{min-width:0}
.value-input .array-cell label{display:flex!important;min-width:0!important;padding:0!important;gap:0!important;justify-content:center;border:0!important}
.value-input .array-cell .property-label,.value-input .array-cell .option-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.value-input .array-cell .property-value-cell{min-width:0;width:100%}
.value-input .array-cell input[type=number]{width:100%;min-width:0;padding:3px}
.value-input .property-group-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:5px 8px}
.value-input .property-group-heading>button{flex:none;margin:0}
.value-input .property-actions{display:flex;flex-wrap:wrap;gap:6px;padding:6px 8px}

.value-input .array-column-labels,.value-input .array-row-label{font-size:11px;text-align:center;color:var(--du-theme-palette-muted)}
.value-input .property-group-tools{display:flex;align-items:center;gap:6px;min-width:0}
.value-input .property-group-tools:not(:has(*)){display:none}
.value-input .property-remove{flex:none;margin:0}
.value-input.removable-value{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center}
