/* ── AIRI design tokens (UI Foundation, slice A1) ──────────────────────────
   Opt-in CSS variables. No existing rule references these yet -- they exist
   so new components and migrated styles can pull from a single source of
   truth instead of hardcoding Bootstrap utility values.

   Naming: --airi-<category>-<role>[-<weight>]. Examples:
     --airi-surface           page background
     --airi-text-muted        secondary text (WCAG AA on white)
     --airi-success-bg        soft tint for success surfaces
     --airi-space-3           12px (4-pt scale)
   ────────────────────────────────────────────────────────────────────── */
:root {
    /* Brand -- anchored to <meta name="theme-color" content="#0b1f33"> */
    --airi-brand-navy:       #0b1f33;
    --airi-brand-navy-600:   #112a45;
    --airi-brand-navy-700:   #0a1c2e;
    --airi-brand-navy-800:   #050f1c;
    --airi-brand-accent:     #6bdbcb; /* console/chat accent -- see .airi-console-* */

    /* Light shell surfaces */
    --airi-surface:          #ffffff;
    --airi-surface-muted:    #f8f9fa;
    --airi-surface-sunken:   #f1f3f5;
    --airi-border:           #dee2e6;
    --airi-border-strong:    #c2c8cf;

    /* Dark surfaces (sidebar, modals, console) */
    --airi-surface-dark:           #1a1a2e;
    --airi-surface-dark-elevated:  #22223a;
    --airi-border-dark:            #2a2a4a;

    /* Text */
    --airi-text:             #212529;
    --airi-text-muted:       #5a6470; /* AA on #ffffff (7:1) -- replaces #6c757d for body copy */
    --airi-text-subtle:      #8892a4;
    --airi-text-inverse:     #f8f9fa;

    /* Semantic -- solid + soft-tint pairs */
    --airi-success:          #198754;
    --airi-success-bg:       #d1e7dd;
    --airi-warning:          #b06f00; /* darker amber -- AA on white */
    --airi-warning-bg:       #fff3cd;
    --airi-danger:           #b02a37;
    --airi-danger-bg:        #f8d7da;
    --airi-info:             #0d6efd;
    --airi-info-bg:          #cfe2ff;
    --airi-muted:            #6c757d;
    --airi-muted-bg:         #e9ecef;

    /* Spacing -- 4-pt scale */
    --airi-space-1:  4px;
    --airi-space-2:  8px;
    --airi-space-3:  12px;
    --airi-space-4:  16px;
    --airi-space-5:  24px;
    --airi-space-6:  32px;
    --airi-space-7:  48px;
    --airi-space-8:  64px;

    /* Type scale */
    --airi-text-xs:    0.75rem;   /* 12px */
    --airi-text-sm:    0.875rem;  /* 14px */
    --airi-text-base:  1rem;      /* 16px */
    --airi-text-lg:    1.125rem;  /* 18px */
    --airi-text-xl:    1.25rem;   /* 20px */
    --airi-text-2xl:   1.5rem;    /* 24px */
    --airi-text-3xl:   1.875rem;  /* 30px */

    /* Radius */
    --airi-radius-sm:   4px;
    --airi-radius-md:   6px;
    --airi-radius-lg:   10px;
    --airi-radius-pill: 999px;

    /* Shadow */
    --airi-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
    --airi-shadow-md: 0 4px 8px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.06);
    --airi-shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.10), 0 4px 8px rgba(15, 23, 42, 0.06);

    /* Z-index (kept in sync with existing chrome) */
    --airi-z-sidebar:         1042;
    --airi-z-modal-backdrop:  1060;
    --airi-z-toast:           1080;

    /* On-dark text -- already hard-coded in ConsoleModal / AiChatModal CSS;
       hoist to tokens so other dark surfaces reuse them. */
    --airi-text-on-dark:     #c8d3e0;
    --airi-text-on-dark-hi:  #e8f0fc;

    /* Modal titlebar surface -- #12122a is currently inline in app.css twice. */
    --airi-surface-dark-titlebar:  #12122a;

    /* Env-color tokens for AiriVersionFooter -- currently .airi-version-env-prod
       etc. hard-code these. */
    --airi-env-prod:         #15803d;
    --airi-env-dev:          #b45309;
    --airi-env-staging:      #1d4ed8;
    --airi-env-prod-dark:    #4ade80;
    --airi-env-dev-dark:     #fbbf24;
    --airi-env-staging-dark: #60a5fa;

    /* Font stacks -- body and pre currently inline the stacks. */
    --airi-font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --airi-font-mono:  "Cascadia Code", "Consolas", "Courier New", monospace;

    /* Type scale -- adds the h1/hero step that the existing scale is missing. */
    --airi-text-4xl:   2.25rem;  /* 36px -- h1 page title */

    /* Line-height + letter-spacing tokens. */
    --airi-leading-tight:  1.25;
    --airi-leading-snug:   1.4;
    --airi-leading-body:   1.55;
    --airi-tracking-uppercase: 0.05em;
    --airi-tracking-envtag:    0.04em;

    /* Heavy modal-overlay shadow used by ConsoleModal + AiChatModal. */
    --airi-shadow-console:  0 24px 72px rgba(0, 0, 0, 0.8);
}

