:root {
    --bg-void: #050608;
    --bg-surface: #080A0E;
    --bg-panel: #0D1017;
    --bg-card: #121622;
    --bg-chat: rgba(14, 18, 26, 0.94);

    --color-emerald: #00FF87;
    --color-emerald-glow: rgba(0, 255, 135, 0.35);
    --color-cyan: #00E5FF;
    --color-cyan-glow: rgba(0, 229, 255, 0.35);
    --color-amber: #FFB020;
    --color-amber-glow: rgba(255, 176, 32, 0.35);
    --color-purple: #A855F7;

    --text-white: #FFFFFF;
    --text-chalk: #F3F4F6;
    --text-muted: #9CA3AF;
    --text-dim: #4B5563;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 255, 135, 0.4);
    --border-glass: rgba(0, 255, 135, 0.2);

    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.aurabot-body,
body.paperclip-body {
    background-color: var(--bg-void);
    color: var(--text-chalk);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 60px;
}

/* Background Atmosphere */
.void-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 255, 135, 0.03) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
    pointer-events: none;
    z-index: 0;
}

.glow-orb {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
}

.glow-top-left {
    top: -200px;
    left: -100px;
    background: var(--color-emerald);
}

.glow-bottom-right {
    bottom: -200px;
    right: -100px;
    background: var(--color-cyan);
}

.app-shell {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 32px;
}

/* TOP HUD HEADER */
.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: rgba(13, 16, 23, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 28px;
}

.brand-cluster {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--color-emerald);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--color-emerald);
}

.brand-title {
    color: var(--text-white);
}

.brand-slash {
    color: var(--text-dim);
}

.brand-sub {
    color: var(--color-emerald);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.environment-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 135, 0.06);
    border: 1px solid rgba(0, 255, 135, 0.2);
    padding: 4px 10px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-emerald);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-emerald);
}

.badge-dot.pulse {
    box-shadow: 0 0 8px var(--color-emerald);
    animation: pulse 2s infinite;
}

.badge-meta {
    color: var(--text-dim);
    font-size: 0.7rem;
    padding-left: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.system-telemetry {
    display: flex;
    align-items: center;
    gap: 24px;
}

.telemetry-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.telemetry-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.telemetry-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-chalk);
}

.telemetry-value.active-color {
    color: var(--color-emerald);
}

.telemetry-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-hud {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-chalk);
    padding: 8px 14px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-hud:hover {
    background: rgba(0, 255, 135, 0.1);
    border-color: var(--color-emerald);
    color: var(--color-emerald);
}

.btn-hud-outline {
    background: transparent;
}

/* SECTION TITLE BARS */
.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-title-bar h2 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

.section-hint {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* AGENTS FLEET GRID */
.agents-fleet-section {
    margin-bottom: 32px;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.agent-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 18px;
    position: relative;
    transition: all 0.25s ease;
}

.agent-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.agent-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.agent-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
}

.agent-01-glow { color: var(--color-emerald); border: 1px solid rgba(0, 255, 135, 0.3); }
.agent-02-glow { color: var(--color-cyan); border: 1px solid rgba(0, 229, 255, 0.3); }
.agent-03-glow { color: var(--color-amber); border: 1px solid rgba(255, 176, 32, 0.3); }
.agent-04-glow { color: var(--color-purple); border: 1px solid rgba(168, 85, 247, 0.3); }

.agent-meta {
    flex: 1;
}

.agent-code {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.agent-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--text-white);
    margin-top: 2px;
}

.agent-status-pill {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.agent-status-pill.online {
    background: rgba(0, 255, 135, 0.1);
    color: var(--color-emerald);
    border: 1px solid rgba(0, 255, 135, 0.25);
}

.agent-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 16px;
    min-height: 48px;
}

.agent-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.agent-stats .lbl { color: var(--text-dim); }
.agent-stats .val { color: var(--text-chalk); font-weight: 600; }

/* KANBAN SECTION */
.kanban-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.kanban-header h2 {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-chalk);
    letter-spacing: 0.04em;
}

.filter-input {
    background: var(--bg-void);
    border: 1px solid var(--border-subtle);
    color: var(--text-white);
    padding: 10px 16px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    width: 320px;
    outline: none;
    transition: border-color 0.2s ease;
}

.filter-input:focus {
    border-color: var(--color-emerald);
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    min-height: 480px;
}

