.product-designer{border:1px solid #dfe5e2;border-radius:14px;padding:16px;margin:16px 0;background:#fff;min-width:0}.product-designer h2{font-size:17px;line-height:1.35;margin:0 0 12px;letter-spacing:0}.product-designer textarea{width:100%;min-height:92px;margin:0 0 10px;resize:vertical;font-size:16px}.product-designer [data-art-generate],.product-designer [data-art-approve]{background:#75ec16;color:#17390e}.product-designer [data-art-generate]:hover,.product-designer [data-art-approve]:hover{background:#66d10e}.art-alternatives,.art-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}.art-alternatives button,.art-actions button{font-size:13px}.art-message:empty{display:none}.art-message{font-size:13px;margin:10px 0 0}.art-message[data-error=true]{color:#a52d25}.product-designer [data-art-image]{display:block;max-width:100%;max-height:300px;object-fit:contain;margin:auto auto 12px}.product-designer [data-art-name]{display:block;overflow-wrap:anywhere;font-size:13px}.product-designer [data-art-check]{font-size:13px}.product-designer [hidden]{display:none!important}.product-designer[aria-busy=true]{opacity:.7}.art-pdf{display:grid;place-items:center;background:#f2f4f3;border-radius:10px;min-height:140px;color:#627269}.customer-art-library{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}.customer-art-library .card{padding:14px;min-width:0}.customer-art-library img{width:100%;aspect-ratio:1;object-fit:contain}.customer-art-library strong{display:block;overflow-wrap:anywhere;font-size:14px}.customer-art-library p{font-size:13px;margin:6px 0}.customer-art-library small,.customer-art-library article>a:last-child{display:block;margin-top:10px}

.storefront-body .product-designer [data-art-adapt]{background:var(--action-secondary,#c5f5ad);color:var(--action-ink,#103719)}
.storefront-body .product-designer [data-art-adapt]:hover{background:#b3ed96;color:#103719}


.art-history{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.art-history button{padding:6px;min-width:0;aspect-ratio:1}.art-history img{display:block;width:100%;height:100%;object-fit:contain}.product-designer details summary{font-size:13px;margin-top:16px}

.storefront-body .product-designer{background:var(--product-soft-background,#faf7f3);border:0;padding:12px 14px;margin:8px 0;overflow:visible}
.storefront-body .product-designer .art-alternatives{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;margin-top:10px}
.storefront-body .product-designer .art-alternatives button{display:flex;flex-direction:column;justify-content:center;align-items:center;background:#fffdf7;color:#514d44;border-radius:9px;font-size:11px!important;line-height:1.25!important;font-weight:500;padding:8px 3px!important;min-height:54px!important;height:auto!important;border:0;box-shadow:none;gap:5px!important;min-width:0;white-space:normal;text-align:center}
.storefront-body .product-designer .art-alternatives button:hover,.storefront-body .product-designer .art-alternatives button[aria-expanded=true]{color:#17390e;background:#e9eedc}
.product-designer svg{fill:none;stroke:currentColor;stroke-width:var(--ui-icon-stroke,2);stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.storefront-body .product-designer .art-alternatives svg{width:18px;height:18px}
.product-designer [data-art-history]{margin-top:10px}.product-designer [data-art-history-empty]{font-size:12px;color:#625b51}
.product-designer [data-art-preview]{display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:12px;align-items:center;background:#fffdf8;border-radius:10px;padding:12px}
.product-designer .art-preview-media{min-width:0;background:#f0eee8;border-radius:8px;overflow:hidden}
.product-designer [data-art-image]{width:100%;height:108px;max-height:108px;object-fit:contain;margin:0}
.product-designer .art-preview-info small{color:#746c60;font-size:11px}.product-designer [data-art-name]{font-size:12px;line-height:1.4;margin:3px 0}.product-designer [data-art-check]{font-size:12px;line-height:1.5;margin:5px 0 0;color:#5b635a}
.product-designer .art-actions{grid-column:1/-1;margin:0;gap:6px;flex-wrap:nowrap;justify-content:space-between}.product-designer .art-actions button{font-size:12px!important;padding:7px 9px!important;min-height:34px!important}
.product-designer .art-actions [data-art-replace]{font-size:11px!important;padding:5px 0!important;min-height:28px!important;background:transparent;color:#666c62;margin-right:auto}
.art-check-heading{display:flex;align-items:center;gap:7px;font-size:14px;line-height:1.35}.art-check-heading svg{width:23px;height:23px;color:#218341}.product-designer [data-art-preview][data-checked=true] .art-check-heading{color:#205b30}
.product-designer .art-actions [data-art-adapt] svg{width:16px;height:16px}.product-designer [data-art-preview][data-checked=false] .art-check-heading,.product-designer [data-art-preview] [data-art-warning-icon]{color:#ad4933}.product-designer [data-art-preview][data-checked=false] [data-art-check]{color:#934936}
.product-designer .art-later-state{display:flex;align-items:center;gap:12px;padding:14px 12px;border-radius:10px;background:#fffdf8}.art-later-state>svg{width:25px;height:25px;color:#707c61}.art-later-state strong{font-size:14px}.art-later-state p{font-size:12px;color:#6d7068;margin:4px 0 0;line-height:1.5}
.product-designer [data-art-history]{background:#fffdf8;padding:12px;border-radius:10px}.art-history-title{display:block;font-size:12px;margin-bottom:9px}.product-designer .art-history button{display:flex;flex-direction:column;background:#f1f2ee;border-radius:8px;overflow:hidden;padding:6px!important;gap:5px;aspect-ratio:auto}.product-designer .art-history img{height:86px}.art-history button>span{font-size:10px;line-height:1.3;overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}
.product-designer .art-message{display:flex;align-items:flex-start;gap:9px;background:#f0f1ed;border-radius:9px;padding:11px 12px;margin:10px 0 0;color:#535b50}.art-message>svg{width:18px;height:18px;margin-top:1px}.art-message>div{min-width:0}.art-message strong{display:block;font-size:12px;line-height:1.5}.art-message p{font-size:12px;line-height:1.5;margin:3px 0 0}.art-message[data-error=true]{background:#fff0ec;color:#983e31}
.storefront-body .configuration:has(.product-designer)>h1{margin-bottom:8px}
.storefront-body .configuration:has(.product-designer)>[data-before-quantity-options] .configuration-choice{margin-top:0;margin-bottom:0;padding-bottom:0}
.storefront-body .configuration:has(.product-designer)>[data-before-quantity-options] label{margin-bottom:0}
.product-designer [data-art-distribution]{margin-top:12px;min-width:0}.art-distribution-title{display:block;font-size:14px;margin-bottom:10px}.art-page-question,.art-allocation-row{background:#fffdf8;border-radius:10px;padding:12px;margin:8px 0;min-width:0}.art-page-question>p{font-size:13px;font-weight:600;margin:0 0 5px}.art-page-question small{display:block;color:#70766c;overflow-wrap:anywhere;margin-bottom:8px}.art-page-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px;max-height:260px;overflow-y:auto}.art-page-grid button{display:flex;flex-direction:column;padding:6px!important;min-width:0;font-size:11px!important;background:#f0f2eb}.art-page-grid img{height:80px;width:100%;object-fit:contain}.art-allocation-top{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:8px}.art-allocation-top button{font-size:11px!important;padding:4px!important;min-height:28px!important}.art-allocation-top button:hover{background:#b3261e!important;color:white!important}.art-allocation-part{display:flex;gap:8px;align-items:center;margin-bottom:8px}.art-allocation-part>img{width:48px;height:64px;object-fit:contain;flex:none}.art-allocation-part label{min-width:0;flex:1}.art-allocation-row label{display:block;font-size:11px;color:#636c5d}.art-allocation-row select,.art-allocation-row input{display:block;width:100%;min-width:0;margin-top:4px;font-size:13px}.art-allocation-row>label{max-width:155px}.art-allocation-error,.art-allocation-ok{font-size:12px;line-height:1.45;margin:8px 0}.art-allocation-error{color:#a23e28}.art-allocation-ok{color:#666}.product-designer .art-allocation-confirm{background:#75ec16;color:#17390e;margin-left:auto;display:flex}.art-allocation-confirm:disabled{opacity:.45}.art-page-question>button{font-size:12px!important;margin-top:5px;white-space:normal;max-width:100%}
@media(max-width:600px){.art-allocation-row select,.art-allocation-row input{font-size:16px}}
.art-allocation-fields{display:grid;grid-template-columns:minmax(0,1fr) 78px;gap:8px;align-items:center}.art-allocation-fields .art-allocation-part{grid-column:1;margin:0;min-width:0}.art-allocation-fields .art-allocation-quantity{grid-column:2;grid-row:1;min-width:0;margin:0}.art-allocation-fields .art-allocation-part>img{width:42px;height:48px;border-radius:5px}.art-allocation-fields label{margin:0!important}.art-allocation-fields select,.art-allocation-fields input{margin-top:0!important;height:48px}.art-allocation-fields .field-caption{font-size:10px}.art-allocation-fields select{font-size:12px;padding-right:20px}
@media(max-width:420px){.art-allocation-fields{grid-template-columns:minmax(0,1fr) 64px;gap:5px}.art-allocation-fields .art-allocation-part{gap:5px}.art-allocation-fields .art-allocation-part>img{width:32px}.art-allocation-fields select,.art-allocation-fields input{font-size:16px}}


.art-allocation-name{min-width:0;width:70%!important;border:0!important;background:transparent!important;padding:3px 0!important;height:30px!important;font-size:12px!important;font-weight:600}.art-allocation-name:focus{outline:1px solid #799b65!important}.art-allocation-part img,[data-art-image]{cursor:zoom-in}.art-history img{cursor:default}.art-library-zoom{cursor:zoom-in}.art-allocation-upsell{background:#75ec16!important;color:#17390e!important;font-size:12px!important}.art-zoom{width:min(900px,94vw);max-height:92dvh;box-sizing:border-box;border:0;border-radius:16px;padding:16px;overflow:auto}.art-zoom::backdrop{background:#0009}.art-zoom .popup-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.art-zoom .popup-heading strong{overflow-wrap:anywhere}.art-zoom>img{display:block;max-width:100%;max-height:75dvh;object-fit:contain;margin:auto}.art-zoom .popup-close{width:44px;height:44px;flex:none;border:0;border-radius:50%;font-size:24px}.art-allocation-row .art-allocation-name{margin:0}

.art-page-tile{display:flex;flex-direction:column;gap:4px;background:#f0f2eb;border-radius:8px;padding:5px}.art-page-tile>img{cursor:zoom-in}.art-page-tile button{justify-content:center;width:100%}

.art-page-tile label{display:flex!important;align-items:center;justify-content:center;gap:5px;font-size:12px!important;margin:0!important}.art-page-tile input[type=checkbox]{width:16px!important;height:16px!important;min-height:0!important;margin:0!important;accent-color:#e9a426}.art-page-tile>img{height:80px;width:100%;object-fit:contain}

.product-designer .art-alternatives[hidden]{display:none!important}
.product-designer .art-quantity-upsell{display:flex!important;width:max-content!important;margin-left:auto!important;border:0!important;border-radius:8px!important;min-height:28px!important;height:28px!important;padding:4px 12px!important;font-size:12px!important;background:#ffdf32!important;color:#d94b00!important;box-shadow:none!important}.product-designer .art-quantity-upsell:hover{background:#ffd21a!important;color:#bc3e00!important}
.product-designer .art-allocation-add:hover,.product-designer .art-allocation-add:focus-visible{background:#e9f3e3!important;color:#23672d!important}
.art-file-picker{position:relative;min-width:0;font-size:12px}.art-file-picker>summary{display:flex;align-items:center;min-height:48px;box-sizing:border-box;border:1px solid #bdc7bf;border-radius:9px;background:#fff;padding:8px 10px;cursor:pointer;list-style:none;gap:8px}.art-file-picker>summary::-webkit-details-marker{display:none}.art-file-picker>summary>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}.art-file-picker>summary:after{content:"";display:inline-block;width:14px;height:14px;flex:0 0 14px;background:currentColor;mask:url("/lucide-chevron-down.svg?v=1") center/contain no-repeat;border:0;margin:0 1px;transform:none}.art-file-menu{position:absolute;top:100%;left:0;width:max(100%,230px);max-width:calc(100vw - 48px);z-index:50;background:white;border:1px solid #dde2da;border-radius:9px;box-shadow:0 2px 5px #0002;padding:5px;max-height:280px;overflow:auto;box-sizing:border-box}.product-designer .art-file-menu button{display:flex!important;align-items:center;justify-content:flex-start;gap:8px!important;width:100%;background:white;color:#34463a;border:0;border-radius:5px;padding:8px!important;font-size:12px!important;min-height:34px!important;height:auto!important;text-align:left;white-space:normal;overflow-wrap:anywhere}.product-designer .art-file-menu button:hover,.product-designer .art-file-menu button[aria-current]{background:#edf4e8!important;color:#23672d!important}.art-file-menu button:nth-child(4){border-top:1px solid #e2e5de!important}.art-file-menu svg{width:16px;height:16px;flex:none}

.product-designer [data-art-distribution][hidden]{display:none!important}

.art-library-tile{display:flex;flex-direction:column;gap:5px;min-width:0}.art-library-name{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-designer .art-library-tile button{width:100%;font-size:11px!important}.product-designer .art-library-preview{height:95px!important;cursor:zoom-in}.art-library-preview img{width:100%;object-fit:contain}

.art-library-frame{position:relative;aspect-ratio:1;background:#f0f1ed;border-radius:9px;overflow:hidden;display:grid;place-items:center}.product-designer .art-history .art-library-frame>img{width:100%;height:100%;object-fit:contain}.art-library-controls{position:absolute;bottom:5px;left:5px;right:5px;display:flex;justify-content:space-between;gap:4px}.product-designer .art-history .art-library-controls button{display:flex;align-items:center;justify-content:center;width:32px!important;height:32px!important;min-height:32px!important;flex:none;padding:0!important;border-radius:50%;border:1px solid #dfe5db;box-shadow:0 1px 5px #0002;background:#fff;color:#31512b}.product-designer .art-history .art-library-controls .art-library-add{background:#75ec16;border-color:#75ec16}.product-designer .art-history .art-library-controls button:hover{background:#e7f3dd;color:#21471a}.product-designer .art-history .art-library-controls .art-library-add:hover{background:#66d10e}.art-library-controls svg{width:17px;height:17px}.art-library-zoom{cursor:zoom-in}@media(pointer:coarse){.product-designer .art-history .art-library-controls button{width:44px!important;height:44px!important;min-height:44px!important}}

/* Gallery thumbnails preserve the entire artwork inside a square. */
.product-designer .art-history .art-library-frame{aspect-ratio:1;position:relative;display:block;min-width:0}
.product-designer .art-history .art-library-frame>img{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain!important;object-position:center;margin:0!important;padding:0}
.product-designer .art-history .art-library-controls button{width:24px!important;height:24px!important;min-height:24px!important;box-shadow:0 1px 3px #0002}
.product-designer .art-library-controls svg{width:13px!important;height:13px!important}
.art-library-controls{bottom:4px;left:4px;right:4px}
@media(pointer:coarse){.product-designer .art-history .art-library-controls button{position:relative;width:28px!important;height:28px!important;min-height:28px!important}.art-library-controls button:after{content:'';position:absolute;inset:-8px}}

.art-page-question{display:flow-root}.product-designer .art-page-question .art-pages-apply{float:right;margin-top:8px!important;margin-bottom:0!important}.product-designer .art-page-question>button.link{min-height:28px!important;padding:4px 6px!important;font-size:11px!important}

.product-designer .art-allocation-row{padding:10px 12px}.art-allocation-top{margin:0 0 7px;min-height:24px}.art-name-control{display:flex;align-items:center;gap:4px;min-width:0;flex:1}.art-name-control>span{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-designer .art-name-control .art-name-edit{display:flex;align-items:center;justify-content:center;min-height:24px!important;height:24px!important;width:24px!important;padding:4px!important;background:transparent!important;color:#657262!important;border:0}.art-name-edit svg{width:13px;height:13px}.product-designer .art-name-control .art-name-edit:hover{background:#e8efdf!important;color:#28552b!important}.art-name-control .art-allocation-name{width:100%!important;margin:0!important}.art-name-control [hidden]{display:none!important}
.art-allocation-fields{align-items:end}.art-allocation-fields .art-allocation-part{align-items:end}.art-allocation-part>label{position:relative;padding-top:0!important}.art-allocation-part>label>.art-file-picker{margin-top:0!important}.art-allocation-part>label{font-size:0!important}.art-file-picker>summary{font-size:12px;height:48px;min-height:48px}.art-allocation-fields .art-allocation-quantity{align-self:end}.art-allocation-fields .art-allocation-part>img{align-self:end}
.art-allocation-balance{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.art-allocation-balance>p{margin:0;flex:1;min-width:0}.product-designer .art-allocation-balance .art-quantity-upsell{flex:none;margin:0!important;white-space:nowrap;font-size:11px!important;padding:4px 8px!important}

.art-part-caption{position:absolute;top:-6px;left:12px;padding:0 4px;background:#fffdf8;color:#636c5d;font-size:10px;line-height:12px;z-index:1}
.product-designer .art-file-picker>summary{margin:0!important}.product-designer .art-file-picker{margin:0!important}

/* Rename in place, without growing the card header. */
.product-designer .art-name-control{height:24px;min-height:24px;line-height:18px}
.product-designer .art-name-control .art-allocation-name{box-sizing:border-box;width:var(--art-name-width,90px)!important;max-width:100%;min-width:56px;min-height:18px!important;height:18px!important;line-height:18px!important;padding:0!important;margin:0!important;font-family:inherit;font-size:12px!important;font-weight:400;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;flex:0 1 auto}
.product-designer .art-name-control .art-allocation-name:focus{outline:none!important;border-bottom:1px solid #8da583!important}

.product-designer .art-name-control .art-name-edit svg{width:10px!important;height:10px!important}.product-designer .art-name-control .art-name-edit{width:20px!important;padding:5px!important}.art-name-control{overflow:hidden}

.art-organizer{margin-top:12px;border-top:1px solid #e7e3dc;padding-top:10px}.art-organizer-summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none}.art-organizer-summary::-webkit-details-marker{display:none}.art-organizer-summary>div{display:grid;gap:4px;flex:1;min-width:0}.art-organizer-summary strong{font-size:13px}.art-organizer-summary small{font-size:11px;color:#68716e}.art-organizer-summary:after{content:"";display:inline-block;width:16px;height:16px;flex:0 0 16px;background:currentColor;mask:url("/lucide-chevron-down.svg?v=1") center/contain no-repeat;border:0;}.art-organizer[open]>.art-organizer-summary:after{content:"";display:inline-block;width:16px;height:16px;flex:0 0 16px;background:currentColor;mask:url("/lucide-chevron-down.svg?v=1") center/contain no-repeat;border:0;}.art-organizer-thumbs{display:flex;gap:3px}.art-organizer-thumbs img{width:28px;height:28px;object-fit:contain;border-radius:4px;background:#f3f3f0}.art-organizer-body{display:grid;gap:8px;margin-top:10px}.art-library-controls{opacity:0;transition:opacity .15s}.art-library-frame:hover .art-library-controls,.art-library-frame:focus-within .art-library-controls{opacity:1}@media(hover:none){.art-library-controls{opacity:1}}

/* Keep validation below the picker and give the organizer one spacing rhythm. */
.product-designer .art-organizer-body{gap:8px;align-content:start}
.product-designer .art-organizer-body>.art-allocation-row,.product-designer .art-organizer-body>.art-page-question,.product-designer .art-organizer-body>.art-allocation-balance,.product-designer .art-organizer-body>.art-allocation-add{margin:0}
.product-designer .art-organizer-summary,.product-designer .art-file-picker>summary{margin-top:0}
.product-designer .art-allocation-add{justify-self:start;min-height:32px;padding:5px 0}
.product-designer .art-allocation-notice{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:8px;margin-top:8px;color:#98651e}
.art-allocation-notice>svg{width:16px;height:16px;margin-top:1px}
.product-designer .art-allocation-notice>.art-allocation-error{margin:0;color:inherit;font-size:12px;line-height:1.4}
.product-designer .art-allocation-notice>.art-allocation-adapt{grid-column:3;justify-self:end;min-height:34px!important;padding:7px 10px!important;font-size:12px!important;margin:0;white-space:nowrap}

/* Secondary actions use amber; green remains the forward/confirmation color. */
.storefront-body .product-designer :is(.art-allocation-adapt,.art-allocation-add,.art-quantity-upsell,.art-alternatives button,[data-art-adapt]){background:#fff2b3!important;color:#ad4b00!important;border-radius:8px;gap:6px;box-shadow:none}
.storefront-body .product-designer :is(.art-allocation-adapt,.art-allocation-add,.art-quantity-upsell,.art-alternatives button,[data-art-adapt]):is(:hover,:focus-visible){background:#ffe229!important;color:#943b00!important;filter:none}
.product-designer .art-allocation-add{padding:7px 10px!important}
@media(max-width:380px){.product-designer .art-allocation-notice{grid-template-columns:16px minmax(0,1fr)}.product-designer .art-allocation-notice>.art-allocation-adapt{grid-column:2;justify-self:end}}

/* Standalone actions end-align within their own column. */
.product-designer .art-organizer-body>.art-allocation-add{justify-self:end}
.art-deferred-thumb{display:inline-flex;align-items:center;justify-content:center;flex:none;width:42px;height:48px;border-radius:5px;background:#e9eae8;color:#788078;align-self:end}
.art-deferred-thumb>svg{width:20px;height:20px}
.art-organizer-thumbs .art-deferred-thumb{width:28px;height:28px;border-radius:4px}
.art-organizer-thumbs .art-deferred-thumb>svg{width:16px;height:16px}
.product-designer .art-allocation-quantity input[type=number]{appearance:auto;-moz-appearance:auto;padding-right:5px}
.product-designer .art-allocation-quantity input[type=number]::-webkit-inner-spin-button{opacity:1;appearance:auto}
@media(max-width:420px){.art-allocation-part>.art-deferred-thumb{width:32px}}

.art-library-carousel{display:grid;grid-template-columns:26px minmax(0,1fr) 26px;gap:5px;align-items:center;min-width:0}
.product-designer .art-library-carousel .art-history{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;min-width:0;overscroll-behavior-x:contain}
.art-library-carousel .art-history::-webkit-scrollbar{display:none}
.art-library-carousel .art-library-tile{flex:0 0 88px;scroll-snap-align:start}
.product-designer .art-carousel-arrow{display:flex;align-items:center;justify-content:center;padding:0!important;width:26px;min-width:26px;min-height:44px;font-size:24px!important;border:0;border-radius:7px;background:#fff2b3;color:#ad4b00}
.product-designer .art-carousel-arrow:hover{background:#ffe229;color:#943b00}
.product-designer .art-carousel-arrow:disabled{opacity:.3;cursor:default}

.art-carousel-arrow svg{width:16px;height:16px;flex:none}

/* Fit the complete artwork inside the viewport, including the dialog header. */
dialog.art-zoom[open]{display:flex;flex-direction:column;width:min(900px,94vw);height:90dvh;max-height:90dvh;overflow:hidden;gap:12px}
dialog.art-zoom .popup-heading{flex:0 0 auto;min-width:0;margin:0}
dialog.art-zoom .popup-heading strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
dialog.art-zoom>img{flex:1 1 0;min-height:0;min-width:0;width:100%;height:0;max-height:100%;object-fit:contain;margin:0}

dialog.art-zoom>.popup-body{display:flex;flex:1 1 0;min-height:0;min-width:0;overflow:hidden!important;padding:12px;box-sizing:border-box}
dialog.art-zoom>.popup-body>img{display:block;width:100%;height:100%;min-height:0;min-width:0;object-fit:contain;margin:0}

.art-single{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:12px;align-items:center;padding:12px;background:#fffdf8;border-radius:10px}.art-single-info{min-width:0}.art-single strong{font-size:13px}.art-single p{font-size:12px;line-height:1.4;margin:5px 0;color:#666}.art-single>img,.art-single>.art-deferred-thumb{width:88px;height:88px;object-fit:contain;border-radius:8px;background:#f0f1ed;cursor:zoom-in}.art-single-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.product-designer .art-single-actions button{font-size:11px!important;padding:6px 8px!important;min-height:32px}.art-single-actions button:last-child{margin-left:auto}

/* Upload/replacement is a secondary action in either artwork state. */
.product-designer .art-file-action,.product-designer .art-actions [data-art-replace]{background:#fff0a3;color:#bc6200;border-radius:8px;padding:6px 9px!important;min-height:32px!important}
.product-designer .art-file-action:hover,.product-designer .art-file-action:focus-visible,.product-designer .art-actions [data-art-replace]:hover,.product-designer .art-actions [data-art-replace]:focus-visible{background:#ffe12b;color:#a94d00}

/* Storefront palette: green is reserved for purchase/confirmation buttons. */
.storefront-body .art-check-heading svg,.storefront-body .product-designer [data-art-preview][data-checked=true] .art-check-heading{color:#666}
.storefront-body .product-designer .art-file-menu button:is(:hover,[aria-current]),.storefront-body .product-designer .art-name-control .art-name-edit:hover{background:#fff3cc!important;color:#ad4b00!important}
.storefront-body .product-designer .art-history .art-library-controls button{color:#666}
.storefront-body .product-designer .art-history .art-library-controls .art-library-add{background:#fff0a3;border-color:#e7c971;color:#ad4b00}
.storefront-body .product-designer .art-history .art-library-controls button:hover{background:#ffe229;color:#943b00}

/* Shared square previews: retain the complete artwork at its real ratio. */
.storefront-body .product-designer{--art-thumb-bg:#f1f1f1}
.product-designer .art-allocation-fields .art-allocation-part>img,.product-designer .art-allocation-part>.art-deferred-thumb{width:42px;height:42px;aspect-ratio:1;object-fit:contain;background:var(--art-thumb-bg)}
.product-designer .art-page-tile>img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:var(--art-thumb-bg)}
.product-designer .art-library-frame,.product-designer .art-single>img,.product-designer .art-single>.art-deferred-thumb,.product-designer .art-organizer-thumbs img,.product-designer .art-organizer-thumbs .art-deferred-thumb{background:var(--art-thumb-bg)}
.product-designer [data-art-image]{width:90px;height:90px;aspect-ratio:1;object-fit:contain;background:var(--art-thumb-bg)}
@media(max-width:420px){.product-designer .art-allocation-fields .art-allocation-part>img,.product-designer .art-allocation-part>.art-deferred-thumb{width:32px;height:32px}}

.product-designer .art-history button.art-library-frame{width:100%;height:auto;aspect-ratio:1;min-height:0!important;padding:0!important;background:#f1f1f1;border:1px solid transparent;border-radius:9px;cursor:pointer;display:grid;place-items:center}
.product-designer .art-history button.art-library-frame:is(:hover,:focus-visible){background:#f1f1f1;border-color:#e58a00;outline-offset:2px}

/* Technical artwork feedback: semantic colors are explicit exceptions to action colors. */
.art-check-notice{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px 10px;padding:10px 12px;border-radius:10px;align-items:start;font-size:12px;line-height:1.5}
.art-check-notice>svg{width:28px;height:28px;flex-shrink:0}
.art-check-notice .art-check-copy strong{font-size:13px;line-height:1.4;color:inherit}
.art-check-notice .art-check-copy p{font-size:12px;line-height:1.5;margin:4px 0 0;color:inherit}
.art-check-ok{color:#23743a;background:#edf7ee}.art-check-attention{color:#805700;background:#fff5cf}.art-check-error{color:#a3202d;background:#fff0f0}
.art-check-actions{grid-column:1/-1;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px}
.storefront-body .art-check-actions button{min-height:30px!important;height:auto!important;padding:6px 9px!important;font-size:11px!important;border-radius:7px;line-height:1.3!important}
.storefront-body .art-check-actions .art-check-purchase{background:#75ec16;color:#17390e}.storefront-body .art-check-actions .art-check-purchase:hover{background:#66d10e;color:#17390e}
.storefront-body .art-check-actions .art-check-adapt{background:#ffe445;color:#9b4b00}.storefront-body .art-check-actions .art-check-adapt:hover{background:#ffdc16;color:#853d00}

.product-designer .briefing-message.ai.check-result{background:var(--product-soft-background,#faf7f3);color:#454545}

/* Mobile artwork feedback: one aligned text/preview row, then full-width actions. */
@media(max-width:600px){
 .product-designer .art-single{grid-template-columns:minmax(0,1fr) 64px;gap:8px 10px;padding:12px;align-items:start}
 .product-designer .art-single-info{display:contents}
 .product-designer .art-single-info>strong{grid-column:1;grid-row:1;font-size:13px;line-height:1.4;margin:0}
 .product-designer .art-single-info>p{grid-column:1;grid-row:2;margin:0;font-size:12px;line-height:1.5}
 .product-designer .art-single-info>.art-check-notice{grid-column:1;grid-row:1 / 3;grid-template-columns:22px minmax(0,1fr);gap:7px;padding:9px;min-width:0}
 .product-designer .art-single .art-check-notice>svg{width:22px;height:22px}
 .product-designer .art-single .art-check-copy strong{font-size:12px;line-height:1.45;display:block}
 .product-designer .art-single> :is(img,button,.art-deferred-thumb){grid-column:2;grid-row:1 / 3;align-self:start;width:64px!important;height:64px!important;min-height:0!important;aspect-ratio:1;object-fit:contain;padding:0;border-radius:8px}
 .product-designer .art-single-actions{grid-column:1 / -1;grid-row:3;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:2px 0 0;flex-wrap:nowrap}
 .product-designer .art-single-actions button{display:inline-flex;align-items:center;justify-content:center;gap:5px;line-height:1.3;min-height:34px!important;margin:0!important;white-space:nowrap}
 .product-designer .art-single-actions button svg{width:14px;height:14px;flex:0 0 14px}
}

/* SVG status marks cannot become color emoji on mobile. */
.art-status-icon{display:inline-block;width:15px;height:15px;vertical-align:-2px;flex:none}

/* Consistent artwork feedback geometry at every column width. */
.product-designer .art-single{align-items:start;gap:10px}
.product-designer .art-check-notice{align-items:center;margin:0;grid-template-columns:24px minmax(0,1fr);gap:8px;padding:10px}
.product-designer .art-check-notice>svg{width:24px;height:24px}
.product-designer .art-check-copy strong{display:block;font-size:12px;line-height:1.4}
.product-designer .art-allocation-row>.art-check-notice{margin-top:8px}
.product-designer .art-allocation-fields .art-allocation-part>:is(img,.art-deferred-thumb){width:48px;height:48px;flex:0 0 48px;align-self:end}
.product-designer .art-allocation-fields .art-file-picker>summary{box-sizing:border-box;height:48px;min-height:48px;display:flex;align-items:center}
.product-designer .art-organizer{margin-top:0;padding-top:8px}
.product-designer [data-art-distribution]>.art-allocation-add{display:flex;margin:8px 0 0 auto}

.product-designer .art-allocation-quantity>.field-caption{max-width:calc(100% - 16px);left:8px;font-size:10px}
@media(max-width:420px){.product-designer .art-allocation-fields{grid-template-columns:minmax(0,1fr) 72px}}

.art-product-thumb{width:88px;height:88px;flex:0 0 88px;background:#f3f3f3;border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:hidden}.art-product-thumb img{min-width:0;max-width:100%;max-height:100%;border-radius:0;cursor:pointer}.art-allocation-part .art-product-thumb{width:42px;height:42px;flex-basis:42px}.art-page-tile .art-product-thumb{width:100%;height:auto;aspect-ratio:1}.art-single .art-product-thumb{align-self:center}

.art-organizer-thumbs .art-product-thumb{width:28px;height:28px;flex-basis:28px}.art-organizer-thumbs .art-product-thumb img{max-width:100%;max-height:100%}

/* Keep preview and message aligned; actions belong to the entire card. */
.product-designer .art-single-info{display:contents}
.product-designer .art-single-info>strong{grid-column:1;grid-row:1;margin:0}
.product-designer .art-single-info>p{grid-column:1;grid-row:2;margin:0}
.product-designer .art-single-info>.art-check-notice{grid-column:1;grid-row:1 / 3;min-width:0}
.product-designer .art-single>.art-product-thumb,.product-designer .art-single>.art-deferred-thumb{grid-column:2;grid-row:1 / 3;align-self:start;justify-self:end}
.product-designer .art-single-actions{grid-column:1 / -1;grid-row:3;justify-content:flex-end;margin:0;gap:4px}
@media(max-width:600px){.product-designer .art-single>.art-product-thumb{width:64px;height:64px;flex-basis:64px}}
