/* Custom CSS for IGNIFY Administration */

/* ============================================================================
 * Phase 4.5 Slice D.4 — Visual system tokens
 * ============================================================================
 *
 * Design tokens for the admin UI. New surfaces should consume these via
 * `var(--token-name)` instead of hardcoded values. Existing rules below
 * use hardcoded values; they continue to work and migrate opportunistically
 * to tokens as they're touched.
 *
 * Vocabulary
 * ----------
 *   --color-*        Raw palette swatches (warm teal primary + warm-stone
 *                    neutrals). Use the SEMANTIC tokens (--surface-*,
 *                    --text-*, --border-*) in component code; reach into
 *                    raw palette only when a semantic doesn't fit.
 *
 *   --surface-*      Background fills for distinct UI layers (page, card,
 *                    inset). Layered light-to-dark when multiple stack.
 *
 *   --text-*         Foreground colors for text. `default` for body copy,
 *                    `muted` for secondary, `inverse` for dark surfaces.
 *
 *   --border-*       Hairline + emphasis borders. `default` for cards;
 *                    `strong` for active/focus states.
 *
 *   --status-*       Semantic intent colors (success, warning, danger,
 *                    info) — applied to badges, alerts, status pills.
 *
 *   --font-*         Family stacks + weight scale. Inter is the primary
 *                    face; system fallback chain is comprehensive so the
 *                    UI remains crisp before Inter loads.
 *
 *   --space-*        4px base scale (0.5x, 1x, 2x, 3x, 4x, 6x, 8x, 12x).
 *                    Use these for padding/margin/gap; never inline px.
 *
 *   --radius-*       Border-radius scale: sm (cards), md (buttons),
 *                    lg (dialogs), pill (badges, chips).
 *
 *   --shadow-*       Elevation: e1 (resting card), e2 (hover/active),
 *                    e3 (popover), e4 (dialog overlay).
 *
 *   --transition-*   Animation primitives: `fast` (focus ring, hover),
 *                    `base` (content fades), `slow` (drawer slide).
 *
 * Naming convention: every token is BCP-style kebab-case; semantic
 * tokens come BEFORE raw palette references in the file so the
 * cascade resolution path is visible at a glance.
 * ============================================================================ */
