/*!
 * Zenta CRM - Core admin stylesheet
 * Built on Bootstrap 5.3. All colours are driven by CSS custom properties so the
 * accent colour and theme can be changed from Settings without recompiling.
 */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
    /*
     * Accent - overridden at runtime from the theme settings. The stock value
     * is Zenta's Jade; everything tinted (active menu items, links, focus rings,
     * chart series one) derives from it. The hover is Theme::accentHover()'s
     * 12% darker shade, so the fallback matches what the server writes.
     */
    --zenta-accent:            #127a64;
    --zenta-accent-rgb:        18, 122, 100;
    --zenta-accent-hover:      #0f6b58;
    --zenta-accent-soft:       rgba(18, 122, 100, .10);
    --zenta-on-accent:         #ffffff;
    /*
     * The accent as text. On a white page that is the accent itself; on a dark
     * one a deep colour that reads well as a fill is unreadable as 13px type,
     * so the dark theme lightens it and everything accent-coloured follows.
     */
    --zenta-accent-text:       var(--zenta-accent);

    /* Surfaces. The grey ground is painted on body alone: cards, inputs,
       dropdowns and tables all sit on white and inherit it. */
    --zenta-body-bg:           #f3f3f9;
    --zenta-ground:            #f3f3f9;
    --zenta-surface:           #ffffff;
    --zenta-surface-alt:       #f3f6f9;
    --zenta-sidebar-bg:        #151a23;
    --zenta-topbar-bg:         #ffffff;

    /* Text */
    --zenta-text:              #212529;
    --zenta-heading:           #495057;
    --zenta-text-muted:        #878a99;
    --zenta-text-faint:        #a6aab6;

    /* Lines & depth */
    --zenta-border:            #e9ebec;
    --zenta-border-strong:     #ced4da;
    --zenta-shadow-sm:         0 1px 2px rgba(56, 65, 74, .10);
    --zenta-shadow:            0 1px 2px rgba(56, 65, 74, .15);
    --zenta-shadow-lg:         0 5px 10px rgba(30, 32, 37, .12);

    /* Shape - small radii throughout. */
    --zenta-radius-sm:         .2rem;
    --zenta-radius:            .25rem;
    --zenta-radius-lg:         .375rem;

    /* Metrics */
    --zenta-sidebar-width:     250px;
    --zenta-sidebar-collapsed:  70px;
    --zenta-topbar-height:      70px;
    --zenta-transition:        .18s ease;

    /*
     * Poppins for the interface, Inter for figures - both served from
     * assets/vendor/fonts, so no page calls out to Google. The system stack
     * behind them carries any script the Latin subsets do not cover.
     */
    --zenta-font:              'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --zenta-font-figures:      'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /*
     * The menu: dark by default. Every one of these is a colour the theme
     * editor may set (see App\Support\Appearance\Palette), so a workspace that
     * wants a light menu sets the background and the text and the rest follows.
     */
    --zenta-sidebar-text:        #a3a6b7;
    --zenta-sidebar-hover-bg:    transparent;
    --zenta-sidebar-hover-text:  #ffffff;
    --zenta-sidebar-active-bg:   rgba(255, 255, 255, .06);
    --zenta-sidebar-active-text: #ffffff;
    --zenta-sidebar-heading:     #7b7f93;
    --zenta-sidebar-sub:         #a3a6b7;
    --zenta-sidebar-brand:       #ffffff;
    --zenta-sidebar-line:        rgba(255, 255, 255, .06);

    /* Bootstrap reads these, so components we have not touched still match. */
    --bs-body-font-family:  var(--zenta-font);
    --bs-body-font-size:    .8125rem;
    --bs-body-color:        var(--zenta-text);
    --bs-secondary-color:   var(--zenta-text-muted);
    --bs-border-color:      var(--zenta-border);
    --bs-border-radius:     var(--zenta-radius);
    --bs-border-radius-sm:  var(--zenta-radius-sm);
    --bs-border-radius-lg:  var(--zenta-radius-lg);
    --bs-heading-color:     var(--zenta-heading);
    --bs-link-color:        var(--zenta-accent-text);
    --bs-link-hover-color:  var(--zenta-accent-hover);
    --bs-emphasis-color:    var(--zenta-text);
    /* Bootstrap's own "primary" is the accent too, so a text-bg-primary badge,
       a border-primary or a text-primary is the workspace's colour, not
       Bootstrap's stock blue beside it. */
    --bs-primary:           var(--zenta-accent);
    --bs-primary-rgb:       var(--zenta-accent-rgb);
}

[data-bs-theme="dark"] {
    --zenta-body-bg:           #0f1621;
    --zenta-ground:            #0f1621;
    --zenta-surface:           #16202e;
    --zenta-surface-alt:       #1b2635;
    --zenta-sidebar-bg:        #131c28;
    --zenta-topbar-bg:         #16202e;

    --zenta-text:              #e6ebf2;
    --zenta-heading:           #e6ebf2;
    --zenta-text-muted:        #94a3b8;
    --zenta-text-faint:        #64748b;

    --zenta-border:            #253346;
    --zenta-border-strong:     #33445c;
    --zenta-shadow-sm:         0 1px 2px rgba(0, 0, 0, .35);
    --zenta-shadow:            0 1px 3px rgba(0, 0, 0, .40);
    --zenta-shadow-lg:         0 12px 28px rgba(0, 0, 0, .55);
    --zenta-accent-soft:       rgba(var(--zenta-accent-rgb), .16);
    --zenta-accent-text:       color-mix(in srgb, var(--zenta-accent) 45%, #ffffff);

    --zenta-sidebar-text:        #94a3b8;
    --zenta-sidebar-hover-text:  #e6ebf2;
    --zenta-sidebar-active-bg:   rgba(255, 255, 255, .06);
    --zenta-sidebar-active-text: #e6ebf2;
    --zenta-sidebar-heading:     #64748b;
    --zenta-sidebar-sub:         #94a3b8;
    --zenta-sidebar-brand:       #e6ebf2;
    --zenta-sidebar-line:        rgba(255, 255, 255, .06);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
/*
 * Keep the space a scrollbar would take, always.
 *
 * Without this the page is one width while it fits and another the moment it
 * does not - so opening a menu that makes the page a little taller pulls
 * everything sideways by the scrollbar's width and snaps back when it closes.
 */
html { scrollbar-gutter: stable; }

body {
    background-color: var(--zenta-body-bg);
    color: var(--zenta-text);
    font-family: var(--zenta-font);
    font-size: .8125rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 600; color: var(--zenta-heading); }

/*
 * Figures set in Inter: its digits are the same width, so a column of money or
 * a running total does not shuffle sideways as it changes.
 */
.tabular, .zenta-kpi-value, .zenta-stat b { font-family: var(--zenta-font-figures); font-variant-numeric: tabular-nums; }

a { color: var(--zenta-accent-text); text-decoration: none; }
a:hover { color: var(--zenta-accent-hover); }
[data-bs-theme="dark"] a:hover { color: color-mix(in srgb, var(--zenta-accent) 25%, #ffffff); }

::selection { background: var(--zenta-accent); color: var(--zenta-on-accent); }

/* Thin scrollbars, WebKit only - degrades gracefully elsewhere. */
* { scrollbar-width: thin; scrollbar-color: var(--zenta-border-strong) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--zenta-border-strong); border-radius: 4px; }

/* ==========================================================================
   3. Application shell
   ========================================================================== */
/*
 * The menu, three ways (public/assets/js/app.js):
 *
 *   - full width, with each section a collapsible group - opening one closes
 *     the others, and the one holding the current page opens itself;
 *   - a 70px rail of icons (the hamburger, remembered per browser), where
 *     hovering a section flies its links out beside the rail;
 *   - under 992px, a drawer over the page.
 */
.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--zenta-sidebar-width);
    background: var(--zenta-sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1045;
    box-shadow: 0 2px 4px rgba(15, 34, 58, .12);
    transition: width .2s ease, transform .25s ease;
}

.app-main {
    margin-left: var(--zenta-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left .2s ease;
}

.app-content { flex: 1 0 auto; padding: 1.5rem; }

.app-footer {
    flex-shrink: 0;
    padding: .9rem 1.5rem;
    border-top: 1px solid var(--zenta-border);
    background: var(--zenta-footer-bg, var(--zenta-surface));
    color: var(--zenta-footer-text, var(--zenta-text-muted));
    font-size: .75rem;
}

/* ==========================================================================
   4. Sidebar
   ========================================================================== */
.zenta-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    height: var(--zenta-topbar-height);
    padding: 0 1rem 0 1.25rem;
    flex-shrink: 0;
    overflow: hidden;
    color: var(--zenta-sidebar-brand);
    min-width: 0;
}
.zenta-brand:hover { color: var(--zenta-sidebar-brand); }
.zenta-brand-mark {
    width: 32px; height: 32px;
    flex-shrink: 0;
    display: grid; place-items: center;
    overflow: hidden;
    border-radius: var(--zenta-radius);
    background: var(--zenta-accent);
    color: var(--zenta-on-accent);
    font-weight: 700;
    font-size: .9375rem;
}
.zenta-brand-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.zenta-brand-text {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zenta-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .15) transparent;
}

/* Section titles; one with nothing under it for this person is hidden. */
.app-sidebar .zenta-nav-heading {
    padding: 1.1rem 1.5rem .45rem;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--zenta-sidebar-heading);
    cursor: default;
}
.app-sidebar .zenta-nav-heading:has(+ .zenta-nav-heading),
.app-sidebar .zenta-nav-heading:last-child { display: none; }

/* The in-page version (Settings, for one) keeps the pill look it had. */
.zenta-nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .75rem;
    border-radius: var(--zenta-radius);
    color: var(--zenta-text-muted);
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--zenta-transition), color var(--zenta-transition);
}
.zenta-nav-link:hover { background: var(--zenta-surface-alt); color: var(--zenta-text); }
.zenta-nav-link.active { background: var(--zenta-accent-soft); color: var(--zenta-accent-text); font-weight: 600; }
.zenta-nav-icon { font-size: 1.0625rem; line-height: 1; flex-shrink: 0; }
.zenta-nav-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---- the menu proper ----------------------------------------------------- */

.app-sidebar .zenta-nav-link {
    gap: .75rem;
    padding: .62rem 1.5rem;
    border-radius: 0;
    color: var(--zenta-sidebar-text);
    font-size: .875rem;
    font-weight: 500;
    position: relative;
}
.app-sidebar .zenta-nav-icon { font-size: 1.1rem; width: 1.25rem; text-align: center; }
.app-sidebar .zenta-nav-link:hover,
.app-sidebar .zenta-nav-link:focus-visible {
    background: var(--zenta-sidebar-hover-bg);
    color: var(--zenta-sidebar-hover-text, var(--zenta-sidebar-active-text));
}
.app-sidebar .zenta-nav-link.active,
.app-sidebar .zenta-nav-toggle.is-current,
.app-sidebar .zenta-nav-toggle[aria-expanded="true"] {
    color: var(--zenta-sidebar-active-text);
    font-weight: 500;
}
.app-sidebar .zenta-nav-link.active,
.app-sidebar .zenta-nav-toggle.is-current { background: var(--zenta-sidebar-active-bg); }

/* The marker down the leading edge of whatever you are looking at. */
.app-sidebar .zenta-nav-link.active::before,
.app-sidebar .zenta-nav-toggle.is-current::before {
    content: "";
    position: absolute;
    inset-block: .45rem;
    inset-inline-start: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--zenta-accent);
}
[dir="rtl"] .app-sidebar .zenta-nav-link.active::before,
[dir="rtl"] .app-sidebar .zenta-nav-toggle.is-current::before { border-radius: 3px 0 0 3px; }

/* The chevron: right when shut, down when open (and the right way round in RTL). */
.zenta-nav-caret {
    font-size: .65rem;
    margin-inline-start: auto;
    opacity: .75;
    transition: transform .2s ease;
}
[dir="rtl"] .zenta-nav-caret { transform: rotate(180deg); }
.zenta-nav-toggle[aria-expanded="true"] .zenta-nav-caret { transform: rotate(90deg); }
.zenta-nav-toggle .zenta-nav-badge { margin-inline-start: auto; }
.zenta-nav-toggle:has(.zenta-nav-badge) .zenta-nav-caret { margin-inline-start: .5rem; }

.zenta-nav-badge {
    font-size: .6875rem;
    font-weight: 600;
    padding: .0625rem .375rem;
    border-radius: 999px;
    background: var(--zenta-accent);
    color: var(--zenta-on-accent);
    flex-shrink: 0;
}

/* A section's links. */
.app-sidebar .zenta-nav-sub { padding-bottom: .35rem; }
.app-sidebar .zenta-nav-sub > a {
    display: flex;
    align-items: center;
    gap: .5rem;
    position: relative;
    padding: .42rem 1.5rem .42rem 3.5rem;
    color: var(--zenta-sidebar-sub);
    font-size: .8125rem;
    transition: color .15s ease;
}
[dir="rtl"] .app-sidebar .zenta-nav-sub > a { padding: .42rem 3.5rem .42rem 1.5rem; }
.app-sidebar .zenta-nav-sub > a::before {
    content: "";
    position: absolute;
    inset-inline-start: 2.2rem;
    top: 50%;
    width: 6px;
    height: 1.5px;
    background: currentColor;
    opacity: .5;
    transition: width .2s ease, opacity .2s ease;
}
.app-sidebar .zenta-nav-sub > a:hover,
.app-sidebar .zenta-nav-sub > a.active { color: var(--zenta-sidebar-active-text); }
.app-sidebar .zenta-nav-sub > a:hover::before,
.app-sidebar .zenta-nav-sub > a.active::before { width: 10px; opacity: 1; }
.app-sidebar .zenta-nav-sub > a.active { font-weight: 500; }
.app-sidebar .zenta-nav-sub > a .zenta-nav-badge { margin-inline-start: auto; }

