@import url('workshop-control-tokens.css');
/* Scoped generic component; no lab chrome or native-control hiding rules. */
.workshop-inspector{color-scheme:dark;--ti-bg:#272727;--ti-panel:#292929;--ti-header:#222222;--ti-line:#383838;--ti-text:#dedede;--ti-muted:#969696;--ti-blue:#57b7ff;--ti-focus:#9dd8ff;--ti-control:#232323;--ti-ease-out:var(--ease-out,cubic-bezier(.23,1,.32,1));--ti-duration:var(--motion-layout,200ms);--ti-reveal-duration:var(--motion-navigation,160ms);--ti-field-feedback:var(--motion-field,100ms);--ti-state-feedback:var(--motion-state,140ms);--ti-row-height:34px;--ti-column-min:480px;font-family:var(--ui-control-font-family,"Segoe UI",Arial,sans-serif);background:#1b1b1b;color:var(--ti-text);font-size:13px}
.workshop-inspector *{box-sizing:border-box}
.workshop-inspector button,.workshop-inspector input,.workshop-inspector select{font:inherit}
.workshop-inspector button{color:inherit;cursor:pointer}
.workshop-inspector button,.workshop-inspector input,.workshop-inspector select{outline-offset:3px}
.workshop-inspector button:focus-visible,.workshop-inspector input:focus-visible,.workshop-inspector select:focus-visible{outline:2px solid var(--ti-focus)}
.workshop-inspector button:disabled,.workshop-inspector input:disabled,.workshop-inspector select:disabled{cursor:default}
.workshop-inspector select{color:var(--ti-text);background:var(--ti-control);border:1px solid #4c4c4c;border-radius:3px;padding:5px 24px 5px 8px;max-width:100%;min-height:28px}
.workshop-inspector input[type=checkbox]{accent-color:#66aee2}
.workshop-inspector{display:grid;grid-template-columns:repeat(var(--ti-columns,2),minmax(0,1fr));align-items:start;gap:1px;background:#464646;overflow:hidden}
.workshop-inspector .ti-column{min-width:0;background:var(--ti-panel);min-height:100%;padding-bottom:12px}
.workshop-inspector .ti-group{border-bottom:1px solid #414141;background:var(--ti-panel);min-width:0}
.workshop-inspector .ti-group-head{display:flex;align-items:center;gap:8px;min-height:39px;background:var(--ti-header);padding:0 10px 0 7px;border-bottom:1px solid #303030}
.workshop-inspector .ti-disclosure{border:0;background:transparent;display:flex;align-items:center;gap:8px;flex:1;min-width:0;text-align:left;min-height:39px;padding:0;font-weight:550;letter-spacing:.05px}
.workshop-inspector .ti-disclosure svg{width:15px;height:15px;flex:none;transform:rotate(0deg);transition:transform var(--ti-duration) var(--ti-ease-out)}
.workshop-inspector .ti-group[data-open=false]>.ti-group-head .ti-disclosure svg{transform:rotate(-90deg)}
.workshop-inspector .ti-group-state{color:#aaa;font-size:10px;margin-left:auto;white-space:nowrap;font-weight:400}
.workshop-inspector .ti-required{color:#858585;font-size:10px}
.workshop-inspector .ti-switch{position:relative;display:inline-flex;align-items:center;cursor:pointer;min-width:34px;min-height:30px;justify-content:center}
.workshop-inspector .ti-switch input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.workshop-inspector .ti-switch-track{width:27px;height:15px;border-radius:9px;background:#444;border:1px solid #636363;pointer-events:none;transition:background-color var(--ti-state-feedback) ease,border-color var(--ti-state-feedback) ease}
.workshop-inspector .ti-switch-track:before{content:"";display:block;width:9px;height:9px;background:#bcbcbc;border-radius:50%;margin:2px;transform:translateX(0);transition:transform var(--ti-state-feedback) var(--ti-ease-out),background-color var(--ti-state-feedback) ease}
.workshop-inspector .ti-switch input:checked+.ti-switch-track{background:#367cb0;border-color:#68a7d4}
.workshop-inspector .ti-switch input:checked+.ti-switch-track:before{transform:translateX(11px);background:#eff9ff}
.workshop-inspector .ti-switch input:focus-visible+.ti-switch-track{outline:2px solid var(--ti-focus);outline-offset:3px}
.workshop-inspector .ti-collapse{overflow:hidden;opacity:1}
.workshop-inspector .ti-body{padding:3px 0 8px}
.workshop-inspector .ti-fields{border:0;padding:0;margin:0;min-width:0;transition:opacity var(--ti-state-feedback) ease}
.workshop-inspector .ti-fields:disabled{opacity:.42}
.workshop-inspector .ti-row{border-bottom:1px solid #303030;min-width:0}
.workshop-inspector .ti-property{display:grid;grid-template-columns:minmax(125px,1fr) minmax(110px,1fr) 27px;gap:8px;align-items:center;min-height:var(--ti-row-height);padding:0 8px 0 32px}
.workshop-inspector .ti-row[data-indent=true] .ti-property{padding-left:49px}
.workshop-inspector .ti-property label{min-width:0;font-size:12px}
.workshop-inspector .ti-row[data-subhead=true]{border-top:1px solid #414141;margin-top:5px}
.workshop-inspector .ti-row[data-subhead=true] .ti-property label{font-weight:550}
.workshop-inspector .ti-number-label{position:relative;display:flex;align-items:center;gap:5px}
.workshop-inspector .ti-reveal{position:absolute;left:-24px;width:22px;height:28px;background:transparent;border:0;padding:3px;color:#aaa;display:grid;place-items:center}
.workshop-inspector .ti-reveal svg{height:12px;width:12px;transition:transform var(--ti-duration) var(--ti-ease-out);transform:rotate(-90deg)}
.workshop-inspector .ti-reveal[aria-expanded=true] svg{transform:rotate(0)}
.workshop-inspector .ti-value{display:flex;align-items:center;gap:5px;min-width:0}
.workshop-inspector .ti-value input[type=number]{appearance:textfield;-moz-appearance:textfield;border:1px solid transparent;border-radius:3px;min-width:0;width:68px;background:transparent;color:var(--ti-blue);padding:4px 1px;font-variant-numeric:tabular-nums;min-height:29px;transition:background-color var(--ti-field-feedback) ease,border-color var(--ti-field-feedback) ease}
.workshop-inspector .ti-value input[type=number]::-webkit-inner-spin-button{appearance:none}
.workshop-inspector .ti-value input[type=number]:focus{background:#1c2630;border-color:#47799e;outline:none}
.workshop-inspector .ti-unit{color:var(--ti-blue);font-size:11px;white-space:nowrap}
.workshop-inspector .ti-value select{width:100%;color:var(--ti-blue);font-size:12px;min-width:0;min-height:27px;padding-top:3px;padding-bottom:3px}
.workshop-inspector .ti-value input[type=checkbox]{margin:0;width:14px;height:14px}
.workshop-inspector .ti-value input[type=color]{height:24px;width:35px;padding:0;border:1px solid #666;background:none;cursor:pointer}
.workshop-inspector .ti-colour-code{font:11px 'Segoe UI',sans-serif;color:var(--ti-blue);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workshop-inspector .ti-reset{width:27px;height:28px;padding:5px;background:transparent;color:#bababa;border:0;border-radius:3px}
.workshop-inspector .ti-reset svg{width:16px;height:16px;display:block}
.workshop-inspector .ti-reset:disabled{opacity:.3}
.workshop-inspector .ti-slider-content{padding:4px 38px 12px 32px}
.workshop-inspector .ti-slider-scale{display:flex;justify-content:space-between;color:#969696;font-size:10px;margin-bottom:4px}
.workshop-inspector .ti-slider-content input{width:100%;margin:0;accent-color:#b7b7b7;height:16px;cursor:ew-resize}
.workshop-inspector .ti-group-note{margin:9px 13px 1px 32px;color:#929292;line-height:1.5;font-size:10px}
.workshop-inspector .ti-shape{width:26px;height:14px;flex:none;stroke:#c9c9c9;fill:none;stroke-width:1.4}
.workshop-inspector .ti-shape-label{display:flex;align-items:center;gap:10px}
.workshop-inspector .ti-value-change{background:#233745}
.workshop-inspector .ti-error{color:#f2b5aa;font-size:10px;padding:0 12px 5px 32px;margin:0}
@media(hover:hover) and (pointer:fine){.workshop-inspector button:hover:not(:disabled){background-color:#383838}
.workshop-inspector .ti-reset:hover:not(:disabled){color:white}
.workshop-inspector .ti-value input[type=number]:hover:not(:disabled){background:#30363b}
.workshop-inspector .ti-switch:hover .ti-switch-track{border-color:#aaa}
}
@media(max-width:740px){.workshop-inspector .ti-property{grid-template-columns:minmax(115px,1fr) minmax(100px,1fr) 25px;padding-left:29px;gap:5px}
.workshop-inspector .ti-row[data-indent=true] .ti-property{padding-left:39px}
.workshop-inspector .ti-property{min-height:38px}
.workshop-inspector .ti-group-head,.workshop-inspector .ti-disclosure{min-height:42px}
.workshop-inspector .ti-switch{min-height:34px}
.workshop-inspector .ti-reset{height:32px}
.workshop-inspector .ti-value select,.workshop-inspector .ti-value input[type=number]{min-height:32px}
.workshop-inspector .ti-slider-content input{height:24px}
}
@media(prefers-reduced-motion:reduce){.workshop-inspector *,.workshop-inspector *::before,.workshop-inspector *::after{scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important}
}
.workshop-inspector.ti-instant *{transition-duration:0s!important}
.workshop-inspector .ti-group{transform-origin:top left}
.workshop-inspector .ti-property{transition:background-color var(--ti-state-feedback) ease,opacity var(--ti-state-feedback) ease}
.workshop-inspector .ti-row[data-available=false] .ti-property{opacity:.45}

/* Component consumes host tokens; material colours remain adapter-owned. */
.workshop-inspector{color-scheme:inherit;--ti-bg:var(--ts-bg,#292929);--ti-panel:var(--ts-panel,#2b2b2b);--ti-header:var(--ts-panel,#2b2b2b);--ti-line:var(--ts-border,#414141);--ti-text:var(--ts-text,#d6d6d6);--ti-muted:var(--ts-muted,#a0a0a0);--ti-blue:var(--ts-value,#ffad54);--ti-focus:var(--ts-focus,#ffc080);--ti-control:var(--ts-input,#1b1b1b);--ti-row-height:24px;background:var(--ti-bg);color:var(--ti-text);font:12px 'Segoe UI',Arial,sans-serif;min-width:0}
.workshop-inspector .ti-column{padding-bottom:0}
.workshop-inspector .ti-group,.workshop-inspector .ti-group-head,.workshop-inspector .ti-row{border-color:var(--ti-line)}
.workshop-inspector .ti-group-head,.workshop-inspector .ti-disclosure{min-height:23px}
.workshop-inspector .ti-group-head{gap:4px}
.workshop-inspector .ti-disclosure{font-weight:400}
.workshop-inspector .ti-disclosure svg{width:12px;height:12px}
.workshop-inspector .ti-property{gap:4px;grid-template-columns:minmax(95px,1fr) minmax(85px,1fr) 23px}
.workshop-inspector .ti-property label{font-weight:400}
.workshop-inspector .ti-reset,.workshop-inspector .ti-reveal{width:22px;height:var(--ui-control-value-height,22px);min-height:var(--ui-control-value-height,22px);padding:3px;color:var(--ti-muted)}
.workshop-inspector .ti-value input[type=number]{min-height:var(--ui-control-value-height,22px);border:0;border-radius:0;background:transparent}
.workshop-inspector .ti-value input[type=number]:focus{background:var(--ti-control);outline:2px solid var(--ti-focus)}
.workshop-inspector select,.workshop-inspector .ti-value select{field-sizing:content;width:auto;max-width:100%;min-width:0;min-height:var(--ui-control-value-height,22px);border-color:var(--ti-line);background:var(--ti-control);color:var(--ti-blue);border-radius:2px}
.workshop-inspector .ti-value input[type=color]{width:20px;height:20px;min-width:20px;max-width:20px;flex:0 0 20px;border-color:var(--ti-line)}
.workshop-inspector input[type=checkbox]{accent-color:var(--ti-blue)}
.workshop-inspector .ti-switch{min-height:23px}
.workshop-inspector .ti-switch-track{width:23px;height:12px;background:var(--ti-line);border-color:var(--ti-muted)}
.workshop-inspector .ti-switch-track:before{width:6px;height:6px;background:var(--ti-muted)}
.workshop-inspector .ti-switch input:checked+.ti-switch-track{background:var(--ti-blue);border-color:var(--ti-blue)}
.workshop-inspector .ti-switch input:checked+.ti-switch-track:before{transform:translateX(10px);background:var(--ts-on-accent,#242424)}
.workshop-inspector .ti-fields:disabled{opacity:1}
.workshop-inspector .ti-row[data-available=false] .ti-property{opacity:1}
.workshop-inspector .ti-fields:disabled,.workshop-inspector .ti-fields:disabled .ti-value *,.workshop-inspector .ti-row[data-available=false],.workshop-inspector .ti-row[data-available=false] .ti-value *{color:var(--ts-disabled,#858585)}
.workshop-inspector .ti-unit,.workshop-inspector .ti-colour-code{color:inherit}
.workshop-inspector .ti-group-state,.workshop-inspector .ti-group-note,.workshop-inspector .ti-slider-scale{color:var(--ti-muted)}
.workshop-inspector .ti-slider-content input{accent-color:var(--ti-blue)}
.workshop-inspector .ti-shape{stroke:currentColor}
.workshop-inspector .ti-value-change{background:var(--ti-control)}
.workshop-inspector .ti-command{background:var(--ti-control);border:1px solid var(--ti-line);color:var(--ti-text)}
@media(pointer:coarse){.workshop-inspector .ti-property,.workshop-inspector .ti-disclosure,.workshop-inspector .ti-switch,.workshop-inspector .ti-reset,.workshop-inspector .ti-reveal{min-height:var(--ui-control-touch-height,36px)}}
.workshop-inspector .ti-number-box{display:inline-flex;align-items:center;flex:0 1 76px;min-width:64px;gap:1px}
.workshop-inspector .ti-number-box>input[type=number]{width:36px;min-width:0;flex:1 1 36px;text-align:center}
.workshop-inspector .ti-number-box>.ti-step{display:inline-flex;align-items:center;justify-content:center;flex:0 0 var(--ui-control-step-width,18px);width:var(--ui-control-step-width,18px);min-width:var(--ui-control-step-width,18px);height:var(--ui-control-value-height,22px);min-height:var(--ui-control-value-height,22px);margin:0;padding:0;border:1px solid var(--ti-line);border-radius:2px;background:transparent;color:var(--ti-text);line-height:1}
.workshop-inspector .ti-number-box>.ti-step:hover:not(:disabled){background:var(--ti-control)}
.workshop-inspector .ti-number-box>.ti-step:disabled{color:var(--ts-disabled,var(--ti-muted));opacity:.55}
@media(pointer:coarse){.workshop-inspector .ti-number-box{flex-basis:100px;min-width:88px}.workshop-inspector .ti-number-box>.ti-step{flex-basis:var(--ui-control-touch-step-width,28px);width:var(--ui-control-touch-step-width,28px);min-width:var(--ui-control-touch-step-width,28px);height:var(--ui-control-touch-height,36px);min-height:var(--ui-control-touch-height,36px)}.workshop-inspector .ti-value{flex-wrap:wrap}}

/* Compact values share the step buttons' centreline; touch keeps larger controls. */
.workshop-inspector .ti-number-box{align-items:center}
.workshop-inspector .ti-number-box>input[type=number]{box-sizing:border-box;height:var(--ui-control-value-height,22px)!important;min-height:var(--ui-control-value-height,22px)!important;max-height:var(--ui-control-value-height,22px)!important;line-height:normal!important;padding:0 1px!important;margin:0!important;text-align:center;align-self:center}
.workshop-inspector .ti-value:has(>.ti-number-box){align-items:center}
@media(pointer:coarse){.workshop-inspector .ti-number-box>input[type=number]{height:var(--ui-control-touch-height,36px)!important;min-height:var(--ui-control-touch-height,36px)!important;max-height:var(--ui-control-touch-height,36px)!important}}

/* Fine-pointer step buttons stay square without stretching numeric rows. */
@media(pointer:fine){.workshop-inspector .ti-number-box>.ti-step{box-sizing:border-box;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px;flex:0 0 18px;align-self:center;padding:0;line-height:1}}

/* Single-setting groups retain their override and field ownership in one row. */
.ti-group[data-compact=true]>.ti-group-head{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.ti-group[data-compact=true]>.ti-group-head>.ti-switch{order:-1}
.ti-group[data-compact=true]>.ti-group-head>.ti-collapse{flex:1;min-width:0;overflow:visible;height:auto!important;opacity:1!important}
.ti-group[data-compact=true] :is(.ti-body,.ti-fields){padding:0!important;margin:0!important;border:0;min-width:0}
.ti-group[data-compact=true] .ti-group-state,.ti-group[data-compact=true] .ti-required,.ti-group[data-compact=true] .ti-label{display:none!important}
.ti-group[data-compact=true] .ti-property{grid-template-columns:minmax(0,1fr) 20px 20px!important}
.ti-group[data-compact=true] .ti-value{min-width:0}
.ti-group[data-compact=true] .ti-property>label{display:none!important}
.ti-group[data-compact=true]>.ti-group-head>span:not(.ti-group-state):not(.ti-required){flex:0 0 auto;min-width:58px}
