

        /* --- Global Recharge Banner --- */
        .balance-card {
            background: var(--card-bg);
            border-radius: var(--border-radius-lg);
            color: var(--text-primary);
            padding: 32px;
            position: relative;
            overflow: hidden;
            border: var(--glass-border);
            backdrop-filter: blur(var(--glass-blur));
            -webkit-backdrop-filter: blur(var(--glass-blur));
            box-shadow: var(--shadow-sm), inset 0 1px 1px rgba(255, 255, 255, 0.6);
            background-image: 
                radial-gradient(circle at 10% 20%, rgba(45, 104, 254, 0.03), transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.03), transparent 50%);
        }

        
        .wallet-icon {
            position: absolute;
            right: 32px;
            top: 50%;
            transform: translateY(-50%);
            width: 140px;
            height: auto;
            opacity: 0.025;
            color: var(--primary-blue);
            pointer-events: none;
            animation: float-icon 6s ease-in-out infinite;
        }

        .balance-header {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 15px;
            margin-bottom: 8px;
            font-weight: 550;
            color: var(--text-secondary);
        }

        
        .balance-amount {
            display: flex;
            align-items: center;
            gap: 16px;
            font-size: 40px;
            font-weight: 700;
            margin-bottom: 24px;
            letter-spacing: -0.03em;
            color: var(--primary-blue);
        }


        .balance-stats { 
            display: flex; 
            gap: 48px; 
            border-top: 1px solid var(--border-color);
            padding-top: 20px;
        }


        /* --- View: Keys Table --- */
        .keys-section { 
            display: flex; 
            flex-direction: column; 
            gap: 16px; 
        }

        
        .keys-header { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
        }

        
        .keys-header h2 { 
            font-size: 17px; 
            font-weight: 700; 
            color: var(--text-primary);
        }

        
        .keys-header a {
            color: var(--primary-blue);
            text-decoration: none;
            font-weight: 600;
            font-size: 13px;
        }

        
        .keys-header a:hover {
            color: var(--primary-blue-hover);
        }


        /* --- Key Cards Grid --- */
        .keys-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }


        .playground-tabs {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 12px;
        }

        .playground-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            padding: 2px 2px 18px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.18);
            margin-bottom: 18px;
        }

        .playground-title-wrapper {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .playground-title-icon {
            width: 34px;
            height: 34px;
            padding: 8px;
            border-radius: 12px;
            color: var(--primary-blue);
            background: rgba(45, 104, 254, 0.1);
            border: 1px solid rgba(45, 104, 254, 0.14);
        }

        .playground-header h3 {
            margin: 0;
            font-size: 17px;
            font-weight: 750;
            color: var(--text-primary);
            letter-spacing: -0.02em;
        }

        .playground-header p,
        .message-panel-header p {
            margin: 4px 0 0;
            color: var(--text-secondary);
            font-size: 12.5px;
            line-height: 1.5;
        }

        .playground-badge {
            flex: 0 0 auto;
            font-size: 11px;
            font-weight: 700;
            padding: 5px 10px;
            border-radius: 999px;
            background: rgba(16, 185, 129, 0.1);
            color: #10b981;
            border: 1px solid rgba(16, 185, 129, 0.18);
            animation: pulse-glow 2s infinite;
        }

        .playground-body {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .playground-config-shell {
            padding: 14px;
            border: 1px solid rgba(148, 163, 184, 0.16);
            border-radius: 16px;
            background: rgba(248, 250, 252, 0.68);
        }

        [data-theme="dark"] .playground-config-shell {
            background: rgba(15, 23, 42, 0.32);
            border-color: rgba(255, 255, 255, 0.06);
        }

        .playground-config-title {
            margin-bottom: 10px;
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 750;
            letter-spacing: 0.04em;
        }

        .playground-config-row {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }

        .playground-chat-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 18px;
            align-items: stretch;
        }

        .playground-message-panel {
            display: flex;
            flex-direction: column;
            min-width: 0;
            min-height: 310px;
            padding: 18px;
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.58);
            box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.64);
        }

        [data-theme="dark"] .playground-message-panel {
            background: rgba(15, 23, 42, 0.38);
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.07);
        }

        .user-message-panel {
            background-image: linear-gradient(180deg, rgba(45, 104, 254, 0.05), rgba(255, 255, 255, 0.5));
        }

        .model-message-panel {
            background-image: linear-gradient(180deg, rgba(16, 185, 129, 0.055), rgba(255, 255, 255, 0.5));
        }

        .message-panel-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 12px;
        }

        .message-title-group {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            min-width: 0;
        }

        .message-panel-header label {
            display: block;
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 750;
            line-height: 1.2;
        }

        .message-role-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            height: 24px;
            padding: 0 9px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.02em;
            white-space: nowrap;
        }

        .user-role-badge {
            color: var(--primary-blue);
            background: rgba(45, 104, 254, 0.1);
            border: 1px solid rgba(45, 104, 254, 0.16);
        }

        .model-role-badge {
            color: #10b981;
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.18);
        }

        .playground-response-box {
            flex-grow: 1;
            min-height: 220px;
            max-height: 460px;
            overflow-y: auto;
            padding: 14px;
            border-radius: var(--border-radius-md);
            border: 1px solid rgba(148, 163, 184, 0.2);
            background: rgba(255, 255, 255, 0.72);
            color: var(--text-primary);
            font-family: var(--font-mono, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace);
            font-size: 13px;
            line-height: 1.6;
            white-space: pre-wrap;
            position: relative;
        }

        @media (max-width: 900px) {
            .playground-config-row,
            .playground-chat-row {
                grid-template-columns: 1fr !important;
            }

            .playground-header {
                flex-direction: column;
            }

            .playground-message-panel {
                min-height: 240px;
            }
        }

        .playground-response-box::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
        }


        .playground-response-box::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.3);
        }


        /* ================= 选项 3: 余额卡片分栏与仪表盘 ================= */
        .balance-card {
            display: flex !important;
            flex-direction: row !important;
            justify-content: space-between;
            align-items: center;
            gap: 30px;
            padding: 28px !important;
        }


        .balance-card-left {
            flex: 1;
        }


        .balance-card-right {
            display: flex;
            align-items: center;
            justify-content: flex-end;
        }


        .gauge-glass-panel {
            display: flex;
            align-items: center;
            gap: 24px;
            background: rgba(0, 0, 0, 0.02);
            border: 1px solid rgba(0, 0, 0, 0.04);
            padding: 16px 22px;
            border-radius: var(--border-radius-md);
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 4px 20px rgba(15, 23, 42, 0.02);
        }


        [data-theme="dark"] .gauge-glass-panel {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 4px 20px rgba(0, 0, 0, 0.15);
        }


        .chart-container {
            position: relative;
            width: 100px;
            height: 100px;
        }


        .gauge-svg {
            width: 100%;
            height: 100%;
        }


        .gauge-text {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }


        .gauge-percent {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-primary) !important;
        }


        .gauge-label {
            font-size: 10px;
            color: var(--text-secondary) !important;
            margin-top: 2px;
        }


        .gauge-details {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }


        .detail-row {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: var(--text-secondary) !important;
        }


        .detail-row .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }


        .detail-row strong {
            color: var(--text-primary) !important;
            margin-left: 4px;
        }

        @media (max-width: 900px) {
            .balance-card {
                flex-direction: column !important;
                align-items: stretch !important;
            }

            .balance-card-right {
                justify-content: center;
                border-top: 1px dashed var(--border-color);
                padding-top: 20px;
            }

            .gauge-glass-panel {
                width: 100%;
                justify-content: center;
            }
        }
