*{margin:0;padding:0;box-sizing:border-box}html,body,#app{width:100%;height:100%;position:relative}body{line-height:1.5;-webkit-font-smoothing:antialiased}h1,h2,h3,h4,h5,h6,p,ol,ul,button,input,textarea{margin:0;padding:0;font-weight:400}img,picture,video,canvas,svg{display:block;max-width:100%}button{background:none;border:none;cursor:pointer}input,button,textarea,select{font:inherit}.app-layout{display:flex;flex-direction:row;height:100vh;width:100vw;overflow:hidden;background:radial-gradient(circle at 42% 14%,rgba(20,184,166,.12),transparent 34%),radial-gradient(circle at 78% 74%,rgba(96,165,250,.08),transparent 30%),linear-gradient(135deg,#061525,#07111f 48%,#050910)}.app-main{flex:1;display:flex;flex-direction:column;height:100vh;min-width:0;overflow-x:clip;overflow-y:hidden;position:relative}.app-layout.sidebar-collapsed :where(.main-sidebar){width:76px;min-width:76px}.app-layout.sidebar-collapsed :where(.sidebar-brand){justify-content:center;padding-inline:0}.app-layout.sidebar-collapsed .brand-logo,.app-layout.sidebar-collapsed :where(.brand-logo-mark){width:36px;height:36px}.app-layout.sidebar-collapsed .sidebar-brand-text,.app-layout.sidebar-collapsed .workspace-card-copy,.app-layout.sidebar-collapsed .workspace-card-chevron,.app-layout.sidebar-collapsed .workspace-switcher-item span,.app-layout.sidebar-collapsed .sidebar-history-region,.app-layout.sidebar-collapsed .source-sidebar-spacer,.app-layout.sidebar-collapsed .source-profile-copy,.app-layout.sidebar-collapsed .source-sidebar-profile>i,.app-layout.sidebar-collapsed :where(.source-sidebar-collapse) span,.app-layout.sidebar-collapsed .sidebar-footer{display:none}.app-layout.sidebar-collapsed .sidebar-workspace-card,.app-layout.sidebar-collapsed .workspace-switcher-item,.app-layout.sidebar-collapsed .source-sidebar-profile,.app-layout.sidebar-collapsed :where(.source-sidebar-collapse){display:flex;align-items:center;justify-content:center;width:48px;min-height:48px;margin-inline:auto;padding:0}.app-layout.sidebar-collapsed :where(.sidebar-workspace-switcher){align-items:center;padding-inline:0}.content-area{display:flex;flex:1;overflow:hidden;position:relative}.main-chat-area{flex:1;overflow:hidden;position:relative}.main-chat-area:focus-visible{outline:none;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--color-teal) 34%,transparent)}.right-panel-restore-stack{position:absolute;right:14px;top:50%;z-index:var(--z-sticky);display:flex;flex-direction:column;align-items:flex-end;gap:8px;transform:translateY(-50%);pointer-events:none}.right-panel-restore-stack>*{pointer-events:auto}.right-panel-restore{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 12px;border:1px solid color-mix(in srgb,var(--color-teal) 34%,var(--border-subtle));border-radius:999px;color:var(--text-primary);background:linear-gradient(135deg,color-mix(in srgb,var(--color-teal) 12%,transparent),transparent 70%),color-mix(in srgb,var(--bg-elevated) 86%,transparent);box-shadow:0 16px 36px color-mix(in srgb,#000 28%,transparent),inset 0 1px color-mix(in srgb,white 8%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);transition:border-color .15s ease,background .15s ease,transform .15s ease}.right-panel-restore i{color:var(--color-teal)}.right-panel-restore span{font-size:.78rem;font-weight:720;letter-spacing:-.01em}.right-panel-restore:hover{border-color:color-mix(in srgb,var(--color-teal) 58%,var(--border-subtle));background:linear-gradient(135deg,color-mix(in srgb,var(--color-teal) 18%,transparent),transparent 70%),color-mix(in srgb,var(--bg-elevated) 94%,transparent);transform:translate(-2px)}.right-panel-restore:focus-visible{outline:none;box-shadow:0 16px 36px color-mix(in srgb,#000 28%,transparent),0 0 0 2px color-mix(in srgb,var(--color-teal) 42%,transparent)}:global(*){box-sizing:border-box;margin:0;padding:0}:global(*:before),:global(*:after){box-sizing:border-box}:global(html){font-size:16px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:global(body){font-family:var(--font-body);background:var(--bg-deep);color:var(--text-primary);overflow:hidden;height:100vh;width:100vw}html[data-theme=light]{--shell-bg: #f5f9fb;--shell-bg-soft: #eef7f6;--shell-surface: rgba(255, 255, 255, .9);--shell-surface-solid: #ffffff;--shell-surface-muted: rgba(244, 248, 250, .88);--shell-border: rgba(15, 86, 98, .12);--shell-border-strong: rgba(20, 184, 166, .28);--shell-shadow: 0 18px 44px rgba(15, 23, 42, .08);--shell-shadow-soft: 0 10px 24px rgba(15, 23, 42, .06);--bg-deep: #f5f9fb;--bg-sidebar: #f7fbfd;--glass-bg: rgba(255, 255, 255, .84);--border-subtle: rgba(15, 86, 98, .13);--text-primary: #15202e;--text-secondary: #536274;--text-muted: #728195;--text-disabled: #9aa8b8;--scrollbar-track: rgba(15, 86, 98, .08);--scrollbar-thumb: color-mix(in srgb, var(--color-teal) 44%, rgba(15, 23, 42, .18));--scrollbar-thumb-hover: color-mix(in srgb, var(--color-teal) 64%, #0f766e);--scrollbar-thumb-active: color-mix(in srgb, var(--color-teal) 76%, #0f766e)}html[data-theme=light] body{background:var(--shell-bg);color:var(--text-primary)}html[data-theme=light] .app-layout{background:radial-gradient(circle at 20% 0%,rgba(20,184,166,.16),transparent 34%),radial-gradient(circle at 78% 70%,rgba(99,102,241,.1),transparent 32%),linear-gradient(135deg,#fbfdff 0%,var(--shell-bg-soft) 52%,#f8fafc 100%)}html[data-theme=light] :where(.main-sidebar){background:radial-gradient(circle at 18% 0%,rgba(20,184,166,.14),transparent 35%),linear-gradient(180deg,#fff,#f6fbfc 58%,#eef6f8);border-right-color:var(--shell-border);box-shadow:10px 0 30px #0f172a0d}html[data-theme=light] :where(.sidebar-brand),html[data-theme=light] .workspace-nav-item,html[data-theme=light] :where(.source-sidebar-collapse),html[data-theme=light] .footer-text-link,html[data-theme=light] :where(.main-sidebar-footer-link){color:var(--text-secondary)}html[data-theme=light] .brand-name,html[data-theme=light] .workspace-card-copy strong,html[data-theme=light] .source-profile-copy strong,html[data-theme=light] .workspace-nav-item.active,html[data-theme=light] .workspace-nav-item:hover,html[data-theme=light] :where(.source-sidebar-collapse):hover{color:var(--text-primary)}html[data-theme=light] .sidebar-workspace-card,html[data-theme=light] .source-sidebar-profile,html[data-theme=light] .workspace-nav-item.active,html[data-theme=light] .session-group-list li.active :where(.thread-item-container){background:linear-gradient(135deg,rgba(20,184,166,.09),transparent 70%),var(--shell-surface);border-color:var(--shell-border-strong);box-shadow:var(--shell-shadow-soft)}html[data-theme=light] .workspace-card-icon,html[data-theme=light] .panel-creed-icon,html[data-theme=light] .active-creed-empty-card i,html[data-theme=light] .gen-hero-icon,html[data-theme=light] .preset-icon,html[data-theme=light] .page-icon-wrap,html[data-theme=light] :where(.card-icon){background:#14b8a61f;border-color:#14b8a642;color:#0f766e}html[data-theme=light] :where(.app-header){background:radial-gradient(circle at 20% 0%,rgba(20,184,166,.14),transparent 36%),linear-gradient(180deg,#fffffff0,#f4fafbe6);border-bottom-color:var(--shell-border);box-shadow:0 12px 30px #0f172a0f}html[data-theme=light] .topbar-status-card,html[data-theme=light] .topbar-command,html[data-theme=light] .source-action-btn,html[data-theme=light] :where(.header-byok-status){background:var(--shell-surface);border-color:var(--shell-border);color:var(--text-primary);box-shadow:var(--shell-shadow-soft)}html[data-theme=light] .source-action-btn.active,html[data-theme=light] .source-action-btn[aria-pressed=true]{background:linear-gradient(135deg,rgba(20,184,166,.16),transparent 70%),#f1fbfa;border-color:#14b8a66b;color:#0f766e}html[data-theme=light] .topbar-command:hover,html[data-theme=light] .source-action-btn:hover,html[data-theme=light] :where(.header-byok-status):hover{background:#fff;border-color:#14b8a652;color:var(--text-primary)}html[data-theme=light] .chat-interface,html[data-theme=light] .main-chat-area,html[data-theme=light] .workspace{background:radial-gradient(circle at 45% 8%,rgba(20,184,166,.12),transparent 34%),linear-gradient(180deg,#fbfdff,#f5f9fb 72%,#eef6f8);color:var(--text-primary)}html[data-theme=light] .chat-workspace-header,html[data-theme=light] .sub-nav{background:radial-gradient(circle at 10% 0%,rgba(20,184,166,.11),transparent 42%),#ffffffc7;border-bottom-color:var(--shell-border)}html[data-theme=light] .tab,html[data-theme=light] .chat-new-session-button,html[data-theme=light] .chat-new-session-menu-button,html[data-theme=light] .context-bar,html[data-theme=light] .values-attached-badge,html[data-theme=light] .right-panel-restore{background:var(--shell-surface);border-color:var(--shell-border);color:var(--text-secondary);box-shadow:var(--shell-shadow-soft)}html[data-theme=light] .source-preview-user-card,html[data-theme=light] .source-preview-decision-card,html[data-theme=light] .preview-trace-row,html[data-theme=light] .message-card,html[data-theme=light] .superego-decision-card{background:linear-gradient(135deg,rgba(99,102,241,.06),transparent 62%),var(--shell-surface-solid);border-color:var(--shell-border);color:var(--text-primary);box-shadow:var(--shell-shadow)}html[data-theme=light] .source-preview-user-card:hover{background:linear-gradient(135deg,rgba(20,184,166,.1),transparent 66%),#fff;border-color:#14b8a64d}html[data-theme=light] .preview-decision-header,html[data-theme=light] .preview-trace-title,html[data-theme=light] .preview-trace-footer,html[data-theme=light] .preview-trace-detail,html[data-theme=light] :where(.preview-trace-chevron){color:var(--text-secondary)}html[data-theme=light] .preview-decision-source,html[data-theme=light] .preview-decision-copy,html[data-theme=light] .preview-trace-name,html[data-theme=light] .message-content{color:var(--text-primary)}html[data-theme=light] :where(.chat-input-wrap){background:radial-gradient(circle at 82% 100%,rgba(20,184,166,.12),transparent 38%),linear-gradient(180deg,#fffffff5,#f4fafbf0);border-color:var(--shell-border-strong);box-shadow:var(--shell-shadow)}html[data-theme=light] :where(.chat-input-wrap.chatInputNoProvider){background:var(--shell-surface-solid);border-color:#6366f12e}html[data-theme=light] .chat-input-attach,html[data-theme=light] .composer-creeds-chip,html[data-theme=light] :where(.kbd-hint){background:#ffffffc7;border-color:var(--shell-border);color:var(--text-secondary)}html[data-theme=light] :where(.chat-input-textarea){background:transparent;color:var(--text-primary)}html[data-theme=light] :where(.chat-input-textarea)::placeholder{color:#7c8a9e}html[data-theme=light] .tab.active,html[data-theme=light] .values-attached-badge,html[data-theme=light] :where(.context-bar-persona){color:#0f766e}html[data-theme=light] .hero-header,html[data-theme=light] .author-form,html[data-theme=light] .published-card,html[data-theme=light] .governance-card,html[data-theme=light] .metric-card,html[data-theme=light] .admin-card,html[data-theme=light] .monitor-card,html[data-theme=light] .creed-health-card,html[data-theme=light] .active-creed-empty-card,html[data-theme=light] .active-creed-card,html[data-theme=light] .available-creed-card,html[data-theme=light] .gen-hero,html[data-theme=light] .tuning-section,html[data-theme=light] .preset-section,html[data-theme=light] .preset-card{background:linear-gradient(135deg,rgba(20,184,166,.08),transparent 62%),var(--shell-surface);border-color:var(--shell-border);box-shadow:var(--shell-shadow-soft);color:var(--text-primary)}html[data-theme=light] .preset-card.active,html[data-theme=light] .active-creed-card:hover,html[data-theme=light] .available-creed-card:hover{background:linear-gradient(135deg,rgba(20,184,166,.14),transparent 66%),#f3fbfa;border-color:#14b8a65c}html[data-theme=light] .field input,html[data-theme=light] .field textarea,html[data-theme=light] .field select,html[data-theme=light] .creed-search-row input,html[data-theme=light] .chat-input-area textarea,html[data-theme=light] input,html[data-theme=light] textarea,html[data-theme=light] select{background:#ffffffeb;border-color:var(--shell-border);color:var(--text-primary)}html[data-theme=light] .field input::placeholder,html[data-theme=light] .field textarea::placeholder,html[data-theme=light] .creed-search-row input::placeholder,html[data-theme=light] .chat-input-area textarea::placeholder{color:#8795a7}html[data-theme=light] :where(.right-panel){background:radial-gradient(circle at 18% 0%,rgba(20,184,166,.14),transparent 34%),linear-gradient(180deg,#fff,#f6fbfc 66%,#eef6f8);border-left-color:var(--shell-border);box-shadow:-12px 0 30px #0f172a0f}html[data-theme=light] .panel-status-pill,html[data-theme=light] .add-creed-button,html[data-theme=light] .creed-filter-pills button,html[data-theme=light] .creed-view-all-button,html[data-theme=light] .reset-btn{background:#ffffffdb;border-color:var(--shell-border);color:var(--text-secondary)}html[data-theme=light] :where(.compatibility-ring){background:radial-gradient(circle at center,#ffffff 57%,transparent 58%),conic-gradient(var(--emerald) var(--score),color-mix(in srgb,var(--shell-border) 84%,transparent) 0)}html[data-theme=light] :where(.privacy-settings-modal-overlay){background:radial-gradient(circle at 20% 8%,rgba(20,184,166,.18),transparent 34%),radial-gradient(circle at 82% 18%,rgba(99,102,241,.12),transparent 38%),#e2eef2b8}html[data-theme=light] :where(.privacy-settings-modal-content){background:linear-gradient(180deg,#fffffffa,#f5fafbfa),#fff;border-color:var(--shell-border);box-shadow:0 28px 90px #0f172a29}html[data-theme=light] .privacy-settings-modal-header,html[data-theme=light] .ps-tabs,html[data-theme=light] :where(.privacy-settings-modal-body){background:radial-gradient(circle at 8% 0%,rgba(20,184,166,.1),transparent 42%),#ffffffbd;border-color:var(--shell-border)}html[data-theme=light] :where(.ps-tab){background:#fffc;color:var(--text-secondary)}html[data-theme=light] :where(.ps-tab.active){background:#14b8a61f;border-color:#14b8a657;color:#0f766e}html[data-theme=light] :where(.privacy-settings-modal-body) .setting-group,html[data-theme=light] :where(.privacy-settings-modal-body) .info-box,html[data-theme=light] :where(.privacy-settings-modal-body) .cookie-setting,html[data-theme=light] :where(.privacy-settings-modal-body) .cookie-info,html[data-theme=light] :where(.privacy-settings-modal-body) .cookie-auto-save-info,html[data-theme=light] :where(.privacy-settings-modal-body) .status-item,html[data-theme=light] .theme-option,html[data-theme=light] .size-option,html[data-theme=light] .density-option,html[data-theme=light] .toggle-setting{background:#ffffffdb;border-color:var(--shell-border);color:var(--text-primary);box-shadow:var(--shell-shadow-soft)}html[data-theme=light] :where(.privacy-settings-modal-body) :where(p,li,small,.help-text,.description,.setting-description){color:var(--text-secondary)}html[data-theme=light] :where(.privacy-settings-modal-body) :where(h3,h4,strong,label,legend,.setting-title){color:var(--text-primary)}html[data-theme=light] .theme-option.active,html[data-theme=light] .size-option.active,html[data-theme=light] .density-option.active{background:#14b8a61f;border-color:#14b8a661;color:#0f766e}:global(button){font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;font-size:inherit}:global(a){color:inherit;text-decoration:none}:global(input),:global(select){font-family:inherit}.hamburger-btn{display:none;background:transparent;border:none;color:var(--text-primary);font-size:1.25rem;width:40px;height:40px;align-items:center;justify-content:center;border-radius:var(--radius-sm);cursor:pointer;flex-shrink:0}.hamburger-btn:hover{background:var(--bg-hover)}.hamburger-btn:focus-visible{outline:none;box-shadow:0 0 0 2px color-mix(in srgb,var(--color-teal) 42%,transparent)}@media(max-width:768px){.app-layout>aside{position:fixed;left:0;top:0;bottom:0;width:100%;max-width:320px;z-index:var(--z-sidebar);transform:translate(-100%);transition:transform .2s ease}.app-layout>aside:has(:where(.main-sidebar.open)){transform:translate(0)}:where(.main-sidebar.open){width:100%;height:100%}.app-layout>aside:has(:where(.main-sidebar.open)):after{content:"";position:fixed;inset:0 0 0 100%;width:100vw;background:#00000080;z-index:-1}.hamburger-btn{display:inline-flex}.context-bar-creeds .context-creed-chip:nth-child(n+3){display:none}.right-panel-restore-stack{position:absolute;right:10px;top:auto;bottom:calc(var(--composer-height, 96px) + 18px);transform:none}.right-panel-restore{flex:initial;flex-direction:row;align-self:auto;width:auto;min-width:0;min-height:38px;padding:0 12px;border:1px solid color-mix(in srgb,var(--color-teal) 34%,var(--border-subtle));border-radius:999px;background:linear-gradient(135deg,color-mix(in srgb,var(--color-teal) 12%,transparent),transparent 70%),color-mix(in srgb,var(--bg-elevated) 86%,transparent)}.right-panel-restore i{width:auto;height:auto;border:0;background:transparent}}@media(max-width:519px){:where(.right-panel.open){position:fixed;right:0;top:0;bottom:0;z-index:var(--z-panel);width:var(--panel-width);min-width:var(--panel-width)}}@supports (-webkit-touch-callout: none){.app-layout{height:-webkit-fill-available}}@supports not (backdrop-filter: blur(12px)){.app-layout :global(.topbar),.app-layout :global(.context-bar),.app-layout :global(.demo-bar),.app-layout :global(.cmd-palette-backdrop){background:var(--bg-sidebar)}}.app-layout.blur{filter:blur(4px);pointer-events:none}:global([data-tour-active=true]){position:relative;z-index:var(--z-tour-target)}:root{--color-primary: var(--info);--color-primary-hover: #2563eb;--color-primary-focus: #93c5fd;--color-primary-light: var(--info-light);--color-secondary: #7c3aed;--color-accent: var(--success);--color-danger: var(--error);--color-danger-hover: #b91c1c;--color-warning: var(--warning);--color-success: var(--success);--color-disabled-bg: #e2e8f0;--color-disabled-text: #94a3b8;--color-bg: var(--bg-primary);--color-bg-secondary: var(--bg-secondary);--color-bg-tertiary: var(--bg-tertiary);--color-text: var(--text-primary);--color-text-secondary: var(--text-secondary);--color-text-muted: var(--text-muted);--color-border: var(--border-color);--color-border-strong: #cbd5e1;--color-inherited: #6b7280;--color-added: var(--color-primary);--color-overridden: var(--color-warning);--color-violating: var(--color-danger);--color-coverage-green: var(--color-success);--color-coverage-yellow: var(--color-warning);--color-coverage-red: var(--color-danger);--color-decision-allow: var(--color-success);--color-decision-block: var(--color-danger);--color-decision-modify: #92400e;--color-decision-modify-text: #451a03;--color-decision-escalate: #a16207;--color-decision-escalate-text: #422006;--color-decision-transform: var(--color-primary);--color-health-healthy: var(--color-success);--color-health-degraded: var(--color-warning);--color-health-offline: var(--color-danger);--color-health-unknown: var(--color-text-muted);--font-sans: var(--font-body);--font-size-xs: .75rem;--font-size-sm: .875rem;--font-size-base: 1rem;--font-size-lg: 1.125rem;--font-size-xl: 1.25rem;--font-size-2xl: 1.5rem;--font-size-3xl: 1.875rem;--font-size-4xl: 2.25rem;--font-weight-regular: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--radius-sm: 4px;--radius-md: 8px;--radius-lg: 12px;--radius-xl: 16px;--shadow-color: 0 0% 0%;--shadow-sm: 0 1px 2px hsl(var(--shadow-color) / .05);--shadow-md: 0 4px 6px -1px hsl(var(--shadow-color) / .1);--shadow-lg: 0 10px 15px -3px hsl(var(--shadow-color) / .1)}:root[data-theme=dark]{--color-primary-light: #1e3a5f;--color-danger-light: #3b1111;--color-border-strong: #475569;--color-disabled-bg: #334155;--color-disabled-text: #64748b}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--color-primary-light: #1e3a5f;--color-danger-light: #3b1111;--color-border-strong: #475569;--color-disabled-bg: #334155;--color-disabled-text: #64748b}}:root{--accent: var(--brand-primary-light, #6366f1);--accent-hover: var(--brand-primary-dark, #4338ca);--accent-secondary: #8b5cf6;--accent-muted: color-mix(in srgb, var(--brand-primary-light, #6366f1) 15%, transparent);--bg-active: var(--bg-hover);--bg-input: var(--bg-secondary);--bg-overlay: rgba(0, 0, 0, .6);--text-dim: var(--text-muted);--text-faint: var(--text-muted);--border-faint: var(--border-subtle)}
