/* evalue.ai — shared sidebar (one source of truth across all screens) */
:root { --evnav-w: 240px; }
body.has-evnav { padding-left: var(--evnav-w); transition: padding-left .24s cubic-bezier(.22,1,.36,1); }
body.has-evnav.evnav-collapsed { --evnav-w: 64px; }

.evnav {
  position: fixed; top: 0; left: 0; height: 100vh; width: 240px; z-index: 200;
  box-sizing: border-box; padding: 24px 16px; overflow: hidden;
  display: flex; flex-direction: column;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: #F7F5F0; color: #1A1A18; border-right: 1px solid #E5E1D8;
  transition: width .24s cubic-bezier(.22,1,.36,1), box-shadow .24s ease, padding .24s ease;
}
[data-theme="dark"] .evnav { background: #1B1A17; color: #EDE8DC; border-color: #34312A; }
.evnav-collapsed .evnav { width: 64px; padding-left: 12px; padding-right: 12px; }
.evnav-collapsed .evnav:hover {
  width: 240px; padding-left: 16px; padding-right: 16px;
  box-shadow: 16px 0 48px -16px rgba(20,16,10,.28);
}

.evnav-brand { font-family: "Newsreader", Georgia, serif; font-size: 22px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.evnav-brand b { color: #C2683E; font-weight: 500; }
.evnav-ws { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-bottom: 20px; border-bottom: 1px solid #E5E1D8; white-space: nowrap; }
[data-theme="dark"] .evnav-ws { border-color: #34312A; }
.evnav-ws-mark { width: 18px; height: 18px; flex: 0 0 auto; border-radius: 5px; background: #1A1A18; color: #F7F5F0; font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
[data-theme="dark"] .evnav-ws-mark { background: #EDE8DC; color: #1B1A17; }
.evnav-ws-name { font-size: 12.5px; color: #6B6862; }

.evnav-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.evnav-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: #6B6862; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background-color .16s ease, color .16s ease; }
.evnav-item:hover { background: rgba(194,104,62,.09); color: #1A1A18; }
[data-theme="dark"] .evnav-item:hover { color: #EDE8DC; }
.evnav-item.active { background: #1A1A18; color: #F7F5F0; }
[data-theme="dark"] .evnav-item.active { background: #EDE8DC; color: #1B1A17; }
.evnav-glyph { width: 15px; height: 15px; flex: 0 0 auto; border: 1.5px solid currentColor; border-radius: 4px; opacity: .9; }
.g-pulse  { border-radius: 50%; }
.g-flow   { border-radius: 2px; transform: rotate(45deg); }
.g-loop   { border-radius: 50%; border-style: dashed; }
.g-signal { border-radius: 4px 4px 4px 0; }
.g-interv { border-radius: 50% 50% 50% 2px; }
.g-est    { border-radius: 50% 2px 50% 2px; }
.g-team   { border-radius: 50% 50% 4px 50%; }
.g-review { border-radius: 3px; }
.evnav-label { flex: 1; }
.evnav-badge { font-family: "IBM Plex Mono", monospace; font-size: 11px; padding: 1px 7px; border-radius: 20px; background: #E5E1D8; color: #6B6862; }
[data-theme="dark"] .evnav-badge { background: #34312A; color: #A39C8C; }
.evnav-item.active .evnav-badge { background: rgba(255,255,255,.16); color: inherit; }

.evnav-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid #E5E1D8; }
[data-theme="dark"] .evnav-foot { border-color: #34312A; }
.evnav-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; margin-bottom: 10px; border: 1px solid #E5E1D8; border-radius: 8px; background: transparent; color: #6B6862; font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; transition: color .16s, background-color .16s; }
[data-theme="dark"] .evnav-toggle { border-color: #34312A; }
.evnav-toggle:hover { color: #1A1A18; background: rgba(194,104,62,.09); }
[data-theme="dark"] .evnav-toggle:hover { color: #EDE8DC; }
.evnav-tgl-icon { position: relative; width: 14px; height: 14px; flex: 0 0 auto; border: 1.5px solid currentColor; border-radius: 3px; }
.evnav-tgl-icon::before { content: ""; position: absolute; top: 1px; bottom: 1px; left: 4px; border-left: 1.5px solid currentColor; }
.evnav-foot-label { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .06em; color: #6B6862; white-space: nowrap; padding: 0 6px; }

/* collapsed (not hovered): center glyphs, labels clip away */
.evnav-collapsed .evnav:not(:hover) .evnav-item { justify-content: center; gap: 0; padding-left: 0; padding-right: 0; }
.evnav-collapsed .evnav:not(:hover) .evnav-toggle { justify-content: center; gap: 0; }
