/* J.A.R.V.I.S - Light Theme v4.0 (SocialPoster-Style) */

:root {
    --brand-color: #3b82f6;
    --sidebar-bg: #1e1e2d;
    --sidebar-width: 250px;

    /* Semantic Colors */
    --green: #198754;
    --red: #dc3545;
    --yellow: #ffc107;
    --orange: #fd7e14;
    --purple: #6f42c1;
    --cyan: var(--brand-color);

    /* Text */
    --text: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --text-dim: #adb5bd;
    --text-bright: #212529;

    /* Borders & Surfaces */
    --border: #dee2e6;
    --card-bg: #fff;
    --card-border: #dee2e6;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --bg-elevated: #fff;

    /* Legacy aliases */
    --accent: var(--brand-color);
    --accent-glow: rgba(59, 130, 246, 0.25);
    --accent-dim: var(--brand-color);
    --accent-subtle: rgba(59, 130, 246, 0.08);
    --bg-dark: #f8f9fa;
    --bg-card: #fff;
    --bg-sidebar: #1e1e2d;
    --cyan-glow: rgba(59, 130, 246, 0.25);
    --cyan-dim: var(--brand-color);
    --glass-bg: #fff;
    --glass-border: #dee2e6;
    --glass-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ====== BASE ====== */
body.dynos-bg {
    background: #f5f5f9;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

body.dynos-bg::after { display: none; }

.app-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.app-main::before { display: none; }

.main-content {
    flex: 1;
}

/* Page Content */
.page-content { padding: 24px; }

@media (max-width: 767.98px) {
    .page-content { padding: 16px; }
}

/* ====== SIDEBAR (Dark - SocialPoster Style) ====== */
.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.sidebar-brand {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    flex-shrink: 0;
}

.sidebar-logo-img {
    max-width: 160px;
    max-height: 48px;
    display: block;
    margin: 8px auto 0;
}

.sidebar-logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidebar-helmet-icon {
    flex-shrink: 0;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--brand-color);
    animation: helmColorShift 6s ease-in-out infinite;
}

@keyframes helmColorShift {
    0%, 100% { color: var(--brand-color); text-shadow: 0 0 10px rgba(59,130,246,0.5); }
    50%       { color: #818cf8; text-shadow: 0 0 10px rgba(129,140,248,0.5); }
}

.sidebar-logo-text {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-color), #818cf8, var(--orange));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    animation: logoShift 6s ease-in-out infinite;
}

@keyframes logoShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sidebar-logo-sub {
    display: block;
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 4px;
}

.sidebar-logo-brand {
    display: block;
    color: rgba(253, 126, 20, 0.5);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
    font-family: 'Rajdhani', sans-serif;
}

.sidebar-version {
    display: block;
    color: rgba(59, 130, 246, 0.4);
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
    font-family: 'Rajdhani', monospace;
}

.sidebar-dev-accent {
    height: 2px;
    background: linear-gradient(90deg, var(--orange), var(--brand-color));
}

.sidebar-nav {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-nav-item:hover {
    color: #93c5fd;
    background: rgba(59,130,246,0.08);
    border-left-color: rgba(59,130,246,0.5);
}

.sidebar-nav-item.active {
    color: #fff;
    background: rgba(59,130,246,0.14);
    border-left-color: var(--brand-color);
    box-shadow: inset 0 0 20px rgba(59,130,246,0.07);
}

.sidebar-nav-item.active i {
    color: #93c5fd;
}

.sidebar-nav-item i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    transition: color 0.2s;
}

.sidebar-bottom {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.15);
    flex-shrink: 0;
}

/* Sidebar Section Label + Edit Toggle */
.sidebar-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.25);
}
.sidebar-edit-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.2);
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.75rem;
    border-radius: 3px;
    transition: all 0.2s;
}
.sidebar-edit-toggle:hover {
    color: rgba(59,130,246,0.8);
    background: rgba(59,130,246,0.1);
}
.sidebar-edit-toggle.active {
    color: var(--brand-color);
    background: rgba(59,130,246,0.18);
}

/* Sidebar Groups */
.sidebar-group-header {
    cursor: pointer;
    user-select: none;
}
.sidebar-group-header .sidebar-group-label {
    flex: 1;
}
.sidebar-group-arrow {
    font-size: 0.65rem;
    margin-left: auto;
    transition: transform 0.2s;
    opacity: 0.4;
}
.sidebar-group-header[aria-expanded="false"] .sidebar-group-arrow {
    transform: rotate(-90deg);
}
.sidebar-group-delete {
    display: none;
    background: none;
    border: none;
    color: rgba(255,80,80,0.5);
    cursor: pointer;
    padding: 0 4px;
    font-size: 0.65rem;
}
.sidebar-child-item {
    padding-left: 36px !important;
    font-size: 0.825rem;
}

/* Edit Mode */
.sidebar-edit-mode .sidebar-group-delete {
    display: block;
}
.sidebar-edit-mode .sidebar-group-arrow {
    display: none;
}
.sidebar-edit-mode .sidebar-nav-item {
    cursor: grab;
}
.sidebar-edit-mode .sidebar-group {
    border: 1px dashed rgba(59,130,246,0.2);
    border-radius: 6px;
    margin: 4px 8px;
    padding: 2px 0;
}
.sidebar-edit-mode .sidebar-nav-item .badge {
    display: none;
}
.sidebar-drag-ghost {
    background: rgba(59,130,246,0.12) !important;
    border: 1px dashed rgba(59,130,246,0.45) !important;
    opacity: 0.5;
    border-radius: 4px;
}
.sidebar-drag-chosen {
    background: rgba(59,130,246,0.1) !important;
}

/* Edit Toolbar */
.sidebar-edit-toolbar {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-edit-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}
.sidebar-edit-btn:hover {
    background: rgba(0,212,255,0.1);
    color: #00d4ff;
    border-color: rgba(0,212,255,0.2);
}
.sidebar-reset-btn:hover {
    background: rgba(255,80,80,0.1);
    color: rgba(255,80,80,0.8);
    border-color: rgba(255,80,80,0.2);
}

.sidebar-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.sidebar-status small {
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.75);
    font-size: 0.875rem;
    margin-bottom: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.2s;
    cursor: pointer;
}

.sidebar-user:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.sidebar-user i {
    color: var(--brand-color);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.sidebar-logout:hover {
    color: var(--red);
    background: rgba(220,53,69,0.1);
}

/* ====== APP HEADER ====== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title {
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text);
    margin: 0;
    font-size: 0.875rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Health Service Indicators (Ampel) */
.health-indicators {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    cursor: default;
}
.health-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background: #555;
    transition: background 0.3s, box-shadow 0.3s;
}
.health-dot.health-ok {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,0.5);
}
.health-dot.health-error {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239,68,68,0.5);
}
.health-dot.health-unconfigured {
    background: #a3a3a3;
    box-shadow: none;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(25, 135, 84, 0.08);
    border: 1px solid rgba(25, 135, 84, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--green);
    text-transform: uppercase;
}

.header-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

/* ====== CARDS ====== */
.dynos-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dynos-card::before { display: none; }

.dynos-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dynos-header {
    background: #f8f9fa;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 18px;
}

.dynos-header h5 {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-secondary);
}