/* Only ever shown on the rail, as the heading of a fly-out. */
.zenta-nav-flyout-title { display: none; }

/* ---- the rail: icons only, sections fly out ------------------------------ */

@media (min-width: 992px) {
    .sidebar-collapsed .app-sidebar { width: var(--zenta-sidebar-collapsed); }
    .sidebar-collapsed .app-main    { margin-left: var(--zenta-sidebar-collapsed); }
    .sidebar-collapsed .zenta-brand  { justify-content: center; padding: 0; }
    .sidebar-collapsed .zenta-brand-text { display: none !important; }
    .sidebar-collapsed .zenta-nav { scrollbar-width: none; }

    .sidebar-collapsed .app-sidebar .zenta-nav-heading { padding: .9rem 0 .5rem; display: flex; justify-content: center; }
    .sidebar-collapsed .app-sidebar .zenta-nav-heading span { display: none; }
    .sidebar-collapsed .app-sidebar .zenta-nav-heading::before { content: ""; width: 18px; border-top: 1px solid var(--zenta-sidebar-line); }
    .sidebar-collapsed .app-sidebar .zenta-nav-heading:has(+ .zenta-nav-heading),
    .sidebar-collapsed .app-sidebar .zenta-nav-heading:last-child { display: none; }

    .sidebar-collapsed .app-sidebar .zenta-nav-link { justify-content: center; padding: .8rem 0; }
    .sidebar-collapsed .app-sidebar .zenta-nav-icon { font-size: 1.3rem; width: auto; }
    .sidebar-collapsed .app-sidebar .zenta-nav-label,
    .sidebar-collapsed .app-sidebar .zenta-nav-caret { display: none; }

    .sidebar-collapsed .app-sidebar .zenta-nav-sub,
    .sidebar-collapsed .app-sidebar .zenta-nav-sub.show { display: none !important; }

    /* The fly-out: fixed, so the menu's scrolling box does not clip it. */
    .sidebar-collapsed .zenta-nav-item:hover > .zenta-nav-sub,
    .sidebar-collapsed .zenta-nav-item:focus-within > .zenta-nav-sub {
        display: block !important;
        position: fixed;
        top: var(--fly-top, 0);
        inset-inline-start: var(--zenta-sidebar-collapsed);
        width: 230px;
        height: auto !important;
        max-height: calc(100vh - 16px);
        overflow-y: auto;
        background: var(--zenta-sidebar-bg);
        border-radius: 0 var(--zenta-radius-lg) var(--zenta-radius-lg) 0;
        box-shadow: 0 5px 18px rgba(0, 0, 0, .22);
        padding: 0 0 .5rem;
        z-index: 1050;
        animation: zenta-fly .15s ease;
    }
    [dir="rtl"].sidebar-collapsed .zenta-nav-item:hover > .zenta-nav-sub { border-radius: var(--zenta-radius-lg) 0 0 var(--zenta-radius-lg); }
    .sidebar-collapsed .zenta-nav-flyout-title {
        display: block;
        padding: .8rem 1.25rem .55rem;
        margin-bottom: .25rem;
        color: var(--zenta-sidebar-active-text);
        font-weight: 600;
        font-size: .8125rem;
        border-bottom: 1px solid var(--zenta-sidebar-line);
    }
    .sidebar-collapsed .app-sidebar .zenta-nav-sub > a { padding: .42rem 1.25rem .42rem 2.1rem; }
    .sidebar-collapsed .app-sidebar .zenta-nav-sub > a::before { inset-inline-start: 1.1rem; }

    /* A single link shows its name the same way. */
    .sidebar-collapsed .zenta-nav-item:hover > .zenta-nav-link > .zenta-nav-label {
        display: flex;
        align-items: center;
        position: fixed;
        top: var(--fly-top, 0);
        inset-inline-start: var(--zenta-sidebar-collapsed);
        height: 48px;
        padding: 0 1.25rem;
        background: var(--zenta-sidebar-bg);
        color: var(--zenta-sidebar-active-text);
        border-radius: 0 var(--zenta-radius-lg) var(--zenta-radius-lg) 0;
        box-shadow: 0 5px 18px rgba(0, 0, 0, .22);
        z-index: 1050;
        white-space: nowrap;
        flex: 0 0 auto;
        overflow: visible;
    }
}
@keyframes zenta-fly { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   5. Topbar
   ========================================================================== */
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--zenta-topbar-height);
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0 1.5rem;
    background: var(--zenta-topbar-bg);
    box-shadow: var(--zenta-shadow);
}

.zenta-icon-btn {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--zenta-text-muted);
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: background var(--zenta-transition), color var(--zenta-transition);
}
.zenta-icon-btn:hover { background: var(--zenta-ground); color: var(--zenta-accent-text); }
.zenta-icon-btn.has-dot { position: relative; }
.zenta-icon-btn.has-dot::after {
    content: "";
    position: absolute; top: 7px; right: 8px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #f06548;
    border: 2px solid var(--zenta-topbar-bg);
}

/* The hamburger draws itself, so it can animate between the two menu widths. */
.zenta-hamburger { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; }
.zenta-hamburger span {
    display: block;
    width: 20px; height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: width .2s ease, transform .2s ease;
}
.zenta-hamburger span:nth-child(2) { width: 14px; align-self: center; transform: translateX(-3px); }
.sidebar-collapsed .zenta-hamburger span:nth-child(2) { width: 20px; transform: none; }

.zenta-search { position: relative; flex: 1 1 auto; width: clamp(220px, 28vw, 340px); max-width: 340px; }
.zenta-search .bi {
    position: absolute; left: .75rem; top: 50%;
    transform: translateY(-50%);
    color: var(--zenta-text-muted);
    pointer-events: none;
}
.zenta-search input {
    width: 100%;
    height: 38px;
    padding: 0 .75rem 0 2.25rem;
    border: 0;
    border-radius: var(--zenta-radius);
    background: var(--zenta-ground);
    color: var(--zenta-text);
    font-size: .8125rem;
}
.zenta-search input:focus {
    outline: 0;
    box-shadow: none;
    background: var(--zenta-surface-alt);
}

/* The account button: a pill with the initials, the name and the role. */
.zenta-topbar-user {
    display: flex;
    align-items: center;
    gap: .6rem;
    border: 0;
    background: var(--zenta-ground);
    border-radius: 2rem;
    padding: .3rem .4rem;
    color: var(--zenta-text);
}
@media (min-width: 1200px) { .zenta-topbar-user { padding-inline-end: 1rem; } }
.zenta-topbar-user:hover { background: var(--zenta-surface-alt); }
.zenta-topbar-user-name {
    display: block;
    font-weight: 600; font-size: .8125rem; line-height: 1.2;
    max-width: 11rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--zenta-topbar-text, var(--zenta-text));
}
.zenta-topbar-user-role {
    display: block;
    font-size: .72rem; line-height: 1.2;
    color: var(--zenta-topbar-text-muted, var(--zenta-text-muted));
}

.zenta-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--zenta-accent);
    color: var(--zenta-on-accent);
    display: grid; place-items: center;
    font-size: .75rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* ==========================================================================
   6. Page header
   ========================================================================== */
/*
 * The page's own title and actions, in a band under the bar that is the same
 * everywhere. It is rendered inside .app-content by <x-page-header>, so it
 * bleeds back out through that padding rather than asking 118 views to move.
 */
.zenta-page-head {
    background: var(--zenta-surface);
    box-shadow: 0 3px 3px rgba(56, 65, 74, .06);
    border-top: 1px solid var(--zenta-border);
    margin: -1.5rem -1.5rem 1.5rem;
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    min-height: 58px;
}
.zenta-page-head > div:first-child { flex: 1 1 auto; min-width: 0; }
.zenta-page-title {
    margin: 0;
    font-size: .9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--zenta-heading);
}
.zenta-page-head .breadcrumb { margin: .1rem 0 0; font-size: .75rem; --bs-breadcrumb-divider: "›"; }
.zenta-page-head .breadcrumb-item,
.zenta-page-head .breadcrumb-item a { color: var(--zenta-text-muted); }
.zenta-page-head .breadcrumb-item.active { color: var(--zenta-text-muted); }

/* ==========================================================================
   7. Bootstrap component overrides
   ========================================================================== */
.card {
    background: var(--zenta-surface);
    border: 1px solid var(--zenta-border);
    border-radius: var(--zenta-radius);
    box-shadow: var(--zenta-shadow-sm);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--zenta-border);
    padding: .875rem 1.125rem;
    font-weight: 600;
}
.card-body { padding: 1.125rem; }

.btn { border-radius: var(--zenta-radius-sm); font-weight: 500; font-size: .8125rem; }
.text-bg-primary { color: var(--zenta-on-accent) !important; }
/*
 * The rest of Bootstrap's stock blue: ticked boxes and switches, progress bars,
 * pagination, active dropdown and list items, pills and range sliders. Most
 * read a component variable; the check box and the range thumb take a colour.
 */
.form-check-input:checked,
.form-check-input[type="checkbox"]:indeterminate { background-color: var(--zenta-accent); border-color: var(--zenta-accent); }
.form-check-input:focus { border-color: color-mix(in srgb, var(--zenta-accent) 50%, #ffffff); box-shadow: 0 0 0 .25rem var(--zenta-accent-soft); }
/* The focused, unticked switch's knob is a blue image; keep the resting grey one. */
.form-switch .form-check-input:focus:not(:checked) {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
}
.progress, .progress-stacked { --bs-progress-bar-bg: var(--zenta-accent); }
.pagination {
    --bs-pagination-color: var(--zenta-accent-text);
    --bs-pagination-hover-color: var(--zenta-accent-hover);
    --bs-pagination-focus-color: var(--zenta-accent-hover);
    --bs-pagination-focus-box-shadow: 0 0 0 .25rem var(--zenta-accent-soft);
    --bs-pagination-active-bg: var(--zenta-accent);
    --bs-pagination-active-border-color: var(--zenta-accent);
    --bs-pagination-active-color: var(--zenta-on-accent);
}
.dropdown-menu { --bs-dropdown-link-active-bg: var(--zenta-accent); --bs-dropdown-link-active-color: var(--zenta-on-accent); }
.list-group { --bs-list-group-active-bg: var(--zenta-accent); --bs-list-group-active-border-color: var(--zenta-accent); --bs-list-group-active-color: var(--zenta-on-accent); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--zenta-accent); --bs-nav-pills-link-active-color: var(--zenta-on-accent); }
.form-range::-webkit-slider-thumb { background-color: var(--zenta-accent); }
.form-range::-moz-range-thumb { background-color: var(--zenta-accent); }
.form-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 1px #ffffff, 0 0 0 .25rem var(--zenta-accent-soft); }
.form-range:focus::-moz-range-thumb { box-shadow: 0 0 0 1px #ffffff, 0 0 0 .25rem var(--zenta-accent-soft); }
.btn-outline-primary {
    --bs-btn-color:         var(--zenta-accent-text);
    --bs-btn-border-color:  var(--zenta-accent);
    --bs-btn-hover-bg:      var(--zenta-accent);
    --bs-btn-hover-border-color: var(--zenta-accent);
    --bs-btn-hover-color:   var(--zenta-on-accent);
    --bs-btn-active-bg:     var(--zenta-accent-hover);
    --bs-btn-active-border-color: var(--zenta-accent-hover);
    --bs-btn-active-color:  var(--zenta-on-accent);
}
.btn-primary {
    --bs-btn-bg:            var(--zenta-accent);
    --bs-btn-border-color:  var(--zenta-accent);
    --bs-btn-hover-bg:      var(--zenta-accent-hover);
    --bs-btn-hover-border-color: var(--zenta-accent-hover);
    --bs-btn-active-bg:     var(--zenta-accent-hover);
    --bs-btn-active-border-color: var(--zenta-accent-hover);
    --bs-btn-disabled-bg:   var(--zenta-accent);
    --bs-btn-disabled-border-color: var(--zenta-accent);
    --bs-btn-color:         var(--zenta-on-accent);
    --bs-btn-hover-color:   var(--zenta-on-accent);
    --bs-btn-active-color:  var(--zenta-on-accent);
}

.form-control, .form-select {
    border-color: var(--zenta-border);
    border-radius: var(--zenta-radius-sm);
    font-size: .8125rem;
    background-color: var(--zenta-surface);
    color: var(--zenta-text);
}
.form-control:focus, .form-select:focus {
    border-color: var(--zenta-accent);
    box-shadow: 0 0 0 3px var(--zenta-accent-soft);
}
.form-label { font-size: .8125rem; font-weight: 500; margin-bottom: .3125rem; }

/* A password box with an eye button that shows and hides it; see [data-reveal] in app.js. */
.zenta-password { position: relative; }
.zenta-password .form-control { padding-inline-end: 2.5rem; }
.zenta-password-toggle {
    position: absolute;
    inset-inline-end: .25rem;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: var(--zenta-radius-sm);
    background: none;
    color: var(--zenta-text-muted);
}
.zenta-password-toggle:hover { color: var(--zenta-text); background: var(--zenta-surface-alt); }
.zenta-password-toggle:focus-visible { outline: 2px solid var(--zenta-accent); }
/* Bootstrap's warning icon would sit under the eye; the red border is enough. */
.zenta-password .form-control.is-invalid { background-image: none; padding-inline-end: 2.5rem; }
.zenta-password:has(.is-invalid) + .invalid-feedback { display: block; }

.dropdown-menu {
    border: 1px solid var(--zenta-border);
    border-radius: var(--zenta-radius);
    box-shadow: var(--zenta-shadow-lg);
    background: var(--zenta-surface);
    font-size: .8125rem;
    padding: .3125rem;
}
.dropdown-item { border-radius: var(--zenta-radius-sm); padding: .4375rem .625rem; color: var(--zenta-text); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--zenta-surface-alt); color: var(--zenta-text); }
.dropdown-header { font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--zenta-text-faint); }

