/* Photos domain layouts. Foundation, tokens, controls, tables and filter behavior belong to Core. */
/* Complete administrator pages inherit native shell insets; embedded tools keep their host. */
#content .xdecaro-scope.xdecaro-suite:is(.xdecarophotos-library,.xdecarophotos-gallery-editor,.xdecarophotos-studio,.xdecarophotos-information,.xdecarophotos-diagnostics,.xdecaro-photos-operations,.xdecarophotos-portraits,.xdecarophotos-database):not(.xdecarophotos-picker){margin:0}
#content .xdecaro-scope.xdecaro-suite:is(.xdecarophotos-library,.xdecarophotos-gallery-editor,.xdecarophotos-studio,.xdecarophotos-information,.xdecarophotos-diagnostics,.xdecaro-photos-operations,.xdecarophotos-portraits,.xdecarophotos-database):not(.xdecarophotos-picker)>.xdecaro-suite__page-header{gap:var(--xdecaro-space-2);margin:0}
@media(min-width:768px){#content .xdecaro-scope.xdecaro-suite:is(.xdecarophotos-library,.xdecarophotos-gallery-editor,.xdecarophotos-studio,.xdecarophotos-information,.xdecarophotos-diagnostics,.xdecaro-photos-operations,.xdecarophotos-portraits,.xdecarophotos-database):not(.xdecarophotos-picker){margin-block-start:var(--xdecaro-space-4)}}
/* Atum shows the subhead before its content padding changes; compensate only that native sibling shell. */
@media(min-width:576px) and (max-width:767.98px){#subhead-container.subhead:not([hidden]):not(.d-none)+#content .xdecaro-scope.xdecaro-suite:is(.xdecarophotos-library,.xdecarophotos-gallery-editor,.xdecarophotos-studio,.xdecarophotos-information,.xdecarophotos-diagnostics,.xdecaro-photos-operations,.xdecarophotos-portraits,.xdecarophotos-database):not(.xdecarophotos-picker){margin-block-start:calc(-1 * var(--xdecaro-space-4))}}
/* Database joins the existing page shell; a collapsed Atum subhead has no inset to compensate. */
@media(min-width:576px) and (max-width:767.98px){#subhead-container.subhead.collapse:not(.show):not([hidden]):not(.d-none)+#content .xdecaro-scope.xdecaro-suite.xdecarophotos-database{margin-block-start:0}}
.xdecarophotos-gallery-editor .xdecaro-card__body>h2.xdecaro-card__title{margin-block-end:var(--xdecaro-space-2)}
.xdecarophotos-admin,.xdecarophotos-galleries,.xdecarophotos-gallery-editor,.xdecarophotos-studio,.xdecarophotos-diagnostics,.xdecaro-photos-library,.xdecaro-photos-gallery{min-width:0;max-width:100%}
.xdecarophotos-admin form,.xdecarophotos-galleries form,.xdecarophotos-gallery-editor form,.xdecarophotos-studio form{min-width:0;max-width:100%}
.xdecarophotos-admin :where(td,th,p,strong),.xdecarophotos-galleries :where(td,th,p,strong),.xdecarophotos-gallery-editor :where(p,span){overflow-wrap:anywhere}
.xdecarophotos-admin .xdecaro-filterbar,.xdecarophotos-galleries .xdecaro-filterbar,.xdecarophotos-archive .xdecaro-filterbar{margin-block-end:var(--xdecaro-space-3)}
.xdecarophotos-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,11rem),1fr));gap:var(--xdecaro-space-2)}
.xdecarophotos-gallery__item{min-width:0;overflow:hidden}
.xdecarophotos-gallery__media{aspect-ratio:4/3;background:var(--xdecaro-color-surface-subtle);overflow:hidden}
.xdecarophotos-gallery__media img{display:block;width:100%;height:100%;object-fit:cover}
.xdecarophotos-gallery__meta{margin-top:var(--xdecaro-space-1);overflow-wrap:anywhere}
.xdecarophotos-gallery__actions,.xdecarophotos-studio__source,.xdecarophotos-studio__buttons{display:flex;gap:var(--xdecaro-space-2);align-items:end;flex-wrap:wrap}
.xdecarophotos-photo-preview{object-fit:cover;border-radius:var(--xdecaro-radius-sm);vertical-align:middle;margin-inline-end:var(--xdecaro-space-2);max-width:100%;inline-size:3rem;block-size:3rem}
.xdecarophotos-gallery-cover{display:block;inline-size:4rem;block-size:3rem;object-fit:contain;border-radius:var(--xdecaro-radius-sm);background:var(--xdecaro-color-surface-subtle)}
/* A member row is a domain composition, not another table/control system. */
.xdecarophotos-gallery-editor{display:grid;gap:var(--xdecaro-space-3)}
.xdecarophotos-gallery-editor__fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:var(--xdecaro-space-3)}
.xdecarophotos-gallery-editor__member-list,.xdecarophotos-gallery-editor__link-list{display:grid;gap:var(--xdecaro-space-2);padding:0;list-style:none}
.xdecarophotos-gallery-editor__member-list>li,.xdecarophotos-gallery-editor__link-list>li{display:flex;align-items:center;gap:var(--xdecaro-space-2);flex-wrap:wrap;min-width:0;border-bottom:1px solid var(--xdecaro-color-border);padding-block:var(--xdecaro-space-2)}
.xdecarophotos-gallery-editor__member-list>li>span,.xdecarophotos-gallery-editor__link-list>li>span{flex:1 1 12rem;min-width:0;overflow-wrap:anywhere}
.xdecarophotos-gallery-editor__member-list form,.xdecarophotos-gallery-editor__link-list form{display:inline-flex;flex-wrap:wrap;gap:var(--xdecaro-space-1)}
.xdecarophotos-gallery-editor__link-form{display:flex;align-items:end;gap:var(--xdecaro-space-2);flex-wrap:wrap}
.xdecarophotos-gallery-editor__link-form label{display:grid;gap:var(--xdecaro-space-1);min-width:0;flex:1 1 10rem}
.xdecarophotos-gallery-editor__share input[data-xdecaro-role="share-token"]{display:block;inline-size:min(100%,42rem);font-family:ui-monospace,monospace}
.xdecarophotos-gallery-editor__results{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,14rem),1fr));gap:var(--xdecaro-space-2);margin-block:var(--xdecaro-space-2)}
.xdecarophotos-gallery-editor__results label{display:flex;align-items:center;gap:var(--xdecaro-space-2);min-width:0;border-bottom:1px solid var(--xdecaro-color-border);padding-block:var(--xdecaro-space-1)}
.xdecarophotos-gallery-editor__results img{inline-size:2.75rem;block-size:2.75rem;object-fit:cover}
.xdecarophotos-gallery-editor__upload form{display:flex;align-items:end;flex-wrap:wrap;gap:var(--xdecaro-space-2)}
.xdecarophotos-gallery-editor__upload .xdecaro-field{flex:1 1 12rem}
.xdecarophotos-v2-previews{display:flex;flex-wrap:wrap;gap:var(--xdecaro-space-2);max-inline-size:100%;min-width:0}
.xdecarophotos-v2-previews figure{margin:0;inline-size:5rem;max-inline-size:100%;font-size:.8rem;overflow-wrap:anywhere}
.xdecarophotos-v2-previews img{display:block;inline-size:100%;aspect-ratio:1;object-fit:cover}
/* Photo Studio domain tools, crop canvases and composition outputs. */
.xdecarophotos-studio__source .xdecaro-field{min-width:0;flex:1 1 10rem}
.xdecarophotos-studio__canvas-wrap{margin-block:var(--xdecaro-space-2);width:100%;min-width:0;display:grid;place-items:center;background:var(--xdecaro-color-surface-subtle);padding:var(--xdecaro-space-2);border-radius:var(--xdecaro-radius-sm)}
.xdecarophotos-studio__canvas-wrap canvas{display:block;width:auto;max-width:100%;height:auto;max-height:62dvh;touch-action:none}
.xdecarophotos-studio__video{display:block;width:min(100%,38rem);margin-block-start:var(--xdecaro-space-3)}
.xdecarophotos-studio__status{min-height:1.5em}
.xdecarophotos-studio__controls{min-width:0;margin-block-end:var(--xdecaro-space-2)}
.xdecarophotos-format-composers{display:grid;gap:var(--xdecaro-space-2);margin-block:var(--xdecaro-space-3)}
.xdecarophotos-format-composer{overflow:visible;border:0;background:transparent}
.xdecarophotos-format-composer__summary{cursor:pointer;font-weight:600;padding:var(--xdecaro-space-3)}
.xdecarophotos-format-composer__body{padding:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(14rem,18rem);gap:var(--xdecaro-space-3);align-items:start}
.xdecarophotos-format-composer__body .xdecarophotos-studio__canvas-wrap{grid-column:1;grid-row:1}
.xdecarophotos-format-composer__body .xdecarophotos-studio__controls,.xdecarophotos-format-composer__body>.xdecaro-field,.xdecarophotos-format-composer__body>[data-xdecaro-role="variant-status"],.xdecarophotos-format-composer__body>[data-xdecaro-action="save-variant"]{grid-column:2;min-width:0}
.xdecarophotos-sticker-composer{margin-block:var(--xdecaro-space-3)}
.xdecarophotos-sticker-composer__workspace{display:grid;gap:var(--xdecaro-space-3);grid-template-columns:minmax(0,20rem) minmax(0,1fr)}
.xdecarophotos-sticker-composer__preview{position:sticky;top:var(--xdecaro-space-3);min-width:0}
.xdecarophotos-sticker-composer__preview canvas{display:block;max-width:100%;height:auto}
.xdecarophotos-sticker-composer__fields,.xdecarophotos-sticker-composer__crop-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:var(--xdecaro-space-3);padding:var(--xdecaro-space-3);margin-block-end:var(--xdecaro-space-3);min-width:0}
.xdecarophotos-sticker-composer__saved img{display:block;inline-size:min(100%,20rem);block-size:auto}
.xdecarophotos-studio-options{flex:1 1 100%;margin-block:var(--xdecaro-space-2)}
.xdecarophotos-studio-options>div{padding:var(--xdecaro-space-2)}
.xdecarophotos-v2-variant-nav,.xdecarophotos-batch{display:flex;align-items:center;flex-wrap:wrap;gap:var(--xdecaro-space-2);margin-block:var(--xdecaro-space-2)}
.xdecarophotos-batch input,.xdecarophotos-v2-variant-nav select{max-width:100%;min-width:0}
.xdecarophotos-batch .xdecarophotos-v2-previews{flex-basis:100%}
.xdecarophotos-batch__summary{overflow-wrap:anywhere}
/* Picker keeps the established consumer protocol and a Photos-specific media grid. */
.xdecarophotos-picker{width:100%;min-width:0;padding:var(--xdecaro-space-2);display:grid;gap:var(--xdecaro-space-3)}
.xdecarophotos-picker__header{display:flex;justify-content:space-between;align-items:start;gap:var(--xdecaro-space-3)}
.xdecarophotos-picker__header h1{font-size:1.15rem;margin:0}
.xdecarophotos-picker__header p{font-size:.875rem;margin-block:var(--xdecaro-space-1);color:var(--xdecaro-color-muted)}
.xdecarophotos-picker__search{display:flex;align-items:end;flex-wrap:wrap;gap:var(--xdecaro-space-2)}
.xdecarophotos-picker__search .xdecaro-field{flex:1 1 12rem;min-width:0}
.xdecarophotos-picker__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,10rem),1fr));gap:var(--xdecaro-space-2);min-width:0}
.xdecarophotos-picker__photo{display:grid;gap:var(--xdecaro-space-1);min-width:0;overflow:hidden;border:2px solid var(--xdecaro-color-border);border-radius:var(--xdecaro-radius-sm);padding:var(--xdecaro-space-1);background:var(--xdecaro-color-surface);color:var(--xdecaro-color-text);text-align:start;cursor:pointer}
.xdecarophotos-picker__photo img{display:block;inline-size:100%;aspect-ratio:4/3;object-fit:cover;background:var(--xdecaro-color-surface-subtle)}
.xdecarophotos-picker__photo-title{font-size:.875rem;font-weight:600;overflow-wrap:anywhere;line-height:1.3}
.xdecarophotos-picker__photo[aria-pressed="true"]{border-color:var(--xdecaro-color-primary);box-shadow:inset 0 0 0 1px currentColor}
.xdecarophotos-picker__photo[aria-pressed="true"] .xdecarophotos-picker__photo-title::before{content:'✓ ';font-weight:900}
.xdecarophotos-picker__footer{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--xdecaro-space-2);background:var(--xdecaro-color-surface);padding:var(--xdecaro-space-2);border-top:1px solid var(--xdecaro-color-border)}
.xdecarophotos-picker__actions{display:flex;flex-wrap:wrap;gap:var(--xdecaro-space-2)}
.xdecarophotos-picker__pages{min-width:0;overflow-wrap:anywhere}
/* Frontend photo composition inherits Core frontend/template theme. */
.xdecaro-photos-gallery__grid{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:var(--xdecaro-space-3)}
.xdecaro-photos-gallery__grid li{min-width:0;overflow:hidden}
.xdecaro-photos-gallery__grid img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.xdecaro-photos-gallery__grid a{color:inherit;display:block}
.xdecaro-photos-gallery__grid p{margin-block:var(--xdecaro-space-2);overflow-wrap:anywhere}
.xdecaro-photos-library__list{display:grid;gap:var(--xdecaro-space-2);list-style:none;margin-block:var(--xdecaro-space-3);padding:0}
.xdecaro-photos-library__list article{display:flex;align-items:center;gap:var(--xdecaro-space-3);padding-block:var(--xdecaro-space-2);border-bottom:1px solid var(--xdecaro-color-border);flex-wrap:wrap;min-width:0}
.xdecaro-photos-library__list article>a{display:flex;align-items:center;gap:var(--xdecaro-space-2);flex:1 1 18rem;min-width:0;color:inherit}
.xdecaro-photos-library__list img{inline-size:5rem;block-size:3.75rem;object-fit:contain;flex:none;background:var(--xdecaro-color-surface-subtle)}
/* Equal decorative cover slot for present/absent media in the existing public layouts. */
.xdecaro-photos-library .xdecaro-photos-library__cover{display:grid;place-items:center;inline-size:5rem;block-size:3.75rem;flex:none;overflow:hidden;color:var(--xdecaro-color-muted);background:var(--xdecaro-color-surface-subtle)}
.xdecaro-photos-library .xdecaro-photos-library__cover>img{inline-size:100%;block-size:100%;object-fit:contain}
.xdecaro-photos-library__list h2{font-size:1rem;margin:0;overflow-wrap:anywhere}
.xdecaro-photos-library__list p{flex:1 1 10rem;margin:0;min-width:0;overflow-wrap:anywhere}
.xdecaro-photos-lightbox{border:0;padding:var(--xdecaro-space-3);max-width:min(96vw,85rem);max-height:94dvh;overflow:auto;background:var(--xdecaro-color-surface,Canvas);color:var(--xdecaro-color-text,CanvasText)}
.xdecaro-photos-lightbox::backdrop,.xdecaro-photos-dialog::backdrop{background:var(--xdecaro-color-backdrop,CanvasText)}
.xdecaro-photos-lightbox img{display:block;max-width:100%;max-height:80dvh;height:auto;margin:auto;object-fit:contain}
.xdecaro-photos-dialog{padding:var(--xdecaro-space-3);max-width:calc(100vw - 2rem);width:min(38rem,calc(100vw - 2rem));max-height:90dvh}
.xdecaro-photos-dialog__results{list-style:none;padding:0;display:grid;gap:var(--xdecaro-space-2)}
.xdecaro-photos-dialog__results .xdecaro-button{width:100%;justify-content:start;text-align:start;white-space:normal;overflow-wrap:anywhere}
.xdecarophotos-diagnostics__list{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:0 var(--xdecaro-space-3);margin-block-end:var(--xdecaro-space-3)}
.xdecarophotos-diagnostics__list dt,.xdecarophotos-diagnostics__list dd{margin:0;border-bottom:1px solid var(--xdecaro-color-border);padding-block:var(--xdecaro-space-2);overflow-wrap:anywhere}
.xdecarophotos-diagnostics__ok{font-weight:700;color:var(--xdecaro-color-success)}
.xdecarophotos-diagnostics__fail{font-weight:700;color:var(--xdecaro-color-danger)}
.xdecarophotos-diagnostics__pending{text-decoration:underline dotted}
@media(max-width:800px){.xdecarophotos-format-composer__body{display:block}.xdecarophotos-sticker-composer__workspace{grid-template-columns:1fr}.xdecarophotos-sticker-composer__preview{position:static}}
@media(max-width:480px){.xdecarophotos-picker__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.xdecarophotos-picker__header{flex-wrap:wrap}.xdecarophotos-gallery-editor__fields{grid-template-columns:1fr}.xdecarophotos-gallery-editor__upload form{display:grid}.xdecarophotos-diagnostics__list{grid-template-columns:1fr}}
.xdecarophotos-admin :focus-visible,.xdecarophotos-galleries :focus-visible,.xdecarophotos-gallery-editor :focus-visible,.xdecaro-photos-library :focus-visible,.xdecaro-photos-gallery :focus-visible{outline:2px solid var(--xdecaro-color-primary,currentColor);outline-offset:2px}

