.ba-root{max-width:1130px;margin:0 auto;display:grid;gap:20px}
.ba-heading{background:linear-gradient(118deg,#071c31,#124563);border-radius:22px;padding:32px 36px;color:white}
.ba-heading .eyebrow{color:#89d8ed;letter-spacing:.13em}
.ba-heading h1{font-size:clamp(28px,3.6vw,41px);letter-spacing:-.04em;line-height:1.15;color:white;margin:10px 0}
.ba-heading p{color:#d6e6ef;margin:0;font-size:14px;line-height:1.6}
.ba-brand-label{display:flex;align-items:center;gap:9px;background:#e9f7f4;border:1px solid #bbdfd7;color:#28574f;padding:12px 15px;border-radius:11px;font-size:13px}
.ba-dot{height:9px;width:9px;border-radius:50%;background:#0eab76;flex:none}
.ba-client-picker{display:grid;gap:7px;max-width:450px;font-weight:700;font-size:13px;color:#235268}
.ba-client-picker select,.ba-field input,.ba-field select{min-width:0;width:100%;border:1px solid #bacfdc;border-radius:10px;padding:11px 13px;background:#fff;color:#213d4b;font:inherit}
.ba-creator{padding:25px!important}
.ba-uploads{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.ba-upload{display:grid;gap:10px;cursor:pointer;min-width:0}
.ba-step{font-size:12px;font-weight:900;color:#10496b;letter-spacing:.07em}
.ba-upload-preview{min-width:0;height:220px;min-height:220px;max-height:220px;border:2px dashed #acc7d6;border-radius:16px;display:flex;flex-direction:column;gap:7px;justify-content:center;align-items:center;overflow:hidden;position:relative;color:#37637b;background:#f3f9fc;text-align:center}
.ba-upload:hover .ba-upload-preview{border-color:#217baf;background:#ebf6fc}
.ba-upload.ba-drag-over .ba-upload-preview{outline:3px solid #1a92d5;outline-offset:3px;border-color:#0c76b3;background:#d7efff}
.ba-upload.ba-drag-over .ba-upload-preview:after{content:"Drop photo here";position:absolute;z-index:3;inset:0;display:grid;place-items:center;background:#0a3f69d9;color:#fff;font-size:19px;font-weight:900;letter-spacing:.02em;pointer-events:none}
.ba-upload.ba-drag-over .ba-filename{visibility:hidden}
.ba-upload:focus-within .ba-upload-preview{outline:2px solid #1373b1;outline-offset:3px}
.ba-upload-preview img{display:block;width:100%;height:100%;max-height:100%;object-fit:contain;object-position:center;background:#e8f0f5}
.ba-upload-preview.ba-has-photo{padding:0;display:flex;height:220px;min-height:220px;max-height:220px;aspect-ratio:auto;background:#e8f0f5}
.ba-upload-preview.ba-has-photo.ba-landscape{max-height:220px}
.ba-upload-preview.ba-has-photo img{position:absolute;inset:0}
.ba-upload-preview.ba-has-photo .ba-filename{z-index:1}
.ba-placeholder{font-size:43px;line-height:1;color:#367ba3}
.ba-upload-preview strong{font-size:14px}
.ba-upload-preview small{color:#678397}
.ba-upload-preview .ba-filename{position:absolute;bottom:0;left:0;right:0;background:#061b2ecc;color:#fff;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:11px}
.ba-upload input[type=file]{width:100%;font-size:12px;color:#41647a}
.ba-controls{display:flex;flex-wrap:wrap;gap:16px;align-items:end;justify-content:space-between;margin-top:21px}
.ba-field{display:grid;gap:6px;min-width:235px;color:#224c67;font-size:12px;font-weight:800}
.ba-field small{font-size:11px;font-weight:400;color:#688095}
.ba-field input[type=color]{height:45px;max-width:130px;padding:3px}
.ba-create{min-height:46px;white-space:normal}
.ba-fine{font-size:11px;line-height:1.5;margin-top:14px}
.ba-status{font-size:13px;font-weight:700;color:#105d7d;margin-top:9px;min-height:16px}
.ba-result{display:grid;gap:17px;margin-top:15px;padding-top:22px;border-top:1px solid #e3edf2;min-width:0}
.ba-result[hidden]{display:none}
.ba-result img{width:100%;max-width:540px;height:auto;border-radius:11px;box-shadow:0 12px 35px #0a243522}
.ba-download-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.ba-settings{padding:24px!important}
.ba-settings .panel-head{margin-bottom:17px}
.ba-settings .panel-head p{font-size:12px;line-height:1.5}
.ba-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.ba-settings-actions{grid-column:1/-1;display:flex;gap:13px;align-items:center;flex-wrap:wrap}
.ba-save-state{font-size:12px;color:#166b54}
.ba-manager-note{font-size:12px;color:#667f8f;margin:0 0 15px}
@media(max-width:700px){.ba-root{gap:14px}.ba-heading{padding:25px 20px;border-radius:16px}.ba-creator,.ba-settings{padding:16px!important}.ba-uploads{grid-template-columns:1fr;gap:17px}.ba-upload-preview,.ba-upload-preview.ba-has-photo{height:190px;min-height:190px;max-height:190px}.ba-upload-preview.ba-has-photo.ba-landscape{max-height:190px}.ba-controls{display:grid}.ba-field,.ba-create{width:100%;min-width:0}.ba-settings-grid{grid-template-columns:1fr}.ba-download-actions{flex-direction:column;width:100%}.ba-download-actions .btn{text-align:center}}

/* Before & After Studio v4 — multi-format results and genuine drop targets */
.ba-size-info{display:grid;gap:5px;color:#1c4a65}
.ba-size-info strong{font-size:14px}
.ba-size-info span{font-size:12px;color:#718799}
.ba-result-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;width:100%}
.ba-result-head h3{font-size:21px;color:#113c5b;margin:0 0 4px}
.ba-result-head p,.ba-result-note{font-size:12px;line-height:1.5;color:#658195;margin:0}
.ba-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;width:100%;align-items:stretch}
.ba-result-card{background:#fff;border:1px solid #d0e0eb;border-radius:15px;min-width:0;overflow:hidden;box-shadow:0 5px 19px #11436010;display:flex;flex-direction:column}
.ba-result-thumb{height:320px;min-height:320px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#e6f0f6,#f4f8fb);padding:12px}
.ba-result .ba-result-thumb img{width:100%;max-width:100%;height:auto;max-height:360px;object-fit:contain;border-radius:7px;box-shadow:0 5px 16px #102a3522}
.ba-result-detail{display:grid;gap:12px;padding:15px;margin-top:auto}
.ba-result-detail>div{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
.ba-result-detail strong{font-size:14px;color:#153e58}
.ba-result-detail span{font-size:11px;color:#688699}
.ba-result-detail a.btn{text-align:center;white-space:normal;line-height:1.35}
.ba-result-note{border-top:1px solid #dae7ef;padding-top:13px;width:100%}
.ba-download-zip{white-space:normal;text-align:center}
@media(max-width:920px){.ba-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:660px){.ba-result-grid{grid-template-columns:1fr}.ba-result-head{display:grid}.ba-result-head a{width:100%;text-align:center}.ba-result .ba-result-thumb img{max-width:360px;max-height:500px}.ba-result-detail>div{flex-wrap:nowrap}}

/* Compact orientation-preserving preview: no cropping or tall aspect-ratio boxes. */
.ba-creator .ba-upload-preview img{object-fit:contain}
.ba-result{scroll-margin-top:95px}

/* Equal-height premium comparison previews; aspect ratios are preserved. */
.ba-result-grid .ba-result-thumb img{width:100%;max-height:296px;object-fit:contain}
@media(max-width:660px){.ba-result-thumb{height:310px;min-height:310px}.ba-result-grid .ba-result-thumb img{max-height:284px}}

/* Studio v6: visual brand library, immersive preview, clean interactive cards. */
.ba-logo-field{min-width:0}
.ba-logo-current{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#eef5fa,#fbfdff);border:1px solid #c9dae7;border-radius:13px;padding:10px;min-height:94px}
.ba-logo-image{width:139px;height:73px;flex:none;border-radius:9px;background:linear-gradient(120deg,#102d43,#061725);display:grid;place-items:center;overflow:hidden;padding:8px}
.ba-logo-image img{width:100%;height:100%;object-fit:contain}
.ba-logo-empty{color:#a9beca;font-size:12px}
.ba-logo-copy{flex:1;min-width:0;display:grid;gap:5px}
.ba-logo-copy strong{font-size:13px;color:#153d58;overflow:hidden;text-overflow:ellipsis}
.ba-logo-copy small{font-size:11px;line-height:1.35;color:#698297;font-weight:400}
.ba-logo-current>.btn{flex:none}
.ba-logo-picker{padding:13px;background:#f2f7fb;border:1px solid #d4e3ef;border-radius:12px;display:grid;gap:10px}
.ba-logo-picker[hidden]{display:none}
.ba-logo-picker p{margin:0;font-size:12px;color:#345b72}
.ba-logo-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:9px;max-height:260px;overflow:auto}
.ba-logo-choice{border:1px solid #ccdae5;border-radius:10px;background:white;padding:8px;display:grid;align-content:center;justify-items:center;gap:6px;cursor:pointer;color:#244e65;font-size:11px;font-weight:800;min-height:101px}
.ba-logo-choice:hover,.ba-logo-choice:focus-visible{outline:2px solid #1789c1;outline-offset:0}
.ba-logo-choice[aria-pressed=true]{border:2px solid #006ba8;background:#ebf7ff}
.ba-logo-choice img{width:100%;height:63px;object-fit:contain;background:#102c40;border-radius:6px;padding:6px}
.ba-logo-none{color:#6a8291}
.ba-logo-upload{font-size:12px;font-weight:700;color:#0966a5}
.ba-result-thumb.ba-preview-open{border:0;position:relative;width:100%;cursor:zoom-in}
.ba-result-thumb.ba-preview-open:focus-visible{outline:3px solid #2494cf;outline-offset:-3px}
.ba-zoom-hint{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);padding:8px 13px;background:#071f32df;color:#fff;border-radius:99px;white-space:nowrap;font-size:12px;font-weight:700;box-shadow:0 5px 20px #031c2a33;opacity:0;transition:opacity .15s ease}
.ba-result-thumb:hover .ba-zoom-hint,.ba-result-thumb:focus-visible .ba-zoom-hint{opacity:1}
.ba-lightbox{border:0;padding:0;background:#081724;color:#f1f7fc;border-radius:19px;width:min(1080px,96vw);max-width:96vw;max-height:95vh;overflow:hidden;box-shadow:0 24px 92px #020e1699}
.ba-lightbox::backdrop{background:#030c16df;backdrop-filter:blur(9px)}
.ba-lightbox-shell{display:flex;flex-direction:column;max-height:95vh;min-height:min(660px,80vh)}
.ba-lightbox-header{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:17px 22px;background:#0e2334;flex:none}
.ba-lightbox-kicker{font-size:10px;letter-spacing:.18em;font-weight:800;color:#86c5e4}
.ba-lightbox-header h3{margin:4px 0 0;font-size:19px;font-weight:850;color:white}
.ba-lightbox-close{height:37px;width:37px;border-radius:50%;border:1px solid #526777;background:#213748;color:#fff;cursor:pointer;font-size:26px;line-height:1}
.ba-lightbox-stage{display:flex;align-items:center;justify-content:center;gap:10px;flex:1;min-height:0;padding:14px;background:radial-gradient(ellipse at center,#152d42 0%,#071724 80%)}
.ba-lightbox-stage>img{object-fit:contain;max-width:calc(100% - 112px);max-height:min(68vh,790px);min-width:0;min-height:0;box-shadow:0 10px 44px #0007;border-radius:8px}
.ba-lightbox-prev,.ba-lightbox-next{background:#eef6fc1a;border:1px solid #b8d4e75a;border-radius:50%;color:#fff;font-size:36px;width:45px;height:45px;flex:none;display:grid;place-items:center;cursor:pointer;line-height:1}
.ba-lightbox-prev:hover,.ba-lightbox-next:hover{background:#ffffff35}
.ba-lightbox-footer{background:#0e2334;padding:13px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;flex-wrap:wrap}
.ba-lightbox-footer>span{font-size:12px;color:#c5d7e3;white-space:nowrap;font-weight:700}
.ba-lightbox-thumbs{display:flex;gap:8px;align-items:center;justify-content:center}
.ba-lightbox-thumb{width:55px;height:46px;padding:3px;background:#223f53;border:2px solid transparent;border-radius:7px;cursor:pointer}
.ba-lightbox-thumb[aria-current=true]{border-color:#66d9e0}
.ba-lightbox-thumb img{width:100%;height:100%;object-fit:contain}
.ba-lightbox-footer>.btn{white-space:normal;text-align:center}
@media (hover:none){.ba-zoom-hint{opacity:1}}
@media(max-width:700px){.ba-logo-current{flex-wrap:wrap}.ba-logo-current>.btn{margin-left:auto}.ba-logo-image{width:105px;height:65px}.ba-lightbox{max-width:100vw;width:100vw;max-height:100dvh;height:100dvh;border-radius:0}.ba-lightbox-shell{max-height:100dvh;min-height:100dvh}.ba-lightbox-stage{padding:5px;gap:4px}.ba-lightbox-stage>img{max-width:calc(100% - 80px);max-height:72dvh}.ba-lightbox-prev,.ba-lightbox-next{width:36px;height:44px;font-size:29px}.ba-lightbox-footer{padding:12px;justify-content:center}.ba-lightbox-footer>.btn{width:100%}.ba-lightbox-header{padding:13px 15px}.ba-lightbox-thumb{width:45px;height:39px}}

/* v7: show the actual transparent wordmark, not a dark boxed-in tile. */
.ba-logo-current{background:#fff;border:1px solid #e1e8ee;border-radius:12px}
.ba-logo-image{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;width:168px;height:66px}
.ba-logo-image img{background:transparent;object-fit:contain;filter:none}
@media(max-width:700px){.ba-logo-image{width:128px;height:59px}}

/* 2026-11-08: visible upload/generation feedback directly under Create. */
.ba-status:not(:empty){display:flex;align-items:center;gap:12px;background:#eef8fd;border:1px solid #acd9ed;color:#0e587c;border-radius:12px;padding:14px 16px;min-height:50px;font-size:13px;line-height:1.5;box-shadow:0 7px 20px #103e5b12}
.ba-status.ba-busy::before{content:"";display:inline-block;flex:none;width:19px;height:19px;border:3px solid #bfdcea;border-top-color:#117cae;border-radius:50%;animation:ba-generating 850ms linear infinite}
.ba-status.ba-error{background:#fff4ee;border-color:#f4ad9b;color:#8d341d}
.ba-status.ba-success{background:#ebf9f4;border-color:#a5d7c4;color:#17674d}
@keyframes ba-generating{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.ba-status.ba-busy::before{animation:none}}
