:root {
    --csl-primary: #164b68;
    --csl-primary-dark: #0e354b;
    --csl-secondary: #BCE153;
    --csl-ink: #173043;
    --csl-muted: #6f7f8a;
    --csl-line: #e4ebef;
    --csl-bg: #f2f7f8;
    --csl-card: #ffffff;
}

body.csl-standalone-dashboard-page {
    margin: 0;
    min-height: 100vh;
    background: var(--csl-bg);
    color: var(--csl-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.csl-standalone-dashboard-page .csl-standalone-dashboard h1,
body.csl-standalone-dashboard-page .csl-standalone-dashboard h2,
body.csl-standalone-dashboard-page .csl-standalone-dashboard h3 {
    font-family: "Rift", var(--e-global-typography-primary-font-family, Inter), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.csl-standalone-dashboard-page #wpadminbar { display: none !important; }
body.csl-standalone-dashboard-page * { box-sizing: border-box; }
body.csl-standalone-dashboard-page a { color: inherit; }
body.csl-standalone-dashboard-page svg { width: 1em; height: 1em; fill: currentColor; display: block; }

.csl-standalone-dashboard { min-height: 100vh; }
.csl-app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }

.csl-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px 20px 22px;
    color: #fff;
    background: linear-gradient(160deg, var(--csl-primary) 0%, var(--csl-primary-dark) 100%);
    box-shadow: 18px 0 45px rgba(14, 53, 75, .12);
    z-index: 5;
}
.csl-sidebar::after {
    content: "";
    position: absolute;
    inset: auto -40px -60px auto;
    width: 130px;
    height: 193px;
    background: url("../images/swoosh-lime.png") center / contain no-repeat;
    opacity: .14;
    pointer-events: none;
}
.csl-sidebar-brand { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 7px 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.csl-sidebar-logo { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden; color: var(--csl-primary); background: var(--csl-secondary); border-radius: 14px; font-size: 15px; font-weight: 900; letter-spacing: .5px; }
.csl-sidebar-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; background: #fff; }
.csl-sidebar-brand strong, .csl-sidebar-brand small { display: block; }
.csl-sidebar-brand strong { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.csl-sidebar-brand small { margin-top: 3px; color: rgba(255,255,255,.62); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

.csl-sidebar-nav { display: grid; gap: 7px; margin: 28px 0; }
.csl-sidebar-nav a { position: relative; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 13px; color: rgba(255,255,255,.72); text-decoration: none; font-size: 14px; font-weight: 650; transition: .2s ease; }
.csl-sidebar-nav a svg { font-size: 20px; }
.csl-sidebar-nav a b { min-width: 24px; height: 24px; display: grid; place-items: center; padding: 0 7px; border-radius: 99px; background: rgba(255,255,255,.11); font-size: 13px; }
.csl-sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.csl-sidebar-nav a.is-active { color: var(--csl-primary-dark) !important; background: var(--csl-secondary); box-shadow: 0 12px 28px rgba(188,225,83,.18); }
.csl-sidebar-nav a.is-active::before { content: ""; position: absolute; left: -20px; width: 4px; height: 26px; border-radius: 0 5px 5px 0; background: var(--csl-secondary); }
.csl-sidebar-nav a.is-active b { color: #fff; background: var(--csl-primary); }

.csl-sidebar-user { margin-top: auto; display: flex; align-items: center; gap: 11px; padding: 15px 9px; border-top: 1px solid rgba(255,255,255,.12); }
.csl-sidebar-user img, .csl-top-avatar img { border-radius: 50%; }
.csl-sidebar-user strong, .csl-sidebar-user small { display: block; }
.csl-sidebar-user strong { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.csl-sidebar-user small { margin-top: 2px; color: rgba(255,255,255,.58); font-size: 13px; }
.csl-logout-button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; margin-top: 7px; border: 1px solid rgba(255,255,255,.17); border-radius: 12px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; transition: .2s ease; }
.csl-logout-button:hover { color: var(--csl-primary-dark); background: var(--csl-secondary); border-color: var(--csl-secondary); }
.csl-logout-button svg { font-size: 18px; }

.csl-dashboard-main { min-width: 0; padding: 28px clamp(22px, 4vw, 58px) 54px; }
.csl-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.csl-page-kicker { display: block; margin-bottom: 3px; color: var(--csl-muted); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.csl-topbar h1 { margin: 0; color: var(--csl-ink); font-size: clamp(27px, 3vw, 38px); line-height: 1.15; letter-spacing: -.035em; }
.csl-topbar-actions { display: flex; align-items: center; gap: 14px; }
.csl-current-date { padding: 10px 14px; color: var(--csl-muted); background: #fff; border: 1px solid var(--csl-line); border-radius: 12px; font-size: 13px; font-weight: 650; }
.csl-top-avatar { width: 44px; height: 44px; padding: 2px; background: var(--csl-secondary); border-radius: 50%; }
.csl-top-avatar img { width: 100%; height: 100%; display: block; }

.csl-dashboard-notice { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 13px 16px; color: #315d18; background: #f2f9df; border: 1px solid #dceca9; border-radius: 13px; font-size: 13px; font-weight: 700; }
.csl-dashboard-notice svg { flex: 0 0 19px; font-size: 19px; }

.csl-welcome-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; min-height: 170px; margin-bottom: 20px; padding: 30px 34px; color: #fff; background: linear-gradient(115deg, var(--csl-primary) 0%, #216487 100%); border-radius: 22px; box-shadow: 0 18px 38px rgba(22,75,104,.14); }
.csl-welcome-card::after { content: ""; position: absolute; right: -20px; top: -60px; width: 160px; height: 237px; background: url("../images/swoosh-lime.png") center / contain no-repeat; opacity: .16; pointer-events: none; }
.csl-welcome-card > div:first-child { position: relative; z-index: 1; max-width: 680px; }
.csl-welcome-card span { color: var(--csl-secondary); font-size: 13px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.csl-welcome-card h2 { margin: 7px 0 8px; color: #fff; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -.03em; }
.csl-welcome-card p { max-width: 610px; margin: 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.65; }
.csl-welcome-mark { position: relative; z-index: 1; width: 78px; height: 78px; display: grid; place-items: center; color: var(--csl-primary); background: var(--csl-secondary); border-radius: 24px; transform: rotate(8deg); box-shadow: 0 16px 35px rgba(0,0,0,.16); }
.csl-welcome-mark svg { font-size: 42px; transform: rotate(-8deg); }

.csl-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.csl-metric-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 21px; background: var(--csl-card); border: 1px solid var(--csl-line); border-radius: 18px; box-shadow: 0 12px 30px rgba(35,66,82,.055); }
.csl-metric-icon { flex: 0 0 47px; width: 47px; height: 47px; display: grid; place-items: center; color: var(--csl-primary); background: rgba(188,225,83,.32); border-radius: 14px; }
.csl-metric-icon svg { font-size: 24px; }
.csl-metric-card > div:last-child { min-width: 0; }
.csl-metric-card strong, .csl-metric-card span, .csl-metric-card small { display: block; }
.csl-metric-card strong { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--csl-ink); font-size: 23px; line-height: 1.1; }
.csl-metric-card span { margin-top: 4px; color: var(--csl-ink); font-size: 14px; font-weight: 750; }
.csl-metric-card small { margin-top: 3px; color: var(--csl-muted); font-size: 13px; line-height: 1.3; }

.csl-overview-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .8fr); gap: 18px; margin-bottom: 18px; }
.csl-panel { background: var(--csl-card); border: 1px solid var(--csl-line); border-radius: 19px; box-shadow: 0 12px 32px rgba(35,66,82,.05); }
.csl-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px 15px; }
.csl-panel-heading span { display: block; margin-bottom: 4px; color: var(--csl-muted); font-size: 13px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.csl-panel-heading h3 { margin: 0; color: var(--csl-ink); font-size: 18px; letter-spacing: -.02em; }
.csl-panel-heading > a { color: var(--csl-primary); text-decoration: none; font-size: 13px; font-weight: 800; }
.csl-range-pill { padding: 7px 10px; color: var(--csl-primary) !important; background: #eef4f6; border-radius: 999px; font-size: 13px !important; letter-spacing: .04em !important; }

.csl-chart { height: 235px; display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 17px; padding: 23px 28px 25px; border-top: 1px solid #f0f3f5; }
.csl-chart-column { height: 100%; display: grid; grid-template-rows: 18px minmax(0,1fr) 19px; align-items: end; text-align: center; }
.csl-chart-value { color: var(--csl-muted); font-size: 13px; }
.csl-chart-track { position: relative; height: 100%; min-height: 115px; overflow: hidden; display: flex; align-items: flex-end; background: linear-gradient(to top, rgba(22,75,104,.035) 1px, transparent 1px); background-size: 100% 25%; border-radius: 8px 8px 3px 3px; }
.csl-chart-track i { width: 100%; min-height: 8px; display: block; background: linear-gradient(to top, var(--csl-primary), #2f789c); border-radius: 8px 8px 3px 3px; box-shadow: 0 8px 18px rgba(22,75,104,.18); }
.csl-chart-column:nth-child(5) .csl-chart-track i, .csl-chart-column:nth-child(6) .csl-chart-track i { background: linear-gradient(to top, #90b538, var(--csl-secondary)); }
.csl-chart-column small { color: var(--csl-muted); font-size: 13px; }

.csl-status-list { display: grid; gap: 8px; padding: 4px 18px 20px; }
.csl-status-list > div { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 13px; background: #f7fafb; border-radius: 13px; }
.csl-status-icon { width: 42px; height: 42px; display: grid !important; place-items: center; margin: 0 !important; color: var(--csl-primary) !important; background: #fff; border: 1px solid var(--csl-line); border-radius: 12px; }
.csl-status-icon svg { font-size: 21px; }
.csl-status-list strong, .csl-status-list small { display: block; }
.csl-status-list strong { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.csl-status-list small { margin-top: 3px; color: var(--csl-muted); font-size: 13px; }
.csl-status-list b { padding: 5px 8px; border-radius: 99px; font-size: 13px; }
.csl-status-list b.is-good { color: #47710c; background: #eaf6c9; }
.csl-status-list b.is-muted { color: #7b858d; background: #e9eef1; }

.csl-recent-panel { overflow: hidden; }
.csl-table-wrap { overflow-x: auto; padding: 0 20px 20px; }
.csl-members-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.csl-members-table th { padding: 12px 13px; color: var(--csl-muted); background: #f6f9fa; border-bottom: 1px solid var(--csl-line); text-align: left; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.csl-members-table th:first-child { border-radius: 10px 0 0 10px; }
.csl-members-table th:last-child { border-radius: 0 10px 10px 0; }
.csl-members-table td { padding: 14px 13px; border-bottom: 1px solid #edf2f4; color: #536774; font-size: 13px; }
.csl-members-table tr:last-child td { border-bottom: 0; }
.csl-member-cell { display: flex; align-items: center; gap: 11px; }
.csl-member-cell img { border-radius: 12px; }
.csl-member-cell strong, .csl-member-cell small { display: block; }
.csl-member-cell strong { color: var(--csl-ink); font-size: 13px; }
.csl-member-cell small { margin-top: 3px; color: var(--csl-muted); font-size: 13px; }
.csl-role-pill { display: inline-block; padding: 6px 9px; color: var(--csl-primary); background: #edf4f6; border-radius: 999px; font-size: 13px; font-weight: 800; }
.csl-member-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; color: #7a858b; background: #edf1f3; border-radius: 999px; font-size: 13px; font-weight: 800; }
.csl-member-status i { width: 6px; height: 6px; background: #9da7ad; border-radius: 50%; }
.csl-member-status.is-active { color: #47710c; background: #edf8d2; }
.csl-member-status.is-active i { background: #75a618; box-shadow: 0 0 0 3px rgba(117,166,24,.12); }

.csl-package-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; min-height: 205px; margin-bottom: 18px; padding: 34px 38px; color: #fff; background: linear-gradient(125deg, var(--csl-primary), #286d91); border-radius: 22px; box-shadow: 0 18px 38px rgba(22,75,104,.14); }
.csl-package-hero::after { content: ""; position: absolute; right: -20px; bottom: -70px; width: 160px; height: 237px; background: url("../images/swoosh-lime.png") center / contain no-repeat; opacity: .16; pointer-events: none; }
.csl-package-hero > div:first-child { position: relative; z-index: 1; max-width: 680px; }
.csl-package-hero span { color: var(--csl-secondary); font-size: 13px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.csl-package-hero h2 { margin: 8px 0 10px; color: #fff; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.csl-package-hero p { max-width: 650px; margin: 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.7; }
.csl-package-badge { position: relative; z-index: 1; width: 96px; height: 96px; display: grid; place-items: center; color: var(--csl-primary); background: var(--csl-secondary); border-radius: 28px; transform: rotate(8deg); }
.csl-package-badge svg { font-size: 52px; transform: rotate(-8deg); }
.csl-package-hero.is-inactive { filter: saturate(.65); }

.csl-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.csl-detail-card { padding: 23px; }
.csl-detail-card span, .csl-detail-card strong, .csl-detail-card small { display: block; }
.csl-detail-card span { color: var(--csl-muted); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.csl-detail-card strong { margin: 9px 0 7px; color: var(--csl-ink); font-size: 24px; }
.csl-detail-card small { color: var(--csl-muted); font-size: 13px; line-height: 1.5; }
.csl-process-list { display: grid; gap: 12px; padding: 3px 24px 25px; }
.csl-process-list > div { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 14px; align-items: start; padding: 16px; background: #f7fafb; border-radius: 14px; }
.csl-process-list b { width: 38px; height: 38px; display: grid; place-items: center; color: var(--csl-primary); background: var(--csl-secondary); border-radius: 12px; }
.csl-process-list strong { color: var(--csl-ink); font-size: 13px; }
.csl-process-list p { margin: 5px 0 0; color: var(--csl-muted); font-size: 13px; line-height: 1.55; }

.csl-form-panel { overflow: hidden; }
.csl-dashboard-form { padding: 5px 24px 27px; }
.csl-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; }
.csl-form-grid label { display: grid; gap: 7px; }
.csl-form-grid label > span { color: var(--csl-ink); font-size: 13px; font-weight: 800; }
.csl-form-grid input, .csl-form-grid select, .csl-form-grid textarea {
    width: 100%; min-height: 48px; padding: 0 14px; color: var(--csl-ink); background: #fbfdfe; border: 1px solid #dce6eb; border-radius: 12px; outline: none; font: inherit; font-size: 13px; transition: .2s ease;
}
.csl-form-grid textarea { min-height: 130px; padding-top: 13px; resize: vertical; }
.csl-form-grid input:focus, .csl-form-grid select:focus, .csl-form-grid textarea:focus { border-color: var(--csl-primary); box-shadow: 0 0 0 4px rgba(22,75,104,.09); background: #fff; }
.csl-form-grid small { margin-top: -2px; color: var(--csl-muted); font-size: 13px; }
.csl-form-full { grid-column: 1 / -1; }
.csl-primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; margin-top: 20px; padding: 0 19px; color: var(--csl-primary-dark); background: var(--csl-secondary); border: 0; border-radius: 12px; font: inherit; font-size: 13px; font-weight: 850; cursor: pointer; box-shadow: 0 10px 22px rgba(188,225,83,.2); }
.csl-primary-button:hover { filter: brightness(.97); transform: translateY(-1px); }
.csl-primary-button svg { font-size: 18px; }
.csl-dashboard-toggle { display: flex; align-items: center; gap: 13px; margin: 3px 0 20px; padding: 16px; background: #f7fafb; border-radius: 14px; }
.csl-dashboard-toggle > input { position: absolute; opacity: 0; pointer-events: none; }
.csl-dashboard-toggle > span { position: relative; flex: 0 0 46px; width: 46px; height: 26px; background: #cbd6dc; border-radius: 999px; transition: .2s ease; }
.csl-dashboard-toggle > span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 2px 7px rgba(0,0,0,.18); transition: .2s ease; }
.csl-dashboard-toggle > input:checked + span { background: var(--csl-primary); }
.csl-dashboard-toggle > input:checked + span::after { transform: translateX(20px); background: var(--csl-secondary); }
.csl-dashboard-toggle strong, .csl-dashboard-toggle small { display: block; }
.csl-dashboard-toggle strong { font-size: 13px; }
.csl-dashboard-toggle small { margin-top: 3px; color: var(--csl-muted); font-size: 13px; line-height: 1.45; }
.csl-inline-check { display: flex !important; grid-template-columns: 18px minmax(0,1fr); flex-direction: row; align-items: flex-start; gap: 10px !important; padding: 14px; background: #f7fafb; border-radius: 12px; }
.csl-inline-check input { width: 17px; min-height: 17px; margin-top: 2px; }
.csl-inline-check strong, .csl-inline-check small { display: block; }
.csl-inline-check small { margin-top: 3px; }
.csl-callback-box { margin-top: 18px; padding: 15px; background: var(--csl-primary); border-radius: 13px; }
.csl-callback-box span { display: block; margin-bottom: 6px; color: var(--csl-secondary); font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.csl-callback-box code { display: block; overflow-wrap: anywhere; color: #fff; background: transparent; font-size: 13px; }
.csl-connection-badge { display: inline-flex !important; align-items: center; gap: 7px; margin: 0 !important; padding: 7px 10px; color: #7b858d !important; background: #edf1f3; border-radius: 999px; font-size: 13px !important; letter-spacing: .04em !important; }
.csl-connection-badge i { width: 7px; height: 7px; background: #9ca7ad; border-radius: 50%; }
.csl-connection-badge.is-connected { color: #47710c !important; background: #edf8d2; }
.csl-connection-badge.is-connected i { background: #75a618; }

.csl-empty-state, .csl-dashboard-empty { display: grid; place-items: center; text-align: center; padding: 60px 24px; }
.csl-empty-state > svg, .csl-dashboard-empty > div { width: 70px; height: 70px; display: grid; place-items: center; color: var(--csl-primary); background: rgba(188,225,83,.32); border-radius: 20px; }
.csl-empty-state > svg { padding: 18px; }
.csl-dashboard-empty { max-width: 680px; min-height: 100vh; margin: auto; }
.csl-dashboard-empty > div svg { font-size: 34px; }
.csl-empty-state h3, .csl-dashboard-empty h2 { margin: 18px 0 7px; color: var(--csl-ink); }
.csl-empty-state p, .csl-dashboard-empty p { max-width: 520px; margin: 0; color: var(--csl-muted); font-size: 13px; line-height: 1.7; }

@media (max-width: 1180px) {
    .csl-metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .csl-overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .csl-app-shell { grid-template-columns: 82px minmax(0,1fr); }
    .csl-sidebar { padding: 24px 14px 18px; }
    .csl-sidebar-brand { justify-content: center; padding-left: 0; padding-right: 0; }
    .csl-sidebar-brand > div:last-child, .csl-sidebar-nav a span, .csl-sidebar-nav a b, .csl-sidebar-user > div, .csl-logout-button span { display: none; }
    .csl-sidebar-nav a { grid-template-columns: 1fr; justify-items: center; padding: 0; }
    .csl-sidebar-nav a.is-active::before { left: -14px; }
    .csl-sidebar-user { justify-content: center; padding-left: 0; padding-right: 0; }
    .csl-logout-button { padding: 0; }
    .csl-dashboard-main { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 700px) {
    .csl-app-shell { display: block; }
    .csl-sidebar { position: relative; width: 100%; height: auto; padding: 13px 15px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; }
    .csl-sidebar-brand { min-height: 0; padding: 0; border: 0; }
    .csl-sidebar-logo { width: 41px; height: 41px; flex-basis: 41px; }
    .csl-sidebar-nav { display: flex; overflow-x: auto; margin: 0; gap: 5px; scrollbar-width: none; }
    .csl-sidebar-nav::-webkit-scrollbar { display: none; }
    .csl-sidebar-nav a { flex: 0 0 43px; min-height: 42px; }
    .csl-sidebar-nav a.is-active::before { display: none; }
    .csl-sidebar-user { display: none; }
    .csl-logout-button { width: 41px; min-height: 41px; margin: 0; }
    .csl-dashboard-main { padding: 22px 15px 38px; }
    .csl-current-date { display: none; }
    .csl-topbar { margin-bottom: 18px; }
    .csl-welcome-card, .csl-package-hero { padding: 27px 23px; }
    .csl-welcome-mark, .csl-package-badge { display: none; }
    .csl-metric-grid, .csl-detail-grid, .csl-form-grid { grid-template-columns: 1fr; }
    .csl-form-full { grid-column: auto; }
    .csl-chart { gap: 8px; padding-left: 15px; padding-right: 15px; }
    .csl-panel-heading { padding-left: 18px; padding-right: 18px; }
    .csl-dashboard-form, .csl-table-wrap, .csl-process-list { padding-left: 16px; padding-right: 16px; }
}

/* Version 1.2 dashboard refinements. */
.csl-sidebar .csl-logout-button { margin-top: auto; }
.csl-topbar {
    position: relative;
    min-height: 92px;
    padding: 18px 22px;
    background: #e9eff2;
    border: 1px solid #dde6ea;
    border-radius: 18px;
}
.csl-notification-wrap { position: relative; }
.csl-notification-button {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--csl-primary);
    background: #fff;
    border: 1px solid var(--csl-line);
    border-radius: 13px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(35,66,82,.07);
}
.csl-notification-button svg { font-size: 21px; }
.csl-notification-button b {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    color: var(--csl-primary-dark);
    background: var(--csl-secondary);
    border: 2px solid #e9eff2;
    border-radius: 999px;
    font-size: 13px;
}
.csl-notification-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 30;
    width: min(380px, calc(100vw - 34px));
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--csl-line);
    border-radius: 17px;
    box-shadow: 0 24px 55px rgba(20,52,69,.18);
}
.csl-notification-heading { padding: 17px 18px 13px; border-bottom: 1px solid #edf2f4; }
.csl-notification-heading strong, .csl-notification-heading span { display: block; }
.csl-notification-heading strong { color: var(--csl-ink); font-size: 14px; }
.csl-notification-heading span { margin-top: 3px; color: var(--csl-muted); font-size: 13px; }
.csl-notification-list { display: grid; max-height: 365px; overflow-y: auto; }
.csl-notification-list > a { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 11px; padding: 13px 16px; border-bottom: 1px solid #edf2f4; text-decoration: none; transition: .18s ease; }
.csl-notification-list > a:hover { background: #f5f9fa; }
.csl-notification-avatar img { width: 36px; height: 36px; border-radius: 11px; }
.csl-notification-list strong, .csl-notification-list small, .csl-notification-list em { display: block; }
.csl-notification-list strong { color: var(--csl-ink); font-size: 13px; }
.csl-notification-list small { margin-top: 2px; overflow: hidden; color: var(--csl-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.csl-notification-list em { margin-top: 5px; color: #78931f; font-size: 13px; font-style: normal; font-weight: 750; }
.csl-notification-footer { display: block; padding: 12px 16px; color: var(--csl-primary) !important; background: #f6f9fa; text-align: center; text-decoration: none; font-size: 13px; font-weight: 800; }
.csl-notification-empty { padding: 28px 18px; color: var(--csl-muted); text-align: center; font-size: 13px; }

/* Framed member directory with clearer row separation. */
.csl-table-wrap {
    margin: 0 20px 20px;
    padding: 0;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #dce6eb;
    border-radius: 15px;
}
.csl-members-table { border-collapse: separate; border-spacing: 0; }
.csl-members-table th { border-bottom: 1px solid #dce6eb; }
.csl-members-table th:first-child { border-radius: 14px 0 0 0; }
.csl-members-table th:last-child { border-radius: 0 14px 0 0; }
.csl-members-table td { background: #fff; border-bottom: 1px solid #e8eef1; }
.csl-members-table td + td { border-left: 1px solid #f0f4f5; }
.csl-members-table tbody tr { transition: background .18s ease, box-shadow .18s ease; }
.csl-members-table tbody tr:hover td { background: #f8fbfc; }
.csl-members-table tbody tr.is-highlighted td { background: #f3f9df; border-bottom-color: #d8e9a2; }
.csl-members-table tbody tr:last-child td:first-child { border-radius: 0 0 0 14px; }
.csl-members-table tbody tr:last-child td:last-child { border-radius: 0 0 14px 0; }

/* My Account dashboard. */
.csl-account-shell .csl-sidebar-logo { color: #fff; background: transparent; border: 2px solid rgba(255,255,255,.75); }
.csl-account-shell .csl-sidebar-logo span { font-size: 13px; letter-spacing: .08em; }
.csl-account-topbar { margin-bottom: 20px; }
.csl-account-identity { text-align: right; }
.csl-account-identity span, .csl-account-identity small { display: block; }
.csl-account-identity span { color: var(--csl-ink); font-size: 17px; font-weight: 800; }
.csl-account-identity small { margin-top: 3px; color: var(--csl-muted); font-size: 13px; }
.csl-account-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 190px;
    margin-bottom: 20px;
    padding: 31px 35px;
    color: #fff;
    background: linear-gradient(120deg, var(--csl-primary), #246e92);
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(22,75,104,.14);
}
.csl-account-hero::after { content: ""; position: absolute; right: -20px; bottom: -70px; width: 160px; height: 237px; background: url("../images/swoosh-lime.png") center / contain no-repeat; opacity: .16; pointer-events: none; }
.csl-account-hero > div:first-child { position: relative; z-index: 1; }
.csl-account-hero span { color: var(--csl-secondary); font-size: 13px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.csl-account-hero h2 { margin: 8px 0 9px; color: #fff; font-size: clamp(30px, 4vw, 45px); letter-spacing: -.04em; }
.csl-account-hero p { margin: 0; color: rgba(255,255,255,.7); font-size: 13px; }
.csl-account-hero-avatar { position: relative; z-index: 1; flex: 0 0 94px; width: 94px; height: 94px; padding: 4px; background: var(--csl-secondary); border-radius: 27px; transform: rotate(5deg); }
.csl-account-hero-avatar img { width: 100%; height: 100%; border-radius: 23px; transform: rotate(-5deg); }
.csl-account-metric-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.csl-account-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); gap: 18px; }
.csl-account-summary-card, .csl-account-links-card { overflow: hidden; }
.csl-account-status-line { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 13px; margin: 0 20px 20px; padding: 17px; background: #f7fafb; border: 1px solid #e6edef; border-radius: 14px; }
.csl-account-status-line strong, .csl-account-status-line small { display: block; }
.csl-account-status-line strong { color: var(--csl-ink); font-size: 13px; }
.csl-account-status-line small { margin-top: 4px; color: var(--csl-muted); font-size: 13px; }
.csl-account-status-line > b { padding: 6px 9px; border-radius: 999px; font-size: 13px; }
.csl-account-status-line > b.is-good { color: #47710c; background: #eaf6c9; }
.csl-account-status-line > b.is-muted { color: #7b858d; background: #e9eef1; }
.csl-account-quick-links { display: grid; gap: 10px; padding: 0 20px 20px; }
.csl-account-quick-links > a { display: grid; grid-template-columns: 39px minmax(0,1fr) 20px; align-items: center; gap: 11px; padding: 14px; color: var(--csl-ink); background: #f7fafb; border: 1px solid #e6edef; border-radius: 13px; text-decoration: none; transition: .18s ease; }
.csl-account-quick-links > a:hover { border-color: #cadb87; background: #f5f9e8; transform: translateY(-1px); }
.csl-account-quick-links > a > svg:first-child { width: 39px; height: 39px; padding: 10px; color: var(--csl-primary); background: rgba(188,225,83,.3); border-radius: 11px; }
.csl-account-quick-links > a > svg:last-child { color: var(--csl-primary); font-size: 18px; }
.csl-account-quick-links strong, .csl-account-quick-links small { display: block; }
.csl-account-quick-links strong { font-size: 13px; }
.csl-account-quick-links small { margin-top: 3px; color: var(--csl-muted); font-size: 13px; }

@media (max-width: 1180px) {
    .csl-account-metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .csl-account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .csl-topbar { min-height: 78px; padding: 14px 15px; }
    .csl-account-identity { display: none; }
    .csl-notification-menu { position: fixed; top: 82px; right: 15px; }
    .csl-table-wrap { margin-left: 16px; margin-right: 16px; }
    .csl-account-hero { padding: 25px 23px; }
    .csl-account-hero-avatar { display: none; }
    .csl-account-metric-grid { grid-template-columns: 1fr; }
}

/* Version 1.3 member account and WooCommerce Subscriptions integration. */
.csl-dashboard-notice.is-error {
    color: #9f2525;
    background: #fff0f0;
    border-color: #efc4c4;
}
.csl-dashboard-notice.is-error svg { color: #c93636; }
.csl-account-metric-grid .csl-metric-card strong {
    overflow-wrap: anywhere;
}
.csl-membership-detail-grid {
    grid-template-columns: repeat(4, minmax(0,1fr));
    margin-bottom: 18px;
}
.csl-subscription-panel,
.csl-account-table-panel,
.csl-payment-panel,
.csl-profile-image-panel,
.csl-empty-membership {
    margin-bottom: 18px;
}
.csl-subscription-items {
    display: grid;
    gap: 10px;
    padding: 0 20px 18px;
}
.csl-subscription-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    background: #f7fafb;
    border: 1px solid #e2eaee;
    border-radius: 14px;
}
.csl-subscription-item strong,
.csl-subscription-item small {
    display: block;
}
.csl-subscription-item strong {
    color: var(--csl-ink);
    font-size: 13px;
}
.csl-subscription-item small {
    margin-top: 5px;
    color: var(--csl-muted);
    font-size: 13px;
}
.csl-subscription-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px 20px;
}
.csl-action-button,
.csl-table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    padding: 10px 14px;
    color: #fff !important;
    background: var(--csl-primary) !important;
    border: 1px solid var(--csl-primary);
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: .18s ease;
}
.csl-action-button:hover,
.csl-table-action:hover {
    color: var(--csl-primary-dark);
    background: var(--csl-secondary);
    border-color: var(--csl-secondary);
    transform: translateY(-1px);
}
.csl-action-button.is-secondary {
    color: var(--csl-primary);
    background: #fff;
    border-color: #cfdde3;
}
.csl-action-button.is-danger,
.csl-action-cancel {
    color: #a22828;
    background: #fff3f3;
    border-color: #e9bebe;
}
.csl-action-button.is-danger:hover,
.csl-action-cancel:hover {
    color: #fff;
    background: #b82f2f;
    border-color: #b82f2f;
}
.csl-action-renew,
.csl-action-renew-now,
.csl-action-resubscribe,
.csl-switch-plan {
    color: var(--csl-primary-dark);
    background: var(--csl-secondary);
    border-color: var(--csl-secondary);
}
.csl-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 20px;
}
.csl-empty-membership,
.csl-empty-state {
    padding: 42px 25px;
    text-align: center;
}
.csl-empty-membership h3,
.csl-empty-state h3 {
    margin: 13px 0 7px;
    color: var(--csl-ink);
}
.csl-empty-membership p,
.csl-empty-state p {
    margin: 0;
    color: var(--csl-muted);
    font-size: 13px;
}
.csl-empty-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    color: var(--csl-primary);
    background: rgba(188,225,83,.35);
    border-radius: 15px;
}
.csl-empty-icon svg { width: 25px; height: 25px; }
.csl-orders-table-wrap { margin-bottom: 20px; }
.csl-orders-table td,
.csl-orders-table th { white-space: nowrap; }
.csl-orders-table td:nth-child(4) { font-weight: 800; }
.csl-order-status {
    display: inline-flex;
    padding: 6px 9px;
    color: #456a12;
    background: #ebf5ce;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}
.csl-table-action {
    min-height: 32px;
    padding: 8px 11px;
}
.csl-account-two-column {
    display: grid;
    grid-template-columns: minmax(0,1.25fr) minmax(310px,.75fr);
    gap: 18px;
    align-items: start;
}
.csl-payment-summary {
    display: grid;
    grid-template-columns: 46px minmax(0,1fr);
    align-items: center;
    gap: 13px;
    margin: 0 20px 20px;
    padding: 17px;
    background: #f7fafb;
    border: 1px solid #e6edef;
    border-radius: 14px;
}
.csl-payment-summary strong,
.csl-payment-summary small { display: block; }
.csl-payment-summary strong { color: var(--csl-ink); font-size: 13px; }
.csl-payment-summary small { margin-top: 4px; color: var(--csl-muted); font-size: 13px; }
.csl-profile-layout {
    grid-template-columns: minmax(290px,.72fr) minmax(0,1.28fr);
}
.csl-avatar-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.csl-avatar-preview {
    width: 158px;
    height: 158px;
    margin: 2px auto 18px;
    padding: 5px;
    overflow: hidden;
    background: var(--csl-secondary);
    border-radius: 32px;
    box-shadow: 0 14px 35px rgba(22,75,104,.14);
}
.csl-avatar-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 27px;
}
.csl-file-upload {
    position: relative;
    width: 100%;
    display: flex !important;
    justify-content: center;
    margin: 0;
}
.csl-file-upload > span {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 15px;
    color: var(--csl-primary);
    background: #f4f8f9;
    border: 1px dashed #b9ccd4;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
.csl-file-upload svg { width: 17px; height: 17px; fill: currentColor; }
.csl-file-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.csl-upload-note {
    margin: 9px 0 15px;
    color: var(--csl-muted);
    font-size: 13px;
}
.csl-avatar-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}
.csl-avatar-actions .csl-primary-button,
.csl-avatar-actions .csl-action-button {
    margin: 0;
}
.csl-account-hero-avatar img,
.csl-top-avatar img {
    object-fit: cover;
}

@media (max-width: 1250px) {
    .csl-membership-detail-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .csl-account-two-column,
    .csl-profile-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .csl-membership-detail-grid { grid-template-columns: 1fr; }
    .csl-subscription-item { align-items: flex-start; flex-direction: column; }
    .csl-subscription-actions { flex-direction: column; }
    .csl-subscription-actions .csl-action-button { width: 100%; }
    .csl-avatar-actions { flex-direction: column; }
    .csl-avatar-actions > * { width: 100%; }
}
.csl-saved-methods {
    display: grid;
    gap: 9px;
    padding: 0 20px 18px;
}
.csl-saved-method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    background: #f7fafb;
    border: 1px solid #e6edef;
    border-radius: 12px;
}
.csl-saved-method strong,
.csl-saved-method small,
.csl-orders-table td small {
    display: block;
}
.csl-saved-method strong { color: var(--csl-ink); font-size: 13px; }
.csl-saved-method small,
.csl-orders-table td small { margin-top: 4px; color: var(--csl-muted); font-size: 13px; }
.csl-saved-method b {
    padding: 5px 8px;
    color: #456a12;
    background: #ebf5ce;
    border-radius: 999px;
    font-size: 13px;
}


/* Theme-hosted My Account page (Hello Elementor / Elementor Theme Builder). */
body.csl-theme-account-page #csl-my-account {
    width: 100%;
    min-height: 70vh;
    margin: 0;
    padding: 0;
    color: var(--csl-ink);
    background: var(--csl-bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.csl-theme-account-page #csl-my-account,
body.csl-theme-account-page #csl-my-account * { box-sizing: border-box; }
body.csl-theme-account-page #csl-my-account a { color: inherit; }
body.csl-theme-account-page #csl-my-account svg { width: 1em; height: 1em; display: block; fill: currentColor; }
body.csl-theme-account-page #csl-my-account .csl-app-shell { min-height: 75vh; }
body.csl-theme-account-page #csl-my-account .csl-dashboard-empty { min-height: 62vh; }
body.csl-theme-account-page #csl-my-account .csl-sidebar { top: 0; }

/* WooCommerce account-creation / reset-password screen. */
.csl-password-setup-shell {
    width: 100%;
    min-height: 68vh;
    display: grid;
    place-items: center;
    padding: clamp(34px, 6vw, 86px) 20px;
    background: var(--csl-bg);
}
.csl-password-setup-card {
    width: min(720px, 100%);
    padding: clamp(28px, 5vw, 48px);
    background: #fff;
    border: 1px solid var(--csl-line);
    border-radius: 22px;
    box-shadow: 0 22px 55px rgba(35,66,82,.10);
}
.csl-password-setup-heading { margin-bottom: 26px; }
.csl-password-setup-heading > span {
    display: block;
    margin-bottom: 8px;
    color: var(--csl-primary);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.csl-password-setup-heading h1 {
    margin: 0 0 10px;
    color: var(--csl-ink);
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.05;
    letter-spacing: -.035em;
}
.csl-password-setup-heading p {
    margin: 0;
    color: var(--csl-muted);
    font-size: 14px;
    line-height: 1.65;
}
.csl-password-setup-form .woocommerce-ResetPassword > p:first-child:not(.form-row) { display: none; }
.csl-password-setup-form .woocommerce-ResetPassword,
.csl-password-setup-form .lost_reset_password { margin: 0; }
.csl-password-setup-form .form-row { margin: 0 0 18px; padding: 0; }
.csl-password-setup-form .form-row-first,
.csl-password-setup-form .form-row-last { width: calc(50% - 9px); }
.csl-password-setup-form .form-row-first { float: left; }
.csl-password-setup-form .form-row-last { float: right; }
.csl-password-setup-form .form-row-wide,
.csl-password-setup-form .clear { clear: both; }
.csl-password-setup-form label {
    display: block;
    margin: 0 0 8px;
    color: var(--csl-ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}
.csl-password-setup-form .required { color: #c43c3c; }
.csl-password-setup-form input.input-text,
.csl-password-setup-form input[type="text"],
.csl-password-setup-form input[type="email"],
.csl-password-setup-form input[type="password"] {
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 0 15px;
    color: var(--csl-ink);
    background: #fbfdfe;
    border: 1px solid #d8e3e8;
    border-radius: 12px;
    box-shadow: none;
    outline: none;
    font: inherit;
    font-size: 14px;
}
.csl-password-setup-form input:focus {
    border-color: var(--csl-primary);
    box-shadow: 0 0 0 4px rgba(22,75,104,.08);
}
.csl-password-setup-form .show-password-input { top: auto; right: 14px; bottom: 15px; }
.csl-password-setup-form button.button,
.csl-password-setup-form .woocommerce-Button {
    min-height: 52px;
    margin: 4px 0 0;
    padding: 0 24px;
    color: #fff;
    background: var(--csl-primary);
    border: 1px solid var(--csl-primary);
    border-radius: 11px;
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
}
.csl-password-setup-form button.button:hover,
.csl-password-setup-form button.button:focus,
.csl-password-setup-form .woocommerce-Button:hover,
.csl-password-setup-form .woocommerce-Button:focus {
    color: #fff;
    background: var(--csl-primary-dark);
    border-color: var(--csl-primary-dark);
}
.csl-password-setup-form .woocommerce-password-strength { margin-top: 8px; border-radius: 8px; }
.csl-password-setup-form .woocommerce-password-hint { display: block; margin-top: 7px; color: var(--csl-muted); font-size: 13px; line-height: 1.5; }
.csl-password-setup-form .woocommerce-error,
.csl-password-setup-form .woocommerce-message,
.csl-password-setup-form .woocommerce-info {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--csl-line);
    border-radius: 11px;
    background: #f7fafb;
    color: var(--csl-ink);
    list-style: none;
}
@media (max-width: 620px) {
    .csl-password-setup-form .form-row-first,
    .csl-password-setup-form .form-row-last { width: 100%; float: none; }
    .csl-password-setup-card { padding: 26px 20px; border-radius: 17px; }
}

/* My Account palette only; shared company dashboard and login keep their colors. */
body.csl-my-account-page,
.csl-app-shell.csl-account-shell {
    --csl-primary: #0A0E13;
    --csl-primary-dark: #0A0E13;
    --csl-ink: #0A0E13;
    --csl-muted: #737373;
    --csl-line: #e8e8e8;
    --csl-bg: #f5f5f5;
}
.csl-account-shell .csl-sidebar,
.csl-account-shell .csl-account-hero,
.csl-account-shell .csl-welcome-card,
.csl-account-shell .csl-package-hero {
    background: #0A0E13;
}
.csl-account-shell .csl-sidebar { box-shadow: 18px 0 45px rgba(10,14,19,.12); }
.csl-account-shell .csl-account-hero,
.csl-account-shell .csl-welcome-card,
.csl-account-shell .csl-package-hero { box-shadow: 0 18px 38px rgba(10,14,19,.14); }
.csl-account-shell .csl-members-table td { color: #0A0E13; }
.csl-account-shell .csl-form-grid input:focus,
.csl-account-shell .csl-form-grid select:focus,
.csl-account-shell .csl-form-grid textarea:focus { box-shadow: 0 0 0 4px rgba(10,14,19,.09); }
/* ---------- Institution dashboard (1.4.0) ---------- */
.csl-filter-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.csl-filter-pills a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; color: var(--csl-primary) !important; background: #eef4f6; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 800; }
.csl-filter-pills a b { min-width: 18px; padding: 1px 6px; color: var(--csl-primary); background: #fff; border-radius: 999px; font-size: 13px; text-align: center; }
.csl-filter-pills a.is-active { color: var(--csl-primary-dark) !important; background: var(--csl-secondary); }

/* ---------- Institution branding (1.6.0) ----------
 * The institution dashboard and its members' My Account use the same institution
 * colours, logo box and white logo background (inline --csl-* vars come from CSL_Branding).
 */
.csl-app-shell.csl-inst-branded,
.csl-app-shell.csl-account-shell.csl-inst-branded {
    --csl-ink: #173043;
    --csl-muted: #6f7f8a;
    --csl-line: #e4ebef;
    --csl-bg: #f2f7f8;
}
.csl-inst-branded .csl-sidebar,
.csl-account-shell.csl-inst-branded .csl-sidebar {
    background: linear-gradient(160deg, var(--csl-primary) 0%, var(--csl-primary-dark) 100%);
    box-shadow: 18px 0 45px rgba(14, 53, 75, .12);
}
.csl-inst-branded .csl-welcome-card,
.csl-inst-branded .csl-package-hero,
.csl-inst-branded .csl-account-hero,
.csl-account-shell.csl-inst-branded .csl-welcome-card,
.csl-account-shell.csl-inst-branded .csl-package-hero,
.csl-account-shell.csl-inst-branded .csl-account-hero {
    background: linear-gradient(120deg, var(--csl-primary) 0%, var(--csl-primary-light, var(--csl-primary)) 100%);
    box-shadow: 0 18px 38px rgba(22, 75, 104, .14);
}
.csl-account-shell.csl-inst-branded .csl-members-table td { color: var(--csl-ink); }
.csl-account-shell.csl-inst-branded .csl-form-grid input:focus,
.csl-account-shell.csl-inst-branded .csl-form-grid select:focus,
.csl-account-shell.csl-inst-branded .csl-form-grid textarea:focus { box-shadow: 0 0 0 4px rgba(22, 75, 104, .09); }

/* One logo box everywhere: accent background for initials, white behind an uploaded logo. */
.csl-inst-branded .csl-sidebar-logo,
.csl-account-shell.csl-inst-branded .csl-sidebar-logo {
    color: var(--csl-on-secondary, var(--csl-primary));
    background: var(--csl-secondary);
    border: 0;
}
.csl-inst-branded .csl-sidebar-logo span,
.csl-account-shell.csl-inst-branded .csl-sidebar-logo span { font-size: 15px; letter-spacing: .5px; }
.csl-inst-branded .csl-sidebar-logo.has-image,
.csl-account-shell.csl-inst-branded .csl-sidebar-logo.has-image { background: #fff; }
.csl-inst-branded .csl-sidebar-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; background: #fff; }
.csl-inst-branded .csl-sidebar-brand strong { max-width: 160px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