@media(min-width:801px){.xdecarophotos-galleries td.access_title,.xdecarophotos-galleries td.visibility{white-space:nowrap}.xdecarophotos-galleries td[data-label]:nth-child(3){max-inline-size:26rem}}

/* Keep native Studio visibility state effective when Core controls set display. */
.xdecarophotos-studio [hidden]{display:none}

/* Photos-specific compositions of Core controls: no shared token or widget fork. */
.xdecarophotos-admin .xdecaro-filterbar__primary,.xdecarophotos-galleries .xdecaro-filterbar__primary{align-items:center;gap:var(--xdecaro-space-2)}
.xdecarophotos-list-sort{display:flex;align-items:center;gap:var(--xdecaro-space-2);flex-wrap:wrap;margin-inline-start:auto;min-width:0}
.xdecarophotos-list-sort .xdecaro-field{display:flex;align-items:center;gap:var(--xdecaro-space-1);margin:0;min-width:0}
.xdecarophotos-list-sort select{width:auto;max-width:12rem}
.xdecarophotos-active-filters{display:flex;align-items:center;gap:var(--xdecaro-space-1);flex-wrap:wrap;margin-block-start:var(--xdecaro-space-2);overflow-wrap:anywhere}
.xdecarophotos-active-filters .xdecaro-badge{white-space:normal;max-width:100%}
.xdecarophotos-dashboard__panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--xdecaro-space-3);margin-block:var(--xdecaro-space-3)}
.xdecarophotos-studio__workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(14rem,20rem);gap:var(--xdecaro-space-3);align-items:start}
.xdecarophotos-studio__canvas-wrap{min-height:20rem}
.xdecarophotos-studio__tool-group{border:0;padding:0;margin-block:var(--xdecaro-space-3);min-width:0}
.xdecarophotos-studio__tool-group legend{font-size:1rem;font-weight:600;margin-block-end:var(--xdecaro-space-1)}
.xdecarophotos-studio__batch-option{margin-block:var(--xdecaro-space-3);border-block:1px solid var(--xdecaro-color-border);padding-block:var(--xdecaro-space-2)}
.xdecarophotos-studio__batch-option summary{cursor:pointer;font-weight:600}
.xdecarophotos-studio__metadata{margin-block-start:var(--xdecaro-space-4)}
.xdecarophotos-studio [data-xdecaro-studio-empty]{min-height:12rem;display:grid;align-content:center;justify-items:center;text-align:center;margin-block:var(--xdecaro-space-3)}
.xdecarophotos-studio [data-xdecaro-studio-empty][hidden]{display:none}
.xdecarophotos-gallery-editor .control-group{margin-block-end:var(--xdecaro-space-3)}
.xdecarophotos-gallery-editor :where(input,select,textarea){max-width:100%;min-width:0}
@media(max-width:800px){.xdecarophotos-dashboard__panels,.xdecarophotos-studio__workspace{grid-template-columns:1fr}.xdecarophotos-studio__canvas-wrap{min-height:0}.xdecarophotos-list-sort{margin-inline-start:0}}

