/* Cumi identity and the dense sidebar. Load order matters: later files override earlier ones. */
/* Cumi identity: local assets and the existing light/dark palette. */
.topbar .brand { min-width:0; gap:10px; }
.topbar .brand-copy { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 10px; border:0; padding:0; }
.cumi-wordmark, .brand strong.cumi-wordmark { font-weight:800; letter-spacing:-.035em; }
.brand strong.cumi-wordmark { font-size:24px; }
.brand small { color:var(--fg-muted); white-space:nowrap; }
.cumi-mark { display:block; flex:0 0 28px; width:28px; height:28px; }
.cumi-mark img { display:block; width:100%; height:100%; object-fit:contain; }
.cumi-mark .cumi-mark-dark { display:none; }
body.dark .cumi-mark-light { display:none; }
body.dark .cumi-mark-dark { display:block; }
/* CloudForce logo: its gray wordmark disappears on dark surfaces, so dark mode swaps in the light-text copy. */
.vendor-logo.vendor-logo-dark { display:none; }
body.dark .vendor-logo.vendor-logo-light { display:none; }
body.dark .vendor-logo.vendor-logo-dark { display:block; }
body.dark .nav-collapsed .vendor-logo.vendor-logo-dark { display:none; }
.login-page > *, .login-card { min-width:0; }
.login-story { gap:32px; }
.login-story .vendor-logo { width:142px; max-width:100%; }
.login-lockup { text-align:center; }
.login-lockup-row { display:flex; align-items:center; justify-content:center; gap:20px; margin-bottom:14px; }
.login-lockup-mark { display:block; width:104px; height:104px; margin-top:-12px; }
.login-lockup h1.cumi-wordmark { margin:0; }
.login-lockup .cumi-byline { font-weight:700; font-size:20px; margin:0 0 16px; }
.login-story h1.cumi-wordmark { font-size:84px; line-height:1; }
.cumi-byline { color:var(--fg-muted); margin:0 0 24px; }
.login-tagline { font-size:20px; line-height:1.7; text-wrap:balance; }
@media(max-width:850px) {
  .login-story { gap:24px; }
  .login-lockup-mark { width:68px; height:68px; margin-top:-8px; }
  .login-story h1.cumi-wordmark { font-size:56px; }
  .login-tagline { font-size:18px; }
}
@media(max-width:400px) {
  .topbar .brand-copy { flex-direction:column; gap:0; }
  .top-actions { gap:4px; }
  .login-story, .login-form-wrap { padding:24px; }
}

/* Sidebar: nav scrolls on its own; the account block stays fixed at the bottom-left. */
.layout .sidebar { display:flex; flex-direction:column; gap:0; overflow:hidden; padding:20px 12px 0; }
.layout .sidebar nav { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding-bottom:12px; }
.account-card { flex:none; display:flex; flex-direction:column; gap:12px; margin:0 -12px; padding:14px 16px 16px; border-top:1px solid var(--fg-line); background:var(--fg-surface); }
.account-company { display:block; width:112px; height:auto; }
.account-row { display:flex; align-items:center; gap:8px; min-width:0; }
.account-who { flex:1 1 auto; min-width:0; }
.account-who strong, .account-who small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-who small { color:var(--fg-muted); font-size:12px; margin-top:2px; }
.account-settings { flex:none; display:grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid var(--fg-line); border-radius:10px; background:transparent; color:var(--fg-text); cursor:pointer; }
.account-settings:hover, .account-settings:focus-visible { background:var(--fg-soft); }
.account-settings svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.nav-collapsed .account-company, .nav-collapsed .account-who { display:none; }
.nav-collapsed .account-row { justify-content:center; }
.settings-actions { display:flex; gap:8px; margin-top:16px; }
@media(max-width:700px) {
  .layout .sidebar { overflow:visible; padding:12px 12px 0; }
  .layout .sidebar nav { overflow:visible; }
}
/* Dense sidebar, chat-app style (ChatGPT / Claude): compact rows, small muted group labels, thin scrollbar. */
.layout .sidebar { padding:12px 8px 0; }
.layout .sidebar nav { scrollbar-width:thin; scrollbar-color:var(--fg-line) transparent; padding:0 2px 8px; }
.layout .sidebar nav button { margin:1px 0; padding:7px 10px; min-height:0; font-size:14px; line-height:1.35; border-radius:8px; }
.layout .sidebar nav button:hover { background:var(--fg-soft); }
.layout .sidebar nav button.active { background:var(--fg-soft); font-weight:600; }
.layout .sidebar .nav-group { margin-top:14px; }
.layout .sidebar .nav-group > summary { padding:4px 10px; font-size:12px; font-weight:600; letter-spacing:.02em; color:var(--fg-muted); list-style:none; }
.layout .sidebar .nav-group > summary::-webkit-details-marker { display:none; }
.layout .sidebar .nav-group > summary::after { content:'⌄'; margin-left:6px; font-size:11px; }
.layout .sidebar .nav-group:not([open]) > summary::after { content:'›'; }
.account-card { gap:8px; margin:0 -8px; padding:10px 12px 12px; }
.account-company { width:92px; }
.account-who strong { font-size:14px; }
.account-settings { width:32px; height:32px; border-radius:8px; }
.account-settings svg { width:16px; height:16px; }