.table { --bs-table-bg: transparent; color: var(--zenta-text); font-size: .8125rem; }
.table:not(.table-dark):not(.table-light) {
    --bs-table-striped-bg: var(--zenta-table-stripe-bg, rgba(var(--bs-emphasis-color-rgb), .05));
    --bs-table-hover-bg:   var(--zenta-table-hover-bg, rgba(var(--bs-emphasis-color-rgb), .075));
}
.table > thead > tr > th {
    background: var(--zenta-table-head-bg, var(--zenta-surface-alt));
    border-bottom-color: var(--zenta-border);
    color: var(--zenta-table-head-text, var(--zenta-text-muted));
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
}
.table > tbody > tr > td { border-color: var(--zenta-border); vertical-align: middle; }

.modal-content {
    border: 0;
    border-radius: var(--zenta-radius-lg);
    box-shadow: var(--zenta-shadow-lg);
    background: var(--zenta-modal-bg, var(--zenta-surface));
}

/*
    Scrolling when the fragment wraps everything in a form. Bootstrap makes
    .modal-content the flex column that caps the height and lets .modal-body
    scroll inside it; almost every fragment here puts a <form> between the two,
    which as a plain block breaks that chain - the body grows to its natural
    height and the tail of a long form is clipped away by the content's
    overflow:hidden, save button and all. Making the form the same kind of flex
    column hands the cap straight back to the body.
*/
.modal-dialog-scrollable .modal-content > form {
    display: flex;
    flex-direction: column;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}
.modal-dialog-scrollable .modal-content > form > .modal-body { min-height: 0; }

.modal-header, .modal-footer { border-color: var(--zenta-border); }
.modal-header {
    background: var(--zenta-modal-header-bg, transparent);
    border-top-left-radius: var(--zenta-radius-lg);
    border-top-right-radius: var(--zenta-radius-lg);
}

/* ==========================================================================
   8. Utilities
   ========================================================================== */
.zenta-empty { padding: 3rem 1rem; text-align: center; color: var(--zenta-text-muted); }
.zenta-empty .bi { font-size: 2.5rem; color: var(--zenta-text-faint); display: block; margin-bottom: .75rem; }

.zenta-scrollable-x { overflow-x: auto; }

/* Bootstrap has no min-width utility, and flex children need one to truncate. */
.min-w-0 { min-width: 0; }

/* Full-page AJAX progress bar */
#zenta-progress {
    position: fixed; top: 0; left: 0;
    height: 2px; width: 0;
    background: var(--zenta-accent);
    z-index: 2000;
    transition: width .2s ease, opacity .3s ease;
}

/* ==========================================================================
   9. Responsive
   ========================================================================== */
.zenta-sidebar-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 22, 33, .5);
    z-index: 1039;
    display: none;
}

@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(-100%); width: var(--zenta-sidebar-width); box-shadow: none; }
    .app-main    { margin-left: 0; }
    .sidebar-open .app-sidebar { transform: translateX(0); box-shadow: 0 0 30px rgba(0, 0, 0, .3); }
    .sidebar-open .zenta-sidebar-backdrop { display: block; }

    /* The rail is desktop-only; on a drawer the menu is always full width. */
    .sidebar-collapsed .app-sidebar { width: var(--zenta-sidebar-width); }
    .sidebar-collapsed .app-main    { margin-left: 0; }
    .sidebar-collapsed .zenta-brand  { justify-content: flex-start; padding: 0 1rem 0 1.25rem; }
    .sidebar-collapsed .app-sidebar .zenta-nav-label,
    .sidebar-collapsed .app-sidebar .zenta-nav-heading,
    .sidebar-collapsed .app-sidebar .zenta-nav-caret,
    .sidebar-collapsed .zenta-brand-text { display: revert !important; }
    .sidebar-collapsed .app-sidebar .zenta-nav-link { justify-content: flex-start; padding: .62rem 1.5rem; }

    .app-topbar  { padding: 0 1rem; }
    .app-content { padding: 1rem; }
    .zenta-page-head { margin: -1rem -1rem 1rem; padding-inline: 1rem; }

    /*
     * Narrowed rather than hidden. The search box was the only way into the
     * results page, and taking it away on a tablet took global search with it.
     */
    .zenta-search { max-width: 160px; }
}

@media (max-width: 575.98px) {
    /*
     * Ten round controls do not fit across a phone, and a top bar wider than
     * the screen drags the whole page sideways. So they shrink, the gaps
     * close, and the two that are only shortcuts - the starred menu and the
     * personal list - come out of the bar; the list moves into the account
     * menu below, and starring itself is unaffected.
     */
    .app-topbar { padding: 0 .5rem; gap: .35rem; }
    .app-topbar .zenta-icon-btn { width: 34px; height: 34px; font-size: 1rem; }
    .app-topbar .zenta-topbar-user { padding: .25rem; }
    .zenta-topbar-secondary { display: none !important; }

    /*
     * On a phone the box sits collapsed to the icon it already looks like, so
     * the top bar still has room for a name and a menu - and opens out to
     * something typeable the moment it is tapped. Collapsed and permanently
     * unreadable would be worse than not having it.
     */
    .zenta-search { max-width: 2.5rem; flex: 0 0 auto; transition: max-width .15s ease; }
    .zenta-search:focus-within { max-width: min(70vw, 20rem); flex: 1 1 auto; }
    .zenta-search-results { width: min(88vw, 24rem); }
}

/* ==========================================================================
   10. RTL adjustments
   ========================================================================== */
[dir="rtl"] .app-sidebar { inset: 0 0 0 auto; }
[dir="rtl"] .app-main    { margin-left: 0; margin-right: var(--zenta-sidebar-width); }
[dir="rtl"].sidebar-collapsed .app-main { margin-right: var(--zenta-sidebar-collapsed); margin-left: 0; }
[dir="rtl"] .zenta-brand  { padding: 0 1.25rem 0 1rem; }
[dir="rtl"] .zenta-search .bi { left: auto; right: .75rem; }
[dir="rtl"] .zenta-search input { padding: 0 2.25rem 0 .75rem; }

@media (max-width: 991.98px) {
    [dir="rtl"] .app-sidebar { transform: translateX(100%); }
    [dir="rtl"] .app-main { margin-right: 0; }
    [dir="rtl"].sidebar-open .app-sidebar { transform: translateX(0); }
}

/* ==========================================================================
   11. Authentication pages
   ========================================================================== */
.zenta-auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2rem 1rem;
}

.zenta-auth-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: var(--zenta-surface);
    border: 1px solid var(--zenta-border);
    border-radius: var(--zenta-radius-lg);
    box-shadow: var(--zenta-shadow);
}

.zenta-auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .625rem;
    margin-bottom: 1.5rem;
}

.zenta-auth-title {
    margin: 0 0 .25rem;
    font-size: 1.25rem;
    font-weight: 650;
    text-align: center;
    color: var(--zenta-text);
}

.zenta-auth-subtitle {
    margin: 0 0 1.5rem;
    text-align: center;
    color: var(--zenta-text-muted);
}

.zenta-auth-footer {
    margin: 0;
    color: var(--zenta-text-faint);
    font-size: .75rem;
}

/* ==========================================================================
   12. Permission matrix
   ========================================================================== */
.zenta-permission-row {
    display: grid;
    grid-template-columns: 180px 1fr 190px;
    gap: .75rem;
    align-items: center;
    padding: .625rem 0;
    border-bottom: 1px solid var(--zenta-border);
}
.zenta-permission-row:last-child { border-bottom: 0; }

.zenta-permission-name { font-weight: 550; color: var(--zenta-text); }
.zenta-permission-abilities .form-check-label { font-size: .8125rem; }

.zenta-permission-row > * { min-width: 0; }
.zenta-permission-scope .form-select { max-width: 100%; }

/* Beside a side panel the three columns get too narrow: the name goes on a
   line of its own above the abilities and the scope. */
@media (max-width: 1399.98px) {
    .zenta-permission-row { grid-template-columns: minmax(0, 1fr) minmax(0, 190px); }
    .zenta-permission-row > .zenta-permission-name { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
    .zenta-permission-row { grid-template-columns: 1fr; gap: .5rem; }
}

/* ==========================================================================
   13. Settings
   ========================================================================== */
.zenta-settings-nav { padding: .5rem; }
.zenta-settings-nav .zenta-nav-link { margin-bottom: 2px; }

.zenta-swatch {
    width: 26px; height: 26px;
    border: 2px solid var(--zenta-surface);
    outline: 1px solid var(--zenta-border);
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
}
.zenta-swatch:hover { outline-color: var(--zenta-text-faint); }

.zenta-merge-field {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .75rem;
    padding: .125rem .375rem;
    border-radius: var(--zenta-radius-sm);
    background: var(--zenta-surface-alt);
    border: 1px solid var(--zenta-border);
    color: var(--zenta-text);
    cursor: pointer;
}
.zenta-merge-field:hover { border-color: var(--zenta-accent); color: var(--zenta-accent); }

/* ==========================================================================
   14. CRM
   ========================================================================== */
.zenta-note { padding: .625rem 0; border-bottom: 1px solid var(--zenta-border); }
.zenta-note:last-child { border-bottom: 0; }
.zenta-note-body { white-space: pre-wrap; color: var(--zenta-text); margin: .25rem 0; }

/* --- Pipeline board ----------------------------------------------------- */
.zenta-board { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .5rem; align-items: flex-start; }

.zenta-board-column {
    flex: 0 0 280px;
    background: var(--zenta-surface-alt);
    border: 1px solid var(--zenta-border);
    border-radius: var(--zenta-radius);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 220px);
}

.zenta-board-head {
    display: flex; align-items: center; gap: .5rem;
    padding: .625rem .75rem;
    border-bottom: 1px solid var(--zenta-border);
    font-weight: 600;
}
.zenta-board-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.zenta-board-count {
    margin-left: auto;
    font-size: .75rem; font-weight: 600;
    color: var(--zenta-text-muted);
    background: var(--zenta-surface);
    border-radius: 999px;
    padding: .0625rem .4375rem;
}

.zenta-board-body { padding: .5rem; overflow-y: auto; flex: 1 1 auto; min-height: 80px; }

.zenta-lead-card {
    display: block;
    background: var(--zenta-surface);
    border: 1px solid var(--zenta-border);
    border-radius: var(--zenta-radius-sm);
    padding: .625rem .75rem;
    margin-bottom: .5rem;
    box-shadow: var(--zenta-shadow-sm);
    cursor: grab;
    color: var(--zenta-text);
}
.zenta-lead-card:hover { border-color: var(--zenta-accent); color: var(--zenta-text); }
.zenta-lead-card.zenta-dragging { opacity: .45; }
.zenta-board-body.zenta-drop-target { background: var(--zenta-accent-soft); border-radius: var(--zenta-radius-sm); }

.zenta-lead-name { font-weight: 600; }
.zenta-lead-meta { color: var(--zenta-text-muted); font-size: .75rem; }
.zenta-lead-value { color: var(--zenta-accent); font-weight: 600; font-size: .8125rem; }

.zenta-detail-list { display: grid; grid-template-columns: 40% 60%; gap: .375rem 0; margin: 0; font-size: .8125rem; }
.zenta-detail-list dt { color: var(--zenta-text-muted); font-weight: 500; }
.zenta-detail-list dd { margin: 0; color: var(--zenta-text); overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   Reports
   -------------------------------------------------------------------------- */

/* Chart.js sizes its canvas to the parent, so the parent needs a real height. */
.zenta-chart {
    position: relative;
    width: 100%;
}

.zenta-chart canvas {
    max-width: 100%;
}

/* ==========================================================================
   15. Dashboard
   ==========================================================================
   The landing page is the screen somebody sees most, and the one they judge
   the product by. Everything here is built out of four pieces - a figure
   card, a strip of metrics, a ranked row and a timeline - so a dashboard of
   nine panels still reads as one page rather than nine unrelated widgets.

   Every colour is a token. The six tones below are fixed rather than derived
   from the accent: "late" has to look like a warning whatever colour the
   workspace picked for its panel, and a generated ramp cannot promise that.
   -------------------------------------------------------------------------- */

/* --- The greeting band --------------------------------------------------- */

.zenta-greet {
    position: relative;
    overflow: hidden;
    border-radius: var(--zenta-radius);
    border: 1px solid var(--zenta-border);
    background:
        linear-gradient(120deg,
            color-mix(in srgb, var(--zenta-accent) 9%, var(--zenta-surface)) 0%,
            var(--zenta-surface) 58%);
    padding: 1.125rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

/*
 * The soft disc behind the greeting. Decorative only, so it is drawn with a
 * pseudo-element and kept out of the reading order.
 */
.zenta-greet::after {
    content: "";
    position: absolute;
    inset-inline-end: -70px;
    top: -90px;
    width: 230px; height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        color-mix(in srgb, var(--zenta-accent) 22%, transparent),
        transparent 68%);
    pointer-events: none;
}

.zenta-greet > * { position: relative; z-index: 1; }
.zenta-greet-title { font-size: 1.0625rem; font-weight: 600; color: var(--zenta-heading); margin: 0; }
.zenta-greet-sub { font-size: .8125rem; color: var(--zenta-text-muted); margin: .1875rem 0 0; }

.zenta-greet-date {
    display: inline-flex; align-items: center; gap: .375rem;
    background: var(--zenta-surface);
    border: 1px solid var(--zenta-border);
    border-radius: var(--zenta-radius-sm);
    padding: .375rem .625rem;
    font-size: .8125rem;
    color: var(--zenta-text-muted);
    white-space: nowrap;
}
.zenta-greet-date .bi { color: var(--zenta-accent-text); }

/* --- The figure card ----------------------------------------------------- */

.zenta-kpi {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--zenta-surface);
    border: 1px solid var(--zenta-border);
    border-radius: var(--zenta-radius);
    box-shadow: var(--zenta-shadow-sm);
    padding: 1.0625rem 1.125rem .875rem;
    transition: transform var(--zenta-transition), box-shadow var(--zenta-transition), border-color var(--zenta-transition);
}
.zenta-kpi:hover {
    transform: translateY(-3px);
    box-shadow: var(--zenta-shadow-lg);
    border-color: color-mix(in srgb, var(--zenta-accent) 35%, var(--zenta-border));
}

