.inspector{color-scheme:light;--muted:#696962;--line:#e4e2dc;--panel:#fdfcf9;--ink:#24241f;--lime:#285eba;color:var(--ink);background:var(--panel);border-color:var(--line);padding:9px;scrollbar-color:#bcbab2 #f6f4ef}
.home-controls,.inspector #layers{display:grid;gap:6px;padding:6px;background:#f7f6f2;border:1px solid #e4e2dc;border-radius:13px;min-width:0}
.inspector #layers{margin-top:12px}
.inspector .layers-header{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
.home-controls>details,.inspector .layer{background:#f0efeb;margin:0;border:1px solid #e6e4de;border-radius:9px;min-width:0}
.inspector :is(.home-controls>details,.layer)>summary{list-style:none;display:flex;align-items:center;gap:7px;min-height:38px;padding:5px 8px;font-size:13px;font-weight:600;cursor:pointer}
.inspector summary::-webkit-details-marker{display:none}
.inspector :is(.home-controls>details,.layer)>summary::after{content:'';width:5px;height:5px;border-right:1.4px solid #696962;border-bottom:1.4px solid #696962;rotate:45deg;flex:none;margin:0 3px 3px 2px}
.inspector :is(.home-controls>details,.layer)[open]>summary::after{rotate:225deg;margin-bottom:-2px}
.inspector .home-controls summary i{display:grid;place-items:center;width:22px;height:22px;background:#faf9f6;color:#51534d;border-radius:6px;font-style:normal;font-size:13px;flex:none}
.inspector summary>span{flex:1;min-width:0}
.inspector .layer summary>span{order:0}
.inspector .layer summary::before{content:none}
.inspector .layer .layer-grip{order:-1;flex:none;width:20px;height:22px;min-height:0;padding:0;color:#696962;background:#faf9f6;border-color:#e4e2dc;border-radius:6px}
.inspector .layer :is(summary input,.layer-settings){order:0;margin:0}
.inspector .layer .layer-settings{width:22px;height:22px;min-height:0;padding:0;font-size:12px}
.inspector .home-switch{appearance:none;position:relative;width:29px;height:16px;background:#d8d8d3;border:0;border-radius:20px;cursor:pointer;flex:none;margin:0}
.inspector .home-switch:checked{background:#3974da}
.inspector .home-switch::after{content:'';position:absolute;width:12px;height:12px;left:2px;top:2px;background:#fff;border-radius:50%}
.inspector .home-switch:checked::after{left:15px}
.inspector :is(button,select,input:not([type=range],[type=checkbox],[type=color],[type=file])){background:#faf9f6;color:#24241f;border-color:#dfddd7;border-radius:6px;min-width:0}
.inspector button:hover,.inspector select:hover{background:#fff;border-color:#a3b4d6}
.inspector :focus-visible{outline-color:#285eba}
.inspector .home-quick{min-height:26px;font-size:11px;font-weight:600;padding:3px 7px}
.inspector .detail{padding:8px 9px 12px;background:transparent;color:#292923}
.inspector .detail :is(#shuffle,#random-shape){display:none}
.inspector .palette-tools{background:#faf9f6;border-color:#e4e2dc;padding:8px;gap:7px}
.inspector .palette-tools small,.inspector .control-feedback{color:#696962}
.reference-drop{position:relative;display:grid;place-content:center;text-align:center;min-height:80px;padding:8px 10px;gap:4px;border:1px dashed #bbb8ac;border-radius:8px;cursor:pointer}
.reference-drop span{font-size:11px;color:var(--muted)}
.reference-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.reference-drop:is(:hover,:focus-within,.is-over){border-color:#285eba}
.inspector .reference-drop{margin:10px 0;background:#faf9f6}
.inspector .layer .meter,#flow-popup .meter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) max-content;align-items:center;gap:6px;margin:7px 0}
:is(.inspector .layer,#flow-popup) .meter>span{grid-area:1/1;min-width:0;overflow-wrap:anywhere}
:is(.inspector .layer,#flow-popup) .meter input{grid-area:1/2;min-width:0}
:is(.inspector .layer,#flow-popup) .meter output{grid-area:1/3;width:4ch;min-width:0;text-align:right;color:#53534b;background:#e8e6df;border-radius:4px;padding:2px 4px;box-sizing:content-box;font-variant-numeric:tabular-nums}
@media(pointer:coarse){.inspector :is(.home-controls>details,.layer)>summary{min-height:39px}.inspector .home-switch{width:34px;height:20px}.inspector .home-switch::after{width:16px;height:16px}}
.inspector .layers-header{position:static;width:auto;height:auto;clip-path:none;overflow:visible;margin:14px 3px 6px;padding:0}
.inspector #layers{margin-top:0}
.inspector .layers-header h3{font-size:11px;letter-spacing:.075em;text-transform:uppercase;color:var(--muted)}
.inspector .control-field{gap:5px;font-weight:550}
.inspector label.control-field :is(select,input){font-weight:400}
.inspector .reference-drop strong{font-size:12px;font-weight:600}
.inspector .reference-drop span{line-height:1.35}
.inspector .meter>span{font-size:11px;font-weight:550}
.inspector .meter output{font-variant-numeric:tabular-nums}
:is(.inspector,#flow) .meter input[type=range]{appearance:none;height:14px;padding:0;border:0;border-radius:4px;background:transparent;margin:3px 0}
:is(.inspector,#flow) .meter input[type=range]::-webkit-slider-runnable-track{height:14px;border-radius:4px;background:linear-gradient(90deg,#759fdf var(--fill,0%),#dad7ce var(--fill,0%))}
:is(.inspector,#flow) .meter input[type=range]::-webkit-slider-thumb{appearance:none;margin:0;width:14px;height:14px;border:1px solid #a7b4ca;border-radius:4px;background:#fff;box-shadow:none;scale:none}
:is(.inspector,#flow) .meter input[type=range]::-moz-range-track{height:14px;border-radius:4px;background:#dad7ce}
:is(.inspector,#flow) .meter input[type=range]::-moz-range-progress{height:14px;border-radius:4px;background:#759fdf}
:is(.inspector,#flow) .meter input[type=range]::-moz-range-thumb{width:14px;height:14px;box-sizing:border-box;border:1px solid #a7b4ca;border-radius:4px;background:#fff;box-shadow:none;scale:none}
#colors.swatches{position:relative;display:block;height:28px;margin:5px 11px 7px;border-radius:6px;isolation:isolate;overflow:visible;background:var(--palette-strip,#ddd)}
.color-stop{position:absolute;left:var(--position);top:50%;transform:translate(-50%,-50%)}
.color-stop:focus-within,.color-stop:hover{z-index:1}
#colors .color-stop-handle{display:block;width:19px;height:21px;min-height:0;padding:0;border:2px solid #fff;border-radius:5px;background:var(--swatch);box-shadow:0 0 0 1px #0006,0 2px 4px #0003;cursor:ew-resize;touch-action:none;transition:transform 240ms var(--bounce,cubic-bezier(.22,1.55,.36,1)),box-shadow 180ms ease}
#colors .color-stop-handle:hover{transform:scale(1.22);box-shadow:0 0 0 2px #fff,0 0 0 4px color-mix(in srgb,var(--swatch) 55%,transparent),0 5px 12px #0004}
#colors .color-stop-handle:active{transform:scale(1.28);scale:none;cursor:grabbing;box-shadow:0 0 0 2px #fff,0 0 0 5px color-mix(in srgb,var(--swatch) 72%,transparent),0 6px 14px #0005}
#colors .color-stop input[type=color]{position:absolute;left:0;top:0;width:19px;height:21px;min-width:0;opacity:0;pointer-events:none}

/* Pequenos prazeres no inspetor: switches elásticos, ícones vivos, engrenagem giratória e arraste 3D */
.home-controls>details,.inspector .layer{transition:background-color 160ms ease,border-color 160ms ease,box-shadow 200ms ease,transform 240ms var(--bounce,cubic-bezier(.22,1.55,.36,1))}
.home-controls>details:hover,.inspector .layer:hover{border-color:#d2d6de;background:#f4f3ef;box-shadow:0 3px 10px #1a24380d}
.inspector .home-controls summary i{transition:transform 300ms var(--bounce,cubic-bezier(.22,1.55,.36,1)),background-color 160ms ease,color 160ms ease}
.inspector .home-controls>details>summary:hover i{transform:rotate(-12deg) scale(1.18);background:#e7effd;color:#255ec4}
.inspector :is(.home-controls>details,.layer)>summary::after{transition:rotate 260ms var(--bounce,cubic-bezier(.22,1.55,.36,1)),margin-bottom 220ms ease}
.inspector .layer .layer-settings{transition:transform 320ms var(--bounce,cubic-bezier(.22,1.55,.36,1)),background-color 150ms ease,color 150ms ease}
.inspector .layer .layer-settings:hover{transform:rotate(95deg) scale(1.12)}
.inspector .layer.is-dragging{transform:rotate(-1.5deg) scale(1.025);box-shadow:0 12px 26px #18223626;z-index:4}

.layer summary input,.inspector .home-switch{transition:background-color 200ms ease,box-shadow 180ms ease}
.layer summary input:hover,.inspector .home-switch:hover{box-shadow:0 0 0 3px #3974da24}
.layer summary input::after,.inspector .home-switch::after{transition:left 260ms var(--bounce,cubic-bezier(.22,1.55,.36,1)),width 140ms ease,transform 200ms ease;box-shadow:0 1px 2px #0003}
.layer summary input:active::after,.inspector .home-switch:active::after{width:15px}
.layer summary input:checked:active::after,.inspector .home-switch:checked:active::after{left:12px}
@media(pointer:coarse){.inspector .home-switch:checked::after{left:16px}.inspector .home-switch:checked:active::after{left:13px}}

.reference-drop{transition:border-color 180ms ease,background-color 180ms ease,transform 260ms var(--bounce,cubic-bezier(.22,1.55,.36,1)),box-shadow 200ms ease}
.reference-drop:is(:hover,.is-over){background:#f2f6fe;transform:translateY(-2px);box-shadow:0 6px 16px #285eba17}

:is(.inspector,#flow) .meter input[type=range]::-webkit-slider-thumb{transition:transform 220ms var(--bounce,cubic-bezier(.22,1.55,.36,1)),border-color 140ms ease,box-shadow 160ms ease}
:is(.inspector,#flow) .meter input[type=range]:hover::-webkit-slider-thumb{border-color:#3575c8;box-shadow:0 0 0 3px #3575c826;transform:scale(1.16)}
:is(.inspector,#flow) .meter input[type=range]:active::-webkit-slider-thumb{transform:scale(1.26);box-shadow:0 0 0 4px #3575c836}

@media(prefers-reduced-motion:reduce){
  .home-controls>details,.inspector .layer,.inspector .home-controls summary i,.inspector .layer .layer-settings,.layer summary input::after,.inspector .home-switch::after,#colors .color-stop-handle,.reference-drop{transition:none!important;transform:none!important}
}