/* Dark mode (exploratory) -- opt-in via <html data-theme="dark"> or
   <body data-theme="dark">. Production AIRI is light-only today; this scope
   exists so a dark admin-night-shift or terminal-heavy workflow can flip
   without forking the token list.

   Only surface + text tokens flip. Brand navy, console teal accent, and
   semantic solids stay anchored -- that's how the dark sidebar / modals in
   the live product already look, so keeping them constant means a single
   token swap travels cleanly across both themes. */
[data-theme="dark"] {
    /* Surfaces */
    --airi-surface:          #15172a;
    --airi-surface-muted:    #0e1020;   /* page bg */
    --airi-surface-sunken:   #0a0c1a;
    --airi-border:           #2a2d44;
    --airi-border-strong:    #3a3e58;

    /* Text */
    --airi-text:             #e8ecf5;
    --airi-text-muted:       #9aa3b8;   /* AA on #15172a */
    --airi-text-subtle:      #6b7388;
    --airi-text-inverse:     #15172a;

    /* Semantic -- keep solids; darken the soft "tint" backgrounds so they
       read as backgrounds against the dark surface instead of light bars. */
    --airi-success-bg:       #0f3b27;
    --airi-warning-bg:       #3d2c0a;
    --airi-danger-bg:        #3b1418;
    --airi-info-bg:          #0a2a5a;
    --airi-muted-bg:         #21243a;

    /* Shadows -- slate doesn't read on dark; switch to black with more spread. */
    --airi-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5),  0 1px 3px rgba(0, 0, 0, 0.6);
    --airi-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.55), 0 2px 4px rgba(0, 0, 0, 0.6);
    --airi-shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.55), 0 4px 8px rgba(0, 0, 0, 0.6);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* AIRI brand (see docs/AIRI-BRANDING.md) */
.sentinel-brand-mark-img {
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
}

.sentinel-brand-login-logo {
    max-width: 280px;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
}

