#capture-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 24px));height:min(780px,calc(100dvh - 24px));max-width:none;max-height:calc(100dvh - 24px);overflow:hidden;padding:18px;border-radius:25px;background:var(--panel,#fff);color:var(--text,#242833);border:1px solid var(--line,#e8e9ee)}
#capture-dialog[open]{display:flex;flex-direction:column;gap:12px}
.capture-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex:none}.capture-heading h2{font-size:20px;margin:0!important;line-height:1.3}.capture-heading-actions{display:flex;align-items:center;gap:7px}.capture-close,.capture-switch-quick{display:grid;place-items:center;width:44px;height:44px;flex:0 0 auto;border:0;border-radius:50%;background:var(--field,#f1f2f6);color:inherit;line-height:1}.capture-close{font-size:29px}.capture-switch-quick .ui-glyph{width:21px;height:21px;stroke-width:2}.capture-switch-quick:disabled{opacity:.45}
.capture-body{display:flex;flex-direction:column;gap:10px;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.capture-stage{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1 0 140px;min-height:140px;overflow:hidden;border-radius:19px;background:#111721}
.capture-placeholder{padding:24px 20px;text-align:center;max-width:330px}.capture-placeholder-symbol{display:block;color:var(--blue,#5268df);font-size:48px;line-height:1.2}.capture-placeholder p{margin:12px 0 0;font-size:14px;line-height:1.5;color:var(--muted,#707888)}
#capture-preview-video,#capture-preview-photo{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;background:transparent}
#capture-preview-audio{display:none}
.capture-voice-orb,.capture-voice-wave,.capture-audio-player{display:none}
/* Only the preview is circular; MediaRecorder keeps the native full frame. */
#capture-dialog[data-kind=round] .capture-stage { container-type:size; background:transparent; }
#capture-dialog[data-kind=round] #capture-preview-video {
  inset:50% auto auto 50%; transform:translate(-50%,-50%);
  width:min(100cqw,100cqh); height:min(100cqw,100cqh);
  border-radius:50%; object-fit:cover; background:#111721;
}
.capture-info{display:flex;justify-content:space-between;gap:12px;flex:none;font-size:12px;color:var(--muted,#707888)}#capture-timer{font-variant-numeric:tabular-nums;font-weight:650}.capture-info .is-recording{color:#d74157}.capture-info .is-recording::before{content:'●';font-size:10px;vertical-align:middle;margin-right:7px}#capture-status{flex:none;line-height:1.4;font-size:12px;margin:0;color:var(--muted,#707888)}#capture-status:empty{display:none}
.capture-actions{display:flex;flex:none;gap:8px;padding-top:12px;border-top:1px solid var(--line,#e8e9ee);background:var(--panel,#fff)}.capture-actions button{flex:1 1 0;min-width:0;padding:12px 8px;min-height:46px;border:0;border-radius:13px;background:var(--field,#eff1f6);color:inherit;font:inherit;font-size:14px;font-weight:600}.capture-actions .capture-primary{background:var(--accent,#5268df);color:#fff}.capture-actions button:disabled{opacity:.55}.background-covered #capture-dialog,.covering #capture-dialog{display:none!important}
.capture-options{flex:none;border-radius:13px;background:var(--field,#f1f2f6)}.capture-options summary{padding:12px;min-height:44px;font-size:13px;font-weight:600;cursor:pointer;user-select:none}.capture-options[open]{padding-bottom:12px}
.capture-camera-controls,.capture-zoom-controls{padding:0 12px}.capture-camera-controls+.capture-zoom-controls{margin-top:12px}.capture-camera-controls label,.capture-zoom-controls label{font-size:11px;color:var(--muted,#707888);margin:0 0 6px}.capture-camera-choice{display:flex;gap:8px}.capture-camera-choice select{min-width:0;flex:1;width:100%;min-height:44px;padding:10px;border:1px solid var(--line,#e8e9ee);border-radius:10px;background:var(--panel,#fff);color:inherit;font:inherit;font-size:13px}.capture-camera-choice button{min-height:44px;border:0;border-radius:10px;background:var(--panel,#fff);color:inherit;padding:10px;font:inherit;font-size:12px}.capture-zoom-controls label{display:flex;justify-content:space-between}.capture-zoom-controls input{display:block;width:100%;height:26px;margin:0;accent-color:var(--accent,#5268df)}
#capture-cancel{flex:0 1 88px}#capture-dialog [hidden]{display:none!important}
#capture-edit-photo{color:var(--accent-text,var(--accent,#5268df));background:color-mix(in srgb,var(--accent,#5268df) 11%,var(--field,#eff1f6));font-size:12px}
#capture-dialog[data-kind=voice]{position:fixed;inset:auto 0 max(14px,env(safe-area-inset-bottom));width:min(440px,calc(100vw - 24px));height:auto;max-height:min(560px,calc(100dvh - 28px));margin:0 auto;padding:16px 16px 15px;border-radius:28px;background:color-mix(in srgb,var(--panel,#fff) 96%,var(--accent,#5268df) 4%);box-shadow:0 24px 90px #10172866,inset 0 1px 0 #ffffff45}
#capture-dialog[data-kind=voice][open]{gap:0}
#capture-dialog[data-kind=voice] .capture-heading{padding:1px 2px 11px}
#capture-dialog[data-kind=voice] .capture-heading h2{font-size:18px;letter-spacing:-.35px}
#capture-dialog[data-kind=voice] .capture-close{width:40px;height:40px;background:color-mix(in srgb,var(--field,#f1f2f6) 88%,transparent)}
#capture-dialog[data-kind=voice] .capture-body{flex:0 1 auto;gap:8px;overflow:visible}
#capture-dialog[data-kind=voice] .capture-stage{position:relative;display:block;flex:0 0 auto;min-height:126px;padding:0;overflow:hidden;border-radius:22px;background:linear-gradient(145deg,color-mix(in srgb,var(--accent,#5268df) 10%,var(--field,#f1f2f6)),var(--field,#f1f2f6));box-shadow:inset 0 1px 0 #ffffff55}
#capture-dialog[data-kind=voice] .capture-placeholder{display:grid;grid-template-columns:58px minmax(0,1fr);grid-template-rows:48px auto;align-items:center;column-gap:14px;width:100%;max-width:none;padding:19px 18px;text-align:left}
#capture-dialog[data-kind=voice] .capture-placeholder-symbol{display:none}
.capture-voice-orb{position:relative;grid-row:1/3;display:grid;width:58px;height:58px;place-items:center;border-radius:20px;background:linear-gradient(145deg,#8299ef,#5b73cd);box-shadow:0 9px 22px #405ebf2f,inset 0 1px 1px #ffffff6b}
.capture-voice-orb>span{position:relative;width:16px;height:25px;border:3px solid #fff;border-radius:10px}
.capture-voice-orb>span:before{content:"";position:absolute;left:50%;bottom:-9px;width:24px;height:14px;border:3px solid #fff;border-top:0;border-radius:0 0 14px 14px;transform:translateX(-50%)}
.capture-voice-orb>span:after{content:"";position:absolute;left:50%;bottom:-14px;width:3px;height:6px;border-radius:2px;background:#fff;transform:translateX(-50%)}
.capture-voice-wave{display:flex;align-items:center;gap:3px;min-width:0;height:44px;overflow:hidden}
.capture-voice-wave span{flex:1 1 2px;min-width:2px;height:10px;border-radius:4px;background:color-mix(in srgb,var(--accent,#5268df) 72%,var(--muted,#707888));opacity:.48;transform:scaleY(.55)}
.capture-voice-wave span:nth-child(3n){height:22px}.capture-voice-wave span:nth-child(4n){height:30px}.capture-voice-wave span:nth-child(5n){height:16px}.capture-voice-wave span:nth-child(7n){height:36px}
#capture-dialog[data-kind=voice] #capture-instruction{grid-column:2;margin:2px 0 0;font-size:12px}
#capture-dialog[data-kind=voice] .capture-info{padding:2px 4px 0}
#capture-dialog[data-kind=voice] #capture-limit{font-size:11px}
#capture-dialog[data-kind=voice] #capture-status{padding:0 4px}
#capture-dialog[data-kind=voice] .capture-actions{gap:9px;padding-top:11px;margin-top:7px}
#capture-dialog[data-kind=voice] .capture-actions button{min-height:48px;border-radius:15px}
#capture-dialog[data-kind=voice] #capture-action,#capture-dialog[data-kind=voice] #capture-accept{box-shadow:0 7px 18px #405ebf32,inset 0 1px 1px #ffffff50}
#capture-dialog[data-kind=voice].is-recording .capture-voice-orb{background:linear-gradient(145deg,#f06f7f,#c94a60);animation:voice-orb-pulse 1.35s ease-in-out infinite}
#capture-dialog[data-kind=voice].is-recording .capture-voice-wave span{opacity:.9;animation:capture-wave .72s ease-in-out infinite alternate}
#capture-dialog[data-kind=voice].is-recording .capture-voice-wave span:nth-child(2n){animation-delay:-.19s}#capture-dialog[data-kind=voice].is-recording .capture-voice-wave span:nth-child(3n){animation-delay:-.37s}#capture-dialog[data-kind=voice].is-recording .capture-voice-wave span:nth-child(5n){animation-delay:-.53s}
#capture-dialog[data-kind=voice].has-voice-preview .capture-voice-wave{display:none}
.capture-audio-player{grid-column:2;position:absolute;left:90px;right:18px;top:27px;display:grid;grid-template-columns:38px minmax(0,1fr) 34px;align-items:center;gap:9px}
.capture-audio-player[hidden]{display:none}
#capture-audio-toggle{position:relative;width:38px;height:38px;padding:0;border:0;border-radius:50%;background:var(--accent,#5268df);box-shadow:0 5px 13px #415fbd30}
#capture-audio-toggle:before{content:"";position:absolute;left:15px;top:11px;border-top:8px solid transparent;border-bottom:8px solid transparent;border-left:12px solid #fff}
#capture-audio-toggle[data-playing=true]:before{left:13px;top:11px;width:12px;height:16px;border:0;background:linear-gradient(90deg,#fff 0 35%,transparent 35% 65%,#fff 65%)}
.capture-audio-track{position:relative;display:block;height:38px}
.capture-audio-bars{position:absolute;inset:0;display:flex;align-items:center;gap:2px;pointer-events:none}
.capture-audio-bars i{flex:1;height:10px;border-radius:3px;background:color-mix(in srgb,var(--accent,#5268df) 48%,var(--muted,#707888));transition:background .15s}.capture-audio-bars i:nth-child(3n){height:20px}.capture-audio-bars i:nth-child(4n){height:28px}.capture-audio-bars i:nth-child(7n){height:33px}.capture-audio-bars i.is-played{background:var(--accent,#5268df)}
#capture-audio-progress{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
#capture-audio-time{color:var(--muted,#707888);font-size:11px;font-variant-numeric:tabular-nums;text-align:right}
@keyframes capture-wave{from{transform:scaleY(.3)}to{transform:scaleY(1)}}
@keyframes voice-orb-pulse{0%,100%{box-shadow:0 9px 22px #b83e5730,inset 0 1px 1px #ffffff6b}50%{box-shadow:0 9px 26px #d74e6b55,0 0 0 7px #d74e6b12,inset 0 1px 1px #ffffff6b}}
@media(max-width:600px){#capture-dialog{width:calc(100vw - 12px);height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:12px;border-radius:21px}#capture-dialog[open]{gap:10px}.capture-heading h2{font-size:18px}.capture-stage{border-radius:14px}.capture-actions button{min-height:48px}.capture-actions{padding-top:10px}#capture-dialog[data-kind=voice]{inset:auto 6px max(10px,env(safe-area-inset-bottom));width:auto;height:auto;max-height:calc(100dvh - 20px - env(safe-area-inset-top));margin:0;padding:14px;border-radius:25px}#capture-dialog[data-kind=voice][open]{gap:0}#capture-dialog[data-kind=voice] .capture-stage{border-radius:20px}.capture-audio-player{left:86px;right:15px}}
@media(max-height:480px){#capture-dialog{padding:10px}#capture-dialog[open]{gap:6px}.capture-body{gap:6px}.capture-stage{flex-basis:80px;min-height:80px}.capture-heading h2{font-size:17px}.capture-actions{padding-top:6px}.capture-actions button{min-height:44px;padding:9px 8px}}
@media(prefers-reduced-motion:no-preference){.capture-actions button,.capture-close,.capture-switch-quick{transition:background-color .15s,opacity .15s}}
@media(prefers-reduced-motion:reduce){#capture-dialog[data-kind=voice].is-recording .capture-voice-orb,#capture-dialog[data-kind=voice].is-recording .capture-voice-wave span{animation:none}}

/* Preview and capture actions share the available area; exit never scrolls away. */
#capture-dialog.panic-ready[open] { gap: 0; max-height: calc(var(--chat-viewport-height,100dvh) - 24px); }
#capture-dialog.panic-ready > .dialog-content { display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
#capture-dialog .dialog-panic-footer { margin-top: 16px; padding-top: 16px; }
#capture-dialog.panic-ready[data-kind=voice] > .dialog-content { gap: 0; overflow: visible; }
#capture-dialog.panic-ready[data-kind=voice] .dialog-panic-footer { margin-top: 12px; padding-top: 12px; }
@media(max-width:600px) {
  #capture-dialog.panic-ready[open] { height: calc(var(--chat-viewport-height,100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); max-height: calc(var(--chat-viewport-height,100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  #capture-dialog.panic-ready > .dialog-content { gap: 10px; }
  #capture-dialog.panic-ready[data-kind=voice] { height: auto; }
  #capture-dialog.panic-ready[data-kind=voice] > .dialog-content { gap: 0; overflow: visible; }
  #capture-dialog.panic-ready[data-kind=voice] .dialog-panic-footer { margin-top: 12px; padding-top: 12px; }
}
@media(max-height:480px) {
  #capture-dialog.panic-ready > .dialog-content { gap: 6px; }
  #capture-dialog .dialog-panic-footer { margin-top: 12px; padding-top: 12px; }
}

/* Photo editor: the image owns the flexible space; controls never cover it. */
dialog.photo-editor-dialog {
  width:min(860px,calc(100vw - 12px)); max-width:none; height:min(1040px,calc(var(--chat-viewport-height,100dvh) - 12px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  padding:10px; border:1px solid var(--line,#303c50); border-radius:24px; background:var(--panel,#fff);
  color:var(--ink,var(--text,#242833)); box-shadow:0 28px 90px #10172866; overflow:hidden;
}
dialog.photo-editor-dialog[open],dialog.photo-editor-dialog.panic-ready[open] { display:flex; flex-direction:column; max-height:calc(var(--chat-viewport-height,100dvh) - 12px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
.photo-editor-dialog [hidden] { display:none!important; }
dialog.photo-editor-dialog.panic-ready>.dialog-content { display:flex; flex:1 1 auto; flex-direction:column; gap:6px; min-height:0; overflow:hidden; }
.photo-editor-dialog button { font:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.photo-editor-dialog button:disabled { opacity:.3; cursor:default; }
.photo-editor-dialog svg { display:block; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.photo-editor-heading { display:flex; align-items:center; gap:7px; min-height:40px; flex:none; }
.photo-editor-heading h2 { flex:1; margin:0!important; font-size:15px; font-weight:650; letter-spacing:-.2px; }
.photo-editor-history { display:flex; gap:2px; }
.photo-editor-dialog .editor-icon-button { display:grid; place-items:center; flex:none; width:40px; height:40px; padding:0; border:0; border-radius:12px; background:transparent; color:var(--muted,#8d98ae); }
#photo-editor-close { color:inherit; }
#photo-editor-done { height:36px; padding:0 15px; border:0; border-radius:12px; color:#fff; background:var(--accent,#6684ff); font-size:12px; font-weight:700; box-shadow:inset 0 1px 0 #ffffff30; }
.photo-editor-workspace { display:flex; flex-direction:column; flex:1 1 0; gap:6px; min-height:0; overflow:hidden; }
.photo-editor-canvas-wrap { position:relative; display:grid; place-items:center; flex:1 1 0; min-height:0; border-radius:15px; background:#080d15; overflow:hidden; }
#photo-editor-surface { position:relative; flex:none; touch-action:none; user-select:none; -webkit-user-select:none; }
#photo-editor-canvas { display:block; width:100%; height:100%; max-width:none; max-height:none; touch-action:none; }
#photo-editor-loading { position:absolute; inset:auto 14px; margin:0; color:#cbd3e5; font-size:12px; text-align:center; }
#photo-editor-frame { position:absolute; box-sizing:border-box; border:1px solid #ffffffb0; box-shadow:0 0 0 2000px #03060d8f; cursor:move; touch-action:none; }
.photo-editor-grid { position:absolute; inset:0; pointer-events:none; opacity:.6; background:linear-gradient(90deg,transparent calc(33.333% - .5px),#ffffff66 33.333%,transparent calc(33.333% + .5px),transparent calc(66.667% - .5px),#ffffff66 66.667%,transparent calc(66.667% + .5px)),linear-gradient(transparent calc(33.333% - .5px),#ffffff66 33.333%,transparent calc(33.333% + .5px),transparent calc(66.667% - .5px),#ffffff66 66.667%,transparent calc(66.667% + .5px)); }
.is-editing .photo-editor-grid { opacity:1; }
#photo-editor-frame [data-handle] { position:absolute; z-index:2; width:38px; height:38px; min-width:0; padding:0; border:0; border-radius:0; background:transparent; color:#fff; touch-action:none; transform:translate(-50%,-50%); }
#photo-editor-frame [data-handle]:after { content:""; position:absolute; inset:18px; background:#fff; box-shadow:0 1px 3px #0005; }
#photo-editor-frame [data-handle=nw] { left:0; top:0; cursor:nwse-resize; }
#photo-editor-frame [data-handle=ne] { left:100%; top:0; cursor:nesw-resize; }
#photo-editor-frame [data-handle=sw] { left:0; top:100%; cursor:nesw-resize; }
#photo-editor-frame [data-handle=se] { left:100%; top:100%; cursor:nwse-resize; }
#photo-editor-frame [data-handle=n] { left:50%; top:0; cursor:ns-resize; }
#photo-editor-frame [data-handle=s] { left:50%; top:100%; cursor:ns-resize; }
#photo-editor-frame [data-handle=w] { left:0; top:50%; cursor:ew-resize; }
#photo-editor-frame [data-handle=e] { left:100%; top:50%; cursor:ew-resize; }
#photo-editor-frame [data-handle=n]:after,#photo-editor-frame [data-handle=s]:after { inset:17px 10px; border-radius:3px; }
#photo-editor-frame [data-handle=w]:after,#photo-editor-frame [data-handle=e]:after { inset:10px 17px; border-radius:3px; }
#photo-editor-frame [data-handle=nw]:after,#photo-editor-frame [data-handle=ne]:after,#photo-editor-frame [data-handle=sw]:after,#photo-editor-frame [data-handle=se]:after { width:17px; height:17px; inset:auto; background:transparent; border:3px solid #fff; box-shadow:none; }
#photo-editor-frame [data-handle=nw]:after { left:17px; top:17px; border-right:0; border-bottom:0; border-radius:3px 0 0; }
#photo-editor-frame [data-handle=ne]:after { right:17px; top:17px; border-left:0; border-bottom:0; border-radius:0 3px 0 0; }
#photo-editor-frame [data-handle=sw]:after { left:17px; bottom:17px; border-right:0; border-top:0; border-radius:0 0 0 3px; }
#photo-editor-frame [data-handle=se]:after { right:17px; bottom:17px; border-left:0; border-top:0; border-radius:0 0 3px; }
.photo-editor-bottom { flex:none; display:flex; flex-direction:column; gap:2px; }
.photo-editor-options { min-height:38px; padding:0 4px; }
.photo-editor-aspects { display:flex; align-items:center; justify-content:center; gap:7px; }
.photo-editor-aspects button { min-width:44px; height:38px; padding:0 11px; border:0; border-radius:11px; background:transparent; color:var(--muted,#8792a8); font-size:11px; font-weight:650; }
.photo-editor-aspects button[aria-pressed=true] { background:var(--field,#edf0f7); color:var(--accent-text,var(--accent,#6684ff)); }
.photo-editor-size-row { display:flex; align-items:center; gap:10px; height:38px; margin:0; }
#photo-editor-brush-sample { display:grid; place-items:center; width:30px; height:30px; flex:none; }
#photo-editor-brush-sample:after { content:""; width:var(--brush-size,8px); height:var(--brush-size,8px); border-radius:50%; background:var(--brush-color,#aaa); }
[data-tool=pixel] #photo-editor-brush-sample:after { border-radius:2px; }
#photo-editor-size { width:0; min-width:0; height:32px; flex:1; margin:0; accent-color:var(--accent,#6684ff); }
#photo-editor-size-value { min-width:25px; color:var(--muted,#8792a8); font-size:11px; font-variant-numeric:tabular-nums; text-align:right; }
.photo-editor-colors { display:flex; justify-content:center; align-items:center; gap:6px; height:38px; }
.photo-editor-colors button,.photo-editor-custom-color { position:relative; display:grid; place-items:center; width:36px; height:36px; flex:none; margin:0; border:0; border-radius:50%; padding:0; background:transparent; }
.photo-editor-colors button:before,.photo-editor-custom-color:before { content:""; width:22px; height:22px; border-radius:50%; background:var(--editor-color); box-shadow:0 0 0 1px #8593a540; }
.photo-editor-colors button[aria-pressed=true]:after { content:""; position:absolute; inset:2px; border:1.5px solid var(--accent,#6684ff); border-radius:50%; }
.photo-editor-custom-color:before { background:conic-gradient(#f44,#fc3,#4d8,#39f,#94f,#f44); }
.photo-editor-custom-color input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.photo-editor-tools { display:flex; justify-content:center; align-items:center; gap:5px; height:44px; }
.photo-editor-tools button { display:grid; place-items:center; width:44px; height:40px; padding:0; border:0; border-radius:13px; color:var(--muted,#8995ab); background:transparent; }
.photo-editor-tools button[aria-pressed=true] { background:var(--field,#edf0f7); color:var(--accent-text,var(--accent,#6684ff)); box-shadow:inset 0 1px 0 #ffffff10; }
#photo-editor-tool-label { width:64px; margin-left:9px; color:var(--muted,#8792a8); font-size:11px; }
.photo-editor-dialog .editor-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
dialog.photo-editor-dialog .dialog-panic-footer { flex:none; margin:7px 0 0; padding:9px 0 0; }
.is-saving .photo-editor-workspace { pointer-events:none; opacity:.7; }
@media(max-width:600px) {
  dialog.photo-editor-dialog { width:calc(100vw - 6px); height:calc(var(--chat-viewport-height,100dvh) - 6px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding:7px; border-radius:19px; }
  dialog.photo-editor-dialog.panic-ready[open] { max-height:calc(var(--chat-viewport-height,100dvh) - 6px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .photo-editor-heading { gap:4px; }
  .photo-editor-canvas-wrap { border-radius:11px; }
}
@media(max-height:480px) and (min-width:600px) {
  .photo-editor-workspace { flex-direction:row; }
  .photo-editor-bottom { width:240px; justify-content:center; padding:0 8px; }
  .photo-editor-aspects { flex-wrap:wrap; }
  .photo-editor-colors { gap:0; }
  dialog.photo-editor-dialog .dialog-panic-footer { margin-top:5px; padding-top:7px; }
}
@media(prefers-reduced-motion:no-preference) {
  .photo-editor-tools button,.photo-editor-aspects button,.editor-icon-button,#photo-editor-done { transition:color .18s,background-color .18s,opacity .18s,transform .18s; }
  .photo-editor-tools button:active,#photo-editor-done:active { transform:scale(.95); }
  .photo-editor-grid { transition:opacity .2s; }
}
