:root{--ts-surface:#fff;--ts-surface-soft:#f8fafc;--ts-border:#0f172a14;--ts-text:#1f2937;--ts-muted:#64748b;--ts-accent:#435ebe;--ts-accent-strong:#25396f;--ts-chat-user:#e7efff;--ts-chat-bot:#f3f4f6;--ts-chat-system:#fff5e6}html[data-theme=dark],html[data-bs-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ts-surface:#111827;--ts-surface-soft:#1f2937;--ts-border:#94a3b829;--ts-text:#e5e7eb;--ts-muted:#94a3b8;--ts-accent:#8aa4ff;--ts-accent-strong:#d9e2ff;--ts-chat-user:#1e293b;--ts-chat-bot:#172033;--ts-chat-system:#2a2230}html,body{min-height:100%}body{color:var(--ts-text);background:#f2f5fb;font-family:Nunito,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}body.page-guest{background:radial-gradient(circle at 0 0,#435ebe24,#0000 32%),radial-gradient(circle at 100% 100%,#23396f1f,#0000 28%),#eef2f7}body.page-admin{background:linear-gradient(#435ebe0a,#0000 220px),#f2f5fb}.card{border-color:#0f172a14;box-shadow:0 12px 34px #0f172a0f}.page-heading h3,.page-title h3{letter-spacing:-.03em}.page-subtitle,.text-subtitle,.text-muted{color:var(--ts-muted)!important}.section{padding-top:.5rem}.dashboard-shell{min-height:calc(100vh - 120px)}.surface-card{border:1px solid var(--ts-border);background:var(--ts-surface);border-radius:1.2rem;box-shadow:0 18px 42px #0f172a0f}.surface-card-soft{background:linear-gradient(#fffffffa,#f8fafcf0)}html[data-theme=dark] .surface-card-soft,html[data-bs-theme=dark] .surface-card-soft{background:linear-gradient(#111827fa,#1e293bf0)}.sidebar-brand{color:var(--ts-text);align-items:center;gap:.75rem;font-weight:800;display:inline-flex}.sidebar-brand-mark{color:#fff;letter-spacing:.04em;background:linear-gradient(135deg,#435ebe,#25396f);border-radius:.9rem;place-items:center;width:2.5rem;height:2.5rem;font-size:.95rem;display:grid}.sidebar-brand-text{letter-spacing:-.03em;font-size:1.1rem}.top-navbar{z-index:1030;border-bottom:1px solid var(--ts-border);-webkit-backdrop-filter:blur(18px);background:#ffffffd1;border-radius:0;margin-bottom:0;padding:.75rem 1.5rem;position:sticky;top:0}html[data-theme=dark] .tenant-chip,html[data-bs-theme=dark] .tenant-chip{color:var(--ts-text);background:#0f172acc;border-color:#94a3b82e}.tenant-chip{border:1px solid var(--ts-border);background:var(--ts-surface-soft);color:var(--ts-text);border-radius:.9rem}html[data-theme=dark] .top-navbar,html[data-bs-theme=dark] .top-navbar{background:#111827e6}.user-menu-avatar{width:1.9rem;height:1.9rem;color:var(--ts-accent-strong);background:#435ebe1f;border-radius:999px;place-items:center;display:grid}html[data-theme=dark] .dropdown-menu,html[data-bs-theme=dark] .dropdown-menu{background:#0f172a;border-color:#94a3b829}html[data-theme=dark] .dropdown-item,html[data-bs-theme=dark] .dropdown-item{color:var(--ts-text)}html[data-theme=dark] .dropdown-item:hover,html[data-theme=dark] .dropdown-item:focus,html[data-bs-theme=dark] .dropdown-item:hover,html[data-bs-theme=dark] .dropdown-item:focus{color:var(--ts-text);background:#94a3b81f}html[data-theme=dark] .dropdown-item.active,html[data-theme=dark] .dropdown-item:active,html[data-bs-theme=dark] .dropdown-item.active,html[data-bs-theme=dark] .dropdown-item:active{color:var(--ts-text);background:#60a5fa1f}.summary-badge{min-width:2.65rem;min-height:2.65rem;color:var(--ts-accent);background:#435ebe1a;border-radius:.95rem;justify-content:center;align-items:center;display:inline-flex}.role-chip,.permission-chip{color:var(--ts-accent-strong);background:#435ebe1a;border-radius:999px;align-items:center;gap:.35rem;padding:.4rem .72rem;font-size:.82rem;font-weight:700;display:inline-flex}.permission-chip{color:#166534;background:#22c55e1a}.permission-check{background:var(--ts-surface-soft);cursor:pointer;border:1px solid #0f172a14;border-radius:1rem;align-items:flex-start;gap:.75rem;height:100%;padding:.85rem .95rem;display:flex}.permission-check .form-check-input{flex:none;margin-top:.2rem}.permission-check strong,.permission-check small{display:block}.role-card-grid{gap:1rem;display:grid}.role-card .card-header,.role-card .card-footer,.chat-card .card-header,.chat-card .card-footer{background:0 0}.chat-page-shell{min-height:calc(100vh - 48px)}.chat-board{gap:1.25rem;display:grid}.chat-card{min-height:calc(100vh - 180px)}.people-list{gap:.75rem;max-height:calc(100vh - 360px);padding-right:.25rem;display:grid;overflow:auto}.is-hidden{display:none!important}html[data-theme=dark] body.page-admin,html[data-theme=dark] body.page-guest,html[data-bs-theme=dark] body.page-admin,html[data-bs-theme=dark] body.page-guest{background:radial-gradient(circle at 0 0,#60a5fa1f,#0000 28%),linear-gradient(#0f172a,#111827 56%,#0f172a)}html[data-theme=dark],html[data-bs-theme=dark],html[data-theme=dark] body,html[data-bs-theme=dark] body,html[data-theme=dark] h1,html[data-theme=dark] h2,html[data-theme=dark] h3,html[data-theme=dark] h4,html[data-theme=dark] h5,html[data-theme=dark] h6,html[data-theme=dark] p,html[data-theme=dark] span,html[data-theme=dark] small,html[data-theme=dark] label,html[data-theme=dark] legend,html[data-theme=dark] dt,html[data-theme=dark] dd,html[data-theme=dark] td,html[data-theme=dark] th,html[data-theme=dark] li,html[data-theme=dark] strong,html[data-theme=dark] em,html[data-theme=dark] a,html[data-theme=dark] .form-label,html[data-theme=dark] .form-text,html[data-theme=dark] .nav-link,html[data-theme=dark] .page-link,html[data-theme=dark] .dropdown-header,html[data-theme=dark] .card-title,html[data-bs-theme=dark] body,html[data-bs-theme=dark] h1,html[data-bs-theme=dark] h2,html[data-bs-theme=dark] h3,html[data-bs-theme=dark] h4,html[data-bs-theme=dark] h5,html[data-bs-theme=dark] h6,html[data-bs-theme=dark] p,html[data-bs-theme=dark] span,html[data-bs-theme=dark] small,html[data-bs-theme=dark] label,html[data-bs-theme=dark] legend,html[data-bs-theme=dark] dt,html[data-bs-theme=dark] dd,html[data-bs-theme=dark] td,html[data-bs-theme=dark] th,html[data-bs-theme=dark] li,html[data-bs-theme=dark] strong,html[data-bs-theme=dark] em,html[data-bs-theme=dark] a,html[data-bs-theme=dark] .form-label,html[data-bs-theme=dark] .form-text,html[data-bs-theme=dark] .nav-link,html[data-bs-theme=dark] .page-link,html[data-bs-theme=dark] .dropdown-header,html[data-bs-theme=dark] .card-title{color:var(--ts-text)}html[data-theme=dark] .card,html[data-theme=dark] .surface-card,html[data-bs-theme=dark] .card,html[data-bs-theme=dark] .surface-card{background:#111827;border-color:#94a3b829;box-shadow:0 16px 36px #00000047}html[data-theme=dark] .card-header,html[data-theme=dark] .card-footer,html[data-bs-theme=dark] .card-header,html[data-bs-theme=dark] .card-footer{background:#111827;border-color:#94a3b829}html[data-theme=dark] .card-header,html[data-bs-theme=dark] .card-header{color:var(--ts-text)}html[data-theme=dark] .card-header .text-muted,html[data-bs-theme=dark] .card-header .text-muted{color:var(--ts-muted)!important}html[data-theme=dark] .breadcrumb,html[data-bs-theme=dark] .breadcrumb{--bs-breadcrumb-divider-color:#94a3b899;color:var(--ts-muted)}html[data-theme=dark] .breadcrumb-item.active,html[data-bs-theme=dark] .breadcrumb-item.active{color:var(--ts-text)}html[data-theme=dark] .sidebar-wrapper,html[data-theme=dark] #main,html[data-bs-theme=dark] .sidebar-wrapper,html[data-bs-theme=dark] #main{background:#111827f5}html[data-theme=dark] .sidebar-link,html[data-theme=dark] .sidebar-title,html[data-theme=dark] .footer,html[data-theme=dark] .text-muted,html[data-bs-theme=dark] .sidebar-link,html[data-bs-theme=dark] .sidebar-title,html[data-bs-theme=dark] .footer,html[data-bs-theme=dark] .text-muted{color:var(--ts-muted)!important}html[data-theme=dark] .sidebar-wrapper .menu .sidebar-link:hover,html[data-bs-theme=dark] .sidebar-wrapper .menu .sidebar-link:hover{color:var(--ts-text);background-color:#94a3b81f}html[data-theme=dark] .sidebar-wrapper .menu .sidebar-link:hover i,html[data-theme=dark] .sidebar-wrapper .menu .sidebar-link:hover svg,html[data-bs-theme=dark] .sidebar-wrapper .menu .sidebar-link:hover i,html[data-bs-theme=dark] .sidebar-wrapper .menu .sidebar-link:hover svg{color:var(--ts-text)}html[data-theme=dark] .sidebar-wrapper .menu .sidebar-item.active .sidebar-link:hover,html[data-bs-theme=dark] .sidebar-wrapper .menu .sidebar-item.active .sidebar-link:hover{background-color:#435ebe}html[data-theme=dark] .btn-link,html[data-bs-theme=dark] .btn-link{color:var(--ts-accent)!important}html[data-theme=dark] .dropdown-item.text-danger,html[data-bs-theme=dark] .dropdown-item.text-danger{color:#f87171!important}html[data-theme=dark] .table,html[data-bs-theme=dark] .table{color:var(--ts-text)}html[data-theme=dark] .table thead th,html[data-bs-theme=dark] .table thead th{color:var(--ts-text);border-bottom-color:#94a3b829}html[data-theme=dark] .table td,html[data-theme=dark] .table th,html[data-bs-theme=dark] .table td,html[data-bs-theme=dark] .table th{border-color:#94a3b829}html[data-theme=dark] .form-control,html[data-theme=dark] .form-select,html[data-theme=dark] .btn-light,html[data-theme=dark] .btn-outline-secondary,html[data-bs-theme=dark] .form-control,html[data-bs-theme=dark] .form-select,html[data-bs-theme=dark] .btn-light,html[data-bs-theme=dark] .btn-outline-secondary{color:var(--ts-text);background-color:#0f172ab3;border-color:#94a3b82e}html[data-theme=dark] .form-control::placeholder,html[data-bs-theme=dark] .form-control::placeholder{color:#94a3b8b3}html[data-theme=dark] .alert-light,html[data-bs-theme=dark] .alert-light{color:var(--ts-text);background:#0f172ab8;border-color:#94a3b82e}html[data-theme=dark] .person-card,html[data-bs-theme=dark] .person-card{background:#0f172acc;border-color:#94a3b829}html[data-theme=dark] .person-card:hover,html[data-theme=dark] .person-card:focus-visible,html[data-bs-theme=dark] .person-card:hover,html[data-bs-theme=dark] .person-card:focus-visible{background:#1e293beb}html[data-theme=dark] .person-card.is-active,html[data-bs-theme=dark] .person-card.is-active{background:linear-gradient(#3b82f629,#0f172af5)}html[data-theme=dark] .permission-check,html[data-bs-theme=dark] .permission-check{background:#0f172ac7;border-color:#94a3b829}.person-card{text-align:left;background:var(--ts-surface-soft);border:1px solid #0f172a14;border-radius:1rem;width:100%;padding:.95rem 1rem;transition:border-color .12s,transform .12s,background-color .12s,box-shadow .12s}.person-card:hover,.person-card:focus-visible{background:#fff;border-color:#435ebe47;transform:translateY(-1px);box-shadow:0 10px 24px #0f172a0d}.person-card.is-active{background:linear-gradient(#e7efffd9,#fffffffa);border-color:#435ebe6b}.person-card-name{font-weight:800;display:block}.person-card-meta,.person-card-session{color:var(--ts-muted);margin-top:.2rem;font-size:.9rem;display:block}.session-pill{color:var(--ts-accent-strong);background:#435ebe1a;border-radius:999px;align-items:center;gap:.4rem;padding:.45rem .85rem;font-size:.85rem;font-weight:700;display:inline-flex}.empty-chat{text-align:center;min-height:280px;color:var(--ts-muted);place-items:center;display:grid}.empty-chat-title{color:var(--ts-text);margin:0;font-weight:800}.message-stream{gap:1rem;min-height:420px;display:grid}.message-row{display:flex}.message-row.is-user{justify-content:flex-end}.message-row.is-assistant,.message-row.is-system{justify-content:flex-start}.message-bubble{background:var(--ts-chat-bot);border:1px solid #0f172a0f;border-radius:1.2rem;max-width:min(78%,700px);padding:1rem 1.1rem;box-shadow:0 12px 24px #0f172a0f}.message-row.is-user .message-bubble{background:linear-gradient(#435ebe1f,#435ebe14);border-color:#435ebe1f}.message-row.is-system .message-bubble{background:var(--ts-chat-system);border-color:#f59e0b2e}.message-role{letter-spacing:.08em;text-transform:uppercase;color:var(--ts-muted);margin:0;font-size:.74rem;font-weight:800}.message-text{white-space:pre-wrap;margin:.45rem 0 0;line-height:1.55}.message-time{color:var(--ts-muted);margin-top:.85rem;font-size:.78rem;display:block}.message-actions{flex-wrap:wrap;gap:.5rem;margin-top:.85rem;display:flex}.message-action-button{color:var(--ts-accent-strong);background:#435ebe14;border:1px solid #435ebe33;border-radius:999px;padding:.45rem .8rem;font-weight:700}.message-action-button:disabled{opacity:.5}.message-cta{width:100%;color:var(--ts-accent-strong);justify-content:space-between;align-items:center;gap:.75rem;margin-top:.85rem;font-weight:800;text-decoration:none;display:inline-flex}.message-cta:hover,.message-cta:focus-visible{text-decoration:underline}.composer textarea{resize:vertical;min-height:104px}.composer-hint{color:var(--ts-muted);margin:0;font-size:.9rem}.auth-panel{min-height:100vh}.auth-panel .auth-copy{color:var(--ts-muted)}#auth #auth-left{padding:clamp(2rem,3vw,3.5rem)}#auth #auth-right{min-height:100vh;position:relative;overflow:hidden}#auth #auth-right:before{content:"";filter:blur(6px);background-image:url(/images/auth/login-hero-ai.png);background-position:50%;background-repeat:no-repeat;background-size:cover;position:absolute;inset:-1.5rem;transform:scale(1.04)}#auth #auth-right:after{content:"";background:linear-gradient(135deg,#0f172a0f,#0000 42%),linear-gradient(#0f172a14,#0f172a38);position:absolute;inset:0}.auth-brand-badge{color:#fff;background:linear-gradient(135deg,#435ebe,#25396f);border-radius:1rem;place-items:center;width:3rem;height:3rem;font-weight:800;display:grid}.auth-actions{justify-content:space-between;align-items:center;gap:1rem;margin-top:1rem;display:flex}.auth-locale-link{min-width:2.4rem;color:var(--ts-muted);border:1px solid #0f172a14;border-radius:999px;justify-content:center;align-items:center;padding:.45rem .8rem;font-weight:800;text-decoration:none;display:inline-flex}.auth-locale-link.is-active{color:#fff;background:#435ebe;border-color:#435ebe}@media (width<=992px){.chat-card{min-height:auto}.message-bubble{max-width:100%}}@media (width<=767px){.auth-actions{flex-direction:column;align-items:flex-start}#auth #auth-left{padding:2rem 1.25rem 2.5rem}}