pre {
    font-family: 'Cascadia Code', 'Consolas', monospace;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Sidebar nav-link icon (Bootstrap Icons, slice B2).
   Fixed width keeps the icon column flush across rows that have variable-
   width glyphs (so "Roles" and "Users" line up despite different icon widths). */
.airi-nav-icon {
    font-size: 1rem;
    width: 1.15rem;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.85;
    line-height: 1;
}
.nav-link:hover .airi-nav-icon,
.nav-link.active .airi-nav-icon {
    opacity: 1;
}

/* Context-switching exit bar above the brand (slice B2).
   Lives separate from the nav list so impersonation exits don't read as
   another nav item. */
.airi-context-exits {
    margin-bottom: 0.5rem;
}

/* DeviceDetail tab content -- responsive multi-column layout (slice D1 follow-up).

   D1 collapsed the original 2x col-lg-6 to a single col-12 (one card per row).
   That left a lot of empty horizontal real estate on wide viewports because
   each card has max-width:38rem (~608px).

   This rule re-uses the empty space at xl+ (>=1200px) by flowing the cards
   into a 2-column CSS multi-column layout. Each card is treated atomically
   (break-inside: avoid). Below xl the cards stack single-column as before.

   Result on Overview: Identity (tall) fills the left column, Telemetry + Tags
   stack into the right column -- the layout the user asked for.

   Why CSS columns and not Bootstrap row+col: cards on each tab live in
   separate @if (IsTab(...)) blocks in source order, so a single row+col
   wrapping would require restructuring. CSS columns lets the browser balance
   without touching the source structure. */
.airi-detail-tab-content {
    /* below xl: single-column flow inherited from col-12 default */
}
@media (min-width: 1200px) {
    .airi-detail-tab-content {
        column-count: 2;
        column-gap: 1.5rem;
    }
    .airi-detail-tab-content > .card {
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* DeviceDetail cards used to have inline style="max-width:38rem" so they
   capped at ~608px even when their column was 800px+ wide on 1080p+
   viewports (left ~200px empty per column on a 1920px viewport). The cap
   was a holdover from the pre-D1 two-column-by-col-lg-6 layout, where the
   col itself constrained the card. Now that column-count drives the layout
   (D1 follow-up), let cards fill their column to use the space.
   !important is needed here because the inline style attribute wins on
   specificity; the alternative is editing seven separate cards' style
   attributes. */
.airi-detail-tab-content > .card {
    max-width: none !important;
}

/* Dashboard AI Console CTA banner (slice C1).
   Subtle accent block that previews the AI-first direction without
   overpromising. E1 will replace the click target with an org-scoped console. */
.airi-ai-cta {
    border: 1px solid var(--airi-border);
    background: linear-gradient(135deg, rgba(107, 219, 203, 0.07), rgba(13, 110, 253, 0.05));
}
.airi-ai-cta-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--airi-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--airi-brand-navy);
    color: var(--airi-brand-accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Needs-attention tiles (slice C1).
   Bordered cards that turn warning/danger when their count is non-zero,
   stay muted otherwise. Whole tile is clickable -> linked workflow page. */
.airi-attention-row {
    /* nothing yet -- placeholder for future responsive tweaks */
}
.airi-attention-tile {
    border: 1px solid var(--airi-border);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.airi-attention-tile:hover {
    box-shadow: var(--airi-shadow-md);
    transform: translateY(-1px);
    color: inherit;
    text-decoration: none;
}
.airi-attention-tile-warning {
    border-color: var(--airi-warning);
    border-left-width: 4px;
}
.airi-attention-tile-danger {
    border-color: var(--airi-danger);
    border-left-width: 4px;
}
.airi-attention-icon {
    font-size: 1rem;
    color: var(--airi-text-muted);
    width: 1.15rem;
    text-align: center;
}
.airi-attention-tile-warning .airi-attention-icon { color: var(--airi-warning); }
.airi-attention-tile-danger  .airi-attention-icon { color: var(--airi-danger); }
.airi-attention-label {
    font-size: var(--airi-text-sm);
    color: var(--airi-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.airi-attention-count {
    font-size: 2.25rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--airi-text);
    margin: 0.25rem 0 0.5rem 0;
}
.airi-attention-tile-warning .airi-attention-count { color: var(--airi-warning); }
.airi-attention-tile-danger  .airi-attention-count { color: var(--airi-danger); }
.airi-attention-sub {
    font-size: var(--airi-text-xs);
    color: var(--airi-text-muted);
}

/* Sidebar subsection label inside Settings groups (UI Foundation slice B1).
   Renders as a small uppercase muted label between batches of nav-items.
   Color chosen for WCAG AA on bg-dark (~5.5:1). */
.airi-nav-subhead {
    list-style: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.7rem 0.5rem 0.25rem;
    margin: 0;
    user-select: none;
}
.airi-nav-subhead:first-child {
    padding-top: 0.2rem;
}

/* Version footer (AiriVersionFooter.razor) -- tiny "AIRI 1.2.3 - prod" line
   for the sidebar bottom and login card. The env-color dot is the load-bearing
   piece; semver text stays muted so peripheral-vision scanning lands on the dot. */
.airi-version-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.65rem;
    padding: 0 0.25rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    user-select: none;
    flex-wrap: wrap;
}
.airi-version-name {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.72);
}
.airi-version-num {
    font-family: 'Cascadia Code', 'Consolas', monospace;
    color: rgba(255, 255, 255, 0.55);
}
.airi-version-env {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    font-size: 0.66rem;
}
.airi-version-env-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

/* Env color cues -- dark-bg variants (sidebar) */
.airi-version-env-prod    { color: #4ade80; } /* green-400 */
.airi-version-env-dev     { color: #fbbf24; } /* amber-400, matches impersonation outline family */
.airi-version-env-staging { color: #60a5fa; } /* blue-400 */
.airi-version-env-other   { color: rgba(255, 255, 255, 0.55); }

/* Compact variant (light cards e.g. Login). Inherits the layout above but
   re-tints text + env colors for legibility on a white background. */
.airi-version-footer-compact {
    color: #6c757d;
    margin-top: 0;
    padding: 0;
    justify-content: center;
}
.airi-version-footer-compact .airi-version-name {
    color: #495057;
}
.airi-version-footer-compact .airi-version-num {
    color: #6c757d;
}
.airi-version-footer-compact .airi-version-env {
    margin-left: 0.4rem; /* center the whole line on the login card */
}
.airi-version-footer-compact .airi-version-env-prod    { color: #15803d; } /* darker green for AA on white */
.airi-version-footer-compact .airi-version-env-dev     { color: #b45309; } /* darker amber for AA on white */
.airi-version-footer-compact .airi-version-env-staging { color: #1d4ed8; }
.airi-version-footer-compact .airi-version-env-other   { color: #6c757d; }
.airi-version-footer-compact .airi-version-env-dot     { box-shadow: none; }

.installer-os-icon {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}

/* Optional chrome when a platform operator impersonates an MSP (see Platform settings). */
.sentinel-impersonation-border {
    outline: 3px solid rgba(255, 193, 7, 0.85);
    outline-offset: -3px;
}

.sentinel-customer-acting-border {
    outline: 3px solid rgba(13, 202, 240, 0.75);
    outline-offset: -3px;
}

/* ── Global search (GlobalSearch.razor) ─────────────────────────────────── */

.airi-global-search {
    position: relative;
    width: 100%;
    max-width: 920px;
    min-width: min(100%, 360px);
}

.airi-search-scope {
    flex-shrink: 0;
    max-width: 140px;
}

.airi-search-input {
    min-width: 0;
    flex: 1 1 auto;
}

.airi-search-item.airi-search-item-active {
    background: #e8eeff;
    outline: none;
}

.airi-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1050;
    max-height: 340px;
    overflow-y: auto;
}

.airi-search-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 0.84rem;
    flex-wrap: wrap;
}
.airi-search-item:hover { background: #f0f4ff; }
.airi-search-muted { color: #888; cursor: default; }
.airi-search-muted:hover { background: none; }

.airi-search-label { font-weight: 500; }
.airi-search-sub { color: #555; font-size: 0.78rem; }
.airi-search-detail { color: #888; font-size: 0.76rem; font-family: 'Cascadia Code', monospace; }
.airi-search-kind-badge { font-size: 0.7rem; flex-shrink: 0; }

/* Add device modal — medium OS icons (CustomerAgents) */
.airi-installer-os-icon-lg {
    width: 72px;
    height: 72px;
}
.airi-add-device-os-card {
    background: #fafbfc;
}

/* ── Console modal (ConsoleModal.razor) ─────────────────────────────────── */

.airi-console-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
}

.airi-console-window {
    background: #1a1a2e;
    color: #c8d3e0;
    border-radius: 10px;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    width: min(92vw, 860px);
    height: min(80vh, 580px);
    font-family: 'Cascadia Code', 'Consolas', 'Courier New', monospace;
    font-size: 0.82rem;
    overflow: hidden;
}

.airi-console-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #12122a;
    border-bottom: 1px solid #2a2a4a;
    user-select: none;
    flex-shrink: 0;
}

.airi-console-title {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 0.78rem;
    color: #8892a4;
}

.airi-console-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    opacity: 0.75;
}

.airi-console-shell-select {
    background: #22223a;
    color: #c8d3e0;
    border: 1px solid #3a3a5a;
    border-radius: 4px;
    font-size: 0.75rem;
    padding: 2px 6px;
    outline: none;
}

.airi-console-close {
    background: none;
    border: none;
    color: #8892a4;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1;
}
.airi-console-close:hover { background: #3a3a5a; color: #e0e6f0; }

.airi-console-output {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px;
    line-height: 1.55;
    word-break: break-all;
    white-space: pre-wrap;
}

.airi-console-line { margin: 0; padding: 0; }
.airi-console-stdout { color: #c8d3e0; }
.airi-console-stderr { color: #f4856a; }
.airi-console-muted { color: #5a6070; font-style: italic; }
.airi-console-prompt-echo { color: #6bdbcb; }
.airi-console-exit { color: #f4a94a; font-size: 0.78rem; }
.airi-console-cursor { animation: blink 1s step-end infinite; color: #6bdbcb; }
@keyframes blink { 50% { opacity: 0; } }

.airi-console-inputrow {
    display: flex;
    align-items: center;
    border-top: 1px solid #2a2a4a;
    background: #12122a;
    padding: 6px 10px;
    flex-shrink: 0;
    gap: 6px;
}

.airi-console-prompt {
    color: #6bdbcb;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.airi-console-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e8f0fc;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    caret-color: #6bdbcb;
}
.airi-console-input::placeholder { color: #3a4050; }

.airi-console-send-btn {
    background: none;
    border: 1px solid #3a3a5a;
    color: #8892a4;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.4;
}
.airi-console-send-btn:not(:disabled):hover { background: #22223a; color: #c8d3e0; }
.airi-console-send-btn:disabled { opacity: 0.35; cursor: default; }

/* ── AI Chat modal (AiChatModal.razor) ──────────────────────────────────── */

.airi-chat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
}

.airi-chat-window {
    background: #1a1a2e;
    color: #c8d3e0;
    border-radius: 10px;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    width: min(96vw, 1040px);
    height: min(88vh, 820px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.88rem;
    overflow: hidden;
}

.airi-chat-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #12122a;
    border-bottom: 1px solid #2a2a4a;
    flex-shrink: 0;
}

.airi-chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #8892a4;
}

.airi-chat-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.75;
}

.airi-chat-close {
    background: none;
    border: none;
    color: #8892a4;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1;
}
.airi-chat-close:hover { background: #3a3a5a; color: #e0e6f0; }

.airi-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.airi-chat-msg { display: flex; flex-direction: column; max-width: 88%; }
.airi-chat-msg-user { align-self: flex-end; align-items: flex-end; }
.airi-chat-msg-ai   { align-self: flex-start; }

.airi-chat-bubble {
    padding: 7px 12px;
    border-radius: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}
.airi-chat-msg-user .airi-chat-bubble { background: #264579; color: #dceeff; border-bottom-right-radius: 3px; }
.airi-chat-msg-ai   .airi-chat-bubble { background: #22223a; color: #c8d3e0; border-bottom-left-radius: 3px; }

.airi-chat-bubble-streaming { border-bottom-left-radius: 3px; }

.airi-chat-label { font-size: 0.72rem; color: #5a6070; margin-bottom: 2px; }
.airi-chat-msg-user .airi-chat-label { text-align: right; }

.airi-chat-proposal {
    background: #1e3a26;
    border: 1px solid #2e6a36;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 4px;
    font-family: 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.78rem;
    color: #a8e6b4;
}

.airi-chat-proposal-actions { display: flex; gap: 8px; margin-top: 6px; }
.airi-chat-approve-btn { background: #1a5c28; color: #a8e6b4; border: 1px solid #2e8a3a; border-radius: 5px; padding: 3px 12px; cursor: pointer; font-size: 0.8rem; }
.airi-chat-approve-btn:hover { background: #2a7a38; }
.airi-chat-reject-btn  { background: #5c1a1a; color: #e6a8a8; border: 1px solid #8a2e2e; border-radius: 5px; padding: 3px 12px; cursor: pointer; font-size: 0.8rem; }
.airi-chat-reject-btn:hover  { background: #7a2a2a; }

.airi-chat-cmd-output {
    background: #111120;
    border-radius: 5px;
    padding: 6px 10px;
    margin-top: 4px;
    font-family: 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.76rem;
    color: #9ab0c8;
    max-height: 140px;
    overflow-y: auto;
    white-space: pre;
}

.airi-chat-inputrow {
    display: flex;
    align-items: center;
    border-top: 1px solid #2a2a4a;
    background: #12122a;
    padding: 8px 12px;
    flex-shrink: 0;
    gap: 8px;
}

.airi-chat-input {
    flex: 1;
    background: #22223a;
    border: 1px solid #3a3a5a;
    border-radius: 6px;
    color: #e8f0fc;
    font-size: 0.86rem;
    padding: 6px 10px;
    outline: none;
    resize: none;
    font-family: inherit;
    line-height: 1.4;
    max-height: 80px;
}
.airi-chat-input::placeholder { color: #3a4050; }

.airi-chat-send-btn {
    background: #264579;
    color: #dceeff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.airi-chat-send-btn:not(:disabled):hover { background: #1a5cb8; }
.airi-chat-send-btn:disabled { opacity: 0.4; cursor: default; }
