/* ==========================================================================
   CORPHEA Insights (CI) — click-dummy design system
   Ported from Figma "CORPHEA Click Dummy" › "Clickdummy CI" (node 1:4043).
   Desktop analytics dashboard. Tokens map 1:1 to the Figma variable collection.
   ========================================================================== */

:root {
    /* Brand */
    --ci-navy: #253264;          /* brand-corphea / primary buttons / active nav */
    --ci-navy-hover: #1c274f;
    --ci-navy-ink: #002b5b;      /* text-brand-primary — logo + heading accents */
    --ci-lapis: #0056a4;
    --ci-info: #3b82f6;          /* links */

    /* Surfaces */
    --ci-page: #f4f6f8;
    --ci-surface: #f8fafc;
    --ci-card: #ffffff;
    --ci-support: #f0f1f9;       /* lavender table header / support card */
    --ci-overlay: rgba(0, 0, 0, .2);

    /* Text */
    --ci-text: #111827;
    --ci-text-secondary: #1f2937;
    --ci-text-neutral: #374151;
    --ci-text-muted: #6d7280;
    --ci-text-faint: #9ca3af;
    --ci-text-inverse: #f8fafc;

    /* Lines & inputs */
    --ci-border: #e5e7eb;
    --ci-border-strong: #d2d5da;
    --ci-input-bg: #f8fafc;

    /* Chips / status */
    --ci-chip-lav-bg: #e8ebf7;
    --ci-chip-lav-text: #253264;
    --ci-chip-ok-bg: #d6ece2;
    --ci-chip-ok-text: #0c5a21;
    --ci-chip-new-bg: #e5f1cc;
    --ci-chip-new-text: #3f6212;

    /* Chart colours (Figma "Chart Colors") */
    --ci-red: #ad0017;
    --ci-red-2: #d82b07;
    --ci-amber: #eab308;
    --ci-amber-2: #d4b45c;
    --ci-yellow: #fde047;
    --ci-green: #0c5a21;
    --ci-green-2: #28615d;

    /* Radius */
    --ci-radius-xs: 8px;
    --ci-radius-sm: 12px;
    --ci-radius-md: 16px;
    --ci-radius-lg: 24px;
    --ci-radius-full: 100px;

    /* Spacing scale */
    --ci-space-1: 4px;
    --ci-space-2: 8px;
    --ci-space-3: 12px;
    --ci-space-4: 16px;
    --ci-space-5: 24px;
    --ci-space-6: 32px;
    --ci-space-7: 40px;
    --ci-space-8: 48px;
    --ci-space-9: 56px;

    /* Shadows */
    --ci-shadow-card: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
    --ci-shadow-pop: 0 2px 24px rgba(12, 12, 13, .10);

    --ci-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --ci-container: 1320px;
}

body.ci-body {
    margin: 0;
    font-family: var(--ci-font);
    color: var(--ci-text);
    background: var(--ci-page);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }

/* --------------------------------------------------------------------------
   App shell
   -------------------------------------------------------------------------- */

.ci-app {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--ci-page);
}

.ci-container {
    width: 100%;
    max-width: var(--ci-container);
    margin: 0 auto;
    padding: 0 var(--ci-space-5);
}

.ci-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--ci-card);
    border-bottom: 1px solid var(--ci-border);
}

.ci-topbar__inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ci-space-5);
}

.ci-topbar__tools {
    display: flex;
    align-items: center;
    gap: var(--ci-space-3);
}

.ci-subbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--ci-space-5) 0 var(--ci-space-2);
}

.ci-main {
    flex: 1;
    padding-bottom: var(--ci-space-9);
}

.ci-footer {
    border-top: 1px solid var(--ci-border);
    background: var(--ci-card);
}

.ci-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ci-space-4);
    padding: var(--ci-space-5) 0;
    font-size: 13px;
    color: var(--ci-text-muted);
}

.ci-footer__links {
    display: flex;
    gap: var(--ci-space-6);
}

/* --------------------------------------------------------------------------
   Logo lockup
   -------------------------------------------------------------------------- */

.ci-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--ci-space-3);
}