.zenta-kpi-label {
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--zenta-text-muted);
}

.zenta-kpi-value {
    font-family: var(--zenta-font-figures);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--zenta-heading);
    font-variant-numeric: tabular-nums;
    margin: .625rem 0 .4375rem;
    overflow-wrap: anywhere;
}

.zenta-kpi-foot {
    font-size: .75rem;
    color: var(--zenta-text-muted);
    display: flex;
    align-items: center;
    gap: .375rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.zenta-kpi-icon {
    width: 42px; height: 42px;
    border-radius: var(--zenta-radius-lg);
    display: grid; place-items: center;
    font-size: 1.1875rem;
    flex-shrink: 0;
}

/* The sparkline sits in the card's own padding, flush to its edges. */
.zenta-kpi .zenta-chart { margin: .5rem -1.125rem -.875rem; }

/*
 * A whole card is a link to the screen its figure comes from. Bootstrap's
 * stretched-link needs a positioned ancestor, which .zenta-kpi already is.
 */
.zenta-kpi .stretched-link::after { border-radius: inherit; }

/* --- Change against the period before ------------------------------------ */

.zenta-delta {
    display: inline-flex;
    align-items: center;
    gap: .0625rem;
    font-weight: 600;
    font-size: .6875rem;
    padding: .125rem .375rem;
    border-radius: var(--zenta-radius-sm);
    white-space: nowrap;
}
.zenta-delta .bi { font-size: .875rem; margin-inline-start: -.125rem; }
.zenta-delta.up   { color: #0ab39c; background: rgba(10, 179, 156, .12); }
.zenta-delta.down { color: #f06548; background: rgba(240, 101, 72, .12); }
.zenta-delta.flat { color: var(--zenta-text-muted); background: var(--zenta-surface-alt); }

/*
 * "Down" is not always bad. Falling costs and falling overdue are good news,
 * and a red arrow on them teaches people to distrust the colour everywhere
 * else, so a panel can say which way round its figure reads.
 */
.zenta-delta.is-good { color: #0ab39c; background: rgba(10, 179, 156, .12); }
.zenta-delta.is-bad  { color: #f06548; background: rgba(240, 101, 72, .12); }

/* --- Tones --------------------------------------------------------------- */

.zenta-tone-accent  { background: color-mix(in srgb, var(--zenta-accent) 14%, var(--zenta-surface)); color: var(--zenta-accent-text); }
.zenta-tone-success { background: rgba(10, 179, 156, .13); color: #0ab39c; }
.zenta-tone-warning { background: rgba(247, 184, 75, .16); color: #d9901b; }
.zenta-tone-danger  { background: rgba(240, 101, 72, .13); color: #f06548; }
.zenta-tone-info    { background: rgba(41, 156, 219, .13); color: #299cdb; }
.zenta-tone-purple  { background: rgba(101, 89, 204, .13); color: #6559cc; }

[data-bs-theme="dark"] .zenta-tone-warning { color: #f7b84b; }

/* --- A strip of secondary figures across the top of a card ---------------- */

.zenta-metric-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    border-bottom: 1px dashed var(--zenta-border);
    background: color-mix(in srgb, var(--zenta-surface-alt) 55%, var(--zenta-surface));
}
.zenta-metric-strip > div {
    padding: .75rem 1rem;
    border-inline-end: 1px dashed var(--zenta-border);
}
.zenta-metric-strip > div:last-child { border-inline-end: 0; }
.zenta-metric-strip b {
    display: block;
    font-family: var(--zenta-font-figures);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--zenta-heading);
    font-variant-numeric: tabular-nums;
}
.zenta-metric-strip span { font-size: .75rem; color: var(--zenta-text-muted); }
.zenta-metric-strip .zenta-dot { margin-inline-end: .3125rem; }

/* --- The small link in a card header -------------------------------------- */

.zenta-panel-link {
    font-size: .75rem;
    font-weight: 500;
    color: var(--zenta-text-muted);
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: .1875rem;
}
.zenta-panel-link:hover { color: var(--zenta-accent-text); }
.zenta-panel-link .bi { font-size: .75rem; transition: transform var(--zenta-transition); }
.zenta-panel-link:hover .bi { transform: translateX(2px); }
[dir="rtl"] .zenta-panel-link .bi { transform: scaleX(-1); }
[dir="rtl"] .zenta-panel-link:hover .bi { transform: scaleX(-1) translateX(2px); }

/* --- A ranked row: name, figure, and its share as a bar ------------------- */

.zenta-rank {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--zenta-border);
    text-decoration: none;
    color: inherit;
}
.zenta-rank:last-child { border-bottom: 0; padding-bottom: 0; }
.zenta-rank:first-child { padding-top: 0; }
.zenta-rank:hover .zenta-rank-name { color: var(--zenta-accent-text); }

.zenta-rank-badge {
    width: 26px; height: 26px;
    border-radius: var(--zenta-radius-sm);
    display: grid; place-items: center;
    font-size: .6875rem;
    font-weight: 600;
    flex-shrink: 0;
    background: var(--zenta-surface-alt);
    color: var(--zenta-text-muted);
    font-variant-numeric: tabular-nums;
}
.zenta-rank:first-child .zenta-rank-badge { background: var(--zenta-accent-soft); color: var(--zenta-accent-text); }

/*
 * A badge that carries an icon rather than a rank takes a tone, and the tone
 * has to win over the grey above - which, being later in the file, it would
 * otherwise beat. The portal overview marks each kind of row this way.
 */
.zenta-rank-badge.zenta-tone-accent,
.zenta-rank:first-child .zenta-rank-badge.zenta-tone-accent { background: color-mix(in srgb, var(--zenta-accent) 14%, var(--zenta-surface)); color: var(--zenta-accent-text); }
.zenta-rank-badge.zenta-tone-success { background: rgba(10, 179, 156, .13); color: #0ab39c; }
.zenta-rank-badge.zenta-tone-warning { background: rgba(247, 184, 75, .16); color: #d9901b; }
.zenta-rank-badge.zenta-tone-danger,
.zenta-rank:first-child .zenta-rank-badge.zenta-tone-danger { background: rgba(240, 101, 72, .13); color: #f06548; }
.zenta-rank-badge.zenta-tone-info { background: rgba(41, 156, 219, .13); color: #299cdb; }
.zenta-rank-badge.zenta-tone-purple { background: rgba(101, 89, 204, .13); color: #6559cc; }
.zenta-rank-badge .bi { font-size: .8125rem; }
[data-bs-theme="dark"] .zenta-rank-badge.zenta-tone-warning { color: #f7b84b; }

.zenta-rank-name { display: block; font-size: .8125rem; font-weight: 500; color: var(--zenta-text); }
.zenta-rank-sub { display: block; font-size: .6875rem; color: var(--zenta-text-muted); }
.zenta-rank-value {
    font-family: var(--zenta-font-figures);
    font-size: .8125rem;
    font-weight: 600;
    color: var(--zenta-heading);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* --- A horizontal bar under a label --------------------------------------- */

.zenta-track {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: var(--zenta-surface-alt);
    overflow: hidden;
    margin-top: .3125rem;
}
.zenta-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--zenta-accent);
    transition: width .6s cubic-bezier(.2, .8, .2, 1);
}

/* --- A coloured dot, for a legend or a status ----------------------------- */

.zenta-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--zenta-accent);
}

/* --- The legend beside a doughnut ----------------------------------------- */

.zenta-legend { display: grid; gap: .5rem; margin: 0; }
.zenta-legend-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
}
.zenta-legend-label { color: var(--zenta-text-muted); flex: 1 1 auto; min-width: 0; font-weight: 400; }
.zenta-legend-value {
    margin-inline-start: auto;
    font-family: var(--zenta-font-figures);
    font-weight: 600;
    color: var(--zenta-heading);
    font-variant-numeric: tabular-nums;
}
.zenta-legend-share {
    font-size: .6875rem;
    color: var(--zenta-text-faint);
    font-variant-numeric: tabular-nums;
    min-width: 2.75rem;
    text-align: end;
}

/* --- A dated list: what is coming up -------------------------------------- */

.zenta-when {
    width: 42px;
    flex-shrink: 0;
    text-align: center;
    border-radius: var(--zenta-radius-sm);
    background: var(--zenta-surface-alt);
    padding: .3125rem 0 .375rem;
    line-height: 1.1;
}
.zenta-when b {
    display: block;
    font-family: var(--zenta-font-figures);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--zenta-heading);
}
.zenta-when span {
    font-size: .625rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--zenta-text-muted);
}
.zenta-when.is-today { background: var(--zenta-accent-soft); }
.zenta-when.is-today b, .zenta-when.is-today span { color: var(--zenta-accent-text); }

/* --- The activity timeline ------------------------------------------------ */

.zenta-timeline { position: relative; margin: 0; padding: 0; list-style: none; }

/* The rail the dots sit on. It stops at the last dot rather than running past it. */
.zenta-timeline::before {
    content: "";
    position: absolute;
    inset-block: 6px;
    inset-inline-start: 5px;
    width: 1px;
    background: var(--zenta-border);
}
.zenta-timeline > li {
    position: relative;
    padding-inline-start: 1.375rem;
    padding-bottom: .875rem;
}
.zenta-timeline > li:last-child { padding-bottom: 0; }
.zenta-timeline > li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 5px;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--zenta-surface);
    border: 2px solid var(--zenta-accent);
}
.zenta-timeline-text { font-size: .8125rem; color: var(--zenta-text); }

/* Money received: the portal's payments timeline wears the "paid" green. */
.zenta-timeline-paid > li::before { border-color: #0ab39c; }
.zenta-timeline-meta { font-size: .6875rem; color: var(--zenta-text-muted); margin-top: .0625rem; }

/* --- A goal, as a ring with its figure in the middle ---------------------- */

.zenta-goal { display: flex; align-items: center; gap: .875rem; padding: .625rem 0; border-bottom: 1px solid var(--zenta-border); }
.zenta-goal:last-child { border-bottom: 0; padding-bottom: 0; }
.zenta-goal:first-child { padding-top: 0; }
.zenta-goal .zenta-chart { width: 64px; flex-shrink: 0; }
.zenta-goal-title { font-size: .8125rem; font-weight: 500; color: var(--zenta-text); }
.zenta-goal-meta { font-size: .6875rem; color: var(--zenta-text-muted); }

/* --- A list row that is mostly a link ------------------------------------- */

.zenta-feed-row {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--zenta-border);
}
.zenta-feed-row:last-child { border-bottom: 0; padding-bottom: 0; }
.zenta-feed-row:first-child { padding-top: 0; }
.zenta-feed-title { font-size: .8125rem; color: var(--zenta-text); text-decoration: none; }
a.zenta-feed-title:hover { color: var(--zenta-accent-text); }
.zenta-feed-meta { font-size: .6875rem; color: var(--zenta-text-muted); }

/*
 * Panels are read at a glance, so a long list inside one scrolls rather than
 * making the row of cards beside it uneven.
 */
.zenta-panel-scroll { max-height: 264px; overflow-y: auto; }

/* An empty panel is shorter than an empty page. */
.card-body > .zenta-empty { padding: 1.75rem 1rem; }
.card-body > .zenta-empty .bi { font-size: 1.75rem; margin-bottom: .5rem; }

@media (max-width: 575.98px) {
    .zenta-kpi-value { font-size: 1.3125rem; }
    .zenta-greet { padding: 1rem; }
}

/* Print: drop the furniture and let the figures fill the page. */
@media print {
    .app-sidebar,
    .app-topbar,
    .app-footer,
    .zenta-page-head .breadcrumb,
    .btn,
    form#report-period {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .app-main,
    .app-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    /* A scroll container prints as a clipped box; let it flow instead. */
    .zenta-scrollable-x {
        overflow: visible !important;
    }
}

/* ---------------------------------------------------------------------------
   Customer portal
   ---------------------------------------------------------------------------
   Nothing of its own: the portal is drawn in the staff panel's shell - the
   sidebar in section 4, the top bar in section 5, the dashboard pieces in
   section 15 - so the two can never drift apart. See layouts/portal.blade.php.
   ------------------------------------------------------------------------ */

/* ---------------------------------------------------------------------------
 | Signature pad
 |
 | The pad is deliberately paper-like in both themes: somebody signing wants to
 | see ink on something that reads as a document, not a dark form field. The
 | drawing colour is a variable so the canvas and the stored image agree.
 |------------------------------------------------------------------------- */
.zenta-signature-card { --zenta-signature-ink: #1f2933; }

.zenta-signature-frame {
    position: relative;
    background: #fff;
    border: 1px dashed var(--zenta-border);
    border-radius: var(--zenta-radius, .5rem);
    height: 11rem;
}

.zenta-signature-canvas {
    width: 100%;
    height: 100%;
    display: block;
    /* The pointer must draw, not select the page or scroll it. */
    touch-action: none;
    cursor: crosshair;
}

.zenta-signature-hint {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #b6bfc9;
    font-size: .875rem;
    pointer-events: none;
    user-select: none;
}

.zenta-signature-ink {
    background: #fff;
    border: 1px solid var(--zenta-border);
    border-radius: var(--zenta-radius, .5rem);
    padding: .5rem;
    text-align: center;
}

.zenta-signature-ink img { max-height: 8rem; }

@media print {
    .zenta-signature-frame, [data-signature-pad] .btn { display: none !important; }
}

/* Long-form prose: knowledge-base articles, proposal bodies, contract text. */
.zenta-prose { line-height: 1.65; overflow-wrap: anywhere; }
.zenta-prose > :last-child { margin-bottom: 0; }
.zenta-prose h1, .zenta-prose h2, .zenta-prose h3 { margin-top: 1.5rem; font-size: 1.0625rem; font-weight: 600; }
.zenta-prose img, .zenta-prose table { max-width: 100%; }
.zenta-prose table { border-collapse: collapse; }
.zenta-prose td, .zenta-prose th { border: 1px solid var(--zenta-border); padding: .375rem .5rem; }

/* ---------------------------------------------------------------------------
 | Bulk action bar
 |
 | Sticky, because a selection made at the bottom of a long list is acted on
 | with buttons that would otherwise be scrolled off the top of it.
 |------------------------------------------------------------------------- */
.zenta-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    padding: .625rem 1rem;
    background: var(--zenta-accent-soft);
    border-bottom: 1px solid var(--zenta-border);
    position: sticky;
    top: 0;
    z-index: 3;
    font-size: .8125rem;
}

.zenta-bulk-check { width: 1rem; }


/* ---------------------------------------------------------------------------
 | Global search results
 |------------------------------------------------------------------------- */
.zenta-search-results {
    position: absolute;
    top: calc(100% + .375rem);
    inset-inline-start: 0;
    width: min(30rem, 90vw);
    max-height: 26rem;
    overflow-y: auto;
    background: var(--zenta-surface);
    border: 1px solid var(--zenta-border);
    border-radius: var(--zenta-radius, .5rem);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
    z-index: 1050;
    padding: .25rem 0;
}

.zenta-search-group + .zenta-search-group { border-top: 1px solid var(--zenta-border); }

.zenta-search-group-label {
    padding: .5rem .75rem .25rem;
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--zenta-text-muted);
}

.zenta-search-more { font-weight: 400; text-transform: none; letter-spacing: 0; }

.zenta-search-hit {
    display: block;
    padding: .375rem .75rem;
    text-decoration: none;
    color: var(--zenta-text);
}

.zenta-search-hit:hover,
.zenta-search-hit:focus { background: var(--zenta-accent-soft); outline: none; }

.zenta-search-hit-title { display: block; font-size: .8125rem; font-weight: 500; }
.zenta-search-hit-sub { display: block; font-size: .75rem; color: var(--zenta-text-muted); }

.zenta-search-empty { padding: 1rem .75rem; text-align: center; color: var(--zenta-text-muted); font-size: .8125rem; }

.zenta-search-all {
    display: block;
    padding: .5rem .75rem;
    border-top: 1px solid var(--zenta-border);
    text-align: center;
    font-size: .8125rem;
    text-decoration: none;

    /* Pinned, so a long list of matches does not scroll the one link that
       leads to the rest of them off the bottom. */
    position: sticky;
    bottom: 0;
    background: var(--zenta-surface);
}

/* ---------------------------------------------------------------------------
 | Announcements from the operator
 |------------------------------------------------------------------------- */
.zenta-announcements { display: flex; flex-direction: column; }

.zenta-announcement {
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    padding: .625rem 1rem;
    font-size: .8125rem;
    border-bottom: 1px solid var(--zenta-border);
}

.zenta-announcement .bi { margin-top: .0625rem; }
.zenta-announcement-body { white-space: pre-line; }

.zenta-announcement--info    { background: #eff6ff; color: #1e40af; }
.zenta-announcement--warning { background: #fffbeb; color: #92400e; }
.zenta-announcement--critical{ background: #fef2f2; color: #991b1b; }

[data-bs-theme="dark"] .zenta-announcement--info    { background: #172554; color: #bfdbfe; }
[data-bs-theme="dark"] .zenta-announcement--warning { background: #422006; color: #fde68a; }
[data-bs-theme="dark"] .zenta-announcement--critical{ background: #450a0a; color: #fecaca; }

[data-bs-theme="dark"] .zenta-announcement .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

@media print { .zenta-announcements { display: none; } }

/* ---------------------------------------------------------------------------
 | Appearance: colours from Settings → Appearance → Theme
 |
 | The sidebar and top bar take their colours from the --zenta-sidebar-* and
 | --zenta-topbar-* tokens, which section 1 defines and the editor overrides on
 | [data-bs-theme="light"] / ["dark"] - so the rules themselves live with the
 | shell in sections 4 and 5, and only what the editor alone can set is here.
 |
 | Scoped to the top bar because .zenta-icon-btn also appears inside the page,
 | which keeps the page's own colours.
 |------------------------------------------------------------------------- */
.app-topbar { color: var(--zenta-topbar-text, var(--zenta-text)); }
.app-topbar .zenta-icon-btn { color: var(--zenta-topbar-text-muted, var(--zenta-text-muted)); }
.app-topbar .zenta-icon-btn:hover {
    background: var(--zenta-topbar-hover-bg, var(--zenta-ground));
    color: var(--zenta-topbar-text, var(--zenta-accent));
}

/* The neutral badges; the coloured ones (success, warning...) keep meaning
   what they mean. Fallbacks are Bootstrap's own values. */
.badge.text-bg-secondary {
    background-color: var(--zenta-badge-bg, RGBA(var(--bs-secondary-rgb), var(--bs-bg-opacity, 1))) !important;
    color: var(--zenta-badge-text, #fff) !important;
}
.badge.text-bg-light {
    background-color: var(--zenta-badge-bg, RGBA(var(--bs-light-rgb), var(--bs-bg-opacity, 1))) !important;
    color: var(--zenta-badge-text, #000) !important;
}

/* Public pages: knowledge base, support form, sign-up. */
.zenta-public-shell { max-width: 1040px; margin-inline: auto; padding-inline: 1rem; width: 100%; }
.zenta-public-header {
    background: var(--zenta-nav-bg, var(--zenta-surface));
    border-bottom: 1px solid var(--zenta-border);
    padding: .75rem 0;
}
.zenta-public-header nav a:not(.btn) { color: var(--zenta-nav-text, var(--zenta-accent)); }
.zenta-public-header nav a:not(.btn):hover { color: var(--zenta-nav-text, var(--zenta-accent-hover)); }

/* Sign-in pages: the workspace's logo, background picture and welcome. */
.zenta-auth-logo { max-height: 48px; max-width: 220px; object-fit: contain; }
[data-bs-theme="dark"] .zenta-logo-for-light,
[data-bs-theme="light"] .zenta-logo-for-dark { display: none; }
.zenta-auth--image {
    background: var(--zenta-body-bg) var(--zenta-auth-image) center / cover no-repeat;
}
.zenta-auth--image .zenta-auth-card { box-shadow: var(--zenta-shadow-lg); }
.zenta-auth--image .zenta-auth-footer {
    padding: .25rem .75rem;
    border-radius: 999px;
    background: rgba(15, 22, 33, .55);
    color: #fff;
}
.zenta-auth-welcome {
    margin: -.75rem 0 1.25rem;
    text-align: center;
    white-space: pre-line;
    color: var(--zenta-text-muted);
}

/* ==========================================================================
   16. Multi-select

   The widget assets/js/multi-select.js draws over a <select multiple>: the
   choices as chips in something shaped like a .form-select, and a searchable
   list under it. Written with logical properties throughout, so it reads
   right in an RTL locale without a word in section 10.
   ========================================================================== */
.zenta-ms { position: relative; }

/* Still submitted, still what validation points at, just never seen. */
.zenta-ms-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
}

.zenta-ms-control {
    display: flex;
    align-items: center;
    gap: .375rem;
    min-height: calc(1.5em + .75rem + 2px);
    padding: .25rem .5rem;
    border: 1px solid var(--zenta-border);
    border-radius: var(--zenta-radius-sm);
    background: var(--zenta-surface);
    color: var(--zenta-text);
    font-size: .8125rem;
    cursor: pointer;
    transition: border-color var(--zenta-transition), box-shadow var(--zenta-transition);
}
.zenta-ms-control:hover { border-color: var(--zenta-border-strong); }
.zenta-ms-control:focus,
.zenta-ms--open .zenta-ms-control {
    outline: 0;
    border-color: var(--zenta-accent);
    box-shadow: 0 0 0 3px var(--zenta-accent-soft);
}

/* Chips wrap; past about four rows of them the field scrolls rather than
   pushing the rest of the form down the page. */
.zenta-ms-values {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: .25rem;
    min-width: 0;
    max-height: 7.5rem;
    overflow-y: auto;
}
.zenta-ms-placeholder { align-self: center; color: var(--zenta-text-faint); }

.zenta-ms-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    max-width: 100%;
    padding-block: .125rem;
    padding-inline: .5rem .25rem;
    border-radius: 999px;
    background: var(--zenta-accent-soft);
    color: var(--zenta-accent-text);
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.5;
}
.zenta-ms-chip-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zenta-ms-chip-remove {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: .625rem;
    opacity: .55;
    transition: opacity var(--zenta-transition), background var(--zenta-transition);
}
.zenta-ms-chip-remove:hover,
.zenta-ms-chip-remove:focus-visible {
    outline: 0;
    opacity: 1;
    background: rgba(var(--zenta-accent-rgb), .18);
}

.zenta-ms-clear {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--zenta-text-faint);
    font-size: .5625rem;
    transition: color var(--zenta-transition), background var(--zenta-transition);
}
.zenta-ms-clear--on { display: inline-flex; }
.zenta-ms-clear:hover,
.zenta-ms-clear:focus-visible { outline: 0; background: var(--zenta-surface-alt); color: var(--zenta-text); }

.zenta-ms-caret {
    flex: 0 0 auto;
    color: var(--zenta-text-faint);
    font-size: .625rem;
    transition: transform var(--zenta-transition);
}
.zenta-ms--open .zenta-ms-caret { transform: rotate(180deg); }

/*
   Positioned against the viewport by the script, not by this element's
   parent: these fields live in modals whose body scrolls inside a hidden
   overflow, which would otherwise cut the list off at the edge of the form.
*/
.zenta-ms-panel {
    position: fixed;
    z-index: 1060;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--zenta-border);
    border-radius: var(--zenta-radius);
    background: var(--zenta-surface);
    box-shadow: var(--zenta-shadow-lg);
}
.zenta-ms--open .zenta-ms-panel { display: flex; animation: zenta-ms-in .12s ease-out; }
@keyframes zenta-ms-in { from { opacity: 0; transform: translateY(-.25rem); } }
@media (prefers-reduced-motion: reduce) {
    .zenta-ms--open .zenta-ms-panel { animation: none; }
}

.zenta-ms-search {
    position: relative;
    flex: 0 0 auto;
    padding: .375rem;
    border-bottom: 1px solid var(--zenta-border);
}
.zenta-ms-search .bi {
    position: absolute;
    inset-inline-start: .875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--zenta-text-faint);
    font-size: .75rem;
    pointer-events: none;
}
.zenta-ms-search-input {
    width: 100%;
    padding-block: .3125rem;
    padding-inline: 1.875rem .5rem;
    border: 0;
    border-radius: var(--zenta-radius-sm);
    background: var(--zenta-surface-alt);
    color: var(--zenta-text);
    font-size: .8125rem;
}
.zenta-ms-search-input:focus { outline: 0; box-shadow: 0 0 0 2px var(--zenta-accent-soft); }

.zenta-ms-options {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: .3125rem;
}
.zenta-ms-option {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4375rem .5rem;
    border-radius: var(--zenta-radius-sm);
    color: var(--zenta-text);
    font-size: .8125rem;
    cursor: pointer;
}
.zenta-ms-option:hover,
.zenta-ms-option--active { background: var(--zenta-surface-alt); }
.zenta-ms-option--on { color: var(--zenta-accent-text); font-weight: 500; }
.zenta-ms-option--off { opacity: .45; cursor: not-allowed; }
.zenta-ms-option-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zenta-ms-tick {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--zenta-border-strong);
    border-radius: var(--zenta-radius-sm);
    background: var(--zenta-surface);
    color: transparent;
    font-size: .625rem;
    transition: background var(--zenta-transition), border-color var(--zenta-transition);
}
.zenta-ms-option--on .zenta-ms-tick {
    border-color: var(--zenta-accent);
    background: var(--zenta-accent);
    color: var(--zenta-on-accent);
}

.zenta-ms-group {
    padding: .5rem .5rem .25rem;
    color: var(--zenta-text-faint);
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.zenta-ms-none {
    padding: 1rem .625rem;
    color: var(--zenta-text-muted);
    font-size: .8125rem;
    text-align: center;
}
.zenta-ms-note {
    display: none;
    flex: 0 0 auto;
    padding: .4375rem .625rem;
    border-top: 1px solid var(--zenta-border);
    color: var(--zenta-text-muted);
    font-size: .75rem;
}
.zenta-ms-note--on { display: block; }

/* The state of the hidden select, worn by the part that can be seen. */
.zenta-ms:has(.zenta-ms-native.is-invalid) .zenta-ms-control {
    border-color: var(--bs-form-invalid-border-color);
}
.zenta-ms:has(.zenta-ms-native.is-invalid) .zenta-ms-control:focus {
    box-shadow: 0 0 0 3px rgba(var(--bs-danger-rgb), .15);
}
.zenta-ms:has(.zenta-ms-native:disabled) .zenta-ms-control {
    background: var(--zenta-surface-alt);
    color: var(--zenta-text-muted);
    cursor: not-allowed;
}

/* ==========================================================================
   17. Website builder (Settings -> Website)
   The staff screen that edits the public front page. The page itself is
   styled by website.css, which the staff screens never load.
   ========================================================================== */

.zenta-web-status.is-live { border-color: rgba(var(--bs-success-rgb), .35); }
.zenta-web-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.zenta-web-status-icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: .75rem;
    background: var(--zenta-surface-alt);
    color: var(--zenta-text-muted);
    font-size: 1.35rem;
}
.zenta-web-status.is-live .zenta-web-status-icon { background: rgba(var(--bs-success-rgb), .12); color: var(--bs-success); }
.zenta-web-status-copy { flex: 1 1 18rem; min-width: 0; }
.zenta-web-status-title { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 600; font-size: 1rem; color: var(--zenta-text); }
.zenta-web-status-address { margin-top: .15rem; font-size: .8125rem; color: var(--zenta-text-muted); word-break: break-all; }
.zenta-web-status-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* The "Add a section" menu: a grid of types, each with its icon. */
.zenta-web-types {
    width: min(36rem, calc(100vw - 2rem));
    padding: .5rem;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: .25rem;
}
.zenta-web-types.show { display: grid; }
.zenta-web-type {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .6rem .7rem;
    border-radius: var(--zenta-radius-lg);
    color: var(--zenta-text);
    text-decoration: none;
}
.zenta-web-type:hover, .zenta-web-type:focus { background: var(--zenta-accent-soft); color: var(--zenta-text); }
.zenta-web-type-icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: .5rem;
    background: var(--zenta-accent-soft);
    color: var(--zenta-accent-text);
    font-size: 1rem;
}
.zenta-web-type-name { display: block; font-weight: 600; font-size: .8125rem; }
.zenta-web-type-text { display: block; font-size: .75rem; color: var(--zenta-text-muted); line-height: 1.35; }

.zenta-web-empty { max-width: 34rem; margin: 1rem auto; text-align: center; }
.zenta-web-empty p { font-size: .875rem; color: var(--zenta-text-muted); }
.zenta-web-empty-icon {
    display: inline-grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: .75rem;
    border-radius: 50%;
    background: var(--zenta-accent-soft);
    color: var(--zenta-accent-text);
    font-size: 1.4rem;
}

/* The sections, in page order. */
.zenta-web-sections { margin: 0; padding: .75rem; list-style: none; }
.zenta-web-section {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    margin-bottom: .5rem;
    border: 1px solid var(--zenta-border);
    border-radius: var(--zenta-radius-lg);
    background: var(--zenta-surface);
    transition: box-shadow var(--zenta-transition), border-color var(--zenta-transition);
}
.zenta-web-section:last-child { margin-bottom: 0; }
.zenta-web-section:hover { border-color: var(--zenta-border-strong); box-shadow: var(--zenta-shadow-sm); }
.zenta-web-section.is-dragging { opacity: .5; }
.zenta-web-section.is-hidden .zenta-web-section-icon,
.zenta-web-section.is-hidden .zenta-web-section-copy { opacity: .5; }
.zenta-web-move { display: flex; align-items: center; gap: .15rem; }
.zenta-web-move .zenta-menu-handle { cursor: grab; color: var(--zenta-text-faint); padding: 0 .25rem; }
.zenta-web-move .zenta-menu-move { padding: .1rem .35rem; }
.zenta-web-section-icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .6rem;
    font-size: 1.1rem;
}
.zenta-web-section-copy { flex: 1 1 auto; min-width: 0; }
.zenta-web-section-title { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-weight: 600; color: var(--zenta-text); }
.zenta-web-section-meta { font-size: .75rem; color: var(--zenta-text-muted); }
.zenta-web-section-actions { display: flex; gap: .25rem; flex-shrink: 0; }
@media (max-width: 575.98px) {
    .zenta-web-section { flex-wrap: wrap; }
    .zenta-web-section-actions { width: 100%; justify-content: flex-end; }
}

/* A section's background, as a chip: on the row's icon and in the form. */
.zenta-web-bg-plain  { background: var(--zenta-surface-alt); color: var(--zenta-text-muted); box-shadow: inset 0 0 0 1px var(--zenta-border); }
.zenta-web-bg-muted  { background: var(--zenta-accent-soft); color: var(--zenta-accent-text); }
.zenta-web-bg-accent { background: var(--zenta-accent); color: var(--zenta-on-accent); }
.zenta-web-bg-dark   { background: #0b1120; color: #e2e8f0; }

.zenta-web-swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.zenta-web-swatch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .75rem .4rem .45rem;
    border: 1px solid var(--zenta-border);
    border-radius: 999px;
    font-size: .8125rem;
    cursor: pointer;
}
.zenta-web-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.zenta-web-swatch-chip { width: 1.25rem; height: 1.25rem; border-radius: 50%; }
.zenta-web-swatch:has(input:checked) { border-color: var(--zenta-accent); box-shadow: 0 0 0 2px var(--zenta-accent-soft); font-weight: 600; }
.zenta-web-swatch:has(input:focus-visible) { outline: 2px solid var(--zenta-accent); outline-offset: 2px; }

.zenta-web-picture { display: flex; align-items: center; gap: 1rem; }
.zenta-web-picture img { max-height: 5rem; max-width: 10rem; border-radius: .375rem; border: 1px solid var(--zenta-border); }

/* The repeated items inside a section. */
.zenta-web-items { display: grid; gap: .6rem; }
.zenta-web-item {
    padding: .6rem .75rem .75rem;
    border: 1px solid var(--zenta-border);
    border-radius: var(--zenta-radius-lg);
    background: var(--zenta-surface-alt);
}
.zenta-web-item-bar { display: flex; align-items: center; margin-bottom: .35rem; }
.zenta-web-item-bar .btn { padding: .05rem .35rem; font-size: .75rem; }
.zenta-web-item-number {
    display: inline-grid;
    place-items: center;
    min-width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--zenta-surface);
    color: var(--zenta-text-muted);
    font-size: .75rem;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--zenta-border);
}
.zenta-web-item-label { margin-bottom: .2rem; font-size: .75rem; color: var(--zenta-text-muted); }

/* ==========================================================================
   18. Tenant admin
   The super admin's area uses the staff shell and the dashboard's own
   components; these are the few pieces it adds: the rows of its list panels.
   ========================================================================== */

.zenta-ta-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--zenta-border);
    color: var(--zenta-text);
    font-size: .8125rem;
    text-decoration: none;
}
.zenta-ta-row:last-child { border-bottom: 0; }
a.zenta-ta-row:hover { background: var(--zenta-surface-alt); color: var(--zenta-text); }
.zenta-ta-avatar {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--zenta-accent-soft);
    color: var(--zenta-accent-text);
    font-weight: 600;
}
.zenta-ta-sub { font-size: .75rem; color: var(--zenta-text-muted); }
.zenta-ta-when { flex-shrink: 0; font-size: .75rem; color: var(--zenta-text-muted); white-space: nowrap; }

