/* A shared visual language for every Frexima room.  It adds depth to visual
   surfaces while leaving forms, conversations and data tables calm and flat. */
:is(body.client-body, body.brand-body) {
    --room-ink: #2f251f;
    --room-muted: #756860;
    --room-oak: #95684b;
    --room-oak-deep: #704831;
    --room-cream: #fffaf4;
    --room-linen: #f7efe7;
    --room-line: #e5d7c8;
    --room-shadow: 0 18px 42px rgba(75, 51, 35, .10);
    --room-shadow-hover: 0 24px 52px rgba(75, 51, 35, .16);
}

:is(body.client-body, body.brand-body) :is(.section-header, .page-heading, .page-actions, .client-discovery-hero, .inspirations-hero, .client-lookbook-hero, .connections-hero, .growth-hero, .role-invitation-heading, .calendar-page-intro, .quick-client-desktop-head, .open-appointments-header, .client-main-heading, .ai-assistant-header, .video-hub-stage, .frexima-forum-page .forum-hero) {
    position: relative;
    isolation: isolate;
    border: 1px solid color-mix(in srgb, var(--room-line) 88%, transparent);
    border-radius: 22px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--room-cream) 96%, white), rgba(255,255,255,.82));
    box-shadow: var(--room-shadow);
}

:is(body.client-body, body.brand-body) :is(.section-header, .page-heading, .page-actions, .client-discovery-hero, .inspirations-hero, .client-lookbook-hero, .connections-hero, .growth-hero, .role-invitation-heading, .calendar-page-intro, .quick-client-desktop-head, .open-appointments-header, .client-main-heading, .ai-assistant-header, .video-hub-stage, .frexima-forum-page .forum-hero)::after {
    content: '';
    position: absolute;
    inset-inline-end: 18px;
    inset-block-end: 14px;
    width: 92px;
    height: 44px;
    z-index: -1;
    border-radius: 100% 0 100% 0;
    background: radial-gradient(circle at 70% 35%, rgba(201, 160, 121, .22), transparent 68%);
    pointer-events: none;
}

/* Image planes get a gentle gallery rim, so a module feels like a room with
   a focal point rather than a flat admin panel. */
:is(body.client-body, body.brand-body) :is(.hair-studio-salon-stage, .style-studio-hero-media, .nail-studio-hero-image, .makeup-salon-arrival, .client-home-room, .video-hub-cover, .forum-hero-media, .client-profile-hero, .client-main-heading) {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 0 0 1px rgba(149,104,75,.20), 0 20px 44px rgba(75,51,35,.14);
}

:is(body.client-body, body.brand-body) :is(.hair-studio-salon-stage img, .style-studio-hero-media img, .nail-studio-hero-image img, .makeup-salon-arrival img, .video-hub-cover img, .forum-hero-media img, .client-profile-hero img) {
    display: block;
    width: 100%;
    object-fit: cover;
    filter: saturate(.98) contrast(1.01);
}

:is(body.client-body, body.brand-body) :is(.btn-primary, .btn-action, .button-primary, .primary-action, .client-home-card a, .client-home-cta) {
    border-radius: 13px;
    box-shadow: 0 8px 18px rgba(112,72,49,.14);
}

/* Choice controls (for example women's/men's clothing and quality filters)
   read as tactile swatches without changing their existing form behaviour. */
:is(body.client-body, body.brand-body) :is(.choice-chip, .choice-pill, .style-choice, .clothing-choice, .quality-choice, [data-choice]) {
    border: 1px solid var(--room-line);
    border-radius: 999px;
    background: linear-gradient(135deg, #fffdf9, var(--room-linen));
    color: var(--room-ink);
    min-height: 42px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
:is(body.client-body, body.brand-body) :is(.choice-chip, .choice-pill, .style-choice, .clothing-choice, .quality-choice, [data-choice]):is(:hover, :focus-visible, .is-active, .active, [aria-pressed="true"]) {
    border-color: var(--room-oak);
    box-shadow: 0 8px 20px rgba(112,72,49,.13);
    transform: translateY(-1px);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    :is(body.client-body, body.brand-body) :is(.hair-studio-salon-stage, .style-studio-hero-media, .nail-studio-hero-image, .makeup-salon-arrival, .video-hub-cover, .forum-hero-media):hover {
        transform: translateY(-2px);
        box-shadow: 0 0 0 1px rgba(149,104,75,.24), var(--room-shadow-hover);
    }
}

@media (max-width: 767.98px) {
    :is(body.client-body, body.brand-body) :is(.section-header, .page-heading, .page-actions, .client-discovery-hero, .inspirations-hero, .client-lookbook-hero, .connections-hero, .growth-hero, .role-invitation-heading, .calendar-page-intro, .quick-client-desktop-head, .open-appointments-header, .client-main-heading, .ai-assistant-header, .video-hub-stage, .frexima-forum-page .forum-hero) {
        border-radius: 17px;
        box-shadow: 0 12px 28px rgba(75,51,35,.08);
    }
    /* Keep the room feeling calm while letting low-power phones paint the
       first screen quickly. Heavy depth effects are reserved for larger
       canvases; mobile still gets the oak/linen visual language. */
    :is(body.client-body, body.brand-body) :is(.frexima-panel, .room-card, .salon-room-card, .client-home-room, .video-hub-stage) {
        box-shadow: 0 6px 16px rgba(75,51,35,.07);
        transform: none;
        perspective: none;
        contain: paint;
    }
    :is(body.client-body, body.brand-body) :is(.client-home-room img, .video-hub-stage img, .style-studio-hero-media img, .hair-studio-salon-stage img, .makeup-salon-arrival img, .nail-studio-hero-image img) {
        content-visibility: auto;
        contain-intrinsic-size: 240px 180px;
    }
    :is(body.client-body, body.brand-body) :is(.section-header, .page-heading, .page-actions, .client-discovery-hero, .inspirations-hero, .client-lookbook-hero, .connections-hero, .growth-hero, .role-invitation-heading, .calendar-page-intro, .quick-client-desktop-head, .open-appointments-header, .client-main-heading, .ai-assistant-header, .video-hub-stage, .frexima-forum-page .forum-hero)::after { inset-inline-end: 10px; width: 68px; }
}

@media (prefers-reduced-motion: reduce) {
    :is(body.client-body, body.brand-body) :is(.choice-chip, .choice-pill, .style-choice, .clothing-choice, .quality-choice, [data-choice]) { transition: none; }
}