.ci-logo__mark {
    width: 44px;
    height: 44px;
    border-radius: var(--ci-radius-full);
    background: #fff;
    border: 1px solid var(--ci-border);
    box-shadow: 0 3px 10px rgba(15, 40, 55, .10);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.ci-logo__mark img { width: 28px; height: 28px; }

.ci-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.ci-logo__name { font-size: 17px; font-weight: 800; letter-spacing: .06em; color: var(--ci-navy-ink); }
.ci-logo__sub { font-size: 14px; font-weight: 400; letter-spacing: .18em; color: var(--ci-navy-ink); }

.ci-logo--lg .ci-logo__mark { width: 72px; height: 72px; }
.ci-logo--lg .ci-logo__mark img { width: 46px; height: 46px; }
.ci-logo--lg .ci-logo__name { font-size: 20px; }
.ci-logo--lg .ci-logo__sub { font-size: 16px; }

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.ci-h1 { font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -.02em; margin: 0; color: var(--ci-text); }
.ci-h2 { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -.015em; margin: 0; color: var(--ci-text); }
.ci-h3 { font-size: 22px; line-height: 32px; font-weight: 600; letter-spacing: -.015em; margin: 0; color: var(--ci-text); }
.ci-subheading { font-size: 18px; line-height: 24px; font-weight: 600; margin: 0; color: var(--ci-text); }
.ci-body { font-size: 16px; line-height: 24px; font-weight: 400; margin: 0; color: var(--ci-text-neutral); }
.ci-body--sm { font-size: 14px; line-height: 22px; }
.ci-caption { font-size: 12px; line-height: 16px; margin: 0; color: var(--ci-text-muted); }
.ci-muted { color: var(--ci-text-muted); }

.ci-link {
    color: var(--ci-info);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 14px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}
.ci-link:hover { color: var(--ci-lapis); }

.ci-footer__links a { color: var(--ci-navy-ink); text-decoration: none; }
.ci-footer__links a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Buttons / inputs
   -------------------------------------------------------------------------- */

.ci-btn {
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ci-space-2);
    min-height: 44px;
    padding: 0 var(--ci-space-5);
    border: 1px solid transparent;
    border-radius: var(--ci-radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}

.ci-btn--primary { background: var(--ci-navy); color: var(--ci-text-inverse); }
.ci-btn--primary:hover { background: var(--ci-navy-hover); }

.ci-btn--block { width: 100%; min-height: 56px; font-size: 16px; }

.ci-btn--outline {
    background: var(--ci-card);
    color: var(--ci-navy);
    border-color: var(--ci-navy);
}
.ci-btn--outline:hover { background: var(--ci-support); }

.ci-btn--text {
    background: none;
    border: 0;
    color: var(--ci-text-secondary);
    font-weight: 600;
    min-height: 0;
    padding: var(--ci-space-2);
}
.ci-btn--text:hover { color: var(--ci-navy); }

.ci-btn__icon { width: 18px; height: 18px; flex-shrink: 0; }

.ci-field { display: flex; flex-direction: column; gap: var(--ci-space-2); }
.ci-label { font-size: 14px; font-weight: 500; color: var(--ci-text); }

.ci-input {
    font-family: inherit;
    height: 48px;
    padding: 12px 16px;
    background: var(--ci-input-bg);
    border: 1px solid var(--ci-border-strong);
    border-radius: var(--ci-radius-xs);
    font-size: 15px;
    color: var(--ci-text-neutral);
    width: 100%;
}
.ci-input:focus { outline: 2px solid var(--ci-navy); outline-offset: -1px; }

.ci-back {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    border-radius: var(--ci-radius-full);
    color: var(--ci-text);
    cursor: pointer;
}
.ci-back:hover { background: rgba(17, 24, 39, .06); }

.ci-iconbtn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    border-radius: var(--ci-radius-xs);
    color: var(--ci-text-muted);
    cursor: pointer;
}
.ci-iconbtn:hover { background: rgba(17, 24, 39, .06); color: var(--ci-text); }
.ci-iconbtn svg { width: 18px; height: 18px; }