/* A choice drawn as a card: the platform's workspace-address setting. */
.zenta-ta-choice {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .85rem 1rem;
    border: 1px solid var(--zenta-border);
    border-radius: var(--zenta-radius-lg);
    cursor: pointer;
    transition: border-color var(--zenta-transition), box-shadow var(--zenta-transition);
}
.zenta-ta-choice .form-check-input { margin-top: .2rem; flex-shrink: 0; }
.zenta-ta-choice code { font-size: .75rem; }
.zenta-ta-choice:has(input:checked) { border-color: var(--zenta-accent); box-shadow: 0 0 0 2px var(--zenta-accent-soft); }
.zenta-ta-choice.is-disabled { opacity: .6; cursor: not-allowed; }

/* ==========================================================================
   19. The assistant - the floating "Ask AI" button and its panel
   --------------------------------------------------------------------------
   Written against layouts/partials/assistant.blade.php and the views under
   admin/ai/. Fixed to the bottom corner on every staff and tenant admin
   screen, above the page and below Bootstrap's modals (1055) so a confirm
   dialog opened from the panel still sits on top of it.

   Every colour is a token, so the accent a workspace picks is the button's
   colour, and dark mode needs nothing of its own.
   ========================================================================== */

.zenta-ai {
    position: fixed;
    inset-inline-end: 1.5rem;
    bottom: 1.5rem;
    z-index: 1045;
    font-size: .875rem;
}

