.initial-loading{padding:80px 24px;text-align:center;color:#91445f}
.description{white-space:pre-line;overflow-wrap:anywhere}
.rail a{display:block;padding:11px 14px;font-size:13px;border-radius:7px;color:#765866;margin-bottom:5px}
.rail a.active{background:#f8eaf0;color:#9a3d61;font-weight:650}
.rail button{color:#765866}.nav-count{font-variant-numeric:tabular-nums}
.studio-surface input,.studio-surface textarea,.studio-surface select{font-size:16px}
.studio-surface .stack{display:grid;gap:18px}
.studio-surface .stack>label{display:grid;gap:7px}
.studio-surface .stack>label.inline-label{display:flex;align-items:center;gap:10px}
.studio-surface input[type=checkbox]{width:20px;height:20px;accent-color:#ac4265}
.live-sale-row{display:flex;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--line)}
.st-panel>h2{margin-bottom:16px}.st-panel>p{margin:16px 0}
.table-scroll{overflow-x:auto}.table-scroll table{min-width:640px}
.table-scroll button{min-height:44px;text-decoration:underline}
.review-queue{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.st-review-footer{margin-top:20px}.st-review-footer>div:last-child{display:flex;gap:8px}
.st-cover img{max-width:100%}.settings-live{max-width:680px}
.upload-live{max-width:760px}.upload-live button{justify-self:start}
.studio-surface .st-pdf-preview img{max-width:100%;object-fit:contain}
.feature-settings .st-panel{min-width:0}.feature-pick img{height:75px;object-fit:contain}
.feature-heading,.feature-settings{padding:0}.feature-settings h2{font-size:24px}
.inline-label{display:flex;align-items:center;gap:10px}
.inline-label input{width:20px}
dialog{border:1px solid #dcc5cf;border-radius:16px;padding:30px;width:min(540px,94vw);max-height:85dvh;overflow:auto;background:#fffdfb;color:var(--ink)}
dialog::backdrop{background:#49323e66}dialog .stack{display:grid;gap:16px}
.busy-layer{z-index:10000}#message{z-index:10001}
.shopwrap:has(.feature-settings){max-width:1100px}
.studio-surface code{overflow-wrap:anywhere}
@media(max-width:720px){
 .rail{gap:4px}.rail a{padding:10px;white-space:nowrap;flex-shrink:0;font-size:12px}
 .rail button{flex-shrink:0}
 .shopnav .soft{min-height:44px;font-size:12px;padding:8px 10px}
 .shopnav nav{gap:4px}
 .studio-surface .btn{min-height:44px}
 .feature-settings{grid-template-columns:1fr}
 .st-review-footer{position:static;flex-direction:column;align-items:stretch}
 .st-review-footer>div:last-child{flex-wrap:wrap}
 .paperform input{font-size:16px}
 .st-pdf-panel{display:block}
 .shopfoot{gap:12px;font-size:12px}
}
.studio-surface .st-stats{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:24px;padding-top:24px;padding-bottom:24px}
.studio-surface .st-stat{border-right:1px solid var(--st-line)}
.studio-surface .st-stat:nth-child(3n){border-right:0}
.studio-surface .st-stat>span{color:#79616d;font-size:12px}
.studio-surface .st-panel>h2{font-size:20px;line-height:1.3}
@media(max-width:680px){.studio-surface .st-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-surface .st-stat:nth-child(n){border-right:1px solid var(--st-line)}.studio-surface .st-stat:nth-child(2n){border-right:0}}
.shopnav .brand{min-width:0;flex:1;max-width:60%;letter-spacing:normal;line-height:1.15;font-style:normal}
.brand-name{font-family:"Avenir Next","PingFang SC",system-ui,sans-serif;font-size:28px;font-weight:700;letter-spacing:-.035em;overflow-wrap:anywhere}
@media(max-width:680px){.shopnav{flex-wrap:wrap;row-gap:12px}.shopnav .brand{max-width:100%;flex:1 1 auto}.brand-name{font-size:24px}.shopnav nav{margin-left:auto}}
.shopnav .brand,.preview-brand{display:flex;align-items:center;gap:12px}
.brand-copy{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.brand-mark{width:48px;height:48px;flex:none;border-radius:12px}
.brand-name{font-size:32px;line-height:1.16}
.brand-tagline{font-family:"Avenir Next","PingFang SC",system-ui,sans-serif;font-size:13px;font-weight:450;letter-spacing:.01em;line-height:1.5;color:#7c626e;max-width:46ch;overflow-wrap:anywhere}
.brand-editor{padding-bottom:22px;border-bottom:1px solid var(--line)}
.studio-surface input.brand-name-input{font-size:30px;font-weight:700;letter-spacing:-.03em;line-height:1.35;padding:14px 16px;color:#8c3f5b;background:#fffbfd}
.studio-surface input.tagline-input{font-size:16px;font-weight:400}
.brand-preview{background:#faf3f6;border:1px solid #eadbe2;border-radius:10px;padding:20px 22px}
.preview-label{font-size:12px;color:#7c626e;display:block;margin-bottom:14px}
.preview-brand{color:#ac4265}
#preview-brand-name{font-size:32px;font-weight:700;line-height:1.2;letter-spacing:-.035em;overflow-wrap:anywhere}
#preview-brand-tagline{font-size:13px;line-height:1.5;color:#7c626e;overflow-wrap:anywhere}
@media(max-width:680px){.brand-mark{width:40px;height:40px;border-radius:10px}.brand-name{font-size:27px}.brand-tagline{font-size:12px;max-width:30ch}.studio-surface input.brand-name-input{font-size:27px}#preview-brand-name{font-size:28px}}
.brand-tagline{color:#725160;font-weight:500;font-size:14px}
.brand-tagline-help{color:#725160;font-size:13px;line-height:1.6;margin:0}
@media(max-width:680px){.brand-tagline{font-size:13px}}

/* Quiet loading states keep the page visible and navigation available. */
.skeleton{display:block;background:#f0e4e9;border-radius:8px;position:relative;overflow:hidden}
.loading-shell .skeleton:after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 20%,#fff8 50%,transparent 80%);transform:translateX(-100%);animation:paper-sweep 1.8s ease-in-out infinite}
.skeleton-pill{width:82px;height:34px}.skeleton-search{height:56px;max-width:760px;margin:32px auto}
.skeleton-title{height:44px;width:90%;margin:14px 0}.skeleton-title.short{width:74%}
.skeleton-copy{height:12px;width:90%;margin:13px 0}.skeleton-copy.short{width:62%}
.skeleton-button{width:140px;height:43px;margin-top:32px}.skeleton-heading{width:180px;height:30px;margin:32px 0 24px}
.skeleton-products,.skeleton-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.skeleton-cover{height:250px}.skeleton-stat{height:110px}.skeleton-table{height:320px;margin-top:28px}
.skeleton-nav{height:34px;margin:10px 0}.skeleton-rail{padding-top:32px}
.inline-loader{display:inline-block;width:13px;height:13px;flex-shrink:0;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:turn .75s linear infinite}
button[aria-busy=true]{display:inline-flex;align-items:center;justify-content:center;gap:9px;cursor:progress;opacity:.8}
.operation-status{position:fixed;right:24px;bottom:22px;z-index:50;padding:9px 15px;border:1px solid #ead8e1;border-radius:24px;background:#fffdfbf2;color:#80556a;box-shadow:0 2px 12px #5433440a;font-size:12px;pointer-events:none}
.operation-status[hidden]{display:none}
@keyframes paper-sweep{100%{transform:translateX(100%)}}
@media(max-width:720px){.skeleton-title{height:32px}.skeleton-products{grid-template-columns:repeat(2,minmax(0,1fr))}.skeleton-stats{gap:12px}.skeleton-stat{height:80px}.skeleton-cover{height:180px}.skeleton-rail{display:none}.operation-status{right:14px;bottom:14px}.loading-shell .hero img{min-height:220px}}
@media(prefers-reduced-motion:reduce){.loading-shell .skeleton:after,.inline-loader{animation:none}}

/* Actual printable covers and a quiet, touch-friendly preview strip. */
.missing-cover,.preview-empty{display:grid;place-items:center;min-height:200px;background:#faf1f5;color:#806674;padding:24px;text-align:center}
.st-cover>img,.product>img{width:100%;height:100%;object-fit:contain;background:#fff0f5}
.preview-gallery{width:100%;min-width:0;text-align:left}
.preview-main{display:block;background:#fff5f8;border:1px solid #eedfe6;border-radius:14px;overflow:hidden}
.preview-main>img{display:block;width:100%;height:auto;max-height:650px;object-fit:contain}
.preview-thumbs{display:flex;gap:10px;overflow-x:auto;padding:14px 2px 6px}
.preview-thumbs>button{flex:0 0 82px;border:2px solid transparent;border-radius:10px;background:#fff;padding:5px;color:#735161;cursor:pointer}
.preview-thumbs>button[aria-pressed=true]{border-color:#ac4265;background:#fff0f5}
.preview-thumbs img{display:block;width:100%;height:68px;object-fit:contain}
.preview-thumbs span{font-size:12px;display:block;margin-top:5px}
.preview-caption{font-size:12px;line-height:1.6;color:#806674;margin:10px 0}
.printscene:has(.preview-gallery){background:transparent;padding:0;display:block;min-width:0}
.st-pdf-preview:has(.preview-gallery){padding:0;background:none;aspect-ratio:auto}
.st-pdf-preview .preview-main>img{max-height:480px}
.media-editor{border-top:1px solid #eadbe2;margin-top:22px;padding-top:18px}
.media-editor>label{display:block;margin:18px 0;font-size:13px;line-height:1.6}
.media-editor input{max-width:100%}
.media-editor>p{font-size:12px;color:#806674;line-height:1.7}
.danger-link{color:#ad3555!important;background:transparent!important;border-color:transparent!important}
.btn.danger{background:#ad3555;color:white}
.st-product-buttons{flex-wrap:wrap}
#merchant-modal{max-width:min(520px,calc(100vw - 32px));border:1px solid #eadbe2;border-radius:18px;padding:28px;color:#634553}
#merchant-modal::backdrop{background:#56364355}
#merchant-modal p{line-height:1.8}
.st-tabs{overflow-x:auto}
@media(max-width:680px){.preview-main>img{max-height:440px}.preview-thumbs>button{flex-basis:72px}.preview-thumbs img{height:60px}.product-detail{gap:24px}#merchant-modal{padding:22px}}
.agent-feedback{background:#fff4f8;border-left:3px solid #bd7694;padding:18px 22px;margin-top:20px;border-radius:0 12px 12px 0}
.agent-feedback h3{margin-top:0;font-size:18px}.agent-connection{font-size:12px;line-height:2;color:#806674;margin:0 0 20px}.agent-connection .st-badge{margin-right:8px}

.product>img{height:auto;aspect-ratio:3/4;object-fit:contain;background:#fff0f5}
.printscene .preview-gallery img{transform:none;box-shadow:none;max-width:100%}
.content-language-filters{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #eee2e8}.content-language-filters>span{font-size:13px;color:#7e6471}
.file-language{display:inline-block;font-size:12px;line-height:1.4;color:#89546b;background:#fbecf3;border-radius:5px;padding:4px 7px;margin:8px 6px 8px 0;font-weight:500}
.admin-language-filter{font-size:12px;min-width:140px}.admin-language-filter select{display:block;margin-top:5px}
.agent-prompt-grid{display:grid;grid-template-columns:1fr;gap:22px}.agent-prompt-card{min-width:0}.agent-prompt-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0}.agent-prompt-heading h3{margin:0;font-size:17px}.agent-prompt-text{display:block;width:100%;resize:vertical;font:13px/1.75 "Avenir Next","PingFang SC",system-ui,sans-serif;color:#624b56;background:#fffbfd;border:1px solid #ead9e2;border-radius:10px;padding:15px}.agent-prompt-text:focus{outline:2px solid #bb7998;outline-offset:2px}
@media(max-width:680px){.agent-prompt-heading{align-items:flex-start;flex-direction:column}.agent-prompt-text{font-size:12px}.content-language-filters{gap:8px}.content-language-filters .filters{gap:4px}}
.account-options{display:flex;gap:20px;align-items:center;margin:28px 0}.danger-link{color:#a63351}.delete-confirm{display:flex!important;gap:12px;align-items:flex-start;margin:20px 0}.delete-confirm input{width:20px!important;height:20px;flex:none;margin-top:3px}.btn.danger{background:#a63351;color:white}.delete-account p{line-height:1.75}
