* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    background: #eef2f7;
    color: #172033;
}

.topbar {
    min-height: 72px;
    background: linear-gradient(135deg, #111827 0%, #1e3a8a 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
}

.brand strong {
    display: block;
    font-size: 19px;
    letter-spacing: 0.5px;
}

.brand small {
    display: block;
    margin-top: 2px;
    color: #bfdbfe;
    font-size: 12px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-weight: 800;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    color: #e5edff;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

nav a.nav-muted {
    color: #bfdbfe;
    opacity: 0.78;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 34px;
}

.workspace-hero,
.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.workspace-hero {
    padding: 36px;
    color: white;
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% 20%, rgba(96, 165, 250, 0.38), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    box-shadow: 0 20px 50px rgba(30, 64, 175, 0.18);
}

.workspace-hero h1,
.page-title-row h1 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -0.5px;
}

.hero-text {
    margin: 12px 0 0;
    color: #dbeafe;
    font-size: 16px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.workspace-hero .eyebrow {
    color: #93c5fd;
}

.primary-action,
button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.primary-action {
    color: #0f172a;
    background: #ffffff;
    white-space: nowrap;
}

button {
    color: white;
    background: #1d4ed8;
}

.button-secondary {
    color: #334155;
    background: #e2e8f0;
}

.business-card,
.panel,
.quick-card,
.kpi-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.business-card,
.panel {
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 24px;
}

.logistics-card {
    border-top: 5px solid #2563eb;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0;
    font-size: 24px;
}

.section-heading a,
td a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.muted {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.status-ok {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.status-alert {
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid #fdba74;
}

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

.kpi-card {
    border-radius: 18px;
    padding: 20px;
}

.kpi-value {
    display: block;
    color: #0f172a;
    font-size: 34px;
    font-weight: 850;
    line-height: 1;
}

.kpi-label {
    display: block;
    margin-top: 10px;
    color: #64748b;
    font-size: 14px;
}

.kpi-warning {
    border-color: #fdba74;
    background: #fff7ed;
}

.quick-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 0.9fr;
    gap: 18px;
    margin-bottom: 24px;
}

.quick-card {
    display: block;
    border-radius: 20px;
    padding: 24px;
    color: #172033;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.11);
}

.quick-card span {
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
}

.quick-card h2 {
    margin: 10px 0;
    font-size: 22px;
}

.quick-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.quick-card.primary {
    color: white;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.quick-card.primary span,
.quick-card.primary p {
    color: #dbeafe;
}

.quick-card.quiet {
    opacity: 0.86;
}

.toolbar {
    display: flex;
    align-items: end;
    gap: 12px;
    padding: 18px;
    margin-bottom: 24px;
    border-radius: 18px;
    background: white;
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.toolbar label,
.search-form label {
    display: grid;
    gap: 7px;
}

.toolbar label span {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.toolbar select,
.toolbar input,
.search-form select,
.search-form input {
    height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    background: white;
    color: #172033;
}

.toolbar select {
    min-width: 300px;
}

.toolbar input {
    min-width: 360px;
}

.search-box {
    flex: 1;
}

.search-box input {
    width: 100%;
}

.compact-panel,
.detail-panel {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th,
td {
    border-bottom: 1px solid #e5e7eb;
    padding: 13px 12px;
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
}

th {
    color: #475569;
    background: #f8fafc;
    font-weight: 800;
}

tr:hover td {
    background: #f8fafc;
}

.strong {
    font-weight: 800;
    color: #0f172a;
}

.mini-badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.mini-badge.ok {
    color: #166534;
    background: #dcfce7;
}

.mini-badge.alert {
    color: #9a3412;
    background: #ffedd5;
}

.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 980px) {
    .topbar,
    .workspace-hero,
    .page-title-row,
    .toolbar,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    nav {
        flex-wrap: wrap;
    }

    .kpi-grid,
    .quick-grid {
        grid-template-columns: 1fr;
    }

    .toolbar select,
    .toolbar input {
        min-width: 0;
        width: 100%;
    }
}


body.map-shell {
    background: #070b14;
    color: #e5eefb;
}

body.map-shell .topbar {
    background: rgba(8, 13, 24, 0.88);
    border-bottom: 1px solid rgba(96, 165, 250, 0.22);
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(14px);
}

body.map-shell .container {
    max-width: 1500px;
    padding: 28px;
}

.map-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 18px;
}

.map-title h1 {
    margin: 0;
    color: #f8fbff;
    font-size: 36px;
    letter-spacing: -0.6px;
}

.map-title p:not(.eyebrow) {
    margin: 10px 0 0;
    color: #94a3b8;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    max-width: 520px;
}

.map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #cbd5e1;
    padding: 7px 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    font-size: 12px;
}

.map-legend i {
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.legend-online { background: #22c55e; box-shadow: 0 0 16px rgba(34, 197, 94, 0.8); }
.legend-connected { background: #38bdf8; box-shadow: 0 0 16px rgba(56, 189, 248, 0.8); }
.legend-planned { background: #64748b; }
.legend-alert { background: #f97316; box-shadow: 0 0 16px rgba(249, 115, 22, 0.8); }

.map-canvas-wrap {
    position: relative;
    overflow: hidden;
    min-height: 760px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 48%, rgba(37, 99, 235, 0.22), transparent 26%),
        radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.12), transparent 24%),
        radial-gradient(circle at 18% 66%, rgba(56, 189, 248, 0.12), transparent 24%),
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        #070b14;
    background-size: auto, auto, auto, 32px 32px, 32px 32px, auto;
    box-shadow: inset 0 0 120px rgba(15, 23, 42, 0.9), 0 26px 80px rgba(0, 0, 0, 0.42);
}

.map-canvas-wrap::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: linear-gradient(115deg, transparent 30%, rgba(96, 165, 250, 0.08), transparent 58%);
    transform: rotate(-8deg);
    pointer-events: none;
}

.map-canvas {
    position: relative;
    width: 100%;
    height: 760px;
    min-width: 1120px;
}

.map-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.map-line {
    stroke: rgba(148, 163, 184, 0.32);
    stroke-width: 0.18;
    vector-effect: non-scaling-stroke;
    filter: url(#lineGlow);
}

.line-online { stroke: rgba(34, 197, 94, 0.8); }
.line-connected { stroke: rgba(56, 189, 248, 0.68); }
.line-alert { stroke: rgba(249, 115, 22, 0.82); }
.line-planned { stroke: rgba(100, 116, 139, 0.42); stroke-dasharray: 1.2 1.2; }

.map-node {
    position: absolute;
    z-index: 2;
    transform: translate(-50%, -50%);
    text-decoration: none;
}

.center-node {
    width: 300px;
    min-height: 156px;
    padding: 24px;
    color: white;
    border: 1px solid rgba(147, 197, 253, 0.52);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(29, 78, 216, 0.96), rgba(15, 23, 42, 0.96));
    box-shadow: 0 0 46px rgba(37, 99, 235, 0.55), inset 0 0 32px rgba(96, 165, 250, 0.18);
    text-align: center;
}

.center-node p {
    margin: 0 0 8px;
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.center-node h2 {
    margin: 0;
    font-size: 27px;
}

.center-node small {
    display: block;
    margin-top: 12px;
    color: #dbeafe;
    line-height: 1.5;
}

.center-pulse {
    position: absolute;
    inset: -14px;
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 32px;
    pointer-events: none;
}

.group-node {
    width: 270px;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(12px);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.group-node:hover {
    transform: translate(-50%, -52%);
    border-color: rgba(147, 197, 253, 0.72);
    box-shadow: 0 20px 58px rgba(37, 99, 235, 0.28);
}

.node-disabled {
    cursor: default;
}

.node-online {
    border-color: rgba(34, 197, 94, 0.58);
    box-shadow: 0 18px 54px rgba(34, 197, 94, 0.18);
}

.node-connected {
    border-color: rgba(56, 189, 248, 0.48);
}

.node-alert {
    border-color: rgba(249, 115, 22, 0.62);
}

.node-planned {
    opacity: 0.82;
}

.node-orbit {
    position: absolute;
    inset: -7px;
    border-radius: 27px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    pointer-events: none;
}

.node-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.node-header h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 20px;
}

.node-badge {
    flex: none;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.badge-online { color: #bbf7d0; background: rgba(22, 101, 52, 0.5); }
.badge-connected { color: #bae6fd; background: rgba(12, 74, 110, 0.58); }
.badge-planned { color: #cbd5e1; background: rgba(71, 85, 105, 0.62); }
.badge-alert { color: #fed7aa; background: rgba(154, 52, 18, 0.55); }

.node-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.node-metrics div {
    min-width: 0;
    padding: 8px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.node-metrics span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
}

.node-metrics strong {
    display: block;
    margin-top: 4px;
    color: #f8fafc;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.module-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.module-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 7px 9px;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.38);
    font-size: 12px;
    line-height: 1;
}

.module-chip em {
    color: inherit;
    font-style: normal;
    opacity: 0.82;
}

.module-chip.clickable {
    cursor: pointer;
}

.module-chip.clickable:hover {
    color: white;
    border-color: rgba(147, 197, 253, 0.7);
}

.chip-online {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.42);
    background: rgba(22, 101, 52, 0.34);
}

.chip-connected {
    color: #bae6fd;
    border-color: rgba(56, 189, 248, 0.34);
    background: rgba(12, 74, 110, 0.32);
}

.chip-alert {
    color: #fed7aa;
    border-color: rgba(249, 115, 22, 0.42);
    background: rgba(154, 52, 18, 0.34);
}

.chip-planned {
    color: #94a3b8;
}

.map-summary {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.map-summary div {
    padding: 16px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.map-summary span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.map-summary strong {
    display: block;
    margin-top: 8px;
    color: #f8fafc;
    font-size: 18px;
}

.map-summary .summary-status {
    color: #86efac;
}

@media (max-width: 1180px) {
    .map-canvas-wrap {
        overflow-x: auto;
    }

    .map-title,
    .map-summary {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .map-summary {
        display: grid;
    }
}


.alerts-hero {
    align-items: flex-end;
}

.hero-action,
.summary-link {
    text-decoration: none;
}

.hero-action {
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.72);
}

.alert-overview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.alert-card {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.74));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.alert-card span,
.alert-filters > div > span {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 13px;
}

.alert-card strong {
    color: #e2e8f0;
    font-size: 30px;
}

.alert-card.severity-high strong { color: #fecaca; }
.alert-card.severity-medium strong { color: #fed7aa; }
.alert-card.severity-low strong { color: #bfdbfe; }
.alert-card.status-open strong { color: #fde68a; }

.alert-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    padding: 7px 11px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    color: #334155;
    background: rgba(248, 250, 252, 0.88);
    text-decoration: none;
    font-size: 13px;
}

.filter-pill.active {
    color: #0f172a;
    border-color: rgba(37, 99, 235, 0.35);
    background: #dbeafe;
}

.alerts-table-card small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    line-height: 1.5;
}

.severity-badge,
.alert-status {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.severity-high {
    color: #991b1b;
    background: #fee2e2;
}

.severity-medium {
    color: #9a3412;
    background: #ffedd5;
}

.severity-low {
    color: #1d4ed8;
    background: #dbeafe;
}

.status-open {
    color: #92400e;
    background: #fef3c7;
}

.status-resolved {
    color: #166534;
    background: #dcfce7;
}

.status-ignored {
    color: #475569;
    background: #e2e8f0;
}

.alert-summary-link {
    display: block;
    padding: 16px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.68);
}

.alert-summary-link:hover {
    border-color: rgba(96, 165, 250, 0.58);
}

@media (max-width: 1100px) {
    .alert-overview,
    .alert-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .alert-overview,
    .alert-filters {
        grid-template-columns: 1fr;
    }
}


.department-hero,
.ai-analysis-hero {
    align-items: flex-end;
}

.department-modules {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.department-module-card,
.department-action-card,
.ai-panel,
.ai-summary-placeholder,
.focus-module-card,
.department-count-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.department-module-card {
    padding: 16px;
}

.department-module-card span,
.department-action-card span,
.focus-module-card span,
.department-count-card span,
.ai-summary-placeholder span {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 13px;
}

.department-module-card strong,
.department-action-card strong,
.focus-module-card strong,
.department-count-card strong {
    display: block;
    color: #0f172a;
    font-size: 17px;
}

.department-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.department-action-card {
    display: block;
    padding: 18px;
    color: inherit;
    text-decoration: none;
}

.department-action-card small,
.focus-module-card small,
.department-count-card small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    line-height: 1.5;
}

.department-action-card:hover,
.department-count-card:hover {
    border-color: rgba(37, 99, 235, 0.34);
    transform: translateY(-1px);
}

.ai-analysis-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.ai-panel {
    padding: 18px;
}

.department-count-list,
.focus-module-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.department-count-card,
.focus-module-card {
    padding: 16px;
    color: inherit;
    text-decoration: none;
}

.department-count-card strong {
    font-size: 28px;
}

.risk-list {
    display: grid;
    gap: 10px;
}

.risk-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fee2e2;
    color: #991b1b;
}

.risk-row strong {
    white-space: nowrap;
}

.ai-summary-placeholder {
    margin-top: 18px;
    padding: 20px;
}

.ai-summary-placeholder p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .department-modules,
    .department-actions,
    .department-count-list,
    .focus-module-list,
    .ai-analysis-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .department-modules,
    .department-actions,
    .department-count-list,
    .focus-module-list,
    .ai-analysis-grid {
        grid-template-columns: 1fr;
    }
}


.department-section {
    margin-bottom: 22px;
}

.data-module-card.linked {
    display: block;
    color: inherit;
    text-decoration: none;
}

.data-module-card.placeholder {
    opacity: 0.82;
}

.data-module-card small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    line-height: 1.5;
}

.data-module-card.linked:hover {
    border-color: rgba(37, 99, 235, 0.34);
    transform: translateY(-1px);
}

.alert-module-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -4px 0 18px;
}

.alert-module-list span {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 700;
}

.trend-placeholder {
    border-color: rgba(37, 99, 235, 0.22);
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.9));
}


.runtime-summary {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.22);
}

.runtime-summary .section-title h2,
.runtime-summary .section-title p {
    color: #e2e8f0;
}

.runtime-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.runtime-actions a {
    padding: 8px 12px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(30, 41, 59, 0.78);
    text-decoration: none;
    font-size: 13px;
}

.runtime-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.runtime-cards div {
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.66);
}

.runtime-cards span {
    display: block;
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 13px;
}

.runtime-cards strong {
    color: #f8fafc;
    font-size: 24px;
}

.process-hero {
    align-items: flex-end;
}

.process-success strong { color: #bbf7d0; }
.process-failed strong { color: #fecaca; }
.process-running strong { color: #bfdbfe; }
.process-warning strong { color: #fde68a; }

.process-status {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.process-status.status-success { color: #166534; background: #dcfce7; }
.process-status.status-failed { color: #991b1b; background: #fee2e2; }
.process-status.status-running { color: #1d4ed8; background: #dbeafe; }
.process-status.status-warning { color: #92400e; background: #fef3c7; }
.process-status.status-info { color: #475569; background: #e2e8f0; }

.process-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .runtime-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .runtime-cards,
    .process-filters {
        grid-template-columns: 1fr;
    }
}