/* Photos Studio viewport and crop overlay: Core 2.6.3 tokens, preview only. */
.xdecarophotos-studio.xdecaro-suite .xdecarophotos-v2-variant-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr));inline-size:100%;gap:var(--xdecaro-space-2);align-items:stretch}
.xdecarophotos-studio .xdecarophotos-v2-variant-nav>button{display:flex;flex-wrap:wrap;align-items:center;gap:var(--xdecaro-space-1);max-width:100%}
.xdecarophotos-studio .xdecarophotos-v2-variant-nav>button[aria-pressed="true"]{border-color:var(--xdecaro-color-primary);outline:2px solid var(--xdecaro-color-primary);outline-offset:1px}
.xdecarophotos-studio .xdecarophotos-studio__viewport{position:relative;overflow:hidden;width:min(100%,calc(48dvh * var(--xdecarophotos-preview-aspect)));aspect-ratio:var(--xdecarophotos-preview-aspect);background-color:var(--xdecaro-color-surface)}
.xdecarophotos-studio [data-xdecaro-preview-surface="checker"]{background-image:conic-gradient(var(--xdecaro-color-surface-subtle) 25%,var(--xdecaro-color-border) 0 50%,var(--xdecaro-color-surface-subtle) 0 75%,var(--xdecaro-color-border) 0);background-size:1rem 1rem}
.xdecarophotos-studio [data-xdecaro-preview-surface="neutral"]{background:var(--xdecaro-color-surface-subtle)}
.xdecarophotos-studio [data-xdecaro-preview-surface="contrast"]{background:var(--xdecaro-color-text)}
.xdecarophotos-studio .xdecarophotos-studio__viewport canvas{width:100%;height:100%;max-height:none;cursor:grab;touch-action:none}
.xdecarophotos-studio .xdecarophotos-studio__viewport canvas:active{cursor:grabbing}
.xdecarophotos-studio .xdecarophotos-studio__crop-frame{position:absolute;pointer-events:none;border:2px dashed var(--xdecaro-color-primary);box-shadow:0 0 0 1px var(--xdecaro-color-surface)}
.xdecarophotos-studio canvas:focus-visible{outline:2px solid var(--xdecaro-color-primary);outline-offset:2px}
.xdecarophotos-studio [data-xdecaro-studio-empty]{min-height:6rem;margin-block:var(--xdecaro-space-2)}
.xdecarophotos-studio .xdecarophotos-v2-variant-nav>button{display:inline-grid;justify-items:start;text-align:start;padding:var(--xdecaro-space-2) var(--xdecaro-space-3)}

.xdecarophotos-picker [hidden]{display:none}

/* Guided Studio: Photos-only composition using existing Core surfaces and spacing. */
.xdecarophotos-studio .xdecarophotos-studio__steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));inline-size:100%;gap:var(--xdecaro-space-3);list-style:none;padding:0;margin-block:var(--xdecaro-space-3);color:var(--xdecaro-color-muted)}
.xdecarophotos-studio .xdecarophotos-studio__steps li{display:flex;align-items:center;gap:var(--xdecaro-space-2);padding:var(--xdecaro-space-2) var(--xdecaro-space-3);border:1px solid var(--xdecaro-color-border);border-radius:var(--xdecaro-radius-sm);background:var(--xdecaro-color-surface);min-width:0;overflow-wrap:anywhere}
.xdecarophotos-studio .xdecarophotos-studio__step-number{display:inline-grid;place-items:center;min-inline-size:var(--xdecaro-space-6);block-size:var(--xdecaro-space-6);border:1px solid currentColor;border-radius:var(--xdecaro-radius-sm);font-weight:600;flex-shrink:0}
.xdecarophotos-studio .xdecarophotos-studio__steps [aria-current=step]{color:var(--xdecaro-color-primary);font-weight:600;border-color:currentColor;border-block-end-width:3px}
.xdecarophotos-studio .xdecarophotos-studio__source>.xdecaro-field{flex-basis:24rem}
.xdecarophotos-studio .xdecarophotos-studio__camera{flex-basis:100%;min-width:0}
.xdecarophotos-studio .xdecarophotos-studio__camera :where(video,img){display:block;max-width:100%;max-height:55dvh;object-fit:contain;margin-block:var(--xdecaro-space-2)}
.xdecarophotos-studio .xdecarophotos-studio__photo-title{margin-block:0 var(--xdecaro-space-1);font-size:var(--xdecaro-font-size);overflow-wrap:anywhere}
.xdecarophotos-studio .xdecarophotos-studio__controls{display:grid;gap:var(--xdecaro-space-2);align-content:start}
.xdecarophotos-studio .xdecarophotos-studio__controls .xdecaro-field{margin:0;min-width:0}
.xdecarophotos-studio .xdecarophotos-studio__tool-group{margin-block:var(--xdecaro-space-1)}
.xdecarophotos-studio .xdecarophotos-studio__passport-guide{position:absolute;pointer-events:none;filter:drop-shadow(0 0 1px white)}
.xdecarophotos-studio .xdecarophotos-studio__review{padding:0;max-width:calc(100vw - var(--xdecaro-space-4));max-height:90dvh}
.xdecarophotos-studio .xdecarophotos-studio__review::backdrop{background:var(--xdecaro-color-backdrop)}
.xdecarophotos-studio .xdecarophotos-studio__review :where(h2,p){margin-block:0 var(--xdecaro-space-2);overflow-wrap:anywhere}
.xdecarophotos-studio .xdecarophotos-studio__review canvas{display:block;margin-inline:auto;max-width:100%;max-height:52dvh;width:auto;height:auto;background:var(--xdecaro-color-surface-subtle)}
.xdecarophotos-studio .xdecarophotos-studio__review .xdecaro-modal__footer{justify-content:flex-end}
@media(max-width:800px){.xdecarophotos-studio .xdecarophotos-format-composer__body{display:grid;grid-template-columns:minmax(0,1fr)}.xdecarophotos-studio .xdecarophotos-format-composer__body>:where(.xdecarophotos-studio__canvas-wrap,.xdecarophotos-studio__controls,.xdecaro-field,[data-xdecaro-role=variant-status],[data-xdecaro-action=save-variant]){grid-column:1;grid-row:auto}.xdecarophotos-studio .xdecarophotos-studio__steps{gap:var(--xdecaro-space-2)}}

/* Studio entry placement; fields remain native and associated with their separate forms. */
.xdecarophotos-studio .xdecarophotos-studio__entry{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--xdecaro-space-3);inline-size:100%;align-items:start}
.xdecarophotos-studio .xdecarophotos-studio__entry>#xdecarophotos-upload-form{display:contents}
.xdecarophotos-studio .xdecarophotos-studio__source-card{grid-column:1/-1;justify-self:stretch;inline-size:100%;padding:var(--xdecaro-space-6);display:grid;gap:var(--xdecaro-space-3);text-align:center;min-width:0}
.xdecarophotos-studio .xdecarophotos-studio__source-intro{display:grid;gap:var(--xdecaro-space-2);justify-items:center}
.xdecarophotos-studio .xdecarophotos-studio__source-intro :where(h2,p){margin:0}
.xdecarophotos-studio .xdecarophotos-studio__source-actions{display:flex;gap:var(--xdecaro-space-2);flex-wrap:wrap;justify-content:center}
.xdecarophotos-studio .xdecarophotos-studio__selected-source{margin:0;overflow-wrap:anywhere;min-width:0}
.xdecarophotos-studio :where(.xdecarophotos-studio__selected-source,.xdecarophotos-studio__status,.xdecarophotos-format-composer__status):empty{display:none}
.xdecarophotos-studio .xdecarophotos-studio__secondary-option{border:0;background:transparent;min-width:0;margin:0;color:var(--xdecaro-color-muted)}
.xdecarophotos-studio .xdecarophotos-studio__secondary-option>summary{cursor:pointer;padding-block:var(--xdecaro-space-1);font-weight:400}
.xdecarophotos-studio .xdecarophotos-studio__secondary-option>div{padding-block:var(--xdecaro-space-2)}


