/* Workspace tabs, status, AI output reading surfaces. */

        .workspace-tab {
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(15, 23, 42, 0.74);
            color: #94a3b8;
            transition: all 0.18s ease;
        }

        .workspace-tab.active {
            background: rgba(16, 185, 129, 0.14);
            border-color: rgba(52, 211, 153, 0.36);
            color: #a7f3d0;
            box-shadow: 0 12px 34px rgba(16, 185, 129, 0.1);
        }

        .workspace-panel {
            min-height: calc(100vh - 170px);
        }

        .console-card {
            background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.72));
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            padding: 22px;
            box-shadow: 0 22px 70px rgba(2, 6, 23, 0.32);
            min-height: 260px;
        }

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

        .console-eyebrow {
            color: #34d399;
            font-size: 12px;
            font-weight: 900;
            letter-spacing: 0;
            margin-bottom: 5px;
        }

        .console-card-title {
            color: #f8fafc;
            font-size: 22px;
            line-height: 1.25;
            font-weight: 900;
        }

        .console-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 30px;
            padding: 6px 10px;
            border-radius: 999px;
            border: 1px solid rgba(148, 163, 184, 0.24);
            background: rgba(15, 23, 42, 0.78);
            color: #cbd5e1;
            font-size: 12px;
            font-weight: 900;
            white-space: nowrap;
        }

        .console-badge.ok {
            border-color: rgba(52, 211, 153, 0.38);
            background: rgba(16, 185, 129, 0.12);
            color: #a7f3d0;
        }

        .console-badge.warn {
            border-color: rgba(250, 204, 21, 0.38);
            background: rgba(250, 204, 21, 0.1);
            color: #fde68a;
        }

        .console-badge.error {
            border-color: rgba(248, 113, 113, 0.4);
            background: rgba(239, 68, 68, 0.12);
            color: #fecaca;
        }

        .console-badge.muted {
            color: #94a3b8;
        }

        .console-hero-metric {
            color: #f8fafc;
            font-size: 30px;
            line-height: 1.2;
            font-weight: 950;
            margin-bottom: 16px;
            overflow-wrap: anywhere;
        }

        .console-metric-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .console-metric {
            min-height: 72px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(2, 6, 23, 0.48);
            border-radius: 16px;
            padding: 12px;
            overflow: hidden;
        }

        .console-metric span,
        .console-list-row span,
        .console-log-meta {
            color: #94a3b8;
            font-size: 12px;
            line-height: 1.45;
        }

        .console-metric strong {
            display: block;
            color: #f8fafc;
            font-size: 16px;
            line-height: 1.35;
            font-weight: 900;
            margin-top: 4px;
            overflow-wrap: anywhere;
        }

        .console-metric small {
            display: block;
            color: #64748b;
            font-size: 11px;
            line-height: 1.5;
            margin-top: 4px;
            overflow-wrap: anywhere;
        }

        .console-list,
        .console-log-list {
            display: grid;
            gap: 10px;
        }

        .console-log-list {
            max-height: 420px;
            overflow-y: auto;
            padding-right: 4px;
        }

        .console-list-row,
        .console-log-item {
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(2, 6, 23, 0.46);
            border-radius: 16px;
            padding: 12px;
        }

        .console-list-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .console-list-row strong {
            color: #e2e8f0;
            font-size: 13px;
            font-weight: 900;
            text-align: right;
            overflow-wrap: anywhere;
        }

        .console-log-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 7px;
        }

        .console-log-top strong {
            color: #f8fafc;
            font-size: 14px;
            line-height: 1.4;
            font-weight: 900;
            overflow-wrap: anywhere;
        }

        .console-log-top span {
            color: #64748b;
            font-size: 12px;
            line-height: 1.4;
            white-space: nowrap;
        }

        .console-log-top .ok { color: #86efac; }
        .console-log-top .warn { color: #fde68a; }
        .console-log-top .error { color: #fecaca; }

        .console-log-question {
            color: #cbd5e1;
            font-size: 13px;
            line-height: 1.6;
            margin-bottom: 6px;
            overflow-wrap: anywhere;
        }

        .console-empty {
            color: #94a3b8;
            font-size: 14px;
            line-height: 1.6;
            padding: 18px;
            border: 1px dashed rgba(148, 163, 184, 0.24);
            border-radius: 16px;
            background: rgba(15, 23, 42, 0.38);
        }

        .console-message {
            border: 1px solid rgba(148, 163, 184, 0.18);
            background: rgba(15, 23, 42, 0.58);
            color: #cbd5e1;
            border-radius: 18px;
            padding: 14px 16px;
            font-size: 14px;
            font-weight: 700;
        }

        .console-message.success {
            border-color: rgba(52, 211, 153, 0.28);
            background: rgba(16, 185, 129, 0.08);
            color: #a7f3d0;
        }

        .console-message.warning,
        .console-message.loading {
            border-color: rgba(250, 204, 21, 0.28);
            background: rgba(250, 204, 21, 0.08);
            color: #fde68a;
        }

        .console-message.error {
            border-color: rgba(248, 113, 113, 0.3);
            background: rgba(239, 68, 68, 0.1);
            color: #fecaca;
        }

        @media (max-width: 640px) {
            .console-card {
                padding: 18px;
                border-radius: 20px;
            }

            .console-metric-grid {
                grid-template-columns: 1fr;
            }

            .console-hero-metric {
                font-size: 24px;
            }

            .console-list-row,
            .console-log-top {
                align-items: flex-start;
                flex-direction: column;
            }

            .console-list-row strong,
            .console-log-top span {
                text-align: left;
                white-space: normal;
            }
        }

        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 999px;
            background: #10b981;
            box-shadow: 0 0 18px rgba(16, 185, 129, 0.8);
            display: inline-block;
        }

        .ai-reading-card {
            max-width: 920px;
            margin: 0 auto;
        }

        .ai-output-reading {
            max-height: min(72vh, 760px);
            overflow-y: auto;
            font-size: 16px;
            line-height: 2;
            padding-bottom: 56px;
            scroll-padding-bottom: 56px;
            box-sizing: border-box;
        }

        .ai-output-reading > :last-child {
            margin-bottom: 32px;
        }

        .ai-output-reading h1,
        .ai-output-reading h2,
        .ai-output-reading h3 {
            color: #f8fafc;
            font-weight: 900;
            margin: 18px 0 10px;
        }

        .ai-output-reading p {
            margin: 0 0 14px;
        }

        .markdown-lite {
            color: #cbd5e1;
        }

        .markdown-lite h1 {
            font-size: 26px;
            line-height: 1.35;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .markdown-lite h2 {
            font-size: 21px;
            line-height: 1.45;
            color: #d1fae5;
        }

        .markdown-lite h3 {
            font-size: 18px;
            line-height: 1.55;
            color: #bfdbfe;
        }

        .markdown-lite strong {
            color: #f8fafc;
            font-weight: 900;
        }

        .markdown-lite ul,
        .markdown-lite ol {
            margin: 0 0 16px 22px;
            padding-left: 16px;
            line-height: 1.9;
        }

        .markdown-lite ul { list-style: disc; }
        .markdown-lite ol { list-style: decimal; }
        .markdown-lite li { margin-bottom: 8px; }
