.stir-launch{position:relative;flex:none;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:#11120f;color:#ddd8c9;cursor:pointer;padding:8px}
.stir-launch svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.1}.stir-launch svg .stir-blue{stroke:#338fff}
.stir-launch:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.stir-preview{position:fixed;z-index:90;width:260px;padding:10px;border:1px solid #30312a;border-radius:16px;background:#10110e;color:#dcd8cb;box-shadow:0 16px 50px #0003;pointer-events:none}
.stir-preview[hidden]{display:none}.stir-preview p{display:flex;justify-content:space-between;margin:2px 2px 10px;font:11px/1.5 var(--sans);letter-spacing:1px}.stir-preview p span:first-child{color:#529cff}.stir-preview canvas{display:block;width:240px;height:200px;border-radius:8px}
.stir-dialog{padding:0;width:min(820px,calc(100vw - 32px));max-height:calc(100dvh - 32px);border:1px solid #30312a;border-radius:20px;color:#e3e0d6;background:#10110e;box-shadow:0 24px 100px #0005;overflow:auto;overscroll-behavior:contain}
.stir-dialog::backdrop{background:#171812b8;backdrop-filter:blur(8px)}
.stir-top{display:flex;align-items:center;justify-content:space-between;padding:16px 22px 8px;gap:16px}.stir-top h2{font:400 15px/1.3 ui-monospace,monospace;letter-spacing:4px;color:#529cff;margin:0}.stir-top p{font:400 13px/1.5 var(--sans);color:#aaa99c;margin:4px 0 0}
.stir-dialog button{color:inherit;background:transparent;border:1px solid #42443b;border-radius:50%;min-width:44px;min-height:44px;display:grid;place-items:center;cursor:pointer}.stir-dialog button:focus-visible,.stir-stage:focus-visible{outline:2px solid #529cff;outline-offset:3px}
.stir-dialog button:hover{background:#24261f}.stir-dialog .ui-icon{width:20px;height:20px}
.stir-stage{margin:8px 22px 0;height:min(65dvh,620px);min-height:220px;position:relative;overflow:hidden;border-radius:8px;cursor:crosshair;touch-action:none}
.stir-stage canvas{display:block;width:100%;height:100%}
.stir-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 22px;padding:12px 0 16px;border-top:1px solid #292b24;font:400 12px/1.5 var(--sans);color:#aaa99c}
.stir-controls{display:flex;gap:8px}.stir-dialog .stir-controls button{border-radius:9px;padding:8px 13px;font:400 13px var(--sans)}
@media(max-width:760px){.top-actions{gap:4px}.stir-launch{width:44px;height:44px;background:transparent;color:var(--ink)}.stir-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}.stir-top{padding:12px 16px 4px}.stir-stage{margin:8px 12px 0;height:58dvh;min-height:180px}.stir-bottom{margin:0 16px;padding-bottom:max(12px,env(safe-area-inset-bottom));gap:8px}.stir-bottom>span{max-width:16ch}.stir-preview{display:none}}
@media(prefers-reduced-motion:no-preference){.stir-launch svg{transition:transform .5s ease}.stir-launch:hover svg{transform:rotate(22deg)}.stir-dialog[open]{animation:stir-open .2s ease-out}@keyframes stir-open{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}