.xdecarophotos-studio .xdecarophotos-studio__workspace{grid-template-columns:minmax(0,1fr) minmax(14rem,18rem)}
.xdecarophotos-studio .xdecarophotos-studio__edit-tools{padding:var(--xdecaro-space-3);gap:var(--xdecaro-space-2);margin:0}
.xdecarophotos-studio .xdecarophotos-studio__edit-tools h2{margin:0}
.xdecarophotos-studio .xdecarophotos-studio__edit-tools :where(p,fieldset){margin-block:0}
.xdecarophotos-studio .xdecarophotos-studio__edit-tools input[type=range]{inline-size:100%}
.xdecarophotos-studio .xdecarophotos-studio__canvas-wrap{margin-block:0}
.xdecarophotos-studio .xdecarophotos-studio__metadata{margin-block:0;min-width:0}
@media(max-width:800px){.xdecarophotos-studio .xdecarophotos-studio__workspace{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){.xdecarophotos-studio .xdecarophotos-studio__entry{grid-template-columns:minmax(0,1fr);gap:var(--xdecaro-space-2)}.xdecarophotos-studio .xdecarophotos-studio__source-card{padding:var(--xdecaro-space-4)}}

/* Entry-only spacing; editing surfaces keep their qualified layout. */
.xdecarophotos-studio.xdecaro-suite[data-photo-id="0"]{row-gap:var(--xdecaro-space-3)}
.xdecarophotos-studio[data-photo-id="0"] .xdecarophotos-studio__steps{margin-block:0}

.xdecarophotos-studio .xdecarophotos-studio__context{margin:0;overflow-wrap:anywhere}
.xdecarophotos-studio .xdecarophotos-studio__batch-form{display:grid;gap:var(--xdecaro-space-3);margin:0;min-width:0;max-width:100%}
.xdecarophotos-studio .xdecarophotos-studio__batch-form .xdecarophotos-v2-previews{justify-content:center}
.xdecarophotos-studio .xdecarophotos-batch__summary:empty,.xdecarophotos-studio [data-xdecaro-studio-batch-previews]:empty{display:none}

/* Local removable selection; Core owns control surfaces and theme tokens. */
.xdecarophotos-studio [data-xdecaro-unified-entry] #xdecarophotos-upload-form{margin:0;min-width:0}
.xdecarophotos-studio .xdecarophotos-studio__selection{display:grid;gap:var(--xdecaro-space-3);border-block-start:1px solid var(--xdecaro-color-border);padding-block-start:var(--xdecaro-space-3);text-align:start;min-width:0}
.xdecarophotos-studio .xdecarophotos-studio__selection-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--xdecaro-space-2);flex-wrap:wrap}
.xdecarophotos-studio .xdecarophotos-studio__selection-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--xdecaro-space-3);min-width:0}
.xdecarophotos-studio .xdecarophotos-studio__selection-previews figure{margin:0;min-width:0;display:grid;grid-template-columns:minmax(0,7rem) minmax(0,1fr);align-items:start;gap:var(--xdecaro-space-3);padding:var(--xdecaro-space-3);border:1px solid var(--xdecaro-color-border);border-radius:var(--xdecaro-radius-sm);background:var(--xdecaro-color-surface)}
.xdecarophotos-studio .xdecarophotos-studio__selection-previews img{width:100%;aspect-ratio:4/3;object-fit:contain;background:var(--xdecaro-color-surface-subtle);border-radius:var(--xdecaro-radius-sm)}
.xdecarophotos-studio .xdecarophotos-studio__selection-previews figcaption{font-size:var(--xdecaro-font-size-sm);overflow-wrap:anywhere}
.xdecarophotos-studio .xdecarophotos-studio__selection-previews [data-xdecaro-selection-remove]{position:absolute;inset-block-start:var(--xdecaro-space-1);inset-inline-end:var(--xdecaro-space-1)}
.xdecarophotos-studio .xdecarophotos-studio__selection>[data-xdecaro-review-upload]{justify-self:end;max-width:100%}
.xdecarophotos-studio .xdecarophotos-studio__selection .xdecaro-help{margin:0}

.xdecarophotos-studio [data-xdecaro-unified-entry]:has([data-xdecaro-camera-panel]:not([hidden])) [data-xdecaro-selection]{display:none}



/* Scoped file-drop feedback; the native picker remains the keyboard alternative. */
.xdecarophotos-studio [data-xdecaro-source-card][data-xdecaro-drag-active=true]{outline:2px dashed var(--xdecaro-color-primary);outline-offset:calc(-1 * var(--xdecaro-space-2));background:var(--xdecaro-color-surface-subtle)}
.xdecarophotos-studio [data-xdecaro-drop-status]{margin:0;overflow-wrap:anywhere}
.xdecarophotos-studio [data-xdecaro-drop-status]:empty{display:none}

/* Full-width Studio progress and existing preset controls; no navigation/state change. */
.xdecarophotos-studio .xdecarophotos-studio__step-label{min-width:0;overflow-wrap:anywhere}
.xdecarophotos-studio .xdecarophotos-v2-variant-nav>button{min-width:0;grid-template-rows:minmax(min-content,1fr) auto;align-content:stretch;white-space:normal;padding-block:var(--xdecaro-space-2);row-gap:var(--xdecaro-space-1)}
.xdecarophotos-studio .xdecarophotos-v2-variant-nav>button>span:first-child{align-self:start}
.xdecarophotos-studio .xdecarophotos-v2-variant-nav>button>.xdecaro-badge{align-self:end;white-space:normal;max-inline-size:100%}
.xdecarophotos-studio .xdecarophotos-v2-variant-nav{grid-auto-rows:1fr}
.xdecarophotos-studio .xdecarophotos-studio__steps{margin-block:var(--xdecaro-space-1)}
.xdecarophotos-studio .xdecarophotos-studio__steps li{padding-block:var(--xdecaro-space-3)}
@media(max-width:480px){.xdecarophotos-studio .xdecarophotos-studio__steps{grid-template-columns:1fr}}

/* Approved Studio layout A: source-aspect preview, existing controls underneath. */
.xdecarophotos-studio .xdecarophotos-format-composer__body{grid-template-columns:minmax(0,1fr);gap:var(--xdecaro-space-2)}
.xdecarophotos-studio .xdecarophotos-format-composer__body>:where(.xdecarophotos-studio__canvas-wrap,.xdecarophotos-studio__controls){grid-column:1;grid-row:auto}
.xdecarophotos-studio .xdecarophotos-studio__canvas-wrap{min-height:0}
.xdecarophotos-studio .xdecarophotos-studio__adjustment-toolbar,.xdecarophotos-studio .xdecarophotos-studio__editor-options{display:flex;flex-wrap:wrap;align-items:center;gap:var(--xdecaro-space-2) var(--xdecaro-space-4)}
.xdecarophotos-studio .xdecarophotos-studio__zoom-control{flex:1 1 12rem;max-inline-size:18rem}
.xdecarophotos-studio .xdecarophotos-studio__zoom-control label{display:flex;flex-wrap:wrap;align-items:center;gap:var(--xdecaro-space-2)}
.xdecarophotos-studio .xdecarophotos-studio__zoom-control input{flex:1 1 6rem;min-inline-size:0}
.xdecarophotos-studio .xdecarophotos-studio__editor-options{align-items:flex-end}
.xdecarophotos-studio .xdecarophotos-studio__preview-option{flex:0 1 15rem;max-inline-size:100%}
.xdecarophotos-studio .xdecarophotos-studio__primary-option>label{display:flex;align-items:center;gap:var(--xdecaro-space-2);min-block-size:calc(var(--xdecaro-space-6) + var(--xdecaro-space-5))}
.xdecarophotos-studio .xdecarophotos-studio__guide-panel{inline-size:100%;min-inline-size:0;border-block-start:1px solid var(--xdecaro-color-border);padding-block-start:var(--xdecaro-space-3)}
.xdecarophotos-studio .xdecarophotos-studio__guide-panel:not([hidden]){display:grid;gap:var(--xdecaro-space-2)}
.xdecarophotos-studio .xdecarophotos-studio__guide-transparency{display:flex;flex-wrap:wrap;align-items:center;gap:var(--xdecaro-space-2)}
.xdecarophotos-studio .xdecarophotos-studio__guide-transparency input{flex:0 1 18rem;inline-size:min(100%,18rem);min-inline-size:0}
.xdecarophotos-studio .xdecarophotos-studio__guide-checklist{margin:0;padding-inline-start:var(--xdecaro-space-5)}
.xdecarophotos-studio .xdecarophotos-studio__editor-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--xdecaro-space-2)}
.xdecarophotos-studio .xdecarophotos-studio__editor-footer [data-xdecaro-role=variant-status]{margin-inline-end:auto}
.xdecarophotos-studio .xdecarophotos-studio__metadata-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:var(--xdecaro-space-3)}
.xdecarophotos-studio .xdecarophotos-studio__metadata-groups>section{min-width:0}
.xdecarophotos-studio .xdecarophotos-studio__metadata-groups h3{margin-block:0 var(--xdecaro-space-2)}
.xdecarophotos-studio .xdecarophotos-studio__metadata h3{font-size:var(--xdecaro-font-size)}
.xdecarophotos-studio .xdecarophotos-studio__metadata dd{overflow-wrap:anywhere}
.xdecarophotos-studio .xdecarophotos-studio__article-check{align-items:flex-end}
.xdecarophotos-studio .xdecarophotos-studio__article-check>.xdecaro-field{margin:0;min-width:0;max-inline-size:100%}
.xdecarophotos-studio .xdecarophotos-studio__article-check .input-group{min-block-size:calc(var(--xdecaro-space-6) + var(--xdecaro-space-5))}
.xdecarophotos-studio .xdecarophotos-studio__leave{padding:0;max-inline-size:calc(100vw - var(--xdecaro-space-4));max-block-size:90dvh}
.xdecarophotos-studio .xdecarophotos-studio__leave::backdrop{background:var(--xdecaro-color-backdrop)}
.xdecarophotos-studio .xdecarophotos-studio__leave h2,.xdecarophotos-studio .xdecarophotos-studio__leave p{margin:0}
.xdecarophotos-studio .xdecarophotos-studio__leave .xdecaro-modal__footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--xdecaro-space-2)}

.xdecarophotos-studio [data-xdecaro-selection-help]{white-space:pre-line}

/* Small visible affordance inside the unchanged-size accessible selection target. */
.xdecarophotos-studio .xdecarophotos-studio__selection-previews [data-xdecaro-selection-remove]{inline-size:calc(var(--xdecaro-space-6) + var(--xdecaro-space-5));min-inline-size:calc(var(--xdecaro-space-6) + var(--xdecaro-space-5));min-block-size:calc(var(--xdecaro-space-6) + var(--xdecaro-space-5));padding:0;border:0;background:transparent;font-weight:400}
.xdecarophotos-studio .xdecarophotos-studio__selection-close-icon{display:inline-grid;place-items:center;inline-size:var(--xdecaro-space-6);block-size:var(--xdecaro-space-6);border:1px solid var(--xdecaro-color-border);border-radius:var(--xdecaro-radius-sm);background:var(--xdecaro-color-surface);color:var(--xdecaro-color-text);font-size:var(--xdecaro-font-size-sm);font-weight:400;line-height:1}
.xdecarophotos-studio .xdecarophotos-studio__selection-previews [data-xdecaro-selection-remove]:hover .xdecarophotos-studio__selection-close-icon{background:var(--xdecaro-color-surface-subtle)}

