/* CALEO ITSM 2.3.0 - corporate identity and light/dark theme */
:root{
  color-scheme:light;
  --surface:#ffffff;
  --surface-2:#f7f9fc;
  --surface-3:#eef3f8;
  --topbar:#ffffffee;
  --input-bg:#ffffff;
  --panel-border:#e1e8f0;
  --text:#17345f;
  --muted:#6e7f96;
  --line:#e1e8f0;
  --bg:#f4f7fb;
  --blue:#103978;
  --cyan:#0db5e8;
  --cyan-dark:#0789b3;
  --navy:#061a3b;
  --navy-deep:#03122d;
  --danger:#c94657;
  --success:#20866b;
  --shadow:0 6px 24px rgba(11,35,70,.06);
}
html[data-theme="dark"]{
  color-scheme:dark;
  --surface:#0d203f;
  --surface-2:#102749;
  --surface-3:#152d4e;
  --topbar:#081b38f2;
  --input-bg:#0b1e3d;
  --panel-border:#243b5e;
  --text:#eef5ff;
  --muted:#9cafc7;
  --line:#263d5d;
  --bg:#071a36;
  --blue:#59a8ff;
  --cyan:#10b7e9;
  --cyan-dark:#7fdcff;
  --navy:#04152f;
  --navy-deep:#020e22;
  --danger:#ff8b9b;
  --success:#65d1ad;
  --shadow:0 8px 28px rgba(0,0,0,.18);
}
body{transition:background-color .16s ease,color .16s ease}
.panel,.metric-card,.service-card,.knowledge-card,.config-card,.auth-card,.caleo-dialog,.public-header,.form-panel,.filter-bar,.data-table,.ticket-card{background:var(--surface)!important;border-color:var(--panel-border)!important;color:var(--text)}
.topbar{background:var(--topbar)!important;border-color:var(--line)!important;backdrop-filter:blur(12px)}
.app-footer,.panel-header,.panel-footnote,.knowledge-card-footer,.article-status{border-color:var(--line)!important}
.panel-footnote,.data-table th,.overview-strip,.admin-intro,.notice,.cmdb-map,.kanban-column{background:var(--surface-2)!important;border-color:var(--line)!important;color:var(--muted)!important}
input,select,textarea{background:var(--input-bg)!important;color:var(--text)!important;border-color:var(--line)!important}
input::placeholder,textarea::placeholder{color:var(--muted)}
.button.secondary,.button.danger-outline{background:var(--surface)!important;color:var(--text);border-color:var(--line)}
.button.secondary:hover{background:var(--surface-2)!important}
.icon-button:hover{background:var(--surface-2)!important}
.breadcrumb strong,.dark-brand,.knowledge-card,.service-card,.config-card,.kanban-card{color:var(--text)!important}
.avatar{background:var(--surface-3);color:var(--blue)}
.secure-chip{background:color-mix(in srgb,var(--success) 10%,var(--surface));border-color:color-mix(in srgb,var(--success) 25%,var(--line));color:var(--success)}
.auth-form-pane{background:var(--bg)!important}
.auth-card{padding:34px;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.auth-visual{background:radial-gradient(ellipse at 80% 45%,#0db5e825,transparent 60%),linear-gradient(145deg,#071b3c,#04132d)!important}
.auth-corporate-logo{display:block;width:min(410px,78%);max-height:125px;object-fit:contain;object-position:left center}
.sidebar .brand{min-height:62px;padding:0 8px 8px}
.caleo-corporate-logo{display:block;width:185px;max-height:70px;object-fit:contain;object-position:left center}
.caleo-logo-light{display:block}.caleo-logo-dark{display:none}
html[data-theme="dark"] .caleo-logo-light{display:none}
html[data-theme="dark"] .caleo-logo-dark{display:block}
.sidebar .caleo-logo-light{display:none}
.sidebar .caleo-logo-dark{display:block}
.public-header .caleo-logo-dark{display:none}
html[data-theme="dark"] .public-header .caleo-logo-light{display:none}
html[data-theme="dark"] .public-header .caleo-logo-dark{display:block}
.theme-toggle{border:1px solid var(--line);background:var(--surface);color:var(--muted)}
.theme-toggle .theme-sun{display:none}
html[data-theme="dark"] .theme-toggle .theme-sun{display:block}
html[data-theme="dark"] .theme-toggle .theme-moon{display:none}
.theme-label{font-size:9px;white-space:nowrap}
.auth-theme-toggle{position:absolute;right:24px;top:22px;z-index:5}
html[data-theme="dark"] .kanban-card{background:var(--surface)!important;border-color:var(--line)!important}
html[data-theme="dark"] .bot-entry{background:var(--surface-2)!important;border-color:var(--line)!important}
html[data-theme="dark"] .bot-entry.human{background:#12325c!important}
html[data-theme="dark"] .invite-link,html[data-theme="dark"] .recovery-codes code{background:var(--surface-2)!important;border-color:var(--line)!important;color:var(--text)!important}
html[data-theme="dark"] .cmdb-node{fill:#102749;stroke:#4b6f9a}html[data-theme="dark"] .cmdb-title{fill:#eef5ff}html[data-theme="dark"] .cmdb-type{fill:#a9bbcf}
.brand-lockup{display:flex;align-items:center;min-height:55px}
.integration-230-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}.integration-230-card{padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.integration-230-card h3{margin-bottom:7px}.integration-230-card p{color:var(--muted);font-size:12px;line-height:1.7}.api-token{font-family:Consolas,monospace;background:var(--surface-2);border:1px solid var(--line);padding:14px;border-radius:9px;overflow-wrap:anywhere}.api-scope{display:inline-flex;padding:3px 7px;border-radius:20px;background:var(--surface-3);font-size:10px;margin:2px}.status-ok{color:var(--success);font-weight:650}.status-off{color:var(--muted)}
@media(max-width:760px){.caleo-corporate-logo{width:175px}.auth-corporate-logo{width:min(280px,85%)}.auth-theme-toggle{right:14px;top:14px}.theme-label{display:none}}

.tenant-brand{margin:8px 8px 0;padding:8px;border:1px solid #ffffff14;border-radius:9px;background:#ffffff08}.tenant-brand img{display:block;max-height:42px;max-width:175px;object-fit:contain}.auth-tenant-brand{margin-top:18px}.auth-tenant-brand img{max-height:54px;max-width:230px;object-fit:contain;object-position:left center}

/* 2.4.1: restore the original application lockup; corporate logo is reserved for exports. */
.legacy-brand{min-height:55px}.legacy-brand>span:last-child{display:block}.public-legacy-brand{color:var(--text)!important}.public-legacy-brand small{color:var(--muted)}
.asset-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.asset-photo{border:1px solid var(--line);border-radius:12px;padding:10px;background:var(--white)}.asset-photo img{width:100%;height:150px;object-fit:cover;border-radius:8px}.asset-photo p{margin:8px 0 0}.internal-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}.internal-kpi{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--white)}.internal-kpi strong{display:block;font-size:26px;color:var(--blue)}
