/* Suite light palette. Photographic tool cards retain their image overlays. */
:root[data-theme=light]{--paper:#f6f4f9;--ink:#292333;--text:#292333;--muted:#71677e;--accent:#7653b5;--orange:#7653b5;--surface:#fff;--raised:#fff;--subtle:#f1edf6;--ring:#7653b512;--line:#47345e20;--glass:#ffffffed}
:root[data-theme=light] #accountBody,:root[data-theme=light] .suite-library{--ink:#292333;--text:#292333;--muted:#71677e;--accent:#7653b5;--surface:#fff;--raised:#fff;--subtle:#f1edf6;--ring:#7653b512;--line:#47345e20}
:root[data-theme=light] .sidebar{background:#faf9fc}
:root[data-theme=light] main>header{background:linear-gradient(115deg,#fff,#f5f1fa)}
:root[data-theme=light] .profile-popover{background:#fff;color:var(--ink);border-color:var(--line);box-shadow:0 18px 48px #3020401a}
:root[data-theme=light] .profile-popover small{color:var(--muted)}
:root[data-theme=light] .profile-wallet{border-color:var(--line)}
:root[data-theme=light] .profile-wallet progress,:root[data-theme=light] .profile-wallet progress::-webkit-progress-bar{background:#e8e1ef}
:root[data-theme=light] .profile-wallet progress::-webkit-progress-value{background:var(--accent)}
:root[data-theme=light] .profile-wallet progress::-moz-progress-bar{background:var(--accent)}
:root[data-theme=light] .suite-library #creationsPage{background:#fff;border-color:var(--line)}
:root[data-theme=light] main .suite-library :is(.creation-order,.project-library-card,.creation-dates,.creation-section-switch){background:#f7f5fa;border-color:var(--line);box-shadow:none}
:root[data-theme=light] main .suite-library :is(button,input,.order-project-menu,.creation-action-menu){background:#fff;color:var(--ink);border-color:var(--line);box-shadow:none}
:root[data-theme=light] main .suite-library button:not(:disabled):hover{background:#f0eaf7;border-color:#7653b540}
:root[data-theme=light] main .suite-library :is(button[aria-pressed=true],button[aria-selected=true]){background:#e8def6;color:#59368f;border-color:#7653b550}
:root[data-theme=light] .suite-library :is(.order-placeholder,.project-folder,.order-project-badge){background:#eee7f6;color:#7653b5}
:root[data-theme=light] .suite-library :is(.order-viewport,.order-viewbar){background:#f1edf6;border-color:var(--line)}
:root[data-theme=light] .suite-library .order-project-menu,:root[data-theme=light] .suite-library .creation-action-menu{box-shadow:0 12px 32px #30204020}
:root[data-theme=light] #accountBody .store-cta{color:#fff;background:#7653b5}
:root[data-theme=light] #accountBody .price-badge{color:#59368f;background:#e8def6}
:root[data-theme=light] :is(.profile-settings,.projectdialog){background:#fff;color:var(--ink);border-color:var(--line)}

.result-next-actions{margin:14px 0;padding:12px;border:1px solid var(--line,#ffffff18);border-radius:12px;font-size:12px}.result-next-actions summary{cursor:pointer;font-weight:600}.result-next-actions>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;margin-top:12px}.result-next-actions button{text-align:left;padding:12px}.result-next-actions strong,.result-next-actions small{display:block}.result-next-actions small{margin-top:5px;opacity:.7;line-height:1.4}.creation-card .result-next-actions>div{grid-template-columns:1fr}

.avatar-crop{margin:16px 0}.avatar-crop[hidden]{display:none}.avatar-crop-frame{width:min(100%,280px);aspect-ratio:1;border-radius:50%;overflow:hidden;margin:0 auto 16px;border:2px solid var(--ring,#b4a0ec)}.avatar-crop canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.avatar-crop canvas:active{cursor:grabbing}.avatar-crop input[type=range]{width:100%;min-height:44px;accent-color:var(--accent,#b4a0ec)}.profile-settings{max-height:90dvh;overflow:auto}.avatar-crop .note{font-size:12px;line-height:1.5}

.viewer-heading .result-next-actions{position:relative;margin:0;padding:0;border:0;flex:none}.viewer-heading .result-next-actions summary{list-style:none;display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line,#ffffff18);border-radius:10px;font-size:24px;line-height:1}.viewer-heading .result-next-actions summary::-webkit-details-marker{display:none}.viewer-heading .result-next-actions>div{position:absolute;right:0;top:44px;z-index:20;width:250px;display:grid;grid-template-columns:1fr;margin:0;padding:6px;border:1px solid var(--line,#ffffff18);border-radius:12px;background:var(--panel,#211e29);box-shadow:0 12px 30px #0004}.viewer-heading .result-next-actions button{border:0;border-radius:8px;background:transparent}.viewer-heading .result-next-actions button:hover{background:#b4a0ec18}

/* Photo-only result cards: stacked actions over the image. */
.creation-card>button{border-radius:12px;overflow:hidden}.creation-card>button>strong{display:none}.creation-card>.creation-download{top:48px;right:8px;bottom:auto;width:32px;height:32px;border-radius:50%;background:#211d29e8;color:#fff;border:1px solid #ffffff30;box-shadow:0 3px 12px #0004;z-index:3}.creation-card>.creation-download:hover{background:#393043;color:#fff}.creation-card>.creation-download svg{width:18px;height:18px}.creation-card .creation-actions{top:8px;right:8px}

.creation-card>button>.creation-caption{display:block;height:54px;min-height:54px;padding:12px;font-size:12px;font-weight:400;line-height:16px;overflow:hidden}.creation-card>.creation-download{top:auto;bottom:62px;right:8px}

.profile-photo-settings{padding:20px;max-height:calc(100dvh - 32px)}.profile-photo-settings h2{font-size:18px;margin:0 28px 10px 0}.profile-photo-settings label{margin:10px 0;gap:5px;font-size:12px}.profile-photo-settings p{font-size:11px;line-height:1.4;margin:8px 0}.profile-photo-settings .avatar-crop{margin:10px 0}.profile-photo-settings .avatar-crop-frame{width:min(100%,180px);margin-bottom:8px}.profile-photo-settings .avatar-crop input[type=range]{min-height:28px;padding:0}.profile-photo-settings .avatar-crop .textbutton{padding:6px 0;font-size:12px}.profile-photo-settings .note{padding:0;background:none}.profile-photo-settings #saveIdentity{width:100%;margin-top:10px}

/* Keep wrapped captions separate from the image download control. */
.creation-card>button>.creation-caption{display:block;box-sizing:border-box;height:72px;min-height:72px;padding:12px 14px;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:16px;font-size:12px;font-weight:400;text-align:left;overflow:hidden;-webkit-line-clamp:unset}.creation-card>.creation-download{top:auto;bottom:80px;right:8px;margin:0}