.kanban-col {
    background: rgba(13, 16, 23, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.col-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    font-weight: 600;
}

.col-count {
    background: rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 999px;
    color: var(--text-chalk);
}

.col-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* TICKET CARD */
.ticket-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.ticket-card:hover {
    border-color: var(--color-emerald);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ticket-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ticket-id {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-emerald);
    font-weight: 700;
}

.temp-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.temp-badge.super-aquecido {
    background: rgba(255, 77, 77, 0.15);
    color: #FF4D4D;
    border: 1px solid rgba(255, 77, 77, 0.3);
}

.temp-badge.morno {
    background: rgba(255, 176, 32, 0.15);
    color: var(--color-amber);
    border: 1px solid rgba(255, 176, 32, 0.3);
}

.ticket-client {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.ticket-segment {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.ticket-solution-chip {
    display: inline-block;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--color-cyan);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
}

/* MODAL INSPECTOR */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

.modal-backdrop.hidden {
    display: none;
}

.modal-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-hover);
    border-radius: 16px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 255, 135, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-emerald);
    font-weight: 700;
}

.modal-title-cluster h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-white);
    margin-top: 4px;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.btn-close:hover {
    color: var(--text-white);
}

.modal-body {
    padding: 24px 28px;
}

.inspector-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 24px;
}

.summary-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-box .lbl {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
}

.summary-box .val {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-chalk);
}

.highlight-val {
    color: #FF4D4D !important;
}

.inspector-section {
    margin-bottom: 20px;
}

.inspector-section h3 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.inspector-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 16px;
}

.arch-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-emerald);
    margin-bottom: 6px;
}

.arch-diag {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.arch-deliverables {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.arch-deliverables .item {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-chalk);
    display: flex;
    align-items: center;
    gap: 8px;
}

.inspector-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.text-content {
    font-size: 0.85rem;
    color: var(--text-chalk);
    line-height: 1.45;
}

.telemetry-grid-inspector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 14px;
}

.t-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.t-lbl { color: var(--text-dim); }
.t-val { color: var(--text-chalk); font-weight: 600; }

.status-badge {
    color: var(--color-emerald) !important;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.btn-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-action-primary {
    background: var(--color-emerald);
    color: #050608;
    border: none;
}

.btn-action-primary:hover {
    background: #00e578;
    box-shadow: 0 0 20px var(--color-emerald-glow);
}

.btn-action-secondary {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-chalk);
}

.btn-action-secondary:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@media (max-width: 1024px) {
    .agents-grid { grid-template-columns: repeat(2, 1fr); }
    .kanban-board { grid-template-columns: 1fr; }
    .inspector-summary-strip { grid-template-columns: repeat(2, 1fr); }
    .telemetry-grid-inspector { grid-template-columns: 1fr; }
}

/* =========================================================================
   ZERO-TRUST SECURITY & LGPD COMPLIANCE UI (AuraBot Control v10.7.0)
   ========================================================================= */

.auth-badge-unauth {
    color: var(--color-amber) !important;
    background: rgba(255, 176, 32, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 176, 32, 0.3);
    font-size: 0.75rem;
}

.auth-badge-auth {
    color: var(--color-emerald) !important;
    background: rgba(0, 255, 135, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 135, 0.3);
    font-size: 0.75rem;
}

.btn-hud-gold {
    background: rgba(255, 176, 32, 0.15) !important;
    border-color: rgba(255, 176, 32, 0.4) !important;
    color: var(--color-amber) !important;
}

.btn-hud-gold:hover {
    background: rgba(255, 176, 32, 0.25) !important;
    border-color: var(--color-amber) !important;
}

.badge-pii-card {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-cyan);
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    display: inline-block;
}

/* Contact Summary Box with Shield & Reveal */
.summary-box-contact {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.box-contact-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.pii-shield-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.pii-shield-active {
    color: var(--color-amber);
    background: rgba(255, 176, 32, 0.15);
    border: 1px solid rgba(255, 176, 32, 0.3);
}

.pii-shield-unmasked {
    color: var(--color-emerald);
    background: rgba(0, 255, 135, 0.15);
    border: 1px solid rgba(0, 255, 135, 0.3);
}

.box-contact-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.btn-reveal-pii {
    background: rgba(0, 229, 255, 0.15);
    color: var(--color-cyan);
    border: 1px solid rgba(0, 229, 255, 0.4);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-reveal-pii:hover {
    background: rgba(0, 229, 255, 0.3);
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan-glow);
}

.pii-audit-note {
    font-size: 0.68rem;
    color: var(--text-dim);
    margin-top: 4px;
    font-style: italic;
}

.disabled-action {
    opacity: 0.4 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-dim) !important;
}

/* Unauthorized Kanban Placeholder */
.unauth-placeholder {
    padding: 32px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(18, 22, 34, 0.4);
    border: 1px dashed rgba(255, 176, 32, 0.3);
    border-radius: 8px;
}

.unauth-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-amber);
    letter-spacing: 0.05em;
}

.unauth-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    max-width: 200px;
    line-height: 1.4;
}

