#vid-side .vai-panel > .vai-title.prm-head, #tl-params .aig-panel > .aig-title.prm-head, #image-editor-workspace .aig-panel > .aig-title.prm-head { padding-bottom: 0; align-items: flex-end; flex-wrap: nowrap; }
.prm-tabs { display: flex; gap: 12px; min-width: 0; flex: 1 1 auto; }
.prm-tab { background: none; border: none; padding: 0 0 7px; margin: 0 0 -1px; cursor: pointer;
    font: inherit; letter-spacing: inherit; text-transform: inherit; white-space: nowrap;
    color: var(--ui-text-muted); font-weight: 500; opacity: 0.62;
    border-bottom: 2px solid transparent; transition: color .12s, border-color .12s, opacity .12s; }
.prm-tab:hover { color: var(--ui-text-dim); opacity: 0.9; }
.prm-tab.on { color: var(--ui-text); font-weight: 700; opacity: 1; border-bottom-color: var(--ui-accent-text); cursor: default; }
.prm-tabs.prm-tabs-3 { gap: 7px; }
.prm-tabs.prm-tabs-3 .prm-tab { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 10px; letter-spacing: 0; }
.vai-title.prm-head .vai-refresh, .aig-title.prm-head .aig-refresh { flex: 0 0 auto; }
.vai-title.prm-head .vai-refresh, .aig-title.prm-head .aig-refresh { margin-bottom: 6px; }
#image-editor-workspace .aig-panel.prm-script-head { height: auto; flex: 0 0 auto; margin-bottom: 4px; }
#image-editor-workspace .aig-panel.prm-script-head > .aig-title.prm-head { padding-top: 0; }
.aig-multi-note { margin: 0 12px 10px; padding: 7px 9px; font-size: 11px; line-height: 1.45; color: var(--ui-text-dim);
    border: 1px solid var(--ui-border); border-radius: var(--ui-radius-sm); background: var(--ui-bg-deep); }

#tl-params .prm-body .aig-sec, #image-editor-workspace .prm-body .aig-sec { padding: 10px 12px 11px; }
.prm-body .aig-h .n { text-transform: none; letter-spacing: 0; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prm-body .aig-sec.aig-sec-off > :not(.aig-h) { opacity: .45; }
.aig-seg-label.prm-sub { margin: 12px 0 5px; }
.aig-sec > .aig-h + .prm-sub { margin-top: 0; }
.prm-g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.prm-g3 { display: grid; grid-template-columns: calc((100% - 6px) / 2) minmax(0, 1fr) 26px; gap: 6px; align-items: center; }
.prm-g2 + .prm-g2, .prm-g3 + .prm-g2, .prm-g2 + .prm-g3, .prm-mt { margin-top: 6px; }
.prm-g2.prm-g2c { grid-template-columns: minmax(0, 1fr) 62px; }
.prm-g3n { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }

.prm-num { position: relative; display: block; min-width: 0; }
#tl-params .aig-panel .prm-body .prm-num input[type="text"], #image-editor-workspace .aig-panel .prm-body .prm-num input[type="text"] { padding-left: 24px; padding-right: 8px; font-variant-numeric: tabular-nums; }
#tl-params .aig-panel .prm-body .prm-num.prm-hasunit input[type="text"], #image-editor-workspace .aig-panel .prm-body .prm-num.prm-hasunit input[type="text"] { padding-right: 20px; }
#tl-params .aig-panel .prm-body .prm-num.prm-nolabel input[type="text"], #image-editor-workspace .aig-panel .prm-body .prm-num.prm-nolabel input[type="text"] { padding-left: 8px; }
#tl-params .aig-panel .prm-body .prm-num input[type="text"]:disabled, #image-editor-workspace .aig-panel .prm-body .prm-num input[type="text"]:disabled { opacity: .5; }
.prm-num-l { position: absolute; left: 0; top: 0; bottom: 0; width: 22px; padding-left: 8px; box-sizing: border-box; cursor: ew-resize;
    font-size: 10px; font-weight: 700; color: var(--ui-text-muted); display: flex; align-items: center; user-select: none; }
.prm-num-l:hover, .prm-num.is-scrub .prm-num-l { color: var(--ui-text); }
#tl-params .aig-panel .prm-body .prm-num input[type="text"]:not(:focus):not(:disabled), #image-editor-workspace .aig-panel .prm-body .prm-num input[type="text"]:not(:focus):not(:disabled) { cursor: ew-resize; }
.prm-num.is-scrub input[type="text"] { border-color: var(--ui-border-focus); }
.prm-num-l svg { width: 12px; height: 12px; }
.prm-num-u { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); pointer-events: none;
    font-size: 10px; color: var(--ui-text-muted); }