.ci-search {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.ci-search input {
    font-family: inherit;
    width: 320px;
    max-width: 42vw;
    height: 40px;
    padding: 0 36px 0 12px;
    border: 1px solid var(--ci-border-strong);
    border-radius: var(--ci-radius-xs);
    background: var(--ci-card);
    font-size: 14px;
    color: var(--ci-text-neutral);
}
.ci-search svg {
    position: absolute;
    right: 12px;
    width: 16px;
    height: 16px;
    color: var(--ci-text-faint);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Auth (login)
   -------------------------------------------------------------------------- */

.ci-auth {
    flex: 1;
    display: grid;
    place-items: center;
    padding: var(--ci-space-8) var(--ci-space-5);
}

.ci-auth__card {
    width: 100%;
    max-width: 640px;
    background: var(--ci-surface);
    border-radius: var(--ci-radius-lg);
    box-shadow: var(--ci-shadow-pop);
    padding: var(--ci-space-8) var(--ci-space-9);
    display: flex;
    flex-direction: column;
    gap: var(--ci-space-6);
}

.ci-auth__logo { display: flex; justify-content: center; padding: var(--ci-space-3) 0 var(--ci-space-5); }
.ci-auth__fields { display: flex; flex-direction: column; gap: var(--ci-space-5); }
.ci-auth__cta { display: flex; flex-direction: column; align-items: center; gap: var(--ci-space-3); margin-top: var(--ci-space-4); }

/* --------------------------------------------------------------------------
   Page layout with left side menu
   -------------------------------------------------------------------------- */

.ci-layout {
    display: grid;
    grid-template-columns: 232px 1fr;
    gap: var(--ci-space-8);
    align-items: start;
    padding-top: var(--ci-space-4);
}
.ci-layout--full { display: block; padding-top: var(--ci-space-4); }

.ci-sidemenu {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: var(--ci-space-1);
    font-size: 14px;
}
.ci-sidemenu__title {
    font-size: 13px;
    color: var(--ci-text-muted);
    padding-bottom: var(--ci-space-2);
    margin-bottom: var(--ci-space-2);
    border-bottom: 1px solid var(--ci-border);
}
.ci-sidemenu__link {
    display: block;
    padding: 10px 12px;
    border-radius: var(--ci-radius-xs);
    color: var(--ci-text-muted);
    text-decoration: none;
    line-height: 20px;
    background: none;
    border: 0;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}
.ci-sidemenu__link:hover { background: var(--ci-support); color: var(--ci-text); }
.ci-sidemenu__link--active { background: var(--ci-navy); color: #fff; font-weight: 600; }
.ci-sidemenu__link--active:hover { background: var(--ci-navy); color: #fff; }
.ci-sidemenu__link--strong { color: var(--ci-text); font-weight: 600; }
.ci-sidemenu__spacer { height: var(--ci-space-6); }

.ci-main-col { min-width: 0; }

/* --------------------------------------------------------------------------
   Sections / cards / tables
   -------------------------------------------------------------------------- */

.ci-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--ci-space-4); }
.ci-intro { margin-top: var(--ci-space-4); max-width: 820px; }

.ci-section { margin-top: var(--ci-space-7); }
.ci-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ci-space-4);
    margin-bottom: var(--ci-space-4);
}
.ci-section__title { font-size: 22px; line-height: 32px; font-weight: 600; letter-spacing: -.01em; margin: 0; color: var(--ci-text); display: flex; align-items: center; gap: var(--ci-space-3); }
.ci-section__tools { display: flex; align-items: center; gap: var(--ci-space-1); color: var(--ci-text-muted); }
.ci-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ci-text-muted); }

.ci-card {
    background: var(--ci-card);
    border: 1px solid var(--ci-border);
    border-radius: var(--ci-radius-md);
    padding: var(--ci-space-5);
    box-shadow: var(--ci-shadow-card);
}

.ci-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ci-space-5); }
.ci-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ci-space-5); }

.ci-table__wrap {
    border: 1px solid var(--ci-border);
    border-radius: var(--ci-radius-sm);
    overflow: hidden;
    background: var(--ci-card);
}
.ci-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ci-table thead th {
    background: var(--ci-support);
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ci-text-secondary);
    white-space: nowrap;
}
.ci-table tbody td {
    padding: 14px 16px;
    border-top: 1px solid var(--ci-border);
    color: var(--ci-text-neutral);
    vertical-align: middle;
}
.ci-table tbody tr:first-child td { border-top: 0; }
.ci-table td strong { color: var(--ci-text); font-weight: 600; }
.ci-table__actions { white-space: nowrap; text-align: right; width: 1%; }
.ci-table__actions .ci-iconbtn { width: 28px; height: 28px; }
.ci-table__actions .ci-iconbtn svg { width: 15px; height: 15px; }

.ci-pill {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: var(--ci-radius-xs);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.ci-pill--ok { background: var(--ci-chip-ok-bg); color: var(--ci-chip-ok-text); }
.ci-pill--new { background: var(--ci-chip-new-bg); color: var(--ci-chip-new-text); }
.ci-pill--wait { background: var(--ci-chip-lav-bg); color: var(--ci-chip-lav-text); }

/* --------------------------------------------------------------------------
   KPI cards (Kennzahlen) — stacked bar + legend
   -------------------------------------------------------------------------- */

.ci-kpi__title { font-size: 15px; font-weight: 600; color: var(--ci-text); margin: 0 0 var(--ci-space-4); }
.ci-stackbar {
    display: flex;
    height: 14px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--ci-space-4);
    background: var(--ci-border);
}
.ci-stackbar span { display: block; height: 100%; }

