        :root {
            --bg: #0b1320;
            --card: #111b2e;
            --text: #dce7f7;
            --muted: #93a4be;
            --ok: #2ecc71;
            --warn: #f39c12;
            --bad: #e74c3c;
            --border: #25344f;
            --accent: #3aa0ff;
        }
        * { box-sizing: border-box; }
        body {
            margin: 0;
            font-family: "Segoe UI", Tahoma, Arial, sans-serif;
            background: linear-gradient(140deg, #090f1a 0%, #0b1320 60%, #0e1728 100%);
            color: var(--text);
            min-height: 100vh;
            padding: 20px;
        }
        .wrap { max-width: 980px; margin: 0 auto; }
        .card {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 16px;
            margin-bottom: 14px;
        }
        h1, h2 { margin: 0 0 12px; }
        h1 { font-size: 22px; }
        h2 { font-size: 17px; color: #c9dcff; }
        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 10px;
        }
        label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
        input, select, button, textarea {
            width: 100%;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: #0d1626;
            color: var(--text);
            padding: 10px;
        }
        textarea {
            min-height: 86px;
            resize: vertical;
        }
        button {
            background: #173155;
            border-color: #1f4f8f;
            cursor: pointer;
        }
        button:hover { background: #1d3c68; }
        .row { display: flex; gap: 8px; }
        .row > * { flex: 1; }
        .status { font-size: 13px; color: var(--muted); margin-top: 8px; white-space: pre-wrap; }
        .pill {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 999px;
            font-size: 12px;
            margin-left: 6px;
            border: 1px solid #2b3d5e;
        }
        .ok { color: var(--ok); }
        .warn { color: var(--warn); }
        .bad { color: var(--bad); }
        .lead-item {
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 10px;
            margin-bottom: 8px;
            background: #0d1626;
        }
        .lead-head {
            display: flex;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 6px;
        }
        .lead-title { font-weight: 600; }
        .lead-meta { color: var(--muted); font-size: 12px; }
        .btn-row {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-top: 8px;
        }
        .btn-row button {
            width: auto;
            padding: 7px 10px;
        }
        .timeline-item {
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 10px;
            margin-bottom: 8px;
            background: #0d1626;
        }
        .timeline-head {
            display: flex;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 6px;
        }
        .timeline-title { font-weight: 600; }
        .tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .tabs button {
            width: auto;
            padding: 8px 12px;
            background: #122946;
            border-color: #1f3f68;
        }
        .tabs button.active {
            background: #1f4f8f;
            border-color: #3a7dd6;
        }
        .section { display: none; }
        .section.active { display: block; }
        .stat-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
            gap: 10px;
        }
        .stat-box {
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 10px;
            background: #0d1626;
        }
        .stat-value {
            font-size: 22px;
            font-weight: 700;
            line-height: 1.1;
        }
        .stat-label {
            font-size: 12px;
            color: var(--muted);
        }
        #app { display: none; }
