.trama-color-trigger.svelte-1pg36j7{box-sizing:border-box;border:1px solid var(--ui-border-default);border-radius:var(--ui-radius-1);background:var(--properties-control-bg,var(--ui-surface-base));cursor:pointer;vertical-align:middle;width:32px;min-width:32px;height:32px;box-shadow:none;flex:none;align-self:center;place-items:center;margin:0;padding:3px;display:inline-grid;position:relative}.trama-color-trigger.has-swatch-stroke.svelte-1pg36j7{border:3px solid var(--trama-color-swatch-stroke);padding:2px}.trama-color-trigger.has-swatch-stroke.svelte-1pg36j7 .trama-color-chip:where(.svelte-1pg36j7){border-color:#0000}.trama-color-trigger.has-inactive-swatch-stroke.svelte-1pg36j7{border:3px solid #0000;padding:3px}.trama-color-trigger.has-inactive-swatch-stroke.svelte-1pg36j7:before,.trama-color-trigger.has-inactive-swatch-stroke.svelte-1pg36j7:after{content:"";border:1px solid var(--ui-border-subtle);pointer-events:none;position:absolute}.trama-color-trigger.has-inactive-swatch-stroke.svelte-1pg36j7:before{border-radius:inherit;inset:-3px}.trama-color-trigger.has-inactive-swatch-stroke.svelte-1pg36j7:after{border-radius:max(0px, calc(var(--ui-radius-1) - 2px));inset:-1px}.trama-color-trigger.has-inactive-swatch-stroke.svelte-1pg36j7 .trama-color-chip:where(.svelte-1pg36j7){border-color:#0000}.trama-color-trigger.svelte-1pg36j7:hover{border-color:var(--ui-border-strong)}.trama-color-trigger.has-swatch-stroke.svelte-1pg36j7:hover{border-color:var(--trama-color-swatch-stroke)}.trama-color-trigger.has-inactive-swatch-stroke.svelte-1pg36j7:hover{border-color:#0000}.trama-color-trigger.svelte-1pg36j7:focus-visible,.trama-color-popover.svelte-1pg36j7 button:where(.svelte-1pg36j7):focus-visible,.trama-color-popover.svelte-1pg36j7 input:where(.svelte-1pg36j7):focus-visible,.trama-color-square.svelte-1pg36j7:focus-visible,.trama-color-hue.svelte-1pg36j7:focus-visible,.trama-color-alpha.svelte-1pg36j7:focus-visible{outline:2px solid var(--ui-focus-color);outline-offset:2px}.trama-color-trigger.svelte-1pg36j7:disabled{opacity:.45;cursor:not-allowed}.trama-color-chip.svelte-1pg36j7{box-sizing:border-box;border:1px solid var(--ui-border-subtle);width:100%;height:100%}.trama-color-none-icon.svelte-1pg36j7{border:1px solid var(--ui-border-strong);border-radius:1px;width:14px;height:14px;position:relative}.trama-color-none-icon.svelte-1pg36j7:after{content:"";background:var(--ui-foreground-muted);width:14px;height:1px;position:absolute;top:6px;left:-1px;transform:rotate(-45deg)}.trama-color-trigger.transparent-swatch.svelte-1pg36j7 .trama-color-chip:where(.svelte-1pg36j7),.trama-color-preview.svelte-1pg36j7 .transparent:where(.svelte-1pg36j7),.trama-color-collection.svelte-1pg36j7 button.transparent:where(.svelte-1pg36j7){background-image:repeating-conic-gradient(var(--ui-border-default) 0 25%, var(--ui-surface-base) 0 50%);background-size:8px 8px}.trama-color-popover.svelte-1pg36j7{z-index:10000;width:min(308px,100vw - 16px);max-height:calc(100vh - 16px);color:var(--ui-foreground-primary);background:var(--ui-surface-overlay);border:1px solid var(--ui-border-strong);border-radius:var(--ui-radius-3);box-shadow:none;font-family:var(--font-body);font-size:var(--ui-type-label-size);margin:0;padding:0;position:fixed;inset:auto;overflow-y:auto}.trama-color-head.svelte-1pg36j7{background:var(--ui-surface-raised);border-bottom:1px solid var(--ui-border-default);justify-content:space-between;align-items:center;min-height:44px;padding:0 12px;display:flex}.trama-color-head.svelte-1pg36j7 strong:where(.svelte-1pg36j7){font-size:var(--ui-type-compact-body-size);font-weight:600}.trama-color-head.svelte-1pg36j7 button:where(.svelte-1pg36j7),.trama-color-actions.svelte-1pg36j7 button:where(.svelte-1pg36j7),.trama-color-save.svelte-1pg36j7 button:where(.svelte-1pg36j7){width:28px;height:28px;color:inherit;background:var(--ui-surface-base);border:1px solid var(--ui-border-default);border-radius:var(--ui-radius-1);cursor:pointer;place-items:center;padding:0;display:grid}.trama-color-head.svelte-1pg36j7 button:where(.svelte-1pg36j7):hover,.trama-color-actions.svelte-1pg36j7 button:where(.svelte-1pg36j7):hover,.trama-color-save.svelte-1pg36j7 button:where(.svelte-1pg36j7):hover{background:var(--ui-surface-interactive-hover)}.trama-color-target-switch.svelte-1pg36j7{border:1px solid var(--ui-border-default);border-radius:var(--ui-radius-2);background:var(--ui-surface-raised);grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:10px 12px 0;padding:3px;display:grid}.trama-color-target-switch.svelte-1pg36j7 button:where(.svelte-1pg36j7){border-radius:var(--ui-radius-1);min-height:30px;color:var(--ui-foreground-muted);font:inherit;font-size:var(--ui-type-helper-size,var(--ui-text-xs));cursor:pointer;background:0 0;border:1px solid #0000;padding:0 8px}.trama-color-target-switch.svelte-1pg36j7 button:where(.svelte-1pg36j7):hover{border-color:var(--ui-border-default);color:var(--ui-foreground-primary)}.trama-color-target-switch.svelte-1pg36j7 button.active:where(.svelte-1pg36j7){border-color:var(--ui-border-strong);background:var(--ui-surface-base);color:var(--ui-foreground-primary);font-weight:600}.trama-color-body.svelte-1pg36j7{gap:12px;padding:12px;display:grid}.trama-color-square.svelte-1pg36j7{cursor:crosshair;touch-action:none;background:linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent), var(--trama-hue);border:1px solid var(--ui-border-default);height:144px;position:relative}.trama-color-cursor.svelte-1pg36j7{pointer-events:none;border:2px solid #fff;border-radius:50%;width:12px;height:12px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #111}.trama-color-range-label.svelte-1pg36j7,.trama-color-field.svelte-1pg36j7{color:var(--ui-foreground-secondary);gap:4px;display:grid}.trama-color-hue.svelte-1pg36j7,.trama-color-alpha.svelte-1pg36j7{cursor:ew-resize;touch-action:none;border:1px solid var(--ui-border-default);height:16px;position:relative}.trama-color-hue.svelte-1pg36j7{background:linear-gradient(90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.trama-color-alpha.svelte-1pg36j7{background:linear-gradient(to right, transparent, var(--trama-alpha-color)), repeating-conic-gradient(#bbb 0 25%, #fff 0 50%) 0 / 10px 10px}.trama-color-hue.svelte-1pg36j7 span:where(.svelte-1pg36j7),.trama-color-alpha.svelte-1pg36j7 span:where(.svelte-1pg36j7){background:var(--ui-foreground-primary);border:1px solid var(--ui-surface-base);pointer-events:none;width:8px;height:20px;position:absolute;top:-3px;transform:translate(-50%)}.trama-color-preview.svelte-1pg36j7{align-items:center;gap:4px;display:flex}.trama-color-preview.svelte-1pg36j7 span:where(.svelte-1pg36j7),.trama-color-preview.svelte-1pg36j7 button:where(.svelte-1pg36j7){box-sizing:border-box;border:1px solid var(--ui-border-default);border-radius:var(--ui-radius-1);width:32px;height:24px;padding:0}.trama-color-preview.svelte-1pg36j7 button:where(.svelte-1pg36j7){cursor:pointer}.trama-color-preview.svelte-1pg36j7 small:where(.svelte-1pg36j7){color:var(--ui-foreground-secondary);font-size:var(--ui-type-helper-size);margin-left:4px}.trama-color-model-row.svelte-1pg36j7,.trama-color-field.svelte-1pg36j7,.trama-color-range-label.svelte-1pg36j7{align-items:stretch;gap:var(--ui-space-1);grid-template-columns:minmax(0,1fr);min-width:0;margin:0;display:grid}.trama-color-model-row.svelte-1pg36j7>span:where(.svelte-1pg36j7),.trama-color-field.svelte-1pg36j7>span:where(.svelte-1pg36j7),.trama-color-range-label.svelte-1pg36j7{min-width:0;color:var(--ui-foreground-secondary);font-size:var(--ui-type-helper-size);line-height:1.3}.trama-color-popover.svelte-1pg36j7 input:where(.svelte-1pg36j7):not([type=number]){box-sizing:border-box;width:100%;min-width:0;height:32px;color:var(--ui-foreground-primary);background:var(--properties-control-bg,var(--ui-surface-base));border:1px solid var(--ui-border-default);border-radius:var(--ui-radius-1);font:inherit;font-variant-numeric:tabular-nums;padding:0 8px}.trama-color-channels.svelte-1pg36j7{grid-template-columns:minmax(0,1fr);gap:8px;display:grid}.trama-color-channels.svelte-1pg36j7 label:where(.svelte-1pg36j7){color:var(--ui-foreground-secondary);gap:4px;display:grid}.trama-color-number-control.svelte-1pg36j7{grid-template-columns:minmax(0, 1fr) var(--property-unit-width,30px);box-sizing:border-box;border:1px solid var(--properties-control-border,var(--ui-border-default));border-radius:var(--properties-radius,var(--ui-radius-1));background:var(--properties-control-bg,var(--ui-surface-base));width:100%;height:32px;min-height:32px;transition:background-color var(--ui-motion-feedback) var(--ui-motion-easing), border-color var(--ui-motion-feedback) var(--ui-motion-easing);align-items:stretch;display:grid;position:relative;overflow:hidden}.trama-color-number-control.svelte-1pg36j7:hover{border-color:var(--properties-control-border-strong,var(--ui-border-strong));background:var(--properties-control-hover,var(--ui-surface-interactive-hover))}.trama-color-number-control.svelte-1pg36j7:focus-within{border-color:var(--ui-accent);outline:var(--ui-focus-width,2px) solid var(--ui-focus-color);outline-offset:var(--ui-focus-offset,2px)}.trama-color-number-control.svelte-1pg36j7>input[type=number]:where(.svelte-1pg36j7){box-sizing:border-box;width:100%;height:100%;min-height:0;box-shadow:none;color:var(--ui-foreground-primary);font:inherit;font-variant-numeric:tabular-nums;-moz-appearance:textfield;appearance:textfield;-webkit-appearance:none;background:0 0;border:0;border-radius:0;outline:0;grid-area:1/1;padding:0 8px}.trama-color-number-control.svelte-1pg36j7>input[type=number]:where(.svelte-1pg36j7)::-webkit-inner-spin-button,.trama-color-number-control.svelte-1pg36j7>input[type=number]:where(.svelte-1pg36j7)::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;display:none}.trama-color-number-control.svelte-1pg36j7:has(>.property-unit-scrubber:where(.svelte-1pg36j7)):after{display:none}.trama-color-number-control.svelte-1pg36j7>.property-unit-scrubber:where(.svelte-1pg36j7){z-index:2;box-sizing:border-box;border:0;border-left:1px solid var(--properties-control-border,var(--ui-border-default));background:color-mix(in srgb, var(--properties-control-bg,var(--ui-surface-base)) 72%, var(--properties-panel-bg,var(--ui-surface-overlay)));width:100%;min-width:0;height:100%;color:var(--properties-muted,var(--ui-foreground-muted));font-size:var(--ui-type-helper-size);white-space:nowrap;cursor:ns-resize;touch-action:none;user-select:none;grid-area:1/2;justify-content:center;align-items:center;padding:0;font-weight:500;line-height:1;display:flex}.trama-color-number-control.svelte-1pg36j7>.property-unit-scrubber:where(.svelte-1pg36j7):hover,.trama-color-number-control.svelte-1pg36j7>.property-unit-scrubber:where(.svelte-1pg36j7):active{background:var(--ui-selection);color:var(--ui-accent)}.trama-color-note.svelte-1pg36j7{color:var(--ui-foreground-secondary);font-size:var(--ui-type-helper-size);line-height:1.4}.trama-color-error.svelte-1pg36j7{color:var(--ui-danger);font-size:var(--ui-type-helper-size);margin:0}.trama-color-actions.svelte-1pg36j7{align-items:center;gap:8px;display:flex}.trama-color-actions.svelte-1pg36j7 .trama-color-done:where(.svelte-1pg36j7){background:var(--ui-accent);width:auto;height:32px;color:var(--ui-foreground-inverse);flex:1}.trama-color-collection.svelte-1pg36j7{gap:6px;display:grid}.trama-color-collection.svelte-1pg36j7 strong:where(.svelte-1pg36j7){color:var(--ui-foreground-secondary);font-weight:600}.trama-color-collection.svelte-1pg36j7>div:where(.svelte-1pg36j7){flex-wrap:wrap;gap:4px;display:flex}.trama-color-collection.svelte-1pg36j7 button:where(.svelte-1pg36j7){border:1px solid var(--ui-border-strong);border-radius:var(--ui-radius-1);cursor:pointer;width:24px;height:24px;padding:0}.trama-color-collection.svelte-1pg36j7 button.editing:where(.svelte-1pg36j7){outline:2px solid var(--ui-accent);outline-offset:2px}.trama-color-saved.svelte-1pg36j7{display:inline-flex;position:relative}.trama-color-saved.svelte-1pg36j7 .trama-color-remove:where(.svelte-1pg36j7){width:14px;height:14px;color:var(--ui-foreground-primary);background:var(--ui-surface-overlay);place-items:center;display:grid;position:absolute;top:-5px;right:-5px}.trama-color-swatch-editor.svelte-1pg36j7{border:1px solid var(--ui-border-default);border-radius:var(--ui-radius-1);background:var(--ui-surface-raised);gap:8px;padding:8px;display:grid}.trama-color-swatch-editor.svelte-1pg36j7>span:where(.svelte-1pg36j7){justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}.trama-color-swatch-editor.svelte-1pg36j7 strong:where(.svelte-1pg36j7){color:var(--ui-foreground-secondary);font-size:var(--ui-type-helper-size);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.trama-color-swatch-editor.svelte-1pg36j7 code:where(.svelte-1pg36j7){color:var(--ui-foreground-primary);font-size:var(--ui-type-helper-size);font-variant-numeric:tabular-nums;flex:none}.trama-color-swatch-editor.svelte-1pg36j7>div:where(.svelte-1pg36j7){justify-content:flex-end;gap:6px;display:flex}.trama-color-swatch-editor.svelte-1pg36j7 button:where(.svelte-1pg36j7){width:auto;min-width:64px;height:30px;font:inherit;font-size:var(--ui-type-helper-size);padding:0 8px}.trama-color-swatch-editor.svelte-1pg36j7 .trama-color-swatch-save:where(.svelte-1pg36j7){color:var(--ui-foreground-inverse);background:var(--ui-accent);border-color:var(--ui-accent)}.trama-color-swatch-editor.svelte-1pg36j7 button:where(.svelte-1pg36j7):disabled{opacity:.45;cursor:not-allowed}.trama-color-save.svelte-1pg36j7{gap:8px;display:flex}.trama-color-save.svelte-1pg36j7 button:where(.svelte-1pg36j7){flex:none;width:32px;height:32px}.trama-color-save.svelte-1pg36j7 button:where(.svelte-1pg36j7):disabled{opacity:.45;cursor:not-allowed}@media (width<=600px){.trama-color-popover.svelte-1pg36j7{width:calc(100vw - 16px);bottom:8px;top:auto!important;left:8px!important}}
