:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --danger: #EF4444;
    --danger-hover: #DC2626;
    --bg-color: #F3F4F6;
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(255, 255, 255, 0.4);
    --text-main: #111827;
    --text-muted: #6B7280;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #e0e7ff 0%, #f3f4f6 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hidden {
    display: none !important;
}

.auth-shell {
    width: 100%;
    max-width: 460px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: #1e1b4b;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.7);
    color: #3730A3;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.badge.warn {
    color: #92400E;
    border-color: rgba(245, 158, 11, 0.25);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

.status-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-indicator {
    width: 14px;
    height: 14px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10B981;
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background: #EF4444;
    box-shadow: 0 0 10px #EF4444;
    animation: none;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-text {
    font-size: 18px;
    font-weight: 500;
}

.status-subtext {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.login-title {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 600;
    color: #1e1b4b;
}

.login-copy {
    margin: 0 0 24px 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.text-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-danger { background: white; color: var(--danger); border: 1px solid #fca5a5; }
.btn-danger:hover { background: #fef2f2; color: var(--danger-hover); border-color: #f87171; }

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: rgba(255, 255, 255, 0.5);
}

th, td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

th {
    background: rgba(243, 244, 246, 0.5);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    font-size: 14px;
    color: #374151;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95) translateY(10px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-title { margin: 0 0 16px 0; font-size: 20px; font-weight: 600; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: #374151; }
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    resize: vertical;
    min-height: 100px;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
/* 单行/表格内的紧凑输入（覆盖 .form-control 的 min-height:100px） */
.input-sm {
    min-height: 34px;
    height: 34px;
    padding: 5px 10px;
    font-size: 13px;
}
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; line-height: 1.4;}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.btn-outline { background: transparent; border: 1px solid #D1D5DB; color: #4B5563; }
.btn-outline:hover { background: #F3F4F6; }

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2000;
    font-size: 14px;
    font-weight: 500;
}
.toast.show { transform: translateX(0); }
.toast.error { border-left-color: var(--danger); color: var(--danger); }
.toast.success { border-left-color: #10B981; color: #047857; }

@media (max-width: 720px) {
    body {
        padding: 24px 14px;
    }

    .header {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-meta {
        justify-content: flex-start;
    }

    .glass-card,
    .modal {
        padding: 18px;
    }

    th, td {
        padding: 12px;
    }
}

.tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 10px;
}
.tab {
    background: transparent;
    border: none;
    color: var(--text-muted, #6B7280);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
}
.tab:hover { background: rgba(79, 70, 229, .08); color: var(--primary); }
.tab.active { background: var(--primary); color: #fff; }

.subtabs { display: flex; gap: 6px; margin-bottom: 14px; }
.subtab {
    background: transparent; border: 1px solid var(--card-border);
    color: var(--text-muted); font-size: 13px; font-weight: 600;
    padding: 6px 14px; border-radius: 8px; cursor: pointer; transition: all .15s;
}
.subtab:hover { background: rgba(79, 70, 229, .08); color: var(--primary); }
.subtab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.status-stats { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.status-stat {
    flex: 1; min-width: 96px; text-align: center;
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 12px; padding: 14px 8px;
}
.status-stat-num { font-size: 30px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.status-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.settings-section {
    margin: 22px 0 8px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--primary);
    text-transform: uppercase;
}
.settings-section:first-of-type { margin-top: 6px; }
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    margin-bottom: 8px;
    background: var(--card-bg);
}
.settings-label { font-weight: 600; font-size: 14px; }
.settings-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.settings-hint {
    font-size: 12px; color: var(--primary); margin: 4px 2px 0 2px; font-weight: 600;
}
/* API 测试 tab */
.api-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
@media (max-width: 860px) { .api-cols { grid-template-columns: 1fr; } }
.api-col { min-width: 0; }
.api-dropzone {
    border: 2px dashed var(--border-color, #d1d5db); border-radius: 8px;
    padding: 14px; text-align: center; cursor: pointer; margin: 6px 0;
    color: var(--text-muted); transition: .15s;
}
.api-dropzone:hover { border-color: var(--primary); color: var(--primary); }
.api-test-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.api-curl, .api-request {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
    background: rgba(0,0,0,.25); border-radius: 6px; padding: 8px 10px;
    margin: 4px 0; color: var(--text-muted); white-space: pre-wrap; word-break: break-all;
}
.api-result pre {
    background: rgba(0,0,0,.25); border-radius: 6px; padding: 10px;
    font-size: 12px; max-height: 320px; overflow: auto; margin: 6px 0; white-space: pre-wrap; word-break: break-all;
}
.api-text { font-size: 13px; line-height: 1.7; max-height: 420px; overflow: auto; }
.api-result { margin: 6px 0 14px 0; }
.api-drive-row { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.06); flex-wrap: wrap; }
.api-drive-name { font-family: ui-monospace, Menlo, monospace; font-size: 12px; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.api-topbar { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px 0; flex-wrap: wrap; }
.api-chat-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .api-chat-cols { grid-template-columns: 1fr; } }
.api-chat-main { min-width: 0; }
.api-chat-side { min-width: 0; position: sticky; top: 12px; }
.api-curl-box { position: relative; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 12px 40px 12px 14px; margin: 6px 0; }
.api-curl-pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.8; color: #e5e7eb; white-space: pre-wrap; word-break: break-all; margin: 0; max-height: 420px; overflow: auto; }
.api-copy-btn { position: absolute; top: 6px; right: 6px; background: transparent; border: none; cursor: pointer; font-size: 15px; opacity: .6; color: var(--text-muted); padding: 2px 6px; border-radius: 4px; }
.api-copy-btn:hover { opacity: 1; background: rgba(255,255,255,.1); }
.api-play-btn { position: absolute; top: 6px; right: 34px; background: var(--primary); border: none; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 11px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0 0 0 2px; opacity: .85; }
.api-play-btn:hover { opacity: 1; transform: scale(1.08); }
/* curl 语法高亮 */
.c-cmd { color: #c586c0; font-weight: 600; }
.c-method { color: #dcdcaa; font-weight: 600; }
.c-url { color: #4fc1ff; }
.c-hdr { color: #9cdcfe; }
.c-hdrk { color: #ce9178; }
.c-body { color: #b5cea8; }
.c-dash { color: #808080; }
.api-chat-box { height: 480px; overflow-y: auto; border: 1px solid rgba(0,0,0,.08); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 5px; background: rgba(255,255,255,.03); }
.api-msg { max-width: 85%; padding: 6px 10px; border-radius: 12px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.api-msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.api-msg.assistant { align-self: flex-start; background: rgba(0,0,0,.1); border-bottom-left-radius: 4px; }
.api-msg .api-msg-meta { display: block; font-size: 11px; opacity: .65; margin-bottom: 2px; }
.api-think { margin: 2px 0 3px 0; border-left: 3px solid var(--primary); padding-left: 8px; }
.api-think summary { cursor: pointer; font-size: 12px; opacity: .8; }
.api-think-body { font-size: 12px; color: var(--text-muted); margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.api-answer { margin-top: 2px; }
/* 回复内的 Markdown 渲染 */
.api-answer.md { line-height: 1.3; }
.api-answer.md p { line-height: 1; margin: 0 0 1.3em 0; }
.api-answer.md p:last-child { margin-bottom: 0; }
.api-answer.md h2, .api-answer.md h3, .api-answer.md h4 { margin: 1.3em 0 0.5em 0; }
.api-answer.md ul, .api-answer.md ol { margin: 0 0 1.3em 0; padding-left: 18px; }
.api-answer.md li { margin: 0; line-height: 1; }
.api-answer.md pre.md-code, .api-think-body pre { background: rgba(0,0,0,.3); border-radius: 6px; padding: 6px 10px; overflow-x: auto; margin: 4px 0; font-size: 12px; }
.api-answer.md code { background: rgba(0,0,0,.3); border-radius: 4px; padding: 1px 4px; font-size: 12px; font-family: ui-monospace, Menlo, monospace; }
.api-answer.md pre code { background: none; padding: 0; }
.api-answer.md a { color: var(--primary); text-decoration: underline; }
.api-answer.md blockquote { border-left: 3px solid var(--primary); margin: 4px 0; padding: 1px 8px; opacity: .85; }
.api-answer.md table { border-collapse: collapse; margin: 4px 0; font-size: 12px; width: 100%; }
.api-answer.md th, .api-answer.md td { border: 1px solid rgba(255,255,255,.15); padding: 2px 6px; text-align: left; }
.api-answer.md th { background: rgba(255,255,255,.08); }
.api-attach-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 2px; font-size: 12px; min-height: 24px; }
.api-attach-bar span { background: rgba(0,0,0,.08); padding: 2px 8px; border-radius: 10px; }
.api-input-row { display: flex; gap: 8px; align-items: flex-end; }
.api-input-row textarea { flex: 1; resize: vertical; }
.btn-send { min-width: 72px; height: 44px; }
.api-input-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.api-toggle { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; }
.api-toggle input { accent-color: var(--primary); }
.sub-panel { display: block; }
.sub-panel.hidden { display: none; }
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
    position: absolute; cursor: pointer; inset: 0;
    background: #d1d5db; border-radius: 24px; transition: .2s;
}
.toggle .slider::before {
    content: ""; position: absolute; width: 18px; height: 18px;
    left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s;
}
.toggle input:checked + .slider { background: var(--primary); }
.toggle input:checked + .slider::before { transform: translateX(20px); }
.toggle input:disabled + .slider { opacity: .4; cursor: not-allowed; }

/* ===== Claw 运行账号管理（sub-users）重设计 ===== */
.user-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0 6px 0;
}
.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .15s;
    user-select: none;
    font-family: inherit;
}
.stat-chip:hover { background: rgba(79, 70, 229, .07); color: var(--primary); }
.stat-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px -2px rgba(79, 70, 229, .4);
}
.stat-chip .chip-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.stat-chip .chip-num {
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .07);
    color: inherit;
}
.stat-chip.active .chip-num { background: rgba(255, 255, 255, .25); }

.filter-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
}
.filter-check input { accent-color: var(--primary); }

.batch-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;
    padding: 8px 12px;
    border: 1px dashed var(--card-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .45);
}
.batch-count { font-size: 12px; font-weight: 700; color: var(--primary); }
.batch-tip { font-size: 12px; color: var(--text-muted); }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}
.status-badge .b-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-badge.available { background: rgba(16, 185, 129, .13); color: #047857; }
.status-badge.creating  { background: rgba(245, 158, 11, .16); color: #b45309; }
.status-badge.destroyed, .status-badge.expired { background: rgba(239, 68, 68, .10); color: #b91c1c; }
.status-badge.not_created, .status-badge.unknown { background: rgba(107, 114, 128, .13); color: #4b5563; }

.countdown {
    font-size: 12px;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}
.countdown.warn { color: #d97706; font-weight: 600; }
.countdown.danger { color: var(--danger); font-weight: 700; }
.countdown.off { color: var(--text-muted); }

.health-cell { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.health-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.health-dot.ok { background: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .16); }
.health-dot.bad {
    background: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .16);
    animation: pulse 2s infinite;
}
.health-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

.user-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
    font-size: 13px;
    color: var(--primary);
    word-break: break-all;
}
.user-name {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-btn { padding: 4px 10px; font-size: 12px; white-space: nowrap; }

/* 导入凭证：多行解析预览 */
.import-preview {
    margin-top: 10px;
    max-height: 190px;
    overflow-y: auto;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .55);
    padding: 4px;
}
.import-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.import-item.ok { color: #047857; }
.import-item.ok .import-flag { background: rgba(16, 185, 129, .15); }
.import-item.bad { color: #b91c1c; }
.import-item.bad .import-flag { background: rgba(239, 68, 68, .13); }
.import-item + .import-item { margin-top: 2px; }
.import-flag {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.import-empty { color: var(--text-muted); text-align: center; padding: 14px; font-size: 12px; }
.import-meta { margin-top: 8px; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.import-meta b { color: var(--primary); }

/* ===== 账号池状态（sub-pool）统一风格 ===== */
.pool-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 4px;
}
.pool-stat {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    transition: transform .15s ease, box-shadow .15s ease;
}
.pool-stat:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -4px rgba(79, 70, 229, .12);
}
.pool-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.pool-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.pool-legend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.pool-uid {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
    font-size: 13px;
    color: var(--primary);
    word-break: break-all;
}
.pool-session-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.pool-session-pill .b-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pool-session-pill.busy { background: rgba(16, 185, 129, .13); color: #047857; }
.pool-session-pill.idle { background: rgba(107, 114, 128, .12); color: #4b5563; }
