
#create-dialog{color-scheme:dark;--pb-bg:#202129;--pb-field:#292b35;--pb-text:#edf0f7;--pb-muted:#adb5ca;--pb-line:#404450;--pb-accent:#b7c2ff;--pb-tint:#333a55;--pb-button:#b7c2ff;--pb-on:#20263e;--pb-error:#ffa8a8;font-family:inherit;font-size:14px;line-height:1.5;color:var(--pb-text);max-width:600px;margin:auto}
#create-dialog *{box-sizing:border-box}#create-dialog [hidden]{display:none!important}#create-dialog button,#create-dialog input,#create-dialog textarea,#create-dialog select{font:inherit}#create-dialog button{cursor:pointer;touch-action:manipulation}#create-dialog button:disabled{opacity:.5;cursor:default}#create-dialog svg{width:18px;height:18px;flex-shrink:0}
#create-dialog .pc-window{border:1px solid var(--pb-line);border-radius:22px;background:var(--pb-bg);overflow:hidden}#create-dialog .pc-head{padding:26px 28px 0;display:flex;align-items:center;gap:12px}#create-dialog .pc-brand{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--pb-tint);color:var(--pb-accent)}#create-dialog h2{font-weight:500;margin:0}#create-dialog .pc-head small{color:var(--pb-muted)}
#create-dialog .pc-form{padding:22px 28px 24px;display:flex;flex-direction:column;gap:20px}#create-dialog .pc-modes{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:var(--pb-tint);border-radius:12px}#create-dialog .pc-modes button{background:transparent;border:0;color:var(--pb-muted);border-radius:9px;padding:10px 6px}#create-dialog .pc-modes [aria-pressed=true]{background:var(--pb-field);color:var(--pb-accent)}#create-dialog label.pc-label{display:block;margin-bottom:8px;font-weight:500}#create-dialog .pc-field{width:100%;min-width:0;border:1px solid var(--pb-line);background:var(--pb-field);color:var(--pb-text);padding:12px;border-radius:11px}#create-dialog input,#create-dialog textarea,#create-dialog select{font-size:16px}#create-dialog textarea{resize:vertical}#create-dialog .pc-title{padding:13px 14px}#create-dialog .pc-link{padding:8px 0;background:transparent;border:0;color:var(--pb-accent);min-height:40px}#create-dialog .pc-story-toggle{margin-top:2px;color:var(--pb-muted)}
#create-dialog .pc-style{border:1px solid var(--pb-line);border-radius:12px;background:var(--pb-field)}#create-dialog .pc-style-row{width:100%;display:flex;align-items:center;gap:10px;min-height:54px;padding:11px 14px;text-align:left;border:0;background:transparent;color:var(--pb-text)}#create-dialog .pc-style-label{font-weight:500;white-space:nowrap}#create-dialog .pc-style-value{margin-left:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--pb-accent)}#create-dialog .pc-style-row svg{color:var(--pb-muted)}#create-dialog .pc-style-row[aria-expanded=true]>.pc-chevron{transform:rotate(180deg)}#create-dialog .pc-mini{width:28px;height:28px;object-fit:cover;border-radius:7px;flex-shrink:0;margin-left:auto}#create-dialog .pc-mini:not([hidden])+.pc-style-value{margin-left:0}
#create-dialog .pc-style-body{padding:0 12px 12px}#create-dialog .pc-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}#create-dialog .pc-preset{padding:10px 5px;min-height:44px;background:var(--pb-bg);border:1px solid var(--pb-line);border-radius:9px;color:var(--pb-text)}#create-dialog .pc-preset[aria-pressed=true]{border-color:var(--pb-accent);background:var(--pb-tint);color:var(--pb-accent)}#create-dialog .pc-upload{display:flex;align-items:center;gap:12px;width:100%;border:1px dashed var(--pb-line);border-radius:10px;padding:13px;margin-top:10px;text-align:left;background:var(--pb-bg);color:var(--pb-accent)}#create-dialog .pc-upload span{display:flex;flex-direction:column;gap:3px}#create-dialog .pc-upload small{color:var(--pb-muted)}#create-dialog .pc-upload strong{font-weight:500}#create-dialog .pc-tools{display:flex;justify-content:space-between;gap:12px}#create-dialog .pc-reference{display:flex;gap:12px;align-items:center;margin-top:12px;padding:12px;background:var(--pb-bg);border-radius:10px}#create-dialog .pc-reference>img{width:72px;height:72px;object-fit:cover;border-radius:8px}#create-dialog .pc-reference-info{flex:1;min-width:0}#create-dialog .pc-filename{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}#create-dialog .pc-reference small{display:block;color:var(--pb-muted);margin-top:4px}#create-dialog .pc-ref-actions{display:flex;gap:18px}#create-dialog .pc-ref-actions button{min-height:32px;padding:4px 0}#create-dialog .pc-editor{margin-top:10px}#create-dialog .pc-editor-actions{display:flex;justify-content:flex-end;gap:16px;margin-top:8px}#create-dialog .pc-helper{color:var(--pb-muted);margin:5px 0 0}#create-dialog .pc-error{color:var(--pb-error);margin:8px 0 0}
#create-dialog .pc-specs{display:grid;grid-template-columns:1.15fr 1fr;gap:18px}#create-dialog .pc-ratios{display:flex;border:1px solid var(--pb-line);border-radius:11px;padding:3px;background:var(--pb-field);gap:4px}#create-dialog .pc-ratios button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 4px;border:0;border-radius:8px;background:transparent;color:var(--pb-muted)}#create-dialog .pc-ratios [aria-pressed=true]{background:var(--pb-tint);color:var(--pb-accent)}#create-dialog .pc-shape{display:block;border:1.5px solid currentColor;border-radius:2px;flex-shrink:0}#create-dialog .pc-portrait{width:12px;height:18px}#create-dialog .pc-landscape{width:18px;height:12px}#create-dialog .pc-duration{min-height:48px}#create-dialog .pc-custom-time{margin-top:10px}
#create-dialog .pc-footer{padding:17px 28px;border-top:1px solid var(--pb-line);display:flex;align-items:center;gap:14px;justify-content:space-between;background:var(--pb-field)}#create-dialog .pc-summary{color:var(--pb-muted)}#create-dialog .pc-primary{background:var(--pb-button);color:var(--pb-on);padding:11px 18px;min-height:44px;border:0;border-radius:10px;white-space:nowrap}#create-dialog .pc-result{margin:0;padding:0 28px 18px;background:var(--pb-field);color:var(--pb-accent)}
@media(max-width:420px){#create-dialog .pc-head{padding:20px 18px 0}#create-dialog .pc-form{padding:20px 18px;gap:18px}#create-dialog .pc-specs{grid-template-columns:1fr;gap:16px}#create-dialog .pc-footer{padding:16px 18px}#create-dialog .pc-result{padding:0 18px 16px}#create-dialog .pc-presets{grid-template-columns:repeat(2,minmax(0,1fr))}}
#create-dialog .pc-window{background:var(--pb-bg);border-radius:20px}
#create-dialog .pc-upload{position:relative;cursor:pointer}
#create-dialog .pc-upload:focus-within{outline:2px solid var(--pb-accent);outline-offset:2px}
#create-dialog #pc-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#create-dialog .pc-head{padding:28px 32px 0;display:block}
#create-dialog .pc-eyebrow{display:flex;align-items:center;gap:8px;color:var(--pb-muted);margin-bottom:16px;font-size:12px;letter-spacing:1px}
#create-dialog .pc-eyebrow b{font-weight:500;color:var(--pb-text);letter-spacing:0}
#create-dialog .pc-dot{width:5px;height:5px;border-radius:50%;background:var(--brand-pink,#e84fb7);margin-right:3px}
#create-dialog .pc-head h2{font-size:26px;line-height:1.35;letter-spacing:-.02em;font-weight:600}
#create-dialog .pc-head h2 span{color:var(--pb-accent)}
#create-dialog .pc-head p{color:var(--pb-muted);font-size:14px;margin:8px 0 0}
#create-dialog .pc-form{padding:22px 32px 24px;gap:20px}
#create-dialog .pc-modes{display:flex;gap:24px;padding:0;border-radius:0;background:transparent;border-bottom:1px solid var(--pb-line)}
#create-dialog .pc-modes button{padding:10px 0 12px;border-radius:0;border-bottom:2px solid transparent;min-height:44px}
#create-dialog .pc-modes [aria-pressed=true]{background:transparent;border-bottom-color:var(--pb-accent)}
#create-dialog .pc-title{font-size:16px;line-height:1.5;border-width:0 0 1px;border-radius:0;background:transparent;padding:8px 0 12px}
#create-dialog .pc-style{background:var(--pb-field)}
#create-dialog .pc-specs{gap:24px}
#create-dialog .pc-specs{grid-template-columns:1.8fr 1fr;gap:16px}
#create-dialog .pc-duo{width:20px;height:14.067px;position:relative}
#create-dialog .pc-duo:after{content:"";position:absolute;left:50%;top:0;bottom:0;border-left:1px solid currentColor;opacity:.45}
#create-dialog .pc-aspect-note{margin:7px 0 0;color:var(--pb-muted)}
#create-dialog .pc-footer{padding:0 32px 28px;background:transparent;border:0;align-items:stretch;flex-direction:column;gap:10px}
#create-dialog .pc-summary{order:2;text-align:center}
#create-dialog .pc-create{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px}
#create-dialog .pc-result{background:transparent}
@media(max-width:420px){#create-dialog .pc-head{padding:22px 20px 0}#create-dialog .pc-head h2{font-size:24px}#create-dialog .pc-form{padding:20px;gap:18px}#create-dialog .pc-footer{padding:0 20px 20px}#create-dialog .pc-eyebrow{margin-bottom:12px}#create-dialog .pc-specs{grid-template-columns:1fr 1fr;gap:12px}#create-dialog .pc-ratios button{gap:5px}}
@media(max-width:520px){#create-dialog .pc-specs{grid-template-columns:1fr;gap:14px}#create-dialog .pc-specs>div{display:grid;grid-template-columns:1fr 140px;align-items:center;gap:10px}#create-dialog .pc-specs>div>label{margin:0}#create-dialog .pc-custom-time{grid-column:1/-1;margin-top:0}}

#create-dialog{width:calc(100% - 32px);max-width:600px;padding:0;border:1px solid var(--pb-line);border-radius:20px;background:var(--pb-bg);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;scrollbar-width:none}
#create-dialog::-webkit-scrollbar{display:none}#create-dialog .pc-window{border:0}#create-dialog .pc-head{position:relative;padding-right:66px}#close-create-dialog{position:absolute;top:16px;right:16px;width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:var(--pb-muted)}
#create-dialog input:focus,#create-dialog textarea:focus,#create-dialog select:focus{outline:2px solid var(--pb-accent);outline-offset:3px}#create-dialog .pc-title:focus{outline:none;border-bottom-color:var(--pb-accent)}#create-dialog button:focus-visible{outline:2px solid var(--pb-accent);outline-offset:3px}
#create-dialog p{line-height:1.6}#create-dialog .pc-form{display:flex}#create-dialog .pc-field{box-shadow:none}#create-dialog .pc-label{font-size:13px}#create-dialog .pc-error{font-size:14px}#create-dialog #create-production-form{display:block;margin:0}#create-dialog .pc-create{box-shadow:none;font-size:15px;font-weight:600}#create-dialog .pc-reference-info small{font-size:12px}#create-dialog .pc-style-value{font-size:14px}
html[data-theme="dark"] #create-dialog{color-scheme:dark}
@media(max-height:700px) and (min-width:521px){#create-dialog .pc-head{padding-top:20px}#create-dialog .pc-head h2{font-size:24px}#create-dialog .pc-form{padding-top:14px;gap:16px}#create-dialog .pc-eyebrow{margin-bottom:10px}}
@media(max-height:700px) and (min-width:521px){#create-dialog .pc-head h2{font-size:24px;line-height:1.3}#create-dialog .pc-head p{font-size:14px;margin-top:6px}#create-dialog .pc-form{gap:12px;padding:12px 32px 16px}#create-dialog .pc-title{padding:4px 0 8px}#create-dialog .pc-story-toggle{min-height:32px;padding:5px 0}#create-dialog .pc-modes button{min-height:38px;padding:8px 0}#create-dialog .pc-footer{padding-bottom:18px}#create-dialog .pc-label{margin-bottom:6px}}

#create-dialog .pc-modes button{font-weight:500}#create-dialog .pc-summary,#create-dialog .pc-helper{font-size:12px}#create-dialog .pc-story-toggle{font-size:13px}#create-dialog .pc-title::placeholder{font-size:16px;font-weight:400;color:var(--pb-muted);opacity:1}

#create-dialog .pc-title-shell { position:relative; }
#create-dialog .pc-title-hint { position:absolute; top:8px; left:0; right:auto; width:max-content; max-width:100%; pointer-events:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:16px; font-weight:400; line-height:24px; }
#create-dialog .pb-text-working { --pb-sheen-base:#adb5ca; --pb-sheen-light:#edf0f7; }
@media(max-height:700px) and (min-width:521px) { #create-dialog .pc-title-hint { top:4px; } }

#create-dialog .pc-head h2 .pc-title-comma { color:var(--brand-pink,#e84fb7); }

#create-dialog #production-description-field { margin-top:14px; }

#create-dialog .pc-title-hint { animation-duration:3.5s; }

@media (prefers-reduced-motion:no-preference) {
    @supports ((background-clip:text) or (-webkit-background-clip:text)) {
        #create-dialog .pc-title-hint { background-image:linear-gradient(105deg,var(--pb-sheen-base) 44%,var(--pb-sheen-light) 50%,var(--pb-sheen-base) 56%); background-size:200% 100%; }
    }
}

#create-dialog .pc-camera-option { display:flex; align-items:center; gap:8px; min-height:36px; padding:6px 0; margin:6px 0 0; color:var(--pb-muted); cursor:pointer; width:fit-content; }
#create-dialog .pc-camera-option input { width:14px; height:14px; margin:0; accent-color:var(--pb-accent); flex:none; }
#create-dialog .pc-camera-option span { font-size:12px; line-height:1.5; }
#create-dialog .pc-camera-option small { font-size:11px; opacity:.75; margin-left:2px; }
