/* Result menus and toolbars follow the reference hierarchy, using original SVGs. */
.result-tool-icon{display:block;flex:0 0 auto;width:18px;height:18px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.generation-card-actions .result-tool-icon{width:16px;height:16px}
.generation-image-hover-actions.result-top-tools{top:8px;right:8px;bottom:auto;left:auto;border:0;gap:2px;padding:3px;border-radius:8px;background:#242628ed;transform:translateY(-3px)}
.generation-image-hover-actions.result-bottom-tools{left:8px;right:auto;bottom:8px;top:auto;border:0;gap:3px;padding:3px;border-radius:8px;background:#242628ed}
.generation-image-hover-actions.result-top-tools button,.generation-image-hover-actions.result-top-tools a,.generation-image-hover-actions.result-bottom-tools button{width:28px;height:28px;min-height:28px;flex:0 0 28px;border-radius:5px;background:transparent;color:#fff}
.generation-image-hover-actions .is-active{color:#ffd56b!important}
.generation-image-shell:hover .generation-image-hover-actions,.generation-image-shell:focus-within .generation-image-hover-actions,.generation-image-shell:has([aria-expanded="true"]) .generation-image-hover-actions{opacity:1;pointer-events:auto;transform:none}
.result-favorite-badge{position:absolute;z-index:3;left:9px;top:9px;color:#ffd56b;filter:drop-shadow(0 1px 3px #0008);pointer-events:none}
.result-favorite-badge .result-tool-icon{width:17px;height:17px}
.result-action-menu.popover{position:fixed;display:none;z-index:600;width:200px;padding:8px;border:1px solid #ffffff0b;border-radius:16px;background:#252728;color:#f1f2f3;box-shadow:0 6px 24px #0005;overflow:auto}
.result-action-menu.popover.open{display:block}
.result-action-menu button{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:40px;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:inherit;font-size:13px;text-align:left;cursor:pointer}
.result-action-menu button:hover,.result-action-menu button:focus-visible{background:#ffffff0e;outline:none}
.result-action-menu button:disabled{opacity:.35;cursor:not-allowed}
.result-action-menu button:disabled:hover{background:transparent}
.result-action-menu hr{height:1px;border:0;background:#ffffff0a;margin:6px 8px}
.result-action-menu .danger:hover{color:#ffb5b5}
.result-operation-error{padding:8px 0;margin:6px 0 0;color:#ffb9a9;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.result-operation-error[hidden]{display:none}
.asset-image-shell{position:relative;min-width:0;min-height:0;overflow:hidden;background:#141619}
.cloud-asset-thumb .asset-image-shell>.cloud-image-button{display:block;width:100%;height:100%;padding:0;border:0;background:none;cursor:pointer}
.cloud-asset-thumb .asset-image-shell>.cloud-image-button img{display:block;width:100%;height:100%;object-fit:cover}
.asset-image-shell .result-bottom-tools button{width:25px;height:25px;min-height:25px;flex-basis:25px}
.asset-image-shell .result-top-tools button,.asset-image-shell .result-top-tools a{width:25px;height:25px;min-height:25px;flex-basis:25px}
.asset-image-shell .result-tool-icon{width:16px;height:16px}
.subject-reference-preview{display:block;width:112px;height:112px;object-fit:cover;border-radius:10px;margin:0 0 18px}
.subject-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.result-panel-toolbar .result-panel-favorite.is-active{color:#ffd56b}
.result-panel-tools button:disabled{opacity:.35;cursor:not-allowed}
@media(hover:none){.generation-image-hover-actions{opacity:1;pointer-events:auto;transform:none}}
@media(max-width:600px){.result-action-menu.popover{border-radius:12px}.generation-image-hover-actions.result-top-tools{top:5px;right:5px}.generation-image-hover-actions.result-bottom-tools{left:5px;bottom:5px}}
