.image-inspiration{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr);align-items:center;gap:28px;margin:24px 0 32px}
.image-inspiration-heading{min-width:0;margin-bottom:4px}
.image-model-info{padding:0 0 12px;margin:0 0 14px;border-bottom:1px solid var(--border);font-size:12px;line-height:1.5}
.image-model-info summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none;font-size:13px}
.image-model-info summary::-webkit-details-marker{display:none}
.image-model-info[open] summary svg{transform:rotate(180deg)}
.image-model-info h3{font-size:14px;line-height:1.5;margin:12px 0 6px}
.image-model-info p{margin:6px 0;overflow-wrap:anywhere}
.image-model-specs,.image-price-unit,.image-price-note{color:var(--muted)}
.image-model-info .image-price-unit{margin-top:14px}
.image-model-info dl{display:grid;gap:8px;margin:10px 0}
.image-model-info dl>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}
.image-model-info dt{overflow-wrap:anywhere}
.image-model-info dd{margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.image-model-info .image-price-note{font-size:11px;margin-top:12px}
.image-price-skeleton{display:grid;gap:10px;padding:16px 0}
.image-price-skeleton span{height:12px;border-radius:3px;background:var(--border);animation:project-pulse 1.5s ease-in-out infinite}
.image-price-skeleton span:first-child{width:50%}
.image-options-sidebar .image-options{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.image-options-sidebar .image-other-formats{flex-basis:100%;max-width:none}
.image-options-sidebar #image-other-formats-menu{left:0;right:0;width:100%;box-sizing:border-box}
.image-model-setting{display:grid;gap:8px;margin-bottom:20px;font-size:13px;color:var(--muted)}
.image-model-setting #image-model{width:100%;max-width:none;flex:none;border:1px solid var(--border);border-radius:6px;background-color:var(--theme-surface,#fff);color:inherit;font-size:13px;padding:7px 28px 7px 10px}
#create-panel-image form .refine-actions #image-settings-toggle{margin-left:auto}
#create-panel-image form .refine-actions .refine-submit{margin-left:0}
.image-options-sidebar .image-model-info{margin:28px 0 0;padding:24px 0 0;border:0;border-top:1px solid var(--border)}
.image-options-sidebar .image-model-info dl>div{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:14px 0;border-bottom:1px solid var(--border)}
.image-options-sidebar .image-model-info dd{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline;white-space:normal}
.image-options-sidebar .image-model-info dd strong{font-size:20px;font-weight:500}
.image-options-sidebar .image-model-info dd span{font-size:12px;color:var(--muted)}
.image-options-sidebar .image-model-info p{line-height:1.7}
.image-price-skeleton span:last-child{width:75%}
@media(prefers-reduced-motion:reduce){.image-price-skeleton span{animation:none}}
.image-generation-progress{position:relative;width:min(100%,480px);aspect-ratio:4/3;overflow:hidden;border:1px solid var(--border);border-radius:6px;background:var(--theme-hover,#edf3ef)}
.image-generation-progress>svg{position:absolute;width:40px;height:40px;left:calc(50% - 20px);top:calc(50% - 20px);color:var(--muted)}
.image-generation-progress>span{position:absolute;inset:22% 20%;border:1px solid #16866e;border-radius:4px;animation:image-generation-sketch 1.5s ease-in-out infinite}
.image-generation-progress>span:nth-of-type(2){inset:17% 25% 27% 15%;border-color:#478dc7;animation-delay:-.5s}
.image-generation-progress>span:nth-of-type(3){inset:27% 15% 17% 25%;border-color:var(--muted);animation-delay:-1s}
@keyframes image-generation-sketch{0%,100%{opacity:.15;clip-path:inset(0 80% 70% 0)}50%{opacity:.65;clip-path:inset(0)}}
@media(prefers-reduced-motion:reduce){.image-generation-progress>span{animation:none;opacity:.3}}
.image-examples{display:grid;grid-template-columns:minmax(0,.64fr) minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;width:100%;min-width:0;aspect-ratio:1.45}
.image-examples .image-suggestion:first-child{grid-row:1/3;grid-column:1}
.image-examples .image-suggestion:nth-child(2){grid-row:1;grid-column:2}
.image-examples .image-suggestion:nth-child(3){grid-row:2;grid-column:2}
.image-inspiration-heading h2{margin:0 0 10px;font-size:20px;line-height:1.35;font-weight:600}
.image-inspiration-heading p{max-width:640px;margin:0;color:var(--muted);font-size:14px;line-height:1.6}
.image-suggestion{position:relative;display:grid;grid-template-columns:1fr auto;gap:12px;text-align:left;padding:0 0 10px;min-width:0;min-height:0;border:0;border-radius:6px;background:transparent;color:var(--text);font-size:13px;align-self:stretch}
.image-suggestion-preview{grid-column:1/-1;display:grid;place-items:center;width:100%;aspect-ratio:4/3;border:1px solid var(--border);border-radius:6px;background:var(--theme-hover,#edf4f0);color:var(--muted)}
.image-suggestion-preview svg{width:28px;height:28px;stroke-width:1}
.image-suggestion>span:not(.image-suggestion-preview){padding-left:4px}
.image-suggestion>svg{width:16px;height:16px;margin-right:4px}
.image-suggestion:hover .image-suggestion-preview{border-color:var(--green)}
.image-suggestion.has-image{padding:0;gap:0;overflow:hidden}
.image-suggestion.has-image .image-suggestion-preview{aspect-ratio:auto;height:100%;min-height:0;overflow:hidden}
.image-suggestion-preview img{display:block;width:100%;height:100%;min-height:0;object-fit:cover;object-position:center}
.image-examples .image-suggestion:first-child img{object-fit:contain}
.image-example-contain .image-suggestion-preview{background:#fff}
.image-example-contain .image-suggestion-preview img{object-fit:contain}
.image-suggestion.has-image .image-suggestion-caption{position:absolute;bottom:6px;left:6px;right:6px;padding:5px 22px 5px 7px;border-radius:5px;background:#000b;color:#fff;line-height:1.4;overflow-wrap:anywhere}
.image-suggestion-tokens{margin-left:6px;font-size:11px;line-height:1.4;overflow-wrap:normal;word-break:normal;color:#e3e9e7}
.image-suggestion.has-image>svg{position:absolute;bottom:12px;right:6px;color:#fff}
.image-suggestion[aria-busy=true]::after{content:'';position:absolute;top:8px;right:8px;width:16px;height:16px;border:2px solid #fff7;border-top-color:var(--green);border-radius:50%;animation:image-example-spin .8s linear infinite}
@keyframes image-example-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.image-suggestion[aria-busy=true]::after{animation:none}}
.image-studio .create-composer{overflow:visible}
.image-settings{position:absolute;bottom:calc(100% + 12px);right:0;width:min(420px,100%);max-height:min(440px,60dvh);overflow-y:auto;padding:16px;border:1px solid var(--border);border-radius:8px;background:var(--theme-surface,#fff);box-shadow:0 8px 28px #0002;z-index:10}
.image-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:14px}
.image-settings-close{width:30px;height:30px;padding:5px;background:transparent;border:0;color:var(--muted)}
.image-output-format{margin:0 0 14px;padding:0;border:0;min-width:0}
.image-output-format legend{margin-bottom:7px;padding:0;color:var(--muted);font-size:12px}
.image-output-segments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;padding:3px;border:1px solid var(--border);border-radius:7px}
.image-output-segments label{position:relative;min-width:0;margin:0;cursor:pointer}
.image-output-segments input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;margin:0}
.image-output-segments span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:66px;padding:8px 4px;border-radius:4px;color:var(--muted);font-size:12px;font-weight:400;text-align:center}
.image-output-segments svg{width:18px;height:18px}
.image-output-segments input:checked+span{background:var(--theme-hover,#edf4f0);color:var(--green)}
.image-output-segments input:focus-visible+span{outline:2px solid var(--green);outline-offset:-2px}
.image-output-segments input:disabled+span{opacity:.5;cursor:default}
#image-settings-toggle{display:flex;align-items:center;gap:7px;height:36px;padding:7px 10px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:12px}
#image-settings-toggle[aria-expanded=true]{color:var(--green);background:var(--theme-hover,#edf4f0)}
#image-settings-toggle svg{width:17px;height:17px}
.image-options{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}
.image-options label{flex:1 1 110px;min-width:0;margin:0;font-size:11px;color:var(--muted)}
.image-options label:first-child{flex-basis:170px}
.image-options select,.image-options input{margin:4px 0 0;padding:7px 9px;min-height:36px;font-size:12px}
#image-model{width:auto;min-width:0;max-width:180px;flex:1 1 120px;margin:0;padding:7px 20px 7px 6px;min-height:36px;border:0;background-color:transparent;font-size:12px}
.image-studio .refine-actions{gap:4px;flex-wrap:nowrap}
@media(max-width:380px){#image-settings-toggle span{display:none}#image-settings-toggle{padding:7px}#image-model{font-size:11px;max-width:160px}}
.image-formats-label{margin:0 0 7px;color:var(--muted);font-size:12px}
.image-formats{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0 12px;min-width:0}
.image-formats .image-format-auto{width:66px;flex-basis:66px}
.image-format{display:flex;flex-direction:column;gap:2px;flex:0 0 42px;width:42px;height:46px;padding:4px;border:1px solid var(--border);border-radius:6px;background:transparent;color:var(--muted)}
.image-format svg{width:23px;height:23px;stroke-width:1.5}
.image-format span{font-size:10px;line-height:12px}
.image-format[aria-pressed=true],#image-other-formats-toggle.has-selection{color:var(--green);border-color:var(--green);background:var(--theme-hover,#edf4f0)}
.image-format:hover,#image-other-formats-toggle:hover{border-color:var(--green);color:var(--green)}
.image-other-formats{position:relative;min-width:100px;flex:1;max-width:172px}
#image-other-formats-toggle{width:100%;min-width:0;height:46px;padding:6px 10px;border:1px solid var(--border);border-radius:6px;background:transparent;color:var(--muted);font-size:12px;line-height:16px;gap:6px}
#image-other-formats-toggle>svg{width:14px;height:14px}
#image-other-formats-menu{position:absolute;right:0;bottom:calc(100% + 8px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;width:min(260px,calc(100vw - 64px));padding:6px;background:var(--theme-surface,#fff);border:1px solid var(--border);border-radius:6px;box-shadow:0 8px 24px #0002;z-index:5}
#image-other-formats-menu button{min-width:0;min-height:40px;justify-content:flex-start;gap:8px;padding:8px 10px;border:0;border-radius:4px;background:transparent;color:inherit;font-size:12px}
#image-other-formats-menu button:hover,#image-other-formats-menu button:focus-visible{background:var(--theme-hover,#edf4f0)}
#image-other-formats-menu [aria-checked=true]{color:var(--green);background:var(--theme-hover,#edf4f0)}
#image-other-formats-menu .image-format-check{width:14px;height:14px;margin-left:auto;visibility:hidden}
#image-other-formats-menu [aria-checked=true] .image-format-check{visibility:visible}
.image-studio textarea{display:block;min-height:70px;max-height:200px;resize:vertical;border:0;box-shadow:none;background:transparent;padding:8px 4px;font-size:15px}
.image-search{display:flex;align-items:center;gap:6px;margin:0;font-size:12px;font-weight:400}
.image-search input{width:16px;height:16px;min-height:0;margin:0;accent-color:var(--green)}
.image-studio .refine-submit{margin-left:auto}
.image-references{display:flex;flex-wrap:wrap;gap:6px;max-height:96px;overflow-y:auto}
.image-references>span{display:flex;align-items:center;gap:4px;max-width:100%;overflow-wrap:anywhere;padding:4px 8px;background:var(--theme-hover,#edf4f0);border-radius:4px;font-size:12px}
.image-references button{border:0;background:none;color:inherit;width:24px;height:24px;padding:3px;flex-shrink:0}
.image-references .image-reference-open{width:auto;height:auto;min-width:0;flex:1 1 auto;padding:2px 0;overflow-wrap:anywhere;text-align:left;justify-content:flex-start;font-size:12px}
.image-reference-open:hover{text-decoration:underline}
.image-reference-dialog{width:min(960px,calc(100% - 24px));max-height:90dvh;padding:14px;background:var(--theme-surface,#fff);color:inherit}
.image-reference-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.image-reference-heading h2{min-width:0;margin:0;font-size:14px;font-weight:500;overflow-wrap:anywhere}
.image-reference-dialog>img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(90dvh - 100px);margin:auto;object-fit:contain}
.image-result{display:block;width:auto;max-width:100%;height:auto;max-height:620px;object-fit:contain;margin:16px 0 12px;border-radius:4px}
.image-grounding{display:block;width:100%;height:160px;border:0;margin-top:14px}
.image-source{display:block;color:var(--green);font-size:12px;margin-top:8px;overflow-wrap:anywhere}
@media(max-width:650px){.image-options{gap:6px}.image-options label{flex:1 1 calc(50% - 6px)}.image-options label:first-child,.image-options label:last-child{flex-basis:100%}.image-result{max-height:420px}}
@media(max-width:1000px){.image-inspiration{grid-template-columns:minmax(0,1fr);gap:18px}.image-examples{max-width:560px;justify-self:center}}
@media(max-width:650px){.image-inspiration{gap:12px;margin-top:16px}.image-examples{gap:8px}.image-suggestion{font-size:11px;gap:8px}.image-suggestion-preview svg{width:22px;height:22px}.image-settings{padding:12px;max-height:55dvh}}
@media(max-width:650px){.image-inspiration-heading{margin-bottom:10px}.image-inspiration-heading h2{font-size:18px}.image-inspiration-heading p{font-size:13px}}
@media(max-width:650px){.image-other-formats{flex:1 0 100%;max-width:none}#image-other-formats-menu{left:0;right:0;width:100%}}
.image-creation-notes{display:grid;gap:14px;list-style:none;padding:0;margin:22px 0 0;font-size:13px;line-height:1.6}
.image-creation-notes li{display:flex;align-items:flex-start;gap:10px;min-width:0}
.image-creation-notes li>svg{width:18px;height:18px;margin-top:2px;flex:none;color:var(--muted)}
.image-creation-notes small{font-size:12px;color:var(--muted)}
.image-creation-notes a{color:var(--green);text-decoration:none;overflow-wrap:anywhere}
.image-creation-notes a:hover{text-decoration:underline;text-underline-offset:3px}
.image-creation-notes a:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.image-creation-notes a svg{display:inline-block;vertical-align:middle;width:14px;height:14px;margin-left:4px}
.image-example-link{padding:0;border:0;background:transparent;color:var(--green);text-align:left;line-height:1.6;justify-content:flex-start}
.image-example-link img{width:28px;height:34px;object-fit:cover;border-radius:3px;flex:none}
.image-example-link span{min-width:0;overflow-wrap:anywhere}
.image-example-link:hover span{text-decoration:underline;text-underline-offset:3px}
#image-project-library{width:min(850px,calc(100vw - 32px));max-height:90dvh;overflow:auto;box-sizing:border-box}
#image-project-library h2{font-size:18px}
#image-project-library h3{font-size:14px;margin:24px 0 16px}
#image-project-library .clip-media-choice>img{height:auto;aspect-ratio:16/10;object-fit:contain;object-position:center;background:var(--theme-hover,#edf4f0)}
.image-library-loader{display:flex;justify-content:center;padding:20px}
#image-project-library>[data-more]{margin:20px auto 0}