.prm-lock { width: 26px; height: 26px; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
    border: 1px solid var(--ui-border); border-radius: var(--ui-radius-sm); background: transparent; color: var(--ui-text-dim); }
.prm-lock svg { width: 13px; height: 13px; }
.prm-lock:hover { border-color: var(--ui-accent); color: var(--ui-accent); }
.prm-lock.on { border-color: var(--ui-accent); background: var(--ui-accent-glow); color: var(--ui-accent); }

.prm-color { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; align-items: center; }
.prm-color.prm-color-x { grid-template-columns: 26px minmax(0, 1fr) calc((100% - 6px) / 2); }
#tl-params .aig-panel .prm-body input.prm-sw[type="color"], #image-editor-workspace .aig-panel .prm-body input.prm-sw[type="color"] { width: 26px; height: 26px; padding: 0; cursor: pointer;
    border: 1px solid var(--ui-border); border-radius: var(--ui-radius-sm); background: var(--ui-bg-input); }
#tl-params .aig-panel .prm-body input.prm-sw[type="color"]::-webkit-color-swatch-wrapper, #image-editor-workspace .aig-panel .prm-body input.prm-sw[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
#tl-params .aig-panel .prm-body input.prm-sw[type="color"]::-webkit-color-swatch, #image-editor-workspace .aig-panel .prm-body input.prm-sw[type="color"]::-webkit-color-swatch { border: none; border-radius: var(--ui-radius-xs); }
#tl-params .aig-panel .prm-body input.prm-sw[type="color"]::-moz-color-swatch, #image-editor-workspace .aig-panel .prm-body input.prm-sw[type="color"]::-moz-color-swatch { border: none; border-radius: var(--ui-radius-xs); }
#tl-params .aig-panel .prm-body input.prm-sw.prm-none, #image-editor-workspace .aig-panel .prm-body input.prm-sw.prm-none { opacity: .45; }
#tl-params .aig-panel .prm-body input.prm-hex[type="text"], #image-editor-workspace .aig-panel .prm-body input.prm-hex[type="text"] { text-transform: uppercase; font-family: var(--ui-font-code); font-size: 11px; }

.prm-seg { margin: 0; }
.prm-seg button svg { width: 13px; height: 13px; display: block; margin: 0 auto; }
.prm-seg.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prm-seg.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prm-seg.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.prm-seg button.off { opacity: .38; cursor: default; }
.prm-seg button.off:hover { background: transparent; color: inherit; }

.prm-switch { margin-top: 6px; }
.prm-note { font-size: 10px; color: var(--ui-text-muted); line-height: 1.45; margin-top: 6px; }
.prm-font { font-size: 13px !important; }