/* Room at the foot of every page, so the button never sits over its last row. */
body:has(.zenta-ai) .app-content { padding-bottom: 5rem; }

/* ---- the launcher: the button, and the starters that fan out above it ---- */

.zenta-ai-launcher {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.zenta-ai.is-open .zenta-ai-launcher { display: none; }

.zenta-ai-fab {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--zenta-accent);
    color: var(--zenta-on-accent);
    font-weight: 600;
    font-size: .9375rem;
    box-shadow: 0 6px 18px rgba(var(--zenta-accent-rgb), .35), 0 2px 4px rgba(0, 0, 0, .12);
    cursor: pointer;
    transition: transform var(--zenta-transition), background var(--zenta-transition), box-shadow var(--zenta-transition);
}
.zenta-ai-fab i { font-size: 1.1rem; }
.zenta-ai-fab:hover { background: var(--zenta-accent-hover); transform: translateY(-1px); }
.zenta-ai-fab:focus-visible { outline: 3px solid rgba(var(--zenta-accent-rgb), .35); outline-offset: 2px; }

/* The shortcut, spelled out under the button while it is hovered. */
.zenta-ai-hint {
    position: absolute;
    top: calc(100% + .35rem);
    inset-inline-end: 0;
    padding: .15rem .5rem;
    border-radius: var(--zenta-radius);
    background: var(--zenta-text);
    color: var(--zenta-surface);
    font-size: .6875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--zenta-transition);
}
.zenta-ai-fab:hover ~ .zenta-ai-hint,
.zenta-ai-fab:focus-visible ~ .zenta-ai-hint { opacity: 1; }

/*
 * Out of the flow, above the button. Left in the flow, the hidden starters
 * still took up their full height inside the launcher, so the launcher's
 * :hover fired a good 100px and more above the button - and the invisible
 * box sat over whatever part of the page was behind it.
 *
 * Opened by the button alone (hover, or keyboard focus), and kept open while
 * the pointer is on the starters themselves - the padding below them bridges
 * the gap to the button, so moving up from one to the other does not close
 * them. While hidden they take no pointer at all.
 */
.zenta-ai-actions {
    position: absolute;
    bottom: 100%;
    inset-inline-end: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .6rem;
    padding-bottom: .75rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity var(--zenta-transition), transform var(--zenta-transition), visibility var(--zenta-transition);
}
.zenta-ai-launcher:has(.zenta-ai-fab:hover) .zenta-ai-actions,
.zenta-ai-launcher:has(.zenta-ai-fab:focus-visible) .zenta-ai-actions,
.zenta-ai-actions:hover,
.zenta-ai-actions:focus-within {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.zenta-ai-action {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--zenta-text);
    cursor: pointer;
}
.zenta-ai-action[hidden] { display: none; }
.zenta-ai-action-label {
    padding: .3rem .75rem;
    border: 1px solid var(--zenta-border);
    border-radius: 999px;
    background: var(--zenta-surface);
    box-shadow: var(--zenta-shadow-lg);
    font-size: .8125rem;
    white-space: nowrap;
}
.zenta-ai-action-icon {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--zenta-border);
    border-radius: 50%;
    background: var(--zenta-surface);
    color: var(--zenta-accent-text);
    box-shadow: var(--zenta-shadow-lg);
    transition: background var(--zenta-transition), color var(--zenta-transition);
}
.zenta-ai-action:hover .zenta-ai-action-icon,
.zenta-ai-action:focus-visible .zenta-ai-action-icon { background: var(--zenta-accent); color: var(--zenta-on-accent); }

/* ---- the panel ----------------------------------------------------------- */

.zenta-ai-panel {
    display: flex;
    flex-direction: column;
    width: min(420px, calc(100vw - 2rem));
    height: min(680px, calc(100vh - var(--zenta-topbar-height) - 3rem));
    border: 1px solid var(--zenta-border);
    border-radius: 14px;
    background: var(--zenta-surface);
    color: var(--zenta-text);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18), 0 4px 12px rgba(0, 0, 0, .08);
    overflow: hidden;
    animation: zenta-ai-in .16s ease-out;
}
.zenta-ai-panel[hidden] { display: none; }
.zenta-ai.is-expanded .zenta-ai-panel {
    width: min(880px, calc(100vw - 3rem));
    height: calc(100vh - 3rem);
}

@keyframes zenta-ai-in {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.zenta-ai-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem .75rem .75rem 1rem;
    border-bottom: 1px solid var(--zenta-border);
}
.zenta-ai-head-icon { color: var(--zenta-accent-text); font-size: 1.15rem; }
.zenta-ai-title { margin: 0; font-size: 1rem; font-weight: 600; color: var(--zenta-text); }
.zenta-ai-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--zenta-text-faint);
}
.zenta-ai-dot.is-ready { background: #0ab39c; box-shadow: 0 0 0 3px rgba(10, 179, 156, .18); }
.zenta-ai-head-tools { display: flex; gap: .25rem; margin-inline-start: auto; }

.zenta-ai-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--zenta-radius-lg);
    background: transparent;
    color: var(--zenta-text-muted);
    cursor: pointer;
    transition: background var(--zenta-transition), color var(--zenta-transition), border-color var(--zenta-transition);
}
.zenta-ai-icon-btn:hover { background: var(--zenta-surface-alt); border-color: var(--zenta-border); color: var(--zenta-text); }