.btn-unlock-kanban {
    margin-top: 8px;
    background: rgba(255, 176, 32, 0.15);
    color: var(--color-amber);
    border: 1px solid rgba(255, 176, 32, 0.4);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-unlock-kanban:hover {
    background: rgba(255, 176, 32, 0.3);
    border-color: var(--color-amber);
}

/* Operator Auth Modal */
.auth-modal-card {
    max-width: 520px;
}

.auth-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

.auth-input {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--color-emerald);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.auth-input:focus {
    border-color: var(--color-emerald);
    box-shadow: 0 0 10px var(--color-emerald-glow);
}

.auth-modal-actions {
    display: flex;
    gap: 10px;
}

.auth-feedback {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 10px 12px;
    border-radius: 6px;
    margin-top: 4px;
}

.feedback-success {
    background: rgba(0, 255, 135, 0.12);
    border: 1px solid rgba(0, 255, 135, 0.4);
    color: var(--color-emerald);
}

.feedback-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.feedback-neutral {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

/* Audit Logs Modal */
.audit-modal-card {
    max-width: 960px;
}

.audit-table-wrap {
    overflow-x: auto;
    max-height: 480px;
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.audit-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-dim);
    font-weight: 600;
}

.audit-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-chalk);
}

.audit-action-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.68rem;
}

.tag-warn {
    color: var(--color-amber);
    background: rgba(255, 176, 32, 0.15);
    border: 1px solid rgba(255, 176, 32, 0.3);
}

.tag-info {
    color: var(--color-cyan);
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.text-cyan {
    color: var(--color-cyan) !important;
}

.text-error {
    color: #ef4444 !important;
}

.text-center {
    text-align: center;
}

.audit-reason {
    color: var(--text-muted);
    font-style: italic;
}

/* ==========================================================================
   EXECUTIVE METRICS OVERVIEW STRIP
   ========================================================================== */
.metrics-overview-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.metric-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.2s ease;
}

.metric-chip:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.m-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.m-info {
    display: flex;
    flex-direction: column;
}

.m-lbl {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    font-weight: 600;
}

.m-val {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-white);
    margin-top: 2px;
}

/* ==========================================================================
   KANBAN TOOLS, FILTERS & AUTO-SYNC
   ========================================================================== */
.kanban-tools-cluster {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.filter-pills-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-pill:hover {
    color: var(--text-white);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.08);
}

.filter-pill.active {
    background: rgba(0, 255, 135, 0.15);
    border-color: var(--color-emerald);
    color: var(--color-emerald);
    box-shadow: 0 0 12px rgba(0, 255, 135, 0.2);
}

.kanban-actions-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.auto-sync-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.auto-sync-toggle input {
    display: none;
}

.toggle-slider {
    width: 28px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    position: relative;
    transition: all 0.2s ease;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    background: #888;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.auto-sync-toggle input:checked + .toggle-slider {
    background: rgba(0, 255, 135, 0.2);
    border-color: var(--color-emerald);
}

.auto-sync-toggle input:checked + .toggle-slider::after {
    left: 14px;
    background: var(--color-emerald);
    box-shadow: 0 0 8px var(--color-emerald);
}

/* SLA Pulsing Alert Tag */
.sla-alert-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 4px;
    padding: 2px 6px;
    margin-top: 6px;
    animation: pulseSla 2s infinite ease-in-out;
}

@keyframes pulseSla {
    0%, 100% { opacity: 1; border-color: rgba(239, 68, 68, 0.5); }
    50% { opacity: 0.6; border-color: rgba(239, 68, 68, 0.2); }
}

/* Print Action Button */
.btn-action-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-hover);
    color: var(--text-white);
}

.btn-action-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

/* ==========================================================================
   PRINT / PDF DOSSIER EXPORT STYLES
   ========================================================================== */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }

    .app-shell, .glow-orb, .hud-header, .agents-fleet-section, .kanban-tools-cluster,
    .modal-actions, .btn-close, .modal-backdrop:not(#ticket-modal-backdrop),
    .btn-reveal-pii {
        display: none !important;
    }

    #ticket-modal-backdrop {
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
        display: block !important;
    }

    .modal-card {
        border: 2px solid #000 !important;
        box-shadow: none !important;
        max-width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        background: #fff !important;
        color: #000 !important;
    }

    .modal-header {
        border-bottom: 2px solid #000 !important;
    }

    .modal-title-cluster h2 {
        color: #000 !important;
    }

    .inspector-summary-strip {
        background: #f4f4f5 !important;
        border: 1px solid #ccc !important;
        color: #000 !important;
    }

    .summary-box .val, .inspector-box {
        color: #000 !important;
        background: #fafafa !important;
        border: 1px solid #ddd !important;
    }
}