/* ====== UTILITY CLASSES ====== */
.text-cyan { color: var(--brand-color) !important; }
.text-orange { color: var(--orange) !important; }
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.text-yellow { color: #b8860b !important; }
.text-purple { color: var(--purple) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-dim { color: var(--text-dim) !important; }
.text-bright { color: var(--text-bright) !important; }
.text-white { color: #fff !important; }
.text-muted-jarvis { color: var(--text-muted) !important; }

/* Card Header */
.dynos-card-header {
    background: #f8f9fa;
    border-bottom: 1px solid var(--border);
    padding: 12px 18px;
}

.dynos-card-header h6 {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
}

/* Stat Cards */
.stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-value {
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--text);
}

.stat-value small {
    color: var(--text-secondary);
    font-size: 0.6em;
}

.stat-icon {
    font-size: 1.8rem;
    opacity: 0.12;
}

.stat-detail {
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-detail .stat-dot {
    font-size: 0.5rem;
    vertical-align: middle;
    margin-right: 2px;
}

.stat-trend {
    font-size: 0.875rem;
}

.stat-card .card-body {
    position: relative;
}

.stat-card .stat-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: rgba(0,0,0,0.05);
}

.stat-card h2 {
    font-weight: 700;
    font-size: 2rem;
}

.stat-card h2 small {
    font-size: 0.875rem;
}

.text-warning-dim { color: rgba(255, 193, 7, 0.25) !important; }

/* Solid Buttons */
.btn-cyan {
    background: var(--brand-color);
    color: #fff;
    border: 1px solid var(--brand-color);
    font-size: 0.875rem;
    transition: background 0.2s, border-color 0.2s;
}
.btn-cyan:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.btn-cyan:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Link Buttons */
.btn-link-cyan {
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--brand-color);
    font-size: 0.875rem;
    background: transparent;
    transition: all 0.2s;
}
.btn-link-cyan:hover {
    background: var(--brand-color);
    color: #fff;
}

.btn-link-orange {
    border: 1px solid rgba(253, 126, 20, 0.3);
    color: var(--orange);
    font-size: 0.875rem;
    background: transparent;
    transition: all 0.2s;
}
.btn-link-orange:hover {
    background: var(--orange);
    color: #fff;
}

.btn-link-green {
    border: 1px solid rgba(25, 135, 84, 0.3);
    color: var(--green);
    font-size: 0.875rem;
    background: transparent;
    transition: all 0.2s;
}
.btn-link-green:hover {
    background: var(--green);
    color: #fff;
}

.btn-link-purple {
    border: 1px solid rgba(111, 66, 193, 0.3);
    color: var(--purple);
    font-size: 0.875rem;
    background: transparent;
    transition: all 0.2s;
}
.btn-link-purple:hover {
    background: var(--purple);
    color: #fff;
}

.btn-link-red {
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: var(--red);
    font-size: 0.875rem;
    background: transparent;
    transition: all 0.2s;
}
.btn-link-red:hover {
    background: var(--red);
    color: #fff;
}

/* List Items */
.dynos-list-item {
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    transition: background 0.15s;
}
.dynos-list-item:last-child { border-bottom: none; }
.dynos-list-item:hover { background: rgba(0,0,0,0.02); }

/* Labels */
.dynos-label {
    color: var(--brand-color);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Badge Base */
.dynos-badge {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
}

/* Empty State */
.dynos-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}
.dynos-empty .bi, .empty-state-icon {
    font-size: 3rem;
    color: rgba(0,0,0,0.08);
    display: block;
    margin-bottom: 1rem;
}

/* Page Title */
.page-title {
    color: var(--text);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.15rem;
}

/* ====== MODALS (Light - Bootstrap Default) ====== */
.modal-content {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 12px 20px;
}

.modal-title {
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.btn-close {
    filter: none;
    opacity: 0.5;
}
.btn-close:hover { opacity: 0.8; }

.modal-backdrop.show {
    opacity: 0.5;
    background: #000;
}

/* ====== TABLES ====== */
.dynos-card .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--border);
    margin-bottom: 0;
}

.badge-status {
    font-weight: 600;
}

/* table-dark class: remap to light table on light theme */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-hover-bg: rgba(0,0,0,0.02);
    --bs-table-striped-bg: rgba(0,0,0,0.015);
    border-color: var(--border);
    color: var(--text) !important;
    background: transparent !important;
}

.table-dark th {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-color: var(--border);
    padding: 10px 15px;
    background: #f8f9fa !important;
}

.table-dark td {
    border-color: var(--border);
    padding: 10px 15px;
    font-size: 0.9rem;
    color: var(--text);
}

