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

        :root {
            --jm-black: #000000;
            --jm-green: #009b3a;
            --jm-gold: #fed100;

            --bg: var(--jm-black);
            --bg-card: #10130f;
            --bg-card-2: #161c14;
            --border: #38402b;
            --border-2: #4a5e36;
            --text: #f7f2cf;
            --text-dim: #d8cf8c;
            --text-faint: #8d9668;

            --scout: var(--jm-gold);
            --architect: #e5be00;
            --megaphone: var(--jm-gold);
            --closer: var(--jm-green);
            --loop: #2ecb66;

            --hot: #ff8f73;
            --warm: var(--jm-gold);
            --cool: var(--jm-green);
        }

        body {
            font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            font-size: 13.5px;
            -webkit-font-smoothing: antialiased;
            padding: 24px 0 80px;
            background-image:
                linear-gradient(135deg, rgba(254, 209, 0, 0.08) 0%, rgba(254, 209, 0, 0) 40%),
                radial-gradient(circle at 15% 0%, rgba(0, 155, 58, 0.15), transparent 48%),
                radial-gradient(circle at 85% 100%, rgba(254, 209, 0, 0.14), transparent 52%);
        }

        .container {
            max-width: 1080px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ── Window chrome ── */
        .window {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 24px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.5);
        }

        .window-bar {
            background: var(--bg-card-2);
            border-bottom: 1px solid var(--border);
            padding: 10px 16px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 11.5px;
            color: var(--text-dim);
        }

        .window-dots { display: flex; gap: 6px; }
        .window-dots span { width: 11px; height: 11px; border-radius: 50%; background: #444; }
        .window-dots span:nth-child(1) { background: #ff5f57; }
        .window-dots span:nth-child(2) { background: #febc2e; }
        .window-dots span:nth-child(3) { background: #28c840; }
        .window-title { margin-left: auto; margin-right: auto; font-weight: 500; color: var(--text-dim); }

        .window-body { padding: 28px 32px; }

        /* ── Banner ── */
        .banner {
            background: linear-gradient(90deg,
                var(--scout) 0%, var(--scout) 20%,
                var(--architect) 20%, var(--architect) 40%,
                var(--megaphone) 40%, var(--megaphone) 60%,
                var(--closer) 60%, var(--closer) 80%,
                var(--loop) 80%, var(--loop) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            font-size: 11px;
            line-height: 1.3;
            white-space: pre;
            margin-bottom: 6px;
            font-weight: 700;
        }

        .banner-sub {
            color: var(--text-dim);
            font-size: 12px;
            margin-bottom: 24px;
            padding-left: 1px;
        }

        .prompt {
            color: var(--text);
            font-size: 13.5px;
            margin: 16px 0 16px;
            font-weight: 500;
        }
        .prompt .glyph { color: var(--scout); margin-right: 8px; }
        .prompt .flag { color: var(--loop); }

        /* ── Hero stats row ── */
        .hero-stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin: 20px 0 28px;
        }

        .hero-stat {
            background: var(--bg-card-2);
            border: 1px solid var(--border-2);
            border-radius: 6px;
            padding: 14px 18px;
            text-align: left;
        }

        .hero-stat .lbl {
            color: var(--text-faint);
            font-size: 9.5px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            margin-bottom: 6px;
        }

        .hero-stat .val {
            color: var(--text);
            font-size: 22px;
            font-weight: 800;
            line-height: 1;
        }

        .hero-stat .val .small {
            font-size: 11px;
            color: var(--text-faint);
            font-weight: 500;
            margin-left: 4px;
            letter-spacing: 0;
        }

        /* ── Pipeline strip ── */
        .pipeline {
            background: var(--bg-card-2);
            border: 1px solid var(--border-2);
            border-radius: 6px;
            padding: 16px 22px;
            margin: 18px 0 32px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }

        .pipeline .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            min-width: 80px;
        }

        .pipeline .step .dot {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            border: 2px solid var(--bg-card-2);
            box-shadow: 0 0 0 1px var(--border-2);
        }

        .pipeline .step.scout .dot { background: var(--scout); box-shadow: 0 0 0 1px var(--scout), 0 0 12px rgba(221, 89, 68, 0.6); }
        .pipeline .step.architect .dot { background: var(--architect); box-shadow: 0 0 0 1px var(--architect), 0 0 12px rgba(232, 133, 79, 0.6); }
        .pipeline .step.megaphone .dot { background: var(--megaphone); box-shadow: 0 0 0 1px var(--megaphone), 0 0 12px rgba(232, 185, 90, 0.6); }
        .pipeline .step.closer .dot { background: var(--closer); box-shadow: 0 0 0 1px var(--closer), 0 0 12px rgba(124, 186, 106, 0.6); }
        .pipeline .step.loop .dot { background: var(--loop); box-shadow: 0 0 0 1px var(--loop), 0 0 12px rgba(126, 200, 190, 0.6); }

        .pipeline .step .name {
            color: var(--text);
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        .pipeline .arrow {
            color: var(--text-faint);
            font-size: 16px;
            font-weight: 300;
            padding: 0 4px;
        }

        /* ── Section heads ── */
        .section-head { margin: 32px 0 14px; }
        .section-head .rule {
            color: var(--border-2);
            font-size: 13px;
            line-height: 1;
            margin-bottom: 10px;
            white-space: nowrap;
            overflow: hidden;
        }
        .section-head .title {
            color: var(--text);
            font-size: 18px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .section-head .title .icon { font-size: 18px; }
        .section-head .sub {
            color: var(--text-dim);
            font-size: 12px;
            margin-top: 4px;
        }

        /* ── Agent Cards ── */
        .agent {
            background: var(--bg-card-2);
            border: 1px solid var(--border-2);
            border-radius: 8px;
            margin: 14px 0;
            overflow: hidden;
            display: grid;
            grid-template-columns: 200px 1fr;
            transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
            position: relative;
        }

        .agent:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 28px rgba(0,0,0,0.4);
        }

        .agent.scout { border-left: 3px solid var(--scout); }
        .agent.architect { border-left: 3px solid var(--architect); }
        .agent.megaphone { border-left: 3px solid var(--megaphone); }
        .agent.closer { border-left: 3px solid var(--closer); }
        .agent.loop { border-left: 3px solid var(--loop); }

        .agent.scout:hover { border-color: var(--scout); }
        .agent.architect:hover { border-color: var(--architect); }
        .agent.megaphone:hover { border-color: var(--megaphone); }
        .agent.closer:hover { border-color: var(--closer); }
        .agent.loop:hover { border-color: var(--loop); }

        .mascot-wrap {
            background: var(--bg);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 18px;
            position: relative;
            border-right: 1px solid var(--border-2);
        }

        .agent.scout .mascot-wrap     { background: radial-gradient(circle at 50% 50%, rgba(221, 89, 68, 0.12), var(--bg) 70%); }
        .agent.architect .mascot-wrap { background: radial-gradient(circle at 50% 50%, rgba(232, 133, 79, 0.12), var(--bg) 70%); }
        .agent.megaphone .mascot-wrap { background: radial-gradient(circle at 50% 50%, rgba(232, 185, 90, 0.12), var(--bg) 70%); }
        .agent.closer .mascot-wrap    { background: radial-gradient(circle at 50% 50%, rgba(124, 186, 106, 0.12), var(--bg) 70%); }
        .agent.loop .mascot-wrap      { background: radial-gradient(circle at 50% 50%, rgba(126, 200, 190, 0.12), var(--bg) 70%); }

        .mascot-wrap img {
            max-width: 100%;
            max-height: 160px;
            display: block;
        }

        .agent-num {
            position: absolute;
            top: 10px;
            left: 12px;
            color: var(--text-faint);
            font-size: 22px;
            font-weight: 800;
            letter-spacing: -0.05em;
        }

        .agent.scout .agent-num { color: var(--scout); }
        .agent.architect .agent-num { color: var(--architect); }
        .agent.megaphone .agent-num { color: var(--megaphone); }
        .agent.closer .agent-num { color: var(--closer); }
        .agent.loop .agent-num { color: var(--loop); }

        .agent-body {
            padding: 18px 22px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .agent-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 10px;
            gap: 14px;
        }

        .agent-meta .role {
            color: var(--text-faint);
            font-size: 10.5px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            margin-bottom: 2px;
        }

        .agent.scout .role { color: var(--scout); }
        .agent.architect .role { color: var(--architect); }
        .agent.megaphone .role { color: var(--megaphone); }
        .agent.closer .role { color: var(--closer); }
        .agent.loop .role { color: var(--loop); }

        .agent-meta .name {
            color: var(--text);
            font-size: 22px;
            font-weight: 800;
            letter-spacing: -0.01em;
            line-height: 1.1;
        }

        .agent-meta .tag {
            color: var(--text-dim);
            font-size: 11.5px;
            margin-top: 4px;
            font-style: italic;
        }

        .agent-status {
            text-align: right;
        }

        .status-pill {
            background: rgba(124, 186, 106, 0.18);
            color: var(--cool);
            font-size: 9.5px;
            font-weight: 700;
            padding: 4px 9px;
            border-radius: 3px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            display: inline-block;
        }

        .status-pill.dot::before {
            content: "● ";
            color: var(--cool);
            margin-right: 4px;
            animation: pulse 2s infinite;
        }

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

        .agent-job {
            color: var(--text);
            font-size: 13px;
            line-height: 1.55;
            margin: 8px 0 16px;
        }

        .agent-job .em {
            color: var(--text);
            font-weight: 600;
        }

        .agent.scout .agent-job .em { color: var(--scout); }
        .agent.architect .agent-job .em { color: var(--architect); }
        .agent.megaphone .agent-job .em { color: var(--megaphone); }
        .agent.closer .agent-job .em { color: var(--closer); }
        .agent.loop .agent-job .em { color: var(--loop); }

        /* ── Stat grid ── */
        .stat-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin: 14px 0;
            padding: 12px 0;
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
        }

        .stat {
            text-align: left;
        }

        .stat .lbl {
            color: var(--text-faint);
            font-size: 9px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 3px;
            line-height: 1;
        }

        .stat .val {
            color: var(--text);
            font-size: 16px;
            font-weight: 800;
            line-height: 1;
        }

        .agent.scout .stat .val { color: var(--scout); }
        .agent.architect .stat .val { color: var(--architect); }
        .agent.megaphone .stat .val { color: var(--megaphone); }
        .agent.closer .stat .val { color: var(--closer); }
        .agent.loop .stat .val { color: var(--loop); }

        .stat .val .small {
            font-size: 10px;
            color: var(--text-faint);
            font-weight: 500;
            margin-left: 2px;
            letter-spacing: 0;
        }

        /* ── Action row ── */
        .agent-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }

        .open-btn {
            background: transparent;
            border: 1px solid var(--border-2);
            color: var(--text);
            padding: 9px 16px;
            border-radius: 4px;
            font-family: inherit;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.15s;
            letter-spacing: 0.05em;
        }

        .open-btn:disabled {
            opacity: 0.6;
            cursor: wait;
        }

        .agent.scout .open-btn:hover { background: var(--scout); color: var(--bg); border-color: var(--scout); }
        .agent.architect .open-btn:hover { background: var(--architect); color: var(--bg); border-color: var(--architect); }
        .agent.megaphone .open-btn:hover { background: var(--megaphone); color: var(--bg); border-color: var(--megaphone); }
        .agent.closer .open-btn:hover { background: var(--closer); color: var(--bg); border-color: var(--closer); }
        .agent.loop .open-btn:hover { background: var(--loop); color: var(--bg); border-color: var(--loop); }

        .install-cmd {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            color: var(--text-faint);
            background: var(--bg);
            border: 1px solid var(--border);
            padding: 6px 10px;
            border-radius: 3px;
        }

        .install-cmd .em { color: var(--text-dim); }

        .agent.scout .install-cmd .em { color: var(--scout); }
        .agent.architect .install-cmd .em { color: var(--architect); }
        .agent.megaphone .install-cmd .em { color: var(--megaphone); }
        .agent.closer .install-cmd .em { color: var(--closer); }
        .agent.loop .install-cmd .em { color: var(--loop); }

        /* ── Footer ── */
        .footer {
            text-align: center;
            color: var(--text-faint);
            font-size: 11.5px;
            padding: 24px 0 0;
            border-top: 1px solid var(--border-2);
            margin-top: 32px;
            line-height: 1.7;
        }

        .footer a { color: var(--text-dim); text-decoration: none; }

        .footer .row1 {
            display: flex;
            justify-content: center;
            gap: 16px;
            flex-wrap: wrap;
            margin-bottom: 8px;
        }

        .footer .row1 a:hover { color: var(--text); }

        @media (max-width: 800px) {
            .window-body { padding: 20px; }
            .hero-stats { grid-template-columns: 1fr 1fr; }
            .pipeline { gap: 12px; }
            .pipeline .arrow { transform: rotate(90deg); }
            .pipeline .step { flex-direction: row; gap: 8px; min-width: 0; }
            .agent { grid-template-columns: 130px 1fr; }
            .mascot-wrap img { max-height: 110px; }
            .agent-meta .name { font-size: 18px; }
            .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
            .agent-actions { flex-direction: column; align-items: stretch; gap: 8px; }
            .install-cmd { font-size: 10px; }
        }

/* ── White-label Offer Section ── */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.offer-card {
    background: var(--bg-card-2);
    border: 1px solid var(--border-2);
    border-radius: 8px;
    padding: 14px;
}

.offer-card .tier {
    color: var(--text-faint);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.offer-card .price {
    color: var(--text);
    font-size: 24px;
    font-weight: 800;
    margin: 6px 0 8px;
    line-height: 1;
}

.offer-card .deliverable {
    color: var(--text-dim);
    font-size: 11.5px;
}

.offer-card .metric {
    margin-top: 10px;
    color: var(--text);
    font-size: 12px;
}

.offer-card.primary {
    border-color: rgba(126, 200, 190, 0.5);
    box-shadow: 0 0 0 1px rgba(126, 200, 190, 0.25) inset;
}

.offer-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.offer-actions .open-btn {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.offer-actions .open-btn:hover {
    background: var(--loop);
    color: var(--bg);
    border-color: var(--loop);
}

/* ── Loading & Report Pages ── */
.center-shell {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.loader-ring {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 3px solid var(--border-2);
    border-top-color: var(--loop);
    animation: spin 0.9s linear infinite;
}

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

.report-block {
    background: var(--bg-card-2);
    border: 1px solid var(--border-2);
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 14px;
}

.report-title {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.report-list {
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.7;
    padding-left: 16px;
}

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.kpi {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
}

.kpi .k {
    color: var(--text-faint);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.kpi .v {
    color: var(--text);
    margin-top: 4px;
    font-size: 17px;
    font-weight: 800;
}

@media (max-width: 800px) {
    .offer-grid { grid-template-columns: 1fr; }
    .kpi-strip { grid-template-columns: 1fr; }
}

/* ── Proposal Generator ── */
.proposal-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 14px;
    margin-top: 10px;
}

.proposal-panel {
    background: var(--bg-card-2);
    border: 1px solid var(--border-2);
    border-radius: 8px;
    padding: 14px;
}

.proposal-panel .mini-head {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.proposal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.proposal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.proposal-field.full {
    grid-column: 1 / -1;
}

.proposal-field label {
    color: var(--text-faint);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-weight: 700;
}

.proposal-field input,
.proposal-field textarea,
.proposal-field select {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    padding: 10px;
    outline: none;
}

.proposal-field textarea {
    min-height: 94px;
    resize: vertical;
}

.proposal-field input:focus,
.proposal-field textarea:focus,
.proposal-field select:focus {
    border-color: var(--loop);
    box-shadow: 0 0 0 1px rgba(126, 200, 190, 0.35);
}

.proposal-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.script-list,
.guarantee-list {
    margin: 0;
    padding-left: 16px;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.7;
}

.guarantee-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    margin-top: 8px;
}

.guarantee-box .head {
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}

.proposal-output {
    background: #090a0c;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    color: var(--text);
    white-space: pre-wrap;
    font-size: 12px;
    line-height: 1.65;
    min-height: 420px;
}

@media (max-width: 800px) {
    .proposal-layout { grid-template-columns: 1fr; }
    .proposal-form-grid { grid-template-columns: 1fr; }
}

/* ── Visual Ops Dashboard ── */
.visual-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin: 6px 0 16px;
}

.toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 11px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    background: var(--bg-card-2);
}

.toggle-wrap.compact {
    padding: 7px 9px;
    width: fit-content;
}

.toggle-wrap input {
    accent-color: var(--loop);
}

.visual-error {
    border: 1px solid rgba(221, 89, 68, 0.5);
    background: rgba(221, 89, 68, 0.08);
    color: #ffb4a9;
    border-radius: 6px;
    padding: 9px 11px;
    margin: 8px 0 16px;
    font-size: 11.5px;
}

.visual-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 10px 0 14px;
}

.visual-kpi {
    border: 1px solid var(--border-2);
    border-radius: 8px;
    background: linear-gradient(170deg, #1b1f25 0%, #15181d 100%);
    padding: 12px 14px;
}

.visual-kpi .label {
    color: var(--text-faint);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
}

.visual-kpi .value {
    margin-top: 8px;
    color: var(--text);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.05;
}

.visual-kpi .meta {
    margin-top: 7px;
    color: var(--text-dim);
    font-size: 11px;
}

.progress-stack {
    background: var(--bg-card-2);
    border: 1px solid var(--border-2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.progress-row + .progress-row {
    margin-top: 10px;
}

.progress-row .title {
    color: var(--text-dim);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.progress-row .title span {
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-faint);
    font-size: 11px;
}

.progress-row .bar {
    height: 10px;
    border-radius: 999px;
    margin-top: 6px;
    background: #0d1116;
    border: 1px solid var(--border);
    overflow: hidden;
}

.progress-row .bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #7ec8be 0%, #e8b95a 60%, #e8854f 100%);
}

.integration-matrix {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.integration-card {
    border: 1px solid var(--border-2);
    border-radius: 8px;
    background: #171b22;
    padding: 11px;
}

.integration-card .head {
    color: var(--text-dim);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.integration-card .state {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 800;
}

.integration-card .meta {
    margin-top: 2px;
    color: var(--text-faint);
    font-size: 10px;
}

.integration-card.is-on {
    border-color: rgba(124, 186, 106, 0.45);
    box-shadow: 0 0 0 1px rgba(124, 186, 106, 0.22) inset;
}

.integration-card.is-on .state {
    color: var(--cool);
}

.integration-card.is-off {
    border-color: rgba(221, 89, 68, 0.45);
    box-shadow: 0 0 0 1px rgba(221, 89, 68, 0.22) inset;
}

.integration-card.is-off .state {
    color: var(--hot);
}

.visual-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 14px;
}

.visual-layout.single {
    grid-template-columns: 1fr;
}

.visual-form-grid {
    grid-template-columns: 1fr 1fr;
}

.live-job-card {
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.7;
}

.live-job-card .err {
    color: #ff9f8f;
}

.recent-jobs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-row {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 9px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    background: #11151a;
}

.recent-row .jid {
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}

.recent-row .meta {
    color: var(--text-faint);
    font-size: 10px;
}

.recent-row .right {
    display: flex;
    gap: 8px;
}

.open-btn.mini {
    font-size: 10px;
    padding: 6px 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.visual-snapshot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.is-on {
    color: var(--cool) !important;
}

.is-off {
    color: var(--hot) !important;
}

.is-warn {
    color: var(--warm) !important;
}

@media (max-width: 1080px) {
    .integration-matrix {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .visual-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .integration-matrix {
        grid-template-columns: 1fr 1fr;
    }

    .visual-layout {
        grid-template-columns: 1fr;
    }

    .visual-form-grid {
        grid-template-columns: 1fr;
    }

    .visual-snapshot-grid {
        grid-template-columns: 1fr;
    }

    .visual-toolbar {
        align-items: stretch;
    }

    .visual-toolbar .open-btn,
    .toggle-wrap {
        width: 100%;
        justify-content: center;
    }
}
