
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/assets/inter-var.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(/assets/inter-var.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url(/assets/inter-var.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(/assets/inter-var.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 800;
font-display: swap;
src: url(/assets/inter-var.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
--bg: #f7f6f3;
--surface: #ffffff;
--surface-2: #faf9f7;
--border: #e8e5df;
--border-strong: #d8d4cc;
--text: #1c1a17;
--text-muted: #55514a;
--text-faint: #6b665e;
--brand: #4f46e5;
--brand-hover: #4338ca;
--brand-soft: #eef0fe;
--brand-soft-text: #4338ca;
--success: #0f6f50;
--success-soft: #e6f6ee;
--warning: #a15c00;
--warning-soft: #fff3dc;
--warning-soft-text: #7a4700;
--danger: #c92a2a;
--danger-soft: #fdeaea;
--danger-soft-text: #7a1f1f;
--info: #1a63bb;
--info-soft: #e8f2fd;
--info-soft-text: #1a4c7e;
--neutral-soft: #efede8;
--neutral-soft-text: #57534d;
--flow-marketing: #ea580c;
--flow-marketing-soft: #fef1e8;
--flow-crm: #4f46e5;
--flow-crm-soft: #eef0fe;
--flow-sales: #12805c;
--flow-sales-soft: #e6f6ee;
--flow-revops: #7c3aed;
--flow-revops-soft: #f2ecfd;
--flow-finance: #0891b2;
--flow-finance-soft: #e3f6fa;
--flow-model: #c026d3;
--flow-model-soft: #fbe8f9;
--flow-agent: #4338ca;
--flow-agent-soft: #eceafd;
--flow-workflow: #475569;
--flow-workflow-soft: #edf0f4;
--flow-custom: #6b7280;
--flow-custom-soft: #eef0f3;
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 14px;
--shadow-sm: 0 1px 2px rgba(41, 37, 36, 0.06);
--shadow-md: 0 1px 2px rgba(41, 37, 36, 0.05), 0 4px 8px rgba(41, 37, 36, 0.06), 0 12px 24px rgba(41, 37, 36, 0.07);
--shadow-lg: 0 2px 4px rgba(41, 37, 36, 0.06), 0 8px 16px rgba(41, 37, 36, 0.08), 0 24px 48px rgba(41, 37, 36, 0.12);
--sidebar-w: 232px;
--sidebar-w-collapsed: 68px;
--topbar-h: 58px;
--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--fs-caption: 11px;
--fs-label: 12px;
--fs-body-sm: 13px;
--fs-body: 14px;
--fs-h4: 16px;
--fs-h3: 18px;
--fs-h2: 20px;
--fs-kpi: 24px;
--fs-h1: 28px;
--space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 40px; --space-9: 48px;
--radius-xs: 4px;
--radius-xl: 16px;
--radius-pill: 999px;
--row-pad-y: 11px;
--row-pad-x: 14px;
--target-min: 24px;
--focus-color: #4f46e5;
--focus-width: 2px;
--focus-offset: 2px;
--dur-fast: 100ms; --dur-base: 160ms; --dur-slow: 240ms;
--ease: cubic-bezier(0.2, 0, 0, 1);
color-scheme: light;
}
:root[data-theme="dark"] {
--bg: #131211;
--surface: #1c1b19;
--surface-2: #232220;
--border: #2f2d2a;
--border-strong: #403d39;
--text: #ecebe7;
--text-muted: #b3afa8;
--text-faint: #9a968f;
--brand: #6259e8;
--brand-hover: #9d96f7;
--brand-soft: #262456;
--brand-soft-text: #b3aeff;
--success: #34d399;
--success-soft: #113228;
--warning: #f5b04d;
--warning-soft: #3a2a0e;
--warning-soft-text: #f5c485;
--danger: #f2696e;
--danger-soft: #3c1618;
--danger-soft-text: #f7a8ab;
--info: #5ba6f2;
--info-soft: #142b42;
--info-soft-text: #8cc0f5;
--neutral-soft: #2a2926;
--neutral-soft-text: #b6b2ab;
--flow-marketing: #fb923c;
--flow-marketing-soft: #3a2510;
--flow-crm: #7c76f2;
--flow-crm-soft: #262456;
--flow-sales: #34d399;
--flow-sales-soft: #113228;
--flow-revops: #a78bfa;
--flow-revops-soft: #2c2350;
--flow-finance: #22d3ee;
--flow-finance-soft: #103038;
--flow-model: #e879f9;
--flow-model-soft: #3a1f3a;
--flow-agent: #8b85f5;
--flow-agent-soft: #292459;
--flow-workflow: #94a3b8;
--flow-workflow-soft: #262a33;
--flow-custom: #9aa1ae;
--flow-custom-soft: #262a33;
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
--shadow-md: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.45);
--shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 56px rgba(0, 0, 0, 0.6);
--focus-color: #9d96f7;
color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
font-family: var(--font);
background: var(--bg);
color: var(--text);
font-size: var(--fs-body);
-webkit-font-smoothing: antialiased;
}
#root { height: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }
svg.app-icon { flex-shrink: 0; display: block; }
@media (prefers-reduced-motion: reduce) {
* { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
.app-shell { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
width: var(--sidebar-w);
flex-shrink: 0;
background: var(--bg);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
padding: 14px 10px;
transition: width 0.15s ease;
}
.sidebar-collapsed { width: var(--sidebar-w-collapsed); }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; }
.sidebar-mobile-close-standalone { display: none; align-self: flex-end; margin-bottom: 6px; }
.sidebar-profile-anchor { margin-bottom: 4px; }
.sidebar-profile-row {
display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border-radius: var(--radius-sm);
border: none; background: none; font-family: inherit; color: var(--text); cursor: pointer; text-align: left;
}
.sidebar-profile-row:hover { background: var(--surface-2); }
.sidebar-profile-name { flex: 1; min-width: 0; font-weight: 600; font-size: var(--fs-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-profile-row svg:last-child { color: var(--text-faint); flex-shrink: 0; }
.sidebar-section-toggle {
display: flex; align-items: center; gap: 6px; border: none; background: none; font-family: inherit; cursor: pointer;
padding: 0; color: var(--text-faint);
}
.sidebar-section-toggle:hover { color: var(--text-muted); }
.sidebar-hnav { display: flex; align-items: center; gap: 3px; padding: 4px 2px 14px; }
.sidebar-hnav-item {
display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: var(--radius-pill); border: none; background: none;
color: var(--text-faint); font-family: inherit; cursor: pointer;
}
.sidebar-hnav-item:hover { background: var(--surface-2); color: var(--text-muted); }
.sidebar-hnav-item-active { background: var(--surface-2); color: var(--text); padding: 7px 12px; font-weight: 600; }
.sidebar-hnav-item span { font-size: var(--fs-body-sm); white-space: nowrap; }
.brand-mark {
width: 28px; height: 28px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--brand), #7c74f0);
color: #fff; font-weight: 700; font-size: var(--fs-body); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-mark-sm { width: 24px; height: 24px; font-size: var(--fs-label); border-radius: var(--radius-sm); }
.brand-name { font-weight: 600; font-size: var(--fs-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-nav { display: flex; flex-direction: column; gap: 1px; flex: 1; overflow-y: auto; }
.sidebar-item {
display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm);
color: var(--text-muted); font-size: var(--fs-body); font-weight: 500; position: relative; white-space: nowrap;
}
.sidebar-item:hover { background: var(--surface-2); color: var(--text); }
.sidebar-item-active { background: var(--neutral-soft); color: var(--text); font-weight: 600; }
.sidebar-item-active svg { color: var(--text); }
.sidebar-badge {
margin-left: auto; background: var(--danger); color: #fff; font-size: var(--fs-caption); font-weight: 700;
border-radius: var(--radius-pill); padding: 1px 6px; min-width: 16px; text-align: center;
}
.sidebar-badge-dot { position: absolute; top: 6px; left: 30px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.sidebar-collapse-btn {
display: flex; align-items: center; gap: 8px; border: none; background: none; color: var(--text-faint);
padding: 8px 10px; border-radius: var(--radius-sm); font-size: var(--fs-body-sm); margin-top: 8px;
}
.sidebar-collapse-btn:hover { background: var(--surface-2); color: var(--text-muted); }
.app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.app-content { flex: 1; overflow-y: auto; padding: 22px 28px 60px; }
.app-content-nopad { padding: 0; overflow: hidden; display: flex; }
.sidebar-chat-search { margin-top: 14px; padding: 0 10px; }
.sidebar-chat-search .search-input { width: 100%; min-width: 0; }
.sidebar-recent { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.sidebar-recent-title { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); font-weight: 700; padding: 0 10px 6px; }
.sidebar-recent-title-row { display: flex; align-items: center; justify-content: space-between; }
.sidebar-recent-title-row .sidebar-recent-title { padding-bottom: 0; }
.sidebar-recent-title-row .sidebar-item-menu-btn { opacity: 0; margin-right: 6px; }
.sidebar-recent-title-row:hover .sidebar-item-menu-btn { opacity: 1; }
.sidebar-recent-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-empty-hint { font-size: var(--fs-label); color: var(--text-faint); padding: 2px 10px 8px; line-height: 1.5; }
.sidebar-bottom { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1px; }
.sidebar-item-button { border: none; background: none; width: 100%; text-align: left; font-family: inherit; cursor: pointer; }
.module-tree { display: flex; flex-direction: column; gap: 1px; max-height: 46vh; overflow-y: auto; }
.module-tree-group { display: flex; flex-direction: column; }
.module-tree-section { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); font-weight: 600; padding: 10px 10px 2px; }
.module-tree-head {
display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: none; background: none; width: 100%;
text-align: left; font-family: inherit; cursor: pointer; border-radius: var(--radius-sm);
color: var(--text-muted); font-size: var(--fs-body-sm); font-weight: 500;
}
.module-tree-head:hover { background: var(--surface-2); color: var(--text); }
.module-tree-head-active { color: var(--text); }
.module-tree-head span { flex: 1; }
.module-tree-chevron { color: var(--text-faint); flex-shrink: 0; }
.module-tree-items { display: flex; flex-direction: column; gap: 1px; padding-left: 14px; margin: 2px 0 4px; }
.module-tree-item {
display: block; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--text-faint);
font-size: var(--fs-body-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.module-tree-item:hover { background: var(--surface-2); color: var(--text); }
.module-tree-item-active { background: var(--neutral-soft); color: var(--text); font-weight: 600; }
.sidebar-item-row { display: flex; align-items: center; position: relative; gap: 0; }
.sidebar-item-row .sidebar-item, .sidebar-item-row .module-tree-item { flex: 1; min-width: 0; }
.sidebar-item-row .sidebar-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-item-menu-btn {
flex-shrink: 0; border: none; background: none; color: var(--text-faint); opacity: 0; transition: opacity 0.1s;
width: 24px; height: 24px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.sidebar-item-row:hover .sidebar-item-menu-btn { opacity: 1; }
.sidebar-item-menu-btn:hover { background: var(--surface-2); color: var(--text); }
.sidebar-item-menu-btn:disabled { opacity: 0.3 !important; cursor: default; }
.sidebar-pin-btn-active { opacity: 1 !important; color: var(--brand); }
.sidebar-compose-btn {
flex-shrink: 0; border: none; background: none; color: var(--text-faint); opacity: 0.7;
width: 24px; height: 24px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.sidebar-compose-btn:hover { background: var(--brand-soft); color: var(--brand-hover); opacity: 1; }
.sidebar-recent-item-editing { padding: 6px 10px; }
.sidebar-rename-input {
border: 1px solid var(--brand); border-radius: var(--radius-sm); font: inherit; font-size: var(--fs-body-sm); padding: 3px 6px;
width: 100%; min-width: 0; background: var(--surface);
}
.all-modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-height: 60vh; overflow-y: auto; }
.all-modules-group-title { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-faint); font-weight: 700; margin-bottom: 6px; }
.all-modules-link { display: block; padding: 5px 0; font-size: var(--fs-body-sm); color: var(--text); }
.all-modules-link:hover { color: var(--brand-hover); }
@media (max-width: 640px) { .all-modules-grid { grid-template-columns: 1fr 1fr; } }
.topbar {
height: var(--topbar-h); flex-shrink: 0; border-bottom: 1px solid var(--border); background: var(--surface);
display: flex; align-items: center; padding: 0 18px; gap: 16px;
}
.topbar-left { display: flex; align-items: center; }
.workspace-switcher { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius-sm); cursor: pointer; border: none; background: none; font: inherit; color: inherit; text-align: left; }
.workspace-switcher:hover { background: var(--surface-2); }
.workspace-switcher-text { display: flex; flex-direction: column; line-height: 1.25; }
.workspace-name { font-weight: 600; font-size: var(--fs-body-sm); }
.workspace-env { font-size: var(--fs-caption); color: var(--text-faint); display: flex; align-items: center; gap: 4px; }
.env-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.topbar-center { flex: 1; display: flex; justify-content: center; }
.topbar-search {
display: flex; align-items: center; gap: 8px; width: 100%; max-width: 220px; border: 1px solid var(--border);
background: var(--surface-2); border-radius: var(--radius-pill); padding: 7px 14px; color: var(--text-faint); font-size: var(--fs-body-sm);
transition: max-width 0.16s ease;
}
.topbar-search:hover, .topbar-search:focus, .topbar-search:focus-visible { max-width: 460px; }
.topbar-search span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar-brand { display: flex; align-items: center; gap: 8px; padding: 6px 8px; }
.topbar-search kbd { font-size: var(--fs-caption); border: 1px solid var(--border-strong); border-radius: var(--radius-xs); padding: 1px 5px; color: var(--text-faint); background: var(--surface); }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar-menu-anchor { position: relative; }
.topbar-icon-badge {
position: absolute; top: -1px; right: -1px; background: var(--danger); color: #fff; font-size: 9.5px; font-weight: 700;
border-radius: var(--radius-pill); padding: 0 4px; min-width: 14px; text-align: center; pointer-events: none;
}
.user-chip { border: none; background: none; padding: 0; border-radius: 50%; display: flex; }
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--radius-sm);
font-weight: 500; border: 1px solid transparent; white-space: nowrap; transition: background 0.1s, border-color 0.1s;
}
.btn-md { padding: 7px 14px; font-size: var(--fs-body-sm); }
.btn-sm { padding: 5px 10px; font-size: var(--fs-body-sm); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); }
.btn-tertiary { background: transparent; color: var(--brand-hover); }
.btn-tertiary:hover:not(:disabled) { background: var(--brand-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #a91f1f; }
.btn:active:not(:disabled) { transform: translateY(0.5px); filter: brightness(0.94); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-loading { position: relative; color: transparent !important; }
.btn-spinner {
position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4);
border-top-color: #fff; animation: spin 0.7s linear infinite;
}
.btn-secondary .btn-spinner { border-color: rgba(0,0,0,0.15); border-top-color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn {
width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid transparent; background: none;
color: var(--text-muted); display: flex; align-items: center; justify-content: center; position: relative;
}
.icon-btn:hover { background: var(--neutral-soft); color: var(--text); }
.icon-btn:active { transform: translateY(0.5px); }
.icon-btn-active { background: var(--brand-soft); color: var(--brand-hover); }
.link-btn { border: none; background: none; color: var(--brand-hover); font-size: var(--fs-body-sm); font-weight: 600; padding: 0; }
.badge {
display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: var(--radius-pill); font-size: var(--fs-label);
font-weight: 500; white-space: nowrap; line-height: 1.5; border: 1px solid var(--border); font-variant-numeric: tabular-nums;
}
.badge .badge-dot { display: none; }
.badge-success::before, .badge-warning::before, .badge-danger::before, .badge-info::before, .badge-brand::before {
content: ""; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.badge-neutral { background: var(--neutral-soft); color: var(--neutral-soft-text); border-color: transparent; }
.badge-success { background: var(--surface-2); color: var(--text); }
.badge-success::before { background: var(--success); }
.badge-warning { background: var(--surface-2); color: var(--text); }
.badge-warning::before { background: var(--warning); }
.badge-info { background: var(--surface-2); color: var(--text); }
.badge-info::before { background: var(--info); }
.badge-danger { background: var(--danger-soft); color: var(--danger-soft-text); border-color: transparent; }
.badge-danger::before { background: var(--danger); }
.badge-brand::before { background: var(--brand); }
.badge-brand { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.avatar {
border-radius: 50%; background: var(--brand-soft); color: var(--brand-hover); font-weight: 700;
display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.card-padded { padding: 16px; }
.kpi-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kpi-card-clickable { cursor: pointer; }
.kpi-card-clickable:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.kpi-card-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-card-label { font-size: var(--fs-body-sm); color: var(--text-muted); font-weight: 500; }
.kpi-card-icon { color: var(--text-faint); }
.kpi-card-value { font-size: var(--fs-kpi); font-weight: 700; letter-spacing: -0.3px; }
.kpi-card-foot { display: flex; align-items: center; gap: 8px; font-size: var(--fs-label); }
.kpi-trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.tone-success { color: var(--success); }
.tone-danger { color: var(--danger); }
.tone-neutral { color: var(--text-faint); }
.kpi-card-sub { color: var(--text-faint); }
.grid { display: grid; gap: 14px; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1200px) { .grid-cols-4 { grid-template-columns: repeat(2, 1fr); } .grid-cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .grid-cols-2, .grid-cols-3, .grid-cols-4, .grid-cols-5 { grid-template-columns: 1fr; } }
.section { margin-bottom: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-title { font-size: var(--fs-h4); font-weight: 600; }
.section-desc { font-size: var(--fs-body-sm); color: var(--text-muted); margin-top: 2px; }
.text-muted { color: var(--text-muted); font-size: var(--fs-body-sm); line-height: 1.6; }
.text-faint { color: var(--text-faint); }
.page-header { margin-bottom: 20px; }
.page-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 6px; }
.page-header-title-line { display: flex; align-items: center; gap: 10px; }
.page-header h1 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.3px; }
.page-header-desc { font-size: var(--fs-body-sm); color: var(--text-muted); margin-top: 4px; max-width: 640px; line-height: 1.6; }
.page-header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.breadcrumb { display: flex; align-items: center; font-size: var(--fs-body-sm); color: var(--text-faint); gap: 4px; }
.breadcrumb-item { display: flex; align-items: center; gap: 4px; }
.breadcrumb-item a:hover { color: var(--text); }
.breadcrumb-sep { color: var(--text-faint); }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.toolstack-zoned-tabs { align-items: center; }
.toolstack-zone-divider { width: 1px; height: 16px; background: var(--border); margin: 0 8px; flex-shrink: 0; }
.toolstack-zone-label { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); font-weight: 700; padding: 0 6px 0 0; flex-shrink: 0; }
.tab {
border: none; background: none; padding: 9px 4px; margin-right: 20px; color: var(--text-muted); font-size: var(--fs-body-sm);
font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; display: flex; align-items: center; gap: 6px;
}
.tab:hover { color: var(--text); }
.tab-active { color: var(--text); border-bottom-color: var(--brand); }
.tab-count { background: var(--neutral-soft); border-radius: var(--radius-pill); padding: 0 6px; font-size: var(--fs-caption); font-weight: 600; }
.tab-active .tab-count { background: var(--neutral-soft); color: var(--text); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-body-sm); min-width: 640px; }
.table th {
text-align: left; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-faint);
font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap;
position: sticky; top: 0;
}
.table td { padding: var(--row-pad-y) var(--row-pad-x); border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table-row-clickable:hover { background: var(--surface-2); cursor: pointer; }
.table-dense td, .table-dense th { padding: 7px 12px; }
.cell-primary { font-weight: 600; }
.cell-muted { color: var(--text-muted); }
.cell-mono { font-family: ui-monospace, "SF Mono", monospace; font-size: var(--fs-label); color: var(--text-muted); }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 20px; color: var(--text-muted); }
.empty-state-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--text-faint); margin-bottom: 4px; }
.empty-state-error .empty-state-icon { background: var(--danger-soft); color: var(--danger); }
.empty-state-title { font-weight: 600; color: var(--text); font-size: var(--fs-body); }
.empty-state-desc { font-size: var(--fs-body-sm); max-width: 340px; line-height: 1.6; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton-block { display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.overlay { position: fixed; inset: 0; background: rgba(15, 18, 24, 0.44); display: flex; align-items: center; justify-content: center; z-index: 100; animation: fadeIn 0.12s ease; }
.overlay-right { justify-content: flex-end; }
.overlay-top { align-items: flex-start; padding-top: 12vh; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-height: 86vh; display: flex; flex-direction: column; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: var(--fs-h4); font-weight: 600; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); }
.drawer { background: var(--surface); height: 100%; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slideIn 0.16s ease; }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0.6; } to { transform: translateX(0); opacity: 1; } }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.drawer-header-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-body); }
.drawer-header-icon { color: var(--brand-hover); }
.drawer-header-actions { display: flex; align-items: center; gap: 8px; }
.drawer-body { padding: 18px; overflow-y: auto; flex: 1; }
.drawer-footer { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); }
.drawer-section { margin-bottom: 18px; }
.drawer-section-title { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-faint); font-weight: 600; margin-bottom: 8px; }
.kv-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: var(--fs-body-sm); border-bottom: 1px dashed var(--border); }
.kv-row:last-child { border-bottom: none; }
.kv-key { color: var(--text-muted); }
.kv-val { font-weight: 500; text-align: right; }
.command-palette { width: 620px; max-width: 92vw; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.command-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-faint); }
.command-input input { flex: 1; border: none; outline: none; font-size: var(--fs-body); background: none; color: var(--text); }
.command-input kbd { font-size: var(--fs-caption); border: 1px solid var(--border-strong); border-radius: var(--radius-xs); padding: 1px 6px; }
.command-results { max-height: 60vh; overflow-y: auto; padding: 8px; }
.command-group { margin-bottom: 6px; }
.command-group-label { font-size: var(--fs-caption); text-transform: uppercase; color: var(--text-faint); font-weight: 600; padding: 8px 10px 4px; }
.command-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); font-size: var(--fs-body); }
.command-row:hover { background: var(--surface-2); }
.command-row-sub { color: var(--text-faint); font-size: var(--fs-label); }
.command-empty { padding: 30px; text-align: center; color: var(--text-faint); font-size: var(--fs-body-sm); }
.dropdown-anchor { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; }
.dropdown-anchor-right { left: auto; right: 0; }
.dropdown-menu, .dropdown-panel {
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
min-width: 220px; padding: 6px; animation: fadeIn 0.1s ease;
}
.dropdown-panel { width: 360px; padding: 0; }
.dropdown-menu-head { display: flex; align-items: center; gap: 10px; padding: 10px 8px; }
.dropdown-menu-workspace { display: flex; align-items: center; gap: 10px; padding: 8px; }
.dropdown-menu-name { font-weight: 600; font-size: var(--fs-body-sm); }
.dropdown-menu-email { font-size: var(--fs-label); color: var(--text-faint); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.dropdown-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--radius-sm); font-size: var(--fs-body-sm); color: var(--text); }
.dropdown-item:hover { background: var(--neutral-soft); }
.dropdown-item svg { color: var(--text-muted); }
.dropdown-item-danger svg { color: var(--danger); }
button.dropdown-item { width: 100%; background: none; border: none; text-align: left; font-family: inherit; cursor: pointer; }
.dropdown-item-danger { color: var(--danger); }
.dropdown-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: var(--fs-body-sm); }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-row { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); position: relative; cursor: pointer; }
.notif-row:last-child { border-bottom: none; }
.notif-row:hover { background: var(--surface-2); }
.notif-row-unread { background: var(--brand-soft); }
.notif-row-unread:hover { background: #e5e6fd; }
.notif-icon { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-icon-approval { background: var(--warning-soft); color: var(--warning); }
.notif-icon-connector { background: var(--info-soft); color: var(--info); }
.notif-icon-failure { background: var(--danger-soft); color: var(--danger); }
.notif-icon-workflow { background: var(--success-soft); color: var(--success); }
.notif-icon-security { background: var(--neutral-soft); color: var(--text-muted); }
.notif-icon-billing { background: var(--brand-soft); color: var(--brand-hover); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: var(--fs-body-sm); font-weight: 600; }
.notif-sub { font-size: var(--fs-label); color: var(--text-muted); margin-top: 1px; }
.notif-time { font-size: var(--fs-caption); color: var(--text-faint); margin-top: 3px; }
.notif-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex-shrink: 0; margin-top: 4px; }
.search-input { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius-sm); padding: 7px 10px; color: var(--text-faint); min-width: 220px; }
.search-input input { border: none; outline: none; flex: 1; font-size: var(--fs-body-sm); color: var(--text); background: none; }
.search-clear { border: none; background: none; color: var(--text-faint); display: flex; }
.select { border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius-sm); padding: 0 28px 0 10px; height: 32px; font-size: var(--fs-body-sm); color: var(--text); }
.select, .field select {
-webkit-appearance: none; appearance: none; cursor: pointer;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b665e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
background-repeat: no-repeat; background-position: right 9px center; background-size: 12px;
}
:root[data-theme="dark"] .select, :root[data-theme="dark"] .field select {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a968f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.field select { padding-right: 32px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--neutral-soft); color: var(--text); border-radius: var(--radius-pill); padding: 4px 10px; font-size: var(--fs-label); font-weight: 600; }
.filter-chip button { border: none; background: none; color: inherit; display: flex; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: var(--fs-body-sm); font-weight: 600; }
.field .hint { font-size: var(--fs-label); color: var(--text-faint); }
.field input[type=text], .field input[type=number], .field input[type=email], .field textarea, .field select {
border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 11px; font-size: var(--fs-body); color: var(--text); background: var(--surface);
}
.field textarea { resize: vertical; min-height: 70px; font-family: inherit; }
.checkbox-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: var(--fs-body-sm); }
.radio-card-group { display: flex; flex-direction: column; gap: 8px; }
.radio-card { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px; cursor: pointer; }
.radio-card:hover { border-color: var(--border-strong); }
.radio-card-selected { border-color: var(--brand); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--brand); }
.radio-card-title { font-weight: 600; font-size: var(--fs-body); }
.radio-card-desc { font-size: var(--fs-label); color: var(--text-muted); margin-top: 2px; }
.progress-bar { height: 6px; background: var(--neutral-soft); border-radius: var(--radius-pill); overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: var(--radius-pill); }
.progress-bar-fill.tone-brand { background: var(--brand); }
.progress-bar-fill.tone-success { background: var(--success); }
.progress-bar-fill.tone-warning { background: var(--warning); }
.progress-bar-fill.tone-danger { background: var(--danger); }
.toaster { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); border-radius: var(--radius-md); padding: 11px 14px; font-size: var(--fs-body-sm); min-width: 260px; animation: toastIn 0.15s ease; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast-success { border-left: 3px solid var(--success); }
.toast-success svg { color: var(--success); }
.toast-danger { border-left: 3px solid var(--danger); }
.toast-danger svg { color: var(--danger); }
.toast-warning svg { color: var(--warning); }
.toast-close { margin-left: auto; border: none; background: none; color: var(--text-faint); display: flex; }
.chart-frame { display: flex; flex-direction: column; }
.chart-frame-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.chart-title { font-size: var(--fs-body-sm); font-weight: 600; color: var(--text-muted); }
.chart-legend { display: flex; gap: 12px; font-size: var(--fs-label); color: var(--text-muted); }
.chart-svg { overflow: visible; }
.chart-gridline { stroke: var(--border); stroke-width: 1; }
.chart-axis-label { font-size: 9.5px; fill: var(--text-faint); }
.chart-hover-line { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-tooltip-bg { fill: var(--text); }
.chart-tooltip-text { fill: #fff; font-size: 11px; font-weight: 600; }
.hbar-list { display: flex; flex-direction: column; gap: 10px; }
.hbar-row { display: grid; grid-template-columns: 140px 1fr 64px; align-items: center; gap: 10px; font-size: var(--fs-body-sm); }
.hbar-label { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: 8px; background: var(--neutral-soft); border-radius: var(--radius-pill); overflow: hidden; }
.hbar-fill { height: 100%; border-radius: var(--radius-pill); }
.hbar-value { font-weight: 600; text-align: right; }
.funnel-chart { display: flex; flex-direction: column; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 130px 1fr 48px; align-items: center; gap: 12px; }
.funnel-label-col { display: flex; flex-direction: column; }
.funnel-stage { font-size: var(--fs-body-sm); font-weight: 600; }
.funnel-value { font-size: var(--fs-label); color: var(--text-faint); }
.funnel-bar-track { height: 26px; display: flex; align-items: center; }
.funnel-bar { height: 100%; background: var(--brand); border-radius: var(--radius-sm); min-width: 8px; }
.funnel-conv { font-size: var(--fs-label); color: var(--text-muted); font-weight: 600; text-align: right; }
.stacked-bar-wrap { display: flex; flex-direction: column; gap: 10px; }
.stacked-bar { display: flex; height: 14px; border-radius: var(--radius-pill); overflow: hidden; background: var(--neutral-soft); }
.stacked-seg { height: 100%; }
.stacked-bar-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: var(--fs-label); }
.legend-item { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
.legend-item b { color: var(--text); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut-center-value { font-size: 17px; font-weight: 700; fill: var(--text); }
.donut-center-label { font-size: 9px; fill: var(--text-faint); }
.donut-legend { display: flex; flex-direction: column; gap: 8px; }
.builder-layout { display: grid; grid-template-columns: 260px 1fr 300px; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); min-height: 560px; }
.builder-col { padding: 16px; overflow-y: auto; }
.builder-col + .builder-col { border-left: 1px solid var(--border); }
.builder-col-center { background: var(--surface-2); }
@media (max-width: 1100px) { .builder-layout { grid-template-columns: 1fr; } .builder-col + .builder-col { border-left: none; border-top: 1px solid var(--border); } }
.flow-track { display: flex; flex-direction: column; align-items: center; gap: 0; }
.flow-block {
width: 100%; max-width: 340px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
padding: 12px 14px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-sm); cursor: pointer;
}
.flow-block:hover { border-color: var(--brand); }
.flow-block-selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.flow-block-icon { width: 32px; height: 32px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.flow-block-title { font-weight: 600; font-size: var(--fs-body-sm); }
.flow-block-sub { font-size: var(--fs-label); color: var(--text-faint); }
.flow-connector { width: 2px; height: 22px; background: var(--border-strong); }
.wf-builder-canvas { position: relative; min-height: 480px; overflow: auto; background-color: var(--bg); background-image: radial-gradient(var(--border-strong) 1px, transparent 1px); background-size: 22px 22px; border-radius: var(--radius-md); }
.wf-block-abs { position: absolute; width: 190px; cursor: grab; user-select: none; touch-action: none; z-index: 2; }
.wf-block-abs.wf-dragging { cursor: grabbing; z-index: 5; box-shadow: var(--shadow-lg); }
.wf-handle { position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface); cursor: crosshair; z-index: 6; }
.wf-handle:hover { transform: translateY(-50%) scale(1.3); }
.wf-edge-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.wf-palette-chip { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); cursor: grab; margin-bottom: 8px; font-size: var(--fs-body-sm); font-weight: 500; }
.wf-palette-chip:active { cursor: grabbing; }
.wf-canvas-hint { font-size: var(--fs-label); color: var(--text-faint); text-align: center; padding: 8px; }
.wf-block-delete { position: absolute; top: -8px; left: -8px; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 6; border: 2px solid var(--surface); }
.flow-type-trigger .flow-block-icon { background: var(--info-soft); color: var(--info); }
.flow-type-agent .flow-block-icon { background: var(--brand-soft); color: var(--brand-hover); }
.flow-type-tool .flow-block-icon { background: var(--success-soft); color: var(--success); }
.flow-type-condition .flow-block-icon { background: var(--warning-soft); color: var(--warning); }
.flow-type-approval .flow-block-icon { background: var(--danger-soft); color: var(--danger); }
.flow-type-end .flow-block-icon { background: var(--neutral-soft); color: var(--text-muted); }
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kanban-col { width: 240px; flex-shrink: 0; background: var(--surface-2); border-radius: var(--radius-md); padding: 10px; }
.kanban-col-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 10px; font-size: var(--fs-body-sm); font-weight: 600; }
.kanban-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 8px; cursor: pointer; }
.kanban-card:hover { border-color: var(--border-strong); }
.kanban-card-title { font-size: var(--fs-body-sm); font-weight: 600; margin-bottom: 4px; }
.kanban-card-value { font-size: var(--fs-body-sm); font-weight: 700; color: var(--brand-hover); }
.kanban-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.timeline { display: flex; flex-direction: column; }
.timeline-row { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline-row:last-child { padding-bottom: 0; }
.timeline-rail { display: flex; flex-direction: column; align-items: center; }
.timeline-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex-shrink: 0; margin-top: 4px; }
.timeline-line { width: 1.5px; flex: 1; background: var(--border); margin-top: 4px; }
.timeline-content { flex: 1; padding-bottom: 2px; }
.timeline-title { font-size: var(--fs-body-sm); font-weight: 600; }
.timeline-meta { font-size: var(--fs-label); color: var(--text-faint); margin-top: 2px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); position: relative; flex-shrink: 0; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--success); opacity: 0.4; animation: livePulse 1.6s ease-out infinite; }
.live-dot-idle { background: var(--text-faint); }
.live-dot-idle::after { display: none; }
@keyframes livePulse { 0% { transform: scale(0.6); opacity: 0.5; } 100% { transform: scale(2.4); opacity: 0; } }
.live-log-header { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.live-log-header-label { font-weight: 600; font-size: var(--fs-body-sm); }
.live-log { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow-y: auto; }
.live-log-row { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); animation: fadeIn 0.25s ease; }
.live-log-row:last-child { border-bottom: none; }
.live-log-time { color: var(--text-faint); font-family: ui-monospace, "SF Mono", monospace; font-size: var(--fs-caption); flex-shrink: 0; width: 74px; padding-top: 1px; }
.live-log-text { color: var(--text); font-size: var(--fs-body-sm); line-height: 1.4; }
.live-sidebar-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.live-sidebar-row:last-child { border-bottom: none; }
.live-sidebar-body { flex: 1; min-width: 0; }
.live-sidebar-name { font-weight: 600; font-size: var(--fs-body-sm); }
.live-sidebar-action { color: var(--text-muted); font-size: var(--fs-label); margin-top: 2px; line-height: 1.35; }
.live-sidebar-time { color: var(--text-faint); font-size: var(--fs-caption); margin-top: 4px; font-family: ui-monospace, "SF Mono", monospace; }
.wizard-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.wizard-step { display: flex; align-items: center; gap: 8px; font-size: var(--fs-body-sm); color: var(--text-faint); }
.wizard-step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--neutral-soft); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-caption); }
.wizard-step-active .wizard-step-num { background: var(--brand); color: #fff; }
.wizard-step-active { color: var(--text); font-weight: 600; }
.wizard-step-done .wizard-step-num { background: var(--success); color: #fff; }
.wizard-sep { width: 20px; height: 1px; background: var(--border-strong); }
.list-plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 4px 10px; font-size: var(--fs-label); font-weight: 500; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.checkbox-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 5px 12px; font-size: var(--fs-body-sm); font-weight: 500; cursor: pointer; color: var(--text-muted); }
.checkbox-pill:hover { border-color: var(--border-strong); color: var(--text); }
.checkbox-pill-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.agent-template-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.agent-template-chip { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-pill); padding: 7px 14px; font-size: var(--fs-body-sm); font-weight: 600; color: var(--text-muted); cursor: pointer; }
.agent-template-chip:hover { border-color: var(--brand); color: var(--text); }
.agent-template-chip-active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-hover); }
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }
.callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); font-size: var(--fs-body-sm); line-height: 1.6; }
.callout-info { background: var(--info-soft); color: var(--info-soft-text); }
.callout-warning { background: var(--warning-soft); color: var(--warning-soft-text); }
.callout-danger { background: var(--danger-soft); color: var(--danger-soft-text); }
.callout-brand { background: var(--brand-soft); color: var(--brand-hover); }
.emergency-stop-banner { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: var(--danger); color: #fff; font-size: var(--fs-body-sm); font-weight: 600; }
.emergency-stop-banner span { flex: 1; font-weight: 500; }
.emergency-stop-banner-resume { flex-shrink: 0; border: 1px solid rgba(255,255,255,0.5); background: rgba(255,255,255,0.12); color: #fff; font-size: var(--fs-label); font-weight: 700; padding: 5px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.emergency-stop-banner-resume:hover { background: rgba(255,255,255,0.22); }
.settings-nav { display: flex; flex-direction: column; gap: 14px; width: 190px; flex-shrink: 0; }
.settings-nav-zone { display: flex; flex-direction: column; gap: 2px; }
.settings-nav-zone-label { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); font-weight: 700; padding: 0 10px 4px; }
.settings-nav a { padding: 8px 10px; border-radius: var(--radius-sm); font-size: var(--fs-body-sm); color: var(--text-muted); font-weight: 500; }
.settings-nav a:hover { background: var(--surface-2); color: var(--text); }
.settings-nav a.active { background: var(--neutral-soft); color: var(--text); font-weight: 600; }
.settings-layout { display: flex; gap: 24px; align-items: flex-start; }
@media (max-width: 760px) { .settings-layout { flex-direction: column; align-items: stretch; gap: 14px; } .settings-panel { flex: none; width: 100%; } .settings-layout > * { min-width: 0; max-width: 100%; } .settings-nav { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 4px 10px; } .settings-nav-zone { flex-direction: row; flex-wrap: wrap; gap: 2px; align-items: center; } .settings-nav-zone-label { width: 100%; padding-bottom: 0; } }
.settings-panel { flex: 1; min-width: 0; max-width: 720px; }
.settings-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 20px; max-width: 480px; color: var(--text-faint); }
.settings-search input { flex: 1; border: none; background: transparent; font-size: var(--fs-body); color: var(--text); outline: none; }
.settings-search input::placeholder { color: var(--text-faint); }
.chat-hero { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; width: 100%; overflow-y: auto; }
.chat-hero-inner { max-width: 640px; width: 100%; text-align: center; }
.chat-hero-badge { width: 52px; height: 52px; border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--brand), #7c74f0); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.chat-hero h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.4px; margin-bottom: 8px; }
.chat-hero p { margin-bottom: 28px; }
.chat-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.prompt-bar { width: 100%; }
.prompt-using-row { display: flex; align-items: center; gap: 5px; font-size: var(--fs-caption); color: var(--text-faint); margin-bottom: 6px; padding-left: 2px; }
.prompt-input-row {
display: flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); background: var(--surface);
border-radius: var(--radius-pill); padding: 6px 6px 6px 6px; box-shadow: var(--shadow-sm);
}
.prompt-bar-lg .prompt-input-row { padding: 10px 10px 10px 12px; box-shadow: var(--shadow-md); }
.prompt-ctx-toggle { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.prompt-ctx-toggle:hover { background: var(--brand-soft); color: var(--brand-hover); border-color: var(--brand); }
.prompt-input { flex: 1; border: none; outline: none; background: none; font-size: var(--fs-body); padding: 6px 4px; min-width: 0; }
.prompt-bar-lg .prompt-input { font-size: var(--fs-h4); padding: 8px 4px; }
.prompt-model-chip { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: var(--radius-pill); padding: 5px 8px; color: var(--text-faint); flex-shrink: 0; }
.prompt-model-chip select { border: none; background: none; font-size: var(--fs-label); color: var(--text-muted); max-width: 120px; }
.prompt-send-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; flex-shrink: 0; }
.prompt-send-btn:hover { background: var(--brand-hover); }
.prompt-ctx-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 12px 14px 2px; }
.prompt-ctx-field { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-faint); font-weight: 600; }
.prompt-ctx-field select { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 5px 8px; font-size: var(--fs-body-sm); color: var(--text); text-transform: none; letter-spacing: normal; font-weight: 500; background: var(--surface); }
.chat-home-root { flex: 1; display: flex; flex-direction: column; min-width: 0; width: 100%; min-height: 0; }
.tab-strip { display: flex; align-items: stretch; border-bottom: 1px solid var(--border); background: var(--surface-2); flex-shrink: 0; padding: 0 8px; }
.tab-strip-scroll { display: flex; align-items: flex-end; gap: 2px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: thin; }
.tab-chip {
display: flex; align-items: center; gap: 6px; padding: 9px 8px 9px 12px; border-radius: 8px 8px 0 0; cursor: pointer;
font-size: var(--fs-body-sm); font-weight: 500; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; position: relative;
border: 1px solid transparent; border-bottom: none; max-width: 200px; margin-bottom: -1px;
}
.tab-chip:hover { background: var(--surface); color: var(--text); }
.tab-chip-active { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: 0 -1px 0 var(--brand) inset; }
.tab-chip-icon { flex-shrink: 0; color: var(--text-muted); }
.tab-chip-label { overflow: hidden; text-overflow: ellipsis; }
.tab-chip-btn { border: none; background: none; color: var(--text-faint); display: none; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: var(--radius-xs); flex-shrink: 0; }
.tab-chip:hover .tab-chip-btn, .tab-chip-active .tab-chip-btn { display: flex; }
.tab-chip-btn:hover { background: var(--neutral-soft); color: var(--text); }
.tab-strip-new { border: none; background: none; color: var(--text-faint); display: flex; align-items: center; justify-content: center; width: 34px; flex-shrink: 0; }
.tab-strip-new:hover { color: var(--brand-hover); }
.tab-menu-backdrop { position: fixed; inset: 0; z-index: 75; background: transparent; }
.tab-context-menu { z-index: 76; min-width: 200px; }
.chat-home { flex: 1; display: flex; flex-direction: column; min-width: 0; width: 100%; min-height: 0; }
.chat-home-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.chat-messages-wide { max-width: 760px; margin: 0 auto; padding: 22px 24px 8px; display: flex; flex-direction: column; gap: 16px; }
.chat-home > .prompt-bar { max-width: 760px; width: calc(100% - 48px); margin: 0 auto 18px; flex-shrink: 0; }
.workspace-topbar { border-bottom: 1px solid var(--border); background: var(--surface); padding: 12px 24px 0; flex-shrink: 0; }
.workspace-topbar-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-body); margin-bottom: 10px; color: var(--brand-hover); }
.workspace-topbar .tabs { margin-bottom: 0; }
.workspace-tab-content { max-width: 1040px; margin: 0 auto; padding: 20px 24px 40px; }
.workspace-card { cursor: pointer; }
.workspace-card:hover { border-color: var(--brand); }
.workspace-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.workspace-card-title { font-weight: 600; font-size: var(--fs-body); }
.workspace-card-stats { display: flex; gap: 16px; padding: 10px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); margin-bottom: 8px; flex-wrap: wrap; }
.workspace-card-stat-value { font-weight: 700; font-size: var(--fs-body); }
.workspace-card-stat-label { font-size: var(--fs-caption); color: var(--text-faint); }
.workspace-card-open { font-size: var(--fs-label); font-weight: 600; color: var(--brand-hover); display: flex; align-items: center; gap: 4px; }
.agent-suggestion-card { border-color: var(--brand); }
.report-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.dash-widget { min-width: 0; }
.dash-widget-title { font-size: var(--fs-body-sm); font-weight: 600; margin-bottom: 8px; color: var(--text-muted); }
.dash-widget-insight { background: var(--brand-soft); border-color: var(--brand); }
.tool-pill-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 14px 18px; }
.stat-strip-item { min-width: 0; }
.stat-strip-value { font-size: var(--fs-h2); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.stat-strip-label { font-size: var(--fs-caption); color: var(--text-faint); margin-top: 2px; }
.usage-row { display: grid; grid-template-columns: minmax(84px, 34%) minmax(40px, 1fr) 36px 48px; align-items: center; gap: 8px; padding: 5px 0; font-size: var(--fs-label); }
.usage-row-label { min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usage-row-bar { height: 6px; border-radius: var(--radius-xs); background: var(--neutral-soft); overflow: hidden; }
.usage-row-bar-fill { height: 100%; border-radius: var(--radius-xs); }
.usage-row-pct { text-align: right; color: var(--text-faint); font-size: var(--fs-caption); }
.usage-row-cost { text-align: right; font-weight: 600; }
.tool-health-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: var(--fs-body-sm); border-bottom: 1px solid var(--border); }
.tool-health-row:last-child { border-bottom: none; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } .dash-grid > [style*="span 3"], .dash-grid > [style*="span 4"] { grid-column: span 2 !important; } }
@media (max-width: 560px) { .dash-grid { grid-template-columns: 1fr; } .dash-grid > div, .dash-grid > [style*="span 2"], .dash-grid > [style*="span 3"], .dash-grid > [style*="span 4"] { grid-column: 1 / -1 !important; } }
.report-builder-layout { display: grid; grid-template-columns: 280px 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.report-builder-panel { padding: 18px; border-right: 1px solid var(--border); overflow-y: auto; max-height: 720px; }
.report-builder-preview { padding: 20px; background: var(--surface-2); }
@media (max-width: 900px) { .report-builder-layout { grid-template-columns: 1fr; } .report-builder-panel { border-right: none; border-bottom: 1px solid var(--border); max-height: none; } }
.dashboard-builder-canvas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; min-height: 300px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 16px; }
.dashboard-builder-widget { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px; background: var(--surface); position: relative; }
.dashboard-builder-widget-remove { position: absolute; top: 6px; right: 6px; }
.home-view-toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 3px; gap: 2px; }
.home-view-btn { display: inline-flex; align-items: center; gap: 6px; border: none; background: none; padding: 7px 14px; border-radius: var(--radius-pill); font-size: var(--fs-body-sm); font-weight: 600; color: var(--text-muted); }
.home-view-btn-active { background: var(--surface); color: var(--brand-hover); box-shadow: var(--shadow-sm); }
.chat-panel { display: flex; flex-direction: column; height: 640px; max-height: calc(100vh - 210px); }
.chat-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.chat-ai-badge { width: 28px; height: 28px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--brand), #7c74f0); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 16px; }
.chat-bubble-row { display: flex; align-items: flex-start; gap: 9px; }
.chat-bubble-row-user { flex-direction: row-reverse; margin-left: auto; }
.chat-avatar { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-avatar-ai { background: var(--brand-soft); color: var(--brand-hover); }
.chat-bubble { padding: 10px 13px; border-radius: var(--radius-lg); font-size: var(--fs-body); line-height: 1.55; }
.chat-bubble-ai { background: var(--surface-2); border: 1px solid var(--border); border-top-left-radius: 4px; }
.chat-bubble-user { background: var(--brand); color: #fff; border-top-right-radius: 4px; }
.chat-cta { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: var(--fs-label); font-weight: 600; color: var(--brand-hover); }
.chat-bubble-why, .chat-bubble-action { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-size: var(--fs-body-sm); color: var(--text-muted); }
.chat-bubble-label { font-weight: 600; color: var(--text); margin-right: 4px; }
.chat-model-footer { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: var(--fs-caption); color: var(--text-faint); }
.chat-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chat-chip { border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius-pill); padding: 5px 11px; font-size: var(--fs-label); color: var(--text); }
.chat-chip:hover { background: var(--surface-2); border-color: var(--brand); color: var(--brand-hover); }
.chat-typing { display: flex; gap: 4px; align-items: center; padding: 13px; }
.chat-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--text-faint); animation: chatDot 1.1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatDot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.chat-input-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); flex-shrink: 0; align-items: center; }
.chat-input { flex: 1; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 10px 16px; font-size: var(--fs-body-sm); outline: none; }
.chat-input:focus { border-color: var(--brand); }
.chat-send-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; flex-shrink: 0; }
.chat-send-btn:hover { background: var(--brand-hover); }
.create-hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.create-hub-tile { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; cursor: pointer; text-align: left; background: var(--surface); }
.create-hub-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.create-hub-tile-icon { width: 36px; height: 36px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.create-hub-tile-icon.flow-type-trigger { background: var(--info-soft); color: var(--info); }
.create-hub-tile-icon.flow-type-agent { background: var(--brand-soft); color: var(--brand-hover); }
.create-hub-tile-icon.flow-type-tool { background: var(--success-soft); color: var(--success); }
.create-hub-tile-icon.flow-type-condition { background: var(--warning-soft); color: var(--warning); }
.create-hub-tile-title { font-weight: 600; font-size: var(--fs-body); }
.create-hub-tile-desc { font-size: var(--fs-label); color: var(--text-muted); line-height: 1.5; }
@media (max-width: 640px) { .create-hub-grid { grid-template-columns: 1fr; } }
.model-store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 900px) { .model-store-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .model-store-grid { grid-template-columns: 1fr; } }
.model-store-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px; position: relative; }
.model-store-card-enabled { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.provider-pill { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-caption); font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.03em; }
.add-tool-card { border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; cursor: pointer; color: var(--text-muted); min-height: 168px; }
.add-tool-card:hover { border-color: var(--brand); color: var(--brand-hover); background: var(--brand-soft); }
.plan-info-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 10px; }
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #f6f7f9, #eef0fe); }
.auth-card { width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 32px; }
.oauth-btn {
display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius-sm);
padding: 10px 14px; font-size: var(--fs-body); font-weight: 600; color: var(--text); cursor: pointer; font-family: inherit;
}
.oauth-btn:hover:not(:disabled) { background: var(--surface-2); border-color: var(--text-faint); }
.oauth-btn:disabled { opacity: 0.7; cursor: default; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--text-faint); font-size: var(--fs-label); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.google-picker {
position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
box-shadow: var(--shadow-lg); padding: 6px; text-align: left;
}
.google-picker-title { font-size: var(--fs-caption); font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.03em; padding: 6px 8px; }
.google-picker-row { display: flex; align-items: center; gap: 10px; width: 100%; border: none; background: none; padding: 8px; border-radius: var(--radius-sm); cursor: pointer; text-align: left; font-family: inherit; }
.google-picker-row:hover { background: var(--surface-2); }
.google-picker-name { font-size: var(--fs-body-sm); font-weight: 600; }
.google-picker-email { font-size: var(--fs-caption); color: var(--text-faint); }
.google-picker-divider { height: 1px; background: var(--border); margin: 4px 0; }
.onboarding-shell { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; align-items: center; padding: 40px 20px; }
.onboarding-card { width: 680px; max-width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.mobile-nav-toggle { display: none; border: none; background: none; color: var(--text-muted); width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: var(--radius-sm); flex-shrink: 0; }
.mobile-nav-toggle:hover { background: var(--surface-2); }
.sidebar-mobile-close { display: none; margin-left: auto; border: none; background: none; color: var(--text-faint); }
.sidebar-backdrop { display: none; }
@media (max-width: 900px) {
.mobile-nav-toggle { display: flex; }
.sidebar { position: fixed; z-index: 120; height: 100%; left: -100%; top: 0; transition: left 0.18s ease; box-shadow: var(--shadow-lg); width: 240px; }
.sidebar-mobile-open { left: 0; }
.sidebar-collapsed.sidebar-mobile-open { width: 240px; }
.sidebar-mobile-open .sidebar-item span, .sidebar-mobile-open .brand-name, .sidebar-mobile-open .sidebar-collapse-btn span { display: inline; }
.sidebar-collapse-btn { display: none; }
.sidebar-mobile-close { display: flex; }
.sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,18,24,0.44); z-index: 110; }
.app-content { padding: 14px; }
.topbar { padding: 0 10px; gap: 8px; }
.topbar-search span { display: none; }
.topbar-search { min-width: 0; padding: 7px 10px; }
.topbar-search kbd { display: none; }
.workspace-switcher-text { display: none; }
.page-header-row { flex-direction: column; align-items: stretch; }
.page-header-actions { flex-wrap: wrap; }
.page-header h1 { font-size: var(--fs-h3); }
.btn-md span, .btn-sm span { white-space: nowrap; }
.two-col { grid-template-columns: 1fr; }
.builder-layout { grid-template-columns: 1fr; }
.dropdown-panel { width: 92vw; max-width: 340px; }
.command-palette { width: 94vw; }
}
.flow-page { display: flex; flex-direction: column; height: 100%; width: 100%; min-width: 0; }
.flow-toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; flex-shrink: 0; }
.flow-toolbar-title { font-weight: 700; font-size: var(--fs-h4); display: flex; align-items: center; gap: 8px; }
.flow-status-summary { display: flex; align-items: center; gap: 12px; font-size: var(--fs-label); color: var(--text-muted); margin-left: 4px; }
.flow-status-summary-item { display: flex; align-items: center; gap: 5px; }
.flow-filter-row { display: flex; align-items: center; gap: 6px; padding: 8px 20px; border-bottom: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; flex-shrink: 0; }
.flow-filter-chip { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-pill); padding: 4px 11px; font-size: var(--fs-label); font-weight: 600; color: var(--text-muted); cursor: pointer; }
.flow-filter-chip:hover { border-color: var(--border-strong); color: var(--text); }
.flow-filter-chip-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.flow-link-chip-sep { width: 1px; height: 16px; background: var(--border-strong); margin: 0 4px; }
.flow-link-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-hover); }
.flow-link-chip:hover { border-color: var(--brand); }
.flow-canvas-viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; cursor: grab; background-color: var(--bg); background-image: radial-gradient(var(--border-strong) 1px, transparent 1px); background-size: 22px 22px; }
.flow-canvas-viewport.flow-panning { cursor: grabbing; }
.flow-canvas-svg { width: 100%; height: 100%; display: block; }
.flow-zoom-controls { position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 4px; z-index: 5; }
.flow-zoom-btn { width: 30px; height: 30px; border: none; background: none; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-muted); cursor: pointer; }
.flow-zoom-btn:hover { background: var(--surface-2); color: var(--text); }
.flow-zoom-pct { text-align: center; font-size: var(--fs-caption); color: var(--text-faint); padding: 2px 0; }
.flow-group-label { font-size: 12.5px; font-weight: 700; fill: var(--text); }
.flow-group-label-sub { font-size: 10.5px; fill: var(--text-faint); }
.flow-edge-path { fill: none; stroke: var(--border-strong); stroke-width: 2; }
.flow-edge-path-animated { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 5 6; animation: flowDash 1.1s linear infinite; opacity: 0.75; }
.flow-edge-path-link { fill: none; stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 2 5; }
.flow-edge-path-dim { opacity: 0.18; }
@keyframes flowDash { to { stroke-dashoffset: -22; } }
.flow-node-group { cursor: pointer; }
.flow-node-circle { stroke-width: 2; transition: stroke 0.12s, stroke-width 0.12s; }
.flow-node-group.flow-node-dim { opacity: 0.25; }
.flow-node-group.flow-node-highlight .flow-node-circle { stroke: var(--brand); stroke-width: 3; }
.flow-node-group.flow-node-drop-target .flow-node-circle { stroke: var(--brand); stroke-width: 4; filter: drop-shadow(0 0 5px var(--brand)); }
.flow-node-label { font-size: 11px; font-weight: 600; fill: var(--text); pointer-events: none; }
.flow-node-sublabel { font-size: 9.5px; fill: var(--text-faint); pointer-events: none; }
.flow-node-handle { opacity: 0; transition: opacity 0.12s; cursor: crosshair; }
.flow-node-group:hover .flow-node-handle { opacity: 1; }
.flow-canvas-viewport.flow-connecting .flow-node-handle { pointer-events: none; }
.flow-node-handle-stem { stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 2 3; }
.flow-node-handle circle { fill: var(--surface); stroke: var(--brand); stroke-width: 1.5; }
.flow-node-handle path { stroke: var(--brand); stroke-width: 1.4; }
.flow-node-handle:hover circle { fill: var(--brand); }
.flow-node-handle:hover path { stroke: #fff; }
.flow-edge-dragging { stroke: var(--brand); stroke-width: 2; stroke-dasharray: 5 5; pointer-events: none; }
.flow-status-ring { fill: var(--surface); }
.flow-status-ring.status-active { fill: var(--success); }
.flow-status-ring.status-attention { fill: var(--warning); }
.flow-status-ring.status-error { fill: var(--danger); }
.flow-status-ring.status-inactive { fill: var(--text-faint); }
.flow-status-pulse { animation: svgPulse 1.6s ease-in-out infinite; }
@keyframes svgPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.flow-plus-node circle { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 2; }
.flow-plus-node:hover circle { fill: var(--brand); }
.flow-plus-node:hover .flow-plus-icon { stroke: #fff; }
.flow-plus-icon { stroke: var(--brand); }
.flow-ghost-node circle { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 4 4; }
.flow-ghost-node:hover circle { stroke: var(--brand); }
.flow-ghost-label { font-size: 10px; fill: var(--text-faint); pointer-events: none; }
.flow-new-flow-btn { display: flex; align-items: center; gap: 6px; }
.flow-category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.flow-category-tile { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; cursor: pointer; background: var(--surface); }
.flow-category-tile:hover { border-color: var(--border-strong); background: var(--surface-2); }
.flow-category-icon { width: 32px; height: 32px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.flow-existing-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; margin-top: 10px; }
.flow-existing-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px 10px; cursor: pointer; }
.flow-existing-row:hover { border-color: var(--brand); background: var(--brand-soft); }
.flow-existing-row-disabled { opacity: 0.45; cursor: not-allowed; }
.flow-existing-row-disabled:hover { border-color: var(--border); background: var(--surface); }
.template-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.template-card { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; }
.template-card:hover { border-color: var(--brand); }
.template-card-active { border-color: var(--brand); background: var(--brand-soft); }
.template-card-title { font-weight: 600; font-size: var(--fs-body); color: var(--text); }
.template-card-flow { font-size: var(--fs-label); color: var(--text-faint); }
.convo { display: flex; flex-direction: column; gap: 10px; }
.convo-row { display: flex; gap: 8px; align-items: flex-start; }
.convo-row-user { justify-content: flex-end; }
.convo-bubble { max-width: 88%; padding: 10px 14px; border-radius: var(--radius-lg); font-size: var(--fs-body); line-height: 1.55; }
.convo-user { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.convo-ai { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; width: 100%; max-width: 100%; }
.default-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: start; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.default-row:last-child { border-bottom: none; }
.default-label { font-size: var(--fs-body-sm); color: var(--text-faint); font-weight: 600; }
.agent-flow { display: flex; flex-direction: column; align-items: stretch; }
.agent-flow-block { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; text-align: left; width: 100%; font: inherit; color: var(--text); }
.agent-flow-block:hover { border-color: var(--brand); }
.agent-flow-block-active { border-color: var(--brand); background: var(--brand-soft); }
.agent-flow-icon { width: 28px; height: 28px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.agent-flow-label { display: block; font-weight: 600; font-size: var(--fs-body-sm); }
.agent-flow-detail { display: block; font-size: var(--fs-label); color: var(--text-faint); overflow-wrap: anywhere; }
.agent-flow-arrow { text-align: center; color: var(--text-faint); font-size: var(--fs-body); line-height: 1; padding: 3px 0; }
.agent-sec-flash { animation: agentFlash 1.4s ease; border-radius: var(--radius-md); }
@keyframes agentFlash { 0%, 60% { background: var(--brand-soft); box-shadow: 0 0 0 6px var(--brand-soft); } 100% { background: transparent; box-shadow: none; } }
.stage-strip { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 6px; align-items: stretch; }
.stage-box { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px 10px; background: var(--surface); min-width: 0; }
.stage-title { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: var(--fs-label); margin-bottom: 3px; }
.stage-body { font-size: var(--fs-label); color: var(--text-muted, var(--text-faint)); overflow-wrap: anywhere; }
.stage-arrow { align-self: center; color: var(--text-faint); }
@media (max-width: 760px) { .stage-strip { grid-template-columns: 1fr; } .stage-arrow { transform: rotate(90deg); justify-self: center; } .template-cards { grid-template-columns: 1fr; } .default-row { grid-template-columns: 1fr; } }
.agent-result-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.agent-result-facts { display: flex; gap: 14px; font-size: var(--fs-body-sm); align-items: flex-end; }
.agent-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; font-size: var(--fs-body-sm); }
.agent-result-list > div { margin: 2px 0; }
@media (max-width: 760px) { .agent-result-grid { grid-template-columns: 1fr; } }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tier-box { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px; background: var(--surface); }
.tier-box-auto { border-top: 3px solid var(--success); }
.tier-box-approval { border-top: 3px solid var(--warning); }
.tier-box-human { border-top: 3px solid var(--danger); }
@media (max-width: 760px) { .tier-grid { grid-template-columns: 1fr; } }
.perf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.perf-value { font-size: var(--fs-h2); font-weight: 700; }
.perf-label { font-size: var(--fs-label); color: var(--text-faint); }
@media (max-width: 760px) { .perf-grid { grid-template-columns: repeat(2, 1fr); } }
.access-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; font-size: var(--fs-body-sm); }
.access-auto { background: var(--success-soft); color: var(--success); }
.access-approval { background: var(--warning-soft); color: var(--warning); }
.access-human { background: var(--danger-soft); color: var(--danger); }
@media (max-width: 760px) { .access-grid { grid-template-columns: 1fr; } }
.rule-grid { display: grid; grid-template-columns: 1fr; gap: 10px; font-size: var(--fs-body-sm); }
.rule-grid label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rule-grid input, .rule-grid select { width: auto; }
.agent-schema { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; font-size: var(--fs-label); overflow-x: auto; margin: 0; }
.edit-ask { display: flex; gap: 8px; }
.edit-ask input { flex: 1; }
.edit-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.diff-row { display: grid; grid-template-columns: 170px 1fr 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: var(--fs-body-sm); align-items: start; }
.diff-row:last-child { border-bottom: none; }
.diff-label { font-weight: 600; }
.diff-tag { display: inline-block; font-size: var(--fs-caption); font-weight: 700; text-transform: uppercase; background: var(--neutral-soft); color: var(--neutral-soft-text); border-radius: var(--radius-xs); padding: 1px 5px; margin-right: 6px; }
.diff-tag-after { background: var(--success-soft); color: var(--success); }
@media (max-width: 760px) { .diff-row { grid-template-columns: 1fr; } .edit-ask { flex-direction: column; } }
.two-col > * { min-width: 0; }
.split-review { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.split-review > *, .split-even > * { min-width: 0; }
@media (max-width: 900px) { .split-review, .split-even { grid-template-columns: 1fr; } }
[data-kbd="1"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
:root[data-theme="dark"] .sidebar-compose-btn:hover, :root[data-theme="dark"] .all-modules-link:hover,
:root[data-theme="dark"] .btn-tertiary { color: var(--brand-soft-text); }
:root[data-theme="dark"] .btn-primary:hover:not(:disabled) { background: #5a51df; }
:root[data-density="compact"] { --row-pad-y: 7px; --row-pad-x: 12px; }
:root[data-density="compact"] .table th { padding-top: 7px; padding-bottom: 7px; }
:where(button, a[href], input, select, textarea, summary, [role="button"], [role="tab"], [role="menuitem"], [tabindex]:not([tabindex="-1"])):focus-visible {
outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--focus-offset);
}
.kpi-card-value, .stat-strip-value, .perf-value, .donut-center-value, .table td, .tab-count, .sidebar-badge { font-variant-numeric: tabular-nums; }
.switch { position: relative; width: 34px; height: 20px; border-radius: var(--radius-pill); border: none; padding: 0; background: var(--border-strong); cursor: pointer; flex-shrink: 0; transition: background var(--dur-base) var(--ease); }
.switch-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--dur-base) var(--ease); }
.switch-on { background: var(--brand); }
.switch-on .switch-knob { transform: translateX(14px); }
.switch:disabled { opacity: 0.5; cursor: not-allowed; }
.switch:active .switch-knob { width: 18px; }
.switch-on:active .switch-knob { transform: translateX(12px); }
@media (prefers-reduced-motion: reduce) { .switch, .switch-knob { transition: none; } }
.segmented { display: inline-flex; background: var(--neutral-soft); border-radius: var(--radius-sm); padding: 2px; gap: 2px; }
.segmented button { border: none; background: none; height: 28px; padding: 0 12px; border-radius: var(--radius-xs); font-family: inherit; font-size: var(--fs-body-sm); font-weight: 500; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.setting-group { max-width: 720px; margin-bottom: var(--space-7); }
.setting-group-title { font-size: var(--fs-h4); font-weight: 600; margin-bottom: var(--space-2); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: none; }
.setting-row-title { font-size: var(--fs-body-sm); font-weight: 600; color: var(--text); }
.setting-row-desc { font-size: var(--fs-label); color: var(--text-muted); margin-top: 2px; max-width: 460px; line-height: 1.45; }
.setting-row-control { flex-shrink: 0; display: flex; align-items: center; gap: var(--space-2); }
@media (max-width: 640px) { .setting-row { flex-direction: column; align-items: flex-start; gap: var(--space-3); } }
:root[data-theme="dark"] .topbar-icon-badge, :root[data-theme="dark"] .sidebar-badge, :root[data-theme="dark"] .btn-danger { background: #c92a2a; color: #fff; }
:root[data-theme="dark"] .btn-danger:hover:not(:disabled) { background: #a91f1f; }
.sidebar-rail { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; }
.sidebar-rail-sep { height: 1px; background: var(--border); margin: 6px 14px; }
.sidebar-rail-btn { width: 100%; border: none; background: none; font-family: inherit; cursor: pointer; justify-content: center; }
.rail-flyout { min-width: 190px; }
.rail-flyout-title { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); font-weight: 600; padding: 6px 10px 4px; }
a.dropdown-item { text-decoration: none; }
.dropdown-item-current { background: var(--neutral-soft); font-weight: 600; }
.sidebar-collapsed .sidebar-nav { flex: 0 0 auto; }
.sidebar-collapsed .sidebar-profile-row { justify-content: center; padding: 6px 0; }
.sidebar-collapsed .sidebar-item, .sidebar-collapsed .sidebar-collapse-btn { justify-content: center; padding: 8px 0; }
.sidebar-collapsed .sidebar-item svg, .sidebar-collapsed .sidebar-collapse-btn svg { flex-shrink: 0; }
.sidebar-collapsed .sidebar-badge-dot { left: auto; right: 14px; }
.sidebar-collapsed .dropdown-menu { min-width: 240px; }
.sidebar-hnav { padding: 4px 0 14px; }
.sidebar-hnav-item svg { flex-shrink: 0; }
.tool-pill-btn { font-family: inherit; cursor: pointer; }
.tool-pill-btn:not(.tool-pill-active):hover { background: var(--surface-2); color: var(--text); }
.dash-cell { position: relative; min-width: 0; display: flex; flex-direction: column; }
.dash-cell > .card, .dash-cell > .dash-widget { flex: 1 1 auto; min-width: 0; box-sizing: border-box; }
.dash-cell-link { cursor: pointer; border-radius: var(--radius-lg); transition: box-shadow var(--dur-fast, 120ms) ease; }
.dash-cell-link:hover { box-shadow: var(--shadow-md); }
.dash-cell-link:hover .dash-widget-title { color: var(--brand-hover); }
.dash-cell-editing { outline: 1.5px dashed var(--border-strong, var(--border)); outline-offset: 4px; border-radius: var(--radius-lg); cursor: grab; }
.dash-cell-editing > .card, .dash-cell-editing > .dash-widget { pointer-events: none; user-select: none; }
.dash-cell-dragging { opacity: 0.45; }
.dash-cell-over { outline: 2px solid var(--brand); }
.dash-cell-bar {
order: -1; display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 0 6px; cursor: default; flex-shrink: 0;
}
.dash-cell-bar .segmented button { padding: 2px 8px; min-width: 24px; }
.dash-cell-grip { color: var(--text-faint); display: inline-flex; padding: 0 4px; cursor: grab; }
.dash-cell-handle {
position: absolute; right: 4px; bottom: 4px; z-index: 2; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); cursor: nwse-resize; touch-action: none; padding: 0;
}
.dash-cell-handle:hover { background: var(--surface-2); color: var(--text); }
.dash-edit-hint { margin: 0 0 14px; }
@media (max-width: 900px) { .dash-cell-sized { min-height: 0 !important; } }
.chart-hover-band { fill: var(--surface-2); opacity: 0.7; }
.chart-bar-label { font-size: 10px; font-weight: 600; fill: var(--text-muted); font-variant-numeric: tabular-nums; }
.chart-axis-title { font-size: 10.5px; fill: var(--text-muted); font-weight: 600; }
.viz-cartesian .chart-axis-label { font-variant-numeric: tabular-nums; }
.chart-tip {
position: absolute; top: 6px; transform: translateX(-50%); z-index: 5; pointer-events: none; min-width: 150px; max-width: 260px;
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 8px 10px; font-size: var(--fs-label);
}
.chart-tip-title { font-weight: 600; margin-bottom: 4px; color: var(--text); }
.chart-tip-row { display: flex; align-items: center; gap: 6px; color: var(--text-muted); padding: 1px 0; }
.chart-tip-row b { margin-left: auto; padding-left: 12px; color: var(--text); font-variant-numeric: tabular-nums; }
.chart-tip-total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }
.viz-treemap-tile { position: absolute; box-sizing: border-box; border-radius: var(--radius-xs); border-top: 1px solid var(--surface); border-right: 1px solid var(--surface); overflow: hidden; }
.viz-treemap-label { padding: 6px 8px; display: flex; flex-direction: column; gap: 1px; font-size: var(--fs-label); color: var(--text); line-height: 1.25; }
.viz-treemap-label span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz-treemap-label b { font-variant-numeric: tabular-nums; }
.viz-treemap-label em { font-style: normal; color: var(--text-faint); font-size: var(--fs-caption); }
.rb-topbar { margin-bottom: var(--space-4); }
.rb-crumbs { display: flex; align-items: center; gap: 4px; font-size: var(--fs-label); color: var(--text-faint); margin-bottom: var(--space-2); }
.rb-crumbs a { color: var(--text-muted); text-decoration: none; }
.rb-crumbs a:hover { color: var(--text); text-decoration: underline; }
.rb-titlebar { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.rb-title {
flex: 1 1 260px; min-width: 0; font-family: inherit; font-size: var(--fs-h2); font-weight: 600; color: var(--text); background: transparent;
border: 1px solid transparent; border-radius: var(--radius-sm); padding: 4px 8px; margin-left: -8px;
}
.rb-title:hover { border-color: var(--border); }
.rb-title:focus { border-color: var(--focus-color); outline: none; background: var(--surface); }
.rb-title::placeholder { color: var(--text-faint); }
.rb-status { font-size: var(--fs-label); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.rb-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.rb-usedin { margin-top: var(--space-2); font-size: var(--fs-label); color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rb-usedin a { color: var(--brand-hover); }
.rb-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 292px; gap: var(--space-4); align-items: start; }
.rb-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-3); position: sticky; top: 0; display: flex; flex-direction: column; gap: var(--space-2); max-height: calc(100vh - 150px); }
.rb-panel-title { font-size: var(--fs-label); font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.rb-panel-sub { font-size: var(--fs-caption); color: var(--text-faint); }
.rb-search { width: 100%; }
.rb-panel-scroll { overflow-y: auto; min-height: 0; margin: 0 calc(var(--space-1) * -1); padding: 0 var(--space-1); }
.rb-group-title { font-size: var(--fs-label); font-weight: 600; color: var(--text); margin: var(--space-2) 0 var(--space-1); }
.rb-group-title span { font-weight: 400; color: var(--text-faint); }
.rb-subgroup { font-size: var(--fs-caption); color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; margin: var(--space-2) 0 2px; padding-left: 8px; }
.rb-none { padding: 4px 8px; font-size: var(--fs-label); }
.rb-field { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: var(--radius-sm); cursor: grab; font-size: var(--fs-body-sm); color: var(--text); user-select: none; }
.rb-field:hover { background: var(--surface-2); }
.rb-field-icon { color: var(--text-faint); display: inline-flex; }
.rb-field-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-field-add { color: var(--text-faint); opacity: 0; display: inline-flex; }
.rb-field:hover .rb-field-add, .rb-field:focus-visible .rb-field-add { opacity: 1; }
.rb-field-used { color: var(--brand-hover); font-weight: 600; background: var(--brand-soft); }
.rb-field-used .rb-field-icon { color: var(--brand-hover); }
.rb-more { margin-top: var(--space-2); font-size: var(--fs-body-sm); }
.rb-more summary { cursor: pointer; color: var(--text-muted); padding: 4px 8px; }
.rb-main { min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.rb-query { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-2) var(--space-3); display: flex; flex-direction: column; }
.rb-well { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: var(--space-3); padding: 7px 0; border-radius: var(--radius-sm); }
.rb-well + .rb-well { border-top: 1px solid var(--border); }
.rb-well-label { font-size: var(--fs-label); font-weight: 600; color: var(--text-muted); }
.rb-well-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 30px; }
.rb-well-accepts { background: var(--brand-soft); outline: 1.5px dashed var(--brand); outline-offset: -2px; }
.rb-well-over { background: var(--brand-soft); outline-style: solid; }
.rb-drop-hint { font-size: var(--fs-label); color: var(--text-faint); }
.rb-chip { display: inline-flex; align-items: center; background: var(--neutral-soft); border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: var(--fs-label); font-weight: 600; color: var(--text); max-width: 100%; }
.rb-chip-main { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border: none; background: none; font: inherit; color: inherit; cursor: pointer; border-radius: var(--radius-pill); }
.rb-chip-static { cursor: default; }
button.rb-chip-main:hover { color: var(--brand-hover); }
.rb-chip-role { font-weight: 400; color: var(--text-faint); font-size: var(--fs-caption); }
.rb-chip-dim { opacity: 0.6; }
.rb-chip-x { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 2px; border: none; background: none; color: var(--text-faint); border-radius: 50%; cursor: pointer; padding: 0; }
.rb-chip-x:hover { background: var(--border); color: var(--text); }
.rb-swap, .rb-add { display: inline-flex; align-items: center; gap: 4px; border: 1px dashed var(--border-strong); background: none; color: var(--text-muted); font: inherit; font-size: var(--fs-label); border-radius: var(--radius-pill); padding: 3px 10px; cursor: pointer; }
.rb-swap { padding: 3px 6px; }
.rb-swap:hover, .rb-add:hover { background: var(--surface-2); color: var(--text); border-style: solid; }
.rb-canvas { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.rb-canvas-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
.rb-canvas-title { font-weight: 600; font-size: var(--fs-body); }
.rb-suggest { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--fs-label); }
.rb-suggest-btn { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: var(--fs-label); color: var(--text-muted); background: none; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 3px 10px 3px 8px; cursor: pointer; }
.rb-suggest-btn:hover { background: var(--surface-2); color: var(--text); }
.rb-suggest-on { border-color: var(--brand); color: var(--brand-hover); background: var(--brand-soft); }
.rb-stage { padding: var(--space-4); min-height: 320px; background: var(--bg); }
.rb-stage > .card, .rb-stage .card { box-shadow: none; }
.rb-unfit { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-2); padding: var(--space-7) var(--space-4); color: var(--text-faint); }
.rb-unfit-title { font-weight: 600; color: var(--text); font-size: var(--fs-h4); }
.rb-unfit-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: var(--space-2); }
.rb-below { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0 var(--space-4) var(--space-4); }
.rb-below-tabs { display: flex; gap: var(--space-4); border-bottom: 1px solid var(--border); margin: 0 calc(var(--space-4) * -1) var(--space-3); padding: 0 var(--space-4); }
.rb-below-tab { border: none; background: none; font: inherit; font-size: var(--fs-body-sm); color: var(--text-muted); padding: 10px 0; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.rb-below-tab:hover { color: var(--text); }
.rb-below-tab-on { color: var(--text); font-weight: 600; border-bottom-color: var(--brand); }
.rb-datatable { max-height: 320px; overflow: auto; }
.rb-total-row td { font-weight: 600; border-top: 1px solid var(--border-strong); }
.rb-mono { font-family: ui-monospace, monospace; font-size: 11.5px; }
.rb-side-tabs { display: flex; gap: 2px; background: var(--neutral-soft); border-radius: var(--radius-md); padding: 2px; }
.rb-side-tab { flex: 1; border: none; background: none; font: inherit; font-size: var(--fs-body-sm); color: var(--text-muted); padding: 5px 0; border-radius: var(--radius-sm); cursor: pointer; }
.rb-side-tab-on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }
.rb-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rb-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px 7px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); font: inherit; font-size: var(--fs-caption); color: var(--text-muted); cursor: pointer; }
.rb-tile:hover { background: var(--surface-2); color: var(--text); }
.rb-tile-on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-hover); font-weight: 600; }
.rb-tile-off { opacity: 0.42; cursor: not-allowed; }
.rb-tile-off:hover { background: var(--surface); color: var(--text-muted); }
.rb-tile-best { position: absolute; top: 4px; right: 4px; color: var(--warning, #d08b1f); display: inline-flex; }
.rb-format { display: flex; flex-direction: column; gap: var(--space-2); }
.rb-format-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-body-sm); min-height: 32px; flex-wrap: wrap; }
.rb-format-row > span:first-child { color: var(--text-muted); }
.rb-hint { font-size: var(--fs-label); color: var(--text-faint); }
.rb-num { width: 96px; }
.rb-palettes { display: flex; gap: 6px; }
.rb-palette { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.rb-palette i { width: 9px; height: 16px; border-radius: 2px; display: block; }
.rb-palette-on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.rb-popover { padding: var(--space-3); max-height: 70vh; overflow: auto; }
.rb-pop-title { font-weight: 600; margin-bottom: var(--space-2); }
.rb-pop-label { display: block; font-size: var(--fs-label); color: var(--text-muted); margin: var(--space-2) 0 4px; }
.rb-pop-actions { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-3); }
.rb-check-list { max-height: 170px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px; }
.rb-check { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: var(--fs-body-sm); cursor: pointer; }
.rb-filter-editor .select, .rb-filter-editor .input { width: 100%; }
@media (max-width: 1180px) {
.rb-grid { grid-template-columns: minmax(0, 1fr) 292px; }
.rb-panel-data { grid-column: 1 / -1; grid-row: 2; position: static; max-height: none; }
.rb-panel-data .rb-panel-scroll { max-height: 240px; }
}
@media (max-width: 860px) {
.rb-grid { grid-template-columns: minmax(0, 1fr); }
.rb-panel { position: static; max-height: none; }
.rb-well { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
.dash-cell-edit {
position: absolute; top: 8px; right: 8px; z-index: 3; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--text-faint); cursor: pointer; padding: 0; opacity: 0.55;
transition: opacity var(--dur-fast, 120ms) ease, background var(--dur-fast, 120ms) ease;
}
.dash-cell:hover .dash-cell-edit, .dash-cell-edit:focus-visible { opacity: 1; }
.dash-cell-edit:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.dash-cell-editing .dash-cell-edit { top: 46px; }
.lw-body { padding: var(--space-4); overflow-y: auto; }
.lw-pane { margin-top: var(--space-4); }
.lw-field { margin-bottom: var(--space-4); }
.lw-field-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.lw-label { font-size: var(--fs-body-sm); font-weight: 600; color: var(--text); margin-bottom: 6px; }
.lw-field-row .lw-label { margin-bottom: 0; }
.lw-checks { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 4px; }
.lw-check { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: var(--fs-body-sm); cursor: pointer; border-radius: var(--radius-sm); }
.lw-check:hover { background: var(--surface-2); }
.lw-hint { font-size: var(--fs-label); color: var(--text-faint); margin-top: var(--space-3); }
.lw-badges { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.lw-summary { font-size: var(--fs-body); margin: 0 0 var(--space-2); }
.lw-rows { margin-top: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md); }
.lw-row { padding: var(--space-3); }
.lw-row + .lw-row { border-top: 1px solid var(--border); }
.lw-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.lw-row-label { font-weight: 600; font-size: var(--fs-body-sm); }
.lw-row-value { font-variant-numeric: tabular-nums; font-size: var(--fs-body); }
.lw-row-how { color: var(--text-muted); font-size: var(--fs-label); margin-top: 4px; line-height: 1.45; }
.lw-row-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: 8px; font-size: var(--fs-caption); color: var(--text-faint); flex-wrap: wrap; }
.lw-row-meta a { color: var(--brand-hover); }
.lw-row-note { margin-top: 6px; font-size: var(--fs-caption); color: var(--text-faint); font-style: italic; }
.attn-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; vertical-align: middle; margin-left: 8px; }
.attn-dot-attention { background: var(--brand); }
.attn-dot-warning { background: var(--warning); }
.attn-dot-critical { background: var(--danger); }
.module-tree-head .attn-dot { margin-left: 2px; margin-right: auto; }
.module-tree-item { display: flex; align-items: center; }
.dropdown-item .attn-dot { margin-left: auto; }
.sidebar-item .attn-dot { margin-left: auto; }
.tab .attn-dot { margin-left: 6px; margin-right: -2px; }
.sidebar-rail-btn, .sidebar-item { position: relative; }
.attn-dot-corner { position: absolute; top: 6px; right: 14px; line-height: 0; }
.attn-dot-corner .attn-dot { margin: 0; box-shadow: 0 0 0 2px var(--bg); width: 9px; height: 9px; }
.module-tree-head .attn-dot, .module-tree-item .attn-dot, .sidebar-item .attn-dot, .dropdown-item .attn-dot { flex: 0 0 8px; width: 8px; min-width: 8px; height: 8px; padding: 0; overflow: visible; }
.act-shell { align-items: stretch; }
.act-top { display: flex; align-items: center; justify-content: space-between; max-width: 940px; width: 100%; margin: 0 auto 18px; }
.act-body { display: flex; gap: 22px; max-width: 940px; width: 100%; margin: 0 auto; align-items: flex-start; }
.act-rail { width: 190px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 20px; }
.act-rail-item { display: flex; align-items: center; gap: 10px; border: none; background: none; padding: 7px 8px; border-radius: var(--radius-sm); font-family: inherit; font-size: var(--fs-body-sm); color: var(--text-muted); text-align: left; cursor: pointer; }
.act-rail-item:hover:not(:disabled) { background: var(--surface-2); }
.act-rail-item:disabled { opacity: 0.45; cursor: default; }
.act-rail-active { background: var(--surface-2); color: var(--text); font-weight: 600; }
.act-rail-mark { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.act-rail-done { background: var(--success); border-color: var(--success); color: #fff; }
.act-main { flex: 1; min-width: 0; width: auto; }
.act-h { font-size: var(--fs-h3); font-weight: 650; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.act-main p.text-muted { margin: 0 0 14px; }
.act-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; font-size: var(--fs-body-sm); line-height: 1.6; }
.act-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.act-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.act-choice { font-family: inherit; text-align: left; background: var(--surface); color: inherit; }
.act-choice:disabled { opacity: 0.5; cursor: default; }
.act-suggest { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: var(--radius-md); }
.setup-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.setup-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.setup-card-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.setup-card-progress .progress-bar { flex: 1; }
.setup-card-next, .setup-card-account { margin-top: 8px; }
.tour-card { position: fixed; right: 20px; bottom: 20px; width: 320px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 16px; z-index: 130; }
.tour-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
@media (max-width: 800px) { .act-body { flex-direction: column; } .act-rail { width: 100%; flex-direction: row; overflow-x: auto; position: static; } .act-rail-item span:last-child { white-space: nowrap; } }
