/* Shared visual contract. Loaded after legacy component styles on every page. */
:root {
 --ui-wine:#650f2b; --ui-deep:#39151c; --ui-ivory:#fff9f0;
 --ui-cream:#f3e7d5; --ui-gold:#d6a75d; --ui-bronze:#865b24;
 --ui-ink:#382520; --ui-muted:#66534e; --ui-line:#dfcbb4;
 --ui-error:#9b2b32; --ui-success:#286349;
 --font-meta:12px; --font-label:14px; --font-body:16px; --font-lead:18px;
 --font-card:24px; --font-brand:32px; --font-section:40px;
 --font-display:48px; --font-hero:64px;
 --radius-control:6px; --radius-card:12px; --radius-round:50%;
 --wine:var(--ui-wine); --deep:var(--ui-deep); --gold:var(--ui-gold);
 --cream:var(--ui-ivory); --ink:var(--ui-ink); --muted:var(--ui-muted); --line:var(--ui-line);
}
body {font-size:var(--font-body)!important;color:var(--ui-ink)!important;background:var(--ui-ivory);line-height:1.65}
body :is(p,li,dt,dd,textarea,input,select) {font-size:var(--font-body)!important}
body :is(label,summary,nav a,.button,.text-link,.service-tagline,.admin-help,.form-note,.product-meta,.save-feedback) {font-size:var(--font-label)!important}
body :is(small,figcaption,.eyebrow,.language-note,.gallery-note,.service-disclaimer,.hero-inspiration-caption,.shop-intro,.sidebar-label,.topline,.admin-topline,.topline a,.admin-topline a,.topline span,.admin-topline span,.login-image-note,.brand small,.admin-studio-label,.auth-access-note,.settings-field small,.order-reference) {font-size:var(--font-meta)!important}
body :is(h1,.shop-section>h1,.product-detail h1,.admin-heading h1,.auth-panel h1,.section-page h1) {font-size:var(--font-display)!important;line-height:1.1!important;letter-spacing:-1px}
body :is(h2,.story h2,.login-welcome h2) {font-size:var(--font-section)!important;line-height:1.15!important}
body :is(h3,.service h3,.design-card h3,.product-copy h2,.product-detail h2,.setup-steps h2,.sales-chart h2,.cart-item h2) {font-size:var(--font-card)!important;line-height:1.25!important}
body .hero h1 {font-size:var(--font-hero)!important}
body .brand>span {font-size:var(--font-brand)!important}
body :is(.price,.metric strong,.admin-stats span,.process-grid>article>span) {font-size:var(--font-brand)!important;font-variant-numeric:tabular-nums}
body :is(.hero-description,.login-welcome>p:not(.eyebrow)) {font-size:var(--font-lead)!important}
body :is(.hero-note p,.hero-note strong,.class-details>span,.class-details p,.section-heading>p,.story p,.classes p,.contact p,.shop-note p,.order-card p,.tracking-card,.auth-divider) {font-size:var(--font-body)!important}
body :is(.mini-flower,.scene-star,.class-decoration,.login-features li>span,.whatsapp-float) {font-size:var(--font-card)!important}
body .auth-panel:before {font-size:var(--font-brand)!important;color:var(--ui-bronze)!important}
body :is(p,li,label,summary,small,figcaption,span,strong,em,code,pre,h1,h2,h3,nav a,.text-link) {color:inherit!important}
body :is(input,select,textarea) {color:var(--ui-ink)!important;background:var(--ui-ivory);border-color:var(--ui-line)}
body :is(.eyebrow,.price,.sidebar-label,.service-enquiry,.text-link) {color:var(--ui-wine)!important}
body :is(.form-note,.admin-help,.language-note,.product-meta,.save-feedback,.settings-field small,.gallery-note,.service-disclaimer) {color:var(--ui-muted)!important}
body :is(.hero,.topline,.admin-topline,footer,.sidebar-photo figcaption) {color:var(--ui-ivory)!important}
body .hero h1 em,body :is(.topline-tagline,.admin-top-tagline) {color:var(--ui-gold)!important}
body .hero :is(.eyebrow,.shop-intro,.hero-description,.hero-note,.hero-inspiration-caption,.text-link),body footer :is(a,span,small,p,.brand>span) {color:var(--ui-ivory)!important}
body :is(.mini-flower,.login-welcome h2 em,.class-decoration) {color:var(--ui-bronze)!important}
body :is([role=alert],#catalog-error) {color:var(--ui-error)!important}
body :is(.service,.store-paths article,.design-card,.lookbook-frame,.process,.classes,#enquiry-form,.privacy,.shop-lead,.shop-note,.cart-summary,.order-card,.product-card,.product-editor,.shop-controls,.admin-heading,.admin-stats>div,.metric,[role=tabpanel],.setup-steps article,.shop-admin-grid>form,#settings-form,.folder-import-box,.upload-dropzone,.admin-design-card,.table-scroll,.sales-chart,.auth-panel,.empty-state,.sidebar-photo,.product-detail) {border-radius:var(--radius-card)!important}
body :is(input,select,textarea,button,.button,.filters button,.admin-tabs button,.admin-sidebar a,#navigation a,.image-unavailable,.design-shortcuts a,.product-detail>img,.path-photo img,.class-photo img) {border-radius:var(--radius-control)!important}
body :is(.brand img,.whatsapp-float,.login-features li>span,.upi-badge) {border-radius:var(--radius-round)!important}
body :is(.hero h1 em:after,.password-toggle) {border-radius:0!important}
/* Three action treatments; image cards retain their separate card affordance. */
body :is(button:not(.design-card),.button,.service-enquiry) {
 font:600 var(--font-label)/1.4 'DM Sans',Arial,sans-serif!important;
 min-height:44px;padding:12px 20px;border:1px solid var(--ui-wine)!important;
 background:transparent!important;color:var(--ui-wine)!important;box-shadow:none!important;
 border-radius:var(--radius-control)!important;transition:background .18s,transform .18s;
}
body :is(.button.primary,.service-enquiry,.filters button[aria-pressed=true],.admin-tabs button[aria-selected=true]) {
 background:var(--ui-wine)!important;border-color:var(--ui-wine)!important;color:var(--ui-ivory)!important;
}
body :is(.button.secondary,.button.cream) {background:transparent!important;color:var(--ui-wine)!important;border-color:var(--ui-wine)!important}
body .hero .button.secondary {background:var(--ui-gold)!important;color:var(--ui-deep)!important;border-color:var(--ui-gold)!important}
body .hero .button.primary {border-color:var(--ui-gold)!important}
body :is(.text-link,button.text-link,.password-toggle) {min-height:44px;padding:8px 0!important;background:transparent!important;border:0!important;border-bottom:1px solid currentColor!important;border-radius:0!important;box-shadow:none!important;font-weight:600!important}
body .password-toggle {min-height:44px;padding:4px!important;border:0!important}
body :is(.button:disabled,button:disabled) {opacity:.6;cursor:not-allowed}
body :is(a,button,input,select,textarea,summary):focus-visible {outline:3px solid var(--ui-bronze)!important;outline-offset:4px!important}
body .hero :is(a,button):focus-visible {outline-color:var(--ui-gold)!important}
/* Service frames cannot shrink to an image's intrinsic width. */
body .services-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;align-items:stretch}
body .services-grid .service {min-width:0;display:flex;flex-direction:column;padding:0 0 24px!important;overflow:hidden;background:var(--ui-ivory)}
body .service .service-photo {position:relative;flex:0 0 auto;align-self:stretch;width:100%!important;min-width:0;max-width:none!important;aspect-ratio:4/3;height:auto!important;margin:0 0 20px!important;overflow:hidden;border-radius:0!important}
body .service .service-photo img {position:absolute;inset:0;display:block;width:100%!important;height:100%!important;object-fit:cover;border-radius:0!important}
body .service .service-photo figcaption {position:absolute;inset:auto auto 0 0;padding:6px 10px;background:var(--ui-deep);color:var(--ui-ivory)!important;font-size:var(--font-meta)!important;line-height:1.5}
body .service>:is(h3,strong,p,ul,a) {margin-left:24px!important;margin-right:24px!important}
body .service h3 {min-height:2.5em;margin-bottom:12px}
body .service-tagline {min-height:2.8em;display:block}
body .service p {margin-bottom:18px}
body .service ul {padding-left:18px;margin-top:0;margin-bottom:24px}
body .service .service-enquiry {margin-top:auto;display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px}
body .service-links {display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px;margin-top:24px}
body .service-links .service-all-link {margin:0}
/* One stable photo row and one stable label row in every gallery card. */
body .design-card {min-width:0;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;padding:0!important;background:var(--ui-ivory);border:1px solid var(--ui-line);color:var(--ui-ink)!important}
body .design-card .design-image.photo-image {position:relative;flex:0 0 auto;width:100%;aspect-ratio:4/3;height:auto!important;min-height:0!important;overflow:hidden;border-radius:0!important;background:var(--ui-cream)}
body .design-card .photo-image img {position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:contain;border-radius:0!important}
body .design-card .card-title {padding:18px 20px 0!important;margin:0;min-height:54px;text-align:left}
body .design-card h3 {margin:0!important;line-height:1.25}
body .design-card>p {padding:4px 20px 0;margin:0;text-align:left;font-size:var(--font-label)!important}
body .design-card .view-design {margin-top:auto;padding:14px 20px;font-size:var(--font-label)!important;text-align:left;color:var(--ui-wine)!important}
/* Story image and text share a bounded, connected grid. */
body .story.section {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px!important;align-items:center;max-width:1280px}
body .story-copy {min-width:0;margin:0;padding:0;max-width:58ch;justify-self:start}
body .lookbook-frame {width:100%;margin:0;min-width:0}
body .lookbook-frame img {width:100%;aspect-ratio:4/3;height:auto;object-fit:contain}
body .contact .visit-card .button.secondary {background:transparent!important;border:1px solid var(--ui-wine)!important;color:var(--ui-wine)!important}
body .contact #enquiry-form .primary {background:var(--ui-wine)!important;color:var(--ui-ivory)!important}
body .brand small {white-space:normal!important;letter-spacing:.5px!important;line-height:1.5!important}
body .class-details {color:var(--ui-ink)!important}
body .table-scroll {color:var(--ui-ink)!important}
body.management-page .admin-sidebar a[aria-current=page] {color:var(--ui-ivory)!important;background:var(--ui-wine)}
body.management-page :is(.admin-stats>div,.metric) {color:var(--ui-ink)!important;background:var(--ui-ivory)}
body .product-card :is(h2,h3),body .product-detail h2 {font-size:var(--font-card)!important}
body .auth-panel:before {line-height:1}
body .hero-note .mini-flower {font-size:var(--font-card)!important}
@media(min-width:1301px){body.boutique-page header.responsive-header{grid-template-columns:280px minmax(0,1fr) 164px;column-gap:16px;padding-left:3%;padding-right:3%}body.boutique-page header.responsive-header #navigation a{font-size:var(--font-meta)!important;padding:10px 4px;line-height:1.4}body.boutique-page header.responsive-header .brand small{white-space:nowrap!important;font-size:var(--font-meta)!important}}
@media(max-width:1100px){body .services-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body .story.section{gap:24px!important}}
@media(max-width:760px){body .services-grid{grid-template-columns:1fr}body .story.section{grid-template-columns:1fr;gap:24px!important}body .hero h1{font-size:var(--font-display)!important}body :is(h1,.shop-section>h1,.product-detail h1,.admin-heading h1,.auth-panel h1,.section-page h1){font-size:var(--font-section)!important}body :is(h2,.story h2,.login-welcome h2){font-size:var(--font-brand)!important}body .brand>span{font-size:var(--font-card)!important}body .brand small{font-size:var(--font-meta)!important;letter-spacing:0!important}body .responsive-header .brand{max-width:190px}body .login-welcome>p:not(.eyebrow){font-size:var(--font-body)!important}body .service h3,body .service-tagline{min-height:0}body .service .service-photo{aspect-ratio:4/3}body .header-whatsapp{display:none!important}}
@media(prefers-reduced-motion:reduce){body :is(button,.button,.design-card){transition:none!important;transform:none!important}}
[hidden]{display:none!important}

/* Supplied service banners retain their complete composition and embedded text. */
body .service .service-photo-supplied{aspect-ratio:3/2!important}
body .service .service-photo-supplied img{object-fit:contain!important}

/* Strong contrast for decorative gold details; gallery space reserved before API response. */
body .ticker i,body .class-details i{color:#865b24!important}
body .hero-note .mini-flower{color:#f4deb8!important}
body #catalog-grid{min-height:350px}

body .ribbon i{color:#865b24!important}

/* Keep gallery actions readable despite inherited typography colors. */
body .design-card .view-design,body .design-card .view-design span{color:#FFF9F0!important}body .design-card .view-design{display:flex;align-items:center;justify-content:center;gap:10px;background:#650F2B;min-height:44px}body .design-card .view-design svg{width:20px;height:20px;flex-shrink:0}
