.prompt-studio{background:var(--workspace)}.workspace-composer{background:var(--card);border:1px solid var(--border);box-shadow:var(--surface-shadow)}.workspace-tool,.workspace-select{border-radius:var(--radius-md);min-height:40px;color:var(--secondary-foreground);white-space:nowrap;background:0 0;justify-content:center;align-items:center;gap:.45rem;padding:0 .65rem;font-size:.8125rem;font-weight:500;display:inline-flex;position:relative}.workspace-tool:hover,.workspace-select:hover,.workspace-select:focus-within{background:var(--secondary);color:var(--foreground)}.prompt-studio :is(button,select,a,summary):focus-visible{outline:1.5px solid var(--muted-foreground);outline-offset:2px}.prompt-studio #generate-prompt:focus-visible{box-shadow:none;outline:none}.workspace-tool:disabled{opacity:.5}.prompt-studio .workspace-select{border:1px solid var(--border);background:var(--card);min-height:34px;box-shadow:none;cursor:pointer}.workspace-tool{cursor:pointer}.workspace-generate{background:var(--primary);color:var(--primary-foreground)}.workspace-generate:hover:enabled{filter:brightness(.94)}.workspace-generate:disabled{background:var(--secondary);color:var(--muted-foreground)}.workspace-collection{z-index:20;left:clamp(0px, var(--mention-left,0px), max(0px, 100% - 20rem));bottom:var(--mention-bottom,100%);width:min(20rem,100%);color:var(--popover-foreground);background:var(--popover);border:1px solid var(--border);transform-origin:0 100%;border-radius:14px;margin-bottom:.55rem;padding:.35rem;position:absolute;box-shadow:0 12px 32px -10px #0000003d}.workspace-picker-scroll{overscroll-behavior:contain;scrollbar-width:thin;max-height:min(31dvh,286px);overflow-y:auto}.workspace-option{text-align:left;cursor:pointer;border-radius:8px;grid-template-columns:auto minmax(0,1fr) 15px;align-items:center;gap:.65rem;width:100%;padding:.35rem .55rem;font-size:.85rem;display:grid}.workspace-option[aria-selected=true]{background:var(--secondary);color:var(--foreground)}.workspace-option svg{color:var(--muted-foreground)}@media (prefers-reduced-motion:no-preference){.workspace-tool,.workspace-select,.workspace-generate{transition:background-color .15s,color .15s,transform .15s}.workspace-tool:active:enabled,.workspace-generate:active:enabled{transform:translateY(1px)}.workspace-collection{animation:.15s cubic-bezier(.2,.75,.25,1) both workspace-picker-in}.workspace-attachment{animation:.16s ease-out both workspace-image-in}.workspace-token{animation:.18s ease-out workspace-token-in}}@keyframes workspace-picker-in{0%{opacity:0;transform:translateY(4px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes workspace-image-in{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@keyframes workspace-token-in{0%{background:var(--border)}to{background:var(--secondary)}}@media (width<=639px){.workspace-tool,.workspace-select{gap:.3rem;min-height:42px;padding:0 .5rem}.workspace-submit-group{flex-basis:100%;justify-content:space-between;margin-top:.25rem}.workspace-generate{min-width:7rem}}.workspace-writing-row{height:clamp(72px, var(--writing-height,100px), 48dvh);align-items:flex-start;gap:12px;padding-right:28px;display:flex}.workspace-sources{background:var(--secondary);scrollbar-width:thin;border-radius:11px;flex-wrap:wrap;gap:4px;max-width:min(35%,264px);max-height:100%;padding:3px;display:flex;overflow:auto}.workspace-add,.workspace-sources .workspace-attachment img{border-radius:7px;width:32px;height:32px}.workspace-add{color:var(--muted-foreground);cursor:pointer;background:0 0;border:0;place-items:center;display:grid}.workspace-add:hover{color:var(--foreground);background:var(--card)}.workspace-clear{width:26px;height:26px;color:var(--muted-foreground);cursor:pointer;border-radius:6px;place-items:center;display:grid;position:absolute;top:28px;right:5px}.workspace-clear:hover{background:var(--secondary)}.workspace-resize{z-index:1;color:var(--muted-foreground);cursor:nesw-resize;touch-action:none;padding:3px;position:absolute;top:5px;right:5px}.workspace-draft{flex:1;min-width:0;height:100%}.workspace-draft .ProseMirror{white-space:break-spaces;overflow-wrap:anywhere;overscroll-behavior:contain;scrollbar-width:thin;height:100%;color:var(--foreground);cursor:text;outline:none;padding-block:6px;font-size:14px;line-height:26px;overflow-y:auto}.workspace-draft [data-empty=true]:before{content:attr(data-placeholder);inset-inline:0;pointer-events:none;color:var(--muted-foreground);position:absolute;top:6px}.workspace-token{vertical-align:middle;background:var(--secondary);height:24px;color:var(--secondary-foreground);white-space:nowrap;border-radius:5px;align-items:center;gap:4px;margin-inline:2px;padding-inline:3px 6px;font-size:12px;display:inline-flex}.workspace-token img{object-fit:cover;border-radius:3px;width:19px;height:19px}@media (width<=639px){.workspace-writing-row{gap:8px}.workspace-sources{max-width:32%}.workspace-draft .ProseMirror{font-size:16px}}.workspace-image-preview{border:1px solid var(--border);background:var(--popover);border-radius:12px;width:fit-content;padding:4px;overflow:hidden;box-shadow:0 8px 28px #0000002e}.workspace-image-preview img{object-fit:contain;border-radius:8px;width:auto;max-width:min(350px,100vw - 32px);height:auto;max-height:min(330px,45dvh);display:block}.workspace-library-tile{aspect-ratio:1;background:var(--secondary);cursor:pointer;border-radius:10px;position:relative;overflow:hidden}.workspace-library-tile[aria-pressed=true]:not([data-attached]):after{content:"";border-radius:inherit;box-shadow:inset 0 0 0 3px var(--primary), inset 0 0 0 5px var(--card);pointer-events:none;position:absolute;inset:0}.workspace-library-check,.workspace-library-attached{z-index:1;color:#fff;justify-content:center;align-items:center;display:inline-flex;position:absolute}.workspace-library-check{background:#0000005c;border:2px solid #fff;border-radius:50%;width:21px;height:21px;top:8px;right:8px;box-shadow:0 1px 3px #00000059}.workspace-library-tile[aria-pressed=true] .workspace-library-check{background:var(--primary);color:var(--primary-foreground)}.workspace-library-attached{background:#000000c4;border-radius:5px;gap:3px;padding:2px 6px;font-size:11px;font-weight:600;bottom:7px;left:7px}.workspace-library-tile:disabled{cursor:default}.workspace-library-tile:disabled[aria-pressed=false]{opacity:.45}.workspace-library-tile[data-attached] img{opacity:.8}.workspace-gallery-bar{justify-content:space-between;align-items:center;padding:12px clamp(12px,2vw,28px);display:flex}.workspace-gallery-bar h2{font-size:1rem;font-weight:600}.workspace-view-switch{background:var(--secondary);border-radius:20px;gap:2px;padding:3px;display:flex}.workspace-view-switch button{border-radius:inherit;color:var(--muted-foreground);cursor:pointer;align-items:center;gap:6px;padding:5px 12px;font-size:13px;display:flex}.workspace-view-switch button[aria-pressed=true]{color:var(--foreground);background:var(--card);box-shadow:var(--surface-shadow)}.workspace-gallery-scroll{overscroll-behavior:contain;flex:1;min-height:0;margin-bottom:12px;padding:0 clamp(12px,2vw,28px) 20px;overflow:auto}.workspace-gallery{grid-template-columns:repeat(auto-fill,minmax(min(100%,208px),1fr));gap:5px;display:grid}.workspace-tile,.workspace-seed{aspect-ratio:1;background:var(--secondary);border-radius:6px;min-width:0;position:relative;overflow:hidden}.workspace-seed{isolation:isolate;color:#fff;align-content:end;width:min(100%,270px);padding:16px;display:grid}.workspace-seed img,.workspace-seed:after{object-fit:cover;z-index:-2;width:100%;height:100%;position:absolute;inset:0}.workspace-seed:after{content:"";z-index:-1;background:linear-gradient(#0000 42%,#000000d1)}.workspace-seed span,.workspace-row-info small{font-size:.75rem}.workspace-seed strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.workspace-gallery-empty,.workspace-card-state{height:100%;color:var(--muted-foreground);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;display:flex}.workspace-card-state{padding:12px;font-size:13px;overflow:auto}.workspace-open,.workspace-open img{object-fit:cover;cursor:zoom-in;width:100%;height:100%;display:block}.workspace-card-actions{pointer-events:none;background:linear-gradient(#0000,#00000080);justify-content:flex-end;gap:4px;padding:20px 6px 6px;display:flex;position:absolute;inset:auto 0 0}.workspace-card-actions button{color:#fff;cursor:pointer;pointer-events:auto;background:#000000b8;border-radius:7px;justify-content:center;align-items:center;gap:6px;min-width:34px;min-height:34px;padding:5px 8px;font-size:12px;display:inline-flex}.workspace-row-info{min-width:0;display:none}.workspace-gallery[data-view=row]{grid-template-columns:1fr}.workspace-gallery[data-view=row] .workspace-result-card{border-bottom:1px solid var(--border);grid-template-columns:clamp(112px,18vw,200px) minmax(0,1fr);align-items:center;gap:16px;padding-block:5px;display:grid}.workspace-gallery[data-view=row] .workspace-row-info{gap:6px;font-size:14px;display:grid}.workspace-row-info p{-webkit-line-clamp:3;overflow-wrap:anywhere;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.workspace-row-info small{color:var(--muted-foreground)}@media (hover:hover){.workspace-card-actions{opacity:0}.workspace-tile:is(:hover,:focus-within) .workspace-card-actions{opacity:1}}@media (width<=639px){.workspace-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-card-actions button{min-width:38px;min-height:38px}.workspace-card-actions span{display:none}}.workspace-mobile-nav,.workspace-mobile-label,.workspace-mobile-only{display:none}.workspace-desktop-header,.workspace-prompt-panel,.workspace-submit-footer{display:contents}.workspace-generation-cost{align-items:center;gap:6px;display:inline-flex}@media (width<=1023px){.prompt-studio{overscroll-behavior:contain;background:var(--background);overflow-y:auto}.workspace-desktop-header{display:none}.workspace-mobile-nav{z-index:20;background:var(--background);flex-shrink:0;justify-content:space-between;align-items:center;width:100%;padding:16px;display:flex;position:sticky;top:0}.workspace-mobile-nav button,.workspace-mobile-back,.workspace-mobile-credit{background:var(--secondary);min-width:44px;min-height:44px;color:var(--foreground);cursor:pointer;border-radius:24px;justify-content:center;align-items:center;gap:8px;padding:10px 12px;font-size:14px;display:inline-flex}.workspace-mobile-header-actions{align-items:center;gap:10px;display:flex}.workspace-mobile-credit{padding-inline:18px;font-size:16px}.prompt-studio[data-mobile-view=compose] .workspace-gallery-bar,.prompt-studio[data-mobile-view=compose] .workspace-gallery-scroll,.prompt-studio[data-mobile-view=results] .workspace-composer{display:none}.prompt-studio .workspace-composer{width:calc(100% - 32px);max-width:640px;margin:0 auto calc(180px + env(safe-area-inset-bottom));box-shadow:none;background:0 0;border:0;padding:0}.workspace-writing-row{flex-direction:column;gap:16px;height:auto;padding:0;display:flex}.workspace-mobile-only{display:inline}.workspace-sources{background:var(--secondary);border-radius:20px;gap:10px;width:100%;max-width:none;max-height:none;padding:14px;overflow:visible}.workspace-sources .workspace-add{width:100%;height:44px;color:var(--foreground);flex-direction:row-reverse;justify-content:space-between;gap:8px;padding:0 6px;display:flex}.workspace-add>svg{box-sizing:content-box;background:var(--background);border-radius:12px;padding:12px}.workspace-add span{align-items:center;gap:10px;font-size:15px;font-weight:500;display:inline-flex}.workspace-sources .workspace-attachment img{border-radius:10px;width:64px;height:64px}.workspace-attachment>span{opacity:1;width:20px;height:20px}.workspace-resize{display:none}.workspace-prompt-panel{background:var(--secondary);border-radius:20px;width:100%;padding:20px 18px 52px;display:block}.workspace-mobile-label{margin-bottom:16px;font-size:14px;font-weight:600;display:block}.workspace-draft{flex:none;width:100%;height:clamp(180px,25svh,260px)}.workspace-draft .ProseMirror{padding:0;font-size:17px;line-height:1.75}.workspace-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:14px;display:grid;position:relative}.workspace-toolbar>[data-testid=workspace-mention],.workspace-clear{width:40px;height:40px;min-height:40px;color:var(--muted-foreground);background:var(--background);border-radius:12px;position:absolute;top:-48px;left:56px}.workspace-clear{left:12px;right:auto}.prompt-studio .workspace-select{background:var(--secondary);white-space:normal;text-align:left;border:0;border-radius:16px;flex-wrap:wrap;place-content:center flex-start;gap:6px;width:100%;height:auto;min-height:76px;padding:12px 14px;font-size:16px;display:flex}.workspace-select>.workspace-mobile-only{color:var(--muted-foreground);flex-basis:100%;font-size:12px}.workspace-select[data-testid=workspace-model]{order:2;grid-column:1/-1;justify-content:center;justify-self:center;width:auto;max-width:100%;min-height:48px;margin-top:8px}.workspace-select[data-testid=workspace-model]>.workspace-mobile-only{display:none}.workspace-submit-footer{z-index:25;width:min(640px,100% - 32px);padding:12px 0 max(16px, env(safe-area-inset-bottom));background:var(--background);box-shadow:0 0 0 16px var(--background);flex-direction:column;align-items:center;gap:14px;margin:0 auto;display:flex;position:fixed;bottom:0;left:0;right:0}.workspace-submit-footer>.workspace-select[data-testid=workspace-model]{order:0;margin:0}.workspace-submit-group{order:3;grid-column:1/-1;width:100%;margin-top:4px}.workspace-generate{background:var(--foreground);width:100%;min-height:56px;color:var(--background);border-radius:18px;gap:12px;font-size:17px}.workspace-gallery-scroll{flex:none;overflow:visible}.workspace-gallery-bar{flex-shrink:0}.workspace-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-card-actions{opacity:1}.workspace-card-actions button{min-width:44px;min-height:44px}.workspace-card-actions span{display:none}}@media (width>=768px) and (width<=1023px){.workspace-submit-footer{width:min(640px,100% - 96px);left:64px}}@media (width<=1023px) and (height<=500px){.workspace-submit-footer{width:100%;box-shadow:none;margin:16px 0 0;position:static}.prompt-studio .workspace-composer{margin-bottom:max(16px, env(safe-area-inset-bottom))}}@media (width>=1024px){.workspace-controls{flex-wrap:wrap;align-items:center;gap:6px;padding-top:4px;display:flex}.workspace-toolbar{display:contents}.workspace-select[data-testid=workspace-model]{order:-1}}@media (width<=1023px){.workspace-toolbar:not(:has(.workspace-clear))>[data-testid=workspace-mention]{left:12px}}.ProseMirror{word-wrap:break-word;white-space:pre-wrap;white-space:break-spaces;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;font-feature-settings:"liga" 0;position:relative}.ProseMirror pre{white-space:pre-wrap}.ProseMirror li{position:relative}.ProseMirror-hideselection ::selection{background:0 0}.ProseMirror-hideselection ::selection{background:0 0}.ProseMirror-hideselection{caret-color:#0000}.ProseMirror [draggable][contenteditable=false]{-webkit-user-select:text;user-select:text}.ProseMirror-selectednode{outline:2px solid #8cf}li.ProseMirror-selectednode{outline:none}li.ProseMirror-selectednode:after{content:"";pointer-events:none;border:2px solid #8cf;position:absolute;inset:-2px -2px -2px -32px}img.ProseMirror-separator{border:none!important;margin:0!important;display:inline!important}