/* Approved local selection layout; Core remains the sole control/theme system. */
.xdecarophotos-studio .xdecarophotos-studio__selection{container-type:inline-size;container-name:xdecarophotos-selection}
@container xdecarophotos-selection (max-width:43.99rem){.xdecarophotos-studio .xdecarophotos-studio__selection-previews{grid-template-columns:minmax(0,1fr)}}
.xdecarophotos-studio .xdecarophotos-studio__selection-thumb{position:relative;min-width:0}
.xdecarophotos-studio .xdecarophotos-studio__selection-open{display:grid;inline-size:100%;padding:0;gap:0;overflow:hidden;white-space:normal;min-width:0;font-weight:400}
.xdecarophotos-studio .xdecarophotos-studio__selection-open>span:last-child{padding:var(--xdecaro-space-1);font-size:var(--xdecaro-font-size-sm)}
.xdecarophotos-studio .xdecarophotos-studio__selection-placeholder{place-items:center;aspect-ratio:4/3;padding:var(--xdecaro-space-2);font-size:var(--xdecaro-font-size-sm);color:var(--xdecaro-color-muted);background:var(--xdecaro-color-surface-subtle)}
.xdecarophotos-studio .xdecarophotos-studio__selection-previews figcaption{display:grid;gap:var(--xdecaro-space-2);min-width:0}
.xdecarophotos-studio .xdecarophotos-studio__selection-card-heading{display:flex;flex-wrap:wrap;align-items:start;gap:var(--xdecaro-space-2)}
.xdecarophotos-studio .xdecarophotos-studio__selection-card-heading .xdecaro-badge{margin-inline-start:auto}
.xdecarophotos-studio .xdecarophotos-studio__selection-card-heading h3{font-size:var(--xdecaro-font-size);margin:0;overflow-wrap:anywhere}
.xdecarophotos-studio .xdecarophotos-studio__selection-previews figcaption p{white-space:pre-line;margin:0;color:var(--xdecaro-color-muted)}
.xdecarophotos-studio .xdecarophotos-studio__selection-dialog{padding:0;inline-size:min(52rem,100%);max-inline-size:calc(100vw - var(--xdecaro-space-4));max-block-size:90dvh}
.xdecarophotos-studio .xdecarophotos-studio__selection-dialog::backdrop{background:var(--xdecaro-color-backdrop)}
.xdecarophotos-studio .xdecarophotos-studio__selection-dialog .xdecaro-modal__header{display:flex;align-items:center;justify-content:space-between;gap:var(--xdecaro-space-3)}
.xdecarophotos-studio .xdecarophotos-studio__selection-dialog :where(h2,h3){margin-block:0 var(--xdecaro-space-2)}
.xdecarophotos-studio .xdecarophotos-studio__local-close{padding:0;min-inline-size:calc(var(--xdecaro-space-6) + var(--xdecaro-space-5));border:0;background:transparent}
.xdecarophotos-studio .xdecarophotos-studio__local-image{display:grid;place-items:center;margin-block-end:var(--xdecaro-space-4);background:var(--xdecaro-color-surface-subtle);border-radius:var(--xdecaro-radius-sm)}
.xdecarophotos-studio .xdecarophotos-studio__local-image img{max-inline-size:100%;max-block-size:40dvh;object-fit:contain}
.xdecarophotos-studio .xdecarophotos-studio__local-metadata{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:0 var(--xdecaro-space-4);margin:0}
.xdecarophotos-studio .xdecarophotos-studio__local-metadata>div{display:flex;justify-content:space-between;align-items:start;gap:var(--xdecaro-space-3);padding-block:var(--xdecaro-space-2);border-block-end:1px solid var(--xdecaro-color-border);min-width:0;overflow-wrap:anywhere}
.xdecarophotos-studio .xdecarophotos-studio__local-metadata dt{color:var(--xdecaro-color-muted)}
.xdecarophotos-studio .xdecarophotos-studio__local-metadata dd{margin:0;text-align:end;min-width:0}
.xdecarophotos-studio [data-xdecaro-local-reason]{white-space:pre-line;margin-block-end:0}
.xdecarophotos-studio .xdecarophotos-studio__selection-dialog .xdecaro-modal__footer{display:flex;justify-content:flex-end}

.xdecarophotos-studio .xdecarophotos-studio__selection-placeholder:not([hidden]){display:grid}

/* Local selection comparison uses existing Core semantic badges and spacing. */
.xdecarophotos-studio .xdecarophotos-studio__selection-summary{display:grid;gap:var(--xdecaro-space-2);min-inline-size:0}
.xdecarophotos-studio .xdecarophotos-studio__selection-comparison{display:flex;flex-wrap:wrap;gap:var(--xdecaro-space-2);min-inline-size:0}

/* Photos manual controls: layout only, using the existing Core controls and tokens. */
.xdecarophotos-studio .xdecarophotos-studio__manual-adjustments{margin:0;padding:0;border:0;min-inline-size:0}
.xdecarophotos-studio .xdecarophotos-studio__manual-adjustments legend{font-size:var(--xdecaro-font-size);font-weight:600;margin-block-end:var(--xdecaro-space-2)}
.xdecarophotos-studio .xdecarophotos-studio__manual-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--xdecaro-space-2) var(--xdecaro-space-4);margin-block-end:var(--xdecaro-space-2)}
.xdecarophotos-studio .xdecarophotos-studio__manual-grid label>span{display:flex;justify-content:space-between;gap:var(--xdecaro-space-2)}
.xdecarophotos-studio .xdecarophotos-studio__manual-grid output{font-variant-numeric:tabular-nums;color:var(--xdecaro-color-muted)}
@media(max-width:800px){.xdecarophotos-studio .xdecarophotos-studio__manual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.xdecarophotos-studio .xdecarophotos-studio__manual-grid{grid-template-columns:minmax(0,1fr)}}

.xdecarophotos-studio .xdecarophotos-studio__review-viewport{margin-block-start:var(--xdecaro-space-3);max-block-size:52dvh;max-inline-size:100%;overflow:auto;min-inline-size:0}
.xdecarophotos-studio [data-xdecaro-review-scale="actual"] .xdecarophotos-studio__review-viewport canvas{max-width:none;max-height:none}

/* Photos-only multiarticle arrangement; card, controls and compact badges are Core primitives. */
.xdecarophotos-article-publication__list{list-style:none;margin:var(--xdecaro-space-3) 0;padding:0;border-block-start:1px solid var(--xdecaro-color-border)}
.xdecarophotos-article-publication__row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:var(--xdecaro-space-4);padding-block:var(--xdecaro-space-3);border-block-end:1px solid var(--xdecaro-color-border)}
.xdecarophotos-article-publication__identity,.xdecarophotos-article-publication__actions{min-inline-size:0;max-inline-size:100%}
.xdecarophotos-article-publication__identity h3{font-size:var(--xdecaro-font-size);margin:0 0 var(--xdecaro-space-2);overflow-wrap:anywhere}
.xdecarophotos-article-publication__identity .xdecaro-help{margin-block:var(--xdecaro-space-2) 0}
.xdecarophotos-article-publication__states{display:flex;flex-wrap:wrap;align-items:center;gap:var(--xdecaro-space-1)}
.xdecarophotos-article-publication__states .xdecaro-badge{white-space:normal;max-inline-size:100%;overflow-wrap:anywhere}
.xdecarophotos-article-publication__actions{display:grid;gap:var(--xdecaro-space-2);justify-items:end}
.xdecarophotos-article-publication__actions form{display:flex;flex-wrap:wrap;gap:var(--xdecaro-space-2);margin:0}
.xdecarophotos-article-publication__remove{overflow-wrap:anywhere}
.xdecarophotos-article-publication__pages{display:flex;flex-wrap:wrap;gap:var(--xdecaro-space-2);margin-block:var(--xdecaro-space-3)}
@media(max-width:64rem){.xdecarophotos-article-publication__row{grid-template-columns:minmax(0,1fr)}.xdecarophotos-article-publication__actions{justify-items:start}}