.zenta-ai-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.zenta-ai-loading { margin: auto; color: var(--zenta-text-faint); }

/* ---- a conversation (the opening screen is an empty one) ----------------- */

.zenta-ai-thread { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.zenta-ai-thread-head { padding: .6rem 1rem; border-bottom: 1px solid var(--zenta-border); }
.zenta-ai-thread-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zenta-ai-thread-agent { font-size: .75rem; color: var(--zenta-text-muted); }
.zenta-ai-thread-agent i { margin-inline-end: .25rem; }

.zenta-ai-messages {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1rem;
    overflow-y: auto;
}

.zenta-ai-welcome {
    margin: auto 0;
    padding: 1rem .5rem;
    text-align: center;
}
.zenta-ai-welcome-title { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.zenta-ai-welcome-text { max-width: 22rem; margin: 0 auto 1.25rem; color: var(--zenta-text-muted); line-height: 1.55; }
.zenta-ai-welcome-subtitle { margin: 1.25rem 0 .6rem; font-size: .75rem; font-weight: 600; color: var(--zenta-text-muted); text-transform: uppercase; letter-spacing: .04em; }

.zenta-ai-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.zenta-ai-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .8rem;
    border: 1px solid var(--zenta-border);
    border-radius: 999px;
    background: var(--zenta-surface);
    color: var(--zenta-text);
    font-size: .8125rem;
    cursor: pointer;
    transition: border-color var(--zenta-transition), background var(--zenta-transition);
}
.zenta-ai-chip i { color: var(--zenta-accent-text); }
.zenta-ai-chip:hover { border-color: var(--zenta-accent); background: var(--zenta-accent-soft); }

.zenta-ai-agent-note {
    margin: auto;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: var(--zenta-accent-soft);
    color: var(--zenta-accent-text);
    font-weight: 600;
}
.zenta-ai-agent-note i { margin-inline-end: .35rem; }

.zenta-ai-msg { display: flex; }
.zenta-ai-msg.is-user { justify-content: flex-end; }
.zenta-ai-bubble {
    max-width: 85%;
    padding: .55rem .85rem;
    border-radius: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.zenta-ai-msg.is-user .zenta-ai-bubble {
    background: var(--zenta-accent);
    color: var(--zenta-on-accent);
    border-end-end-radius: 4px;
}
.zenta-ai-msg.is-assistant .zenta-ai-bubble {
    background: var(--zenta-surface-alt);
    color: var(--zenta-text);
    border-end-start-radius: 4px;
}

/* An answer with a little structure: lists and bold figures. */
.zenta-ai-bubble.is-formatted { white-space: normal; }
.zenta-ai-bubble.is-formatted p { margin: 0 0 .5rem; }
.zenta-ai-bubble.is-formatted p:last-child,
.zenta-ai-bubble.is-formatted ul:last-child,
.zenta-ai-bubble.is-formatted ol:last-child { margin-bottom: 0; }
.zenta-ai-bubble.is-formatted ul,
.zenta-ai-bubble.is-formatted ol { margin: 0 0 .5rem; padding-inline-start: 1.2rem; }
.zenta-ai-bubble.is-formatted li { margin-bottom: .15rem; }
.zenta-ai-bubble.is-formatted code { padding: 0 .25rem; border-radius: 4px; background: var(--zenta-surface); font-size: .8125rem; }

/* Three dots while an answer is on its way. */
.zenta-ai-msg.is-thinking .zenta-ai-bubble { display: inline-flex; gap: .3rem; padding: .75rem .9rem; }
.zenta-ai-msg.is-thinking .zenta-ai-bubble span {
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: var(--zenta-text-faint);
    animation: zenta-ai-dot 1s infinite ease-in-out;
}
.zenta-ai-msg.is-thinking .zenta-ai-bubble span:nth-child(2) { animation-delay: .15s; }
.zenta-ai-msg.is-thinking .zenta-ai-bubble span:nth-child(3) { animation-delay: .3s; }

@keyframes zenta-ai-dot {
    0%, 80%, 100% { opacity: .3; transform: translateY(0); }
    40%           { opacity: 1;  transform: translateY(-3px); }
}

/* ---- something the assistant proposed, waiting for Confirm --------------- */

.zenta-ai-card {
    margin-inline-end: 15%;
    padding: .75rem .9rem;
    border: 1px solid var(--zenta-border);
    border-inline-start: 3px solid var(--zenta-accent);
    border-radius: 10px;
    background: var(--zenta-surface);
    box-shadow: var(--zenta-shadow-sm);
}
.zenta-ai-card.is-done { border-inline-start-color: #0ab39c; }
.zenta-ai-card.is-cancelled { border-inline-start-color: var(--zenta-border-strong); opacity: .7; }
/* Cannot be taken back - a delete, an anonymisation. Red until it is done. */
.zenta-ai-card.is-danger.is-pending { border-inline-start-color: var(--bs-danger); }
.zenta-ai-card.is-danger.is-pending .zenta-ai-card-title i { color: var(--bs-danger); }
.zenta-ai-card.is-danger .zenta-ai-card-btn.is-primary { border-color: var(--bs-danger); background: var(--bs-danger); color: #fff; }
.zenta-ai-card-title { display: flex; gap: .4rem; align-items: baseline; font-weight: 600; }
.zenta-ai-card-title i { color: var(--zenta-accent-text); }
.zenta-ai-card.is-done .zenta-ai-card-title i { color: #0ab39c; }
.zenta-ai-card-lines {
    margin: .4rem 0 0;
    padding-inline-start: 1.1rem;
    color: var(--zenta-text-muted);
    font-size: .8125rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
/* A box the card asks for itself: a secret, or the name typed to confirm. */
.zenta-ai-card-field { display: block; margin: .6rem 0 0; font-size: .8125rem; }
.zenta-ai-card-field > span { display: block; margin-bottom: .25rem; color: var(--zenta-text-muted); }
.zenta-ai-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .65rem; }
.zenta-ai-card-state { font-size: .8125rem; color: var(--zenta-text-muted); }
.zenta-ai-card-state i { margin-inline-end: .3rem; }
.zenta-ai-card-state.is-done { color: #0ab39c; font-weight: 500; }
.zenta-ai-card-state.is-error { flex-basis: 100%; color: var(--bs-danger); }
.zenta-ai-card-link { margin-inline-start: auto; font-size: .8125rem; font-weight: 600; color: var(--zenta-accent-text); }
.zenta-ai-card-btn {
    padding: .3rem .85rem;
    border: 1px solid var(--zenta-border);
    border-radius: 8px;
    background: var(--zenta-surface);
    color: var(--zenta-text);
    font-size: .8125rem;
    font-weight: 500;
    cursor: pointer;
}
.zenta-ai-card-btn:hover { background: var(--zenta-surface-alt); }
.zenta-ai-card-btn.is-primary { border-color: var(--zenta-accent); background: var(--zenta-accent); color: var(--zenta-on-accent); }
.zenta-ai-card-btn.is-primary:hover { background: var(--zenta-accent-hover); }
.zenta-ai-card-btn:disabled { opacity: .5; cursor: default; }

/* ---- the question box ---------------------------------------------------- */

.zenta-ai-composer {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    margin: .75rem;
    padding: .5rem .5rem .5rem .9rem;
    border: 1px solid var(--zenta-border);
    border-radius: 12px;
    background: var(--zenta-surface);
    box-shadow: var(--zenta-shadow-sm);
    transition: border-color var(--zenta-transition), box-shadow var(--zenta-transition);
}
.zenta-ai-composer:focus-within { border-color: var(--zenta-accent); box-shadow: 0 0 0 3px var(--zenta-accent-soft); }
.zenta-ai-composer textarea {
    flex: 1 1 auto;
    min-height: 2.1rem;
    max-height: 160px;
    padding: .35rem 0;
    border: 0;
    outline: 0;
    resize: none;
    background: transparent;
    color: var(--zenta-text);
    line-height: 1.45;
}
.zenta-ai-composer textarea::placeholder { color: var(--zenta-text-faint); }
.zenta-ai-send {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 10px;
    background: var(--zenta-accent);
    color: var(--zenta-on-accent);
    cursor: pointer;
    transition: background var(--zenta-transition), opacity var(--zenta-transition);
}
.zenta-ai-send:hover { background: var(--zenta-accent-hover); }
.zenta-ai-send:disabled { opacity: .5; cursor: default; }
[dir="rtl"] .zenta-ai-send i { transform: scaleX(-1); }

/* ---- history ------------------------------------------------------------- */

.zenta-ai-history { padding: .75rem; overflow-y: auto; }
.zenta-ai-history-title { padding: .25rem .5rem .5rem; font-size: .75rem; font-weight: 600; color: var(--zenta-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.zenta-ai-history-row { display: flex; align-items: center; gap: .25rem; border-radius: var(--zenta-radius-lg); }
.zenta-ai-history-row:hover { background: var(--zenta-surface-alt); }
.zenta-ai-history-open {
    flex: 1 1 auto;
    min-width: 0;
    padding: .5rem;
    border: 0;
    background: transparent;
    color: var(--zenta-text);
    text-align: start;
    cursor: pointer;
}
.zenta-ai-history-name { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zenta-ai-history-when { display: block; font-size: .75rem; color: var(--zenta-text-muted); }
.zenta-ai-history-when i { margin-inline-end: .25rem; }
.zenta-ai-history-empty { padding: 2rem 1rem; text-align: center; color: var(--zenta-text-faint); }
.zenta-ai-history-empty i { display: block; margin-bottom: .5rem; font-size: 1.5rem; }

/* ---- small screens: the panel takes the whole screen --------------------- */

@media (max-width: 575.98px) {
    .zenta-ai { inset-inline-end: 1rem; bottom: 1rem; }
    .zenta-ai-fab span { display: none; }
    .zenta-ai-fab { padding: .85rem; }
    .zenta-ai.is-open { inset: 0; }
    .zenta-ai-panel,
    .zenta-ai.is-expanded .zenta-ai-panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
    [data-assistant-expand] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .zenta-ai-panel,
    .zenta-ai-msg.is-thinking .zenta-ai-bubble span { animation: none; }
    .zenta-ai-actions,
    .zenta-ai-fab { transition: none; }
}

@media print {
    .zenta-ai { display: none; }
}

/* ==========================================================================
   20. Staff profile (admin/staff/show) and its Assign dialog

   The person on the left - cover, avatar, name, job title, role, three
   counts, Terminate and Assign - with their bio, progress and projects under
   it; the tabs on the right. Everything reads the shell's tokens, so a theme
   and dark mode reach it without rules of its own.
   ========================================================================== */
.zenta-profile .min-w-0,
.zenta-assign .min-w-0 { min-width: 0; }
.zenta-profile .card { margin-bottom: 0; }
.zenta-profile .card + .card { margin-top: 1rem; }

/* ---- the person ---------------------------------------------------------- */

.zenta-profile-cover {
    height: 6.5rem;
    border-radius: var(--zenta-radius-lg);
    background:
        radial-gradient(circle at 12% 120%, rgba(255, 255, 255, .22) 0 22%, transparent 23%),
        radial-gradient(circle at 88% -30%, rgba(255, 255, 255, .16) 0 30%, transparent 31%),
        radial-gradient(circle at 70% 130%, rgba(255, 255, 255, .10) 0 18%, transparent 19%),
        linear-gradient(135deg, var(--zenta-accent) 0%, color-mix(in srgb, var(--zenta-accent) 55%, #0ab39c) 100%);
}

.zenta-profile-id {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-inline: 1rem;
    margin-top: -2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.zenta-profile-avatar {
    width: 5rem; height: 5rem;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--zenta-accent);
    color: var(--zenta-on-accent);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: .02em;
    border: 4px solid var(--zenta-surface);
    box-shadow: var(--zenta-shadow-lg);
}

.zenta-profile-status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .75rem;
    border: 1px solid var(--zenta-border);
    border-radius: var(--zenta-radius-lg);
    background: var(--zenta-surface-alt);
    box-shadow: var(--zenta-shadow);
    font-size: .75rem;
    font-weight: 500;
    color: var(--zenta-text);
    white-space: nowrap;
}
.zenta-profile-status-dot {
    width: .5rem; height: .5rem;
    border-radius: 50%;
    background: #0ab39c;
    box-shadow: 0 0 0 3px rgba(10, 179, 156, .2);
}
.zenta-profile-status.is-inactive .zenta-profile-status-dot {
    background: #f06548;
    box-shadow: 0 0 0 3px rgba(240, 101, 72, .2);
}

.zenta-profile-name { margin: 0 0 .15rem; font-size: 1rem; font-weight: 600; color: var(--zenta-heading); }
.zenta-profile-title { margin: 0 0 .5rem; color: var(--zenta-text-muted); }
.zenta-profile-role {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .15rem .6rem;
    border-radius: 999px;
    background: var(--zenta-accent-soft);
    color: var(--zenta-accent-text);
    font-size: .72rem;
    font-weight: 500;
}
.zenta-profile-edit { flex-shrink: 0; border: 1px solid var(--zenta-border); }

.zenta-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    padding-block: 1rem;
    margin-bottom: 1rem;
    border-block: 1px dashed var(--zenta-border);
}
.zenta-profile-stat { display: flex; gap: .6rem; align-items: flex-start; min-width: 0; }
.zenta-profile-stat > .bi { font-size: 1.05rem; color: var(--zenta-text-muted); line-height: 1.4; }
.zenta-profile-stat-value {
    font-family: var(--zenta-font-figures);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--zenta-heading);
}
.zenta-profile-stat-label { color: var(--zenta-text-muted); font-size: .75rem; }

/* ---- bio, progress, projects --------------------------------------------- */

.zenta-profile-section + .zenta-profile-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--zenta-border);
}
.zenta-profile-heading {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .9rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--zenta-heading);
}
.zenta-profile-heading > span {
    width: 1.75rem; height: 1.75rem;
    display: grid; place-items: center;
    border: 1px solid var(--zenta-border);
    border-radius: 50%;
    color: var(--zenta-accent-text);
    background: var(--zenta-surface);
}
.zenta-profile-bio { color: var(--zenta-text-muted); line-height: 1.65; margin-bottom: .9rem; }
.zenta-profile-bio strong { color: var(--zenta-text); font-weight: 600; }

.zenta-profile-facts { margin: 0; }
.zenta-profile-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: .3rem;
}
.zenta-profile-facts dt { font-weight: 400; color: var(--zenta-text-muted); flex-shrink: 0; }
.zenta-profile-facts dd { margin: 0; font-weight: 600; text-align: end; min-width: 0; overflow-wrap: anywhere; }
.zenta-profile-facts dd a { color: var(--zenta-text); }
.zenta-profile-facts dd a:hover { color: var(--zenta-accent-text); }

.zenta-profile-progress { height: .5rem; border-radius: 999px; background: var(--zenta-surface-alt); }
.zenta-profile-progress .progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--zenta-accent), color-mix(in srgb, var(--zenta-accent) 55%, #0ab39c));
}
.zenta-profile-progress--thin { height: .35rem; }

.zenta-profile-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.zenta-profile-chips > span {
    padding: .2rem .55rem;
    border-radius: var(--zenta-radius-lg);
    background: var(--zenta-surface-alt);
    color: var(--zenta-text-muted);
    font-size: .72rem;
    font-weight: 500;
}
.zenta-profile-chips > span b { font-weight: 600; margin-inline-start: .15rem; }
.zenta-profile-chips > .zenta-tone-info { background: rgba(41, 156, 219, .13); color: #299cdb; }
.zenta-profile-chips > .zenta-tone-success { background: rgba(10, 179, 156, .13); color: #0ab39c; }
.zenta-profile-chips > .zenta-tone-danger { background: rgba(240, 101, 72, .13); color: #f06548; }

.zenta-profile-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    font-weight: 500;
}
.zenta-profile-line + .zenta-profile-line { margin-top: .6rem; }
.zenta-profile-line .bi { color: #0ab39c; margin-inline-end: .35rem; }
.zenta-profile-line > span:last-child { color: var(--zenta-accent-text); font-family: var(--zenta-font-figures); font-weight: 600; }

.zenta-profile-list {
    max-height: 15rem;
    overflow-y: auto;
    margin-inline: -1.125rem;
    padding-inline: 1.125rem;
}
.zenta-profile-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: .65rem .5rem;
    margin-inline: -.5rem;
    border-radius: var(--zenta-radius-lg);
    color: inherit;
    text-decoration: none;
    transition: background var(--zenta-transition);
}
.zenta-profile-list-item + .zenta-profile-list-item { border-top: 1px dashed var(--zenta-border); }
.zenta-profile-list-item:hover { background: var(--zenta-surface-alt); color: inherit; }
.zenta-profile-list-title { font-weight: 600; color: var(--zenta-heading); }
.zenta-profile-list-sub { color: var(--zenta-text-muted); font-size: .75rem; }

/* Overlapping initials: a project's team. */
.zenta-avatar-stack { display: inline-flex; flex-shrink: 0; }
.zenta-avatar-stack .zenta-avatar {
    width: 1.75rem; height: 1.75rem;
    font-size: .62rem;
    border: 2px solid var(--zenta-surface);
}
.zenta-avatar-stack .zenta-avatar + .zenta-avatar { margin-inline-start: -.5rem; }
.zenta-avatar-stack .zenta-avatar:nth-child(2) { background: #0ab39c; }
.zenta-avatar-stack .zenta-avatar:nth-child(3) { background: #299cdb; }
.zenta-avatar-stack .zenta-avatar-more { background: var(--zenta-heading) !important; color: var(--zenta-surface); }

/* ---- the tabs ------------------------------------------------------------ */

.zenta-profile-tabs { min-height: 100%; }
.zenta-profile-tabs .card-header { padding-block: .75rem; }
.zenta-profile-tabs .nav-pills { gap: .25rem; }
.zenta-profile-tabs .nav-pills .nav-link {
    display: inline-flex;
    align-items: center;
    padding: .45rem .9rem;
    border-radius: var(--zenta-radius-lg);
    color: var(--zenta-text-muted);
    font-weight: 500;
    white-space: nowrap;
}
.zenta-profile-tabs .nav-pills .nav-link:hover { color: var(--zenta-accent-text); }
.zenta-profile-tabs .nav-pills .nav-link.active { background: var(--zenta-accent); color: var(--zenta-on-accent); }
.zenta-profile-count {
    margin-inline-start: .4rem;
    padding: .05rem .45rem;
    border-radius: 999px;
    background: var(--zenta-surface-alt);
    color: var(--zenta-text-muted);
    font-size: .68rem;
    font-weight: 600;
}
.zenta-profile-tabs .nav-link.active .zenta-profile-count { background: rgba(255, 255, 255, .22); color: inherit; }

/* Activity: time, pin, text - the pins joined by a line. */
.zenta-profile-timeline { list-style: none; margin: 0; padding: 0; }
.zenta-profile-timeline > li {
    display: grid;
    grid-template-columns: 4.5rem 2.25rem minmax(0, 1fr);
    gap: .75rem;
    position: relative;
    padding-bottom: 1.4rem;
}
.zenta-profile-timeline > li:last-child { padding-bottom: 0; }
.zenta-profile-timeline > li::before {
    content: "";
    position: absolute;
    inset-inline-start: calc(4.5rem + .75rem + 1.125rem - 1px);
    top: 2.25rem;
    bottom: 0;
    border-inline-start: 2px dashed var(--zenta-border);
}
.zenta-profile-timeline > li:last-child::before { display: none; }
.zenta-profile-timeline time { text-align: end; line-height: 1.3; padding-top: .3rem; }
.zenta-profile-timeline time span { display: block; font-weight: 600; color: var(--zenta-heading); font-family: var(--zenta-font-figures); }
.zenta-profile-timeline time small { color: var(--zenta-text-faint); font-size: .7rem; }
.zenta-profile-pin {
    width: 2.25rem; height: 2.25rem;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--zenta-border);
    background: var(--zenta-surface);
    color: var(--zenta-text-muted);
    position: relative;
    z-index: 1;
}
.zenta-profile-pin--created { color: #0ab39c; background: rgba(10, 179, 156, .1); border-color: transparent; }
.zenta-profile-pin--updated { color: var(--zenta-accent-text); background: var(--zenta-accent-soft); border-color: transparent; }
.zenta-profile-pin--deleted { color: #f06548; background: rgba(240, 101, 72, .1); border-color: transparent; }
.zenta-profile-pin--restored { color: #d9901b; background: rgba(247, 184, 75, .14); border-color: transparent; }
.zenta-profile-timeline-body { padding-top: .2rem; min-width: 0; }
.zenta-profile-timeline-title { font-weight: 600; color: var(--zenta-heading); }
.zenta-profile-timeline-title span { margin-inline-start: .25rem; color: #299cdb; font-weight: 500; }
.zenta-profile-timeline-text { color: var(--zenta-text-muted); overflow-wrap: anywhere; }

/* Project and colleague tiles. */
.zenta-profile-tile {
    height: 100%;
    padding: 1rem;
    border: 1px solid var(--zenta-border);
    border-radius: var(--zenta-radius-lg);
    background: var(--zenta-surface);
    transition: box-shadow var(--zenta-transition), transform var(--zenta-transition);
}
.zenta-profile-tile:hover { box-shadow: var(--zenta-shadow-lg); transform: translateY(-2px); }
.zenta-profile-tile-title { font-weight: 600; color: var(--zenta-heading); font-size: .875rem; }
.zenta-profile-tile-title:hover { color: var(--zenta-accent-text); }
.zenta-profile-tile-icon {
    width: 2rem; height: 2rem;
    display: grid; place-items: center;
    border-radius: var(--zenta-radius-lg);
    background: var(--zenta-surface-alt);
    color: var(--zenta-text-muted);
}
.zenta-profile-tile-figure { font-family: var(--zenta-font-figures); font-size: 1.125rem; font-weight: 600; color: var(--zenta-heading); }
.zenta-profile-tile-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid var(--zenta-border);
}
.zenta-profile-mate { width: 2.75rem; height: 2.75rem; font-size: .9rem; box-shadow: 0 0 0 2px var(--zenta-surface), 0 0 0 4px var(--zenta-accent-soft); }

@media (max-width: 575.98px) {
    .zenta-profile-timeline > li { grid-template-columns: 2.25rem minmax(0, 1fr); }
    .zenta-profile-timeline time { grid-column: 2; grid-row: 2; text-align: start; padding-top: 0; }
    .zenta-profile-timeline time span { display: inline; margin-inline-end: .35rem; }
    .zenta-profile-timeline > li::before { inset-inline-start: calc(1.125rem - 1px); }
}

/* ---- the Assign dialog --------------------------------------------------- */

.zenta-assign-header {
    background:
        radial-gradient(circle at 95% -40%, rgba(255, 255, 255, .18) 0 35%, transparent 36%),
        linear-gradient(135deg, var(--zenta-accent) 0%, color-mix(in srgb, var(--zenta-accent) 55%, #0ab39c) 100%);
    color: var(--zenta-on-accent);
    border-bottom: 0;
    padding: 1.1rem 1.25rem;
}
.zenta-assign-header .modal-title { color: inherit; font-weight: 600; }
.zenta-assign-header .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .8; }
.zenta-assign-sub { font-size: .75rem; opacity: .85; }
.zenta-assign-avatar {
    width: 2.75rem; height: 2.75rem;
    font-size: .95rem;
    background: rgba(255, 255, 255, .2);
    color: inherit;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .45);
}
.zenta-assign .modal-body { padding: 1.25rem; }
.zenta-assign-step { display: flex; gap: .9rem; }
.zenta-assign-step + .zenta-assign-step { margin-top: 1.1rem; }
.zenta-assign-step-num {
    width: 1.75rem; height: 1.75rem;
    flex-shrink: 0;
    display: grid; place-items: center;
    margin-top: 1.55rem;
    border-radius: 50%;
    background: var(--zenta-accent-soft);
    color: var(--zenta-accent-text);
    font-weight: 600;
    font-size: .75rem;
}
.zenta-assign-count {
    padding: .05rem .5rem;
    margin-bottom: .5rem;
    border-radius: 999px;
    background: var(--zenta-accent-soft);
    color: var(--zenta-accent-text);
    font-size: .7rem;
    font-weight: 600;
}
.zenta-assign-option {
    margin-top: 1.25rem;
    margin-inline-start: 2.65rem;
    padding: .8rem 1rem;
    border: 1px solid var(--zenta-border);
    border-radius: var(--zenta-radius-lg);
    background: var(--zenta-surface-alt);
}
.zenta-assign-option .form-check-label .text-muted { font-size: .75rem; }
.zenta-assign-note {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    margin-inline-start: 2.65rem;
    color: var(--zenta-text-muted);
    font-size: .75rem;
}
.zenta-assign-note .bi { color: var(--zenta-accent-text); }

/* A modal opened over another - the category picker's "add" form - and the
   backdrop that belongs to it, so the one underneath stays visible and the
   top one is the one you can reach. */
#zenta-modal-over {
    z-index: 1070;
}

.modal-backdrop.show ~ .modal-backdrop.show {
    z-index: 1065;
}

/*
 * The product's own logo at the top of a sidebar (layouts/partials/sidebar-brand):
 * the full logo while the sidebar is open, the mark alone on the collapsed
 * rail. Two copies of each, one per page theme; the theme rule hides the
 * other, whichever of these rules comes first.
 */
.zenta-brand.has-product-logo { gap: .6rem; }
.zenta-brand-logo { display: block; flex-shrink: 0; width: auto; height: 28px; max-width: 100%; }
.zenta-brand-icon { display: none; flex-shrink: 0; width: auto; height: 28px; }
.zenta-brand-tag {
    padding: .15rem .45rem;
    border: 1px solid var(--zenta-sidebar-line, rgba(255, 255, 255, .15));
    border-radius: 999px;
    color: var(--zenta-sidebar-text);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
[data-bs-theme="dark"] .zenta-brand .zenta-logo-for-light,
[data-bs-theme="light"] .zenta-brand .zenta-logo-for-dark { display: none !important; }
@media (min-width: 992px) {
    .sidebar-collapsed .zenta-brand-logo,
    .sidebar-collapsed .zenta-brand-tag { display: none; }
    .sidebar-collapsed .zenta-brand-icon { display: block; }
}

/* The logo in the help centre's header bar. */
.zenta-public-logo { display: block; width: auto; height: 32px; max-width: 200px; object-fit: contain; }

/* Under the sign-in card: the way back to the website, while there is one. */
.zenta-auth-back { margin: 1.25rem 0 0; text-align: center; font-size: .875rem; }
.zenta-auth-back a { color: var(--zenta-text-muted); text-decoration: none; }
.zenta-auth-back a:hover { color: var(--zenta-accent); }
[dir="rtl"] .zenta-auth-back .bi-arrow-left { display: inline-block; transform: scaleX(-1); }
