.photo-workspace{max-width:1240px;margin:0 auto;padding-bottom:64px}.photo-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:28px;display:flex}.photo-heading-title{align-items:center;gap:14px;min-width:0;display:flex}.photo-heading-icon{border:1px solid var(--lightningcss-light,var(--border))var(--lightningcss-dark,#71dab72b);background:var(--lightningcss-light,var(--accent))var(--lightningcss-dark,#71dab712);width:52px;height:52px;color:var(--primary);border-radius:16px;flex:none;place-items:center;display:grid}.photo-heading h1{font-size:clamp(23px,3vw,32px);font-weight:650;line-height:1.65}.photo-heading p{color:var(--muted-foreground);margin-top:3px;font-size:13px;line-height:1.9}.photo-layout{grid-template-columns:minmax(280px,370px) minmax(0,1fr);align-items:start;gap:24px;display:grid}.photo-controls,.photo-preview{border:1px solid var(--border);background:var(--card);border-radius:20px;min-width:0}.photo-controls{flex-direction:column;gap:22px;padding:22px;display:flex}.photo-model{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding-bottom:17px;font-size:13px;display:flex}.photo-model>span:first-child{align-items:center;gap:8px;display:flex}.photo-model svg{color:var(--primary)}.photo-connection{color:var(--muted-foreground);align-items:center;gap:6px;font-size:13px;line-height:1.8;display:inline-flex}.photo-connection i{background:var(--muted-foreground);border-radius:50%;width:6px;height:6px}.photo-connection[data-ready=true] i{background:var(--primary);box-shadow:0 0 0 3px #71dab710}.photo-field{border:0;flex-direction:column;gap:10px;min-width:0;margin:0;padding:0;display:flex}.photo-field label,.photo-field legend{font-size:13px;font-weight:550;line-height:1.9}.photo-field legend{margin-bottom:10px}.photo-field textarea{resize:vertical;border:1px solid var(--input);background:var(--background);width:100%;min-height:164px;color:var(--foreground);font:inherit;border-radius:12px;outline:none;padding:13px;font-size:15px;line-height:1.9;display:block}.photo-field textarea:focus{border-color:var(--primary);box-shadow:0 0 0 2px #71dab714}.photo-field textarea::placeholder{color:var(--muted-foreground);opacity:.7}.photo-counter{color:var(--muted-foreground);align-self:flex-end;margin-top:-5px;font-size:13px}.photo-label-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.photo-label-row>span{color:var(--muted-foreground);font-size:13px;line-height:1.8}.photo-upload{border:1px dashed var(--lightningcss-light,color-mix(in srgb,var(--primary) 45%,var(--border)))var(--lightningcss-dark,#71dab74d);background:var(--lightningcss-light,var(--accent))var(--lightningcss-dark,#71dab706);width:100%;min-height:72px;color:var(--primary);text-align:left;cursor:pointer;border-radius:12px;justify-content:center;align-items:center;gap:12px;font-size:13px;line-height:1.8;display:flex}.photo-upload small{color:var(--muted-foreground);letter-spacing:.03em;font-size:13px;display:block}.photo-upload:disabled{cursor:default;opacity:.5}.photo-references{flex-wrap:wrap;gap:10px;display:flex}.photo-reference{width:80px;height:80px;position:relative}.photo-reference img{object-fit:cover;border:1px solid var(--border);border-radius:10px;width:100%;height:100%}.photo-reference button{border:1px solid var(--border);width:25px;height:25px;color:var(--lightningcss-light,var(--foreground))var(--lightningcss-dark,#fff);background:var(--lightningcss-light,color-mix(in srgb,var(--card) 91%,transparent))var(--lightningcss-dark,#17171de8);cursor:pointer;border-radius:50%;place-items:center;display:grid;position:absolute;top:-5px;right:-5px}.photo-ratios{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.photo-ratios button{border:1px solid var(--border);background:var(--background);cursor:pointer;border-radius:11px;justify-content:center;align-items:center;gap:8px;min-height:48px;font-size:13px;display:flex}.photo-ratios button[aria-pressed=true]{color:var(--primary);border-color:var(--lightningcss-light,color-mix(in srgb,var(--primary) 45%,var(--border)))var(--lightningcss-dark,#71dab78c);background:var(--lightningcss-light,var(--accent))var(--lightningcss-dark,#71dab70a)}.photo-ratio-icon{opacity:.8;border:1.3px solid;border-radius:3px;min-width:10px;max-width:30px;height:18px;display:block}.photo-size{color:var(--muted-foreground);font-size:13px}.photo-generate{width:100%;min-height:49px;font-size:14px;border-radius:12px!important}.photo-cost{text-align:center;color:var(--muted-foreground);margin-top:-13px;font-size:13px}.photo-offline{color:var(--muted-foreground);margin-top:-10px;font-size:13px;line-height:1.9}.photo-offline a{color:var(--primary);align-items:center;gap:4px;margin-left:8px;display:inline-flex}.photo-error{border:1px solid var(--lightningcss-light,var(--border))var(--lightningcss-dark,#ff5e622b);overflow-wrap:anywhere;color:var(--lightningcss-light,#b93649)var(--lightningcss-dark,#ffb4b6);background:var(--lightningcss-light,#fff0f1)var(--lightningcss-dark,#ff5e620a);border-radius:10px;padding:12px;font-size:13px;line-height:1.9}.photo-output{flex-direction:column;gap:28px;min-width:0;display:flex}.photo-preview{scroll-margin-top:20px;overflow:hidden}.photo-preview-heading{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:17px 20px;display:flex}.photo-preview-heading h2,.photo-history-heading h2{font-size:14px;font-weight:600;line-height:1.9}.photo-job-status{color:var(--primary);font-size:13px}.photo-stage{background:radial-gradient(ellipse at center,var(--lightningcss-light,var(--accent))var(--lightningcss-dark,#71dab706) 0%,transparent 70%),#19191e70;place-items:center;min-width:0;min-height:400px;padding:20px;display:grid}.photo-placeholder{text-align:center;max-width:300px;color:var(--muted-foreground);flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:30px 5px;display:flex}.photo-placeholder>svg{color:var(--lightningcss-light,var(--primary))var(--lightningcss-dark,#71dab77a);margin-bottom:5px}.photo-placeholder h3{color:var(--foreground);font-size:16px;font-weight:500;line-height:1.9}.photo-placeholder p{overflow-wrap:anywhere;font-size:13px;line-height:1.9}.photo-result{object-fit:contain;border-radius:9px;width:auto;max-width:100%;height:auto;max-height:72vh;display:block}.photo-result-details{border-top:1px solid var(--border);padding:17px 20px}.photo-result-details>p{color:var(--muted-foreground);white-space:pre-wrap;overflow-wrap:anywhere;max-height:110px;margin-bottom:14px;font-size:13px;line-height:1.9;overflow:auto}.photo-result-details>div{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.photo-result-details>div>span{color:var(--muted-foreground);font-size:13px}.photo-result-actions{flex-wrap:wrap;gap:6px;display:flex}.photo-result-actions button{font-size:13px}.photo-history-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px;display:flex}.photo-history-heading>span{color:var(--muted-foreground);font-size:13px}.photo-history-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;display:grid}.photo-history-item{border:1px solid var(--border);background:var(--card);cursor:pointer;text-align:left;border-radius:12px;flex-direction:column;min-width:0;padding:0;display:flex;overflow:hidden}.photo-history-item[aria-pressed=true]{border-color:var(--primary);box-shadow:0 0 0 2px #71dab710}.photo-history-item>img,.photo-history-item>span:first-child{aspect-ratio:1;object-fit:cover;width:100%}.photo-history-item>span:first-child{color:var(--primary);place-items:center;display:grid}.photo-history-caption{color:var(--muted-foreground);justify-content:space-between;align-items:center;gap:6px;padding:9px 10px;font-size:13px;line-height:1.8;display:flex}.photo-history-caption time{font-size:13px}.photo-page button:focus-visible{outline:2px solid var(--primary);outline-offset:3px}@media (max-width:800px){.photo-layout{grid-template-columns:1fr;gap:22px}.photo-controls{gap:20px;padding:20px}.photo-heading{margin-bottom:22px}.photo-heading-icon{border-radius:13px;width:44px;height:44px}.photo-stage{min-height:300px;padding:14px}.photo-history-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.photo-result{max-height:65vh}.photo-history-caption{flex-direction:column;align-items:flex-start;gap:0}.photo-workspace{padding-bottom:40px}.photo-heading p{font-size:13px}}@media (max-width:380px){.photo-controls{padding:16px}.photo-label-row{flex-direction:column;align-items:flex-start;gap:3px}.photo-heading-icon{display:none}.photo-ratios button{gap:6px}.photo-history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (prefers-reduced-motion:reduce){.photo-page .animate-spin{animation:none}}.photo-field>label,.photo-label-row label,.photo-field legend{font-size:14px;line-height:1.9}.photo-history-caption{flex-direction:column;align-items:flex-start;gap:2px}.photo-history-caption strong{-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.8;display:-webkit-box;overflow:hidden}.photo-provider{border:0;min-width:0;margin:0;padding:0}.photo-provider legend{margin-bottom:10px;font-size:13px;font-weight:550;line-height:1.9}.photo-provider>div{grid-template-columns:1fr 1fr;gap:8px;display:grid}.photo-provider button{border:1px solid var(--border);background:var(--background);cursor:pointer;border-radius:11px;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:57px;padding:8px;font-size:13px;display:flex}.photo-provider button[aria-pressed=true]{color:var(--primary);border-color:var(--lightningcss-light,color-mix(in srgb,var(--primary) 45%,var(--border)))var(--lightningcss-dark,#71dab78c);background:var(--lightningcss-light,var(--accent))var(--lightningcss-dark,#71dab70a)}.photo-provider button:disabled{opacity:.6;cursor:default}.photo-provider button small{color:var(--muted-foreground);font-size:11px;line-height:1.5}.photo-flow-connection{border:1px solid var(--border);background:var(--background);border-radius:12px;flex-direction:column;gap:12px;min-width:0;margin-top:-8px;padding:15px;font-size:13px;line-height:1.9;display:flex}.photo-flow-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.photo-flow-heading b{font-weight:550}.photo-experimental{border:1px solid var(--border);color:var(--muted-foreground);border-radius:20px;padding:2px 7px;font-size:11px;line-height:1.7}.photo-flow-connection p{color:var(--muted-foreground)}.photo-flow-state{align-items:flex-start;gap:8px;display:flex}.photo-flow-state>i{background:var(--muted-foreground);border-radius:50%;flex:none;width:6px;height:6px;margin-top:9px}.photo-flow-state[data-ready=true]>i{background:var(--primary)}.photo-flow-state small{color:var(--muted-foreground);overflow-wrap:anywhere;font-size:12px;display:block}.photo-flow-actions{flex-wrap:wrap;gap:6px;display:flex}.photo-flow-actions button{white-space:normal;height:auto;min-height:34px;font-size:12px}.photo-flow-link{width:fit-content;color:var(--primary);text-underline-offset:3px;align-items:center;gap:6px;text-decoration:underline;display:inline-flex}.photo-flow-setup{border-top:1px solid var(--border);padding-top:10px}.photo-flow-setup summary{cursor:pointer;color:var(--muted-foreground)}.photo-flow-setup[open] summary{margin-bottom:10px}.photo-flow-setup p{margin-top:8px}.photo-flow-pair{border:1px solid var(--border);border-radius:9px;flex-direction:column;gap:7px;padding:12px;display:flex}.photo-flow-pair>div{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.photo-flow-pair code{letter-spacing:.09em;color:var(--foreground);-webkit-user-select:all;user-select:all;overflow-wrap:anywhere;font-size:19px;font-weight:600}.photo-flow-pair small{color:var(--muted-foreground);font-size:12px}.photo-flow-privacy{font-size:12px}.photo-flow-connection .photo-error{color:var(--lightningcss-light,#b93649)var(--lightningcss-dark,#ffb4b6)}