/* ====== BADGES ====== */
.badge-status-draft { background: #e9ecef; color: #6c757d; }
.badge-status-planning { background: rgba(59, 130, 246, 0.12); color: var(--brand-color); }
.badge-status-implementation { background: rgba(255, 193, 7, 0.15); color: #997404; }
.badge-status-review { background: rgba(111, 66, 193, 0.12); color: var(--purple); }
.badge-status-deployment { background: rgba(253, 126, 20, 0.12); color: #c35a00; }
.badge-status-done { background: rgba(25, 135, 84, 0.12); color: var(--green); }

.badge-priority-low { background: rgba(25, 135, 84, 0.12); color: var(--green); }
.badge-priority-medium { background: rgba(255, 193, 7, 0.15); color: #997404; }
.badge-priority-high { background: rgba(253, 126, 20, 0.12); color: #c35a00; }
.badge-priority-critical { background: rgba(220, 53, 69, 0.12); color: var(--red); }

/* ====== BUTTONS ====== */
.btn-outline-cyan {
    border-color: var(--brand-color);
    color: var(--brand-color);
    background: transparent;
    font-weight: 500;
}
.btn-outline-cyan:hover {
    background: var(--brand-color);
    color: #fff;
}

.btn-outline-orange {
    border-color: var(--orange);
    color: var(--orange);
    background: transparent;
}
.btn-outline-orange:hover {
    background: var(--orange);
    color: #fff;
}

.btn-jarvis {
    background: var(--brand-color) !important;
    border: 1px solid var(--brand-color) !important;
    color: #fff !important;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.btn-jarvis::before { display: none; }
.btn-jarvis:hover,
.btn-jarvis:focus,
.btn-jarvis:active {
    background: var(--brand-color) !important;
    border-color: var(--brand-color) !important;
    color: #fff !important;
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ====== FORMS ====== */
.dynos-input,
.form-control.dynos-input,
.form-select.dynos-input {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.9rem;
    padding: 8px 12px;
}

.dynos-input:focus,
.form-control.dynos-input:focus,
.form-select.dynos-input:focus {
    background: #fff;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    color: var(--text);
}

.dynos-input::placeholder {
    color: #adb5bd;
}

.form-label.text-cyan {
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.form-select.dynos-input option {
    background: #fff;
    color: var(--text);
}

/* Progress bars */
.progress {
    background: #e9ecef;
    border-radius: 4px;
}
.progress-bar {
    background: var(--brand-color);
}
.bg-cyan {
    background: var(--brand-color) !important;
}

/* ====== NAV TABS ====== */
.nav-tabs {
    border-color: var(--border);
}
.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}
.nav-tabs .nav-link:hover {
    color: var(--text);
    border-bottom-color: rgba(59, 130, 246, 0.3);
    background: transparent;
}
.nav-tabs .nav-link.active {
    color: var(--brand-color);
    border-bottom-color: var(--brand-color);
    background: transparent;
    font-weight: 600;
}
.tab-content {
    color: var(--text);
}

/* ====== KANBAN ====== */
.kanban-board {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 10px;
}

.kanban-column {
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
}

.kanban-header {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-header .count {
    background: rgba(59, 130, 246, 0.08);
    color: var(--brand-color);
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.8rem;
}

.kanban-tasks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
    align-items: flex-start;
}

.kanban-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: grab;
    transition: all 0.2s;
    width: 280px;
    flex-shrink: 0;
}

.kanban-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.kanban-card.sortable-ghost {
    opacity: 0.4;
    border: 2px dashed var(--brand-color);
}

.kanban-card.sortable-drag {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.kanban-card-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text);
}

.kanban-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ====== DASHBOARD WIDGETS ====== */

/* Kanban Ring Chart */
.kanban-ring-container { flex-shrink: 0; }
.kanban-ring-sm .kanban-ring { width: 70px; height: 70px; }
.kanban-ring-sm .kanban-ring-inner { width: 46px; height: 46px; }
.kanban-ring-sm .kanban-ring-value { font-size: 1rem; }
.kanban-ring-sm .kanban-ring-label { font-size: 0.6rem; }

.kanban-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.kanban-ring-inner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kanban-ring-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-color);
    line-height: 1;
}

.kanban-ring-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Kanban Legend */
.kanban-legend-item {
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s;
    min-width: 80px;
}
.kanban-legend-item:hover { background: rgba(0,0,0,0.03); }

.kanban-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.kanban-legend-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.kanban-legend-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2px;
}

/* Agent Panel */
.agent-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-task {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-task-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Activity Feed */
.dynos-list { background: transparent; }

.dynos-list .list-group-item {
    background: transparent;
    border: none;
    color: var(--text);
    padding: 0;
}

.feed-item {
    padding: 10px 16px !important;
    transition: background 0.15s;
}
.feed-item:hover { background: rgba(0,0,0,0.02); }

.feed-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.feed-title {
    font-size: 0.875rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-time {
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Webhook Badges */
.webhook-badge {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.webhook-badge-ok { background: rgba(25, 135, 84, 0.12); color: var(--green); }
.webhook-badge-err { background: rgba(220, 53, 69, 0.12); color: var(--red); }

.webhook-event-name {
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.webhook-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: auto;
}

/* Claude Code Badges */
.claude-active-badge {
    background: rgba(59, 130, 246, 0.08);
    color: var(--brand-color);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: statusPulse 2s infinite;
}

.claude-session-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* ====== AGENT STATUS ====== */
.agent-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid var(--border);
}
.agent-item:last-child { border-bottom: none; }

.agent-status.active { background: var(--green); box-shadow: 0 0 8px var(--green); }
.agent-status.idle { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.agent-status.error { background: var(--red); box-shadow: 0 0 8px var(--red); }
.agent-status.offline { background: #6c757d; }

.agent-info { flex: 1; }
.agent-info strong { font-size: 0.9rem; }
.agent-info small { display: block; color: var(--text-secondary); font-size: 0.85rem; }

/* ====== CHAT ====== */
.chat-container {
    display: flex;
    height: calc(100vh - 56px);
}

.chat-sidebar {
    width: 280px;
    border-right: 1px solid var(--border);
    background: #f8f9fa;
    overflow-y: auto;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.chat-message {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-message .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.chat-message.assistant .avatar {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--brand-color);
}

.chat-message.user .avatar {
    background: rgba(253, 126, 20, 0.1);
    border: 1px solid rgba(253, 126, 20, 0.2);
    color: var(--orange);
}

.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.chat-message.assistant .chat-bubble {
    background: #f8f9fa;
    border: 1px solid var(--border);
    color: var(--text);
}

.chat-message.user .chat-bubble {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.12);
    color: var(--text);
}

.chat-input-area {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: #f8f9fa;
}

.chat-input-group {
    display: flex;
    gap: 10px;
}

.chat-input-group textarea {
    flex: 1;
    resize: none;
    min-height: 44px;
    max-height: 120px;
}

/* ====== CONVERSATION LIST ====== */
.conv-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.conv-item:hover {
    background: rgba(0,0,0,0.03);
    border-left-color: rgba(59, 130, 246, 0.2);
}

.conv-item.active {
    background: rgba(59, 130, 246, 0.06);
    border-left-color: var(--brand-color);
}

.conv-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 3px;
    color: var(--text);
}

.conv-item-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ====== ALERTS (Bootstrap Defaults - no override needed) ====== */
.alert {
    border-radius: 8px;
    font-size: 0.9rem;
}

/* ====== SETTINGS ====== */
.toggle-pw {
    background: #f8f9fa;
    border-color: var(--border);
    color: var(--text-secondary);
    transition: all 0.2s;
}
.toggle-pw:hover {
    background: #e9ecef;
    color: var(--text);
}
.toggle-pw.active {
    color: var(--brand-color);
    background: rgba(59, 130, 246, 0.08);
}

/* ====== ANIMATIONS ====== */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.2); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
}

@keyframes glow-border {
    0%, 100% { border-color: var(--border); }
    50% { border-color: rgba(59, 130, 246, 0.3); }
}

@keyframes typing-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.typing-indicator::after {
    content: '|';
    animation: typing-cursor 0.8s infinite;
    color: var(--brand-color);
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====== SCROLLBAR ====== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* ====== TOAST ====== */
.toast-container { z-index: 9999 !important; }
.toast {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 767.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    .sidebar-nav-item {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
    .sidebar-brand {
        padding: 12px 12px;
    }
    .sidebar-logo-text {
        font-size: 1.2rem;
    }
    .app-sidebar.open {
        transform: translateX(0);
        box-shadow: 5px 0 30px rgba(0,0,0,0.3);
    }
    .app-main { margin-left: 0; }
    .sidebar-toggle-btn { display: block !important; }
    .kanban-board { flex-direction: column; }
    .kanban-tasks { flex-direction: column; }
    .kanban-card { width: 100%; }
    .chat-sidebar { display: none; }
    .chat-container { height: calc(100vh - 56px); }
}

.sidebar-toggle-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--brand-color);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* ====== CLAUDE CODE ====== */
.claude-container {
    display: flex;
    min-height: 500px;
    max-height: calc(100vh - 56px);
    overflow-x: hidden;
}

.claude-sidebar {
    width: 340px;
    min-width: 340px;
    border-right: 1px solid var(--border);
    background: var(--card-bg, #f8f9fa);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.claude-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    background: #fff;
}

.claude-events {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 24px;
    position: relative;
    z-index: 2;
    min-width: 0;
}

.claude-event {
    margin-bottom: 10px;
    border-left: 3px solid var(--border);
    padding: 10px 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
    animation: eventSlideIn 0.3s ease-out;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    overflow: hidden;
}

.claude-event pre,
.claude-event code {
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
}

@keyframes eventSlideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.claude-event:hover { background: #f0f1f3; }

.claude-event.text { border-left-color: var(--brand-color); }
.claude-event.tool_use { border-left-color: var(--orange); background: rgba(253, 126, 20, 0.04); }
.claude-event.tool_use.ask-user { border-left-color: #a855f7; background: rgba(168, 85, 247, 0.08); border: 1px solid rgba(168, 85, 247, 0.25); border-left-width: 3px; }
.claude-event.tool_result { border-left-color: var(--green); background: rgba(25, 135, 84, 0.04); }
.claude-event.error { border-left-color: var(--red); background: rgba(220, 53, 69, 0.05); border: 1px solid rgba(220, 53, 69, 0.15); border-left-width: 3px; }
.claude-event.status { border-left-color: var(--purple); background: rgba(111, 66, 193, 0.04); }
.claude-event.result { border-left-color: var(--green); background: rgba(25, 135, 84, 0.05); border: 1px solid rgba(25, 135, 84, 0.15); border-left-width: 3px; }
.claude-event.user_message { border-left-color: #af52de; background: rgba(175, 82, 222, 0.06); }

.event-filter-btn { background: rgba(255,255,255,0.05); color: var(--text-dim); border: 1px solid var(--border); border-radius: 12px; transition: all 0.15s; }
.event-filter-btn:hover { background: rgba(0,212,255,0.08); color: var(--brand-color); border-color: rgba(0,212,255,0.2); }
.event-filter-btn.active { background: rgba(0,212,255,0.12); color: var(--brand-color); border-color: rgba(0,212,255,0.3); }

.claude-tool-details summary::-webkit-details-marker { display: none; }
.claude-tool-details[open] .claude-tool-chevron { transform: rotate(90deg); }
.claude-tool-details summary:hover { opacity: 0.8; }

.claude-tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(253, 126, 20, 0.08);
    color: #c35a00;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(253, 126, 20, 0.15);
}

.claude-tool-badge.ask-user-badge {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.3);
    animation: statusPulse 1.5s infinite;
}

.claude-session-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.claude-session-item:hover {
    background: rgba(0,0,0,0.03);
    border-left-color: rgba(59, 130, 246, 0.2);
}

.claude-session-item.active {
    background: rgba(59, 130, 246, 0.06);
    border-left-color: var(--brand-color);
}

/* Status Badges */
.claude-status-badge {
    font-size: 0.8rem;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    font-weight: 600;
}

.claude-status-pending { background: #e9ecef; color: #6c757d; border: 1px solid #dee2e6; }
.claude-status-cloning { background: rgba(111, 66, 193, 0.1); color: var(--purple); border: 1px solid rgba(111, 66, 193, 0.2); animation: statusPulse 1.5s infinite; }
.claude-status-running { background: rgba(59, 130, 246, 0.1); color: var(--brand-color); border: 1px solid rgba(59, 130, 246, 0.2); animation: statusPulse 1.5s infinite; }
.claude-status-waiting { background: rgba(168, 85, 247, 0.12); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); animation: statusPulse 1.5s infinite; }
.claude-status-kb_syncing { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); animation: statusPulse 1.5s infinite; }
.claude-status-completed { background: rgba(25, 135, 84, 0.1); color: var(--green); border: 1px solid rgba(25, 135, 84, 0.2); }
.claude-status-failed { background: rgba(220, 53, 69, 0.1); color: var(--red); border: 1px solid rgba(220, 53, 69, 0.2); }
.claude-status-stopped { background: rgba(253, 126, 20, 0.1); color: #c35a00; border: 1px solid rgba(253, 126, 20, 0.2); }
.claude-status-timeout { background: rgba(253, 126, 20, 0.1); color: #c35a00; border: 1px solid rgba(253, 126, 20, 0.2); }

/* Cloning Progress Bar (Retro Sci-Fi, 15s) */
.cloning-progress-wrap {
    display: none;
    height: 3px;
    background: rgba(111, 66, 193, 0.1);
    border-bottom: 1px solid rgba(111, 66, 193, 0.15);
    overflow: hidden;
    position: relative;
}
.cloning-progress-wrap.active {
    display: block;
}
.cloning-progress-fill {
    position: absolute;
    top: 0; left: 0; height: 100%;
    width: 0%;
    background: linear-gradient(90deg, transparent, var(--purple), rgba(180, 130, 255, 0.5));
    box-shadow: 0 0 8px rgba(111, 66, 193, 0.9), 0 0 16px rgba(111, 66, 193, 0.4);
    transition: width 0.15s linear;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.claude-session-header {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    background: #f8f9fa;
    position: relative;
    z-index: 2;
}

.claude-session-header .session-stats {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.claude-session-header .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.claude-session-header .stat-item i {
    color: var(--brand-color);
    font-size: 0.9rem;
}

.claude-session-header .stat-value {
    color: var(--text);
    font-weight: 600;
    font-size: inherit;
}

.claude-welcome-icon {
    font-size: 4rem;
    color: var(--brand-color);
    opacity: 0.15;
    animation: welcomeFloat 3s ease-in-out infinite;
}

@keyframes welcomeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.claude-activity-ring {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.claude-activity-ring.active {
    border-color: var(--brand-color);
    animation: ringPulse 2s infinite;
}

.claude-activity-ring.active::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.15);
    animation: ringExpand 2s infinite;
}

@keyframes ringPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.15); }
    50% { box-shadow: 0 0 10px 3px rgba(59, 130, 246, 0.08); }
}

@keyframes ringExpand {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

.claude-event-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.claude-event-time::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

.claude-followup {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: #f8f9fa;
    position: relative;
    z-index: 2;
}

.claude-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-color);
    display: inline-block;
    animation: liveBlink 1s infinite;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.claude-event-bar {
    height: 3px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

.claude-event-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-color), var(--purple));
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Mobile stats bar for Cloud Code / Cloud Runner */
.claude-mobile-stats {
    display: flex;
    gap: 2px;
    padding: 8px 12px;
    background: var(--card-bg, #f8f9fa);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
}
.claude-mobile-stats::-webkit-scrollbar { display: none; }

.claude-mobile-stat {
    flex: 1 1 0%;
    min-width: 0;
    text-align: center;
    padding: 6px 10px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.claude-mobile-stat .stat-num {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.claude-mobile-stat .stat-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.claude-mobile-stat-icon {
    font-size: 1rem;
    padding-top: 4px;
    line-height: 1.2;
}

/* Welcome stats row (Cloud Runner) */
.claude-welcome-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.claude-welcome-stat {
    text-align: center;
    min-width: 60px;
}

.claude-prompt-details summary::-webkit-details-marker { display: none; }
.claude-prompt-details[open] .claude-tool-chevron { transform: rotate(90deg); }

.claude-session-history { opacity: 0.8; }
.claude-session-history:hover { opacity: 1; }

/* ====== RESPONSIVE: TABLET (< 992px) ====== */
@media (max-width: 991.98px) {
    /* Claude Code / Runner Sidebar */
    .claude-container { flex-direction: column; height: auto; min-height: auto; max-height: none; overflow-x: hidden; }
    .claude-sidebar { width: 100%; min-width: auto; max-width: 100%; max-height: none; border-right: none; border-bottom: 1px solid var(--border); overflow-x: hidden; }
    .claude-sidebar #sessionList { max-height: 250px; overflow-y: auto; }
    .claude-main { min-height: 400px; }
    .claude-event { font-size: 0.85rem; padding: 8px 12px; }
    .claude-events { padding: 12px 16px !important; }
    .claude-session-header { flex-wrap: wrap; }
    .session-stats { display: none; }
    #jarvisConsole .card-body .row { flex-direction: column; }
    #jarvisConsole .col-md-5, #jarvisConsole .col-md-4, #jarvisConsole .col-md-3, #jarvisConsole .col-md-2 { width: 100%; }
    /* Action buttons: stack vertically on tablet */
    .session-action-buttons { flex-direction: column !important; }
    /* Session header buttons: full width wrap */
    .session-header-actions { width: 100%; flex-wrap: wrap !important; gap: 4px !important; }
    .session-header-actions > .btn { flex: 0 0 auto; font-size: 0.75rem !important; padding: 0.2rem 0.5rem !important; }

    /* Welcome stats compact on tablet */
    .stat-value-lg { font-size: 1.2rem; }
}

/* ====== RESPONSIVE: MOBILE LANDSCAPE (< 768px) ====== */
@media (max-width: 767.98px) {
    /* Projekte/Kunden: List-View Tabellen responsive */
    .dynos-table { font-size: 0.8rem !important; }
    .dynos-table thead { display: none; }
    .dynos-table tbody tr {
        display: flex; flex-direction: column;
        padding: 10px 12px; border-bottom: 1px solid var(--border);
        gap: 4px;
    }
    .dynos-table tbody td {
        display: flex; align-items: center; gap: 6px;
        padding: 2px 0 !important; border: none !important;
        text-align: left !important; width: 100% !important;
    }
    .dynos-table tbody td:empty { display: none; }
    .dynos-table tbody td[data-label]::before { content: attr(data-label); font-weight: 600; color: var(--text-muted); font-size: 0.7rem; min-width: 70px; }
    .dynos-table tbody td[data-label=""]::before { display: none; }

    /* Kanban: Filter-Dropdowns stacken */
    .kanban-board + .d-flex .d-flex.align-items-center.gap-1,
    #customerFilter, #projectFilter { min-width: 0 !important; max-width: none !important; width: 100%; }

    /* Kanban Card Badges */
    .kanban-card-meta { flex-wrap: wrap; gap: 3px !important; }

    /* Page headers */
    .page-title { font-size: 1.2rem !important; }

    /* Modals: begrenzte Höhe auf Mobile */
    .modal-lg .modal-dialog, .modal-dialog.modal-lg { max-width: 100%; margin: 0.5rem; }
    .modal-dialog { max-height: 90vh; }
    .modal-content { max-height: 90vh; display: flex; flex-direction: column; }
    .modal-body { overflow-y: auto; flex: 1 1 auto; }

    /* Claude Code / Runner: Mobile stats bar compact */
    .claude-mobile-stats { padding: 6px 8px; gap: 4px; max-width: 100%; }
    .claude-mobile-stat { min-width: 0; padding: 5px 6px; }
    .claude-mobile-stat .stat-num { font-size: 0.95rem; }

    /* Claude Code / Runner: Welcome stats compact */
    .stat-value-lg { font-size: 1rem !important; }
    .sub-label { font-size: 0.7rem; }
    .dynos-vdivider { height: 30px; align-self: center; }

    /* Claude Code / Runner: Session header compact */
    .claude-session-header { padding: 10px 12px; overflow-x: visible; flex-wrap: wrap !important; }
    .claude-session-header .d-flex.gap-3 { gap: 0.5rem !important; }
    .claude-session-header .d-flex.gap-2 { flex-wrap: wrap; gap: 4px !important; }
    .claude-session-header > .d-flex { flex-wrap: wrap; gap: 8px !important; }
    .session-header-actions { width: 100% !important; flex-shrink: 1 !important; flex-wrap: wrap !important; gap: 4px !important; }
    .session-header-actions > .btn { font-size: 0.75rem !important; padding: 0.2rem 0.5rem !important; }
    .claude-activity-ring { width: 32px; height: 32px; }
    .claude-activity-ring i { font-size: 0.8rem !important; }
    #sessionTitle { font-size: 0.9rem !important; }

    /* Claude Code / Runner: Sidebar status row no overflow */
    .claude-sidebar .d-flex.gap-3 { flex-wrap: wrap; gap: 4px !important; font-size: 0.75rem !important; }
    .claude-sidebar .p-3 { overflow-x: hidden; }

    /* Claude Code / Runner: Prevent horizontal overflow */
    .claude-container { max-width: 100vw; overflow-x: hidden; }
    .claude-main { overflow-x: hidden; max-width: 100%; }
    .claude-events { overflow-x: hidden; word-break: break-word; }
    .claude-event { overflow-x: hidden; word-break: break-word; }
    .claude-event code { word-break: break-all; }
    .claude-event pre { overflow-x: auto; max-width: 100%; }

    /* Claude Code / Runner: Session-Historie no overflow */
    .mt-3 > .dynos-card { overflow-x: hidden; }

    /* Claude Code / Runner: Followup compact */
    .claude-followup { padding: 8px 12px; }
}

/* ====== RESPONSIVE: MOBILE PORTRAIT (< 576px) ====== */
@media (max-width: 575.98px) {
    /* Claude Code */
    .claude-sidebar #sessionList { max-height: 180px; }
    .claude-event { font-size: 0.8rem; padding: 6px 10px; }
    .claude-events { padding: 8px 12px !important; max-height: none !important; }
    #jarvisConsole .py-4.px-4 { padding: 1rem !important; }
    .claude-session-header .d-flex.gap-2 { flex-wrap: wrap; gap: 4px !important; }
    .claude-session-header .btn { font-size: 0.75rem !important; padding: 0.2rem 0.5rem !important; }
    .claude-followup .form-control { font-size: 16px !important; } /* iOS zoom prevention */
    #consolePrompt { min-height: 80px !important; font-size: 16px !important; } /* iOS zoom prevention */

    /* Claude Code / Runner: Mobile stats even more compact */
    .claude-mobile-stats { padding: 4px 6px; gap: 3px; max-width: 100%; }
    .claude-mobile-stat { min-width: 0; padding: 4px 4px; border-radius: 6px; }
    .claude-mobile-stat .stat-num { font-size: 0.85rem; }
    .claude-mobile-stat .stat-lbl { font-size: 0.6rem; }

    /* Claude Code / Runner: Welcome stats row as scrollable pills */
    .stat-value-lg { font-size: 0.9rem !important; }
    .sub-label { font-size: 0.65rem; }

    /* Claude Code / Runner: Session header ultra compact */
    .claude-session-header { padding: 8px 10px; overflow-x: visible; }
    .session-header-actions { width: 100% !important; gap: 3px !important; justify-content: flex-start !important; }
    .session-header-actions > .btn { font-size: 0.7rem !important; padding: 2px 6px !important; }
    .session-action-buttons { width: auto; gap: 3px !important; }
    .session-action-buttons .btn { font-size: 0.7rem !important; padding: 2px 6px !important; }
    #sessionTitle { font-size: 0.8rem !important; letter-spacing: 0 !important; }
    .claude-status-badge { font-size: 0.65rem; padding: 1px 5px; }

    /* Projekte/Kunden Grid: immer volle Breite */
    .col-md-6, .col-lg-4 { width: 100% !important; flex: 0 0 100% !important; }

    /* Kanban: Toolbar kompakt */
    .kanban-board { gap: 8px !important; }
    .kanban-column { min-width: 0 !important; }
    .kanban-card { font-size: 0.8rem; }
    .kanban-card-title { font-size: 0.85rem !important; }

    /* Buttons kompakt */
    .btn-jarvis, .btn-outline-cyan { font-size: 0.8rem !important; padding: 0.3rem 0.6rem !important; }

    /* Cards: weniger Padding */
    .card-body { padding: 0.75rem !important; }
    .dynos-card-header { padding: 0.5rem 0.75rem !important; font-size: 0.85rem; }
}

/* ====== HEALTH CHECKER ====== */
.health-hero {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.health-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-color), var(--green), var(--orange));
}

.health-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.health-score-ring {
    width: 80px;
    height: 80px;
    position: relative;
    flex-shrink: 0;
}

.health-ring-svg { width: 100%; height: 100%; }

.health-score-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.health-score-text span { font-size: 1.6rem; font-weight: 700; color: var(--green); }
.health-score-text small { font-size: 0.75rem; color: var(--text-secondary); margin-top: 6px; }

.health-title {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.health-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 2px;
}

.health-timestamp {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

/* ====== HEALTH ORBITAL CIRCLE ====== */
.health-orbit-container {
    position: relative;
    width: 380px;
    height: 380px;
    margin: 0 auto;
}

.health-orbit-ring {
    position: absolute;
    top: 40px; left: 40px; right: 40px; bottom: 40px;
    border: 1px dashed rgba(0,0,0,0.08);
    border-radius: 50%;
    animation: orbitSpin 90s linear infinite;
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.health-orbit-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.health-orbit-center .health-score-ring { width: 110px; height: 110px; }
.health-orbit-center .health-score-text span { font-size: 2rem; }

.health-orbit-nodes {
    position: absolute;
    inset: 0;
}

.health-orbit-node {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.health-orbit-node:hover {
    transform: translate(-50%, -50%) scale(1.3);
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.health-orbit-node.status-online { border-color: var(--green); box-shadow: 0 2px 8px rgba(25, 135, 84, 0.15); }
.health-orbit-node.status-offline { border-color: var(--red); box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15); }
.health-orbit-node.status-degraded { border-color: var(--orange); box-shadow: 0 2px 8px rgba(253, 126, 20, 0.15); }
.health-orbit-node.status-unconfigured { border-color: var(--border); opacity: 0.5; }

.health-orbit-node-icon { font-size: 1.2rem; line-height: 1; }
.health-orbit-node-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 2px; white-space: nowrap; color: var(--text-secondary); }
.health-orbit-node-status { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 1px; }

.health-orbit-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 140px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 20;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.health-orbit-node:hover .health-orbit-tooltip { opacity: 1; }

.health-orbit-tooltip-name { font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.health-orbit-tooltip-info { font-size: 0.75rem; color: var(--text-secondary); }
.health-orbit-tooltip-latency { font-size: 0.7rem; color: var(--brand-color); font-variant-numeric: tabular-nums; margin-top: 4px; }
.health-orbit-tooltip-gauge { height: 3px; background: #e9ecef; border-radius: 2px; overflow: hidden; margin-top: 6px; }
.health-orbit-tooltip-gauge-fill { height: 100%; border-radius: 2px; transition: width 0.5s ease; }

.health-orbit-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,0,0,0.06), transparent);
    transform-origin: left center;
    z-index: 1;
    pointer-events: none;
}

/* ====== WIDGET SYSTEM ====== */
.widget-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.dynos-widget {
    position: relative;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.widget-drag-handle {
    cursor: grab;
    padding: 4px 8px;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 1rem;
}

.dynos-widget:hover .widget-drag-handle { opacity: 0.4; }
.dynos-widget:hover .widget-drag-handle:hover { opacity: 1; color: var(--brand-color); }
.widget-drag-handle:active { cursor: grabbing; }

.dynos-widget.widget-dragging { opacity: 0.4; transform: scale(0.98); z-index: 100; }
.dynos-widget.widget-drop-target { outline: 2px dashed var(--brand-color); outline-offset: 4px; }
.dynos-widget.widget-drop-target::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(59, 130, 246, 0.03);
    border-radius: 10px;
    pointer-events: none;
    z-index: -1;
}

/* Widget Row Layout */
.widget-row:has(> [data-width]) {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.widget-row > [data-width="12"] { grid-column: span 12; }
.widget-row > [data-width="8"] { grid-column: span 8; }
.widget-row > [data-width="6"] { grid-column: span 6; }
.widget-row > [data-width="4"] { grid-column: span 4; }
.widget-row > [data-width="3"] { grid-column: span 3; }

@media (max-width: 991.98px) {
    .widget-row:has(> [data-width]) { grid-template-columns: 1fr; }
    .widget-row > [data-width] { grid-column: span 1; }
}

/* ====== HEALTH RESPONSIVE ====== */
@media (max-width: 767.98px) {
    .health-hero-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .health-orbit-container { width: 100%; height: auto; min-height: 300px; }
    .health-orbit-ring { display: none; }
    .health-orbit-center { position: relative; top: auto; left: auto; transform: none; margin: 0 auto 20px; }
    .health-orbit-nodes { position: relative !important; inset: auto !important; display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .health-orbit-node { position: relative !important; top: auto !important; left: auto !important; width: 100% !important; height: auto !important; border-radius: 8px !important; padding: 10px; transform: none !important; }
    .health-orbit-node:hover { transform: none !important; }
    .health-orbit-tooltip { display: none; }
    .health-orbit-line { display: none; }
}

/* ====== KANBAN PROGRESS ====== */
.kanban-progress-bar {
    height: 3px;
    background: rgba(255, 193, 7, 0.15);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.kanban-progress-fill {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #ffc107, var(--brand-color));
    border-radius: 2px;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0% { width: 20%; opacity: 0.6; }
    50% { width: 80%; opacity: 1; }
    100% { width: 20%; opacity: 0.6; }
}

.kanban-card.automation-active {
    border-left: 3px solid #ffc107;
}

.kanban-card.kanban-card-running {
    border-left: 3px solid #ffc107;
    background: rgba(255, 193, 7, 0.04);
}

.kanban-card.kanban-card-running:hover {
    background: rgba(255, 193, 7, 0.08);
}

.kanban-card.kanban-card-done {
    border-left: 3px solid var(--green);
    background: rgba(25, 135, 84, 0.04);
}

.kanban-card.kanban-card-done:hover {
    background: rgba(25, 135, 84, 0.08);
}

.kanban-card.kanban-card-failed {
    border-left: 3px solid var(--red);
    background: rgba(220, 53, 69, 0.04);
}

.kanban-card.kanban-card-failed:hover {
    background: rgba(220, 53, 69, 0.08);
}

/* ====== CARD FOOTER ====== */
.card-footer {
    background: transparent;
    border-top: 1px solid var(--border);
}

/* ====== MISC BOOTSTRAP OVERRIDES ====== */
.text-muted { color: var(--text-secondary) !important; }

.input-group .btn {
    border-color: var(--border);
}

code {
    color: #d63384;
    background: rgba(214, 51, 132, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

pre code {
    background: none;
    padding: 0;
}

.text-decoration-none {
    transition: opacity 0.2s;
}
.text-decoration-none:hover { opacity: 0.8; }

hr {
    border-color: var(--border);
    opacity: 1;
}

.dropdown-menu {
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.dropdown-item {
    color: var(--text);
}
.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--text);
}

/* ====== UTILITY CLASSES ====== */
.fs-xs { font-size: 0.75rem !important; }
.fs-sm { font-size: 0.85rem !important; }
.fs-md { font-size: 0.9rem !important; }
.fs-lg { font-size: 1.05rem !important; }
.fs-xl { font-size: 1.5rem !important; }
.fs-2xl { font-size: 2rem !important; }
.fs-3xl { font-size: 2.5rem !important; }
.fs-4xl { font-size: 3rem !important; }

.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }

.ls-1 { letter-spacing: 1px !important; }
.ls-2 { letter-spacing: 2px !important; }
.ls-3 { letter-spacing: 3px !important; }

.stat-value-lg {
    font-size: 1.5rem;
    font-weight: 700;
}

.dynos-separator {
    border-top: 1px solid var(--border);
}

.dynos-vdivider {
    width: 1px;
    background: var(--border);
}

.table-dark.dynos-table {
    background: transparent;
}

.dynos-code-inline {
    background: rgba(214, 51, 132, 0.06);
    color: #d63384;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.dynos-pre {
    background: #1e1e2d;
    color: #e2e4ea;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow-x: auto;
    font-size: 0.875rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.dynos-data-viewer {
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.85rem;
    max-height: 300px;
    overflow: auto;
}

.dynos-info-box {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    padding: 0.75rem;
}

.dynos-error-box {
    background: rgba(220, 53, 69, 0.06);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: var(--red);
    border-radius: 8px;
    padding: 0.75rem;
}

.dynos-warning-box {
    background: rgba(253, 126, 20, 0.06);
    border: 1px solid rgba(253, 126, 20, 0.2);
    color: #c35a00;
    border-radius: 8px;
    padding: 0.75rem;
}

/* Status badge colors */
.dynos-badge-online { background: rgba(25, 135, 84, 0.1); color: var(--green); }
.dynos-badge-idle { background: rgba(253, 126, 20, 0.1); color: #c35a00; }
.dynos-badge-offline { background: rgba(220, 53, 69, 0.1); color: var(--red); }
.dynos-badge-cyan { background: rgba(59, 130, 246, 0.08); color: var(--brand-color); }
/* WAEVE-018 Werkbank: zwei zusaetzliche Badge-Farben (System-Kennzeichnung Content Hub/Universe) —
   gleiches Muster wie die anderen .dynos-badge-* oben, keine neue Systematik. */
.dynos-badge-purple { background: rgba(111, 66, 193, 0.1); color: var(--purple); }
.dynos-badge-gray { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

.dynos-section-header {
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dynos-scroll {
    max-height: 200px;
    overflow: auto;
}

.agent-card-accent {
    border-left: 3px solid var(--brand-color);
    cursor: pointer;
}

.agent-metric-value {
    font-size: 1rem;
    font-weight: 600;
}

.sub-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label-sm {
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.tool-checkbox-label {
    cursor: pointer;
    font-size: 0.9rem;
    background: #f8f9fa;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.tool-checkbox-label:hover {
    background: #e9ecef;
    border-color: #ced4da;
}
.tool-checkbox-label .form-check-input {
    width: 15px;
    height: 15px;
}

/* ====== PROJECT DETAIL ====== */
.tree-view { font-size: 0.9rem; }
.tree-item-file:hover { background: rgba(0,0,0,0.03) !important; }
.tree-item-folder:hover { background: rgba(0,0,0,0.02); }
pre[class*="language-"] { background: #1e1e2d !important; padding: 1rem !important; }
code[class*="language-"] { font-size: 0.875rem !important; }
.line-numbers .line-numbers-rows { border-right-color: rgba(255,255,255,0.1) !important; }
.line-numbers-rows > span:before { color: rgba(255,255,255,0.3) !important; }

/* ====== BRAND COLOR PICKER ====== */
.brand-color-preview {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: transform 0.2s;
}
.brand-color-preview:hover { transform: scale(1.1); }

.brand-color-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.brand-color-preset {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.brand-color-preset:hover { transform: scale(1.15); }
.brand-color-preset.active { border-color: var(--text); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text); }

/* Status Toggle (3-Stufen: Offen / In Arbeit / Erledigt) */
.status-toggle { --bs-btn-padding-x: 0; --bs-btn-padding-y: 0; }
.btn-status-toggle {
    padding: 2px 6px !important;
    font-size: 0.7rem !important;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.25);
    line-height: 1;
    transition: all 0.15s;
}
.btn-status-toggle:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    border-color: rgba(255,255,255,0.2);
}
.btn-status-toggle.active-open {
    background: rgba(108,142,191,0.15);
    color: #6c8ebf;
    border-color: rgba(108,142,191,0.3);
}
.btn-status-toggle.active-progress {
    background: rgba(255,149,0,0.15);
    color: #ff9500;
    border-color: rgba(255,149,0,0.3);
}
.btn-status-toggle.active-done {
    background: rgba(40,167,69,0.15);
    color: #28a745;
    border-color: rgba(40,167,69,0.3);
}

/* ===== Organigramm ===== */
.org-node-lg {
    min-width: 180px;
    border: 2px solid var(--brand-color, #00d4ff) !important;
}
.org-node {
    min-width: 140px;
}
.org-connector-down {
    width: 2px;
    height: 24px;
    background: var(--border, rgba(255,255,255,0.1));
    margin: 0 auto;
}
.org-connector-down-sm {
    width: 2px;
    height: 16px;
    background: var(--border, rgba(255,255,255,0.1));
    margin: 0 auto;
}
.org-connector-up {
    width: 2px;
    height: 16px;
    background: var(--border, rgba(255,255,255,0.1));
    margin: 0 auto;
}
.org-children-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.org-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
}
.org-sub-children {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
    min-height: 40px;
    padding: 4px;
    border-radius: 8px;
    border: 1px dashed transparent;
    transition: border-color 0.2s;
}
.org-sub-children:hover {
    border-color: var(--border, rgba(255,255,255,0.1));
}
.org-unassigned {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 50px;
    padding: 8px;
    border-radius: 8px;
    border: 2px dashed rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.1);
}
.org-leaf {
    min-width: 140px;
    max-width: 200px;
}
.org-leaf-card {
    transition: transform 0.15s, box-shadow 0.15s;
}
.org-leaf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.org-ghost {
    opacity: 0.4;
    border: 2px dashed var(--brand-color, #00d4ff) !important;
}

/* ====== KI-Markt Intelligence (PROJ-35) ====== */
.ki-signal-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.2s, transform 0.2s;
    cursor: default;
}
.ki-signal-card:hover {
    border-color: var(--brand-color, #3b82f6);
    transform: translateY(-2px);
}
.provider-badge-claude {
    background: rgba(0,229,255,0.15);
    color: #00e5ff;
    border: 1px solid rgba(0,229,255,0.3);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.provider-badge-openai {
    background: rgba(16,185,129,0.15);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.3);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.provider-badge-google {
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
    border: 1px solid rgba(59,130,246,0.3);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.provider-badge-other {
    background: rgba(100,100,120,0.2);
    color: #888;
    border: 1px solid rgba(100,100,120,0.3);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.relevance-high {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.3);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.relevance-medium {
    background: rgba(245,158,11,0.15);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.3);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.relevance-low {
    background: rgba(100,100,120,0.2);
    color: #888;
    border: 1px solid rgba(100,100,120,0.3);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.ki-provider-tab {
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.ki-provider-tab.active {
    color: var(--brand-color, #3b82f6);
    border-bottom: 2px solid var(--brand-color, #3b82f6) !important;
}
.ki-scan-info {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

/* ====== UNIVERSE APP-LAUNCHER (Sidebar Flyout) ====== */
/* Einzelner Sidebar-Eintrag mit Flyout-Panel. Module werden ueber den
   Backend-Proxy api/universe-modules.php geladen (Token serverseitig). */
.universe-launcher-wrap {
    position: relative;
    padding: 8px 12px 4px;
}

.universe-launcher-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(59,130,246,0.10), rgba(129,140,248,0.06), rgba(253,126,20,0.06));
    color: rgba(255,255,255,0.85);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.18s;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.universe-launcher-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59,130,246,0.0), rgba(129,140,248,0.0), rgba(253,126,20,0.0));
    transition: background 0.25s;
    pointer-events: none;
}
.universe-launcher-btn:hover,
.universe-launcher-wrap.open .universe-launcher-btn {
    border-color: rgba(129,140,248,0.55);
    background: linear-gradient(135deg, rgba(59,130,246,0.22), rgba(129,140,248,0.16), rgba(253,126,20,0.14));
    color: #fff;
    box-shadow: 0 0 18px rgba(59,130,246,0.18), 0 0 28px rgba(253,126,20,0.10);
}
.universe-launcher-btn > i.bi-stars {
    font-size: 0.95rem;
    background: linear-gradient(135deg, #3b82f6, #818cf8, #fd7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #818cf8; /* Fallback */
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(129,140,248,0.35));
}
.universe-launcher-label {
    flex: 1;
    text-transform: uppercase;
    font-size: 0.72rem;
}
.universe-launcher-chevron {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: transform 0.18s;
}
.universe-launcher-wrap.open .universe-launcher-chevron {
    transform: rotate(90deg);
    opacity: 1;
}

/* Flyout-Panel rechts neben der Sidebar */
.universe-flyout {
    position: fixed;
    left: var(--sidebar-width, 240px);
    top: 90px;
    width: 320px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1050;
    background: linear-gradient(135deg, rgba(15,20,35,0.96), rgba(20,28,48,0.96));
    border: 1px solid rgba(129,140,248,0.32);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 24px rgba(59,130,246,0.12), 0 0 36px rgba(253,126,20,0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
}
.universe-launcher-wrap.open .universe-flyout {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.universe-flyout-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #93c5fd;
}
.universe-flyout-header i {
    font-size: 0.95rem;
    background: linear-gradient(135deg, #3b82f6, #818cf8, #fd7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.universe-flyout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 10px;
}

.universe-flyout-loading,
.universe-flyout-empty {
    grid-column: 1 / -1;
    padding: 20px 12px;
    text-align: center;
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
}
.universe-flyout-loading i {
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-right: 6px;
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.spin-icon { display: inline-block; animation: spin 1s linear infinite; }

.universe-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    color: rgba(255,255,255,0.85);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s;
    min-height: 80px;
}
.universe-tile:hover {
    border-color: rgba(129,140,248,0.55);
    background: linear-gradient(135deg, rgba(59,130,246,0.16), rgba(129,140,248,0.10), rgba(253,126,20,0.08));
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(59,130,246,0.18);
}
.universe-tile-icon-bi {
    font-size: 1.4rem;
    background: linear-gradient(135deg, #3b82f6, #818cf8, #fd7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #818cf8; /* Fallback */
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(129,140,248,0.35));
}

.universe-tile-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.universe-tile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(59,130,246,0.30), rgba(129,140,248,0.22), rgba(253,126,20,0.18));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(129,140,248,0.20);
}
.universe-tile-name {
    word-break: break-word;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

/* Light-Mode */
body:not(.dark-mode) .universe-launcher-btn {
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(129,140,248,0.05), rgba(253,126,20,0.05));
    border-color: rgba(59,130,246,0.22);
    color: rgba(20,30,50,0.85);
}
body:not(.dark-mode) .universe-launcher-btn:hover,
body:not(.dark-mode) .universe-launcher-wrap.open .universe-launcher-btn {
    border-color: rgba(129,140,248,0.5);
    background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(129,140,248,0.12), rgba(253,126,20,0.10));
    color: #1e293b;
    box-shadow: 0 0 14px rgba(59,130,246,0.15);
}
body:not(.dark-mode) .universe-launcher-btn > i.bi-stars {
    background: linear-gradient(135deg, #3b82f6, #818cf8, #fd7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body:not(.dark-mode) .universe-flyout {
    background: linear-gradient(135deg, rgba(248,250,255,0.98), rgba(235,243,255,0.98));
    border-color: rgba(59,130,246,0.28);
}
body:not(.dark-mode) .universe-flyout-header {
    color: #3b82f6;
    border-bottom-color: rgba(0,0,0,0.06);
}
body:not(.dark-mode) .universe-tile {
    background: rgba(255,255,255,0.5);
    border-color: rgba(0,0,0,0.06);
    color: rgba(20,30,50,0.85);
}
body:not(.dark-mode) .universe-tile:hover {
    border-color: rgba(129,140,248,0.5);
    background: linear-gradient(135deg, rgba(59,130,246,0.10), rgba(129,140,248,0.08), rgba(253,126,20,0.06));
    color: #1e293b;
}
body:not(.dark-mode) .universe-tile-avatar {
    background: linear-gradient(135deg, rgba(59,130,246,0.20), rgba(129,140,248,0.14), rgba(253,126,20,0.12));
    color: #3b82f6;
}
body:not(.dark-mode) .universe-flyout-loading,
body:not(.dark-mode) .universe-flyout-empty {
    color: rgba(20,30,50,0.55);
}

/* Mobile: Flyout als Bottom-Sheet */
@media (max-width: 768px) {
    .universe-flyout {
        position: fixed;
        left: 12px;
        right: 12px;
        top: auto;
        bottom: 12px;
        width: auto;
        max-height: 60vh;
        transform: translateY(8px);
    }
    .universe-launcher-wrap.open .universe-flyout {
        transform: translateY(0);
    }
}

/* ====== PROJECT SETTINGS — Custom Overlay (kein Bootstrap Modal/Offcanvas) ====== */
.ps-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3vh 3vw;
    background: rgba(5,8,18,0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.ps-overlay.open {
    opacity: 1;
    visibility: visible;
}
.ps-panel {
    /* CSS-Variablen auf dunkle Werte fixieren — Panel ist immer Dark-Mode-Stil */
    --card-bg: #1c1c2e;
    --card-border: rgba(255,255,255,0.1);
    --bg-dark: #12121e;
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #64748b;
    --border: rgba(255,255,255,0.1);
    width: min(1280px, 92vw);
    height: min(920px, 94vh);
    background: #12121e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    overflow: hidden;
    transform: translateY(14px) scale(0.984);
    transition: transform .22s cubic-bezier(.2,.7,.3,1);
}
.ps-overlay.open .ps-panel {
    transform: translateY(0) scale(1);
}
/* projMemberModal muss ueber dem ps-overlay liegen */
body.ps-open .modal { z-index: 1090; }
body.ps-open .modal-backdrop { z-index: 1085; }
@media (max-width: 768px) {
    .ps-overlay { padding: 0; }
    .ps-panel { width: 100vw; height: 100vh; border-radius: 0; }
}

/* ====== PROJECT SETTINGS SIDEBAR NAV ====== */
#projectSettingsModal .ps-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 6px 12px 6px 12px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    color: rgba(255,255,255,0.5);
    font-size: 0.8125rem;
    text-align: left;
    transition: color .15s, background .15s, border-color .15s;
    cursor: pointer;
    line-height: 1.3;
}
#projectSettingsModal .ps-nav-btn:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.05);
}
#projectSettingsModal .ps-nav-btn.active {
    color: #7b61ff;
    border-left-color: #7b61ff;
    background: rgba(123,97,255,0.1);
    font-weight: 600;
}
/* Icon-Box */
#projectSettingsModal .ps-nav-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}
#projectSettingsModal .ps-nav-btn:hover .ps-nav-icon {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}
#projectSettingsModal .ps-nav-btn.active .ps-nav-icon {
    background: rgba(123,97,255,0.22);
    color: #7b61ff;
}


/* Integration Tab (Projekt-Einstellungen > Integrationen) */
.int-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px; overflow: hidden; margin-bottom: 10px;
}
.int-section-head {
    color: var(--text-secondary);
    font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 10px 14px 6px;
}
.int-row {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 14px;
    border-top: 1px solid var(--card-border);
}
.int-section-head + .int-row { border-top: none; }
.int-row-click { cursor: pointer; transition: background .12s; }
.int-row-click:hover { background: var(--bg-dark); }
.int-icon-sm {
    width: 32px; height: 32px; min-width: 32px;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
}
.int-icon-sm svg { width: 17px; height: 17px; display: block; }
.int-icon-sm i { font-size: 0.92rem; line-height: 1; }
.int-icon-lg {
    width: 42px; height: 42px; min-width: 42px;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; color: #fff;
}
.int-icon-lg svg { width: 22px; height: 22px; display: block; }
.int-icon-lg i { font-size: 1.15rem; line-height: 1; }
.int-row-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.int-row-sub  { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }
.int-status-conn {
    display: flex; align-items: center; gap: 6px;
    color: #16a34a; font-size: 0.74rem; font-weight: 500; white-space: nowrap;
}
.int-status-conn::before {
    content: ''; display: block; width: 6px; height: 6px;
    border-radius: 50%; background: #22c55e; flex-shrink: 0;
}
.int-connect-pill {
    font-size: 0.72rem; padding: 4px 11px; white-space: nowrap; flex-shrink: 0;
    background: var(--card-bg); color: #5b46f0;
    border: 1px solid #d8d2fb; border-radius: 20px; font-weight: 500;
    transition: background .12s, border-color .12s;
}
.int-row-click:hover .int-connect-pill { background: #f3f0ff; border-color: #b9aefc; }
.int-mini-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px; padding: 16px 10px 13px;
    cursor: pointer; transition: border-color .12s, box-shadow .12s;
    text-align: center; display: flex; flex-direction: column; align-items: center;
}
.int-mini-card:hover { border-color: #b9aefc; box-shadow: 0 2px 8px rgba(91,70,240,0.08); }
.int-mini-card .int-icon-sm { margin-bottom: 9px; }
.int-mini-card .int-row-name { font-size: 0.8rem; }
.int-connect-link {
    display: inline-block; margin-top: 6px;
    color: #5b46f0; font-size: 0.72rem; font-weight: 600;
}
.int-menu-btn {
    background: none; border: none; color: var(--text-muted);
    padding: 4px 6px; cursor: pointer; font-size: 0.95rem; border-radius: 6px;
    transition: color .15s, background .15s; flex-shrink: 0;
}
.int-menu-btn:hover { color: var(--text); background: var(--bg-dark); }
/* Health-Status Badges */
.int-health-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.72rem; font-weight: 500; white-space: nowrap;
    padding: 2px 8px; border-radius: 20px;
}
.int-health-badge::before, .int-health-dot::before {
    content: ''; display: inline-block;
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.int-health-badge.int-health-ok    { color: #16a34a; background: rgba(22,163,74,0.08); }
.int-health-badge.int-health-ok::before    { background: #22c55e; }
.int-health-badge.int-health-error { color: #dc2626; background: rgba(220,38,38,0.08); }
.int-health-badge.int-health-error::before { background: #ef4444; }
.int-health-badge.int-health-unknown { color: var(--text-muted); background: var(--bg-dark); }
.int-health-badge.int-health-unknown::before { background: var(--text-muted); }
.int-health-badge.int-health-checking { color: #6366f1; background: rgba(99,102,241,0.08); }
.int-health-badge.int-health-checking::before { background: #818cf8; animation: int-pulse 1s infinite; }
/* Kompakter Dot (mini-card) */
.int-health-dot { display: inline-flex; align-items: center; width: 10px; height: 10px; }
.int-health-dot::before { width: 8px; height: 8px; }
.int-health-dot.int-health-ok::before      { background: #22c55e; }
.int-health-dot.int-health-error::before   { background: #ef4444; }
.int-health-dot.int-health-unknown::before { background: var(--text-muted); }
@keyframes int-pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
/* Dropdown-Menü */
.int-row-menu-popup {
    position: absolute; z-index: 9999;
    background: var(--card-bg, #1a1d2e); border: 1px solid var(--card-border, rgba(255,255,255,0.1));
    border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    padding: 6px; min-width: 180px;
}
.int-row-menu-popup button {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 7px 12px; border-radius: 7px;
    font-size: 0.83rem; color: var(--text, #e2e8f0);
    background: none; border: none; cursor: pointer; text-align: left;
    transition: background .12s;
}
.int-row-menu-popup button:hover { background: var(--bg-dark, rgba(255,255,255,0.06)); }
.int-row-menu-popup button.danger { color: #f87171; }
.int-row-menu-popup button.danger:hover { background: rgba(248,113,113,0.1); }
.int-eye-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-left: none;
    color: rgba(255,255,255,0.45);
    padding: 0 11px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: color .15s, background .15s;
    display: flex; align-items: center;
}
.int-eye-btn:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.1); }
.letter-spacing-1 { letter-spacing: 0.05em; }

/* ── Module Sync Tab ──────────────────────────────────────────────────────── */
.mod-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 10px;
    background: var(--card-bg, rgba(255,255,255,0.04));
    border: 1px solid var(--card-border, rgba(255,255,255,0.08));
    margin-bottom: 8px;
    transition: background .12s;
}
.mod-row:hover { background: rgba(255,255,255,0.06); }
.mod-row-icon {
    width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
    background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #00d4ff;
}
.mod-status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.72rem; font-weight: 500; white-space: nowrap;
    padding: 3px 9px; border-radius: 20px;
}
.mod-status-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block;
}
.mod-status-linked    { color: #16a34a; background: rgba(22,163,74,0.1); }
.mod-status-not-linked { color: #d97706; background: rgba(217,119,6,0.1); }
.mod-status-error     { color: #dc2626; background: rgba(220,38,38,0.08); }
.mod-status-na        { color: var(--text-muted); background: var(--bg-dark, rgba(255,255,255,0.04)); }
.mod-status-checking  { color: #6366f1; background: rgba(99,102,241,0.1); }

/* ====== WAEVE-006-C — Wiki-Synthese & Widerspruchserkennung ====== */
.kb-doc-row-highlight { background: rgba(0,212,255,0.14) !important; transition: background 1.6s ease; }
.kb-wiki-item { cursor: pointer; border-radius: 10px; padding: 10px 12px; transition: background .15s; }
.kb-wiki-item:hover { background: rgba(255,255,255,0.05); }
.kb-conflict-card { border-left: 3px solid rgba(255,180,0,0.5); }
.kb-conflict-card.resolved { border-left-color: rgba(37,99,235,0.4); }
.kb-conflict-claim {
    border-radius: 10px; padding: 10px 12px; height: 100%;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
}
.kb-conflict-claim-new { background: rgba(255,180,0,0.1); border: 1px solid rgba(255,180,0,0.25); }
.kb-conflict-status-open     { background: rgba(255,180,0,0.15); color: #c98a00; }
.kb-conflict-status-resolved { background: rgba(37,99,235,0.12); color: #5b8def; }
.kb-wiki-body p { margin-bottom: 0.6rem; }
.kb-wiki-body ul { margin-bottom: 0.6rem; padding-left: 1.2rem; }
