/* Qinghua palette: white canvas, sky blue actions, sunny yellow membership,
   raspberry favorites and neutral gray prices. Uploaded artwork keeps its colors. */
:root{--accent:#0879ce;--brand-blue:#079bf3;--brand-yellow:#ffe127;--brand-pink:#e92b83;--brand-orange:#f4772b;--muted:#767b84;--line:#e9edf2;--panel:#fff;color:#171b21;background:#fff}
body,.sidebar,.product,.table-wrap,.stat,.login-panel{background:#fff}
.topbar{background:#ffffffef;border-color:var(--line)}
.brand-mark{background:var(--brand-blue);color:#102333;box-shadow:3px 3px 0 var(--brand-yellow)}
.search{background:#f7f9fc;border-color:#edf0f5}.search:focus-within{border-color:#95d5ff;box-shadow:0 0 0 3px #079bf310}
.primary{background:var(--accent);color:#fff}.primary:hover{background:#0565b0;box-shadow:0 6px 18px #0879ce26}
.secondary{background:#fff;border-color:#dfe6ee;color:#303c49}.secondary:hover{background:#eff8ff;border-color:#b7dfff}
.member-button{background:#fff7be;border-color:#f4e58d;color:#534600}.member-button:hover{background:var(--brand-yellow);border-color:var(--brand-yellow)}
.member-button svg{color:#9b7900}
.nav-item:hover{background:#f5faff;color:#0879ce}.nav-item.active{background:#eaf6ff;color:#066fbf}.nav-item.active svg{color:#0879ce}
.nav-item small{color:#6b7078;border-color:#d7dade;background:#f5f6f7}
.sidebar-card{background:#fffdf2;border-color:#f2e8b8}.sidebar-card strong{color:#25231a}.sidebar-card p{color:#827d68}
.sidebar-card .primary{background:var(--brand-yellow);color:#242017}.sidebar-card .primary:hover{background:#f4d414;box-shadow:0 5px 15px #e3c31a20}
.hero h1 span{color:var(--accent)}.hero .eyebrow{color:#0879ce}.hero p{color:#737984}
.hero-dots .dot{background:#d8dee5}.hero-dots .dot.active{background:var(--brand-blue)}
.tab.active:after{background:var(--brand-blue)}.chip.active{background:#172632;color:white}.chip:hover{background:#eff8ff}
.product{border-color:#edf0f4}.product:hover{border-color:#acdafa;box-shadow:0 12px 28px #113e650d}
.author-dot{background:var(--brand-blue);color:#fff}.price,.purchase-price{color:#666b73}.save.saved{color:var(--brand-pink)}
.eyebrow{color:var(--accent)}.purchase-card li:before{color:var(--accent)}.detail-nav a:hover{color:var(--accent)}
.product-page .gallery-thumbs button.selected{outline-color:var(--brand-blue)}.gallery-thumbs button.selected{border-color:var(--brand-blue)}
.text-button,.selected-media-actions button,.admin-card-settings button,.media-name-edit button{color:#0879ce}
.upload-button{background:#f0f9ff;color:#0879ce!important;border-color:#bcdff8}.upload-button:hover{background:#e3f3ff}
.upload-progress,.image-editor output{color:#0879ce}
input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #079bf31a}
input[type=range],input[type=checkbox],input[type=radio]{accent-color:var(--accent)}
.payment-option:has(input:checked){background:#eff8ff;border-color:#5db7ef}.code-row button{background:#f0f9ff;border-color:#bcdff8;color:#0879ce}
.auth-tab.active{color:#0879ce}.test-badge{background:#fffbe2;border-color:#f1e5a0;color:#826600}.test-code{color:#0879ce}
.banner{background:#f2f9ff;border-color:#cde6f7;color:#35698f}.stat small{color:#0879ce}.status.pending{color:#986900}
.success-icon{background:#eaf6ff;color:#0879ce}.initial{color:#0879ce}
::selection{background:#ffe982;color:#171b21}

.brand-logo{width:52px;height:52px;object-fit:contain;flex-shrink:0;border-radius:10px}.brand-settings{max-width:640px;padding:28px;border:1px solid var(--line);border-radius:16px;background:white}.brand-live-preview{padding:30px 22px;border:1px dashed #c9dfee;border-radius:12px;background:#fbfdff;margin-bottom:10px}.brand-settings .text-button{text-align:left}.brand-settings .primary{align-self:flex-start}.brand strong{overflow-wrap:anywhere}.topbar .brand strong{font-size:clamp(16px,1.4vw,22px)}

/* Former orange accents now use neutral gray. */
.new{color:#73777e;border-color:#d7dade;background:#f5f6f7}.sidebar-card button{background:#e5e7eb;color:#42474f}.sidebar-card button:hover{background:#d7dae0}.circle:hover{background:#686d75}.package-symbol>span,.lesson summary span:last-child,.adjust-controls output{color:#73777e}.image-adjuster{border-color:#dce0e5;background:#fafafa}.adjust-stage canvas:focus-visible{outline-color:#73777e}.adjust-controls input,.adjust-controls select{accent-color:#73777e}.adjust-actions button{border-color:#dce0e5}.adjust-actions .primary{background:var(--accent);border-color:var(--accent)}.adjust-actions .primary:hover{background:#0565b0;box-shadow:0 5px 18px #0879ce24}.gallery-thumbs button.selected{box-shadow:none}.form .error{color:#646970}

/* Blue leads; orange is reserved for small accents. */
.brand-mark{box-shadow:3px 3px 0 #ffad78}.member-button{background:#fff3e9;border-color:#ffdabd;color:#a94713}.member-button svg{color:#cc5b1b}.member-button:hover{background:#ffe6d2;border-color:#ffbf91}.nav-item .new,.new{color:#b64c15;border-color:#ffd3b4;background:#fff5ec}.price,.purchase-price{color:#c95819}.save.saved{color:#e66c25}.sidebar-card{background:#fffaf6;border-color:#f2dfd1}.sidebar-card strong{color:#302b27}.sidebar-card p{color:#837970}.sidebar-card button{background:#fff0e4;color:#aa4917;border:1px solid #ffd5b6}.sidebar-card button:hover{background:#ffe3ce}.test-badge{background:#fff5eb;border-color:#f3d7bf;color:#9b511f}.status.pending{color:#a45a25}::selection{background:#d7edff;color:#152332}

.brand-edit-entry{text-align:left;padding:5px;border-radius:10px;position:relative}.brand-edit-entry:hover{background:#eff8ff}.brand-edit-hint{font-size:10px;color:#0879ce;border:1px solid #cce5f8;border-radius:4px;padding:2px 4px;letter-spacing:0;white-space:nowrap}

.brand-name-image{width:145px;height:46px;object-fit:contain;object-position:left center;flex-shrink:0}.brand-settings [hidden]{display:none!important}

.brand-mode{border:1px solid #dbe7ef;border-radius:12px;padding:18px;margin:14px 0}.brand-mode legend{font-weight:700;padding:0 6px}.brand-mode-options{display:flex;gap:12px;flex-wrap:wrap}.brand-mode-options label{display:flex;align-items:center;gap:8px;border:1px solid #dbe7ef;border-radius:8px;padding:12px 16px;cursor:pointer}.brand-mode-options label:has(input:checked){background:#eaf6ff;border-color:#0879ce;color:#0879ce}.brand-mode-options input{width:auto;accent-color:#0879ce}

/* Image-only home carousel and aligned desktop content column. */
.hero.carousel:after,.hero.carousel .hero-slide:after{display:none}
.hero.carousel .hero-slide>img{width:100%;height:100%;inset:0;object-fit:cover;opacity:1}
.hero.carousel .hero-dots{left:24px}
.hero.carousel .hero-dots .dot{background:#ffffff85}
.hero.carousel .hero-dots .dot.active{background:#fff}
@media(min-width:1200px){.main:has(.carousel){margin-left:max(248px,19.5vw);margin-right:7vw;padding-left:0;padding-right:0;max-width:none}.main:has(.carousel) .grid{grid-template-columns:repeat(5,minmax(0,1fr))}.main:has(.carousel) .hero{height:clamp(240px,14vw,380px)}}
@media(min-width:801px){body:has(.main .carousel) .sidebar{width:clamp(180px,11vw,250px)}}

@media(min-width:801px){body:has(.main .carousel) .sidebar{width:clamp(214px,11vw,250px)}.nav-item{white-space:nowrap}}@media(min-width:1200px) and (max-width:1649px){.main:has(.carousel) .grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Centered cover carousel with adjacent previews. */
.hero.carousel{background:transparent;border-radius:0;overflow:hidden}
.hero.carousel .carousel-track{width:66%;margin-left:17%;overflow:visible}
.hero.carousel .hero-slide{border-radius:16px;transform:scale(.94,.90);filter:brightness(.65);transition:transform .75s ease,filter .75s ease;overflow:hidden}
.hero.carousel .hero-slide.is-active{transform:scale(1);filter:none;z-index:1}
.hero.carousel .carousel-track.no-transition .hero-slide{transition:none}
.hero.carousel .hero-controls{inset:0;pointer-events:none;z-index:3}
.hero.carousel .hero-controls button{pointer-events:auto;position:absolute}
.hero.carousel [data-carousel="prev"]{left:12px;top:calc(50% - 19px)}
.hero.carousel [data-carousel="next"]{right:12px;top:calc(50% - 19px)}
.hero.carousel [data-carousel="toggle"]{right:19%;bottom:16px}
.hero.carousel .hero-controls .circle{width:38px;height:38px;background:#ffffffdf;color:#333;border:0;box-shadow:0 3px 12px #0002}
.hero.carousel .hero-index{position:absolute;right:calc(19% + 48px);bottom:26px;background:#0008;padding:3px 7px;border-radius:8px;color:white}
.hero.carousel .hero-dots{left:50%;transform:translateX(-50%);bottom:16px;z-index:4}
.hero.carousel:not(:has(.hero-slide:nth-child(2))) .carousel-track{width:100%;margin-left:0}
@media(max-width:600px){.hero.carousel .carousel-track{width:82%;margin-left:9%}.hero.carousel [data-carousel="toggle"]{right:12%;bottom:12px}.hero.carousel .hero-index{right:calc(12% + 42px);bottom:22px}}
/* Layered carousel: central cover overlaps recessed side covers. */
.hero.carousel .hero-slide{transform:scale(1.12,.88);filter:none;z-index:0;transition:transform .75s ease,box-shadow .75s ease}
.hero.carousel .hero-slide:after{display:block;content:'';position:absolute;inset:0;background:rgba(20,25,32,.40);z-index:0;pointer-events:none;opacity:1;transition:opacity .75s ease}
.hero.carousel .hero-slide.is-active{transform:scale(1);z-index:2;box-shadow:0 12px 28px #10203224}
.hero.carousel .hero-slide.is-active:after{opacity:0}
.hero.carousel .hero-slide>img{z-index:-1}
/* Round the visible edges of recessed cards, including viewport cut edges. */
.hero.carousel{--side-crop:71.645%}
.hero.carousel .hero-slide{clip-path:inset(0 0 0 var(--side-crop) round 18px);transition:transform .75s ease,box-shadow .75s ease,clip-path .75s ease}
.hero.carousel .hero-slide:after{background:linear-gradient(90deg,rgba(18,25,36,.12) 70%,rgba(18,25,36,.32) 84%,rgba(18,25,36,.62) 100%)}
.hero.carousel .hero-slide.is-active~.hero-slide{clip-path:inset(0 var(--side-crop) 0 0 round 18px)}
.hero.carousel .hero-slide.is-active~.hero-slide:after{background:linear-gradient(90deg,rgba(18,25,36,.62) 0%,rgba(18,25,36,.32) 16%,rgba(18,25,36,.12) 30%)}
.hero.carousel .hero-slide.is-active{clip-path:inset(-30px round 18px);box-shadow:0 8px 25px rgba(15,25,40,.3)}
@media(max-width:600px){.hero.carousel{--side-crop:84.843%}}

.banner-live-preview{margin:24px 0 36px}.banner-live-preview h2{font-size:20px;margin-bottom:10px}.banner-live-preview .section-intro{margin-bottom:18px}.banner-editor>img{aspect-ratio:4/1;height:auto;object-fit:cover}

.qr-trigger{width:40px;height:40px;flex-shrink:0;display:grid;place-items:center;border:1px solid #e4edf5;border-radius:10px;color:#0879ce;background:white}.qr-trigger:hover{background:#edf7ff;border-color:#a8d7f9}.qr-trigger svg{width:23px;height:23px}dialog:has(.contact-qr-dialog){width:min(380px,calc(100% - 30px))}.contact-qr-content{text-align:center}.contact-qr-content img,.qr-admin-image{display:block;width:100%;max-width:280px;height:auto;object-fit:contain;background:white;margin:0 auto}.contact-qr-content p{font-size:14px;color:#767b84;margin:18px 0 8px}.qr-admin-image{border:1px solid #e9edf2;border-radius:8px;padding:12px}

.price-suffix{font-size:var(--price-suffix-size,12px)}.product .author-dot{background:var(--card-badge-color,#0879ce);flex-shrink:0}.card-bottom .card-action{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;border-radius:50%;background:var(--card-action-color,#d45410);color:white}.card-bottom .card-action:hover{filter:brightness(.87)}.card-bottom .card-action.saved{box-shadow:0 0 0 2px white,0 0 0 3px var(--card-action-color,#d45410)}.brand-settings input[type=color]{width:100%;height:40px;padding:4px}

.card-bottom .card-action{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:auto;min-width:28px;background:transparent;color:#989da6;box-shadow:none}.card-bottom .card-action.saved{box-shadow:none}.card-bottom .card-action.saved svg{fill:currentColor}.card-bottom .card-action:has(.card-sales-count:not([hidden])){color:var(--card-action-color,#d45410)}.card-sales-count{font-size:12px;font-variant-numeric:tabular-nums}.card-sales-count[hidden]{display:none}

.main:has(.carousel) .hero.carousel{height:auto;aspect-ratio:100/22}.carousel .carousel-track{position:absolute;inset:0 auto 0 0}.main:has(.carousel) .hero.carousel:not(:has(.hero-slide:nth-child(2))){aspect-ratio:3/1}.banner-editor>img{aspect-ratio:3/1}.banner-image-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0 18px}.banner-editor .banner-image-tools .upload-button{margin:0}.banner-image-tools .image-adjuster{flex:0 0 100%}.purchase-card .owned-content-link{display:block;text-align:center;margin-bottom:8px}
@media(max-width:600px){.main:has(.carousel) .hero.carousel:has(.hero-slide:nth-child(2)){aspect-ratio:300/82}}

.banner-framing-editor .adjust-controls [hidden],.banner-framing-editor .adjust-actions [hidden]{display:none}.banner-adjust-upload{margin-top:12px}.banner-zoom-input{display:flex;align-items:center;gap:6px}.banner-zoom-input input{max-width:8rem}

.member-tool-card .cover{aspect-ratio:4/3}.member-tool-card .cover img{object-fit:contain}

.tool-detail-shot{margin:0 0 24px}.tool-detail-shot figcaption{margin-bottom:8px;font-weight:600}
.banner-workspace{max-width:900px;margin:0 auto}
.banner-workspace .admin-heading{align-items:center;gap:16px}
.banner-count{margin:8px 0 0;color:#677481;font-size:14px}
.banner-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,146px),1fr));gap:12px;margin:18px 0}
.banner-choice{display:grid;min-width:0;gap:5px;padding:7px;text-align:left;border:1px solid #dce3eb;border-radius:10px;background:#fff;color:#536170;font-size:12px}
.banner-choice img{display:block;width:100%;aspect-ratio:3/1;object-fit:cover;border-radius:5px;background:#f3f5f7}
.banner-choice[aria-pressed=true]{border-color:#0879ce;background:#edf7ff;box-shadow:0 0 0 1px #0879ce;color:#075e9c}
.banner-choice-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#202d3a}
.banner-selected .banner-editor{padding:0;overflow:hidden}
.banner-selected .banner-image-tools{margin:0;display:block}
.banner-selected .image-adjuster{margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0}
.banner-selected .banner-editor form{padding:clamp(16px,3vw,26px);margin:0}
.banner-selected .banner-editor .upload-progress:empty{display:none}
.banner-upload-placeholder{margin-bottom:12px}
.banner-upload-placeholder img{display:block;width:100%;max-height:240px;aspect-ratio:3/1;object-fit:cover;border-radius:8px}
.banner-image-tools:has(.banner-upload-placeholder){padding:18px}
.banner-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.banner-actions button{margin:0;padding:5px 9px;min-height:30px;border-radius:7px;font-size:12px;line-height:18px;white-space:nowrap}.banner-actions .banner-remove{color:#a23030}.banner-actions button:disabled{opacity:.5;cursor:not-allowed}
.banner-workspace [data-new-banner]:disabled{opacity:.5;cursor:not-allowed}
.admin-gallery-preview .admin-media-choices{margin:0;padding:12px;gap:10px}
.admin-gallery-preview .admin-media-choices button{width:clamp(65px,12vw,104px);height:auto;aspect-ratio:4/3}
.admin-gallery-preview .admin-media-choices button.selected{outline:2px solid var(--accent);outline-offset:1px}
.table-wrap .product-remove{color:#a23030;white-space:nowrap}

.service-offer-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.service-offer-header .eyebrow{color:var(--service-label-color,#626b75)}
.service-qr-button{flex:0 0 auto;min-height:26px;padding:4px 8px;border-radius:7px;background:transparent;color:var(--service-qr-color,#626b75);font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap}
.service-qr-button:hover,.service-qr-button:focus-visible{background:var(--service-qr-hover-color,#0879ce);color:#fff}
.service-qr-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:700px){.service-qr-button{min-height:36px}}

[data-hide-purchase-contact] .service-qr-button{display:none}
.brand-settings .purchase-contact-toggle{display:flex;align-items:center;gap:8px}
.brand-settings .purchase-contact-toggle input{width:auto;margin:0}