.ci-legend { display: flex; flex-direction: column; gap: var(--ci-space-2); }
.ci-legend__row { display: flex; align-items: center; gap: var(--ci-space-2); font-size: 12px; color: var(--ci-text-neutral); }
.ci-legend__dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.ci-legend__val { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ci-text-muted); }

/* --------------------------------------------------------------------------
   Calendar (summary left rail)
   -------------------------------------------------------------------------- */

.ci-rail { display: flex; flex-direction: column; gap: var(--ci-space-6); font-size: 14px; }
.ci-rail__panel { display: flex; flex-direction: column; gap: var(--ci-space-2); }
.ci-rail__title {
    font-size: 13px;
    color: var(--ci-text-muted);
    padding-bottom: var(--ci-space-2);
    border-bottom: 1px solid var(--ci-border);
    display: flex; align-items: center; justify-content: space-between;
}
.ci-rail__list { display: flex; flex-direction: column; }
.ci-rail__item {
    display: flex; align-items: center; justify-content: space-between; gap: var(--ci-space-2);
    padding: 10px 0;
    border-bottom: 1px solid var(--ci-border);
    color: var(--ci-text-neutral);
    font-size: 13px;
}
.ci-rail__item:last-child { border-bottom: 0; }
.ci-rail__muted { color: var(--ci-text-faint); }

.ci-cal__head { display: flex; align-items: center; justify-content: space-between; padding: var(--ci-space-2) 0; }
.ci-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.ci-cal__dow { font-size: 11px; color: var(--ci-text-faint); padding: 4px 0; }
.ci-cal__day {
    font-size: 12px;
    padding: 6px 0;
    border-radius: var(--ci-radius-full);
    color: var(--ci-text-neutral);
}
.ci-cal__day--active { background: var(--ci-navy); color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   Monitor cards (overview psychische Gesundheit)
   -------------------------------------------------------------------------- */

.ci-monitor {
    display: flex;
    background: var(--ci-card);
    border: 1px solid var(--ci-border);
    border-radius: var(--ci-radius-md);
    overflow: hidden;
    box-shadow: var(--ci-shadow-card);
}
.ci-monitor + .ci-monitor { margin-top: var(--ci-space-4); }
.ci-monitor__accent { width: 6px; flex-shrink: 0; background: var(--ci-amber); }
.ci-monitor__accent--amber { background: var(--ci-amber); }
.ci-monitor__accent--red { background: var(--ci-red); }
.ci-monitor__accent--green { background: var(--ci-green); }
.ci-monitor__inner {
    flex: 1;
    padding: var(--ci-space-5);
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--ci-space-5);
    align-items: center;
}
.ci-monitor__body { display: flex; flex-direction: column; gap: var(--ci-space-3); }
.ci-monitor__head { display: flex; align-items: center; gap: var(--ci-space-3); }
.ci-monitor__icon {
    width: 32px; height: 32px; border-radius: var(--ci-radius-full);
    background: var(--ci-navy); color: #fff;
    display: grid; place-items: center; flex-shrink: 0;
}
.ci-monitor__icon svg { width: 18px; height: 18px; }
.ci-monitor__title { font-size: 18px; font-weight: 600; color: var(--ci-text); }
.ci-monitor__desc { font-size: 14px; line-height: 22px; color: var(--ci-text-muted); margin: 0; }
.ci-monitor__actions { display: flex; gap: var(--ci-space-1); }
.ci-monitor__chart { min-width: 0; }
.ci-monitor--locked { filter: blur(3px); opacity: .55; pointer-events: none; user-select: none; }

/* --------------------------------------------------------------------------
   Tabs + toggle group
   -------------------------------------------------------------------------- */

.ci-tabs { display: flex; gap: var(--ci-space-6); border-bottom: 1px solid var(--ci-border); margin-bottom: var(--ci-space-6); }
.ci-tab {
    background: none; border: 0; border-bottom: 2px solid transparent;
    padding: 12px 2px; margin-bottom: -1px;
    font-family: inherit; font-size: 15px; font-weight: 600;
    color: var(--ci-text-muted); cursor: pointer;
}
.ci-tab:hover { color: var(--ci-text); }
.ci-tab--active { color: var(--ci-navy); border-bottom-color: var(--ci-navy); }
.ci-tab--disabled { color: var(--ci-text-faint); pointer-events: none; }