/* Approved guided recipe flow: local composition of existing Core buttons and tokens. */
.xdecarophotos-studio[data-xdecaro-recipe-studio] .xdecarophotos-studio__guided-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--xdecaro-space-2);margin-block:var(--xdecaro-space-1);min-inline-size:0}
.xdecarophotos-studio[data-xdecaro-recipe-studio] .xdecarophotos-studio__guided-nav>.xdecaro-button{justify-content:flex-start;gap:var(--xdecaro-space-2);white-space:normal;text-align:start;min-inline-size:0;overflow-wrap:anywhere}
.xdecarophotos-studio[data-xdecaro-recipe-studio] .xdecarophotos-studio__guided-nav>[aria-current=step]{border-color:var(--xdecaro-color-primary);box-shadow:inset 0 -2px var(--xdecaro-color-primary);font-weight:600}
.xdecarophotos-studio[data-xdecaro-recipe-studio] .xdecarophotos-studio__guided-format-footer:not([hidden]){display:flex;justify-content:flex-end;margin-block-start:var(--xdecaro-space-3)}
/* Room for the full corner targets; geometry remains anchored to the inner viewport. */
.xdecarophotos-studio[data-xdecaro-recipe-studio] .xdecarophotos-studio__crop-stage{position:relative;display:grid;justify-items:center;inline-size:100%;min-inline-size:0;box-sizing:border-box;padding:calc((var(--xdecaro-space-8) + var(--xdecaro-space-3))/2)}
.xdecarophotos-studio[data-xdecaro-recipe-studio] .xdecarophotos-studio__crop-frame{box-shadow:0 0 0 100vmax rgb(0 0 0 / 62%)}
.xdecarophotos-studio[data-xdecaro-recipe-studio] .xdecarophotos-studio__crop-handles{position:absolute;inset:0;pointer-events:none;z-index:1;gap:var(--xdecaro-space-2)}
.xdecarophotos-studio[data-xdecaro-recipe-studio] .xdecarophotos-studio__crop-handle{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);inline-size:calc(var(--xdecaro-space-8) + var(--xdecaro-space-3));block-size:calc(var(--xdecaro-space-8) + var(--xdecaro-space-3));min-inline-size:calc(var(--xdecaro-space-8) + var(--xdecaro-space-3));min-block-size:calc(var(--xdecaro-space-8) + var(--xdecaro-space-3));padding:0;pointer-events:auto;touch-action:none}
.xdecarophotos-studio[data-xdecaro-recipe-studio] [data-xdecaro-crop-handle=nw],.xdecarophotos-studio[data-xdecaro-recipe-studio] [data-xdecaro-crop-handle=se]{cursor:nwse-resize}
.xdecarophotos-studio[data-xdecaro-recipe-studio] [data-xdecaro-crop-handle=ne],.xdecarophotos-studio[data-xdecaro-recipe-studio] [data-xdecaro-crop-handle=sw]{cursor:nesw-resize}
.xdecarophotos-studio[data-xdecaro-recipe-studio] .xdecarophotos-studio__crop-handles[data-handles-external=true]{position:static;inset:auto;display:grid;grid-template-columns:repeat(4,minmax(calc(var(--xdecaro-space-8) + var(--xdecaro-space-3)),1fr));gap:var(--xdecaro-space-2);justify-items:center;inline-size:100%;margin-block-start:var(--xdecaro-space-3);pointer-events:auto}
/* Override only geometry written inline for the same controls when the frame is too small. */
.xdecarophotos-studio[data-xdecaro-recipe-studio] [data-handles-external=true]>.xdecarophotos-studio__crop-handle{position:static;left:auto;top:auto;transform:none}
.xdecarophotos-studio[data-xdecaro-recipe-studio] .xdecarophotos-studio__resize-help{margin-block:var(--xdecaro-space-2);overflow-wrap:anywhere}
.xdecarophotos-studio[data-xdecaro-recipe-studio] .xdecarophotos-studio__quick-preview:not([hidden]){display:grid;justify-items:center;gap:var(--xdecaro-space-2);inline-size:100%;min-inline-size:0;margin:var(--xdecaro-space-3) 0 0;padding-block-start:var(--xdecaro-space-3);border-block-start:1px solid var(--xdecaro-color-border)}
.xdecarophotos-studio[data-xdecaro-recipe-studio] .xdecarophotos-studio__quick-preview>figcaption{font-weight:600;text-align:center}
.xdecarophotos-studio[data-xdecaro-recipe-studio] .xdecarophotos-studio__quick-preview>canvas{display:block;inline-size:auto;max-inline-size:100%;block-size:auto;max-block-size:32dvh;touch-action:auto}
.xdecarophotos-studio[data-xdecaro-recipe-studio] .xdecarophotos-studio__quick-preview>:where(output,p){margin:0;max-inline-size:100%;text-align:center;overflow-wrap:anywhere}
/* Query the editing container, including space lost to the Joomla sidebar or zoom. */
.xdecarophotos-studio[data-xdecaro-guided-stage] .xdecarophotos-format-composer__body{container:xdecarophotos-crop/inline-size}
@container xdecarophotos-crop (min-width:56rem){
 .xdecarophotos-studio[data-xdecaro-guided-stage] .xdecarophotos-studio__canvas-wrap{grid-template-columns:minmax(0,1fr) minmax(12rem,22%);column-gap:var(--xdecaro-space-6);align-items:start}
 .xdecarophotos-studio[data-xdecaro-guided-stage] .xdecarophotos-studio__crop-stage{grid-column:1;grid-row:1}
 .xdecarophotos-studio[data-xdecaro-guided-stage] .xdecarophotos-studio__resize-help{grid-column:1;grid-row:2}
 .xdecarophotos-studio[data-xdecaro-guided-stage] .xdecarophotos-studio__quick-preview:not([hidden]){grid-column:2;grid-row:1/span 2;margin:0;padding-block-start:0;border-block-start:0;padding-inline-start:var(--xdecaro-space-3);border-inline-start:1px solid var(--xdecaro-color-border);box-sizing:border-box}
}
.xdecarophotos-studio[data-xdecaro-recipe-studio] :where([data-xdecaro-guided-step],[data-xdecaro-crop-handle]):focus-visible{outline:2px solid var(--xdecaro-color-primary);outline-offset:2px}
@media(max-width:480px){.xdecarophotos-studio[data-xdecaro-recipe-studio] .xdecarophotos-studio__guided-nav{grid-template-columns:minmax(0,1fr)}}

.xdecarophotos-studio[data-xdecaro-recipe-studio] [data-xdecaro-crop-handle=nw] .icon-arrow-up{transform:rotate(-45deg)}
.xdecarophotos-studio[data-xdecaro-recipe-studio] [data-xdecaro-crop-handle=ne] .icon-arrow-up{transform:rotate(45deg)}
.xdecarophotos-studio[data-xdecaro-recipe-studio] [data-xdecaro-crop-handle=sw] .icon-arrow-up{transform:rotate(-135deg)}
.xdecarophotos-studio[data-xdecaro-recipe-studio] [data-xdecaro-crop-handle=se] .icon-arrow-up{transform:rotate(135deg)}
@media(max-width:480px){.xdecarophotos-studio[data-xdecaro-recipe-studio] .xdecarophotos-studio__crop-handles[data-handles-external=true]{grid-template-columns:repeat(2,minmax(calc(var(--xdecaro-space-8) + var(--xdecaro-space-3)),1fr))}}
.xdecarophotos-studio[data-xdecaro-recipe-studio] :is([data-xdecaro-crop-handles],[data-xdecaro-quick-preview],[data-xdecaro-guided-format-footer])[hidden]{display:none}

/* Format comparison reuses the same Working; only slot layout is Photos-owned. */
.xdecarophotos-studio [data-xdecaro-guided-formats]>button{grid-template-rows:auto auto auto auto;row-gap:var(--xdecaro-space-2)}
.xdecarophotos-studio [data-xdecaro-guided-formats]>button>span:first-child{grid-row:2;align-self:start}
.xdecarophotos-studio [data-xdecaro-guided-formats] .xdecarophotos-studio__format-preview{grid-row:1;display:grid;place-items:center;inline-size:100%;--xdecarophotos-format-height:calc(var(--xdecaro-space-8) + var(--xdecaro-space-8) + var(--xdecaro-space-4));block-size:var(--xdecarophotos-format-height);min-inline-size:0;overflow:hidden;border-radius:var(--xdecaro-radius-sm);background:var(--xdecaro-color-surface-subtle)}
.xdecarophotos-studio [data-xdecaro-guided-formats] .xdecarophotos-studio__format-preview>canvas:not([hidden]){display:block;max-inline-size:100%;max-block-size:none;inline-size:min(100%,calc(var(--xdecarophotos-format-height) * var(--xdecarophotos-format-aspect,1)));block-size:auto;object-fit:contain}
.xdecarophotos-studio [data-xdecaro-guided-formats] [data-xdecaro-format-placeholder]{font-weight:400;line-height:var(--xdecaro-line-height);text-align:center;color:var(--xdecaro-color-muted);overflow-wrap:anywhere}
.xdecarophotos-studio [data-xdecaro-guided-formats] .xdecarophotos-studio__format-dimensions{grid-row:3;font-weight:400;color:var(--xdecaro-color-muted)}
.xdecarophotos-studio [data-xdecaro-guided-formats]>button>.xdecaro-badge{grid-row:4}
.xdecarophotos-studio [data-xdecaro-guided-format-footer]:not([hidden]){flex-wrap:wrap;align-items:center;gap:var(--xdecaro-space-3)}
.xdecarophotos-studio [data-xdecaro-guided-format-footer]>.xdecaro-help{flex:1 1 18rem;margin:0}

.xdecarophotos-studio .xdecarophotos-studio__save-summary{display:flex;flex-wrap:wrap;align-items:center;gap:var(--xdecaro-space-2) var(--xdecaro-space-3);margin-block:0 var(--xdecaro-space-2)}
.xdecarophotos-studio .xdecarophotos-studio__save-summary>.xdecaro-help{margin:0}
.xdecarophotos-studio .xdecarophotos-studio__active-variant:not([hidden]){display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--xdecaro-space-2);min-inline-size:0}
.xdecarophotos-studio [data-xdecaro-active-variant-label]{overflow-wrap:anywhere}

/* Preserve Library cover geometry; files come only from persisted Thumbnail IDs. */
.xdecarophotos-library .xdecarophotos-library-thumbnail{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;overflow:hidden;background:var(--xdecaro-color-surface-subtle);border-radius:var(--xdecaro-radius-sm)}
.xdecarophotos-library .xdecarophotos-library-thumbnail>img{position:relative;display:block;inline-size:100%;block-size:100%;object-fit:contain;margin:0}
.xdecarophotos-library .xdecarophotos-library-thumbnail__placeholder{position:absolute;inset:0;display:grid;place-items:center;color:var(--xdecaro-color-muted)}
.xdecarophotos-library .xdecarophotos-grid-card__cover>.xdecarophotos-library-thumbnail--grid{inline-size:100%;block-size:100%;border-radius:0}
.xdecarophotos-library [data-xdecaro-thumbnail-placeholder][hidden],.xdecarophotos-library [data-xdecaro-thumbnail-image][hidden]{display:none}

