
@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;
}


@font-face {
font-family: 'Schibsted Grotesk';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url(/assets/schibstedgrotesk-semibold.woff2) format('woff2');
}
@font-face {
font-family: 'Schibsted Grotesk';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(/assets/schibstedgrotesk-bold.woff2) format('woff2');
}
@font-face {
font-family: 'Schibsted Grotesk';
font-style: normal;
font-weight: 800;
font-display: swap;
src: url(/assets/schibstedgrotesk-extrabold.woff2) format('woff2');
}
@font-face {
font-family: 'IBM Plex Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/assets/ibmplexmono-regular.woff2) format('woff2');
}
@font-face {
font-family: 'IBM Plex Mono';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(/assets/ibmplexmono-medium.woff2) format('woff2');
}


:root {
--bg: #F5F5F2;
--surface: #FFFFFF;
--surface-2: #FAFAF8;
--sunken: #EFEFEB;
--border: #E2E2DE;
--border-strong: #CFCFCA;
--text: #16161A;
--text-muted: #3F3F46;
--text-faint: #62626B;
--text-disabled: #9A9AA0;
--brand: #16161A;
--brand-hover: #2A2A30;
--brand-soft: #EFEFEB;
--brand-soft-text: #3F3F46;
--on-primary: #F5F5F2;
--ember: #C2410C;
--ember-hover: #9A3412;
--ember-soft: #FBEDE5;
--ember-ink: #9A3412;
--amber: #B7791F;
--amber-soft: #FBF0D9;
--amber-ink: #7A4B00;
--on-ember: #FFFFFF;
--success: #137539;
--success-soft: #E7F3EA;
--success-ink: #166534;
--on-success: #FFFFFF;
--warning: #A15C00;
--warning-soft: #FFF3DC;
--warning-soft-text: #7A4700;
--danger: #B42318;
--danger-soft: #FDECEA;
--danger-soft-text: #7A1A12;
--danger-solid: #B42318;
--danger-solid-hover: #9A1D14;
--on-danger: #FFFFFF;
--info: #3F3F46;
--info-soft: #FAFAF8;
--info-soft-text: #3F3F46;
--neutral-soft: #EFEFEB;
--neutral-soft-text: #3F3F46;
--flow-marketing: #3F3F46;
--flow-marketing-soft: #EFEFEB;
--flow-crm: #3F3F46;
--flow-crm-soft: #EFEFEB;
--flow-sales: #3F3F46;
--flow-sales-soft: #EFEFEB;
--flow-revops: #3F3F46;
--flow-revops-soft: #EFEFEB;
--flow-finance: #3F3F46;
--flow-finance-soft: #EFEFEB;
--flow-model: #3F3F46;
--flow-model-soft: #EFEFEB;
--flow-agent: #3F3F46;
--flow-agent-soft: #EFEFEB;
--flow-workflow: #3F3F46;
--flow-workflow-soft: #EFEFEB;
--flow-custom: #3F3F46;
--flow-custom-soft: #EFEFEB;
--chart-1: #16161A;
--chart-2: #5B6B8C;
--chart-3: #A8A29E;
--chart-4: #2F6B57;
--chart-5: #B89A5E;
--chart-6: #7A5C8E;
--radius-sm: 4px;
--radius-md: 6px;
--radius-lg: 8px;
--shadow-sm: 0 1px 2px rgba(22, 22, 26, 0.06);
--shadow-md: 0 4px 16px rgba(22, 22, 26, 0.10), 0 1px 2px rgba(22, 22, 26, 0.06);
--shadow-lg: 0 16px 48px rgba(22, 22, 26, 0.18), 0 2px 6px rgba(22, 22, 26, 0.08);
--side-bg: #16161A;
--side-text: #C9C9C4;
--side-faint: #8A8A90;
--side-active: #2A2A30;
--side-active-text: #FFFFFF;
--side-line: #2A2A30;
--side-ink: #F5F5F2;
--side-ember: #F0773A;
--knob: #FFFFFF;
--toast-ok: #4BB26F; --toast-stop: #F07167;
--mark-ink: #16161A;
--mark-corner: #C2410C;
--sidebar-w: 232px;
--sidebar-w-collapsed: 64px;
--topbar-h: 56px;
--side-panel-w: 320px;
--drawer-w: 440px;
--dialog-max-w: 520px;
--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--font-display: "Schibsted Grotesk", "Inter", -apple-system, "Segoe UI", sans-serif;
--font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
--t-instant: 80ms;
--t-quick: 140ms;
--t-base: 200ms;
--t-slow: 320ms;
--ease-exit: cubic-bezier(0.4, 0, 1, 1);
--ease-spring: cubic-bezier(0.3, 1.35, 0.5, 1);
--z-page: 0;
--z-sidebar: 10;
--z-topbar: 20;
--z-menu: 30;
--z-overlay: 50;
--z-toast: 60;
--z-tooltip: 70;
--scrim: rgba(22, 22, 26, 0.48);
--fs-caption: 12px;
--fs-label: 12px;
--fs-body-sm: 13px;
--fs-body: 15px;
--fs-h4: 16px;
--fs-h3: 18px;
--fs-h2: 20px;
--fs-kpi: 30px;
--fs-display: 56px;
--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: 3px;
--radius-xl: 8px;
--radius-pill: 999px;
--row-pad-y: 12px;
--row-pad-x: 12px;
--target-min: 24px;
--focus-color: #16161A;
--focus-width: 2px;
--focus-offset: 2px;
--dur-fast: 140ms; --dur-base: 200ms; --dur-slow: 320ms;
--ease: cubic-bezier(0.2, 0, 0, 1);
--primary: var(--brand); --primary-hover: var(--brand-hover);
--text-2: var(--text-muted); --text-3: var(--text-faint);
--ok: var(--success); --ok-soft: var(--success-soft); --ok-ink: var(--success-ink);
--warn: var(--warning); --warn-soft: var(--warning-soft); --warn-ink: var(--warning-soft-text);
--stop: var(--danger); --stop-soft: var(--danger-soft); --stop-ink: var(--danger-soft-text);
--r-xs: var(--radius-xs); --r-sm: var(--radius-sm); --r-md: var(--radius-md); --r-lg: var(--radius-lg); --r-pill: var(--radius-pill);
--shadow-1: var(--shadow-sm); --shadow-2: var(--shadow-md); --shadow-3: var(--shadow-lg);
--display: var(--font-display); --body: var(--font); --mono: var(--font-mono);
color-scheme: light;
}
:root[data-theme="dark"] {
--amber: #E0A63A;
--amber-soft: #3A2B0E;
--amber-ink: #F3CB7A;
--bg: #111114;
--surface: #18181C;
--surface-2: #1E1E23;
--sunken: #232328;
--border: #2A2A30;
--border-strong: #3A3A42;
--text: #EDEDEA;
--text-muted: #C9C9C4;
--text-faint: #A1A1A6;
--text-disabled: #6B6B72;
--brand: #EDEDEA;
--brand-hover: #FFFFFF;
--brand-soft: #232328;
--brand-soft-text: #C9C9C4;
--on-primary: #16161A;
--ember: #F0773A;
--ember-hover: #F59A6A;
--ember-soft: #2B170E;
--ember-ink: #F59A6A;
--on-ember: #16161A;
--success: #4BB26F;
--success-soft: #12261A;
--success-ink: #7FD39A;
--on-success: #16161A;
--warning: #E0A43B;
--warning-soft: #2A2010;
--warning-soft-text: #F0C46E;
--danger: #F07167;
--danger-soft: #2A1413;
--danger-soft-text: #F6A39C;
--danger-solid: #C92A2A;
--danger-solid-hover: #A91F1F;
--info: #C9C9C4;
--info-soft: #1E1E23;
--info-soft-text: #C9C9C4;
--neutral-soft: #232328;
--neutral-soft-text: #C9C9C4;
--flow-marketing: #C9C9C4;
--flow-marketing-soft: #232328;
--flow-crm: #C9C9C4;
--flow-crm-soft: #232328;
--flow-sales: #C9C9C4;
--flow-sales-soft: #232328;
--flow-revops: #C9C9C4;
--flow-revops-soft: #232328;
--flow-finance: #C9C9C4;
--flow-finance-soft: #232328;
--flow-model: #C9C9C4;
--flow-model-soft: #232328;
--flow-agent: #C9C9C4;
--flow-agent-soft: #232328;
--flow-workflow: #C9C9C4;
--flow-workflow-soft: #232328;
--flow-custom: #C9C9C4;
--flow-custom-soft: #232328;
--chart-1: #EDEDEA;
--chart-2: #8FA0C2;
--chart-3: #8A8A90;
--chart-4: #5FB08F;
--chart-5: #D9BC7E;
--chart-6: #B592C9;
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
--shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
--side-bg: #0B0B0D;
--side-active: #1E1E23;
--side-line: #1E1E23;
--toast-ok: #15803D; --toast-stop: #B42318;
--mark-ink: #F5F5F2;
--mark-corner: #F0773A;
--focus-color: #EDEDEA;
--scrim: rgba(0, 0, 0, 0.56);
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);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
#root { height: 100%; }
.boot-splash { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100vh; height: 100dvh; font-family: var(--font); font-size: var(--fs-body-sm); color: var(--text-faint); }
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; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
kbd, code, samp { font-family: var(--font-mono); }
svg.app-icon { flex-shrink: 0; display: block; }
svg.app-icon .app-icon-ember { fill: var(--ember); stroke: none; }
@media (prefers-reduced-motion: reduce) {
* { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
.app-shell { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.app-content { flex: 1; overflow-y: auto; padding: 24px 32px 64px; }
.app-content-nopad { padding: 0; overflow: hidden; display: flex; }
.brand-mark { display: inline-flex; flex-shrink: 0; line-height: 0; }
.brand-mark svg { display: block; }
.brand-mark-ink { fill: var(--mark-ink); }
.brand-mark-corner { fill: var(--mark-corner); }
.brand-name, .brand-wordmark { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar {
--mark-ink: var(--side-ink); --mark-corner: var(--side-ember);
width: var(--sidebar-w); flex-shrink: 0; background: var(--side-bg); color: var(--side-text); border-right: 1px solid var(--side-line);
display: flex; flex-direction: column; padding: 16px 12px 12px; transition: width var(--t-base) var(--ease); z-index: var(--z-sidebar);
}
.sidebar-collapsed { width: var(--sidebar-w-collapsed); padding-left: 8px; padding-right: 8px; }
.side-brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 16px; color: var(--side-ink); min-height: 40px; }
.side-brand .brand-name { color: var(--side-ink); flex: 1; }
.sidebar-collapsed .side-brand { justify-content: center; padding-left: 0; padding-right: 0; }
.side-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; min-height: 0; }
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-rail-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--side-line); }
.side-item {
display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--radius-md); color: var(--side-text);
font-size: 14px; font-weight: 500; position: relative; white-space: nowrap; min-width: 0; transition: background var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}
.side-item:hover { background: var(--side-active); color: var(--side-active-text); }
.side-item:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--side-active-text); }
.side-item-active { background: var(--side-active); color: var(--side-active-text); font-weight: 600; }
.side-item svg { flex-shrink: 0; }
.side-item .app-icon-ember { fill: var(--side-ember); }
.side-item-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.side-item-tag { font: 500 10px var(--font); letter-spacing: 0; color: var(--side-faint); border: 1px dashed var(--side-faint); border-radius: var(--radius-pill); padding: 1px 8px; }
.side-item .count-pill { margin-left: auto; }
.sidebar-collapsed .side-item { justify-content: center; padding: 0; }
.side-group { margin-top: 12px; display: flex; flex-direction: column; }
.side-group-head, .sidebar .module-tree-head {
display: flex; align-items: center; gap: 8px; width: 100%; height: 28px; padding: 0 12px; border: 0; background: none; cursor: pointer; text-align: left;
font: 600 12px var(--font); letter-spacing: 0.01em; color: var(--side-faint); border-radius: var(--radius-sm);
}
.side-group-head > span:first-child { flex: 1; }
.side-group-head:hover { color: var(--side-text); }
.side-group-head:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--side-active-text); }
.side-group-static { cursor: default; }
.side-group-static:hover { color: var(--side-faint); }
.side-group-chevron { opacity: 0; transition: opacity var(--t-quick) var(--ease); }
.side-group-head:hover .side-group-chevron, .side-group-head:focus-visible .side-group-chevron, .side-group-head[aria-expanded="false"] .side-group-chevron { opacity: 1; }
.side-group-items { display: flex; flex-direction: column; gap: 2px; }
.side-groups { display: flex; flex-direction: column; }
.side-groups-behind-chats { display: none; }
.side-bottom { border-top: 1px solid var(--side-line); padding-top: 8px; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.side-profile { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 8px; border: 0; background: none; border-radius: var(--radius-md); color: var(--side-text); cursor: pointer; text-align: left; font: inherit; }
.side-profile:hover { background: var(--side-active); }
.side-profile:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--side-active-text); }
.side-profile .avatar { background: var(--side-active); color: var(--side-ink); }
.side-profile-text { display: flex; flex-direction: column; min-width: 0; font-size: var(--fs-body-sm); line-height: 1.3; }
.side-profile-text b { color: var(--side-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-profile-text span { color: var(--side-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-collapsed .side-profile { justify-content: center; padding: 8px 0; }
.sidebar-profile-anchor { position: relative; }
.dropdown-anchor.profile-menu-anchor { top: auto; bottom: calc(100% + 6px); left: 0; color: var(--text); }
.profile-menu-anchor .dropdown-menu { transform-origin: bottom left; min-width: 260px; }
.profile-menu-theme { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; font-size: 14px; font-weight: 500; }
.sidebar-collapse-btn {
display: flex; align-items: center; gap: 8px; height: 32px; border: none; background: none; color: var(--side-faint); cursor: pointer;
padding: 0 12px; border-radius: var(--radius-md); font-size: var(--fs-body-sm); font-family: inherit;
}
.sidebar-collapse-btn:hover { background: var(--side-active); color: var(--side-text); }
.sidebar-collapsed .sidebar-collapse-btn { justify-content: center; padding: 0; }
.sidebar-mobile-close { display: none; margin-left: auto; border: 0; background: none; color: var(--side-text); width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: var(--radius-md); cursor: pointer; }
.sidebar-backdrop { display: none; }
.sidebar [data-tip]::after { left: calc(100% + 10px); bottom: auto; top: 50%; transform: translate(4px, -50%); }
.sidebar [data-tip]:hover::after, .sidebar [data-tip]:focus-visible::after { transform: translate(0, -50%); }
.sidebar:not(.sidebar-collapsed) [data-tip]::after { display: none; }
.sidebar .attn-dot-corner { position: absolute; top: 6px; right: 10px; line-height: 0; }
.sidebar .attn-dot-corner .attn-dot { margin: 0; box-shadow: 0 0 0 2px var(--side-bg); }
.sidebar-chat-search { margin-top: 12px; }
.sidebar-chat-search .search-input { width: 100%; min-width: 0; height: 36px; background: var(--side-active); border-color: var(--side-line); color: var(--side-faint); }
.sidebar-chat-search .search-input input { color: var(--side-ink); }
.sidebar-recent-title-row { display: flex; align-items: center; justify-content: space-between; }
.sidebar-empty-hint { font-size: var(--fs-label); color: var(--side-faint); padding: 2px 12px 8px; line-height: 1.5; }
.sidebar-item-row { display: flex; align-items: center; position: relative; gap: 0; }
.sidebar-item-row > a, .sidebar-item-row > .sidebar-item { flex: 1; min-width: 0; }
.sidebar-item {
display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: var(--radius-md); color: var(--side-text); font-size: var(--fs-body-sm); white-space: nowrap; min-width: 0;
}
.sidebar-item:hover { background: var(--side-active); color: var(--side-active-text); }
.sidebar-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-item-button { border: none; background: none; width: 100%; text-align: left; font-family: inherit; cursor: pointer; }
.sidebar-item-menu-btn {
flex-shrink: 0; border: none; background: none; color: var(--side-faint); opacity: 0; transition: opacity var(--t-quick) var(--ease);
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, .sidebar-recent-title-row:hover .sidebar-item-menu-btn, .sidebar-item-menu-btn:focus-visible { opacity: 1; }
.sidebar-item-menu-btn:hover { background: var(--side-active); color: var(--side-active-text); }
.sidebar-item-menu-btn:disabled { opacity: 0.3 !important; cursor: default; }
.sidebar-pin-btn-active { opacity: 1 !important; color: var(--side-ink); }
.sidebar-recent-item-editing { padding: 0 12px; }
.sidebar-rename-input { border: 1px solid var(--side-text); border-radius: var(--radius-sm); font: inherit; font-size: var(--fs-body-sm); padding: 4px 8px; width: 100%; min-width: 0; background: var(--side-active); color: var(--side-ink); }
.topbar {
height: var(--topbar-h); flex-shrink: 0; border-bottom: 1px solid var(--border); background: var(--surface);
display: flex; align-items: center; padding: 0 24px; gap: 16px; position: relative; z-index: var(--z-topbar);
}
.topbar-crumbs { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.topbar-crumbs .breadcrumb-item { min-width: 0; }
.breadcrumb-sep { color: var(--text-faint); }
.topbar-search {
display: flex; align-items: center; gap: 8px; width: 300px; height: 36px; border: 1px solid var(--border-strong); background: var(--surface);
border-radius: var(--radius-md); padding: 0 12px 0 12px; color: var(--text-faint); font-size: 14px; cursor: pointer; font-family: inherit;
transition: border-color var(--t-quick) var(--ease);
}
.topbar-search:hover { border-color: var(--text-faint); }
.topbar-search:focus-visible { outline: 0; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.topbar-search span { flex: 1; text-align: left; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-menu-anchor { position: relative; }
.topbar-icon-badge {
position: absolute; top: -1px; right: -1px; background: var(--danger-solid); color: var(--on-danger); font-size: var(--fs-caption); font-weight: 700;
border-radius: var(--radius-pill); padding: 0 4px; min-width: 14px; text-align: center; pointer-events: none;
}
.mobile-nav-toggle { display: none; }
.btn {
--h: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 16px;
border-radius: var(--radius-md); border: 1px solid transparent; font-family: var(--font); font-size: 14px; font-weight: 600; line-height: 1;
white-space: nowrap; cursor: pointer;
transition: background var(--t-quick) var(--ease), border-color var(--t-quick) var(--ease), color var(--t-quick) var(--ease), transform var(--t-instant) var(--ease), box-shadow var(--t-quick) var(--ease);
}
.btn-md { --h: 40px; }
.btn-sm { --h: 32px; padding: 0 12px; font-size: var(--fs-body-sm); gap: 8px; }
.btn-lg { --h: 48px; padding: 0 24px; font-size: var(--fs-body); }
.btn:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus-color); }
.btn-primary { background: var(--brand); color: var(--on-primary); }
.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) { border-color: var(--text); }
.btn-tertiary, .btn-ghost { background: transparent; color: var(--text); }
.btn-tertiary:hover:not(:disabled), .btn-ghost:hover:not(:disabled) { background: var(--sunken); }
.btn-link { background: none; color: var(--text); padding: 0 4px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.btn-link:hover:not(:disabled) { text-decoration-thickness: 2px; }
.btn-approve { background: var(--ember); color: var(--on-ember); }
.btn-approve:hover:not(:disabled) { background: var(--ember-hover); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); }
.btn:disabled { background: var(--sunken); color: var(--text-disabled); border-color: var(--border); cursor: not-allowed; transform: none; }
.btn-link:disabled { background: none; }
.btn-loading:disabled { background: var(--sunken); color: var(--text-muted); }
.btn-spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn:active:not(:disabled), .icon-btn:active:not(:disabled) { transform: scale(0.97); }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
.page-enter { animation: pageIn var(--t-base) var(--ease); }
.icon-btn {
width: 32px; height: 32px; border-radius: var(--radius-md); border: 1px solid transparent; background: none;
color: var(--text-muted); display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer;
transition: background var(--t-quick) var(--ease), color var(--t-quick) var(--ease), transform var(--t-instant) var(--ease);
}
.icon-btn:hover { background: var(--sunken); color: var(--text); }
.icon-btn:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus-color); }
.icon-btn-active { background: var(--sunken); color: var(--text); }
.tip { position: relative; display: inline-flex; }
.tip-label, [data-tip]::after {
position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); background: var(--text); color: var(--bg);
font: 500 12px/1.3 var(--font); padding: 8px 8px; border-radius: var(--radius-sm); white-space: nowrap; opacity: 0; pointer-events: none;
transition: opacity var(--t-quick) var(--ease), transform var(--t-quick) var(--ease); z-index: var(--z-tooltip);
}
[data-tip]::after { content: attr(data-tip); }
.tip:hover > .tip-label, .tip:focus-within > .tip-label, [data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 300ms; }
.topbar [data-tip]::after { bottom: auto; top: calc(100% + 8px); }
.link-btn { border: none; background: none; color: var(--text); font-size: var(--fs-body-sm); font-weight: 600; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.badge {
display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 12px; border-radius: var(--radius-pill); font-size: var(--fs-label);
font-weight: 600; white-space: nowrap; line-height: 1; border: 1px solid transparent; font-variant-numeric: tabular-nums;
background: var(--sunken); color: var(--text-muted);
}
.badge::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; background: var(--text-faint); }
.badge .badge-dot { display: none; }
.badge-neutral, .badge-info, .badge-brand { background: var(--sunken); color: var(--text-muted); }
.badge-success { background: var(--success-soft); color: var(--success-ink); }
.badge-success::before { background: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning-soft-text); }
.badge-warning::before { background: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger-soft-text); }
.badge-danger::before { background: var(--danger); }
.badge-waiting { background: var(--ember-soft); color: var(--ember-ink); border-color: var(--ember); }
.badge-waiting::before { background: var(--ember); animation: breathe 2.4s var(--ease) infinite; }
.badge-preview { background: transparent; color: var(--text-faint); border: 1px dashed var(--text-faint); }
.badge-draft { background: var(--surface); color: var(--text-muted); border-color: var(--border-strong); }
.badge-preview::before, .badge-draft::before { display: none; }
.count-pill { background: var(--ember); color: var(--on-ember); font-size: var(--fs-label); font-weight: 700; padding: 1px 8px; border-radius: var(--radius-pill); min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.avatar-agent { border-radius: 0; clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.avatar-tool { border-radius: var(--radius-lg); }
.avatar {
border-radius: 50%; background: var(--sunken); color: var(--text-muted); font-weight: 700;
display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stepper { display: flex; padding: 0; margin: 0; list-style: none; }
.stepper-step { flex: 1; display: flex; flex-direction: column; gap: 8px; position: relative; font-size: var(--fs-body-sm); color: var(--text-faint); min-width: 0; }
.stepper-num { width: 28px; height: 28px; display: grid; place-items: center; border: 1.5px solid var(--border-strong); background: var(--surface); font: 600 13px var(--font-mono); color: var(--text-muted); position: relative; z-index: 1; }
.stepper-step::after { content: ""; position: absolute; top: 14px; left: 28px; right: 0; height: 1.5px; background: var(--border-strong); }
.stepper-step:last-child::after { display: none; }
.stepper-done .stepper-num { background: var(--text); color: var(--bg); border-color: var(--text); }
.stepper-done::after { background: var(--text); }
.stepper-now { color: var(--text); font-weight: 600; }
.stepper-now .stepper-num { border-color: var(--ember); color: var(--ember); box-shadow: 0 0 0 4px var(--ember-soft); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.card-padded { padding: 20px 24px; }
.card[data-kbd="1"], .card-hover { transition: border-color var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease), transform var(--t-quick) var(--ease); }
.card[data-kbd="1"]:hover, .card-hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card-hero, .card-action, .card-choice, .card-row, .kpi-card, .home-block, .model-store-card { position: relative; overflow: hidden; isolation: isolate; }
.card-hero::before, .card-action::before, .card-choice::before, .card-row::before, .kpi-card-clickable::before, .model-store-card::before {
content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ember); z-index: 1;
transform: scaleY(0); transform-origin: center; transition: transform var(--t-base) var(--ease); pointer-events: none;
}
.card-hero::after, .card-action::after, .kpi-card-clickable::after {
content: ""; position: absolute; right: -90px; top: -90px; width: 240px; height: 240px; pointer-events: none; z-index: -1;
opacity: 0; transition: opacity var(--t-slow) var(--ease);
}
:root[data-theme="dark"] .card-hero::after, :root[data-theme="dark"] .card-action::after, :root[data-theme="dark"] .kpi-card-clickable::after {
border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ember) 18%, transparent), transparent);
}
:root:not([data-theme="dark"]) .card-hero::after, :root:not([data-theme="dark"]) .card-action::after, :root:not([data-theme="dark"]) .kpi-card-clickable::after {
right: 14px; top: auto; bottom: 14px; width: 56px; height: 56px;
background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath fill-rule='evenodd' fill='%2316161A' d='M0 0h56v56h-56zM8 8v40h40v-40z'/%3E%3Crect x='32' y='32' width='20' height='20' fill='%23C2410C'/%3E%3C/svg%3E");
}
:root:not([data-theme="dark"]) .card-hero::after { opacity: 0.07; }
:root[data-theme="dark"] .card-hero::after { opacity: 1; }
:root:not([data-theme="dark"]) .card-action:hover::after, :root:not([data-theme="dark"]) .kpi-card-clickable:hover::after { opacity: 0.07; }
:root[data-theme="dark"] .card-action:hover::after, :root[data-theme="dark"] .kpi-card-clickable:hover::after { opacity: 1; }
.card-hero { padding: 24px; }
.card-hero::before { transform: scaleY(1); }
.card-action, .kpi-card-clickable { cursor: pointer; text-decoration: none; color: inherit;
transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.card-action:hover, .card-action:focus-visible, .kpi-card-clickable:hover, .kpi-card-clickable:focus-visible { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); outline: 0; }
.card-action:focus-visible, .kpi-card-clickable:focus-visible { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus-color); }
.card-action:hover::before, .card-action:focus-visible::before, .card-action:has(:focus-visible)::before, .kpi-card-clickable:hover::before, .kpi-card-clickable:focus-visible::before { transform: scaleY(1); }
.card-action:active, .kpi-card-clickable:active { transform: translateY(0) scale(0.99); }
.card-action, .kpi-card-clickable { background-image: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), color-mix(in srgb, var(--ember) 9%, transparent), transparent 70%); }
.card-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-body-sm); font-weight: 600; color: var(--text-muted); }
.card-go svg { transition: transform var(--t-base) var(--ease); }
.card-action:hover .card-go, .card-action:focus-visible .card-go { color: var(--text); }
.card-action:hover .card-go svg, .card-action:focus-visible .card-go svg { transform: translateX(4px); }
.card-choice { cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.card-choice:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.card-choice:hover::before { transform: scaleY(0.5); }
.card-choice[aria-pressed="true"], .card-choice[aria-checked="true"] { border-color: var(--ember); }
.card-choice[aria-pressed="true"]::before, .card-choice[aria-checked="true"]::before { transform: scaleY(1); }
.card-choice[aria-pressed="true"] .icon-tile, .card-choice[aria-checked="true"] .icon-tile { background: var(--ember-soft); color: var(--ember-ink); border-color: transparent; }
.card-row { display: flex; align-items: center; gap: 16px; transition: border-color var(--t-base) var(--ease); }
.card-row:hover { border-color: var(--border-strong); }
.card-row:hover::before { transform: scaleY(0.6); }
:root:not([data-theme="dark"]) .card-hero-nomark::after { display: none; }
.list-card { display: block; }
.model-store-card-enabled::before { transform: scaleY(1); }
.icon-tile { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--sunken); color: var(--text); border: 1px solid var(--border);
transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), transform var(--t-base) var(--ease-spring); }
.icon-tile-sm { width: 32px; height: 32px; border-radius: var(--radius-sm); }
.icon-tile-lg { width: 48px; height: 48px; }
.icon-tile-active { background: var(--ember-soft); color: var(--ember-ink); border-color: transparent; }
.icon-tile-brand { background: transparent; border: 1.5px solid var(--text); border-radius: 0; position: relative; }
.icon-tile-brand::after { content: ""; position: absolute; right: -1.5px; bottom: -1.5px; width: 12px; height: 12px; background: var(--ember); }
.card-action:hover .icon-tile, .card-action:focus-visible .icon-tile, .card-choice:hover .icon-tile, .kpi-card-clickable:hover .icon-tile { transform: scale(1.06); }
.card-rise > * { animation: cardRise 420ms var(--ease) both; }
.card-rise > *:nth-child(2) { animation-delay: 60ms; } .card-rise > *:nth-child(3) { animation-delay: 120ms; } .card-rise > *:nth-child(4) { animation-delay: 180ms; }
@keyframes cardRise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
.card-rise > * { animation: none; }
.card-hero::before, .card-action::before, .card-choice::before, .card-row::before, .kpi-card-clickable::before, .card-action, .kpi-card-clickable, .icon-tile, .card-go svg { transition: none; }
.card-action:hover, .kpi-card-clickable:hover { transform: none; }
}
@media (hover: none), (max-width: 639px) {
.card-action::before, .kpi-card-clickable::before { transform: scaleY(0.4); }
.card-action .icon-tile, .kpi-card-clickable .icon-tile { background: var(--ember-soft); color: var(--ember-ink); border-color: transparent; }
.card-action .card-go { color: var(--ember-ink); }
:root[data-theme="dark"] .card-action::after, :root[data-theme="dark"] .kpi-card-clickable::after { opacity: 0.55; }
.card-action:active::before, .kpi-card-clickable:active::before { transform: scaleY(1); }
.card-action:active, .kpi-card-clickable:active { border-color: var(--ember); }
:root[data-theme="dark"] .card-action:active::after, :root[data-theme="dark"] .kpi-card-clickable:active::after { opacity: 1; }
.card-choice::before { transform: scaleY(0.25); }
.card-choice[aria-pressed="true"]::before, .card-choice[aria-checked="true"]::before { transform: scaleY(1); }
}
.kpi-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kpi-card-clickable { cursor: pointer; }
.kpi-card-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-card-compact .kpi-card-value { font-family: var(--font); font-variant-numeric: normal; font-size: 17px; line-height: 1.35; font-weight: 650; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.kpi-tone-success .kpi-card-value { color: var(--success); }
.kpi-tone-danger .kpi-card-value { color: var(--danger); }
.kpi-card-label { font: 600 12.5px var(--font); letter-spacing: 0; color: var(--text-muted); }
.kpi-card-icon { color: var(--text-faint); }
.kpi-card-value { font-family: var(--font-display); font-size: var(--fs-kpi); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.kpi-card-foot { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-size: var(--fs-label); font-weight: 500; }
.kpi-trend { display: inline-flex; align-items: center; gap: 4px; 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); }
.decisions-band { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1.5px solid var(--ember); background: var(--ember-soft); border-radius: var(--radius-lg); }
.decisions-band-count { font-family: var(--font-display); font-size: 40px; line-height: 1; font-weight: 800; color: var(--ember); }
.decisions-band-text { flex: 1 1 200px; min-width: 0; }
.decisions-band-title { font-size: 16px; font-weight: 700; }
.decisions-band-detail { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.decisions-band-calm { display: flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; color: var(--text-muted); font-size: 14px; }
@media (max-width: 600px) { .decisions-band { flex-wrap: wrap; } .decisions-band .btn { width: 100%; } }
.grid { display: grid; gap: 16px; }
.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; } }
@media (max-width: 860px) {
.grid:has(> .kpi-card), .grid:has(> div > .kpi-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kpi-card .kpi-card-value { font-size: 24px; }
.kpi-card-compact .kpi-card-value { font-size: 15px; }
.kpi-card { padding: 16px; }
}
@media (max-width: 639px) {
:root:not([data-theme="dark"]) .card-hero::after, :root:not([data-theme="dark"]) .card-action::after { display: none; }
.card-hero { padding: 16px; }
}
@media (max-width: 760px) { .help-tabs-mirror { display: none; } }
.section { margin-bottom: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 28px; font-weight: 700; }
.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: 8px; }
.page-header-title-line { display: flex; align-items: center; gap: 8px; }
.page-header h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 34px; font-weight: 700; letter-spacing: -0.02em; }
.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; align-items: center; }
.page-about { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: var(--fs-body-sm); line-height: 20px; color: var(--text-faint); max-width: 760px; }
.page-about > svg { margin-top: 2px; flex-shrink: 0; }
.page-about b { color: var(--text-muted); font-weight: 600; }
.page-about a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.page-about-close { border: 0; background: none; color: var(--text-faint); width: 24px; height: 24px; display: grid; place-items: center; border-radius: var(--radius-sm); cursor: pointer; flex-shrink: 0; margin-top: -2px; }
.page-about-close:hover { background: var(--sunken); color: var(--text); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font: 500 12.5px var(--font); letter-spacing: 0; color: var(--text-faint); }
.breadcrumb-item:last-child, .breadcrumb-item:last-child a { color: var(--text); }
.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: 16px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.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-family: var(--font); font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--text-faint); padding: 0 8px 0 0; flex-shrink: 0; }
.tab {
border: none; background: none; padding: 12px 2px 12px; color: var(--text-faint); font-size: 14px; font-weight: 600; position: relative;
white-space: nowrap; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: color var(--t-quick) var(--ease);
}
.tab:hover { color: var(--text); }
.tab-active { color: var(--text); }
.tab-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); animation: tabGrow var(--t-base) var(--ease); }
@keyframes tabGrow { from { transform: scaleX(0.3); opacity: 0; } }
.tab-count { font: 500 11px var(--font-mono); color: var(--text-faint); }
.tabs-with-more { overflow: visible; }
.tab-more { position: relative; display: flex; }
.tab-active .tab-count { color: var(--text-muted); }
.table-wrap {
overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background-color: var(--surface);
background-image:
linear-gradient(to right, var(--surface) 30%, rgba(0, 0, 0, 0)), linear-gradient(to left, var(--surface) 30%, rgba(0, 0, 0, 0)),
radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0));
background-position: left center, right center, left center, right center;
background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
background-repeat: no-repeat;
background-attachment: local, local, scroll, scroll;
}
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table td.num, .table th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table tbody tr { transition: background var(--t-instant) var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table tr.row-waiting { background: var(--ember-soft); }
.table th {
text-align: left; font-family: var(--font); font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--text-muted);
padding: 12px 12px; border-bottom: 1px solid var(--border); background: var(--surface); 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 { cursor: pointer; }
.table-row-clickable:hover { background: var(--surface-2); }
.table-dense td, .table-dense th { padding: 8px 12px; }
.cell-primary { font-weight: 600; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: var(--fs-body-sm); color: var(--text-faint); }
.pagination-count { font-family: var(--font-mono); font-size: var(--fs-label); }
.pagination-buttons { display: flex; gap: 8px; }
.cell-muted { color: var(--text-muted); }
.cell-mono { font-family: var(--font-mono); 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: 32px 20px; color: var(--text-faint); }
.empty-state-icon { width: 56px; height: 56px; border: 1.75px solid var(--text); display: grid; place-items: center; color: var(--text); position: relative; margin-bottom: 4px; }
.empty-state-icon::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 16px; height: 16px; background: var(--ember); }
.empty-state-error .empty-state-icon { border-color: var(--danger); color: var(--danger); }
.empty-state-error .empty-state-icon::after { background: var(--danger); }
.empty-state-title { font-family: var(--font-display); font-weight: 700; color: var(--text); font-size: 17px; }
.empty-state-desc { font-size: 14px; max-width: 40ch; line-height: 1.5; }
.skeleton { background: linear-gradient(90deg, var(--sunken) 0%, var(--surface-2) 50%, var(--sunken) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-block { display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.overlay { position: fixed; inset: 0; background: var(--scrim); display: flex; align-items: center; justify-content: center; z-index: var(--z-overlay); animation: fadeIn var(--t-base) var(--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; max-height: 86dvh; max-width: calc(100vw - 32px); display: flex; flex-direction: column; animation: dialogIn var(--t-base) var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(4px) scale(0.98); } }
.modal:focus { outline: 0; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; }
.modal-body { padding: 20px 24px; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.drawer { background: var(--surface); height: 100%; max-width: 100vw; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slideIn var(--t-slow) var(--ease); }
.drawer:focus { outline: 0; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.drawer-header-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); min-width: 0; }
.drawer-header-icon { color: var(--text); }
.drawer-header-actions { display: flex; align-items: center; gap: 8px; }
.drawer-body { padding: 16px; overflow-y: auto; flex: 1; }
.drawer-footer { display: flex; gap: 8px; padding: 16px 16px; border-top: 1px solid var(--border); }
.drawer-section { margin-bottom: 16px; }
.drawer-section-title { font-family: var(--font); font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--text-faint); margin-bottom: 8px; }
.kv-row { display: flex; justify-content: space-between; padding: 8px 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: 640px; max-width: calc(100vw - 32px); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: dialogIn var(--t-base) var(--ease); }
.command-input { display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 52px; border-bottom: 1px solid var(--border); color: var(--text-faint); }
.command-input input { flex: 1; border: none; outline: none; font-size: 15px; background: none; color: var(--text); min-width: 0; }
.command-results { max-height: 60vh; max-height: 60dvh; overflow-y: auto; padding: 8px 8px 8px; }
.command-group-label { font: 600 12px var(--font); letter-spacing: 0; color: var(--text-faint); padding: 12px 12px 4px; }
.command-row { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text); cursor: pointer; }
.command-row svg { color: var(--text-muted); flex-shrink: 0; }
.command-row-active { background: var(--sunken); }
.command-row-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-row-sub { color: var(--text-faint); font: 500 12px var(--font-mono); white-space: nowrap; }
.command-pin { border: 0; background: none; color: var(--text-faint); width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--radius-sm); cursor: pointer; opacity: 0; }
.command-row-active .command-pin, .command-pin:focus-visible, .command-pin-on { opacity: 1; }
.command-pin:hover { background: var(--surface); color: var(--text); }
.command-pin-on { color: var(--text); }
.command-foot { display: flex; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: var(--fs-label); color: var(--text-faint); }
.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: var(--z-menu); }
.dropdown-anchor-right { left: auto; right: 0; }
.dropdown-menu, .dropdown-panel {
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
min-width: 220px; padding: 8px; transform-origin: top left; animation: menuPop var(--t-quick) var(--ease);
}
.dropdown-anchor-right .dropdown-menu, .dropdown-anchor-right .dropdown-panel { transform-origin: top right; }
@keyframes menuPop { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
.dropdown-panel { width: 360px; padding: 0; }
.dropdown-menu-head { display: flex; align-items: center; gap: 8px; padding: 12px 8px; }
.dropdown-menu-workspace { display: flex; align-items: center; gap: 8px; 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: 8px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--text); }
.dropdown-item:hover, .dropdown-item:focus-visible { background: var(--sunken); outline: 0; }
.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 16px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: var(--fs-body-sm); }
.notif-list { max-height: 380px; overflow-y: auto; }
.support-fab-anchor { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-menu); }
.support-fab-btn {
width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--text); color: var(--bg);
display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-lg);
transition: transform var(--t-quick) var(--ease);
}
.support-fab-btn:hover { transform: scale(1.05); }
.support-fab-menu { position: absolute; bottom: calc(100% + 10px); right: 0; width: 240px; transform-origin: bottom right; }
.notif-row { display: flex; gap: 8px; padding: 11px 16px; 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: var(--sunken); }
.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-mention { background: var(--brand-soft, var(--surface-2)); color: var(--brand); }
.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: 4px; }
.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-md); height: 40px; padding: 0 12px; color: var(--text-faint); min-width: 220px; transition: border-color var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease); }
.search-input:hover { border-color: var(--text-faint); }
.search-input:focus-within { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.search-input input { border: none; outline: none; flex: 1; min-width: 0; font-size: 14px; color: var(--text); background: none; }
kbd, .kbd { font: 500 11px var(--font-mono); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: var(--radius-xs); padding: 1px 4px; color: var(--text-faint); background: var(--surface); }
.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-md); padding: 0 32px 0 12px; height: 40px; font-size: 14px; color: var(--text); transition: border-color var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease); }
.select:hover { border-color: var(--text-faint); }
.select:focus { outline: 0; border-color: var(--text); box-shadow: 0 0 0 1px 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; }
:where(select) {
-webkit-appearance: none; appearance: none; cursor: pointer; min-width: 0; max-width: 100%;
border: 1px solid var(--border-strong); background-color: var(--surface); border-radius: var(--radius-md);
padding: 0 32px 0 12px; height: 40px; font-size: 14px; color: var(--text);
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"] :where(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");
}
.filter-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; background: var(--text); color: var(--bg); border: 1px solid var(--text); border-radius: var(--radius-pill); padding: 0 12px; font-size: var(--fs-body-sm); font-weight: 500; }
.filter-chip button { border: none; background: none; color: inherit; display: flex; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: var(--fs-body-sm); font-weight: 600; color: var(--text); }
.field .hint, .field .help { font-size: var(--fs-label); color: var(--text-faint); font-weight: 400; }
.field .err, .field-error { font-size: var(--fs-label); color: var(--danger); font-weight: 500; }
.field input:not([type]), .field input[type=text], .field input[type=number], .field input[type=email], .field input[type=password], .field input[type=tel], .field input[type=url], .field input[type=search], .field input[type=date], .field textarea, .field select {
border: 1px solid var(--border-strong); border-radius: var(--radius-md); min-height: 40px; padding: 8px 12px; font-size: 14px; color: var(--text); background-color: var(--surface);
transition: border-color var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease);
}
.field input:hover:not(:disabled), .field textarea:hover:not(:disabled), .field select:hover:not(:disabled) { border-color: var(--text-faint); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.field input:disabled, .field textarea:disabled, .field select:disabled { background-color: var(--sunken); color: var(--text-disabled); cursor: not-allowed; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"], .field-invalid input, .field-invalid textarea, .field-invalid select { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field input.mono, .input-mono { font-family: var(--font-mono); }
.field textarea { resize: vertical; min-height: 88px; font-family: inherit; line-height: 1.5; }
input[type="checkbox"], input[type="radio"] {
-webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0; flex-shrink: 0; border: 1.5px solid var(--text-faint); border-radius: var(--radius-xs);
background: var(--surface); display: inline-grid; place-content: center; cursor: pointer; vertical-align: middle;
transition: background var(--t-quick) var(--ease), border-color var(--t-quick) var(--ease);
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked, input[type="radio"]:checked { background: var(--text); border-color: var(--text); }
input[type="checkbox"]:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--on-primary); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
input[type="checkbox"]:indeterminate { background: var(--text); border-color: var(--text); }
input[type="checkbox"]:indeterminate::after { content: ""; width: 8px; height: 2px; background: var(--on-primary); }
input[type="radio"]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-primary); }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { background: var(--sunken); border-color: var(--border); cursor: not-allowed; }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus-color); }
.checkbox-row { display: flex; align-items: center; gap: 8px; padding: 8px 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: 8px; 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 { position: relative; height: 8px; background: var(--sunken); border-radius: var(--radius-xs); }
.progress-bar-fill { height: 100%; border-radius: var(--radius-xs); transition: width var(--t-slow) var(--ease); }
.progress-bar-fill.tone-brand { background: var(--text); }
.meter-marker { position: absolute; top: -3px; width: 2px; height: 14px; transform: translateX(-1px); background: var(--text-faint); }
.meter-marker-approval { background: var(--ember); }
.meter-marker-stop { background: var(--danger); }
.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: 24px; left: calc(var(--sidebar-w) + 24px); display: flex; flex-direction: column; gap: 8px; z-index: var(--z-toast); }
.toast { display: flex; align-items: center; gap: 12px; background: var(--text); color: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 12px 16px; font-size: 14px; min-width: 320px; max-width: 420px; animation: toastIn var(--t-slow) var(--ease-spring); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.toast-out { animation: toastOut var(--t-base) var(--ease-exit) forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }
.toast > svg { flex-shrink: 0; color: var(--bg); opacity: 0.8; }
.toast-success > svg { color: var(--toast-ok); opacity: 1; }
.toast-danger > svg { color: var(--toast-stop); opacity: 1; }
.toast-warning > svg { color: var(--toast-warn, #E0A63A); opacity: 1; }
.toast .link-btn, .toast-action { margin-left: auto; color: inherit; font: 500 12px var(--font-mono); text-decoration: underline; opacity: 0.85; }
.toast-close { margin-left: auto; border: none; background: none; color: inherit; opacity: 0.6; display: flex; cursor: pointer; }
.toast .link-btn + .toast-close { margin-left: 0; }
.chart-frame { display: flex; flex-direction: column; }
.chart-frame-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.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: var(--on-primary); font-size: 11px; font-weight: 600; }
.hbar-list { display: flex; flex-direction: column; gap: 8px; }
.hbar-row { display: grid; grid-template-columns: 140px 1fr 64px; align-items: center; gap: 8px; 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: 8px; }
.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: 8px; }
.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: 16px; font-size: var(--fs-label); }
.legend-item { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: var(--fs-body-sm); line-height: 20px; }
.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-family: var(--font-display); font-size: 17px; font-weight: 700; fill: var(--text); }
.donut-center-label { font-size: var(--fs-caption); 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-strong); border-radius: var(--radius-lg);
padding: 12px 16px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-sm); cursor: pointer;
transition: border-color var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease);
}
.flow-block:hover { border-color: var(--text); }
.flow-block-selected { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.flow-block-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--sunken); color: var(--text); }
.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: 210px; cursor: grab; user-select: none; touch-action: none; z-index: calc(var(--z-page) + 2); }
.wf-block-abs.wf-dragging { cursor: grabbing; z-index: calc(var(--z-page) + 5); box-shadow: var(--shadow-lg); }
.wf-handle { position: absolute; right: -7px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border-radius: 0; background: var(--surface); border: 2px solid var(--text); cursor: crosshair; z-index: calc(var(--z-page) + 6); }
.wf-handle:hover { transform: translateY(-50%) scale(1.2); background: var(--text); }
.wf-edge-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: calc(var(--z-page) + 1); overflow: visible; }
.wf-palette-chip { display: flex; align-items: center; gap: 8px; padding: 8px 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-palette-chip-approval { border-color: var(--ember); background: var(--ember-soft); color: var(--ember-ink); }
.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-solid); color: var(--on-danger); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: calc(var(--z-page) + 6); border: 2px solid var(--surface); }
.flow-type-trigger .flow-block-icon, .flow-type-agent .flow-block-icon, .flow-type-tool .flow-block-icon,
.flow-type-condition .flow-block-icon, .flow-type-end .flow-block-icon { background: var(--sunken); color: var(--text); }
.flow-block.flow-type-approval { background: var(--ember-soft); border: 2px solid var(--ember); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ember) 14%, transparent); }
.flow-type-approval .flow-block-icon { background: var(--surface); color: var(--ember-ink); }
.flow-type-approval .flow-block-sub { color: var(--ember-ink); }
.approval-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: border-color var(--t-base) var(--ease); }
.approval-card-done { border-color: var(--border); }
.approval-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.approval-card-meta { font: 500 12px var(--font-mono); color: var(--text-faint); letter-spacing: 0.02em; }
.approval-card h4 { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.3; }
.approval-card-reason { font-size: 14px; color: var(--text-muted); line-height: 1.5; white-space: pre-wrap; }
.approval-card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.approval-card-result { font-size: var(--fs-body-sm); color: var(--text-muted); }
.approval-queue { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.approval-queue-row { text-align: left; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 4px; font: inherit; color: inherit; }
.approval-queue-row:hover { border-color: var(--text-faint); }
.approval-queue-row-active, .approval-queue-row-active:hover { border-color: var(--ember); }
.approval-queue-row-top { display: flex; justify-content: space-between; gap: 8px; font: 500 11px var(--font-mono); color: var(--ember-ink); }
.approval-queue-row-title { font-weight: 600; font-size: 14px; }
.two-col-queue { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .two-col-queue { grid-template-columns: 1fr; } }
.run-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.run-timeline li { display: grid; grid-template-columns: 70px 18px minmax(0, 1fr); gap: 12px; font-size: 14px; padding-bottom: 16px; position: relative; }
.run-timeline li::before { content: ""; position: absolute; left: 86px; top: 12px; bottom: 0; width: 1.5px; background: var(--border); }
.run-timeline li:last-child::before { display: none; }
.run-timeline-time { font: 500 12px var(--font-mono); color: var(--text-faint); padding-top: 1px; }
.run-timeline-dot { width: 10px; height: 10px; margin-top: 8px; background: var(--text); position: relative; z-index: 1; }
.run-timeline-dot-waiting { background: var(--ember); }
.run-timeline-dot-failed { background: var(--danger); }
.run-timeline-dot-pending { background: var(--border-strong); }
.run-timeline-step { font-weight: 600; color: var(--text); }
.run-timeline-detail { color: var(--text-muted); font-size: var(--fs-body-sm); margin-top: 2px; overflow-wrap: anywhere; }
.record-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.record-row:last-child { border-bottom: none; }
.record-row-button { width: 100%; border: 0; border-bottom: 1px solid var(--border); background: none; text-align: left; color: inherit; font: inherit; cursor: pointer; border-radius: 0; }
.record-row-button { position: relative; }
.record-row-button::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--ember); transform: scaleY(0); transition: transform var(--t-base) var(--ease); pointer-events: none; }
.record-row-button:hover, .record-row-button:focus-visible { background: var(--surface-2); }
.record-row-button:hover::before, .record-row-button:focus-visible::before { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) { .record-row-button::before { transition: none; } }
.record-row-time { font: 500 12px var(--font-mono); color: var(--text-faint); }
.record-row-text { color: var(--text-muted); min-width: 0; }
.record-row-text b { color: var(--text); font-weight: 600; }
.record-row-wu { font: 500 12px var(--font-mono); color: var(--text-faint); white-space: nowrap; }
.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: 12px; }
.kanban-col-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; 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: 12px; 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: 16px; }
.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: none; }
.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: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); animation: fadeIn var(--t-base) var(--ease); }
.live-log-row:last-child { border-bottom: none; }
.live-log-time { color: var(--text-faint); font-family: var(--font-mono); 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: 8px; padding: 12px 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: var(--font-mono); }
.wizard-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; 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: var(--on-primary); }
.wizard-step-active { color: var(--text); font-weight: 600; }
.wizard-step-done .wizard-step-num { background: var(--success); color: var(--on-success); }
.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: 8px; }
.tool-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 4px 12px; 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: 8px; height: 32px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 0 12px; font-size: var(--fs-body-sm); font-weight: 500; cursor: pointer; color: var(--text-muted); }
.checkbox-pill:hover { border-color: var(--text); color: var(--text); }
.checkbox-pill-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.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: 8px 16px; 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: 12px; align-items: flex-start; padding: 16px 16px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.callout > svg { flex-shrink: 0; margin-top: 2px; }
.callout b, .callout strong { color: var(--text); }
.callout-info, .callout-brand { background: var(--surface-2); color: var(--text-muted); border-color: var(--border); }
.callout-warning { background: var(--warning-soft); color: var(--warning-soft-text); border-color: transparent; }
.callout-warning b, .callout-warning strong { color: var(--warning-soft-text); }
.callout-danger { background: var(--danger-soft); color: var(--danger-soft-text); border-color: var(--danger); }
.callout-danger b, .callout-danger strong { color: var(--danger-soft-text); }
.callout-success { background: var(--success-soft); color: var(--success-ink); border-color: transparent; }
.callout-success b, .callout-success strong { color: var(--success-ink); }
.callout-waiting { background: var(--ember-soft); color: var(--text); border-color: var(--ember); }
.callout-action { margin-left: auto; white-space: nowrap; flex-shrink: 0; }
.emergency-stop-banner { display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--danger-solid); color: var(--on-danger); 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 color-mix(in srgb, var(--on-danger) 50%, transparent); background: color-mix(in srgb, var(--on-danger) 12%, transparent); color: var(--on-danger); font-size: var(--fs-label); font-weight: 700; padding: 4px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.emergency-stop-banner-resume:hover { background: color-mix(in srgb, var(--on-danger) 22%, transparent); }
.verify-banner-resend { flex-shrink: 0; border: 1px solid color-mix(in srgb, var(--warning-soft-text) 40%, transparent); background: color-mix(in srgb, var(--warning-soft-text) 10%, transparent); color: var(--warning-soft-text); font-size: var(--fs-label); font-weight: 700; padding: 4px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.verify-banner-resend:hover { background: color-mix(in srgb, var(--warning-soft-text) 18%, transparent); }
.settings-nav { display: flex; flex-direction: column; gap: 8px; width: 250px; flex-shrink: 0; position: sticky; top: 8px; }
.settings-nav-zone { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.settings-nav-zone:last-child { border-bottom: none; }
.settings-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-md); font-size: var(--fs-body); color: var(--text-muted); font-weight: 500; transition: background var(--t-quick) var(--ease), color var(--t-quick) var(--ease), transform var(--t-quick) var(--ease); }
.settings-nav a svg { flex-shrink: 0; opacity: .85; }
.settings-nav a:hover { background: var(--surface-2); color: var(--text); transform: translateX(2px); }
.settings-nav a:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: 1px; }
.settings-nav a.active { background: var(--brand-soft); color: var(--text); font-weight: 600; }
.settings-nav a.active svg { color: var(--text); opacity: 1; }
.settings-nav a.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--text); }
.settings-layout { display: flex; gap: 32px; align-items: flex-start; }
@media (max-width: 760px) { .settings-layout { flex-direction: column; align-items: stretch; gap: 16px; } .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 8px; } .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: none; }
.settings-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 12px; color: var(--text-faint); transition: border-color var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease); }
.settings-search:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.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 h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.4px; margin-bottom: 8px; }
.chat-hero p { margin-bottom: 28px; }
.prompt-bar { width: 100%; position: relative; }
.prompt-slash-menu { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; max-height: 280px; overflow-y: auto; z-index: var(--z-menu); text-align: left; }
.prompt-slash-item { width: 100%; text-align: left; cursor: pointer; white-space: normal; }
.prompt-using-row { display: flex; align-items: center; gap: 4px; font-size: var(--fs-caption); color: var(--text-faint); margin-bottom: 8px; padding-left: 2px; }
.prompt-input-row {
display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); background: var(--surface);
border-radius: var(--radius-pill); padding: 8px 8px 8px 8px; box-shadow: var(--shadow-sm);
}
.prompt-bar-lg .prompt-input-row { padding: 12px 12px 12px 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: 8px 4px; min-width: 0; }
.prompt-bar-lg .prompt-input { font-size: var(--fs-h4); padding: 8px 4px; }
.prompt-send-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on-primary); flex-shrink: 0; }
.prompt-send-btn:hover { background: var(--brand-hover); }
.prompt-mic-btn { width: 34px; height: 34px; 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; touch-action: none; user-select: none; }
.prompt-mic-btn:hover { background: var(--brand-soft); color: var(--brand-hover); border-color: var(--brand); }
.prompt-mic-btn-active { background: var(--danger-solid); border-color: var(--danger-solid); color: var(--on-danger); animation: promptMicPulse 1.1s ease-in-out infinite; }
@keyframes promptMicPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger-solid) 45%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--danger-solid) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .prompt-mic-btn-active { animation: none; } }
.prompt-ctx-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding: 12px 16px 2px; }
.prompt-ctx-field { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-caption); letter-spacing: 0; color: var(--text-faint); font-weight: 600; }
.prompt-ctx-field select { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 4px 8px; font-size: var(--fs-body-sm); color: var(--text); text-transform: none; letter-spacing: normal; font-weight: 500; background: var(--surface); }
.prompt-ctx-field-static { display: block; padding: 4px 8px; font-size: var(--fs-body-sm); color: var(--text-muted); text-transform: none; letter-spacing: normal; font-weight: 500; }
.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: 8px; padding: 8px 8px 8px 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: var(--z-menu); background: transparent; }
.tab-context-menu { z-index: calc(var(--z-menu) + 1); 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: 24px 24px 8px; display: flex; flex-direction: column; gap: 16px; }
.chat-home > .prompt-bar { max-width: 760px; width: calc(100% - 48px); margin: 0 auto 16px; 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: 12px; 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: 8px; margin-bottom: 12px; }
.workspace-card-title { font-weight: 600; font-size: var(--fs-body); }
.workspace-card-stats { display: flex; gap: 16px; padding: 12px 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: 16px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; 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(--text); color: var(--bg); border-color: var(--text); }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 16px 16px; }
.stat-strip-item { min-width: 0; }
.stat-strip-value { font-family: var(--font-display); 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: 4px 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: 8px 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: 16px; 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: 12px; 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: 4px; gap: 2px; }
.home-view-btn { display: inline-flex; align-items: center; gap: 8px; border: none; background: none; padding: 8px 16px; 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); max-height: calc(100dvh - 210px); }
.chat-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.chat-ai-badge { width: 28px; height: 28px; border-radius: var(--radius-md); background: var(--brand); color: var(--on-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px 16px; display: flex; flex-direction: column; gap: 16px; }
.chat-bubble-row { display: flex; align-items: flex-start; gap: 8px; }
.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(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.chat-bubble { padding: 12px 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: var(--on-primary); border-top-right-radius: 4px; }
.chat-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; 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-bubble-voice-tag { display: flex; align-items: center; gap: 4px; font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0; opacity: 0.75; margin-bottom: 4px; }
.chat-model-footer { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: var(--fs-caption); color: var(--text-faint); }
.chat-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chat-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius-pill); padding: 0 12px; font-size: var(--fs-body-sm); font-weight: 500; color: var(--text); cursor: pointer; transition: border-color var(--t-quick) var(--ease), background var(--t-quick) var(--ease); }
.chat-chip:hover { border-color: var(--text); }
.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 16px; 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: 12px 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: var(--on-primary); flex-shrink: 0; }
.chat-send-btn:hover { background: var(--brand-hover); }
.create-hub-intro { margin: 0 0 16px; color: var(--text-muted); line-height: 1.5; }
.create-hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.create-hub-tile { padding: 0; }
.create-hub-tile-main { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; padding: 16px 16px 16px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; border-radius: var(--radius-md); }
.create-hub-tile-main:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus-color); }
.create-hub-tile-title { font-family: var(--font-display); font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.create-hub-info { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--text-faint); border-radius: var(--radius-sm); cursor: help; }
.create-hub-info:hover, .create-hub-info:focus-visible { color: var(--text); background: var(--sunken); outline: 0; }
@media (max-width: 640px) { .create-hub-grid { gap: 8px; } .create-hub-tile-main { padding: 16px 12px 12px; gap: 8px; } .create-hub-tile-title { font-size: 15px; } }
.model-store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@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(--ember); }
.provider-pill { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-caption); font-weight: 600; color: var(--text-faint); letter-spacing: 0; }
.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: 8px; 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: 12px 12px; margin-top: 12px; }
.auth-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(420px, 5fr) 7fr; background: var(--bg); }
.auth-panel { --mark-ink: var(--side-ink); --mark-corner: var(--side-ember); background: var(--side-bg); color: var(--side-text); padding: 40px 48px; display: flex; flex-direction: column; gap: 48px; position: relative; overflow: hidden; }
.auth-panel::after { content: ""; position: absolute; right: -140px; bottom: -140px; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--side-ember) 34%, transparent), transparent); pointer-events: none; }
.auth-panel > * { position: relative; z-index: 1; }
.auth-panel-brand { display: flex; align-items: center; gap: 8px; color: var(--side-ink); }
.auth-panel-mode { margin-left: 8px; font: 500 11px var(--font); letter-spacing: 0; color: var(--side-faint); border: 1px solid var(--side-line); border-radius: var(--radius-pill); padding: 2px 8px; }
.auth-panel-body { margin-top: auto; margin-bottom: auto; display: flex; flex-direction: column; gap: 20px; max-width: 460px; }
.auth-display { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-display); line-height: 60px; letter-spacing: -0.03em; color: var(--side-ink); text-wrap: balance; }
.auth-display span { color: var(--side-faint); }
.auth-category { font-size: 16px; color: var(--side-text); border-left: 3px solid var(--side-ember); padding-left: 12px; }
.auth-promises { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.auth-promises li { display: flex; gap: 12px; align-items: flex-start; }
.auth-promises svg { color: var(--side-ember); margin-top: 2px; flex-shrink: 0; }
.auth-promises b { display: block; color: var(--side-ink); font-weight: 600; font-size: 14px; }
.auth-promises span { display: block; color: var(--side-faint); font-size: var(--fs-body-sm); line-height: 20px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-title { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 34px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.auth-sub { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; line-height: 1.5; }
@media (max-width: 1023px) {
.auth-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.auth-panel { padding: 20px 24px; gap: 8px; }
.auth-panel-body { margin: 0; gap: 8px; }
.auth-display { font-size: 24px; line-height: 30px; }
.auth-category { font-size: var(--fs-body-sm); }
.auth-promises { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.auth-promises li { align-items: center; gap: 8px; }
.auth-promises li span { display: none; }
.auth-promises svg { margin-top: 0; }
.auth-panel::after { width: 260px; height: 260px; right: -90px; bottom: -110px; }
.auth-main { align-items: flex-start; padding: 32px 16px; }
}
@media (max-width: 639px) { .auth-promises { display: none; } }
.pw-field { position: relative; }
.pw-field input { width: 100%; padding-right: 48px; }
.pw-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--text-muted); border-radius: var(--radius-sm); cursor: pointer; }
.pw-toggle:hover { color: var(--text); }
.pw-toggle:focus-visible { outline: 2px solid var(--ember); outline-offset: -2px; }
.oauth-btn {
display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 40px;
border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius-md);
padding: 8px 16px; font-size: 14px; 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: 8px; 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: var(--z-menu);
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
box-shadow: var(--shadow-lg); padding: 8px; text-align: left;
}
.google-picker-title { font-size: var(--fs-caption); font-weight: 700; color: var(--text-faint); letter-spacing: 0; padding: 8px 8px; }
.google-picker-row { display: flex; align-items: center; gap: 8px; 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; min-height: 100dvh; 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 (min-width: 1024px) and (max-width: 1279px) {
.sidebar:not(.sidebar-mobile-open) { width: var(--sidebar-w-collapsed); padding-left: 8px; padding-right: 8px; }
.sidebar:not(.sidebar-mobile-open) .side-item-label, .sidebar:not(.sidebar-mobile-open) .side-profile-text, .sidebar:not(.sidebar-mobile-open) .brand-name,
.sidebar:not(.sidebar-mobile-open) .sidebar-collapse-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sidebar:not(.sidebar-mobile-open) .side-item-tag, .sidebar:not(.sidebar-mobile-open) .side-item .count-pill, .sidebar:not(.sidebar-mobile-open) .side-group-head { display: none; }
.sidebar:not(.sidebar-mobile-open) .side-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--side-line); }
.sidebar:not(.sidebar-mobile-open) .side-item, .sidebar:not(.sidebar-mobile-open) .side-profile, .sidebar:not(.sidebar-mobile-open) .sidebar-collapse-btn { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar:not(.sidebar-mobile-open) .side-brand { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar:not(.sidebar-mobile-open) .sidebar-collapse-btn { display: none; }
.sidebar:not(.sidebar-mobile-open) .side-item[aria-label]::after, .sidebar:not(.sidebar-mobile-open) .side-item::after { content: none; }
.sidebar:not(.sidebar-mobile-open) .side-item:hover .side-item-label, .sidebar:not(.sidebar-mobile-open) .side-item:focus-visible .side-item-label {
clip: auto; width: auto; height: auto; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); background: var(--text); color: var(--bg);
font: 500 12px/1.3 var(--font); padding: 8px 8px; border-radius: var(--radius-sm); z-index: var(--z-tooltip); pointer-events: none;
}
.sidebar:not(.sidebar-mobile-open) .side-chats { display: none; }
.sidebar:not(.sidebar-mobile-open) .side-groups-behind-chats { display: flex; }
}
@media (max-width: 1023px) {
.mobile-nav-toggle { display: flex; }
.sidebar { position: fixed; z-index: calc(var(--z-overlay) + 1); height: 100%; left: -100%; top: 0; transition: left var(--t-slow) var(--ease); box-shadow: var(--shadow-lg); width: 280px; }
.sidebar-mobile-open { left: 0; }
.sidebar-collapse-btn { display: none; }
.sidebar-mobile-close { display: flex; }
.sidebar-backdrop { display: block; position: fixed; inset: 0; background: var(--scrim); z-index: var(--z-overlay); }
.app-content { padding: 20px 24px 64px; }
.topbar { padding: 0 12px; gap: 8px; }
.topbar-search { width: auto; }
}
@media (max-width: 639px) {
.app-content { padding: 16px 16px 96px; }
.topbar-search span, .topbar-search kbd { display: none; }
.topbar-crumbs .breadcrumb-item:not(:last-child) { display: none; }
.topbar-crumbs .breadcrumb-item:last-child span { overflow: hidden; text-overflow: ellipsis; }
.topbar-search { width: 36px; padding: 0; justify-content: center; }
.page-header-actions:has(.btn-primary) { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-topbar); flex-wrap: wrap; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: var(--shadow-md); }
.page-header-actions:has(.btn-primary) .btn-primary { flex: 1 1 100%; order: -1; }
}
@media (max-width: 1023px) {
.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: 8px; 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: 4px; }
.flow-filter-row { display: flex; align-items: center; gap: 8px; 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: var(--on-primary); }
.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: 4px; 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: calc(var(--z-page) + 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; 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 var(--t-quick) var(--ease), stroke-width var(--t-quick) var(--ease); }
.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 var(--t-quick) var(--ease); 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: var(--on-primary); }
.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 { }
@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: var(--on-primary); }
.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: 8px; }
.flow-category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.flow-category-tile { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 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: 8px; max-height: 320px; overflow-y: auto; margin-top: 12px; }
.flow-existing-row { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px 12px; 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: row; align-items: center; gap: 8px; padding: 12px 12px; }
.template-card-title { font-weight: 600; font-size: var(--fs-body); color: var(--text); }
.template-card-two-line { flex-direction: column; align-items: flex-start; gap: 2px; }
.template-card-flow { font-size: var(--fs-label); color: var(--text-faint); }
.convo { display: flex; flex-direction: column; gap: 8px; }
.convo-row { display: flex; gap: 8px; align-items: flex-start; }
.convo-row-user { justify-content: flex-end; }
.convo-bubble { max-width: 88%; padding: 12px 16px; border-radius: var(--radius-lg); font-size: var(--fs-body); line-height: 1.55; }
.convo-user { background: var(--brand); color: var(--on-primary); 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: 12px 16px; 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: 8px; 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: 4px 0; }
.agent-sec-flash { animation: agentFlash var(--t-slow) var(--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: 8px; align-items: stretch; }
.stage-box { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px 12px; background: var(--surface); min-width: 0; }
.stage-title { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: var(--fs-label); margin-bottom: 4px; }
.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: 16px; 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-family: var(--font-display); 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: 8px; 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: 12px 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: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.diff-row { display: grid; grid-template-columns: 170px 1fr 1fr; gap: 12px; padding: 12px 16px; 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; background: var(--neutral-soft); color: var(--neutral-soft-text); border-radius: var(--radius-xs); padding: 1px 4px; margin-right: 8px; }
.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-density="compact"] { --row-pad-y: 7px; --row-pad-x: 12px; }
:root[data-density="compact"] .table th { padding-top: 8px; padding-bottom: 8px; }
: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: 40px; height: 22px; border-radius: var(--radius-pill); border: none; padding: 0; background: var(--border-strong); cursor: pointer; flex-shrink: 0; transition: background var(--t-base) var(--ease); }
.switch:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus-color); }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--knob); box-shadow: var(--shadow-sm); transition: transform var(--t-base) var(--ease-spring), width var(--t-quick) var(--ease); }
.switch-on .switch-knob { background: var(--bg); }
.switch-on { background: var(--text); }
.switch-on .switch-knob { transform: translateX(18px); }
.switch:disabled { opacity: 0.5; cursor: not-allowed; }
.switch:active .switch-knob { width: 18px; }
.switch-on:active .switch-knob { transform: translateX(16px); }
@media (prefers-reduced-motion: reduce) { .switch, .switch-knob { transition: none; } }
.segmented { display: inline-flex; background: var(--sunken); border-radius: var(--radius-md); padding: 4px; gap: 2px; }
.segmented button { border: none; background: none; height: 28px; padding: 0 12px; border-radius: var(--radius-sm); font-family: inherit; font-size: var(--fs-body-sm); font-weight: 600; transition: background var(--t-quick) var(--ease), color var(--t-quick) var(--ease); color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.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); } }
.sidebar-rail { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; }
.sidebar-rail-sep { height: 1px; background: var(--border); margin: 8px 16px; }
.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); letter-spacing: 0; color: var(--text-faint); font-weight: 600; padding: 8px 12px 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: 8px 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 16px; }
.sidebar-hnav-item svg { flex-shrink: 0; }
.tool-pill-btn { font-family: inherit; cursor: pointer; height: 32px; padding: 0 12px; font-size: var(--fs-body-sm); border-color: var(--border-strong); background: var(--surface); }
.tool-pill-btn:not(.tool-pill-active):hover { border-color: var(--text); color: var(--text); }
.tool-pill-btn.tool-pill-active { background: var(--text); color: var(--bg); border-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(--t-quick) var(--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 8px; 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: calc(var(--z-page) + 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 16px; }
@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: calc(var(--z-page) + 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 12px; 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: 8px; 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: 8px 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: 8px; 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); letter-spacing: 0; }
.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); letter-spacing: 0; 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: 4px 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: 8px 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: 8px; 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: 8px; padding: 4px 4px 4px 12px; 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: 4px 12px; cursor: pointer; }
.rb-swap { padding: 4px 8px; }
.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: 8px; flex-wrap: wrap; font-size: var(--fs-label); }
.rb-suggest-btn { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: var(--fs-label); color: var(--text-muted); background: none; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 4px 12px 4px 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: 12px 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: var(--font-mono); font-size: var(--fs-caption); }
.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: 4px 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: 8px; }
.rb-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 8px; 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); 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: 8px; }
.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; max-height: 70dvh; 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 8px; 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: calc(var(--z-page) + 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(--t-quick) var(--ease), background var(--t-quick) var(--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: 8px; }
.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: 8px 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: 8px; font-size: var(--fs-caption); color: var(--text-faint); font-style: italic; }
.attn-dot { display: inline-block; width: 8px; height: 8px; border-radius: 0; flex-shrink: 0; vertical-align: middle; margin-left: 8px; }
.attn-dot-attention { background: var(--ember); }
.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: 8px; 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 16px; }
.act-body { display: flex; gap: 24px; 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: 8px; border: none; background: none; padding: 8px 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: var(--on-success); }
.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: 8px; flex-wrap: wrap; }
.act-main p.text-muted { margin: 0 0 16px; }
.act-list { display: flex; flex-direction: column; gap: 8px; 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: 16px; padding: 12px 16px; border: 1px dashed var(--border); border-radius: var(--radius-md); }
.setup-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.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: 88px; 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: var(--z-toast); }
.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; } }
@media (pointer: coarse) {
.breadcrumb-item a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.icon-btn { min-width: 40px; min-height: 40px; }
.page-about-close { width: 44px; height: 44px; margin: -12px -10px 0 0; }
.page-about a, .page-about-body a { display: inline-flex; align-items: center; min-height: 44px; }
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.app-content:not(.app-content-nopad) { padding-left: max(var(--app-pad-x, 16px), env(safe-area-inset-left)); padding-right: max(var(--app-pad-x, 16px), env(safe-area-inset-right)); }
@media (min-width: 640px) { .app-content { --app-pad-x: 24px; } }
@media (min-width: 1024px) { .app-content { --app-pad-x: 32px; } }
.page-header-actions:has(.btn-primary) { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
@media (pointer: coarse) {
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea { font-size: 16px !important; }
}
@media (max-width: 639px) { .chart-axis-label { font-size: 11px; } }
@media (max-width: 639px) {
.kv-row { flex-wrap: wrap; gap: 8px 12px; overflow-wrap: anywhere; }
.kv-row > :first-child { flex: 1 1 180px; min-width: 0; }
.kv-row > :last-child:not(:first-child) { margin-left: auto; }
}
@media (max-width: 760px) {
.settings-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.settings-nav::-webkit-scrollbar { display: none; }
.settings-nav-zone { flex-direction: row; flex-wrap: nowrap; flex-shrink: 0; gap: 8px; }
.settings-nav-zone-label { display: none; }
.settings-nav a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 40px; border: 1px solid var(--border); }
.settings-nav a.active { border-color: var(--text); }
.settings-search { margin-bottom: 12px; }
}
body:has(.overlay) .support-fab-anchor, body:has(.sidebar-mobile-open) .support-fab-anchor { display: none; }
.theme-toggle { width: 38px; height: 22px; border-radius: 11px; border: 1px solid var(--side-line); background: var(--side-active); padding: 1px; display: inline-flex; align-items: center; cursor: pointer; flex: none; }
.theme-toggle-knob { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--side-ink); color: var(--side-bg); transition: transform var(--t-base) var(--ease); }
.theme-toggle[aria-checked="true"] .theme-toggle-knob { transform: translateX(16px); background: var(--side-ember); color: #fff; }
.theme-toggle:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--side-active-text); }
.setup-ring { --pct: 0; display: inline-grid; place-items: center; padding: 2px; border-radius: 50%; flex: none;
background: conic-gradient(var(--side-ember) calc(var(--pct) * 1%), var(--side-line) 0); }
.setup-ring .avatar { box-shadow: 0 0 0 2px var(--side-bg); }
.dropdown-item-meta { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.emergency-btn { color: var(--text-muted); }
.emergency-btn:hover { color: var(--danger); }
.emergency-btn-on { color: var(--on-danger); background: var(--danger-solid); }
.emergency-btn-on:hover { color: var(--on-danger); background: var(--danger-solid-hover, var(--danger-solid)); filter: brightness(0.92); }
.emergency-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: var(--z-menu); width: 300px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 16px; }
.emergency-pop-title { font-weight: 650; margin-bottom: 4px; }
.emergency-pop-text { margin: 0 0 12px; color: var(--text-muted); font-size: var(--fs-body-sm); line-height: 20px; }
.emergency-pop-note { margin: 0; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font-size: var(--fs-body-sm); line-height: 20px; }
.az-hero { max-width: 880px; padding: 0; }
.az-hero-main { position: relative; z-index: 1; padding: 24px 24px 20px 28px; }
.az-hero-label { display: block; font: 500 11px var(--font); letter-spacing: 0; color: var(--text-muted); margin-bottom: 12px; }
.az-hero-row { display: flex; gap: 8px; align-items: stretch; }
.az-hero-field { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 16px; min-height: 48px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--bg); color: var(--text-muted); }
.az-hero-field:focus-within { border-color: var(--ember); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ember) 22%, transparent); color: var(--text); }
.az-hero-field input { flex: 1; border: 0; background: none; outline: 0; font: inherit; font-size: 16px; color: var(--text); min-width: 0; padding: 0; }
.az-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0 0; padding: 0; }
.az-checks li { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-body-sm); color: var(--text); }
.az-checks svg { color: var(--ember); }
.az-hero-note { margin: 12px 0 0; color: var(--text-muted); font-size: var(--fs-label); line-height: 1.5; max-width: 680px; }
.az-working { max-width: 880px; display: flex; gap: 16px; align-items: center; padding: 16px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); }
.az-working-dot { width: 12px; height: 12px; border-radius: 3px; background: var(--ember); animation: azPulse 1.1s ease-in-out infinite; flex: none; }
@keyframes azPulse { 0%, 100% { transform: scale(0.85); opacity: 0.6; } 50% { transform: scale(1.15); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .az-working-dot { animation: none; } }
.az-summary { max-width: 880px; display: flex; gap: 16px; align-items: center; padding: 16px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.az-summary-count { min-width: 56px; height: 56px; padding: 0 12px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--ember-soft); color: var(--ember-ink); font: 700 26px var(--font-display); }
.az-summary-title { font-weight: 650; font-size: 16px; }
.az-group { max-width: 880px; margin-top: 24px; }
.az-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 500 12px var(--font); letter-spacing: 0; color: var(--text-muted); }
.az-group-count { margin-left: 2px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--sunken); color: var(--text); }
.az-group-list { display: flex; flex-direction: column; gap: 8px; }
.az-card { display: flex; gap: 16px; align-items: flex-start; padding: 16px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.az-card:hover { border-color: var(--border-strong); }
.az-card-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--ember-soft); color: var(--ember-ink); }
.az-card-body { flex: 1; min-width: 0; }
.az-card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 650; }
.az-evidence { list-style: none; margin: 8px 0 0; padding: 0; font-size: var(--fs-label); display: flex; flex-direction: column; gap: 2px; }
.az-card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.az-card-note { font-size: var(--fs-label); }
@media (max-width: 720px) {
.az-hero-row { flex-direction: column; }
.az-card { flex-wrap: wrap; }
.az-card-actions { width: 100%; justify-content: flex-start; padding-left: 54px; }
}
.toolstack-nav { margin-bottom: 20px; }
.toolstack-nav .toolstack-zone-tabs { margin-bottom: 12px; }
.toolstack-pages { display: flex; flex-wrap: wrap; gap: 8px; }
.toolstack-page-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); color: var(--text-muted); font-size: var(--fs-body-sm); text-decoration: none; background: var(--surface); }
.toolstack-page-pill:hover { color: var(--text); border-color: var(--text-muted); }
.toolstack-page-pill-on { background: var(--ember-soft); border-color: var(--ember); color: var(--ember-ink); font-weight: 600; }
.toolstack-page-pill:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus-color); }
.mbx-promises { display: grid; gap: 8px; margin-top: 12px; }
.mbx-promises > div { display: flex; gap: 8px; align-items: flex-start; padding: 12px 12px; border: 1px solid var(--border); border-left: 3px solid var(--ember); border-radius: var(--radius-md); background: var(--surface-2); font-size: var(--fs-body-sm); }
.mbx-promises svg { flex: none; margin-top: 2px; color: var(--ember-ink); }
.mbx-promises b { display: block; font-weight: 600; }
.mbx-period { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 16px; }
.mbx-period-btn { border: 0; background: var(--surface); color: var(--text-muted); padding: 8px 16px; font: inherit; font-size: var(--fs-body-sm); cursor: pointer; border-right: 1px solid var(--border); }
.mbx-period-btn:last-child { border-right: 0; }
.mbx-period-on { background: var(--ember-soft); color: var(--ember-ink); font-weight: 600; }
.mbx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.mbx-stats > div { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); }
.mbx-stat-n { font: 700 24px var(--font-display); }
.mbx-chart { display: flex; align-items: flex-end; gap: 2px; height: 96px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); }
.mbx-day { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 1px; min-width: 0; }
.mbx-bar { flex: 1; max-width: 10px; min-height: 2px; border-radius: 2px 2px 0 0; }
.mbx-bar-in { background: var(--text); }
.mbx-bar-out { background: var(--ember); }
.mbx-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; }
.mbx-lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.mbx-list-title { font: 500 11px var(--font); letter-spacing: 0; color: var(--text-muted); margin-bottom: 8px; }
.mbx-row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--border); font-size: var(--fs-body-sm); }
.mbx-row .cell-mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lookup-out { margin: 12px 0 0; padding: 12px; max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); font: 12px/1.5 var(--font-mono); }
@media (max-width: 640px) { .mbx-stats { grid-template-columns: repeat(2, 1fr); } .mbx-lists { grid-template-columns: 1fr; } }
.emergency-btn-on .app-icon-ember { fill: #fff; }
.chat-hero-mark { position: relative; display: inline-flex; margin-bottom: 16px; }
.chat-hero-mark .brand-mark { position: relative; }
.home-block { background: none; border: 0; border-radius: 0; padding: 0; min-width: 0; }
.home-hero { display: flex; flex-direction: column; gap: 16px; }
.home-hero .page-header { margin: 0; }
.home-hero .decisions-band { margin: 0; }
.home-workforce-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: inherit; text-decoration: none; padding: 8px 8px; margin: 0 -8px; border-radius: var(--radius-md); transition: background var(--t-quick) var(--ease); }
.home-workforce-row:hover, .home-workforce-row:focus-visible { background: var(--surface-2); outline: 0; }
.home-workforce-row:focus-visible { box-shadow: 0 0 0 2px var(--focus-color); }
.home-workforce-row:hover .icon-tile { background: var(--ember-soft); color: var(--ember-ink); border-color: transparent; }
.home-block > .section-head { padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.two-col.section { gap: 24px; }
.app-content:has(.empty-state) {
background-image:
radial-gradient(70% 55% at 100% 100%, color-mix(in srgb, var(--ember) 7%, transparent), transparent 70%),
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath fill-rule='evenodd' fill='%238a8a90' fill-opacity='.055' d='M0 0h56v56h-56zM8 8v40h40v-40z'/%3E%3Crect x='32' y='32' width='20' height='20' fill='%23C2410C' fill-opacity='.09'/%3E%3C/svg%3E");
background-repeat: no-repeat, no-repeat;
background-position: 0 0, right 56px bottom 56px;
background-size: 100% 100%, 200px 200px;
}
.chat-hero {
background-image:
radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--ember) 6%, transparent), transparent 70%),
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath fill-rule='evenodd' fill='%238a8a90' fill-opacity='.05' d='M0 0h56v56h-56zM8 8v40h40v-40z'/%3E%3Crect x='32' y='32' width='20' height='20' fill='%23C2410C' fill-opacity='.08'/%3E%3C/svg%3E");
background-repeat: no-repeat, no-repeat;
background-position: 0 0, right 6% bottom 8%;
background-size: 100% 100%, min(340px, 40vw);
}
.tools-ov-tile { display: flex; flex-direction: column; gap: 8px; }
.tools-ov-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.home-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.home-cell-half { display: flex; flex-direction: column; }
.home-cell-half > :last-child { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.home-cell-half > :last-child > .section, .home-cell-half > :last-child > .card { flex: 1; }
.home-cell { grid-column: 1 / -1; min-width: 0; }
.home-cell-half { grid-column: auto; }
.home-cell > div > .section, .home-cell > .home-block.section { margin-bottom: 0; }
@media (max-width: 860px) { .home-blocks { grid-template-columns: 1fr; } .home-cell-half { grid-column: 1 / -1; } }
.home-edit-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border: 1px dashed var(--ember); border-radius: var(--radius-md, 10px); background: var(--ember-soft); font-size: var(--fs-body-sm); }
.home-edit-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.home-cell-edit { outline: 1px dashed var(--border-strong); outline-offset: 6px; border-radius: 10px; }
.home-cell-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.home-cell-name { font-family: var(--font); font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--text-muted); }
.home-hidden { margin-top: 16px; }
.own-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.own-tile { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--text); font-family: inherit; cursor: pointer; }
.own-tile:hover { border-color: var(--ember); background: var(--ember-soft); }
.own-tile span { font-size: var(--fs-body-sm); }
.own-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--border); }
.own-row:first-child { border-top: none; }
:root[data-theme="dark"] .app-content:has(.empty-state) { background-image: radial-gradient(70% 55% at 100% 100%, color-mix(in srgb, var(--ember) 5%, transparent), transparent 70%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath fill-rule='evenodd' fill='%23ffffff' fill-opacity='.022' d='M0 0h56v56h-56zM8 8v40h40v-40z'/%3E%3Crect x='32' y='32' width='20' height='20' fill='%23F0773A' fill-opacity='.04'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .chat-hero { background-image: radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--ember) 4%, transparent), transparent 70%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath fill-rule='evenodd' fill='%23ffffff' fill-opacity='.022' d='M0 0h56v56h-56zM8 8v40h40v-40z'/%3E%3Crect x='32' y='32' width='20' height='20' fill='%23F0773A' fill-opacity='.04'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .app-content:has(.empty-state) { background-image: radial-gradient(70% 55% at 100% 100%, color-mix(in srgb, var(--ember) 5%, transparent), transparent 70%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath fill-rule='evenodd' fill='%23ffffff' fill-opacity='.022' d='M0 0h56v56h-56zM8 8v40h40v-40z'/%3E%3Crect x='32' y='32' width='20' height='20' fill='%23F0773A' fill-opacity='.04'/%3E%3C/svg%3E"); }
:root:not([data-theme="light"]) .chat-hero { background-image: radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--ember) 4%, transparent), transparent 70%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath fill-rule='evenodd' fill='%23ffffff' fill-opacity='.022' d='M0 0h56v56h-56zM8 8v40h40v-40z'/%3E%3Crect x='32' y='32' width='20' height='20' fill='%23F0773A' fill-opacity='.04'/%3E%3C/svg%3E"); }
}
.card, .az-card, .template-card, .tools-ov-tile { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.template-card { border-radius: var(--radius-md); }
.card:hover, .az-card:hover, .tools-ov-tile:hover { border-color: var(--border-strong); }
.card-accent { border-left: 4px solid var(--ember); position: relative; overflow: hidden; }
.card-accent::after { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ember) 14%, transparent), transparent); pointer-events: none; }
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-p, .rich-h { margin: 0 0 8px; }
.rich-list { margin: 0 0 8px; padding-left: 20px; }
.rich-list li { margin: 2px 0; }
.rich-code { font-family: var(--font-mono, monospace); font-size: 0.92em; padding: 1px 4px; border-radius: 4px; background: var(--surface-3, rgba(127,127,127,0.18)); }
.rich-table-wrap { overflow-x: auto; margin: 0 0 8px; }
.rich-table { border-collapse: collapse; font-size: 0.93em; }
.rich-table th, .rich-table td { border: 1px solid var(--border); padding: 4px 8px; text-align: left; white-space: nowrap; }
.rich-table th { font-weight: 600; background: var(--surface-3, rgba(127,127,127,0.12)); }
@media (max-width: 760px) { .toaster { left: 16px; right: 16px; bottom: 16px; } }
.sidebar-collapsed ~ * .toaster { left: calc(var(--sidebar-w-collapsed) + 24px); }
.settings-panel { max-width: 720px; }
.settings-about { width: 320px; flex-shrink: 0; position: sticky; top: 8px; display: flex; flex-direction: column; gap: 12px; }
.settings-about h2 { font: 600 var(--fs-h4) var(--font-display); margin: 0; }
.settings-about p { margin: 0; font-size: var(--fs-body-sm); color: var(--text-muted); line-height: 1.5; }
.settings-about dl { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.settings-about dt { font-size: var(--fs-label); color: var(--text-faint); font-weight: 600; }
.settings-about dd { margin: 2px 0 0; font-size: var(--fs-body-sm); color: var(--text); }
.settings-about-links { display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-body-sm); }
.settings-about-links a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.settings-nav-zone-caption { padding: 8px 16px 2px; font: 600 var(--fs-label) var(--font); color: var(--text-faint); }
@media (max-width: 1180px) { .settings-about { display: none; } }
.status-line { display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-body-sm); }
.status-line-main { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.status-line-label { font-weight: 600; color: var(--text); }
.status-line-meta { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.status-line-reason { color: var(--text-muted); }
.status-line-bar { max-width: 360px; }
.status-spinner { color: var(--text); }
.status-success > .status-line-main > svg { color: var(--success); }
.status-danger > .status-line-main > svg { color: var(--danger); }
.status-warning > .status-line-main > svg { color: var(--warning); }
.status-faint > .status-line-main > svg { color: var(--text-faint); }
.home-blocks > .home-cell-half:last-child:nth-child(odd) { grid-column: 1 / -1; }
.panel-title-link { flex: 1; color: var(--text); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.panel-title-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-blocks { gap: 24px; }
.home-block + .home-block, .home-cell + .home-cell { margin-top: 0; }
.drawer-header-heading { margin: 0; font: inherit; color: inherit; }
.skip-link { position: absolute; left: 8px; top: -48px; z-index: calc(var(--z-tooltip) + 1); background: var(--brand); color: var(--on-primary); padding: 12px 16px; border-radius: var(--radius-md); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 8px; outline: var(--focus-width) solid var(--focus-color); outline-offset: 2px; }
#main-content:focus { outline: none; }
.form-head { margin: 0 0 24px; }
.form-head .section-title { margin: 0 0 8px; }
.form-head p { margin: 0; max-width: 62ch; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.form-grid > .field { margin: 0; gap: 8px; min-width: 0; }
.form-grid > .span-2 { grid-column: 1 / -1; }
.form-grid .field .help-line { margin: 0; font-size: var(--fs-label); color: var(--text-faint); }
.form-grid .field-narrow input { max-width: 160px; }
.form-grid .field-check { align-self: start; padding-top: 28px; }
.form-grid .field-check label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 32px; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .field > p.text-faint { margin: 0 !important; }
.card-form { position: relative; overflow: hidden; isolation: isolate; padding: 0; }
.card-form::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ember); z-index: 1; transform: scaleY(0); transition: transform var(--t-base) var(--ease); pointer-events: none; }
.card-form:focus-within::before { transform: scaleY(1); }
.card-form::after { content: ""; position: absolute; pointer-events: none; z-index: -1; }
:root[data-theme="dark"] .card-form::after { right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ember) 16%, transparent), transparent); }
:root:not([data-theme="dark"]) .card-form::after { right: 24px; top: 24px; width: 44px; height: 44px; opacity: 0.08; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56'%3E%3Cpath fill-rule='evenodd' fill='%2316161A' d='M0 0h56v56h-56zM8 8v40h40v-40z'/%3E%3Crect x='32' y='32' width='20' height='20' fill='%23C2410C'/%3E%3C/svg%3E"); }
.card-form-head { display: flex; gap: 16px; align-items: flex-start; padding: 24px 88px 20px 24px; border-bottom: 1px solid var(--border); }
.card-form-head h2, .card-form-head .card-form-title { margin: 0; font: 700 var(--fs-h3)/1.3 var(--font-display); }
.card-form-head p { margin: 4px 0 0; color: var(--text-muted); font-size: var(--fs-body-sm); max-width: 62ch; }
.card-form-body { padding: 24px; }
.card-form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface-2); }
.card-form .field input:not([type=checkbox]):focus, .card-form .field select:focus, .card-form .field textarea:focus { box-shadow: 0 0 0 1px var(--text), 0 0 0 4px color-mix(in srgb, var(--ember) 22%, transparent); }
.card-form .field input:not([type=checkbox]):not(:disabled), .card-form .field select, .card-form .field textarea { background-color: var(--surface-2); }
.form-stack { display: flex; flex-direction: column; gap: 24px; }
.combo { position: relative; }
.combo input { width: 100%; padding-right: 32px; }
.combo-caret { position: absolute; right: 12px; top: 50%; transform: translateY(-50%) rotate(90deg); color: var(--text-faint); pointer-events: none; }
.combo-list { position: absolute; z-index: var(--z-menu); left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow: auto; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.combo-opt { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: var(--fs-body-sm); cursor: pointer; }
.combo-opt-on { background: var(--sunken); }
.combo-opt-cur { font-weight: 600; }
.combo-hint { color: var(--text-faint); font-size: var(--fs-label); white-space: nowrap; }
.combo-empty { padding: 12px; color: var(--text-faint); font-size: var(--fs-body-sm); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 40px; padding: 8px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface-2); }
.chips:focus-within { border-color: var(--text); box-shadow: 0 0 0 1px var(--text), 0 0 0 4px color-mix(in srgb, var(--ember) 22%, transparent); }
.chips-list { display: contents; list-style: none; margin: 0; padding: 0; }
.chip-item { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--sunken); color: var(--text); font-size: var(--fs-body-sm); border: 1px solid var(--border); }
.chip-n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 700; }
.chip-btn { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); cursor: pointer; }
.chip-btn:hover:not(:disabled) { background: var(--border); color: var(--text); }
.chip-btn:disabled { opacity: 0.3; cursor: default; }
.chips .chips-field { flex: 1; min-width: 120px; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 8px 4px; height: auto; outline: 0; }
.field-error-msg { margin: 8px 0 0; color: var(--danger); font-size: var(--fs-label); font-weight: 500; }
.opt { color: var(--text-faint); font-weight: 400; font-size: var(--fs-label); }
.field.w-5 input, .field.w-5 select { max-width: 96px; }
.field.w-10 input, .field.w-10 select { max-width: 140px; }
.field.w-20 input, .field.w-20 select { max-width: 280px; }
.w-half-field { max-width: 50%; } @media (max-width: 760px) { .w-half-field { max-width: none; } }
.form-subhead { margin: 32px 0 16px; font: 600 var(--fs-h4)/1.3 var(--font-display); color: var(--text); }
.card-form-body > .form-grid:first-child + .form-subhead { margin-top: 32px; }
.check-line { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.addr-row { display: flex; gap: 24px; align-items: flex-start; }
.addr-row .field { margin: 0; gap: 8px; min-width: 0; }
.addr-city, .addr-state { flex: 3 1 0; }
.addr-postal { flex: 0 0 160px; }
.addr-postal input { max-width: none !important; }
@media (max-width: 760px) { .addr-row { flex-direction: column; } .addr-postal { flex: none; width: 100%; } }
.field { gap: 8px; margin-bottom: 24px; }
.modal .field, .drawer .field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.card-form-body > .field:last-child, .card-padded > .field:last-child { margin-bottom: 0; }
.field input[type=text], .field input[type=email], .field input[type=url], .field input[type=password], .field input[type=tel], .field input[type=number], .field input[type=search], .field input:not([type]), .field select { max-width: 560px; }
.form-grid .field input, .form-grid .field select, .addr .field input, .addr .field select, .card-form .span-2 input, .modal .field input, .modal .field select, .drawer .field input, .drawer .field select { max-width: none; }
.field.w-5 input, .field.w-5 select { max-width: 96px !important; } .field.w-10 input, .field.w-10 select { max-width: 140px !important; } .field.w-20 input, .field.w-20 select { max-width: 280px !important; }
.w-half-field input, .w-half-field select { max-width: none !important; }
.field .hint { font-size: var(--fs-label); color: var(--text-faint); font-weight: 400; margin: 0; }
.card-padded:has(.field):not(.card-form) { position: relative; overflow: hidden; isolation: isolate; }
.card-padded:has(.field):not(.card-form)::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ember); z-index: 1; transform: scaleY(0); transition: transform var(--t-base) var(--ease); pointer-events: none; }
.card-padded:has(.field):not(.card-form):focus-within::before { transform: scaleY(1); }
.card-padded:has(.field):not(.card-form) .field input:not([type=checkbox]):focus, .card-padded:has(.field):not(.card-form) .field select:focus, .card-padded:has(.field):not(.card-form) .field textarea:focus { box-shadow: 0 0 0 1px var(--text), 0 0 0 4px color-mix(in srgb, var(--ember) 22%, transparent); }
.card-form .field label, .card-padded .field label { display: block; }
.chips { max-width: 560px; }
.phone-row { display: flex; gap: 8px; align-items: stretch; max-width: 360px; }
.phone-cc { flex: 0 0 96px; }
.phone-cc input { text-align: left; }
.phone-cc .combo-list { min-width: 300px; right: auto; }
.phone-row > input { flex: 1; min-width: 0; }
@media (pointer: coarse) {
.btn { --h: 44px; min-height: 44px; }
.btn-sm { --h: 44px; }
.icon-btn, .topbar-search, .mobile-nav-toggle, .sidebar-mobile-close, .emergency-btn { min-width: 44px; min-height: 44px; }
.theme-toggle { position: relative; }
.theme-toggle::after { content: ""; position: absolute; inset: -11px -7px; }
.side-item, .module-tree-head, .side-group-head, .tab, [role="tab"], .command-row, .dropdown-menu-item, [role="menuitem"] { min-height: 44px; }
.agent-template-chip, .tool-pill-btn, .filter-chip, .pill-btn { min-height: 44px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea { min-height: 44px; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; }
a.link-btn, button.link-btn { min-height: 44px; display: inline-flex; align-items: center; }
.chip-btn { width: 32px; height: 32px; }
.combo-opt { min-height: 44px; align-items: center; }
}
@media (hover: none) { kbd, .kbd { display: none; } }
.avatar { font-size: max(12px, 0.38em); }
@media (max-width: 760px) {
[style*="font-size: 11"] { font-size: 12px !important; }
.app-content { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.support-fab-anchor { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
.support-fab-btn { width: 48px; height: 48px; }
body:has(.page-header-actions .btn-primary) .support-fab-anchor { bottom: calc(96px + env(safe-area-inset-bottom)); }
.toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
.toolbar > *, .toolbar .search-input, .toolbar select, .toolbar .select { width: 100%; max-width: none; }
.card-form-head { padding: 16px; gap: 12px; }
.card-form::after { display: none !important; }
.card-form-body { padding: 16px; }
.card-form-foot { padding: 12px 16px; }
.card-form-foot .btn { width: 100%; }
.form-grid { gap: 16px; }
.field { margin-bottom: 16px; }
.form-actions .btn { width: 100%; }
.phone-row { max-width: none; }
.settings-nav-zone-caption { display: none; }
.settings-nav a { padding: 0 16px; }
.breadcrumb-item a { padding: 0; }
.overlay { align-items: flex-end; }
.overlay-right { align-items: stretch; }
.modal { width: 100% !important; max-width: 100vw; border-radius: 16px 16px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom); }
.drawer { width: 100% !important; }
.modal-footer { flex-wrap: wrap; }
.modal-footer .btn { flex: 1 1 100%; }
.table-wrap, .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (min-width: 761px) and (max-width: 1100px) { .settings-about { display: none; } .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (pointer: coarse) { .page-about a, .page-about-body a { min-height: 0; display: inline; padding: 12px 0; } }
@media (max-width: 760px) {
.settings-nav .settings-search { display: none; }
body:has(.page-header-actions .btn-primary) .support-fab-anchor { bottom: calc(136px + env(safe-area-inset-bottom)); }
.page-header-actions:has(.btn-primary) .btn:not(.btn-primary) { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 760px) { .topbar-search { border-color: transparent; background: transparent; box-shadow: none; } }
@media (pointer: coarse) { body:has(input:focus, textarea:focus, select:focus, [contenteditable]:focus) .support-fab-anchor { display: none; } }
@media (max-width: 760px) {
.tabs-with-more { flex-wrap: wrap; gap: 8px 16px; }
.app-content { overflow-x: hidden; overscroll-behavior-x: none; }
html, body { overflow-x: clip; }
}
@media (hover: none) { .tip-label, [data-tip]::after, [data-tip]::before { display: none !important; } }
@media (max-width: 760px) {
.page-header-row { flex-wrap: wrap; gap: 12px; }
.page-header-titlewrap { min-width: 0; flex: 1 1 100%; }
.page-header-actions { flex-wrap: wrap; max-width: 100%; }
.btn { max-width: 100%; white-space: normal; text-align: center; height: auto; min-height: var(--h, 44px); padding-top: 8px; padding-bottom: 8px; }
table.table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.setting-row-control { max-width: 100%; min-width: 0; }
.setting-row-control select, .setting-row-control .select { width: 100%; max-width: 100%; }
}
@media (max-width: 760px) { [style*="display: flex"]:not([style*="flex-direction"]):not([style*="nowrap"]) { flex-wrap: wrap; } }
@media (max-width: 760px) { table.table { min-width: 0; width: 100%; } }
.prompt-hf-btn { flex-shrink: 0; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font-size: var(--fs-label); font-weight: 600; cursor: pointer; transition: background var(--t-quick) var(--ease), color var(--t-quick) var(--ease), border-color var(--t-quick) var(--ease); }
.prompt-hf-btn:hover { background: var(--surface-2); color: var(--text); }
.prompt-hf-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.prompt-hf-btn-on { background: var(--amber-soft); color: var(--amber-ink); border-color: var(--amber); }
