/* A single product workspace: garment, scene and saved product data. */
.editor-heading .editor-back{font-size:12px;color:var(--muted);display:block;margin-bottom:9px}
.editor-heading h1{font-size:36px;margin-bottom:10px}.editor-heading p{font-size:14px;margin:0;color:var(--muted)}.editor-heading .badge{margin-left:12px}
.product-form.product-workspace{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:22px;align-items:start}
.product-workspace>.panel{margin:0;padding:24px;border-radius:14px}
.product-workspace .editor-media{grid-column:1;grid-row:1}.product-workspace .editor-data{grid-column:1;grid-row:2}.product-workspace .editor-stock{grid-column:1;grid-row:3}
.product-workspace .product-studio{grid-column:2;grid-row:1/span 3;background:var(--white)}
.editor-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.editor-section-title .eyebrow{font-size:9px;letter-spacing:1.7px;margin-bottom:8px}.editor-section-title h2{font-size:21px;letter-spacing:-.55px;margin:0;line-height:1.3}.editor-section-title>.ui-icon{color:var(--gold-text);width:25px;height:25px;flex-shrink:0}.editor-count{color:var(--muted);font-size:12px;border:1px solid var(--line);border-radius:99px;padding:4px 10px;white-space:nowrap}
.product-workspace .muted{font-size:13px;line-height:1.6}.product-workspace .gallery-editor{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-workspace .gallery-item>img{height:auto;aspect-ratio:3/4;object-fit:cover}.product-workspace .gallery-label{font-size:11px;top:10px;left:10px;padding:4px 9px;box-shadow:0 1px 4px #0000000d}.gallery-ai{position:absolute;left:8px;bottom:50px;font-size:10px;padding:3px 7px;background:var(--gold-soft);color:var(--gold-text);border-radius:5px}.product-workspace .gallery-actions{background:var(--paper);flex-wrap:nowrap;gap:0;border-top:1px solid var(--line)}.product-workspace .gallery-actions button{font-size:11px;padding-inline:4px;min-height:42px;line-height:1.3}.product-workspace .gallery-actions button:hover:not(:disabled){background:var(--gold-soft);border-radius:4px}.product-workspace .gallery-editor:empty{display:block;border:1px dashed var(--control-border);border-radius:10px;min-height:150px;background:var(--paper)}.product-workspace .gallery-editor:empty::after{content:'Dodaj pierwsze zdjęcia ubrania';display:block;text-align:center;color:var(--muted);padding:55px 12px;font-size:14px}
.product-workspace .photo-add-actions .button{font-size:13px;flex:1;min-height:46px;padding:11px 10px}.product-workspace .photo-status{font-size:11px;margin:10px 0 18px}.product-workspace .ai-assistant{border-color:var(--line);background:var(--paper);margin:18px 0 0;padding:18px}.assistant-heading{display:flex;gap:10px;align-items:start}.assistant-heading>.ui-icon{width:22px;height:22px;color:var(--gold-text);flex-shrink:0}.assistant-heading h3{font-size:15px;font-weight:600;margin-bottom:4px}.product-workspace .ai-assistant p{font-size:12px;margin:4px 0 12px}.product-workspace .ai-assistant small{font-size:11px;line-height:1.5;margin-top:10px}.product-workspace .ai-assistant .button{font-size:13px;min-height:46px;margin-top:3px}.ai-summary-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.ai-summary-chips span{font-size:11px;background:var(--gold-soft);color:var(--gold-text);padding:4px 8px;border-radius:5px}.product-workspace .ai-review{margin:12px 0 0}.ai-provenance{display:inline-block;font-weight:400;font-size:10px;color:var(--gold-text);margin-left:8px}.editor-note{color:var(--gold-text);font-size:10px;max-width:110px;line-height:1.5}
.studio-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:22px}.studio-mode{position:relative;display:block;cursor:pointer;border:1px solid var(--line);border-radius:8px;padding:12px 7px;text-align:center;min-height:68px;background:var(--paper)}.studio-mode input{position:absolute;opacity:0;width:1px;height:1px}.studio-mode:has(input:checked){border-color:var(--gold-text);background:var(--gold-soft);box-shadow:inset 0 0 0 1px var(--gold-text)}.studio-mode:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:3px}.studio-mode strong{font-size:12px;display:block;line-height:1.4}.studio-mode small{font-size:10px;margin-top:4px;line-height:1.4}
.studio-block{margin-bottom:20px}.studio-block h3{font-size:13px;font-weight:600;line-height:1.5;margin:0 0 10px}.studio-block h3 small{font-size:11px;font-weight:400;margin-top:3px}.studio-photo-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.studio-photo-choices:empty{display:none}.studio-photo-choice{position:relative;cursor:pointer;display:block;border:1px solid var(--line);border-radius:8px;overflow:hidden;padding:3px;background:var(--paper)}.studio-photo-choice>input{position:absolute;top:8px;right:8px;margin:0;width:20px;height:20px;accent-color:var(--action);z-index:1}.studio-photo-choice>img{width:100%;height:95px;object-fit:cover;border-radius:5px}.studio-photo-choice>span{font-size:10px;display:block;padding:6px 3px;line-height:1.4}.studio-photo-choice:has(input:checked){border-color:var(--gold-text);box-shadow:inset 0 0 0 1px var(--gold-text);background:var(--gold-soft)}.studio-reference>.text-button{min-height:36px;padding:3px;width:100%;font-size:11px}.reference-upload{position:relative;display:flex;align-items:center;gap:12px;min-height:76px;margin-top:10px;border:1px dashed var(--control-border);border-radius:8px;padding:15px;background:var(--paper);cursor:pointer;font-size:12px}.reference-upload>.ui-icon{width:22px;height:22px;flex-shrink:0;color:var(--gold-text)}.reference-upload small{font-size:10px;margin-top:3px}.studio-block>.text-button{font-size:11px;min-height:38px;padding:8px 0}.reference-previews{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.reference-previews:empty{display:none}.reference-previews>img{width:75px;height:85px;object-fit:cover;border-radius:6px;border:1px solid var(--line)}
.product-studio .field>label{font-size:13px}.product-studio .field>small{font-size:11px;margin-top:8px;line-height:1.5}.studio-generate-row{display:flex;gap:15px;align-items:center}.studio-generate-row>.field{flex:1;min-width:0}.studio-generate-row>.text-link{font-size:11px;white-space:nowrap;margin-top:10px}.studio-consent{font-size:11px!important;align-items:flex-start;line-height:1.5;margin-bottom:14px}.studio-consent input{flex-shrink:0;width:19px;height:19px;margin:2px 0 0}.studio-footnote{font-size:10px;text-align:center;margin-top:10px;line-height:1.5}.product-studio>.button{font-size:13px;min-height:48px}
.studio-result{margin-top:18px}.studio-result>summary{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:12px!important;line-height:1.5}.studio-result summary small{font-size:10px;line-height:1.5;margin-top:4px}.studio-result .badge{font-size:9px;flex-shrink:0}.studio-result .visual-comparison{gap:10px}.studio-result .visual-comparison img{height:190px;object-fit:contain;background:var(--paper);border-radius:6px}.studio-result figcaption{font-size:10px}.studio-result .checkbox{font-size:11px;line-height:1.5;margin:12px 0}.studio-result .checkbox input{width:18px;height:18px;flex-shrink:0}.studio-result .button{font-size:12px}.studio-result-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px}.studio-result-actions .text-button{font-size:11px}.studio-error{font-size:12px;color:#973e38;background:#fbede9;padding:12px!important;border-radius:6px}.studio-onboarding{text-align:center;background:var(--paper);border:1px dashed var(--line);border-radius:10px;padding:35px 22px;margin:22px 0}.studio-onboarding>.ui-icon{width:34px;height:34px;color:var(--gold-text);margin-bottom:15px}.studio-onboarding h3{font-size:15px}.studio-onboarding p{font-size:12px;color:var(--muted);max-width:280px;margin:10px auto}.studio-onboarding .text-link{font-size:12px}
.product-workspace .field>label{font-size:13px}.product-workspace .two-columns{gap:0 14px;grid-template-columns:1fr 1fr}.product-workspace .field{margin-bottom:16px}.product-workspace summary{font-size:13px}.editor-stock .step-heading{margin-bottom:16px}.editor-stock .step-heading h2{font-size:21px}.editor-stock .step-heading>span{width:29px;height:29px;font-size:10px}.editor-stock .variant-fields{grid-template-columns:1fr 65px;gap:8px 12px}.editor-stock .variant-fields>.field:last-child{grid-column:1/-1}.editor-stock .muted{font-size:12px}
.editor-publish{grid-column:1/-1;grid-row:4;position:sticky;bottom:12px;z-index:18;display:flex;align-items:center;gap:18px;padding:15px 20px;border:1px solid var(--line);border-radius:12px;background:var(--white);box-shadow:0 5px 24px #30282d0e}.editor-publish>.field{margin:0;min-width:225px}.editor-publish>.field>label{font-size:11px;margin-bottom:5px}.editor-publish select{font-size:13px;min-height:44px;padding:10px}.editor-publish>p{flex:1;margin:0!important;font-size:11px!important}.editor-publish>.button{min-width:150px;min-height:46px;font-size:13px}.editor-history{margin-top:24px;border-radius:14px;padding:24px}.audit-entry summary{display:flex;justify-content:space-between;align-items:center;font-size:13px;gap:12px}.audit-entry summary small{font-size:11px;margin-top:4px}.audit-entry summary>span:last-child{font-size:11px;white-space:nowrap;color:var(--muted)}.audit-changes{display:grid;grid-template-columns:1fr 1fr;gap:12px}.audit-changes>div{font-size:12px;padding:12px;background:var(--paper);border-radius:6px;overflow-wrap:anywhere}.audit-changes strong,.audit-changes span{display:block}.audit-changes strong{margin-bottom:4px}.audit-changes small{font-size:10px;margin-top:6px;color:var(--gold-text)}.audit-changes del{color:var(--muted)}.audit-warning{font-size:12px;padding:12px!important;background:var(--gold-soft);border-radius:6px;margin-top:12px}.audit-entry>.muted{font-size:12px}.audit-entry .text-button{font-size:12px}
@media(max-width:1100px){.product-form.product-workspace{gap:16px}.product-workspace>.panel{padding:18px}.editor-section-title h2{font-size:19px}.studio-mode strong{font-size:10px}.studio-mode small{font-size:9px}.studio-photo-choice>img{height:80px}.editor-publish>p{display:none}.editor-publish>.button{margin-left:auto}.editor-publish{bottom:8px}}
@media(max-width:800px){.product-form.product-workspace{grid-template-columns:1fr;gap:18px;padding-bottom:0}.product-workspace .editor-media,.product-workspace .editor-data,.product-workspace .editor-stock,.product-workspace .product-studio{grid-column:1;grid-row:auto}.product-workspace .editor-media{order:1}.product-workspace .product-studio{order:2}.product-workspace .editor-data{order:3}.product-workspace .editor-stock{order:4}.editor-publish{order:5;grid-column:1;grid-row:auto;position:sticky;bottom:79px;padding:12px;gap:10px}.editor-publish>.field{min-width:0;flex:1}.editor-publish>.button{min-width:0;max-width:130px;padding:12px 15px;font-size:12px}.editor-publish>.field>label{font-size:10px}.editor-publish select{font-size:13px;padding:9px}.editor-heading h1{font-size:31px}.editor-heading p{font-size:12px}.editor-heading .badge{margin-left:4px}.studio-mode strong{font-size:11px}.studio-mode small{font-size:10px}.studio-photo-choice>img{height:100px}.product-workspace .gallery-item>img{aspect-ratio:3/4}.product-workspace .two-columns{grid-template-columns:1fr 1fr}.product-workspace .two-columns .field>label{font-size:12px}.editor-history{padding:18px}.audit-changes{grid-template-columns:1fr}.editor-history .editor-section-title>small{display:none}.admin-content:has(.product-workspace){padding-bottom:115px}.product-workspace .editor-section-title h2{font-size:20px}.editor-note{max-width:90px}}
@media(prefers-reduced-motion:no-preference){.gallery-item{animation:gallery-arrive .2s ease-out}@keyframes gallery-arrive{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}}

[data-studio-save-status]:empty{display:none}

.editor-sections{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:22px;overflow-x:auto;scrollbar-width:none}.editor-sections a{font-size:12px;white-space:nowrap;min-height:44px;display:flex;align-items:center;border-bottom:2px solid transparent}.editor-sections a:hover,.editor-sections a:focus-visible{border-bottom-color:var(--gold-text);color:var(--gold-text)}.product-workspace>section,.editor-history{scroll-margin-top:68px}
@media(max-width:800px){.editor-sections{position:sticky;top:0;z-index:17;background:var(--paper);gap:22px;margin-inline:0;padding-inline:0;box-shadow:0 3px 8px #30282d05}.editor-sections a{font-size:12px;min-height:50px}}

.studio-inputs{margin-top:12px}.studio-inputs summary{font-size:11px!important}.studio-inputs .studio-photo-choices{margin-top:10px}.studio-inputs figure{margin:0}.studio-inputs img{width:100%;height:100px;object-fit:cover;border-radius:6px}.studio-inputs figcaption{font-size:10px;padding-top:5px}
