﻿:root {
            --blue: #123a63;
            --cyan: #1f6f8b;
            --green: #2f855a;
            --gold: #f59e0b;
            --text: #1f2937;
            --muted: #64748b;
            --line: #dfe7ef;
            --panel: #ffffff;
            --bg: #f4f7fb;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            background: var(--bg);
            color: var(--text);
            font-family: Arial, Helvetica, sans-serif;
        }

        .topbar {
            background: var(--panel);
            border-bottom: 1px solid var(--line);
            box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 16px;
        }

        .topbar-inner,
        .hero-grid,
        .tabs,
        .toolbar {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .topbar-inner {
            justify-content: space-between;
            padding: 14px 0;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
        }

        .brand img {
            height: 42px;
            width: auto;
        }

        .brand-title {
            font-weight: 700;
            color: #111827;
        }

        .brand-subtitle {
            color: var(--muted);
            font-size: 13px;
            margin-top: 2px;
        }

.button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 38px;
            border-radius: 6px;
            border: 1px solid #cbd5e1;
            background: #fff;
            color: #334155;
            padding: 0 14px;
            text-decoration: none;
            font-weight: 700;
            cursor: pointer;
        }

        .hero {
            color: #fff;
            background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 56%, var(--green) 100%);
            border-bottom: 6px solid var(--gold);
        }

        .hero-grid {
            justify-content: space-between;
            padding: 34px 0;
            align-items: stretch;
        }

        .hero h1 {
            margin: 10px 0 10px;
            font-size: 32px;
            line-height: 1.15;
            letter-spacing: 0;
        }

        .hero p {
            margin: 0;
            font-size: 17px;
            line-height: 1.55;
            max-width: 760px;
        }

        .tag {
            display: inline-flex;
            background: rgba(255, 255, 255, .14);
            border: 1px solid rgba(255, 255, 255, .24);
            color: #fff;
            padding: 6px 10px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 700;
        }

        .process-card,
        .metric-card,
        .panel {
            background: var(--panel);
            border: 1px solid var(--line);
            border-radius: 8px;
            box-shadow: 0 8px 20px rgba(15, 23, 42, .07);
        }

        .process-card {
            color: var(--text);
            min-width: 300px;
            padding: 16px;
        }

        .status-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 10px;
            border-radius: 999px;
            background: #dcfce7;
            color: #166534;
            font-size: 12px;
            font-weight: 800;
            margin-top: 14px;
        }

        .status-pill::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #22c55e;
        }

        .status-pill.warning {
            background: #fef3c7;
            color: #92400e;
        }

        .status-pill.warning::before {
            background: #f59e0b;
        }

        .label {
            color: var(--muted);
            font-size: 13px;
            font-weight: 700;
        }

        .process-name {
            font-size: 20px;
            font-weight: 800;
            margin-top: 8px;
        }

        main {
            padding: 24px 0 42px;
        }

        .metrics {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
            margin-bottom: 16px;
        }

        .metric-card {
            padding: 16px;
            position: relative;
            overflow: hidden;
        }

        .metric-card::after {
            content: "";
            position: absolute;
            right: -24px;
            top: -24px;
            width: 82px;
            height: 82px;
            border-radius: 50%;
            background: rgba(15, 76, 129, .08);
        }

        .metric-card .value {
            font-size: 32px;
            font-weight: 800;
            color: #0f172a;
            margin-top: 14px;
        }

        .tabs {
            align-items: flex-end;
            border-bottom: 1px solid var(--line);
            margin-top: 18px;
        }

        .tab {
            border: 0;
            background: transparent;
            color: #475569;
            font-weight: 800;
            padding: 14px 16px;
            border-bottom: 3px solid transparent;
            cursor: pointer;
        }

        .tab.active {
            color: #0f4c81;
            border-bottom-color: #0f4c81;
        }

        .panel {
            padding: 20px;
            border-top: 0;
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }

        .section-title {
            margin: 0;
            font-size: 24px;
            color: #111827;
        }

        .section-subtitle {
            margin: 8px 0 0;
            color: var(--muted);
        }

        .progress {
            height: 14px;
            width: 100%;
            background: #e2e8f0;
            border-radius: 999px;
            overflow: hidden;
            margin: 18px 0;
        }

        .progress > div {
            height: 100%;
            background: linear-gradient(90deg, #0f4c81, #2f855a);
            width: 0;
        }

        .result-grid {
            display: grid;
            grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr);
            gap: 22px;
            align-items: start;
        }

        .chart-shell {
            min-height: 390px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: #fbfdff;
            padding: 16px;
        }

        .refresh-meta {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            color: var(--muted);
            font-size: 13px;
            margin-top: 8px;
        }

        .loader-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #0f4c81;
            opacity: .35;
        }

        .loader-dot.loading {
            animation: pulse 1s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: .25; transform: scale(.9); }
            50% { opacity: 1; transform: scale(1.15); }
        }

        canvas {
            width: 100%;
            height: 350px;
            display: block;
        }

        .result-item {
            border-bottom: 1px solid #edf2f7;
            padding: 14px 0;
        }

        .result-item:last-child {
            border-bottom: 0;
        }

        .result-name {
            font-weight: 800;
            font-size: 17px;
        }

        .result-votes {
            font-size: 24px;
            font-weight: 800;
            text-align: right;
            color: #0f172a;
        }

        .filters {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 14px;
            padding: 14px;
            margin: 16px 0;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
        }

        select {
            width: 100%;
            min-height: 38px;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            padding: 0 10px;
            background: #fff;
            color: #1f2937;
        }

        .table-actions {
            display: grid;
            grid-template-columns: minmax(220px, 1fr) auto auto;
            gap: 12px;
            align-items: center;
            margin: 0 0 14px;
        }

        .search-input {
            width: 100%;
            min-height: 40px;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            padding: 0 12px;
            background: #fff;
            color: #1f2937;
        }

        .pagination {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 14px;
        }

        .pagination .button {
            min-height: 34px;
            padding: 0 10px;
        }

        .table-wrap {
            max-width: 100%;
            overflow-x: auto;
        }

        table {
            width: 100%;
            min-width: 880px;
            border-collapse: collapse;
            background: #fff;
        }

        th,
        td {
            border: 1px solid #e5e7eb;
            padding: 12px 10px;
            text-align: left;
        }

        th {
            background: #f8fafc;
            color: #334155;
            font-weight: 800;
        }

        td.number {
            text-align: right;
        }

        .empty {
            color: var(--muted);
            text-align: center;
            padding: 40px 12px;
        }

        .runtime-warning {
            display: none;
            margin: 16px 0;
            padding: 14px 16px;
            border: 1px solid #f59e0b;
            border-radius: 8px;
            background: #fffbeb;
            color: #92400e;
            font-weight: 700;
        }

        .hidden {
            display: none;
        }

        @media (max-width: 900px) {
            .hero-grid,
            .topbar-inner,
            .toolbar {
                flex-direction: column;
                align-items: stretch;
            }

            .process-card {
                min-width: 0;
            }

            .metrics,
            .result-grid,
            .filters,
            .table-actions {
                grid-template-columns: 1fr;
            }
        }
