body{margin:0;background:#f6f8fb;font-family:Inter,Segoe UI,Arial,sans-serif;color:#17283d}.shell{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100vh}.sidebar{background:#14243b;color:#e9f1fa;padding:24px 16px}.brand{font-weight:800;letter-spacing:.4px;font-size:18px;margin:0 0 28px;padding-left:12px}.navlink{display:block;color:#c7d4e6;text-decoration:none;padding:12px 15px;margin:4px 0;border-radius:9px}.navlink.active,.navlink:hover{background:#29415e;color:white}.main{padding:30px 38px;max-width:1300px;width:100%;box-sizing:border-box}.page-title{font-size:27px;margin:0 0 6px;font-weight:750}.muted{color:#687b92}.panel{background:white;border:1px solid #e2e9f1;border-radius:13px;padding:20px;margin:18px 0;box-shadow:0 2px 8px #1a2b4810}.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat{background:white;border:1px solid #e2e9f1;border-radius:12px;padding:22px}.stat strong{display:block;font-size:32px;margin-top:12px}.form-row{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:12px 0}.form-row>div{min-width:170px;flex:1}.chatlog{min-height:250px;max-height:480px;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:14px;background:#f7f9fd;border-radius:10px}.bubble{padding:12px 14px;border-radius:12px;max-width:90%;white-space:pre-wrap}.bubble.user{background:#dbeafe;align-self:flex-end}.bubble.assistant{background:#fff;border:1px solid #dfe7f0;align-self:flex-start}.field-label{display:block;margin-bottom:6px;color:#51647c;font-size:13px}.error{padding:12px;background:#fff1f1;border-radius:8px;color:#9c2121;margin:10px 0}@media(max-width:800px){.shell{grid-template-columns:1fr}.sidebar{padding:12px}.main{padding:18px}.grid4{grid-template-columns:repeat(2,1fr)}}
.active-company{margin:-18px 0 20px;padding:8px 12px;border-radius:9px;background:#29415e;color:#fff;font-weight:600;font-size:14px}.company-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;max-width:1200px}.company-card{position:relative;background:#fff;border:1px solid #e3e9f1;border-radius:12px;padding:20px;cursor:pointer;min-height:130px;transition:box-shadow .15s,border-color .15s}.company-card:hover{box-shadow:0 4px 14px rgba(20,36,59,.12);border-color:#9fb4cf}.company-card.selected{border:2px solid #29415e}.company-card-name{font-size:18px;font-weight:700;margin:0 32px 16px 0}.company-card-stats{display:flex;gap:18px}.company-card-stats div{display:flex;flex-direction:column}.company-card-stats strong{font-size:22px}.company-card-stats span{font-size:12px;color:#6b7c93}.company-card-edit{position:absolute;top:12px;right:12px;border:none;background:transparent;cursor:pointer;color:#6b7c93;border-radius:6px;padding:4px}.company-card-edit:hover{background:#eef2f7;color:#14243b}.company-card-add{display:flex;align-items:center;justify-content:center;font-size:48px;color:#9fb4cf;border-style:dashed}
.active-company{display:flex;align-items:center;gap:7px;min-width:0}.active-company .active-company-dropdown,.active-company .rz-dropdown{min-width:0;flex:1;border:0;background:#29415e!important;color:#fff!important;box-shadow:none}.active-company .active-company-dropdown:hover,.active-company .active-company-dropdown:focus,.active-company .rz-dropdown:hover,.active-company .rz-dropdown:focus,.active-company .rz-dropdown.rz-state-focused{background:#355273!important;color:#fff!important}.active-company .active-company-dropdown .rz-dropdown-label,.active-company .active-company-dropdown .rz-dropdown-trigger,.active-company .rz-dropdown-label,.active-company .rz-dropdown-trigger{color:#fff!important}
.app-area{min-width:0;display:flex;flex-direction:column}
.app-header{height:68px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 28px;background:#fff;border-bottom:1px solid #e2e9f1;position:sticky;top:0;z-index:20}
.header-nav{height:100%;display:flex;align-items:center;gap:8px;min-width:0}
.header-link{height:40px;box-sizing:border-box;display:inline-flex;align-items:center;gap:8px;padding:0 13px;border:0;border-radius:9px;background:transparent;color:#344760;text-decoration:none;font:600 14px Inter,Segoe UI,Arial,sans-serif;white-space:nowrap;cursor:pointer}
.header-link:hover,.header-link.active,.header-dropdown[open]>.header-link{background:#edf3fa;color:#183b61}
.app-templates-dropdown .dropdown-panel{left:auto;right:0;width:300px;max-width:min(90vw,360px);color:#17283d}.app-templates-panel .app-template-add,.app-templates-panel .app-template-close{width:100%;justify-content:flex-start;color:#17283d!important}.app-templates-panel .profile-placeholder{color:#53657b}.app-template-row{display:flex;align-items:center;gap:4px}.app-template-open{flex:1;min-width:0;border:0;background:transparent;color:#17283d;font:inherit;text-align:left;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.app-template-row .rz-button{flex:none}.theme-dark .app-templates-panel .app-template-add,.theme-dark .app-templates-panel .app-template-close,.theme-dark .app-template-open{color:#e7edf5!important}.theme-dark .app-templates-panel .profile-placeholder{color:#a9bbd0}
.header-dropdown{position:relative}
.header-dropdown>summary{list-style:none}
.header-dropdown>summary::-webkit-details-marker{display:none}
.header-dropdown>summary .rz-icon{font-size:20px}
.dropdown-panel{position:absolute;top:calc(100% + 9px);left:0;min-width:230px;padding:8px;background:#fff;border:1px solid #e2e9f1;border-radius:11px;box-shadow:0 12px 32px #1a2b4826;z-index:30}
.studio-panel{max-height:calc(100vh - 100px);overflow-y:auto}
.dropdown-link{display:block;padding:10px 12px;border-radius:7px;color:#344760;text-decoration:none;font-size:14px;white-space:nowrap}
.dropdown-link:hover,.dropdown-link.active{background:#edf3fa;color:#183b61}
.dropdown-divider{height:1px;margin:6px 4px;background:#e7edf4}
.secondary-link{color:#687b92;font-size:13px}
.profile-dropdown{margin-left:auto;flex:none}
.profile-button{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;list-style:none;cursor:pointer;color:#344760}
.profile-button::-webkit-details-marker{display:none}
.profile-button:hover,.profile-dropdown[open] .profile-button{background:#edf3fa;color:#183b61}
.profile-button .rz-icon{font-size:25px}
.profile-panel{right:0;left:auto;width:250px;min-width:0;padding:16px}
.profile-title{font-weight:700;color:#20354e;margin-bottom:7px}
.profile-placeholder{font-size:13px;line-height:1.5;color:#687b92}
.main{max-width:none;flex:1;padding:10px 13px}
.main-navigation-tabs{max-width:100%;min-width:0}.main-navigation-tabs>.rz-tabview-nav{max-width:100%;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}.main-navigation-tabs>.rz-tabview-nav>li{flex:0 0 auto}
.sidebar .brand{margin-bottom:20px}
.sidebar-chat-link.rz-button{display:flex;margin:4px 0 8px;padding:12px 15px;border-radius:9px;text-align:left}
.agent-studio-modal-backdrop{position:fixed;inset:0;z-index:1100;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.55)}
.agent-studio-modal{width:min(1180px,96vw);height:min(900px,94vh);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--spotter-border,#dce4ee);border-radius:var(--rz-border-radius,8px);background:var(--spotter-surface,#fff);color:var(--spotter-text,#17283d);box-shadow:var(--rz-shadow-3,0 12px 36px rgba(0,0,0,.25))}
.agent-studio-modal-header{flex:none;padding:18px 22px;border-bottom:1px solid var(--spotter-border,#dce4ee)}
.agent-studio-modal-header h2{margin:0 0 4px;font-size:22px}
.agent-studio-modal-content{min-height:0;flex:1;overflow:auto;padding:16px 22px}
.agent-studio-modal-footer{flex:none;display:flex;justify-content:flex-end;gap:8px;padding:12px 22px;border-top:1px solid var(--spotter-border,#dce4ee)}
.admin-session-list{min-width:0;overflow:hidden}
.admin-session-grid-wrap{width:100%;max-width:100%;min-width:0;overflow-x:auto}
.admin-session-grid-wrap>.rz-data-grid{min-width:0}
.admin-session-dialog{height:100%;max-height:calc(90vh - 100px);min-height:0;display:flex;flex-direction:column;overflow:hidden}
.admin-session-dialog-content{min-height:0;flex:1;overflow:auto;padding:0 2px}
.admin-session-dialog-footer{flex:none;display:flex;justify-content:flex-end;padding:12px 0 0}
.admin-session-dialog .admin-session-detail-head{align-items:flex-start}
.data-studio-list-toolbar{display:flex;align-items:center;gap:10px;margin:14px 0}
.data-studio-config-panel{margin:10px 0}
.data-studio-config-panel h3{margin:0 0 6px}
.question-field-options{display:grid;gap:10px;min-width:0}
.permission-scopes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}
.permission-scope-editor{min-width:0;padding:12px;border:1px solid var(--spotter-border,#dce4ee);border-radius:var(--rz-border-radius,8px)}
.permission-scope-heading{display:flex;flex-direction:column;gap:4px;margin-bottom:8px}
.permission-scope-summary{display:block;overflow:hidden;color:var(--spotter-muted,#647b96);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.permission-scope-selectors{display:grid;gap:8px;margin-top:8px}
.field-permission-card{margin:12px 0;padding:12px;border:1px solid var(--spotter-border,#dce4ee);border-radius:var(--rz-border-radius,8px)}
.field-permission-card h4{margin:0 0 10px}
.dynamic-logic-designer{display:grid;gap:12px}
.dynamic-logic-rule{min-width:0;padding:12px;border:1px solid var(--spotter-border,#dce4ee);border-radius:var(--rz-border-radius,8px)}
.dynamic-logic-rule-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.dynamic-logic-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;align-items:end}
.dynamic-logic-options{grid-column:1/-1}
@media(max-width:900px){.shell{grid-template-columns:190px minmax(0,1fr)}.app-header{padding:0 14px}.header-nav{gap:2px}.header-link{padding:0 8px;font-size:13px}}
@media(max-width:680px){.shell{grid-template-columns:1fr}.sidebar{padding:10px 12px}.main{padding:6px 8px}.app-header{height:auto;min-height:60px;align-items:flex-start;padding:8px 10px}.header-nav{overflow-x:auto;flex:1}.header-link{padding:0 9px}.profile-dropdown{position:sticky;right:0;background:#fff}}
.chat-launcher{position:fixed;right:24px;bottom:24px;z-index:1000}
.chat-launcher-button{width:58px;height:58px;border:0;border-radius:50%;display:grid;place-items:center;background:#1769aa;color:#fff;box-shadow:0 5px 18px #14243b40;cursor:pointer}
.chat-launcher-button:hover{background:#125b94;transform:translateY(-1px)}.chat-launcher-button .rz-icon{font-size:26px}
.chat-widget{position:absolute;right:0;bottom:72px;width:min(390px,calc(100vw - 32px));height:min(600px,calc(100vh - 120px));min-height:340px;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #dfe7f0;border-radius:16px;box-shadow:0 16px 48px #14243b33}
.chat-widget-header{height:60px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:#142f50;color:#fff}.chat-widget-header>div{display:flex;flex-direction:column;gap:2px}.chat-widget-header small{font-size:12px;color:#c7d8ea}.chat-widget-close{width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer}.chat-widget-close:hover{background:#ffffff22}
.chat-widget-toolbar{display:flex;gap:6px;padding:8px;border-bottom:1px solid #e6edf4}.chat-widget-toolbar select{min-width:0;flex:1;border:1px solid #dbe4ee;border-radius:7px;padding:7px;color:#344760;background:#fff}.chat-widget-toolbar button{width:36px;border:0;border-radius:7px;background:#edf3fa;color:#344760;cursor:pointer}
.chat-widget-messages{flex:1;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:12px;background:#f7f9fc}.chat-widget-message{max-width:88%;padding:9px 11px;border-radius:12px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.chat-widget-message small{display:block;margin-bottom:4px;font-size:10px;opacity:.75}.chat-widget-message.from-user{align-self:flex-end;background:#dcecff;color:#173653}.chat-widget-message.from-assistant{align-self:flex-start;background:#fff;border:1px solid #e1e8f0;color:#26384b}.chat-widget-empty{margin:auto;text-align:center;padding:18px;color:#7b8da2;font-size:13px}.chat-widget-approval{padding:10px;border:1px solid #ead9a4;border-radius:9px;background:#fff9e8;font-size:12px}.chat-widget-actions{display:flex;gap:8px;margin-top:8px}.chat-widget-actions button{border:0;border-radius:6px;padding:6px 10px;background:#1769aa;color:#fff;cursor:pointer}.chat-widget-actions button+button{background:#e8edf3;color:#344760}.chat-widget-actions button:disabled{opacity:.55;cursor:default}
.chat-widget-compose{display:flex;align-items:end;gap:8px;padding:10px;border-top:1px solid #e6edf4}.chat-widget-compose textarea{flex:1;resize:none;border:1px solid #dbe4ee;border-radius:9px;padding:9px;font:inherit;font-size:13px}.chat-widget-compose button{width:38px;height:38px;flex:none;border:0;border-radius:50%;background:#1769aa;color:#fff;cursor:pointer}.chat-widget-compose button:disabled{background:#a9bbcb;cursor:default}.chat-widget-error{padding:6px 12px;color:#a72828;background:#fff1f1;font-size:12px}.chat-widget-busy{padding:0 12px 7px;color:#687b92;font-size:11px}
@media(max-width:600px){.chat-launcher{right:14px;bottom:14px}.chat-widget{right:0;bottom:68px;width:calc(100vw - 28px);height:min(72vh,600px)}}
.chat-launcher{width:58px;height:58px}
.chat-launcher-button{position:relative;z-index:2}
.chat-dismiss-layer{position:fixed;inset:0;z-index:0;background:transparent}
.chat-widget{z-index:1}
.chat-launcher:not(.is-open)>.chat-widget{display:none}
.chat-launcher.is-open>.chat-widget{display:flex}
.chat-launcher.is-open>.chat-dismiss-layer{position:fixed;inset:0;z-index:0;background:transparent;cursor:default}
.chat-widget-hint{font-size:11px;color:#c7d8ea;opacity:.8}
.chat-widget-body{min-height:0;flex:1;overflow:hidden;display:flex}
.chat-widget-body>.chat-studio-panel{min-height:0;flex:1;display:flex;flex-direction:column;margin:0;padding:10px;border:0;border-radius:0;box-shadow:none;overflow:hidden}
.chat-studio-compact .chat-studio-toolbar{flex:none;margin:0 0 8px;gap:8px;align-items:end}
.chat-studio-compact .chat-company-label{min-width:0;flex:1}.chat-company-label strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.chat-studio-compact .chat-studio-toolbar>div{min-width:0;flex:1}.chat-session-select{width:100%;height:36px;border:1px solid #dbe4ee;border-radius:7px;padding:6px;color:#344760;background:#fff}
.chat-studio-compact .chatlog-compact{min-height:0;max-height:none;flex:1;margin:0;padding:9px;overflow:auto}
.chat-studio-compose{display:flex;flex:none;gap:10px;margin:8px 0 0;align-items:stretch}.chat-studio-compose>textarea{display:block;min-width:0;flex:1;resize:vertical;border:1px solid #dbe4ee;border-radius:8px;padding:10px;font:inherit}.chat-studio-compact .chat-studio-compose{margin-top:8px}.chat-studio-compact .chat-studio-compose>div{min-width:0}
.chat-widget-body .rz-card{max-height:180px;overflow:auto}.chat-widget-body .rz-data-grid{font-size:11px}
.chat-studio-widget{min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden;gap:8px}
.chat-studio-widget-toolbar{display:flex;align-items:center;gap:8px;padding:0 0 8px;border-bottom:1px solid #e3eaf2}
.chat-studio-widget-company{min-width:95px;max-width:125px;display:flex;flex-direction:column;overflow:hidden}.chat-studio-widget-company span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:650}.chat-studio-widget-company small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#73869b;font-size:10px}
.chat-studio-widget-toolbar select{min-width:0;flex:1;height:36px;border:1px solid #dbe4ee;border-radius:7px;padding:5px;color:#344760;background:#fff;font-size:12px}
.chat-studio-widget-messages{min-height:0;flex:1;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:8px;background:#f7f9fc;border-radius:9px}
.chat-studio-widget-messages .bubble{max-width:92%;font-size:13px;padding:9px 11px}.chat-studio-widget-approval{flex:none;padding:9px;border:1px solid #ead9a4;border-radius:9px;background:#fff9e8;font-size:11px}.chat-studio-widget-approval>small{display:block;margin:4px 0;color:#687b92}.chat-studio-widget-approval>div{overflow-wrap:anywhere}
.chat-studio-widget-compose{display:flex;align-items:end;gap:8px}.chat-studio-widget-compose textarea{min-width:0;flex:1;resize:none;border:1px solid #dbe4ee;border-radius:9px;padding:9px;font:inherit;font-size:13px}.chat-studio-widget-status{color:#687b92;font-size:11px}
.studio-backdrop{position:fixed;inset:0;z-index:19;border:0;padding:0;background:transparent;cursor:default}
.app-header{z-index:20}
.chat-widget{width:min(1180px,calc(100vw - 48px));height:min(850px,calc(100vh - 110px))}
.chat-widget-body{min-height:0;flex:1;overflow:auto;display:block;padding:16px}
.chat-widget-body>.page-title{font-size:23px;margin:0 0 5px}
.chat-widget-body>.muted{margin:0 0 12px;font-size:13px}
.chat-widget-body>.rz-row{width:100%;margin:0}
.chat-widget-body .panel{margin:8px 0}
@media(max-width:760px){.chat-widget{width:calc(100vw - 28px);height:calc(100vh - 100px)}.chat-widget-body{padding:10px}.chat-widget-body .rz-column{flex:0 0 100%;max-width:100%}}

.app-root{min-height:100vh}.header-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex:none}.profile-user-name{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#344760;font-size:14px;font-weight:600}.appearance-toggle.rz-button{width:42px;height:42px;min-width:42px;border-radius:50%;padding:0}.profile-panel{display:flex;flex-direction:column;gap:7px}.profile-logout{width:100%;margin-top:4px}.profile-logout .rz-button-text{font-weight:600}
.login-page{min-height:calc(100vh - 130px);display:grid;place-items:center;padding:36px 20px;box-sizing:border-box}.login-card{width:min(100%,480px);padding:34px 38px;border:1px solid #e2e9f1;border-radius:18px;box-shadow:0 12px 36px #14243b14;text-align:left}.login-brand-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;margin-bottom:18px;background:#eaf2fb;color:#1769aa}.login-brand-mark .rz-icon{font-size:25px}.login-card h1{margin:0 0 5px;font-size:28px;font-weight:750}.login-subtitle{margin:0 0 24px;color:#687b92}.login-card .rz-login{width:100%;padding:0;background:transparent;box-shadow:none}.login-card .rz-login .rz-form{gap:10px}.login-card .rz-login .rz-form .rz-form-row{margin-bottom:8px}.login-card .rz-login .rz-login-buttons{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:10px}.login-card .rz-login .rz-login-buttons .rz-button{min-width:110px}.login-footer{display:flex;justify-content:flex-end;margin-top:14px;font-size:14px}.login-footer a{color:#1769aa;text-decoration:none}.login-footer a:hover{text-decoration:underline}.login-mfa-form{display:flex;flex-direction:column;gap:16px}.login-mfa-form .login-field{width:100%}.login-submit{align-self:flex-end;min-width:120px}

.app-root.theme-dark{color-scheme:dark;background:#111a28;color:#e7edf5}.theme-dark .app-area,.theme-dark .main{background:#111a28;color:#e7edf5}.theme-dark .app-header,.theme-dark .panel,.theme-dark .stat,.theme-dark .company-card,.theme-dark .login-card,.theme-dark .dropdown-panel{background:#1b2839;color:#e7edf5;border-color:#344459}.theme-dark .app-header{border-bottom-color:#344459}.theme-dark .header-link,.theme-dark .profile-user-name,.theme-dark .profile-button,.theme-dark .dropdown-link,.theme-dark .company-card-edit{color:#d9e4f1}.theme-dark .header-link:hover,.theme-dark .header-link.active,.theme-dark .header-dropdown[open]>.header-link,.theme-dark .dropdown-link:hover,.theme-dark .dropdown-link.active{background:#2a3b52;color:#fff}.theme-dark .dropdown-divider{background:#344459}.theme-dark .profile-title,.theme-dark .login-card h1{color:#f3f6fa}.theme-dark .profile-placeholder,.theme-dark .login-subtitle,.theme-dark .muted,.theme-dark .field-label{color:#a9bbd0}.theme-dark .company-card:hover{border-color:#617c9b}.theme-dark .chat-widget,.theme-dark .chat-widget-body .panel{background:#1b2839;color:#e7edf5;border-color:#344459}.theme-dark .chat-widget-toolbar,.theme-dark .chat-studio-widget-toolbar,.theme-dark .chat-studio-compose{border-color:#344459}.theme-dark .chat-widget-messages,.theme-dark .chat-studio-widget-messages,.theme-dark .chatlog{background:#121d2c;color:#e7edf5}.theme-dark .chat-widget-message.from-assistant,.theme-dark .bubble.assistant{background:#243449;color:#e7edf5;border-color:#3a4e65}.theme-dark .bubble.user{background:#284768;color:#eff7ff}.theme-dark .chat-widget-toolbar select,.theme-dark .chat-studio-widget-toolbar select,.theme-dark .chat-studio-compose textarea,.theme-dark .chat-session-select,.theme-dark textarea,.theme-dark input:not([type=checkbox]):not([type=radio]){background:#111a28;color:#e7edf5;border-color:#42546b}.theme-dark .login-brand-mark{background:#293e57;color:#9dccff}.theme-dark .login-footer a{color:#9dccff}.theme-dark .chat-widget-error,.theme-dark .error{background:#452c33;color:#ffd9dd}
@media(max-width:680px){.header-actions{gap:4px}.profile-user-name{max-width:100px;font-size:12px}.login-page{padding:22px 12px}.login-card{padding:26px 20px}}

/* Public institutional homepage */
.public-layout{min-height:100vh;background:#f5f8fc;color:#14243b;font-family:inherit}
.public-home{--ink:#14243b;--muted:#63758c;--blue:#1769aa;--line:#e4eaf2;--paper:#fff;max-width:1440px;margin:0 auto;padding:0 56px;box-sizing:border-box;overflow:hidden}
.public-header{height:86px;display:flex;align-items:center;gap:48px;border-bottom:1px solid var(--line)}
.public-brand{display:inline-flex;align-items:center;gap:11px;color:var(--ink);font-size:19px;font-weight:800;letter-spacing:.045em;text-decoration:none;white-space:nowrap}
.public-brand b{color:var(--blue)}.public-brand-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#e9f2fb;color:var(--blue)}.public-brand-icon .rz-icon{font-size:23px}
.public-header nav{display:flex;align-items:center;gap:32px;margin-left:auto}.public-header nav a,.public-footer>a:last-child{color:#4f627a;text-decoration:none;font-size:14px;font-weight:600}.public-header nav a:hover,.public-footer>a:last-child:hover{color:var(--blue)}
.public-header-login{display:inline-flex;align-items:center;gap:10px;padding:11px 17px;border-radius:9px;background:#142f4f;color:#fff;text-decoration:none;font-weight:650;font-size:14px;box-shadow:0 5px 14px #142f4f20}.public-header-login:hover,.hero-primary:hover{background:#1d4e7d;color:#fff}
.public-hero{display:grid;grid-template-columns:1.02fr .98fr;align-items:center;gap:38px;min-height:555px;padding:34px 0 52px}.hero-copy{position:relative;z-index:1;padding:20px 0}.hero-eyebrow{display:inline-flex;align-items:center;gap:9px;color:#316d9f;font-size:11px;font-weight:800;letter-spacing:.11em}.hero-eyebrow i{width:7px;height:7px;border-radius:50%;background:#42a5a0;box-shadow:0 0 0 4px #42a5a01a}.hero-copy h1{margin:22px 0 18px;color:#132b46;font-size:clamp(40px,4vw,58px);line-height:1.09;letter-spacing:-.045em;font-weight:780}.hero-copy h1 em,.control-copy h2 em{color:#2879b6;font-style:normal}.hero-copy>p,.section-heading>p,.control-copy>p,.access-copy>p{max-width:590px;margin:0;color:#667a91;font-size:17px;line-height:1.75}.hero-actions{display:flex;align-items:center;gap:24px;margin-top:29px}.hero-primary,.hero-secondary{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-weight:650}.hero-primary{padding:14px 18px;border-radius:9px;background:#1769aa;color:white;box-shadow:0 7px 18px #1769aa26}.hero-secondary{color:#34516f}.hero-secondary:hover{color:var(--blue)}.hero-proof{display:flex;gap:22px;margin-top:35px;color:#73849a;font-size:12px}.hero-proof span{display:inline-flex;align-items:center;gap:7px}.hero-proof .rz-icon{font-size:16px;color:#34877f}
.hero-visual{position:relative;display:flex;align-items:center;justify-content:center;min-height:430px}.hero-visual:before{position:absolute;content:"";width:400px;height:400px;border-radius:50%;background:radial-gradient(circle,#d9eaf8 0,#eaf3fb 45%,#f5f8fc 73%);filter:blur(2px)}.hero-visual img{position:relative;width:min(108%,640px);height:auto;object-fit:contain;filter:drop-shadow(0 24px 35px #28496920)}.visual-caption{position:absolute;right:10px;bottom:18px;display:flex;align-items:center;gap:9px;padding:12px 15px;border:1px solid #e2eaf2;border-radius:11px;background:#ffffffed;color:#3d5873;font-size:12px;font-weight:650;box-shadow:0 10px 30px #1c36521a}.visual-pulse{width:8px;height:8px;border-radius:50%;background:#46ad91;box-shadow:0 0 0 4px #46ad9125}
.platform-strip{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 28px;border:1px solid #e4eaf2;border-radius:14px;background:#fff;box-shadow:0 8px 28px #263f5b08}.platform-strip>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:230px}.platform-strip>div:first-child strong{font-size:15px;color:#203b58}.platform-strip>div:first-child span{font-size:12px;color:#8190a2}.strip-separator{height:40px;border-left:1px solid #e3eaf1}.strip-item{display:flex;align-items:center;gap:10px;color:#52677f;font-size:13px;font-weight:600}.strip-item .rz-icon{color:#377dab;font-size:19px}
.public-features{padding:112px 0 96px}.section-heading{text-align:center;max-width:700px;margin:0 auto 43px}.section-heading h2,.control-copy h2,.access-copy h2{margin:16px 0 12px;color:#172e49;font-size:38px;line-height:1.2;letter-spacing:-.035em}.section-heading>p{margin:0 auto;font-size:15px}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px}.feature-card{min-height:236px;padding:25px 22px;border:1px solid #e3eaf2;border-radius:13px;background:#fff;box-shadow:0 8px 24px #203b5810;transition:transform .2s,box-shadow .2s}.feature-card:hover{transform:translateY(-4px);box-shadow:0 16px 30px #203b5818}.feature-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:12px}.feature-icon .rz-icon{font-size:22px}.feature-icon.blue{background:#e7f2fc;color:#2e78b5}.feature-icon.violet{background:#f0edff;color:#7165be}.feature-icon.teal{background:#e4f5f2;color:#32877b}.feature-icon.amber{background:#fff3e1;color:#c18a35}.feature-card h3{margin:19px 0 9px;color:#213c59;font-size:17px}.feature-card p{min-height:64px;margin:0;color:#718198;font-size:13px;line-height:1.6}.feature-card>a{display:inline-flex;align-items:center;gap:7px;margin-top:16px;color:#2879b6;font-size:12px;font-weight:700;text-decoration:none}.feature-card>a .rz-icon{font-size:15px}
.control-section{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:72px;padding:74px 70px;border-radius:18px;background:#edf4fa}.control-art{position:relative;display:grid;place-items:center;min-height:330px}.control-orbit{position:absolute;border:1px solid #c9dceb;border-radius:50%}.orbit-one{width:250px;height:250px}.orbit-two{width:180px;height:180px;border-style:dashed}.control-center{z-index:1;display:grid;place-items:center;width:94px;height:94px;border:1px solid #d3e4f1;border-radius:26px;background:#fff;color:#2879b6;box-shadow:0 12px 32px #2446651a}.control-center .rz-icon{font-size:42px}.control-node{position:absolute;z-index:2;display:flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid #dfe8f0;border-radius:9px;background:#fff;color:#46617c;font-size:12px;font-weight:650;box-shadow:0 8px 22px #24466512}.control-node .rz-icon{font-size:16px;color:#388b91}.node-a{top:28px;left:calc(50% - 32px)}.node-b{right:0;top:148px}.node-c{bottom:22px;left:calc(50% - 45px)}.control-copy h2{font-size:36px}.control-copy>p{font-size:14px;line-height:1.8}.control-copy ul{display:grid;gap:13px;margin:24px 0 27px;padding:0;list-style:none;color:#415a74;font-size:13px}.control-copy li{display:flex;align-items:center;gap:9px}.control-copy li .rz-icon{color:#339889;font-size:18px}
.access-section{display:grid;grid-template-columns:1fr minmax(360px,470px);align-items:center;gap:90px;padding:110px 7%}.access-copy h2{font-size:36px}.access-copy>p{max-width:460px;font-size:15px}.access-note{display:flex;align-items:center;gap:10px;margin-top:27px;color:#728399;font-size:12px}.access-note .rz-icon{color:#43877d}.login-card-compact{width:100%;box-sizing:border-box;padding:28px 30px;border-radius:15px;background:#fff;box-shadow:0 16px 45px #172e4918}.login-card-compact h2{margin:0 0 6px;color:#172e49;font-size:24px}.login-card-compact .login-subtitle{font-size:13px;margin-bottom:20px}.login-card-compact .login-brand-mark{width:42px;height:42px;margin-bottom:13px}.login-card-compact .rz-login .rz-login-buttons .rz-button{min-height:42px}.login-card-compact .login-footer{margin-top:10px}.public-footer{display:flex;align-items:center;gap:24px;padding:23px 0 28px;border-top:1px solid var(--line);color:#7c8b9d;font-size:12px}.public-footer .public-brand{font-size:15px}.public-footer .public-brand-icon{width:31px;height:31px}.public-footer>span{margin-right:auto}.public-footer>a:last-child{display:flex;gap:7px;align-items:center;font-size:12px}
@media(max-width:1000px){.public-home{padding:0 28px}.public-hero{grid-template-columns:1fr 1fr;gap:10px;min-height:500px}.hero-copy h1{font-size:43px}.platform-strip{flex-wrap:wrap}.platform-strip>div:first-child{min-width:180px}.feature-grid{grid-template-columns:repeat(2,1fr)}.control-section{gap:35px;padding:55px 38px}.access-section{gap:40px;padding:85px 3%}}
@media(max-width:700px){.public-home{padding:0 17px}.public-header{height:70px;gap:12px}.public-header nav{display:none}.public-header-login{margin-left:auto;padding:10px 12px}.public-brand{font-size:16px}.public-brand-icon{width:34px;height:34px}.public-hero{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:48px 0 30px}.hero-copy{padding:0}.hero-copy h1{font-size:39px}.hero-copy>p{font-size:15px}.hero-actions{align-items:flex-start;flex-direction:column;gap:18px}.hero-proof{gap:12px;flex-wrap:wrap}.hero-visual{min-height:280px;margin-top:5px}.hero-visual:before{width:290px;height:290px}.hero-visual img{width:112%}.visual-caption{right:0;bottom:1px}.platform-strip{justify-content:flex-start;padding:19px}.platform-strip>div:first-child{width:100%}.strip-separator{display:none}.strip-item{width:calc(50% - 12px)}.public-features{padding:78px 0 66px}.section-heading h2,.control-copy h2,.access-copy h2{font-size:30px}.feature-grid{grid-template-columns:1fr}.feature-card{min-height:0}.feature-card p{min-height:0}.control-section{grid-template-columns:1fr;gap:20px;padding:35px 22px}.control-art{min-height:270px}.orbit-one{width:220px;height:220px}.orbit-two{width:160px;height:160px}.node-b{right:-4px}.access-section{grid-template-columns:1fr;gap:30px;padding:75px 0}.login-card-compact{padding:24px 20px}.public-footer{flex-wrap:wrap;gap:12px}.public-footer>span{order:3;width:100%}}
.public-home .login-card,.public-home .login-card-compact{background:#fff!important;color:#14243b!important;border:1px solid #e2e9f1!important;box-shadow:0 16px 45px #172e4918!important}.public-home .login-card h2{color:#172e49!important}.public-home .login-card .login-subtitle{color:#687b92!important}.public-home .login-card .rz-login,.public-home .login-card .rz-login label,.public-home .login-card .rz-login .rz-chkbox-label{color:#344760!important}.public-home .login-card .rz-login label{background:#fff!important}.public-home .login-card .rz-login input,.public-home .login-card .rz-login .rz-textbox,.public-home .login-card .rz-login .rz-inputtext,.public-home .login-card .rz-login .rz-form-field-content{background:#fff!important;color:#172e49!important;border-color:#cbd6e2!important}.public-home .login-card .rz-login .rz-chkbox-box{background:#fff!important;border-color:#9aabbd!important}.public-home .login-card .rz-login .rz-button{background:#1769aa!important;border-color:#1769aa!important;color:#fff!important}.public-home .login-card .login-footer a{color:#1769aa!important}
.settings-panel{min-width:245px}.settings-dropdown[open]>.header-link{background:#edf3fa;color:#183b5b}
.admin-session-layout{display:grid;gap:18px}.admin-session-list{padding:16px}.admin-session-toolbar{display:flex;gap:9px;align-items:center;margin-bottom:14px}.admin-session-toolbar .rz-textbox{flex:1}.admin-session-detail{padding:18px}.admin-session-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.admin-session-detail-head h2{margin:0 0 4px;font-size:22px}.admin-chat-log,.admin-ai-log{display:flex;flex-direction:column;gap:12px;max-height:70vh;overflow:auto;padding:14px 2px}.admin-chat-line,.admin-run-card,.admin-approval-card{border:1px solid #e1e8f0;border-radius:10px;padding:14px;background:#fff}.admin-chat-line.user{background:#eff6fc}.admin-chat-meta,.admin-run-card>header,.admin-approval-card>header{display:flex;align-items:center;gap:12px;margin-bottom:9px}.admin-chat-meta time,.admin-run-card time,.admin-approval-card time{margin-left:auto;color:#7b8b9c;font-size:12px}.admin-chat-content{white-space:pre-wrap;line-height:1.65}.admin-run-kind{padding:4px 7px;border-radius:5px;background:#eaf2fb;color:#2a6999;font-size:10px;font-weight:800;letter-spacing:.04em}.admin-tool-list{display:grid;gap:8px;margin-top:12px}.admin-tool-item{border:1px solid #e5ebf2;border-radius:8px;padding:10px 12px}.admin-tool-item summary{display:flex;align-items:center;gap:9px;cursor:pointer}.admin-tool-item summary span{color:#61758a;font-size:12px}.admin-tool-body{padding:12px 4px 2px}.admin-tool-body h4,.admin-approval-card h4{margin:9px 0 4px;font-size:12px;color:#536b84}.admin-tool-body pre,.admin-approval-card pre,.admin-chat-line pre{max-height:260px;overflow:auto;padding:12px;border-radius:7px;background:#f4f7fa;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.admin-approval-card{margin-bottom:10px}.small{font-size:12px;margin-top:10px}.access-table-panel{padding:15px}.access-role-layout{display:grid;grid-template-columns:minmax(250px,330px) 1fr;gap:18px;margin-top:15px}.access-role-list,.access-permission-panel{padding:17px}.access-role-button{display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:5px;margin:5px 0;padding:12px;border:1px solid #e1e8f0;border-radius:8px;background:#fff;color:#233c58;text-align:left;cursor:pointer}.access-role-button.selected{border-color:#4c75cf;background:#f2f5ff}.access-role-button span{color:#718198;font-size:12px}.access-permission-panel h2{margin:0 0 4px}.access-permission-panel h3{margin:21px 0 8px;color:#45617c;font-size:14px}.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:18px}.permission-grid label{display:flex;align-items:flex-start;gap:10px;padding:10px;border:1px solid #e4eaf1;border-radius:8px}.permission-grid label span{display:flex;flex-direction:column;gap:3px}.permission-grid label b{font-size:13px}.permission-grid label small{color:#718198;font-size:11px}
@media(max-width:850px){.access-role-layout{grid-template-columns:1fr}.permission-grid{grid-template-columns:1fr}.admin-session-toolbar{flex-wrap:wrap}.admin-session-detail-head{align-items:center}}
.file-manager-card { min-height: 68vh; }
.file-manager-name-column .file-manager-name-button { display:inline-flex; align-items:center; gap:.55rem; max-width:100%; padding:.35rem .5rem; border:0; border-radius:6px; background:transparent; color:#17283d; font:inherit; font-weight:500; text-align:left; text-transform:none; cursor:pointer; }
.file-manager-name-column .file-manager-name-button span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-manager-name-column .file-manager-name-button:hover { background:#edf3fa; color:#123f69; }
.theme-dark .file-manager-name-column .file-manager-name-button { color:#e7edf5; }
.theme-dark .file-manager-name-column .file-manager-name-button:hover { background:#2a3b52; color:#fff; }
.startup-loading { min-height:100vh; display:grid; place-items:center; box-sizing:border-box; padding:24px; background:#f5f8fc; color:#17283d; font-family:Inter,"Segoe UI",Arial,sans-serif; }
.startup-loading-card { display:flex; flex-direction:column; align-items:center; gap:14px; width:min(100%,360px); padding:34px 28px; border:1px solid #e2e9f1; border-radius:16px; background:#fff; box-shadow:0 12px 36px #14243b12; text-align:center; }
.startup-loading-card strong { font-size:19px; letter-spacing:.08em; }
.startup-loading-card>span:last-child { color:#687b92; font-size:14px; }
.startup-spinner { width:34px; height:34px; border:3px solid #dbe7f3; border-top-color:#1769aa; border-radius:50%; animation:boot-spin .8s linear infinite; }
@media(prefers-reduced-motion:reduce) { .startup-spinner { animation-duration:2s; } }
.file-manager-toolbar { display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; margin-bottom:1rem; }
.file-manager-columns { display:grid; grid-template-columns:minmax(220px,280px) minmax(0,1fr); gap:1.25rem; }
.file-manager-folders,.file-manager-content { min-width:0; }
.file-manager-folders { border-right:1px solid var(--rz-base-300); padding-right:1rem; }
.file-manager-folders h3 { margin:.25rem 0 1rem; font-size:1.05rem; }
.file-manager-breadcrumbs { display:flex; align-items:center; gap:.25rem; flex-wrap:wrap; margin-bottom:.75rem; }
.file-upload-button { position:relative; display:inline-flex; align-items:center; gap:.45rem; cursor:pointer; }
.file-upload-button input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.file-preview-dialog { height:100%; display:flex; flex-direction:column; align-items:center; }
.file-preview-frame { width:100%; height:min(72vh,760px); border:0; }
.file-preview-image { max-width:100%; max-height:72vh; object-fit:contain; }
.file-preview-toolbar,.file-preview-toolbar>div,.file-preview-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.file-preview-toolbar { width:100%; padding-bottom:12px; border-bottom:1px solid var(--rz-base-300,#d7dee8); }
.file-preview-text { box-sizing:border-box; width:100%; height:min(68vh,680px); margin:12px 0 0; padding:18px; overflow:auto; border:1px solid var(--rz-base-300,#d7dee8); border-radius:8px; background:#fff; color:#17283d; white-space:pre-wrap; overflow-wrap:anywhere; font:14px/1.6 Consolas,"Cascadia Code",monospace; }
.markdown-preview { font-family:inherit; }
.file-preview-footer { width:100%; justify-content:flex-end; margin-top:12px; }
.theme-dark .file-preview-text { background:#121d2b; color:#e7edf5; border-color:#42546b; }
.form-row .rz-speechtotextbutton { flex:0 0 auto; }
@media(max-width:800px) { .file-manager-columns { grid-template-columns:1fr; } .file-manager-folders { border-right:0; border-bottom:1px solid var(--rz-base-300); padding:0 0 1rem; } }
.chat-attachment-picker { position: relative; display: inline-flex; align-items: center; }
.chat-attachment-picker input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.chat-attachment-picker label { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border-radius: 4px; cursor: pointer; margin: 0; }
.chat-attachment-picker label:hover { filter: brightness(.96); }
.chat-compose-actions{display:flex;flex:none;flex-direction:column;align-items:center;justify-content:space-between;gap:8px;min-width:82px}
.chat-compose-top-actions{display:flex;align-self:flex-end;align-items:center;gap:6px}
.chat-attach-menu{position:relative;align-self:flex-end}
.chat-attach-menu>summary{list-style:none}
.chat-attach-menu>summary::-webkit-details-marker{display:none}
.chat-attach-toggle{display:grid;place-items:center;width:40px;height:38px;border:0;border-radius:7px;background:#edf3fa;color:#244563;cursor:pointer}
.chat-attach-toggle:hover{background:#e2ebf5}
.chat-speaker-toggle.rz-button{width:40px;height:38px;min-width:40px;padding:0;border-radius:7px}
.chat-speaker-toggle[aria-pressed=true]{background:#4f46e5;color:#fff}
.chat-attach-options{position:absolute;right:0;bottom:calc(100% + 6px);z-index:30;min-width:150px;padding:5px;border:1px solid #dce5ef;border-radius:8px;background:#fff;box-shadow:0 8px 24px #14243b24}
.chat-attach-options input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.chat-attach-options label{display:flex;align-items:center;gap:8px;padding:9px 11px;border-radius:5px;color:#243b54;cursor:pointer;white-space:nowrap}
.chat-attach-options label:hover{background:#edf3fa}
.chat-compose-send{display:flex;align-items:center;gap:7px}
.theme-dark .chat-attach-toggle{background:#293e57;color:#e7edf5}
.theme-dark .chat-speaker-toggle[aria-pressed=false]{background:#293e57;color:#e7edf5}
.theme-dark .chat-attach-options{background:#1b2839;border-color:#42546b}
.theme-dark .chat-attach-options label{color:#e7edf5}
.theme-dark .chat-attach-options label:hover{background:#2a3b52}
.chat-pending-attachments, .chat-message-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chat-attachment-chip, .chat-message-attachments > span { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 8px; border: 1px solid var(--rz-base-300, #d7dee8); border-radius: 16px; font-size: .82rem; overflow-wrap: anywhere; }
.chat-attachment-chip .material-icons, .chat-message-attachments .material-icons { font-size: 16px; }
.chat-attachment-chip button { border: 0; background: transparent; color: #b42318; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.chat-image-attachment { flex: 0 1 100%; max-width: min(100%, 700px); margin: 4px 0; padding: 8px; border: 1px solid var(--rz-base-300, #d7dee8); border-radius: 12px; background: var(--rz-base-background-color, #fff); }
.chat-image-attachment img { display: block; max-width: 100%; max-height: 520px; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.chat-image-attachment figcaption { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--rz-text-secondary-color, #64748b); font-size: .8rem; overflow-wrap: anywhere; }
.chat-image-attachment figcaption a { margin-left: auto; white-space: nowrap; }
.documentation-layout{display:grid;grid-template-columns:minmax(230px,280px) minmax(0,1fr);gap:1rem;align-items:start;min-height:calc(100vh - 190px)}
.documentation-navigation,.documentation-content{background:var(--rz-base-background-color,#fff);border:1px solid #dce5ef;border-radius:14px;box-shadow:0 3px 12px rgba(18,42,68,.06)}
.documentation-navigation{position:sticky;top:1rem;padding:.75rem;max-height:calc(100vh - 130px);overflow-y:auto}
.documentation-nav-heading{display:flex;align-items:center;gap:.55rem;padding:.65rem .7rem .85rem;color:#193a5e;border-bottom:1px solid #e4ebf3;margin-bottom:.35rem}
.documentation-group{margin:.15rem 0}
.documentation-group-toggle,.documentation-topic{width:100%;border:0;background:transparent;text-align:left;color:#244664;cursor:pointer;border-radius:8px}
.documentation-group-toggle{display:flex;align-items:center;gap:.45rem;padding:.55rem .5rem;font-weight:650}
.documentation-group-toggle:hover,.documentation-topic:hover{background:#edf3fa}
.documentation-group-items{padding:0 0 .35rem 1.15rem}
.documentation-topic{display:block;padding:.48rem .65rem;font-size:.93rem}
.documentation-topic.selected{background:#eaf1fb;color:#3152d7;font-weight:650}
.documentation-content{padding:clamp(1rem,3vw,2.25rem);min-height:calc(100vh - 190px);overflow:hidden}
.documentation-breadcrumb{display:flex;align-items:center;gap:.35rem;color:#6b8199;font-size:.88rem;padding-bottom:1rem;margin-bottom:1.35rem;border-bottom:1px solid #e4ebf3}
.documentation-markdown{max-width:980px;color:#23384e;line-height:1.7}
.documentation-markdown h1,.documentation-markdown h2,.documentation-markdown h3{color:#173653;line-height:1.3;margin:1.5rem 0 .65rem}
.documentation-markdown h1{font-size:2rem;margin-top:.25rem}.documentation-markdown h2{font-size:1.45rem}.documentation-markdown h3{font-size:1.12rem}
.documentation-markdown p,.documentation-markdown ul,.documentation-markdown ol{margin:.55rem 0 1rem}
.documentation-markdown li{margin:.3rem 0}.documentation-markdown a{color:#3152d7}
.documentation-markdown blockquote{border-left:4px solid #4b59d8;background:#f3f6fb;padding:.75rem 1rem;margin:1rem 0;border-radius:0 8px 8px 0}
.documentation-markdown code{background:#f0f3f7;border-radius:4px;padding:.1rem .3rem;color:#8b3154}
.documentation-markdown pre{overflow-x:auto;background:#17283c;color:#f4f7fb;border-radius:9px;padding:1rem}
.documentation-markdown pre code{background:transparent;color:inherit;padding:0}
.documentation-markdown table{width:100%;border-collapse:collapse;margin:1rem 0}.documentation-markdown th,.documentation-markdown td{border:1px solid #dce5ef;padding:.55rem;text-align:left}
.documentation-footer{border-top:1px solid #e4ebf3;margin-top:2rem;padding-top:1rem;color:#70849a;font-size:.88rem}
.documentation-empty{min-height:50vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#70849a;gap:.45rem}.documentation-empty>.rz-icon{font-size:2rem;color:#4777ab}.documentation-empty h2{color:#173653;margin:.2rem}
.documentation-message{padding:.5rem}
.theme-dark .documentation-navigation,.theme-dark .documentation-content{background:#1b2839;color:#e7edf5;border-color:#344459}.theme-dark .documentation-nav-heading,.theme-dark .documentation-markdown h1,.theme-dark .documentation-markdown h2,.theme-dark .documentation-markdown h3,.theme-dark .documentation-empty h2{color:#e7edf5}.theme-dark .documentation-group-toggle,.theme-dark .documentation-topic,.theme-dark .documentation-markdown{color:#d1dce8}.theme-dark .documentation-group-toggle:hover,.theme-dark .documentation-topic:hover,.theme-dark .documentation-topic.selected{background:#2a3b52;color:#fff}.theme-dark .documentation-breadcrumb,.theme-dark .documentation-footer{border-color:#344459;color:#a9bbd0}.theme-dark .documentation-markdown blockquote{background:#243449}.theme-dark .documentation-markdown code{background:#29394e;color:#ffd0df}.theme-dark .documentation-markdown th,.theme-dark .documentation-markdown td{border-color:#42546b}
@media(max-width:800px){.documentation-layout{grid-template-columns:1fr}.documentation-navigation{position:static;max-height:38vh}.documentation-content{min-height:55vh}}
.collaboration-header-actions{display:flex;align-items:center;gap:8px}.collaboration-header-link{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;color:#233c58;text-decoration:none}.collaboration-header-link:hover,.collaboration-header-link.active{background:#edf3fa}.collaboration-header-link .rzi{font-size:21px}.collaboration-badge{position:absolute;right:-4px;top:-3px;z-index:2;min-width:19px;height:19px;padding:0 4px;font-size:11px;font-weight:700;color:#fff!important;background:#e53935!important;border-radius:10px;box-shadow:0 0 0 2px var(--rz-base-background-color,#fff)}.collab-toolbar{display:flex;gap:8px;align-items:center;margin-bottom:12px;flex-wrap:wrap}.collab-layout{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:14px;min-height:440px}.collab-list{display:flex;flex-direction:column;gap:6px;max-height:68vh;overflow:auto}.collab-list-row{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:8px}.collab-list-item{display:flex;flex-direction:column;gap:5px;min-width:0;max-width:100%;text-align:left;padding:12px;border:1px solid #dce5ef;border-radius:8px;background:transparent;color:inherit;cursor:pointer}.collab-list-item.selected{background:#eaf1fb;border-color:#88a9d0}.collab-list-item small,.collab-dates{color:#718198;font-size:12px}.message-title-line{display:flex;align-items:center;gap:6px;min-width:0}.message-title-line b{overflow-wrap:anywhere}.message-read-check{color:#2e9b58;font-size:18px;flex:none}.message-select-all{display:flex;align-items:center;gap:8px;padding:4px 2px 8px;font-size:13px;color:var(--rz-text-secondary-color)}.collab-editor{display:flex;flex-direction:column;gap:10px;min-width:0}.collab-editor textarea{min-height:300px}.message-html-view{width:100%;height:44vh;border:1px solid #dce5ef;border-radius:8px;background:#fff}.notification-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;border-bottom:1px solid #e2e9f1}.notification-row a{display:flex;flex-direction:column;gap:4px;color:inherit;text-decoration:none;flex:1}.notification-row.unread{background:#eff6ff}.theme-dark .collaboration-header-link{color:#d9e4f1}.theme-dark .collaboration-header-link:hover,.theme-dark .collaboration-header-link.active,.theme-dark .collab-list-item.selected,.theme-dark .notification-row.unread{background:#293e57}.theme-dark .collab-list-item,.theme-dark .message-html-view{background:#1b2839;color:#e7edf5;border-color:#344459}@media(max-width:760px){.collab-layout{grid-template-columns:1fr}.collab-list{max-height:220px}}

.notification-open{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;gap:4px;border:0;background:transparent;color:inherit;text-align:left;padding:0;cursor:pointer}.notification-actions{display:flex;align-items:center;gap:8px}.theme-dark .notification-open{color:inherit}

.chat-session-heading{display:flex;align-items:center;justify-content:space-between;margin:12px 0 8px;color:#233c58}.chat-session-tabs{margin-top:4px}.chat-session-list-actions{display:flex;justify-content:flex-end;min-height:34px;padding:2px 0}.chat-session-list{width:100%;height:370px;overflow-y:auto;border:1px solid #d7dee8;border-radius:7px}.chat-session-row{display:flex;align-items:center;gap:3px;min-height:42px;padding:4px 5px 4px 10px;border-bottom:1px solid #e7edf4;transition:background-color .12s ease}.chat-session-row:last-child{border-bottom:0}.chat-session-row:hover,.chat-session-row:focus-within{background:#f0f4fa}.chat-session-row.selected{background:#e8eaf6;color:#3f51b5}.chat-session-open{flex:1;min-width:0;overflow:hidden;padding:6px 0;border:0;background:transparent;color:inherit;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.chat-session-actions{display:flex;align-items:center;gap:0;opacity:0;visibility:hidden;transition:opacity .12s ease}.chat-session-row:hover .chat-session-actions,.chat-session-row:focus-within .chat-session-actions{opacity:1;visibility:visible}.chat-session-actions .rz-button,.chat-session-actions .rz-button .rzi{color:#233c58!important}.chat-session-actions .rz-button:hover{background:#e1e9f2!important}.chat-session-empty{padding:14px;color:#718198;text-align:center;font-size:13px}.chat-conversation-heading{display:flex;align-items:center;gap:12px;min-height:36px;margin-bottom:8px}.chat-conversation-heading strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-rename-dialog{display:flex;flex-direction:column;gap:9px}.chat-rename-actions{display:flex;justify-content:flex-end;gap:8px}.theme-dark .chat-session-heading{color:#e7edf5}.theme-dark .chat-session-list{border-color:#344459}.theme-dark .chat-session-row{border-color:#344459}.theme-dark .chat-session-row:hover,.theme-dark .chat-session-row:focus-within{background:#243449}.theme-dark .chat-session-row.selected{background:#293e57;color:#fff}.theme-dark .chat-session-actions .rz-button,.theme-dark .chat-session-actions .rz-button .rzi{color:#e7edf5!important}.theme-dark .chat-session-actions .rz-button:hover{background:#344459!important}.theme-dark .chat-session-empty{color:#a9bbd0}
@media(max-width:700px){.chat-session-list{height:230px}.chat-session-actions{opacity:1;visibility:visible}.chat-conversation-heading{align-items:flex-start;flex-direction:column;gap:2px}}
.chat-session-sidebar{padding:14px 14px 0;overflow:hidden}.chat-company-heading{margin-bottom:12px;font-weight:700;color:#233c58}.chat-company-heading span{font-weight:500;color:#687b92}.chat-session-tabs .rz-tabview-panel{padding:0!important}.chat-session-list{width:calc(100% + 28px);margin:0 -14px;border-left:0;border-right:0;border-bottom:0;border-radius:0}.chat-session-list-actions{padding:0 0 4px}.theme-dark .chat-company-heading{color:#e7edf5}.theme-dark .chat-company-heading span{color:#a9bbd0}
.chat-session-sidebar{overflow:visible}.chat-session-sidebar .chat-session-list{box-sizing:border-box;width:calc(100% + 30px);margin-left:-15px;margin-right:-15px;overflow-x:hidden}.chat-session-row{box-sizing:border-box;width:100%;min-width:0;overflow:hidden}.chat-session-open{white-space:normal;overflow-wrap:anywhere;word-break:normal;text-overflow:clip}.chat-session-actions{flex:0 0 auto}.chat-session-actions .rz-button{min-width:28px;padding:.3rem}.chat-new-conversation{display:flex!important;width:100%;justify-content:center;margin:-10px 0 18px}
.chat-response-actions{display:flex;justify-content:flex-end;gap:2px;margin:-5px -6px 4px}.chat-response-actions .rz-button,.chat-response-actions .rz-button .rzi{min-width:28px;width:28px;height:28px;padding:3px;color:#26384e!important;opacity:1!important}.chat-response-actions .rz-button:hover{background:#e5edf7!important}.theme-dark .chat-response-actions .rz-button,.theme-dark .chat-response-actions .rz-button .rzi{color:#e7edf5!important}.theme-dark .chat-response-actions .rz-button:hover{background:#344a64!important}.messages-toolbar .rz-tabview-nav{flex:1}.message-composer .rz-html-editor{max-width:100%}
.chat-user-actions{display:flex;justify-content:flex-end;gap:2px;margin:-5px -6px 4px}.chat-user-actions .rz-button,.chat-user-actions .rz-button .rzi{min-width:28px;width:28px;height:28px;padding:3px;color:#26384e!important;opacity:1!important}.chat-user-actions .rz-button:hover{background:#e5edf7!important}.theme-dark .chat-user-actions .rz-button,.theme-dark .chat-user-actions .rz-button .rzi{color:#e7edf5!important}.theme-dark .chat-user-actions .rz-button:hover{background:#344a64!important}.chat-session-tabs .rz-tabview-nav li a[title]{min-width:42px;justify-content:center}
.tasks-layout{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:1rem;align-items:start}.tasks-sidebar{padding:.8rem;min-height:65vh}.tasks-sidebar-title,.tasks-context,.tasks-project,.tasks-category,.tasks-categories-heading{display:flex;align-items:center;gap:.35rem}.tasks-sidebar-title,.tasks-context{justify-content:space-between}.tasks-sidebar-title{margin-bottom:.65rem}.tasks-project,.tasks-category{padding:.25rem;border-radius:.4rem}.tasks-project.selected,.tasks-category.selected{background:var(--rz-primary-lighter)}.tasks-project-select,.tasks-category>button{flex:1;min-width:0;display:flex;align-items:center;gap:.5rem;text-align:left;border:0;background:none;color:var(--rz-text-color);padding:.5rem;cursor:pointer}.tasks-project-select span,.tasks-category>button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tasks-inline-actions{display:flex;opacity:.55}.tasks-project:hover .tasks-inline-actions,.tasks-category:hover .tasks-inline-actions,.tasks-project:focus-within .tasks-inline-actions,.tasks-category:focus-within .tasks-inline-actions{opacity:1}.tasks-categories-heading{justify-content:space-between;padding:.25rem .5rem .25rem 1.25rem;color:var(--rz-text-secondary-color);font-size:.85rem}.tasks-category{margin-left:1rem}.tasks-main{min-width:0;display:grid;gap:1rem}.tasks-filters{padding:1rem}.tasks-context{margin-bottom:1rem}.tasks-context h2{margin:.1rem 0}.tasks-context small{color:var(--rz-text-secondary-color)}.tasks-filter-row{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(140px,1fr) minmax(140px,1fr) auto;gap:.75rem;align-items:end}.tasks-filter-row label{display:grid;gap:.3rem;color:var(--rz-text-secondary-color);font-size:.85rem}.tasks-view-tabs{background:transparent}.tasks-list{padding:1rem}.tasks-table-wrap{overflow:auto}.tasks-table{width:100%;border-collapse:collapse}.tasks-table th,.tasks-table td{border-bottom:1px solid var(--rz-base-300);padding:.65rem;text-align:left;vertical-align:top}.tasks-description{margin-top:.25rem;color:var(--rz-text-secondary-color);max-width:42rem;max-height:5rem;overflow:hidden}.tasks-row-actions{white-space:nowrap}.task-status{display:inline-block;border-radius:999px;padding:.2rem .65rem;font-size:.8rem;font-weight:600;background:var(--rz-base-200)}.status-nuovo{color:#075985;background:#e0f2fe}.status-in-lavorazione{color:#854d0e;background:#fef9c3}.status-test{color:#6b21a8;background:#f3e8ff}.status-sospeso{color:#9a3412;background:#ffedd5}.status-chiuso{color:#166534;background:#dcfce7}.tasks-kanban{display:grid;grid-template-columns:repeat(5,minmax(190px,1fr));gap:.7rem;overflow:auto;padding:.8rem 0}.tasks-kanban-column{min-height:340px;background:var(--rz-base-100);border:1px solid var(--rz-base-300);border-radius:.6rem;padding:.65rem}.tasks-kanban-column>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.6rem}.tasks-kanban-card{background:var(--rz-card-background-color);border:1px solid var(--rz-base-300);border-radius:.55rem;padding:.7rem;margin-bottom:.55rem;box-shadow:var(--rz-shadow-1);cursor:grab}.tasks-card-title{font-weight:600}.tasks-card-date{font-size:.8rem;color:var(--rz-text-secondary-color);margin:.4rem 0}.tasks-card-footer{display:flex;align-items:center;justify-content:space-between;gap:.3rem;font-size:.75rem;color:var(--rz-text-secondary-color)}.tasks-empty{padding:1rem;color:var(--rz-text-secondary-color)}.tasks-empty-state{text-align:center;padding:3rem 1rem;color:var(--rz-text-secondary-color)}.tasks-empty-state .rzi{font-size:2rem}.tasks-empty-state h3{color:var(--rz-text-color)}@media(max-width:850px){.tasks-layout{grid-template-columns:1fr}.tasks-sidebar{min-height:auto}.tasks-filter-row{grid-template-columns:1fr 1fr}.tasks-kanban{grid-template-columns:repeat(5,220px)}}
.personal-calendar-page{display:grid;gap:1rem}.calendar-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.calendar-heading-actions{display:flex;align-items:center;gap:.5rem}.calendar-heading h1{margin:0}.calendar-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);gap:1rem;align-items:start}.calendar-sidebar,.calendar-main{background:var(--rz-base-background-color,#fff);border:1px solid var(--rz-border-color,#dce4ee);border-radius:14px;box-shadow:0 4px 14px rgba(21,45,75,.06)}.calendar-sidebar{padding:1rem;min-height:320px}.calendar-sidebar-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:.8rem}.calendar-sidebar-title h3{font-size:1.05rem;margin:0}.calendar-toggle{display:flex;align-items:center;gap:.55rem;padding:.55rem .25rem;cursor:pointer;border-bottom:1px solid var(--rz-border-color,#dce4ee)}.calendar-toggle input{accent-color:var(--event-color)}.calendar-color{width:12px;height:12px;border-radius:50%;flex:none}.calendar-name{flex:1;overflow-wrap:anywhere}.calendar-action,.agenda-delete{border:0;background:transparent;color:var(--rz-text-color);cursor:pointer;padding:.3rem;border-radius:5px;display:inline-flex;align-items:center;justify-content:center}.calendar-action:hover,.agenda-delete:hover{background:var(--rz-base-200);color:var(--rz-primary)}.calendar-action.calendar-delete:hover{color:var(--rz-danger)}.calendar-side-help{color:var(--rz-text-secondary-color);font-size:.8rem;line-height:1.4;margin-top:1rem}.calendar-main{padding:1rem;min-width:0}.calendar-agenda-nav{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.calendar-agenda-nav h2{font-size:1.2rem;margin:0 0 0 .6rem;text-transform:capitalize}.calendar-scheduler{min-width:0;min-height:700px}.scheduler-appointment{display:grid;gap:.1rem;border-left:3px solid var(--event-color);padding-left:.35rem;overflow:hidden}.scheduler-appointment strong,.scheduler-appointment small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scheduler-appointment small{font-size:.72rem;opacity:.85}.calendar-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.calendar-date-nav{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.calendar-date-nav h2{font-size:1.2rem;margin:0 0 0 .6rem;text-transform:capitalize}.calendar-views{display:flex;border:1px solid var(--rz-border-color);border-radius:8px;overflow:hidden}.calendar-view-button{border:0;border-right:1px solid var(--rz-border-color);background:transparent;color:var(--rz-text-color);padding:.55rem .75rem;cursor:pointer}.calendar-view-button:last-child{border-right:0}.calendar-view-button.active{background:var(--rz-primary);color:white}.agenda-list{display:grid}.agenda-day{display:grid;grid-template-columns:140px minmax(0,1fr);gap:1rem;padding:.8rem .25rem;border-bottom:1px solid var(--rz-border-color)}.agenda-date{display:grid;align-content:start;gap:.2rem;text-transform:capitalize}.agenda-date span{color:var(--rz-text-secondary-color);font-size:.9rem}.agenda-events{display:grid;gap:.5rem}.agenda-event{display:flex;align-items:flex-start;border-left:4px solid var(--event-color);border-radius:6px;background:color-mix(in srgb,var(--event-color) 10%,transparent);padding:.6rem .7rem;gap:.5rem}.agenda-event-main{flex:1;display:grid;gap:.2rem;text-align:left;border:0;background:transparent;color:var(--rz-text-color);cursor:pointer}.agenda-event-main span,.agenda-event-main small{color:var(--rz-text-secondary-color)}.calendar-empty{padding:2rem;text-align:center;color:var(--rz-text-secondary-color)}.calendar-scheduler .rz-scheduler{min-height:680px}@media(max-width:850px){.calendar-workspace{grid-template-columns:1fr}.calendar-sidebar{min-height:0}.calendar-side-help{margin-bottom:0}.agenda-day{grid-template-columns:90px minmax(0,1fr)}}@media(max-width:560px){.calendar-heading{display:grid}.calendar-heading-actions{width:100%;flex-wrap:wrap}.calendar-toolbar{align-items:flex-start}.calendar-views{width:100%}.calendar-view-button{flex:1;padding:.45rem .2rem;font-size:.78rem}}
.theme-dark .content-kanban-column{background:#172437;border-color:#344459;color:#e7edf5}
.theme-dark .content-kanban-dropzone{background:transparent}
.theme-dark .content-kanban-dropzone .rz-dropzone-item{background:transparent;border-color:transparent;color:#e7edf5}
.theme-dark .content-kanban-card{background:#1b2839;border-color:#42546b;color:#e7edf5;box-shadow:0 2px 8px #0003}
.theme-dark .content-kanban-card-title{color:#f3f6fa}
.theme-dark .content-kanban-card .muted{color:#b8c7d9}

/* Global dark palette, including Radzen portals rendered outside .app-root. */
body:has(.app-root.theme-dark){
 --spotter-bg:#111a28;--spotter-surface:#1b2839;--spotter-surface-raised:#223249;
 --spotter-surface-hover:#2a3b52;--spotter-border:#3b4d63;--spotter-text:#e7edf5;
 --spotter-muted:#a9bbd0;--spotter-input:#121d2c;color-scheme:dark;
 background:var(--spotter-bg);color:var(--spotter-text)
}
.app-root.theme-dark{background:var(--spotter-bg);color:var(--spotter-text)}
.app-root.theme-dark :is(.panel,.stat,.company-card,.dropdown-panel,.documentation-navigation,.documentation-content,.calendar-sidebar,.calendar-main,.tasks-sidebar,.tasks-filters,.tasks-list,.collab-list-item,.notification-row,.builder-section,.builder-preview,.or-usage-card,.content-record-dialog){background-color:var(--spotter-surface);color:var(--spotter-text);border-color:var(--spotter-border)}
.company-card-heading{display:flex;align-items:center;gap:12px;margin:0 32px 16px 0;min-width:0}.company-card-heading .company-card-name{min-width:0;overflow-wrap:anywhere;margin:0}.company-card-logo{flex:none;width:52px;height:52px;object-fit:contain;border:1px solid #e3e9f1;border-radius:8px;padding:4px;background:#fff}
.company-editor-dialog .rz-dialog-content{height:calc(90vh - 58px);max-height:calc(90vh - 58px);display:flex;flex-direction:column;overflow:hidden;padding:0}.company-editor-shell{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}.company-editor-scroll{flex:1;min-height:0;overflow:auto;padding:16px 20px}.company-editor-footer{display:flex;flex:none;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid var(--spotter-border);background:var(--spotter-surface)}
.system-settings-card{max-width:1100px;margin-bottom:18px}.system-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px 18px;max-width:950px}.system-settings-checkbox{display:flex;align-items:center;gap:8px;margin-top:12px}.system-settings-card>label[for^="clear"]{margin:0 0 0 8px}
.knowledge-page-heading,.knowledge-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.knowledge-page-heading h1,.knowledge-section-heading h2{margin-bottom:4px}.knowledge-page-heading p,.knowledge-section-heading p{margin-bottom:0}.knowledge-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0}.knowledge-summary-box{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--spotter-border);border-radius:10px;background:var(--spotter-surface);min-width:0}.knowledge-summary-box span{font-size:.85rem;color:var(--spotter-muted)}.knowledge-summary-box strong{font-size:1.5rem;line-height:1.2}.knowledge-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.knowledge-documents-card{margin-bottom:16px}.knowledge-sources{margin-top:14px}.knowledge-sources summary{cursor:pointer;font-weight:600;margin-bottom:8px}.knowledge-modal-backdrop{position:fixed;inset:0;z-index:1500;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.58)}.knowledge-modal{display:flex;flex-direction:column;width:min(1050px,96vw);max-height:92vh;overflow:hidden;border:1px solid var(--spotter-border);border-radius:12px;background:var(--spotter-surface);color:var(--spotter-text);box-shadow:0 18px 60px rgba(0,0,0,.35)}.knowledge-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid var(--spotter-border)}.knowledge-modal-header h2{margin:0 0 4px}.knowledge-modal-header p{margin:0}.knowledge-modal-body{flex:1;min-height:0;overflow:auto;padding:18px 22px}.knowledge-modal-footer{display:flex;justify-content:flex-end;padding:12px 22px;border-top:1px solid var(--spotter-border)}.knowledge-modal-section+.knowledge-modal-section{margin-top:22px;padding-top:18px;border-top:1px solid var(--spotter-border)}.knowledge-modal-section h3{margin-top:0}.knowledge-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.knowledge-inline-action{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}.knowledge-inline-action>*{max-width:100%}@media(max-width:900px){.knowledge-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.knowledge-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.knowledge-modal-backdrop{padding:8px}.knowledge-modal{width:100%;max-height:96vh}.knowledge-modal-header,.knowledge-modal-body{padding-left:14px;padding-right:14px}}
.agent-delegation-policy{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}.agent-delegation-policy-section{min-width:0;padding:14px;border:1px solid var(--spotter-border,#dce4ee);border-radius:8px}.agent-delegation-policy-section>div{display:flex;align-items:center;gap:8px}.agent-delegation-policy-section p{margin:8px 0}.agent-delegation-policy-section small{display:block;margin-top:8px}.agent-map-modal-backdrop{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.58)}.agent-map-modal{display:flex;flex-direction:column;width:min(1500px,97vw);height:min(960px,95vh);min-height:400px;overflow:hidden;border:1px solid var(--spotter-border,#dce4ee);border-radius:12px;background:var(--spotter-surface,#fff);color:var(--spotter-text,#17283d);box-shadow:0 18px 60px rgba(0,0,0,.35)}.agent-map-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 22px;border-bottom:1px solid var(--spotter-border,#dce4ee)}.agent-map-header h2{margin:0 0 4px}.agent-map-header p{margin:0}.agent-map-content{flex:1;min-height:0;overflow:auto;padding:20px}.agent-map-footer{display:flex;justify-content:flex-end;padding:12px 20px;border-top:1px solid var(--spotter-border,#dce4ee)}.agent-map-loading{display:flex;align-items:center;gap:12px;justify-content:center;padding:3rem}.agent-map-tree{display:flex;flex-direction:column;align-items:center;gap:0;min-width:800px}.agent-map-root{display:flex;flex-direction:column;align-items:center;width:min(660px,90%);margin-bottom:24px}.agent-map-level{position:relative;width:100%;padding-top:24px;margin-top:0}.agent-map-level:before{content:"";position:absolute;top:0;left:50%;height:24px;border-left:2px solid var(--spotter-border,#dce4ee)}.agent-map-level-label{margin-bottom:12px;text-align:center;color:var(--spotter-muted,#647b96);font-size:.85rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.agent-map-grid{display:grid;grid-template-columns:repeat(4,minmax(210px,1fr));gap:14px;align-items:stretch}.agent-map-card{min-width:0;padding:14px;border:1px solid var(--spotter-border,#dce4ee);border-top:3px solid var(--rz-primary,#536dfe);border-radius:9px;background:var(--spotter-surface,#fff);color:var(--spotter-text,#17283d);box-shadow:0 2px 8px rgba(20,36,59,.08)}.agent-map-card-coordinator{width:100%;border-top-color:var(--rz-primary,#536dfe)}.agent-map-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.agent-map-card-heading h3{margin:0;font-size:1.05rem}.agent-map-key{font-size:.78rem;color:var(--spotter-muted,#647b96)}.agent-map-card-actions{display:flex;align-items:center;gap:6px}.agent-map-description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:10px 0;font-size:.9rem}.agent-map-models{display:flex;flex-direction:column;gap:4px;padding:9px 0;border-top:1px solid var(--spotter-border,#dce4ee);font-size:.82rem;overflow-wrap:anywhere}.agent-map-capabilities,.agent-map-orchestration{padding-top:9px;border-top:1px solid var(--spotter-border,#dce4ee);font-size:.83rem}.agent-map-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.agent-map-chips span,.agent-map-flags span{padding:3px 7px;border-radius:999px;background:var(--spotter-surface-raised,#f4f7fb);font-size:.75rem}.agent-map-empty{color:var(--spotter-muted,#647b96)}.agent-map-flags{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}.agent-map-limits,.agent-map-rules,.agent-map-parent{margin-top:5px;color:var(--spotter-muted,#647b96);font-size:.77rem;overflow-wrap:anywhere}@media(max-width:1050px){.agent-map-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}.agent-map-tree{min-width:0}}@media(max-width:680px){.agent-delegation-policy{grid-template-columns:1fr}.agent-map-modal-backdrop{padding:6px}.agent-map-modal{width:100%;height:96vh}.agent-map-content{padding:10px}.agent-map-grid{grid-template-columns:1fr}.agent-map-root{width:100%}}
.app-root.theme-dark :is(h1,h2,h3,h4,h5,label,th,strong,.page-title){color:var(--spotter-text)}
.app-root.theme-dark :is(.muted,small,.field-label,.tasks-context small,.documentation-footer,.collab-dates){color:var(--spotter-muted)}
.app-root.theme-dark :is(input:not([type=checkbox]):not([type=radio]),textarea,select,.rz-textbox,.rz-inputtext,.rz-dropdown,.rz-multiselect,.rz-numeric,.rz-datepicker,.rz-autocomplete){background-color:var(--spotter-input);color:var(--spotter-text);border-color:var(--spotter-border)}
.app-root.theme-dark :is(input,textarea,select)::placeholder{color:#91a4bb;opacity:1}
.app-root.theme-dark :is(table,.rz-grid-table,.rz-data-grid,.rz-datatable,.rz-tabview-panel,.rz-paginator,.rz-scheduler,.rz-scheduler-header,.rz-scheduler-view,.rz-calendar,.rz-popup,.rz-dropdown-panel,.rz-multiselect-panel,.rz-datepicker-calendar,.rz-dialog,.rz-dialog-content,.rz-dialog-titlebar,.rz-notification,.rz-tooltip){background-color:var(--spotter-surface);color:var(--spotter-text);border-color:var(--spotter-border)}
.app-root.theme-dark :is(th,td,.rz-grid-table th,.rz-grid-table td){border-color:var(--spotter-border)}
.app-root.theme-dark :is(tr:nth-child(even),.rz-data-row:hover,.rz-state-highlight,.rz-tabview-nav li.rz-tabview-selected){background-color:var(--spotter-surface-raised);color:var(--spotter-text)}
.app-root.theme-dark :is(button:not(.rz-button),.calendar-action,.agenda-delete,.content-record-action){color:var(--spotter-text)}
.app-root.theme-dark :is(button:not(.rz-button),.calendar-action,.agenda-delete,.content-record-action):hover{background-color:var(--spotter-surface-hover)}
body:has(.app-root.theme-dark) :is(.rz-dialog,.rz-dialog-content,.rz-dialog-titlebar,.rz-popup,.rz-dropdown-panel,.rz-multiselect-panel,.rz-datepicker-calendar,.rz-autocomplete-panel,.rz-notification,.rz-tooltip){background-color:var(--spotter-surface)!important;color:var(--spotter-text)!important;border-color:var(--spotter-border)!important}
body:has(.app-root.theme-dark) :is(.rz-dialog,.rz-dialog-content,.rz-dialog-titlebar,.rz-popup,.rz-dropdown-panel,.rz-multiselect-panel,.rz-datepicker-calendar,.rz-autocomplete-panel,.rz-notification,.rz-tooltip) :is(h1,h2,h3,h4,h5,label,span,p,div,th,td){color:var(--spotter-text)}
body:has(.app-root.theme-dark) :is(.rz-dialog,.rz-dialog-content,.rz-popup,.rz-dropdown-panel,.rz-multiselect-panel,.rz-datepicker-calendar,.rz-autocomplete-panel) :is(input:not([type=checkbox]):not([type=radio]),textarea,select,.rz-inputtext,.rz-dropdown,.rz-multiselect,.rz-numeric,.rz-datepicker){background-color:var(--spotter-input);color:var(--spotter-text);border-color:var(--spotter-border)}
body:has(.app-root.theme-dark) :is(.rz-dialog,.rz-popup,.rz-dropdown-panel,.rz-multiselect-panel,.rz-datepicker-calendar,.rz-autocomplete-panel) :is(th,td,.rz-grid-table th,.rz-grid-table td){border-color:var(--spotter-border)}

/* Keep native and Radzen data tables on the same blue-gray surface as the app. */
body:has(.app-root.theme-dark) :is(table,.rz-grid-table,.rz-data-grid,.rz-datatable){background-color:var(--spotter-surface)!important;color:var(--spotter-text)!important;border-color:var(--spotter-border)!important}
body:has(.app-root.theme-dark) :is(table,.rz-grid-table) thead,
body:has(.app-root.theme-dark) :is(table,.rz-grid-table) th{background-color:var(--spotter-surface-raised)!important;color:var(--spotter-text)!important;border-color:var(--spotter-border)!important}
body:has(.app-root.theme-dark) :is(table,.rz-grid-table) tbody,
body:has(.app-root.theme-dark) :is(table,.rz-grid-table) tr,
body:has(.app-root.theme-dark) :is(table,.rz-grid-table) td{background-color:var(--spotter-surface)!important;color:var(--spotter-text)!important;border-color:var(--spotter-border)!important}
body:has(.app-root.theme-dark) :is(table,.rz-grid-table) tbody tr:nth-child(even) td{background-color:var(--spotter-surface-raised)!important}
body:has(.app-root.theme-dark) :is(table,.rz-grid-table) tbody tr:hover td{background-color:var(--spotter-surface-hover)!important}

/* File Manager surfaces, tree and navigation controls follow the application palette. */
.app-root.theme-dark .file-manager-card{background:var(--spotter-surface)!important;color:var(--spotter-text)!important;border:1px solid var(--spotter-border)!important;box-shadow:0 4px 16px #0002}
.app-root.theme-dark .file-manager-folders{border-color:var(--spotter-border)}
.app-root.theme-dark .file-manager-card .rz-tree{background:transparent;color:var(--spotter-text)}
.app-root.theme-dark .file-manager-card .rz-treenode-content{color:var(--spotter-text);border-radius:6px}
.app-root.theme-dark .file-manager-card .rz-treenode-content:hover{background:var(--spotter-surface-hover);color:var(--spotter-text)}
.app-root.theme-dark .file-manager-card .rz-treenode-content.rz-state-highlight,
.app-root.theme-dark .file-manager-card .rz-treenode-content.rz-state-focused{background:var(--spotter-surface-raised);color:var(--spotter-text)}
.app-root.theme-dark .file-manager-breadcrumbs .rz-button,
.app-root.theme-dark .file-manager-toolbar .rz-button:not(.rz-primary),
.app-root.theme-dark .file-manager-toolbar .rz-fileupload-choose{background:var(--spotter-surface-raised);border-color:var(--spotter-border);color:var(--spotter-text)}
.app-root.theme-dark .file-manager-breadcrumbs .rz-button:hover,
.app-root.theme-dark .file-manager-toolbar .rz-button:not(.rz-primary):hover,
.app-root.theme-dark .file-manager-toolbar .rz-fileupload-choose:hover{background:var(--spotter-surface-hover);color:var(--spotter-text)}

/* Record dialogs keep actions fixed and scroll only the field list. */
.content-record-dialog-content{display:flex!important;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden!important;max-height:none!important}
.content-record-dialog-content .content-record-dialog{height:100%;min-height:0;overflow:hidden}
.content-record-dialog-content .content-record-fields{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden}

/* Keep the active-company selector readable and prevent accidental text highlighting. */
.active-company{box-sizing:border-box;width:100%;min-width:0}
.active-company .active-company-dropdown{box-sizing:border-box;flex:1 1 auto;width:auto;min-width:0;user-select:none;-webkit-user-select:none}
.active-company .active-company-dropdown .rz-dropdown-label{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;user-select:none;-webkit-user-select:none}
.active-company ::selection{background:transparent;color:inherit}
.active-company .active-company-dropdown:focus-visible{outline:2px solid #9dccff;outline-offset:2px}

/* Shared Content Type editor modal (Data Studio and default templates). */
.content-type-editor-backdrop{position:fixed;inset:0;z-index:var(--rz-dialog-zindex,1000);display:flex;align-items:center;justify-content:center;padding:clamp(12px,2vw,28px);background:rgba(8,18,32,.58)}
.content-type-editor-modal{box-sizing:border-box;width:min(1440px,96vw);height:min(94vh,1100px);max-height:calc(100dvh - 2rem);display:flex;flex-direction:column;overflow:hidden;min-height:0;margin:0;border-radius:12px;padding:0}
.content-type-editor-header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 20px 12px}
.content-type-editor-body{flex:1 1 auto;min-height:0;overflow:auto;padding:0 20px 16px}
.content-type-editor-footer{flex:none;display:flex;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid var(--rz-base-300,#dbe3ed);background:var(--rz-base-background-color,#fff)}
.company-logo-editor-preview{display:flex;align-items:center;gap:12px;margin:0 0 12px}
.company-logo-editor-preview img{width:auto;height:auto;max-width:220px;max-height:100px;object-fit:contain;border:1px solid var(--spotter-border);border-radius:8px;padding:8px;background:var(--spotter-surface)}
.company-logo-editor-controls{align-items:end;margin-bottom:20px}
.company-logo-editor-controls input[type=file]{max-width:100%;padding:8px;border:1px solid var(--spotter-border);border-radius:6px;background:var(--spotter-input);color:var(--spotter-text)}
.theme-dark .content-type-editor-backdrop{background:rgba(0,0,0,.68)}
@media(max-width:700px){.content-type-editor-backdrop{padding:8px}.content-type-editor-modal{width:100%;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.content-type-editor-header{padding:14px 14px 10px}.content-type-editor-body{padding:0 14px 12px}.content-type-editor-footer{padding:10px 14px}}

.shell{height:100vh;min-height:100vh;align-items:stretch}.sidebar{position:sticky;top:0;align-self:start;height:100vh;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain}.app-area{height:100vh;min-height:0;overflow-y:auto}
@media(max-width:680px){.shell{height:auto;min-height:100vh}.sidebar{position:static;height:auto;max-height:45vh;overflow-y:auto}.app-area{height:auto;min-height:0;overflow:visible}}
.contacts-toolbar{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}.contacts-toolbar-spacer{flex:1}.contacts-row-actions{display:flex;justify-content:flex-end;gap:.3rem}.contacts-page .panel{overflow:hidden}.contacts-page .rz-data-grid{max-width:100%}
.contact-editor-dialog .rz-dialog-content{padding:0!important;overflow:hidden!important}.contact-editor-content,.contact-groups-dialog{height:100%;max-height:100%;overflow:auto;padding:1.25rem;box-sizing:border-box}.contact-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.contact-form-wide{grid-column:1/-1}.contact-multi-section{margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--rz-base-300);display:grid;gap:.6rem}.contact-multi-section h3{font-size:1rem;margin:0}.contact-multi-row,.contact-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.45rem}.contact-group-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.4rem}.contact-check{display:flex;align-items:flex-start;gap:.55rem;padding:.55rem;border:1px solid var(--rz-base-300);border-radius:var(--rz-border-radius);cursor:pointer}.contact-check span{display:grid;gap:.15rem}.contact-check small,.contact-visibility{color:var(--rz-text-secondary-color)}.contact-editor-actions{display:flex;justify-content:flex-end;gap:.5rem;position:sticky;bottom:-1.25rem;padding:1rem 0 .25rem;margin-top:1.5rem;background:var(--rz-dialog-background-color);z-index:2}.contact-group-add{display:flex;align-items:end}.contact-groups-dialog .rz-data-grid{margin-top:1rem}