.prm-grp { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.prm-brk { display: none; }
#image-editor-workspace .imgcanvas-toolbar.prm-bar { flex-wrap: nowrap; overflow: visible; }
#image-editor-workspace .imgcanvas-toolbar.prm-bar.fits { justify-content: safe center; }
#image-editor-workspace .imgcanvas-toolbar.prm-bar.prm-two { flex-wrap: wrap; row-gap: 4px; justify-content: safe center; align-content: center; padding-top: 6px; padding-bottom: 6px; }
#image-editor-workspace .imgcanvas-toolbar.prm-bar.prm-two .prm-brk { display: block; flex-basis: 100%; height: 0; }
#image-editor-workspace .imgcanvas-toolbar.prm-bar.prm-two .prm-sep-brk { display: none; }
.prm-grp.prm-collapsed > .imgtool-btn:not(.prm-front) { display: none; }
.prm-grp.prm-collapsed > .imgtool-btn.prm-front { position: relative; }
.prm-grp.prm-collapsed > .imgtool-btn.prm-front::after { content: ''; position: absolute; right: 4px; bottom: 4px; width: 0; height: 0;
    border-left: 4px solid transparent; border-bottom: 4px solid currentColor; opacity: .55; }
.prm-gmenu button { display: flex; align-items: center; gap: 9px; min-width: 180px; }
.prm-gmenu .prm-gi { display: flex; width: 16px; height: 16px; }
.prm-gmenu .prm-gi svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prm-gmenu button.cur { color: var(--ui-accent); }
.prm-hbtns { margin-left: auto; display: inline-flex; gap: 2px; }
.prm-hbtns + .aig-switch-head { margin-left: 8px; }
.prm-hbtn { width: 20px; height: 20px; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    border: 1px solid transparent; border-radius: var(--ui-radius-sm); background: transparent; color: var(--ui-text-dim); }
.prm-hbtn svg { width: 12px; height: 12px; }
.prm-hbtn:hover:not(:disabled) { border-color: var(--ui-border); color: var(--ui-text); }
.prm-hbtn:focus-visible { outline: 2px solid var(--ui-accent-hover); outline-offset: 1px; }
.prm-hbtn:disabled { opacity: .35; cursor: default; }

.prm-filltype { margin-bottom: 6px; }
.prm-grad { display: flex; flex-direction: column; gap: 6px; }
.prm-grad-bar { position: relative; height: 18px; margin: 2px 6px 12px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-sm); cursor: copy;
    background-color: var(--ui-checker-a);
    background-image: linear-gradient(45deg, var(--ui-checker-b) 25%, transparent 25%, transparent 75%, var(--ui-checker-b) 75%),
        linear-gradient(45deg, var(--ui-checker-b) 25%, transparent 25%, transparent 75%, var(--ui-checker-b) 75%);
    background-size: 8px 8px; background-position: 0 0, 4px 4px; }
.prm-grad-fill { position: absolute; inset: 0; border-radius: inherit; }
.prm-grad-track { position: absolute; left: 0; right: 0; top: 100%; height: 0; }
.prm-grad-stop { position: absolute; top: -8px; width: 14px; height: 14px; margin-left: -7px; padding: 2px; cursor: ew-resize;
    border: 1px solid var(--ui-border); border-radius: 3px; background: var(--ui-bg-input); box-shadow: var(--ui-shadow-sm); }
.prm-grad-stop:hover { border-color: var(--ui-text-dim); }
.prm-grad-stop.on { border-color: var(--ui-border-focus); outline: 1px solid var(--ui-border-focus); }
.prm-grad-stop.is-drop { opacity: .35; }
.prm-grad-stop:focus-visible { outline: 2px solid var(--ui-accent-hover); outline-offset: 1px; }
.prm-grad-sw { display: block; width: 100%; height: 100%; border-radius: 2px; }
.prm-grad-acts { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.prm-grad-act { width: 26px; height: 26px; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
    border: 1px solid var(--ui-border); border-radius: var(--ui-radius-sm); background: transparent; color: var(--ui-text-dim); }
.prm-grad-act svg { width: 13px; height: 13px; }
.prm-grad-act:hover { border-color: var(--ui-accent); color: var(--ui-accent); }
.prm-grad-act:focus-visible { outline: 2px solid var(--ui-accent-hover); outline-offset: 1px; }
#tl-params { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 6px 8px; }