.ci-toggle { display: inline-flex; gap: var(--ci-space-2); }
.ci-toggle__btn {
    padding: 8px 16px; border: 1px solid var(--ci-border-strong);
    border-radius: 10px; background: var(--ci-card);
    font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ci-text-secondary);
    cursor: pointer;
}
.ci-toggle__btn--active { background: var(--ci-navy); border-color: var(--ci-navy); color: #fff; }

.ci-filterbar { display: flex; align-items: center; justify-content: space-between; gap: var(--ci-space-4); margin: var(--ci-space-5) 0; }
.ci-select {
    height: 36px; padding: 0 12px; border: 1px solid var(--ci-border-strong);
    border-radius: var(--ci-radius-xs); background: var(--ci-card);
    font-family: inherit; font-size: 13px; color: var(--ci-text-neutral);
}

.ci-riskrow { display: flex; align-items: center; gap: var(--ci-space-2); font-size: 14px; font-weight: 600; color: var(--ci-text-secondary); margin-bottom: var(--ci-space-4); }
.ci-riskrow__dot { width: 10px; height: 10px; border-radius: var(--ci-radius-full); background: var(--ci-amber); }

.ci-yearlegend { display: flex; flex-direction: column; gap: 6px; margin-top: var(--ci-space-4); }
.ci-yearlegend__row { display: flex; align-items: center; gap: var(--ci-space-2); font-size: 13px; color: var(--ci-text-neutral); }
.ci-yearlegend__sw { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Charts (inline SVG)
   -------------------------------------------------------------------------- */

.ci-chart { display: block; width: 100%; overflow: visible; }
.ci-chartcard { display: flex; flex-direction: column; gap: var(--ci-space-3); }
.ci-chartcard__title { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--ci-text); }
.ci-chartcard__legend { display: flex; flex-direction: column; gap: 4px; }
.ci-donutwrap { display: flex; align-items: center; gap: var(--ci-space-5); }

/* --------------------------------------------------------------------------
   Marketplace
   -------------------------------------------------------------------------- */

.ci-mkt-toolbar {
    display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap;
    gap: var(--ci-space-5); margin: var(--ci-space-5) 0;
    font-size: 13px; color: var(--ci-text-muted);
}
.ci-mkt-toolbar__item { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ci-mkt-toolbar__item svg { width: 16px; height: 16px; }

.ci-mkt-cat { margin-top: var(--ci-space-7); }
.ci-mkt-cat__title { font-size: 18px; font-weight: 700; color: var(--ci-text); margin: 0 0 var(--ci-space-4); }
.ci-mkt-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ci-space-5); }

.ci-mkt-card {
    border: 1px solid var(--ci-border);
    border-radius: var(--ci-radius-md);
    overflow: hidden;
    background: var(--ci-card);
    box-shadow: var(--ci-shadow-card);
    display: flex;
    flex-direction: column;
}
.ci-mkt-card__art {
    aspect-ratio: 3 / 2;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #b9c0f4 0%, #8a92e8 45%, #6d78dd 100%);
    color: rgba(255, 255, 255, .92);
}
.ci-mkt-card__art svg { width: 46px; height: 46px; }
.ci-mkt-card__art--v2 { background: linear-gradient(140deg, #c3b6ef 0%, #9b8ae4 50%, #7d6bd8 100%); }
.ci-mkt-card__art--v3 { background: linear-gradient(140deg, #a9c7f2 0%, #7f9fe6 50%, #6c83db 100%); }
.ci-mkt-card__body { padding: var(--ci-space-4); display: flex; flex-direction: column; gap: 4px; }
.ci-mkt-card__title { font-size: 15px; font-weight: 600; color: var(--ci-text); }
.ci-mkt-card__by { font-size: 12px; color: var(--ci-text-muted); }
.ci-mkt-card__desc { font-size: 13px; line-height: 20px; color: var(--ci-text-muted); margin: var(--ci-space-2) 0 0; }
.ci-mkt-cat--locked .ci-mkt-row { filter: blur(4px); opacity: .5; pointer-events: none; user-select: none; }

/* --------------------------------------------------------------------------
   Responsive: collapse the desktop grid on narrow screens
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .ci-layout { grid-template-columns: 1fr; gap: var(--ci-space-6); }
    .ci-sidemenu { position: static; }
    .ci-monitor__inner { grid-template-columns: 1fr; }
    .ci-grid-2, .ci-grid-3, .ci-kpi-grid, .ci-mkt-row { grid-template-columns: 1fr; }
}

.ci-kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ci-space-5); }