/* Studio dossier: private page composition of existing Core cards/buttons/tokens. */
.xdecarophotos-studio[data-xdecaro-studio-dossier] .xdecarophotos-studio__dossier-layout{display:grid;grid-template-columns:minmax(10rem,14rem) minmax(0,1fr);gap:var(--xdecaro-space-5);align-items:start;container:xdecarophotos-dossier/inline-size}
.xdecarophotos-studio__dossier-sidebar{min-inline-size:0}
.xdecarophotos-studio__identity{display:grid;gap:var(--xdecaro-space-3);padding:var(--xdecaro-space-4);text-align:center}
.xdecarophotos-studio__identity>canvas{inline-size:100%;block-size:auto;aspect-ratio:1;max-inline-size:10rem;justify-self:center;background:var(--xdecaro-color-surface-subtle);border-radius:var(--xdecaro-radius-sm)}
.xdecarophotos-studio__identity>.xdecaro-help{display:grid;gap:var(--xdecaro-space-1);margin:0;overflow-wrap:anywhere}
.xdecarophotos-studio__identity [data-xdecaro-dossier-dimensions]{white-space:nowrap}
.xdecarophotos-studio__dossier-nav{display:grid;gap:var(--xdecaro-space-1);padding:var(--xdecaro-space-3);border-block-start:1px solid var(--xdecaro-color-border)}
.xdecarophotos-studio__dossier-nav>.xdecaro-suite__eyebrow{margin-block:var(--xdecaro-space-4) var(--xdecaro-space-2);padding-inline:var(--xdecaro-space-3);font-size:var(--xdecaro-font-size-sm);font-weight:650;color:var(--xdecaro-color-muted)}
.xdecarophotos-studio__dossier-nav>.xdecaro-button{justify-content:flex-start;gap:var(--xdecaro-space-2);min-block-size:2.75rem;padding:var(--xdecaro-space-2) var(--xdecaro-space-3);border-color:transparent;border-radius:var(--xdecaro-radius-sm);background:transparent;box-shadow:none;color:var(--xdecaro-color-muted);font-weight:400;white-space:normal;text-align:start;overflow-wrap:anywhere}
.xdecarophotos-studio__dossier-nav>.xdecaro-button>[aria-hidden=true]{flex:0 0 var(--xdecaro-space-5);text-align:center}
.xdecarophotos-studio__dossier-nav>:is([aria-current=page],[aria-pressed=true]){border-color:var(--xdecaro-color-primary-border);background:var(--xdecaro-color-primary-soft);color:var(--xdecaro-color-primary-text);font-weight:700;box-shadow:none}
.xdecarophotos-studio__dossier-main{display:grid;gap:var(--xdecaro-space-4);min-inline-size:0}
.xdecarophotos-studio__dossier-main .xdecaro-card__header>.xdecaro-suite__eyebrow{display:block;margin-block-end:var(--xdecaro-space-2)}
.xdecarophotos-studio[data-xdecaro-studio-dossier] .xdecarophotos-studio__metadata{margin-block:0}
.xdecarophotos-studio[data-xdecaro-studio-dossier] .xdecarophotos-studio__editor{display:block}
.xdecarophotos-studio[data-xdecaro-studio-dossier] [data-xdecaro-guided-formats]{grid-template-columns:repeat(3,minmax(0,1fr));margin:0;gap:var(--xdecaro-space-2)}
/* Overview cards keep the existing recipe canvases and Core button/badge semantics. */
.xdecarophotos-studio[data-xdecaro-studio-dossier] [data-xdecaro-guided-formats]>button{padding:0;min-inline-size:0;white-space:normal;overflow-wrap:anywhere;grid-template-rows:auto auto auto 1fr;grid-template-columns:minmax(0,1fr);justify-content:stretch;align-content:stretch;overflow:hidden;background:var(--xdecaro-color-surface)}
.xdecarophotos-studio[data-xdecaro-studio-dossier] [data-xdecaro-guided-formats]>button[aria-pressed]{border-color:var(--xdecaro-color-border);outline:none;box-shadow:none}
.xdecarophotos-studio[data-xdecaro-studio-dossier] [data-xdecaro-guided-formats]>button:hover{background:var(--xdecaro-color-surface-subtle)}
.xdecarophotos-studio[data-xdecaro-studio-dossier] [data-xdecaro-guided-formats]>button:focus-visible{outline:2px solid var(--xdecaro-color-primary);outline-offset:2px;box-shadow:none}
.xdecarophotos-studio[data-xdecaro-studio-dossier] [data-xdecaro-guided-formats] .xdecarophotos-studio__format-preview{--xdecarophotos-format-height:calc(var(--xdecaro-space-8) * 3 + var(--xdecaro-space-2));block-size:calc(var(--xdecarophotos-format-height) + var(--xdecaro-space-3) * 2 + 1px);padding:var(--xdecaro-space-3);border-radius:0;border-block-end:1px solid var(--xdecaro-color-border)}
.xdecarophotos-studio[data-xdecaro-studio-dossier] [data-xdecaro-guided-formats]>button>span:first-child{margin:var(--xdecaro-space-3) var(--xdecaro-space-3) 0}
.xdecarophotos-studio[data-xdecaro-studio-dossier] [data-xdecaro-guided-formats] .xdecarophotos-studio__format-dimensions{margin:0 var(--xdecaro-space-3)}
.xdecarophotos-studio[data-xdecaro-studio-dossier] [data-xdecaro-guided-formats] .xdecaro-badge{margin:0 var(--xdecaro-space-3) var(--xdecaro-space-3);white-space:normal;max-inline-size:calc(100% - var(--xdecaro-space-3) * 2);overflow-wrap:anywhere}
.xdecarophotos-studio[data-xdecaro-studio-dossier] [data-xdecaro-guided-crop]{margin-block:var(--xdecaro-space-4) 0}
.xdecarophotos-studio[data-xdecaro-studio-dossier] .xdecarophotos-format-composer__body{grid-template-columns:minmax(0,1fr)}
.xdecarophotos-studio[data-xdecaro-studio-dossier] .xdecarophotos-format-composer__body .xdecarophotos-studio__controls{grid-column:1}
.xdecarophotos-studio[data-xdecaro-studio-dossier] .xdecarophotos-studio__canvas-wrap{grid-column:1;grid-template-columns:minmax(0,1fr);padding:0}
.xdecarophotos-studio[data-xdecaro-studio-dossier] .xdecarophotos-studio__dossier-nav>:focus-visible{outline:2px solid var(--xdecaro-color-primary);outline-offset:2px}
@container xdecarophotos-crop (min-width:44rem){
 .xdecarophotos-studio[data-xdecaro-studio-dossier] .xdecarophotos-studio__canvas-wrap{grid-template-columns:minmax(0,1fr) minmax(10rem,24%);gap:var(--xdecaro-space-4);align-items:start}
 .xdecarophotos-studio[data-xdecaro-studio-dossier] .xdecarophotos-studio__crop-stage{grid-column:1;grid-row:1}
 .xdecarophotos-studio[data-xdecaro-studio-dossier] .xdecarophotos-studio__resize-help{grid-column:1;grid-row:2}
 .xdecarophotos-studio[data-xdecaro-studio-dossier] .xdecarophotos-studio__quick-preview:not([hidden]){grid-column:2;grid-row:1/span 2;margin:0;padding-block-start:0;border-block-start:0;padding-inline-start:var(--xdecaro-space-3);border-inline-start:1px solid var(--xdecaro-color-border)}
}
@container xdecaro-suite (max-width:50rem){
 .xdecarophotos-studio[data-xdecaro-studio-dossier] .xdecarophotos-studio__dossier-layout{grid-template-columns:minmax(0,1fr)}
 .xdecarophotos-studio__dossier-sidebar{position:static}
 .xdecarophotos-studio__identity{grid-template-columns:auto minmax(0,1fr);text-align:start;align-items:center}
 .xdecarophotos-studio__identity>canvas{inline-size:var(--xdecaro-space-8);grid-row:1/span 2}
 .xdecarophotos-studio__dossier-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
 .xdecarophotos-studio__dossier-nav>.xdecaro-suite__eyebrow{grid-column:1/-1}
}
@container xdecarophotos-dossier (max-width:30rem){.xdecarophotos-studio[data-xdecaro-studio-dossier] [data-xdecaro-guided-formats]{grid-template-columns:repeat(2,minmax(0,1fr))}}

@container xdecarophotos-dossier (max-width:22rem){
 .xdecarophotos-studio[data-xdecaro-studio-dossier] [data-xdecaro-guided-formats],
 .xdecarophotos-studio[data-xdecaro-studio-dossier] .xdecarophotos-studio__dossier-nav{grid-template-columns:minmax(0,1fr)}
}

