/* Exact NORAi chat-shell palette, sourced from packages/chat-ui/src/theme.css. */
@font-face{font-family:"DM Sans";src:url("/dm-sans.woff2") format("woff2");font-weight:400 600;font-style:normal;font-display:swap}
:root{--success:146 31% 35%;--warning:30 40% 36%;--danger:7 43% 39%;color-scheme:light}
:root[data-theme=dark]{--background:30 6% 9%;--foreground:40 31% 91%;--card:30 6% 12%;--secondary:28 7% 16%;--muted-foreground:34 10% 64%;--border:29 8% 25%;--input:28 7% 15%;--ring:218 31% 49%;--sidebar-background:30 6% 11%;--sidebar-accent:28 7% 18%;--success:146 32% 65%;--warning:34 58% 68%;--danger:8 65% 73%;color-scheme:dark}
html,body{background:hsl(var(--background));color:hsl(var(--foreground))}
#theme-popover{position:fixed;inset:auto auto 58px 56px;margin:0;padding:14px;width:202px;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--card));color:hsl(var(--foreground));box-shadow:0 12px 36px #0003}
#theme-popover::backdrop{background:transparent}
#theme-popover [role=group]{display:flex;gap:4px}
#theme-popover button{width:auto;height:32px;padding:0 11px;font-size:12px;display:block}
#theme-popover button[aria-pressed=true]{background:hsl(var(--sidebar-accent));font-weight:600}
#theme-trigger{color:hsl(var(--muted-foreground))}
#theme-trigger:hover{color:hsl(var(--foreground))}
.field-kicker,.filter-options,.status-row p,.status-event time{color:hsl(var(--muted-foreground))}
[data-slot=combobox-popup]{background:hsl(var(--card));color:hsl(var(--foreground));border-color:hsl(var(--border));box-shadow:0 8px 24px #0002}
[data-slot=combobox-chip]{background:hsl(var(--secondary));color:hsl(var(--foreground))}
[data-slot=combobox-item][data-highlighted]{background:hsl(var(--sidebar-accent))}
.email-chips{border-color:hsl(var(--border))!important}
#connect-dialog{background:hsl(var(--card));color:hsl(var(--foreground));border-color:hsl(var(--border))}
.field-error,.auth-message.is-error,.status-event.is-error span{color:hsl(var(--danger))}
.run-summary.is-error{color:hsl(var(--danger));border-left-color:hsl(var(--danger));background:hsl(var(--danger)/.06)}
.delete-record-button:hover{color:hsl(var(--danger));background:hsl(var(--danger)/.08)}
.status-value.is-ready::before{background:hsl(var(--success))}
.status-value.is-attention::before{background:hsl(var(--warning))}
:root[data-theme=dark] .status-badge{color:hsl(var(--muted-foreground))}
:root[data-theme=dark] .status-badge.success{color:hsl(var(--success))}
:root[data-theme=dark] .status-badge.attention{color:hsl(var(--warning))}
:root[data-theme=dark] .workflow-switch{background:hsl(var(--border));border-color:hsl(var(--border))}
:root[data-theme=dark] .workflow-switch[aria-checked=true]{background:#3d7655;border-color:#629d79}
:root[data-theme=dark] #toast{color:hsl(var(--foreground));background:hsl(var(--card));border-color:hsl(var(--border))}
::selection{background:hsl(var(--ring)/.3);color:hsl(var(--foreground))}

:root[data-theme=dark] .status-badge.success i{background:hsl(var(--success))}
:root[data-theme=dark] .status-badge.attention i{background:hsl(var(--warning))}