:root {
    /* ── Raw palette — COCKPIT REBRAND (2026-06-11) ─────────────────────
     * The legacy var NAMES are kept (20k LOC reference them) but their
     * VALUES now resolve to the IGNIFY cockpit brand: navy #0A183A
     * primary, yellow #FDD140 accent (fills only), paper #FAF8F2, warm
     * sand insets, cool ink neutrals. Source of truth:
     * ignify-stack/docs/strategy/admin_cockpit_design_prompt.md +
     * the Claude Design cockpit bundle (tokens.css).
     * "teal" is now an alias ramp for the navy primary. */
    --color-teal-50:  #FFFAE8;   /* emphasis wash → yellow-50 */
    --color-teal-100: #E3E8F4;   /* navy-100 */
    --color-teal-200: #C9CEDC;
    --color-teal-300: #2A4180;   /* navy-500 */
    --color-teal-400: #1B2F66;   /* navy-600 */
    --color-teal-500: #0A183A;   /* primary → navy-800 */
    --color-teal-600: #8A6A00;   /* link shade → yellow-700 (AA on paper) */
    --color-teal-700: #13234E;   /* navy-700 */
    --color-teal-800: #0A183A;
    --color-teal-900: #060F28;

    /* ── Raw palette ─ ink neutrals on warm paper/sand ─────────────────── */
    --color-stone-50:  #FAF8F2;  /* paper */
    --color-stone-100: #F3F0E7;  /* sand-100 */
    --color-stone-200: #EAE6D8;  /* sand-200 */
    --color-stone-300: #C9CEDC;  /* ink-200 */
    --color-stone-400: #A6ACC0;  /* ink-300 */
    --color-stone-500: #7C849C;  /* ink-400 */
    --color-stone-600: #4A5470;  /* ink-600 */
    --color-stone-700: #2A3354;
    --color-stone-800: #1B2440;  /* ink-900 */
    --color-stone-900: #0A183A;

    /* ── Status / intent palette (cockpit semantic ramps) ──────────────── */
    --color-success-bg:    #D6F0E5;
    --color-success-fg:    #059669;
    --color-warning-bg:    #FCEFCB;
    --color-warning-fg:    #C77D08;
    --color-danger-bg:     #FCE3E1;
    --color-danger-fg:     #DC2626;
    --color-info-bg:       #DEE9FC;
    --color-info-fg:       #2563EB;

    /* ── Semantic surface ──────────────────────────────────────────────── */
    --surface-page:        var(--color-stone-50);
    --surface-card:        #FFFFFF;
    --surface-inset:       var(--color-stone-100);
    --surface-overlay:     rgba(31, 30, 26, 0.45);
    --surface-emphasis:    var(--color-teal-50);

    /* ── Semantic text ─────────────────────────────────────────────────── */
    --text-default:        var(--color-stone-800);
    --text-muted:          var(--color-stone-600);
    --text-subtle:         var(--color-stone-500);
    --text-inverse:        var(--color-stone-50);
    --text-link:           var(--color-teal-600);
    --text-link-hover:     var(--color-teal-700);
    --text-on-primary:     #FFFFFF;

    /* ── Semantic border ───────────────────────────────────────────────── */
    --border-default:      var(--color-stone-200);
    --border-strong:       var(--color-stone-300);
    --border-focus:        var(--color-teal-500);

    /* ── Semantic status (for badges, alerts, status pills) ────────────── */
    --status-success-bg:   var(--color-success-bg);
    --status-success-fg:   var(--color-success-fg);
    --status-warning-bg:   var(--color-warning-bg);
    --status-warning-fg:   var(--color-warning-fg);
    --status-danger-bg:    var(--color-danger-bg);
    --status-danger-fg:    var(--color-danger-fg);
    --status-info-bg:      var(--color-info-bg);
    --status-info-fg:      var(--color-info-fg);

    /* ── Typography ────────────────────────────────────────────────────── */
    /* Cockpit canon: Outfit for body/UI, Plus Jakarta Sans for display/
     * headings, IBM Plex Mono for ids/numbers. Fallback chain keeps the
     * UI crisp before the webfonts resolve. */
    --font-sans:           'Outfit', -apple-system, BlinkMacSystemFont,
                           'Segoe UI', Roboto, 'Helvetica Neue', Arial,
                           sans-serif;
    --font-display:        'Plus Jakarta Sans', -apple-system,
                           BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:           'IBM Plex Mono', 'SF Mono', Menlo, Consolas,
                           'Liberation Mono', monospace;

    --font-size-xs:        12px;
    --font-size-sm:        13px;
    --font-size-base:      14px;
    --font-size-md:        15px;
    --font-size-lg:        17px;
    --font-size-xl:        20px;
    --font-size-2xl:       24px;
    --font-size-3xl:       30px;
    --font-size-4xl:       36px;

    --font-weight-regular: 400;
    --font-weight-medium:  500;
    --font-weight-semibold: 600;
    --font-weight-bold:    700;

    --line-height-tight:   1.25;
    --line-height-base:    1.5;
    --line-height-loose:   1.75;

    /* ── Spacing scale (4px base) ──────────────────────────────────────── */
    --space-0:             0;
    --space-px:            1px;
    --space-0_5:           2px;   /* 0.5x */
    --space-1:             4px;
    --space-2:             8px;
    --space-3:             12px;
    --space-4:             16px;
    --space-5:             20px;
    --space-6:             24px;
    --space-8:             32px;
    --space-10:            40px;
    --space-12:            48px;
    --space-16:            64px;
    --space-20:            80px;
    --space-24:            96px;

    /* ── Border radius ─────────────────────────────────────────────────── */
    --radius-none:         0;
    --radius-sm:           4px;   /* cards, inputs */
    --radius-md:           6px;   /* buttons */
    --radius-lg:           10px;  /* dialogs, sheets */
    --radius-xl:           16px;  /* hero panels */
    --radius-pill:         9999px; /* badges, chips */

    /* ── Shadows (elevation) ───────────────────────────────────────────── */
    --shadow-e1:           0 1px 2px rgba(31, 30, 26, 0.06),
                           0 1px 1px rgba(31, 30, 26, 0.04);
    --shadow-e2:           0 2px 6px rgba(31, 30, 26, 0.08),
                           0 1px 2px rgba(31, 30, 26, 0.04);
    --shadow-e3:           0 8px 16px rgba(31, 30, 26, 0.10),
                           0 2px 4px rgba(31, 30, 26, 0.06);
    --shadow-e4:           0 16px 32px rgba(31, 30, 26, 0.14),
                           0 4px 8px rgba(31, 30, 26, 0.08);
    --shadow-focus-ring:   0 0 0 3px rgba(253, 209, 64, 0.45);

    /* ── Transitions ───────────────────────────────────────────────────── */
    --transition-fast:     120ms cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-base:     200ms cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-slow:     300ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* ============================================================================
 * COCKPIT TOKENS (2026-06-11) — 3-tier, ported verbatim from the Claude
 * Design cockpit bundle (cockpit/tokens.css). New cockpit surfaces consume
 * these; the legacy "--color- / --surface- / --text-" names above now
 * resolve to the same palette, so both vocabularies agree.
 * (NB: never write a star-slash glob inside a CSS comment — it terminates
 * the comment and the trailing junk swallows the next rule block.)
 * ============================================================================ */
/* tier 1 · primitives */
:root{
  --ck-navy-900:#060F28; --ck-navy-800:#0A183A; --ck-navy-700:#13234E;
  --ck-navy-600:#1B2F66; --ck-navy-500:#2A4180; --ck-navy-100:#E3E8F4;
  --ck-yellow-500:#FDD140; --ck-yellow-600:#EAB81F; --ck-yellow-700:#8A6A00;
  --ck-yellow-100:#FEF3C9; --ck-yellow-50:#FFFAE8;
  --ck-ink-900:#1B2440; --ck-ink-600:#4A5470; --ck-ink-400:#7C849C;
  --ck-ink-300:#A6ACC0; --ck-ink-200:#C9CEDC;
  --ck-paper:#FAF8F2; --ck-white:#FFFFFF;
  --ck-sand-100:#F3F0E7; --ck-sand-200:#EAE6D8;
  --ck-green-600:#059669; --ck-green-100:#D6F0E5;
  --ck-amber-600:#C77D08; --ck-amber-500:#F59E0B; --ck-amber-100:#FCEFCB;
  --ck-red-600:#DC2626;  --ck-red-500:#EF4444;  --ck-red-100:#FCE3E1;
  --ck-blue-600:#2563EB; --ck-blue-100:#DEE9FC;
  --ck-violet-600:#7C3AED; --ck-violet-100:#EBE2FB;
  --ck-teal-600:#0D9488; --ck-teal-100:#CCF0EC;
  --ck-pink-600:#DB2777; --ck-pink-100:#FBE2EE;
  --ck-r-sm:8px; --ck-r-md:12px; --ck-r-lg:16px; --ck-r-tile:14px;
  --ck-r-xl:20px; --ck-r-pill:999px;
  --ck-sh-1:0 1px 2px rgba(10,24,58,.04),0 1px 3px rgba(10,24,58,.05);
  --ck-sh-2:0 2px 4px -1px rgba(10,24,58,.05),0 4px 10px -2px rgba(10,24,58,.07);
  --ck-sh-3:0 6px 16px -4px rgba(10,24,58,.10),0 16px 32px -8px rgba(10,24,58,.14);
  --ck-dur-quick:120ms; --ck-dur-std:240ms; --ck-dur-emph:360ms;
  --ck-ease:cubic-bezier(.4,0,.2,1); --ck-ease-out:cubic-bezier(.33,1,.68,1);
  --ck-font-display:var(--font-display);
  --ck-font-body:var(--font-sans);
  --ck-font-mono:var(--font-mono);
}
/* tier 2 · semantic */
:root{
  --bg-app:var(--ck-paper); --bg-surface:var(--ck-white);
  --bg-sunken:var(--ck-sand-100); --bg-inverse:var(--ck-navy-800);
  --fg-1:var(--ck-ink-900); --fg-2:var(--ck-ink-600); --fg-3:var(--ck-ink-400);
  --fg-inverse:#F4F6FC;
  --line-1:rgba(27,36,64,.10); --line-2:rgba(27,36,64,.16);
  --accent-fill:var(--ck-yellow-500);   /* fills/highlights ONLY */
  --accent-text:var(--ck-yellow-700);   /* AA text/link shade    */
  --accent-soft:var(--ck-yellow-100);
  --primary:var(--ck-navy-800);
  --ok:var(--ck-green-600);   --ok-soft:var(--ck-green-100);
  --warn:var(--ck-amber-600); --warn-soft:var(--ck-amber-100);
  --danger:var(--ck-red-600); --danger-soft:var(--ck-red-100);
  --info:var(--ck-blue-600);  --info-soft:var(--ck-blue-100);
  --ai:var(--ck-violet-600);  --ai-soft:var(--ck-violet-100);
  --focus-ring:0 0 0 3px rgba(253,209,64,.45);
}
/* tier 3 · component */
:root{
  --nav-w:236px; --nav-item-h:36px;
  --nav-active-bg:var(--accent-soft); --nav-active-fg:var(--ck-navy-800);
  --nav-badge-bg:var(--ck-navy-800);
  --header-h:56px; --chip-h:22px; --table-row-h:46px;
  --card-r:var(--ck-r-lg); --btn-h:36px; --btn-r:10px; --drawer-w:460px;
  --env-prod:var(--ck-red-600); --env-dev:var(--ck-ink-400);
  --sev-critical:var(--ck-red-600);   --sev-critical-soft:var(--ck-red-100);
  --sev-high:var(--ck-amber-600);     --sev-high-soft:var(--ck-amber-100);
  --sev-medium:var(--ck-blue-600);    --sev-medium-soft:var(--ck-blue-100);
  --sev-low:var(--ck-ink-400);        --sev-low-soft:var(--ck-sand-100);
  --dom-chat:var(--ck-teal-600);   --dom-chat-soft:var(--ck-teal-100);
  --dom-rpt:var(--ck-violet-600);  --dom-rpt-soft:var(--ck-violet-100);
  --dom-sched:var(--ck-blue-600);  --dom-sched-soft:var(--ck-blue-100);
  --dom-bill:var(--ck-green-600);  --dom-bill-soft:var(--ck-green-100);
  --dom-gcal:var(--ck-amber-600);  --dom-gcal-soft:var(--ck-amber-100);
  --dom-comm:var(--ck-pink-600);   --dom-comm-soft:var(--ck-pink-100);
  --dom-auth:var(--ck-ink-600);    --dom-auth-soft:var(--ck-sand-100);
}

/* ============================================================================
 * D.4 dogfood — refactor body + page surface to consume tokens.
 * Existing class rules below this block continue to use hardcoded values;
 * they're untouched so this slice ships zero risk to current screens.
 * Migrate them opportunistically as surfaces are touched.
 * ============================================================================ */

body {
    font-family: var(--font-sans);
    background: var(--surface-page);
    color: var(--text-default);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    overflow-x: hidden;
}

/* Layout Styles */
.nav-md .container.body {
    margin: 0;
    width: 100%;
}

.nav-md .main_container {
    position: relative;
    width: 100%;
}

.nav-md .main_container .left_col {
    width: 230px;
    height: 100vh;
    position: fixed;
    z-index: 9999;
    overflow-y: auto;
}

.nav-md .container.body .right_col {
    margin-left: 230px;
    width: calc(100% - 230px);
    padding: 20px;
    min-height: 100vh;
}

/* Responsive */
@media (max-width: 991px) {
    .nav-md .container.body .right_col {
        margin-left: 0;
        width: 100%;
    }
    
    .nav-md .main_container .left_col {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-md .main_container .left_col.active {
        transform: translateX(0);
    }
}

/* Sidebar Styles */
.left_col {
    background: #013B69;
    color: white;
}

.left_col .scroll-view {
    height: 100%;
    padding-bottom: 60px;
}

/* Navigation Title */
.navbar.nav_title {
    background: white;
    border: 0;
    margin-bottom: 0;
    padding: 0;
    height: 65px;
    display: flex;
    align-items: center;
}

.navbar.nav_title a.site_title {
    color: #013B69 !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    width: 100%;
}

.navbar.nav_title a.site_title img {
    border-radius: 50%;
    margin-right: 10px;
}

/* Profile Section */
.profile {
    background: rgba(255, 255, 255, 0.1);
    margin: 0 15px 20px;
    padding: 15px;
    border-radius: 10px;
}

.profile_pic {
    float: left;
    margin-right: 15px;
}

.profile_img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
}

.profile_info {
    overflow: hidden;
}

.profile_info span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.profile_info h2 {
    font-size: 16px;
    color: white;
    margin: 0;
    font-weight: 300;
}

/* Sidebar Menu */
.main_menu_side {
    padding: 0;
}

.side-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu > li > a {
    color: rgba(255, 255, 255, 0.9);
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.side-menu > li > a:hover,
.side-menu > li.active > a {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.side-menu > li > a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Child Menu */
.child_menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
    display: none;
}

.side-menu > li.active .child_menu {
    display: block;
}

.child_menu li a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    padding: 10px 15px 10px 45px;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.child_menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Top Navigation */
.top_nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    width: calc(100% - 230px);
    height: 65px;
    margin-left: 230px;
}

@media (max-width: 991px) {
    .top_nav {
        width: 100%;
        margin-left: 0;
    }
}

.nav_menu {
    height: 65px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.nav.toggle {
    display: flex;
    align-items: center;
}

#menu_toggle {
    color: #013B69;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
}

/* Main Content */
.right_col {
    margin-top: 65px;
    padding-top: 20px;
}

/* Tiles */
.tile_count {
    margin-bottom: 30px;
}

.tile_stats_count {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.count_top {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: block;
    font-weight: 500;
}

.count {
    font-size: 32px;
    font-weight: bold;
    color: #013B69;
    line-height: 1;
}

/* Panels */
.x_panel {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.x_title {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.x_title h2 {
    margin: 0;
    font-size: 18px;
    color: #013B69;
    font-weight: 500;
}

.x_content {
    padding: 20px;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #013B69;
    color: #013B69;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.table td {
    vertical-align: middle;
    font-size: 14px;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #013B69;
    border-color: #013B69;
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

.btn-success {
    background: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-1px);
}

/* Forms */
.form-control {
    border-radius: 6px;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #013B69;
    box-shadow: 0 0 0 0.2rem rgba(1, 59, 105, 0.25);
}

/* Badge */
.badge {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 15px;
}

.badge-success {
    background: #28a745;
    color: white;
}

/* Footer */
footer {
    background: white;
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
    color: #666;
    font-size: 13px;
}

/* Utilities */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.pull-right {
    float: right;
}

.text-muted {
    color: #6c757d;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 50px;
    color: #666;
}

.loading i {
    font-size: 24px;
    margin-right: 10px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
}

.error i {
    margin-right: 8px;
}

/* Page Title */
.page-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.title_left h3 {
    margin: 0;
    color: #013B69;
    font-weight: 500;
}

.title_right {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .page-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .title_right {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Notifications */
.notification {
    position: relative;
    margin-bottom: 15px;
    z-index: 1050;
}

.notification .btn-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
}

.notification .btn-close:hover {
    opacity: 1;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-error,
.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Navigation active states */
.side-menu > li.active > a {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.side-menu > li.active .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Mobile responsive improvements */
@media (max-width: 991px) {
    .left_col {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .left_col.active {
        transform: translateX(0);
    }
    
    .tile_stats_count {
        margin-bottom: 15px;
    }
    
    .x_panel {
        margin-bottom: 20px;
    }
    
    .profile_info h2 {
        font-size: 14px;
    }
    
    .side-menu > li > a {
        padding: 15px;
        font-size: 16px;
    }
}
/* ============================================================================
 * COCKPIT COMPONENTS (2026-06-11) — ported from the Claude Design cockpit
 * bundle (cockpit/cockpit.css), prefixed `ck-` so they can't collide with
 * legacy classes. Shared by the shell + Today and every future cockpit
 * surface (tickets/costs/outreach/...). Dense-but-calm: state via tokens +
 * chips, not banners. No emojis. Phosphor icons.
 * ============================================================================ */
.ck-mono{font-family:var(--ck-font-mono);font-variant-numeric:tabular-nums}
.ck-muted{color:var(--fg-2)}.ck-faint{color:var(--fg-3)}

.ck-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:var(--btn-h);padding:0 14px;border-radius:var(--btn-r);border:0;cursor:pointer;
  font-family:var(--ck-font-body);font-weight:600;font-size:13px;white-space:nowrap;transition:transform 80ms var(--ck-ease),background-color var(--ck-dur-quick),box-shadow var(--ck-dur-quick)}
.ck-btn:active{transform:scale(.97)}
.ck-btn i{font-size:15px}
.ck-btn-primary{background:var(--accent-fill);color:var(--ck-navy-800);box-shadow:0 1px 0 rgba(255,255,255,.4) inset}
.ck-btn-primary:hover{background:var(--ck-yellow-600)}
.ck-btn-navy{background:var(--ck-navy-800);color:#fff}
.ck-btn-navy:hover{background:var(--ck-navy-700)}
.ck-btn-ghost{background:var(--bg-surface);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg-1)}
.ck-btn-ghost:hover{background:var(--bg-sunken)}
.ck-btn-quiet{background:transparent;color:var(--fg-2)}
.ck-btn-quiet:hover{background:var(--bg-sunken);color:var(--fg-1)}
.ck-btn-sm{height:28px;padding:0 10px;font-size:12px;border-radius:8px}
.ck-btn:focus-visible{outline:none;box-shadow:var(--focus-ring)}

.ck-card{background:var(--bg-surface);border-radius:var(--card-r);box-shadow:inset 0 0 0 1px var(--line-1),var(--ck-sh-1)}
.ck-card-pad{padding:16px}
.ck-card-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 16px;border-bottom:1px solid var(--line-1)}
.ck-card-h .t{font-family:var(--ck-font-display);font-weight:700;font-size:13.5px}

.ck-chip{display:inline-flex;align-items:center;gap:5px;height:var(--chip-h);padding:0 8px;border-radius:7px;font-size:11px;font-weight:600;white-space:nowrap}
.ck-chip i{font-size:12px}
.ck-chip-sev-critical{background:var(--sev-critical-soft);color:var(--sev-critical)}
.ck-chip-sev-high{background:var(--sev-high-soft);color:var(--sev-high)}
.ck-chip-sev-medium{background:var(--sev-medium-soft);color:var(--sev-medium)}
.ck-chip-sev-low{background:var(--sev-low-soft);color:var(--sev-low)}
.ck-chip-ok{background:var(--ok-soft);color:var(--ok)}
.ck-chip-warn{background:var(--warn-soft);color:var(--warn)}
.ck-chip-danger{background:var(--danger-soft);color:var(--danger)}
.ck-chip-info{background:var(--info-soft);color:var(--info)}
.ck-chip-ai{background:var(--ai-soft);color:var(--ai)}
.ck-chip-neutral{background:var(--bg-sunken);color:var(--fg-2)}
.ck-chip-src{background:var(--bg-surface);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg-2)}

.ck-sla{font-family:var(--ck-font-mono);font-size:10.5px}
.ck-sla-ok{background:var(--bg-sunken);color:var(--fg-2)}
.ck-sla-warn{background:var(--warn-soft);color:var(--warn)}
.ck-sla-breach{background:var(--danger);color:#fff}

.ck-cat{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:6px;font-family:var(--ck-font-mono);font-size:10.5px;font-weight:600;letter-spacing:.02em;cursor:pointer}
.ck-cat:hover{filter:brightness(.96)}

.ck-pill{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;border-radius:99px;font-size:11px;font-weight:600}
.ck-pill .dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.ck-pill-neutral{background:var(--bg-sunken);color:var(--fg-2)}
.ck-pill-info{background:var(--info-soft);color:var(--info)}
.ck-pill-ok{background:var(--ok-soft);color:var(--ok)}
.ck-pill-warn{background:var(--warn-soft);color:var(--warn)}
.ck-pill-danger{background:var(--danger-soft);color:var(--danger)}
.ck-pill-navy{background:var(--ck-navy-800);color:#fff}

.ck-kbd{display:inline-flex;align-items:center;height:18px;padding:0 5px;border-radius:5px;background:var(--bg-sunken);box-shadow:inset 0 0 0 1px var(--line-1);font-family:var(--ck-font-mono);font-size:10px;color:var(--fg-3)}

.ck-avatar{width:26px;height:26px;border-radius:50%;flex:none;display:inline-flex;align-items:center;justify-content:center;
  font-family:var(--ck-font-display);font-weight:700;font-size:10px;background:var(--ck-navy-100);color:var(--ck-navy-700);box-shadow:inset 0 0 0 1px var(--line-1)}

.ck-env{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:7px;font-family:var(--ck-font-mono);font-size:11px;font-weight:700;letter-spacing:.08em}
.ck-env-prod{background:var(--env-prod);color:#fff}
.ck-env-prod::before{content:"";width:7px;height:7px;border-radius:50%;background:#fff;animation:ck-envpulse 2s var(--ck-ease) infinite}
@keyframes ck-envpulse{0%,100%{opacity:1}50%{opacity:.4}}
.ck-env-dev{background:var(--bg-sunken);color:var(--fg-2);box-shadow:inset 0 0 0 1px var(--line-2)}
.ck-env-staging{background:var(--warn-soft);color:var(--warn)}
.ck-env-local{background:var(--info-soft);color:var(--info)}

/* KPI cards */
.ck-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-bottom:18px}
@media(max-width:1400px){.ck-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.ck-kpis{grid-template-columns:repeat(2,1fr)}}
.ck-kpi{padding:13px 15px;display:block;color:inherit;text-decoration:none;transition:box-shadow var(--ck-dur-quick),transform var(--ck-dur-quick) var(--ck-ease)}
a.ck-kpi:hover{box-shadow:inset 0 0 0 1px var(--line-2),var(--ck-sh-2);transform:translateY(-1px)}
.ck-kpi .l{font-family:var(--ck-font-mono);font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:var(--fg-3)}
.ck-kpi .v{font-family:var(--ck-font-display);font-weight:700;font-size:24px;letter-spacing:-.02em;margin-top:6px;font-variant-numeric:tabular-nums;color:var(--fg-1)}
.ck-kpi .m{display:flex;align-items:center;gap:6px;margin-top:5px;font-size:11.5px;color:var(--fg-3);flex-wrap:wrap}
.ck-kpi .delta{font-weight:600}
.ck-kpi .delta.up{color:var(--ok)}.ck-kpi .delta.down{color:var(--danger)}

/* decision feed */
.ck-feed-grp{margin-bottom:18px}
.ck-feed-grp .gh{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.ck-fitem{display:flex;align-items:center;gap:12px;padding:10px 14px;background:var(--bg-surface);border-radius:var(--ck-r-md);
  box-shadow:inset 0 0 0 1px var(--line-1);margin-bottom:6px;transition:box-shadow var(--ck-dur-quick),transform var(--ck-dur-quick) var(--ck-ease)}
.ck-fitem:hover{box-shadow:inset 0 0 0 1px var(--line-2),var(--ck-sh-2)}
.ck-fitem .sum{flex:1;min-width:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--fg-1)}
.ck-fitem .sum b{font-weight:600}
.ck-fitem .age{font-family:var(--ck-font-mono);font-size:11px;color:var(--fg-3);white-space:nowrap}

/* funnel micro-viz */
.ck-funnel{display:flex;align-items:flex-end;gap:5px;height:54px}
.ck-funnel .bar{flex:1;border-radius:5px 5px 0 0;background:var(--ck-navy-100);position:relative;min-width:34px}
.ck-funnel .bar.hot{background:var(--accent-fill)}
.ck-funnel .bar span{position:absolute;top:-17px;left:0;right:0;text-align:center;font-family:var(--ck-font-mono);font-size:10px;color:var(--fg-2)}
.ck-funnel-lbls{display:flex;gap:5px;margin-top:5px}
.ck-funnel-lbls div{flex:1;text-align:center;font-size:10px;color:var(--fg-3);min-width:34px}

/* AI suggestion card — visually distinct, never "confirmed fact" */
.ck-ai-card{background:linear-gradient(180deg,var(--ai-soft),var(--bg-surface) 88%);border-radius:var(--ck-r-md);
  box-shadow:inset 0 0 0 1px rgba(124,58,237,.22);padding:13px 14px}
.ck-ai-tag{display:inline-flex;align-items:center;gap:5px;height:19px;padding:0 7px;border-radius:6px;background:var(--ai);color:#fff;
  font-family:var(--ck-font-mono);font-size:9.5px;font-weight:700;letter-spacing:.08em}

/* empty / skeleton */
.ck-empty{display:flex;flex-direction:column;align-items:center;gap:9px;padding:44px 20px;text-align:center;color:var(--fg-3)}
.ck-empty i{font-size:26px;color:var(--ck-ink-300)}
.ck-empty .t{font-family:var(--ck-font-display);font-weight:700;font-size:14px;color:var(--fg-2)}