/* Approved three-row dossier layout. Existing handlers and media geometry are unchanged. */
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__workspace-title{display:none}
.xdecarophotos-studio[data-xdecaro-studio-rows][data-xdecaro-guided-stage=crop] .xdecarophotos-studio__dossier-main{row-gap:0}
.xdecarophotos-studio[data-xdecaro-studio-rows][data-xdecaro-guided-stage=crop] .xdecarophotos-studio__save-summary{margin:0;padding:var(--xdecaro-space-5);border:1px solid var(--xdecaro-color-border);border-radius:var(--xdecaro-radius-lg) var(--xdecaro-radius-lg) 0 0;background:var(--xdecaro-color-surface)}
.xdecarophotos-studio[data-xdecaro-studio-rows][data-xdecaro-guided-stage=crop] .xdecarophotos-studio__workspace-title{display:block;flex-basis:100%;margin:0}
.xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-guided-crop]{margin-block-start:0}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__canvas-wrap{padding:var(--xdecaro-space-5);border:1px solid var(--xdecaro-color-border);border-block-start:0;border-radius:0 0 var(--xdecaro-radius-lg) var(--xdecaro-radius-lg);background:var(--xdecaro-color-surface)}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__edit-tools{display:block;padding:0}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__tool-rows{display:grid;gap:var(--xdecaro-space-4);min-inline-size:0}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__tool-row{min-inline-size:0}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__tool-row+section{padding-block-start:var(--xdecaro-space-4);border-block-start:1px solid var(--xdecaro-color-border)}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__tool-row>h3{margin:0 0 var(--xdecaro-space-3);font:inherit;font-weight:700;color:var(--xdecaro-color-primary-text)}
.xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-studio-tool-row=framing]{container:xdecarophotos-studio-tools/inline-size}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__adjustment-toolbar{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:var(--xdecaro-space-4)}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__adjustment-toolbar>*{min-inline-size:0}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__adjustment-toolbar>.xdecarophotos-studio__buttons{align-self:end}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__zoom-control label{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--xdecaro-space-1) var(--xdecaro-space-2)}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__zoom-control output{justify-self:end}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__zoom-control input{grid-column:1/-1;inline-size:100%}
@container xdecarophotos-studio-tools (min-width:32rem){
 .xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__adjustment-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}
 .xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__adjustment-toolbar>:is(.xdecarophotos-studio__buttons,.xdecarophotos-studio__zoom-control){grid-column:1/-1}
}
@container xdecarophotos-studio-tools (min-width:44rem){
 .xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__adjustment-toolbar>:is(.xdecarophotos-studio__buttons,.xdecarophotos-studio__zoom-control){grid-column:auto}
}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__adjustment-toolbar>.xdecarophotos-studio__buttons{flex:1 1 19rem}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__zoom-control{flex:1 1 15rem;max-inline-size:none}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__tool-group{flex:1 1 13rem}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__tool-group:last-child{container:xdecarophotos-studio-position/inline-size}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__tool-group:last-child>.xdecarophotos-studio__buttons{display:grid;grid-template-columns:repeat(2,minmax(2.75rem,max-content));justify-content:start}
@container xdecarophotos-studio-position (min-width:16rem){
 .xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__tool-group:last-child>.xdecarophotos-studio__buttons{grid-template-columns:repeat(4,minmax(2.75rem,max-content))}
}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__manual-adjustments>legend{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%)}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__manual-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--xdecaro-space-3) var(--xdecaro-space-5)}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__options-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--xdecaro-space-3) var(--xdecaro-space-5);align-items:center}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__editor-options{display:contents}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__guide-panel:not([hidden]){display:contents}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__guide-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:1/-1;gap:var(--xdecaro-space-2) var(--xdecaro-space-5)}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__editor-footer{padding:var(--xdecaro-space-3) var(--xdecaro-space-5);border-block-start:1px solid var(--xdecaro-color-border)}
.xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-quick-preview]>[data-xdecaro-action=save-variant]{max-inline-size:100%;white-space:normal}
@container xdecarophotos-dossier (max-width:40rem){
 .xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__options-row,.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__guide-notes{grid-template-columns:minmax(0,1fr)}
 .xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__manual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container xdecarophotos-dossier (max-width:22rem){.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__manual-grid{grid-template-columns:minmax(0,1fr)}}

/* The hidden accordion summary must not add Atum details insets to this panel. */
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-format-composer{padding:0;margin:0}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-format-composer__body{border:0}

/* Private local format preview; same native dialog/Core shell as existing Photos previews. */
.xdecarophotos-studio .xdecarophotos-studio__format-dialog{inline-size:min(100% - var(--xdecaro-space-6),40rem);max-inline-size:100%}
.xdecarophotos-studio [data-xdecaro-format-dialog-canvas]{display:block;inline-size:auto;block-size:auto;max-inline-size:100%;max-block-size:60dvh;margin-inline:auto;object-fit:contain}

/* Local preview dismissal uses the existing Core danger token pair in both themes. */
.xdecarophotos-studio #photos-format-preview-dialog [data-xdecaro-format-dialog-close]{color:var(--xdecaro-color-danger);background:var(--xdecaro-color-danger-soft);border-color:var(--xdecaro-color-danger-border)}
.xdecarophotos-studio #photos-format-preview-dialog [data-xdecaro-format-dialog-close]:hover{border-color:var(--xdecaro-color-danger)}

/* The existing single quick preview spans the crop and all three control groups. */
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-format-composer{container:xdecarophotos-quick-composer/inline-size}
.xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-quick-workspace]{grid-template-columns:minmax(0,1fr);gap:var(--xdecaro-space-4);border:1px solid var(--xdecaro-color-border);border-block-start:0;border-radius:0 0 var(--xdecaro-radius-lg) var(--xdecaro-radius-lg);background:var(--xdecaro-color-surface);align-items:start}
.xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-quick-workspace]>.xdecarophotos-studio__canvas-wrap{grid-column:1;grid-row:2;grid-template-columns:minmax(0,1fr);border:0;border-radius:0;background:transparent}
.xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-quick-workspace]>.xdecarophotos-studio__edit-tools{grid-column:1;grid-row:3;margin:0;border:0;border-radius:0;box-shadow:none}
.xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-quick-workspace]>[data-xdecaro-quick-rail]:not([hidden]){--xdecarophotos-quick-compact:1;grid-column:1;grid-row:1;position:static;display:grid;grid-template-columns:3.5rem minmax(0,1fr);gap:var(--xdecaro-space-2) var(--xdecaro-space-3);align-self:start;align-items:center;justify-items:start;margin:0;padding:var(--xdecaro-space-3);inline-size:100%;min-inline-size:0;background:var(--xdecaro-color-surface);border:0;border-block-end:1px solid var(--xdecaro-color-border);box-sizing:border-box}
.xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-quick-rail][data-xdecaro-quick-mode=sticky]:not([hidden]){position:sticky;inset-block-start:var(--xdecarophotos-quick-top,0px);z-index:3;box-shadow:var(--xdecaro-shadow-sm)}
.xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-quick-rail]>figcaption{grid-column:2;grid-row:1;color:var(--xdecaro-color-primary-text);font-weight:700;text-align:center;justify-self:stretch;overflow-wrap:anywhere}
.xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-quick-rail]>[data-xdecaro-action=save-variant]{grid-column:2;grid-row:2;justify-self:center;max-inline-size:100%;white-space:normal;overflow-wrap:anywhere}
.xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-quick-rail]>[data-xdecaro-quick-canvas]{grid-column:1;grid-row:1/span 3;inline-size:3.5rem;max-inline-size:100%;block-size:auto;max-block-size:6rem;object-fit:contain;justify-self:center;touch-action:auto}
.xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-quick-rail]>output{grid-column:2;grid-row:3;text-align:start}
.xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-quick-rail]>p{grid-column:1/-1;grid-row:4;text-align:start}
.xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-quick-workspace] :is(button,input,select,textarea,a,[tabindex]){scroll-margin-block-start:var(--xdecarophotos-quick-clearance,0px)}
@container xdecarophotos-quick-composer (min-width:44rem){
 .xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-quick-workspace]{grid-template-columns:minmax(0,1fr) minmax(12rem,24%)}
 .xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-quick-workspace]>.xdecarophotos-studio__canvas-wrap{grid-row:1}
 .xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-quick-workspace]>.xdecarophotos-studio__edit-tools{grid-row:2}
 .xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-quick-workspace]>[data-xdecaro-quick-rail]:not([hidden]){--xdecarophotos-quick-compact:0;grid-column:2;grid-row:1/span 2;grid-template-columns:minmax(0,1fr);gap:var(--xdecaro-space-3);border-block-end:0;border-inline-start:1px solid var(--xdecaro-color-border);padding:var(--xdecaro-space-4) var(--xdecaro-space-3);align-items:start}
 .xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-quick-workspace]>[data-xdecaro-quick-rail]>:is(figcaption,button,canvas,output,p){grid-column:1;grid-row:auto}
 .xdecarophotos-studio[data-xdecaro-studio-rows] [data-xdecaro-quick-rail]>[data-xdecaro-quick-canvas]{inline-size:auto;max-block-size:24dvh;max-inline-size:100%}
}

/* Existing Studio actions and collection forms, operator correction only. */
.xdecarophotos-studio .xdecarophotos-studio__save-summary{padding:var(--xdecaro-space-4);margin-block-end:var(--xdecaro-space-4)}
.xdecarophotos-studio .xdecarophotos-studio__save-summary>.xdecaro-help{flex-basis:100%;overflow-wrap:anywhere}
.xdecarophotos-studio .xdecaro-card .xdecarophotos-studio__save-summary{padding:0;border:0;box-shadow:none;background:transparent}
.xdecarophotos-studio[data-xdecaro-studio-rows][data-xdecaro-guided-stage=crop] .xdecarophotos-studio__save-summary{padding:var(--xdecaro-space-4);box-shadow:none}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__editor-footer{display:grid;grid-template-columns:minmax(0,1fr);justify-content:start;align-items:start;gap:var(--xdecaro-space-2) var(--xdecaro-space-4)}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__editor-footer>button{justify-self:start;max-inline-size:100%;white-space:normal}
.xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__editor-footer [data-xdecaro-role=variant-status]{margin:0;min-inline-size:0;overflow-wrap:anywhere;align-self:center}
@container xdecarophotos-quick-composer (min-width:36rem){
 .xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__editor-footer{grid-template-columns:auto minmax(0,1fr)}
 .xdecarophotos-studio[data-xdecaro-studio-rows] .xdecarophotos-studio__editor-footer>[data-xdecaro-new-preview]{grid-column:1/-1}
}
.xdecarophotos-studio #photos-format-preview-dialog>.xdecaro-modal__footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--xdecaro-space-3)}
.xdecarophotos-studio #photos-format-preview-dialog>.xdecaro-modal__footer>button{min-inline-size:0;max-inline-size:100%;white-space:normal;overflow-wrap:anywhere}
.xdecarophotos-studio #photos-format-preview-dialog>.xdecaro-modal__footer>[data-xdecaro-format-dialog-edit]{margin-inline-start:auto}
.xdecarophotos-gallery-editor .xdecarophotos-gallery-area{scroll-margin-block-start:var(--xdecaro-space-6)}
.xdecarophotos-gallery-editor .xdecarophotos-gallery-area>.xdecaro-card__header,.xdecarophotos-gallery-editor .xdecarophotos-gallery-area>.xdecaro-card__body{padding:var(--xdecaro-space-4)}
.xdecarophotos-gallery-editor .xdecarophotos-gallery-area>.xdecaro-card__body{display:grid;gap:var(--xdecaro-space-4)}
.xdecarophotos-gallery-editor .xdecarophotos-gallery-editor__section{min-inline-size:0;overflow:visible}
.xdecarophotos-gallery-editor .xdecarophotos-gallery-editor__section>.xdecaro-card__body{padding:0}
.xdecarophotos-gallery-editor .xdecarophotos-gallery-editor__section+.xdecarophotos-gallery-editor__section{padding-block-start:var(--xdecaro-space-4);border-block-start:1px solid var(--xdecaro-color-border)}
.xdecarophotos-gallery-editor .xdecarophotos-gallery-area>.xdecaro-card__header>.xdecaro-card__title,.xdecarophotos-gallery-editor .xdecarophotos-gallery-editor__section>.xdecaro-card__body>.xdecaro-card__title{color:var(--xdecaro-color-primary-text)}
