.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}}.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}
