/* Compact result: keep review actions and pending-job states, remove redundant headings. */
html body #create #result-section>.result-heading>div:first-child,
html body #result-section>.result-heading>.result-preview-badge{display:none!important}
html body #create #result-section>.result-heading{margin:0 0 10px;min-height:0}
html body #create #result-section:not(.sd-task-result)>.result-heading:not(:has(.bp-inline-comments:not([hidden]))){display:none!important}
html body #result-frame #result-dismiss,html body #result-frame #result-expand{position:absolute;right:12px;left:auto;z-index:12;box-sizing:border-box;width:40px;height:40px;min-width:40px;min-height:40px;max-width:40px;max-height:40px;padding:0;margin:0;appearance:none;line-height:0;display:grid;place-items:center;border:1px solid #ffffff26;border-radius:10px;background:#141418d9;color:#eeeef2;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 2px 10px #0003}
html body #result-frame #result-dismiss{top:12px}
html body #result-frame #result-expand{top:60px}
html body #result-frame :is(#result-dismiss,#result-expand):hover{background:#2e2e34}
html body #result-frame :is(#result-dismiss,#result-expand):focus-visible{outline:2px solid #fff;outline-offset:3px}
html body #result-frame :is(#result-dismiss,#result-expand) svg{display:block;position:static;transform:none;margin:0;padding:0;width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5}
html body #result-frame [hidden]{display:none!important}
html body #result-section .download-status,html body #history-download-status{color:#e9e9ed!important;background:transparent!important}
html body #result-section .download-status:empty{display:none}
html body .history-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 20px}
html body .history-actions .creation-download{margin:0}
html body .history-actions [hidden]{display:none!important}
.element-category-picker{position:relative;min-width:0}
html body .element-category-trigger{width:100%;min-height:48px;display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid #ffffff24;border-radius:12px;background:#19191d;color:#e9e9ed;font:inherit;text-align:left;cursor:pointer}
.element-category-trigger::after{content:'';width:7px;height:7px;margin-left:auto;border:solid #b9b9c0;border-width:0 1.5px 1.5px 0;transform:rotate(45deg) translateY(-2px)}
html body .element-category-menu{position:absolute;z-index:30;inset:calc(100% + 8px) 0 auto;width:100%;box-sizing:border-box;min-width:0;max-height:340px;overflow:auto;display:grid;grid-template-columns:1fr;gap:3px;padding:8px;border:1px solid #ffffff24;border-radius:14px;background:#101012;box-shadow:0 16px 40px #0008}
html body .element-category-menu[hidden]{display:none!important}
html body .element-category-menu .studio-options-title{grid-column:1/-1;padding:6px 8px 12px;margin-bottom:4px;border-bottom:1px solid #ffffff12;color:#a6a6ae;font-size:13px}
html body .element-category-menu button{display:flex;align-items:center;gap:10px;min-width:0;padding:12px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:#e9e9ed;text-align:left;font:inherit;font-size:14px;cursor:pointer}
html body .element-category-menu button:hover{background:#ffffff0b}
html body .element-category-menu button[aria-checked=true]{background:#ffffff0b;border-color:#ffffff16;box-shadow:none}
html body .element-category-menu button[aria-checked=true]::after{content:'';margin-left:auto;width:6px;height:6px;flex:none;border-radius:50%;background:#fff}
html body .element-category-menu button:focus-visible,.element-category-trigger:focus-visible{outline:2px solid #7c5cff;outline-offset:2px}
html body .element-category-picker svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
html body :is(#profile-toggle,.user-head>.avatar,.creator-avatar):has(img[src$="default-avatar.svg"]){background:#212126}

html.direct-brand body #user-pop .credit-line b{color:#fff!important}

/* Result controls share exact outer dimensions and optically centered icons. */
html body #result-viewer #viewer-close,html body #result-section.sd-task-result #result-dismiss{box-sizing:border-box;appearance:none;display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;margin:0;line-height:0;border:1px solid #ffffff26;border-radius:10px;background:#141418d9;color:#eeeef2;cursor:pointer}
html body #result-viewer #viewer-close svg,html body #result-section.sd-task-result #result-dismiss svg{display:block;width:20px;height:20px;position:static;transform:none;margin:0;padding:0;flex:none}
html body #result-viewer #viewer-close:hover{background:#2e2e34}
html body #result-viewer #viewer-close:focus-visible{outline:2px solid #fff;outline-offset:3px}
