/* ================================================================
   USENO — Shared Design System v2
   Two-sided career intelligence platform
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800;900&family=Geist+Mono:wght@400;500;600&display=swap');

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Main area (light theme) ── */
  --page-bg:       #F0F1F4;
  --surface:       #ffffff;
  --navy:          #1E3A5F;
  --navy-hover:    #2a4d7a;
  --navy-label:    rgba(30, 58, 95, 0.72);
  --navy-muted:    rgba(30, 58, 95, 0.6);
  --navy-disabled: rgba(30, 58, 95, 0.42);
  --navy-border:   rgba(30, 58, 95, 0.18);
  --navy-border-strong: rgba(30, 58, 95, 0.28);
  --stage-interview: #1A7F5A;
  --stage-applied:   #1155BB;

  /* ── Sidebar (dark theme) ── */
  --sidebar-bg:              #141F2E;
  --sidebar-text-active:     #fff;
  --sidebar-text-inactive:   rgba(255, 255, 255, 0.32);
  --sidebar-text-muted:      rgba(255, 255, 255, 0.4);
  --sidebar-divider:         rgba(255, 255, 255, 0.1);
  --sidebar-nav:             rgba(255, 255, 255, 0.62);
  --sidebar-nav-hover:       rgba(255, 255, 255, 0.8);
  --sidebar-nav-active:      #fff;
  --sidebar-nav-count:       rgba(255, 255, 255, 0.48);
  --sidebar-nav-count-active:rgba(255, 255, 255, 0.65);
  --sidebar-count-inactive:  rgba(255, 255, 255, 0.32);
  --sidebar-count-active:    rgba(255, 255, 255, 0.5);
  --sidebar-clay:            #B0533A;

  --border:        var(--navy-border);
  --border-strong: var(--navy-border-strong);
  --text:          #1a1d2e;
  --muted:         var(--navy-label);
  --subtle:        var(--navy-muted);
  --lime:          #1155BB;
  --lime-soft:     rgba(17, 85, 187, 0.08);
  --lime-border:   rgba(17, 85, 187, 0.22);
  --lime-text:     #1155BB;
  --lime-accent:   #1155BB;
  --navy-mid:      #2a4d7a;
  --green:         #1A7F5A;
  --amber:         #d9730d;
  --red:           #e03e3e;
  --blue:          #1155BB;
  --hover-bg:      rgba(30, 58, 95, 0.06);

  --f:             'Inter', system-ui, sans-serif;
  --sidebar-f:     'Geist', system-ui, sans-serif;
  --sidebar-mono:  'Geist Mono', ui-monospace, monospace;
  --sidebar-w:     240px;
  --radius:        6px;
  --radius-lg:     8px;
}

/* Off-canvas drawers (filter sidebar, detail panels, the nav drawer) are
   positioned via transform:translateX(100%/-100%) while closed. In their
   closed state that box still sits outside the viewport, and some engines
   count it toward the root scroller's content size, producing a horizontal
   scrollbar to "reach" content that's never actually meant to be visible.
   Nothing in this layout relies on horizontal scroll at the page level, so
   this is a safe, blanket guard rather than chasing each drawer piecemeal. */
html, body { overflow-x: hidden; }
html { font-size: 16px; background: var(--page-bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body { font-family: var(--f); min-height: 100vh; display: flex; background: var(--page-bg); }
a { color: inherit; text-decoration: none; }
button { font-family: var(--f); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--f); }

/* ── SIDEBAR ── */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: none;
  display: flex; flex-direction: column;
  z-index: 50; overflow: hidden;
  transition: width .18s ease;
  font-family: var(--sidebar-f);
}

.sidebar-top,
.sidebar-nav,
.sidebar-user-footer,
.workspace-switcher,
.workspace-card {
  position: relative;
  z-index: 1;
}
.sidebar-resize-handle {
  position: absolute; top: 0; right: -5px; bottom: 0; width: 10px;
  cursor: default; z-index: 60;
  background: transparent;
}
/* Blue blob accent */
.sidebar-resize-handle::after {
  content: '';
  position: absolute; top: 0; left: 4px; bottom: 0; width: 3px;
  background: var(--blue);
  border-radius: 2px;
  opacity: 0.18;
  transition: opacity .18s ease, width .18s ease, box-shadow .18s ease;
}
.sidebar-resize-handle:hover::after,
.sidebar-resize-handle.dragging::after {
  opacity: 0.75;
  width: 4px;
  box-shadow: 0 0 10px rgba(37,99,235,0.5), 0 0 24px rgba(37,99,235,0.25);
}
.sidebar-resize-handle.dragging::after {
  opacity: 1;
  width: 4px;
  box-shadow: 0 0 14px rgba(37,99,235,0.7), 0 0 32px rgba(37,99,235,0.35);
}
/* Grip pill hidden — replaced by the blob */
.sidebar-resize-handle::before { content: none; }
/* Resize tooltip */
.sidebar-resize-tip {
  position: fixed;
  left: 0;   /* set via JS */
  top: 0;    /* set via JS — follows cursor Y */
  transform: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.06);
  padding: 7px 11px;
  font-size: 12px;
  font-family: var(--f);
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: opacity .15s ease, top .06s ease;
  line-height: 1.6;
}
.sidebar-resize-tip strong { color: var(--text); font-weight: 600; }
.sidebar-resize-tip.visible { opacity: 1; }
body.sidebar-resizing { cursor: col-resize; user-select: none; }

.sidebar-top {
  padding: 0;
  flex-shrink: 0;
}

/* Brand label (replaces logo image) */
.sidebar-brand {
  padding: 26px 24px 20px;
  flex-shrink: 0;
}
.sidebar-wordmark-link {
  display: inline-flex; align-items: center;
  width: fit-content; text-decoration: none;
}
.sidebar-wordmark-text {
  font-family: var(--sidebar-f);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sidebar-text-muted);
}
.sidebar-logo-img {
  width: 36px; height: 36px; border-radius: 8px; display: block;
  opacity: 0.9; transition: opacity .15s;
}
.sidebar-wordmark-link:hover .sidebar-logo-img { opacity: 1; }

/* Student user footer — accordion toggle */
.sidebar-user-footer {
  padding: 10px 12px 14px;
  border-top: 1px solid var(--sidebar-divider);
  flex-shrink: 0;
}
.sidebar-user-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none;
  border: none;
  border-radius: 8px; cursor: pointer;
  padding: 8px 10px;
  transition: background .12s;
  text-align: left; color: inherit;
}
.sidebar-user-btn:hover { background: rgba(255,255,255,0.07); }
.sidebar-user-footer.open .sidebar-user-btn {
  background: rgba(255,255,255,0.06);
  border-radius: 0 0 8px 8px;
}
.sidebar-user-av {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.75);
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-family: var(--sidebar-f);
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.75);
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-role {
  font-family: var(--sidebar-f);
  font-size: 10px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sidebar-text-muted);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-chevron {
  flex-shrink: 0; color: rgba(255,255,255,0.28);
  transition: transform .2s ease, color .12s;
}
.sidebar-user-footer.open .sidebar-user-chevron {
  transform: rotate(180deg); color: rgba(255,255,255,0.55);
}

/* Accordion panel (expands inline below trigger) */
.sidebar-user-panel {
  max-height: 0; overflow: hidden; opacity: 0;
  padding: 0 4px;
  border-radius: 8px 8px 0 0;
  transition: max-height 0.22s ease, opacity 0.18s ease, padding 0.18s ease;
}
.sidebar-user-footer.open .sidebar-user-panel {
  max-height: 240px; opacity: 1; padding: 6px 4px 2px;
}
.sidebar-user-email {
  font-size: 11px; color: rgba(255,255,255,0.38);
  padding: 6px 8px 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slm-divider {
  height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0;
}
.slm-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12.5px; font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  cursor: pointer;
  background: none; border: none; width: 100%;
  transition: background .12s, color .12s;
}
.slm-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.slm-item svg { flex-shrink: 0; opacity: 0.7; }
.slm-danger { color: #f87171 !important; }
.slm-danger:hover { background: rgba(248,113,113,0.1) !important; }

/* Logo button (settings trigger) */
.sidebar-logo-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center;
  border-radius: 10px; transition: box-shadow .15s;
}
.sidebar-logo-btn:hover { box-shadow: 0 0 0 2px rgba(255,255,255,0.15); }
.sidebar-logo-btn:hover .sidebar-logo-img { opacity: 1; }

/* Logo settings menu */
.sidebar-logo-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 16px;
  width: 220px;
  background: #1e2d3e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .15s, transform .15s;
  z-index: 9999;
}
.sidebar-logo-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.slm-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 10px;
}
.slm-user-av {
  width: 30px; height: 30px; border-radius: 50%;
  background: #2f4a66; color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.slm-user-name {
  font-size: 12px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slm-user-email {
  font-size: 11px; color: rgba(255,255,255,0.45);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slm-divider {
  height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0;
}
.slm-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12.5px; font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  cursor: pointer;
  background: none; border: none; width: 100%;
  transition: background .12s, color .12s;
}
.slm-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.slm-item svg { flex-shrink: 0; opacity: 0.7; }
.slm-danger { color: #f87171 !important; }
.slm-danger:hover { background: rgba(248,113,113,0.1) !important; }

/* Legacy wordmark classes kept for backward compat */
.sidebar-hero {
  display: flex; align-items: center; justify-content: center;
  padding: 22px 10px 20px;
  background: transparent;
  position: relative; z-index: 1;
}
.wordmark {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; position: relative; z-index: 1;
}
.wordmark-icon {
  width: 26px; height: 26px;
  background: var(--lime); border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wordmark-name { font-size: 15px; font-weight: 700; letter-spacing: -0.025em; color: var(--text); line-height: 1.1; }
.wordmark-sub  { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* Workspace switcher */
.workspace-switcher { position: relative; flex-shrink: 0; border-top: 1px solid var(--sidebar-divider); padding: 16px 20px; }

.ws-btn {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 4px 6px; border-radius: var(--radius);
  background: transparent; border: none;
  cursor: pointer; transition: background 0.08s;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.8);
  text-align: left;
}
.ws-btn:hover { background: rgba(255,255,255,0.06); }

.ws-indicator {
  width: 34px; height: 34px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  letter-spacing: -0.02em;
}
.ws-indicator.cs { background: rgba(30,58,138,0.8); color: #fff; }
.ws-indicator.st { background: rgba(99,102,241,0.25); color: rgba(199,210,254,0.9); border-radius: 50%; }

.ws-btn-label { flex: 1; min-width: 0; }
.ws-btn-name  { font-size: 13px; font-weight: 700; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-btn-type  { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.ws-chevron   { color: rgba(255,255,255,0.35); flex-shrink: 0; }

.ws-dropdown {
  display: none; position: absolute; bottom: calc(100% + 6px); left: 0; right: 0;
  background: #1a2235; border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 100; overflow: hidden;
}
.ws-dropdown.open { display: block; }

.ws-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; cursor: pointer;
  transition: background 0.1s; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ws-option:last-child { border-bottom: none; }
.ws-option:hover { background: rgba(255,255,255,0.05); }
.ws-option.active { background: rgba(255,255,255,0.07); }

.ws-option-label { flex: 1; }
.ws-option-name  { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85); }
.ws-option-sub   { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 1px; }
.ws-check        { color: rgba(255,255,255,0.5); }

/* Nav — scoped to .sidebar so page styles can't override */
.sidebar .sidebar-nav {
  padding: 4px 12px 8px; flex: 1; overflow-y: auto; min-height: 0;
  font-family: var(--sidebar-f);
}

.sidebar .nav-section-label {
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,0.3); padding: 0 4px; margin-bottom: 8px; margin-top: 20px;
  text-transform: uppercase; letter-spacing: 0.08em;
}

.sidebar .nav-section-divider {
  display: none;
}

.sidebar .nav-item {
  display: flex; align-items: center;
  padding: 10px 14px; border-radius: 8px;
  font-family: var(--sidebar-f);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--sidebar-nav);
  transition: color 0.12s, background 0.12s;
  cursor: pointer; position: relative; user-select: none; text-decoration: none;
  margin-bottom: 3px; gap: 0; line-height: 1.25;
}
.sidebar .nav-item:hover { background: rgba(255,255,255,0.06); color: var(--sidebar-nav-hover); }
.sidebar .nav-item.active {
  background: rgba(255,255,255,0.09);
  color: var(--sidebar-nav-active);
  font-weight: 600;
}
.sidebar .nav-item.active::before {
  content: '•';
  color: var(--sidebar-clay);
  font-size: 20px;
  line-height: 1;
  margin-right: 9px;
  flex-shrink: 0;
  display: block;
}
.sidebar .nav-dot { display: none; }
.sidebar .nav-item svg { display: none; }
.sidebar .nav-item .nav-doc-chevron,
.sidebar .nav-item .nav-sub-chevron { display: block; }

.sidebar .nav-drag-handle { display: none !important; }
.sidebar .nav-item.nav-dragging { opacity: 0.4; }
.sidebar .nav-item.nav-drag-over { background: rgba(255,255,255,0.04); border-radius: 8px; }

.sidebar .nav-badge {
  margin-left: auto; font-size: 13px; font-weight: 400;
  font-family: var(--sidebar-mono);
  color: var(--sidebar-nav-count); background: transparent;
  padding: 0; border-radius: 0; letter-spacing: 0.04em;
  padding-right: 4px;
}
.sidebar .nav-item.active .nav-badge { color: var(--sidebar-nav-count-active); }
.sidebar .nav-badge.alert { background: transparent; color: rgba(239,68,68,0.65); }

/* ── Student sidebar: icon + label rows (scoped, dark bg unchanged) ── */
.sidebar.sidebar-student .sidebar-nav { padding: 8px 12px; }
.sidebar.sidebar-student .nav-item {
  gap: 12px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 2px;
  border-radius: 8px;
}
.sidebar.sidebar-student .nav-item .nav-ic {
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex-shrink: 0;
  color: rgba(255,255,255,0.5);
  transition: color 0.12s;
}
.sidebar.sidebar-student .nav-item .nav-ic svg { width: 18px; height: 18px; display: block !important; }
.sidebar.sidebar-student .nav-item .nav-label { min-width: 0; }
.sidebar.sidebar-student .nav-item:hover .nav-ic { color: rgba(255,255,255,0.8); }
.sidebar.sidebar-student .nav-item.active { background: rgba(255,255,255,0.10); font-weight: 600; }
.sidebar.sidebar-student .nav-item.active .nav-ic { color: #FFFFFF; }
.sidebar.sidebar-student .nav-item.active::before,
.sidebar.sidebar-student .nav-item::before,
.sidebar.sidebar-student .nav-item.active::after,
.sidebar.sidebar-student .nav-item::after { content: none !important; display: none !important; }

/* ── Documents sub-nav tree ── */
.sidebar .nav-subnav {
  display: flex; flex-direction: column;
  overflow: hidden; max-height: 0;
  transition: max-height 0.22s ease;
  padding-left: 14px;
}
.sidebar .nav-subnav.open { max-height: 300px; }
.sidebar .nav-subitem {
  display: flex; align-items: center;
  padding: 7px 12px; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.35); cursor: pointer; text-decoration: none;
  transition: color 0.12s, background 0.12s; line-height: 1.25; position: relative;
  border-radius: 6px; margin-bottom: 1px;
}
.sidebar .nav-subitem::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.sidebar .nav-subitem:hover { color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.04); }
.sidebar .nav-subitem:hover::before { background: rgba(255,255,255,0.5); }
.sidebar .nav-subitem.active {
  color: rgba(255,255,255,0.88); font-weight: 600;
  background: rgba(255,255,255,0.06);
}
.sidebar .nav-subitem.active::before { background: var(--sidebar-clay); }

/* (sidebar-user-footer styles live with account menu above) */

/* Workspace card (career services) */
.workspace-card {
  margin: 10px; padding: 11px 13px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; flex-shrink: 0;
}
.workspace-header { display: flex; align-items: center; gap: 10px; }
.workspace-avatar {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--navy); color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.workspace-name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.8); line-height: 1.2; }
.workspace-role { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 1px; }

/* Student profile card */
.student-card {
  margin: 8px; padding: 10px 12px;
  background: transparent; border-top: 1px solid rgba(255,255,255,0.08);
  border-radius: 0; flex-shrink: 0;
}
.student-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.student-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.student-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); }
.student-prog { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 1px; }
.profile-bar-wrap { margin-bottom: 8px; }
.profile-bar-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.profile-bar-track { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.profile-bar-fill  { height: 100%; background: var(--lime-accent); border-radius: 2px; }
.profile-cta { font-size: 11px; color: var(--lime-text); font-weight: 500; cursor: pointer; }
.profile-cta:hover { text-decoration: underline; }

/* ── MAIN SHELL ── */
.main {
  margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh;
  transition: margin-left .18s ease;
}

/* ── TOP HEADER ── */
.top-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40; flex-shrink: 0;
}
.top-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 52px;
}
.header-tabs { display: flex; align-items: stretch; height: 100%; }
.header-tab {
  display: flex; align-items: center; padding: 0 16px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent; transition: color 0.12s;
  cursor: pointer; text-decoration: none;
}
.header-tab:hover { color: var(--text); }
.header-tab.active { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: background 0.12s, color 0.12s; cursor: pointer;
}
.icon-btn:hover { background: var(--hover-bg); color: var(--text); }
.user-avatar-sm {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: box-shadow .12s;
}
.user-avatar-sm:hover { box-shadow: 0 0 0 2.5px var(--lime-border); }

/* ── Student top header (light, minimal) ── */
.top-header.top-header-student {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22, 38, 60, 0.07);
}
.top-header-student .top-header-inner {
  justify-content: flex-end;
  height: auto;
  padding: 10px 28px;
}
.top-header-student .icon-btn { color: rgba(22, 38, 60, 0.4); position: relative; width: 37px; height: 37px; }
.top-header-student .icon-btn:hover { background: rgba(22, 38, 60, 0.06); color: rgba(22, 38, 60, 0.65); }
.top-header-student .icon-btn svg { width: 17px; height: 17px; }
.top-header-student .user-avatar-sm {
  background: rgba(22, 38, 60, 0.1);
  color: rgba(22, 38, 60, 0.7);
  font-size: 10.5px;
  font-weight: 600;
  width: 33px;
  height: 33px;
}
.top-header-student .user-avatar-sm:hover { box-shadow: none; background: rgba(22, 38, 60, 0.16); }
.notif-dot {
  position: absolute; top: 6px; right: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sidebar-clay); border: 1.5px solid rgba(232, 229, 220, 0.92);
}

/* Notifications dropdown */
.notif-menu-wrap { position: relative; }
.notif-dropdown { width: 280px; }
.notif-dd-header { padding: 12px 14px; font-size: 13px; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--border); }
.notif-dd-list { max-height: 320px; overflow-y: auto; }
.notif-dd-item { display: block; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid var(--border); transition: background .08s; }
.notif-dd-item:last-child { border-bottom: none; }
.notif-dd-item:hover { background: var(--hover-bg); }
.notif-dd-item-label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.notif-dd-item-detail { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.notif-dd-empty { padding: 20px 14px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* Profile dropdown */
.profile-menu-wrap { position: relative; }
.profile-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  width: 260px; background: #fff; border: 1px solid rgba(28,43,58,0.12);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(28,43,58,0.16);
  z-index: 200; overflow: hidden;
  animation: profileDdIn .14s ease;
}
@keyframes profileDdIn {
  from { opacity: 0; transform: translateY(-3px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.profile-dropdown.open { display: block; }
.profile-dd-section { padding: 6px; border-bottom: 1px solid var(--border); }
.profile-dd-section:last-child { border-bottom: none; }
.profile-dd-item {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 12px; font-size: 14px; font-weight: 500; color: var(--text);
  cursor: pointer; transition: background .12s ease, color .12s ease; text-decoration: none;
  border-radius: 9px;
}
.profile-dd-item:hover { background: var(--hover-bg); }
.profile-dd-item svg { color: var(--muted); flex-shrink: 0; opacity: .75; transition: opacity .12s ease; }
.profile-dd-item:hover svg { opacity: 1; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f); font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius);
  transition: background 0.12s, border-color 0.12s;
  cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn-primary   { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
.btn-primary:hover { background: var(--navy-mid); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--hover-bg); }
.btn-lime      { background: var(--lime); color: var(--navy); border: 1px solid var(--lime-border); font-weight: 600; }
.btn-lime:hover { background: #6da3d4; }
.btn-ghost     { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--hover-bg); color: var(--text); }
.btn-sm        { font-size: 12px; padding: 6px 11px; }
.btn-danger    { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.btn-danger:hover { background: #fee2e2; }

/* ── SOLID PANEL ACTIONS ── */
.panel-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.panel-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: 'Geist', var(--sidebar-f), system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.panel-action-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.panel-action-btn.icon-only {
  width: 30px;
  padding: 0;
  gap: 0;
}
.panel-action-btn.archive {
  color: #16263C;
  background: #FFFFFF;
  border-color: #FFFFFF;
}
.panel-action-btn.archive:hover {
  color: #16263C;
  background: #E8EDF2;
  border-color: #E8EDF2;
}
.panel-action-btn.delete {
  color: #FFFFFF;
  background: #DC2626;
  border-color: #DC2626;
}
.panel-action-btn.delete:hover {
  color: #FFFFFF;
  background: #B91C1C;
  border-color: #B91C1C;
}
.panel-action-btn:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

/* ── STATUS DOTS ── */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: var(--green); }
.dot-lime  { background: var(--lime-accent); }
.dot-amber { background: var(--amber); }
.dot-gray  { background: var(--subtle); }
.dot-red   { background: var(--red); }
.dot-navy  { background: var(--navy); }
.dot-blue  { background: var(--blue); }

/* ── STATUS BADGES ── */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; padding: 3px 9px;
  border-radius: 5px; white-space: nowrap;
}
.sb-green  { background: rgba(26,127,90,0.08); color: var(--stage-interview); border: 1px solid rgba(26,127,90,0.22); }
.sb-lime   { background: var(--lime-soft); color: var(--lime-text); border: 1px solid var(--lime-border); }
.sb-amber  { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.sb-gray   { background: var(--page-bg); color: var(--muted); border: 1px solid var(--border); }
.sb-red    { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.sb-navy   { background: #eef0f6; color: var(--navy); border: 1px solid #c7cde0; }
.sb-blue   { background: var(--lime-soft); color: var(--lime-text); border: 1px solid var(--lime-border); }

/* ── PAGE HEADER BAND ── */
.page-band {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 32px 40px 20px; flex-shrink: 0;
}
.page-header-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 14px;
}
.page-title   { font-size: 30px; font-weight: 700; color: var(--text); line-height: 1.1; letter-spacing: -0.035em; }
.page-subtitle { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.5; max-width: 600px; font-weight: 400; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── SEARCH ── */
.search-wrap { position: relative; flex: 1; max-width: 480px; }
.search-icon-pos {
  position: absolute; left: 11px; top: 50%;
  transform: translateY(-50%); color: var(--subtle);
  pointer-events: none; display: flex;
}
.search-input {
  width: 100%; height: 36px; padding: 0 12px 0 34px;
  font-size: 13px; color: var(--text);
  background: var(--page-bg); border: 1px solid var(--border-strong);
  border-radius: var(--radius); outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.search-input::placeholder { color: var(--subtle); }
.search-input:focus { border-color: var(--subtle); box-shadow: 0 0 0 3px rgba(0,0,0,0.04); background: var(--surface); }

/* ── TABLE ── */
.table-container { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  font-size: 11px; font-weight: 500;
  color: var(--subtle); padding: 9px 16px; text-align: left;
  background: var(--surface); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td { padding: 11px 16px; font-size: 13.5px; color: var(--text); border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr { transition: background 0.08s; cursor: pointer; }
.data-table tbody tr:hover { background: var(--hover-bg); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ── TABLE ROW CONTROLS ── */
.tc-th {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  padding: 9px 8px !important;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.tc-cell {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  padding: 0 8px !important;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  position: relative;
}
.tc-row-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
  white-space: nowrap;
}
.data-table tbody tr:hover .tc-row-controls,
.data-table tbody tr.tc-selected .tc-row-controls {
  opacity: 1;
  pointer-events: auto;
}

/* Individual control buttons */
.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  border-radius: 5px;
  color: var(--subtle);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  flex-shrink: 0;
}
.tc-btn:hover { background: rgba(37,99,235,0.09); color: var(--blue); }

/* Checkbox: unchecked */
.tc-check .tc-check-mark { display: none; }
.tc-check:hover rect { stroke: var(--blue); }
/* Checked state */
.tc-check.tc-checked rect { fill: var(--blue); stroke: var(--blue); }
.tc-check.tc-checked .tc-check-mark { display: block; stroke: #fff; }
.tc-check.tc-checked { color: #fff; }

/* Grip */
.tc-grip { cursor: grab; }
.tc-grip:active { cursor: grabbing; }

/* Row states */
.data-table tbody tr.tc-selected { background: rgba(37,99,235,0.04); }
.data-table tbody tr.tc-dragging { opacity: 0.4; }
.data-table tbody tr.tc-drop-target { background: rgba(37,99,235,0.07); box-shadow: inset 0 -2px 0 var(--blue); }
.data-table tbody tr.tc-drop-flash { animation: tc-flash 0.4s ease; }
@keyframes tc-flash {
  0%   { background: rgba(37,99,235,0.16); }
  100% { background: transparent; }
}

/* New blank row cells */
.tc-new-cell {
  outline: none;
  background: rgba(37,99,235,0.03);
  min-width: 80px;
  border-bottom: 1px solid var(--border);
}
.tc-new-cell:empty::before {
  content: attr(data-placeholder);
  color: var(--subtle);
  font-style: italic;
  pointer-events: none;
}
.tc-new-cell:focus {
  background: rgba(37,99,235,0.06);
  box-shadow: inset 0 -2px 0 var(--blue);
}

/* ── SELECTION ACTION BAR ── */
/* ── SELECTION ACTION BAR ── */
.tc-selection-bar {
  position: fixed;
  top: 72px; /* Floats beautifully below the sticky top-header */
  left: calc(50% + var(--sidebar-w, 240px) / 2);
  transform: translateX(-50%) translateY(-16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), left 0.1s linear;
  z-index: 100;

  display: flex;
  align-items: center;
  gap: 0;
  background: #FFFFFF;
  border: 1px solid rgba(28,43,58,0.12);
  border-radius: 10px;
  padding: 4px 6px;
  box-shadow: 0 8px 24px rgba(28,43,58,0.16);
  white-space: nowrap;
}
.tc-selection-bar.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.tc-bar-count {
  font-size: 13px;
  font-weight: 600;
  color: rgba(28,43,58,0.62);
  padding: 0 12px;
  letter-spacing: .01em;
}
.tc-bar-count strong { color: #16263C; font-weight: 800; }
.tc-bar-divider {
  width: 1px;
  height: 18px;
  background: rgba(47,82,112,0.16);
  margin: 0 4px;
  flex-shrink: 0;
}
.tc-bar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #2F5270;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  font-family: var(--f);
  letter-spacing: .01em;
}
.tc-bar-btn:hover { background: rgba(47,82,112,0.08); color: #16263C; }
.tc-bar-btn.danger { color: #B4534B; }
.tc-bar-btn.danger:hover { background: rgba(180,83,75,0.1); color: #8F332C; }
.tc-bar-btn svg { flex-shrink: 0; opacity: 0.85; }
.tc-bar-btn:hover svg { opacity: 1; }


/* ── SIDE PANEL ── */
.panel-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(15,20,40,0.22);
  z-index: 200;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.panel-backdrop.open { display: block; }
.detail-panel {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -44%) scale(0.97);
  opacity: 0;
  width: min(760px, 92vw);
  max-height: 86vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  z-index: 201;
  display: flex; flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), opacity 0.18s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
  pointer-events: none;
}
.detail-panel.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 26px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.panel-label  { font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--subtle); }
.panel-close  { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; transition: background 0.1s; border: 1px solid transparent; }
.panel-close:hover { background: var(--hover-bg); color: var(--text); border-color: var(--border); }
.panel-scroll { flex: 1; overflow-y: auto; padding: 20px 22px; }
.panel-section-label { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); margin-bottom: 10px; }
.panel-divider { height: 1px; background: var(--border); margin: 16px 0; }
.panel-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.panel-kv { display: flex; flex-direction: column; gap: 3px; }
.panel-key { font-size: 11px; color: var(--subtle); }
.panel-val { font-size: 13px; color: var(--text); font-weight: 500; }
.panel-actions { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.panel-btn { width: 100%; height: 36px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 500; border-radius: var(--radius); cursor: pointer; transition: background 0.12s; }
.panel-btn-primary   { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
.panel-btn-primary:hover { background: var(--navy-mid); }
.panel-btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.panel-btn-secondary:hover { background: var(--hover-bg); }
.panel-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel-entity { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.panel-entity-logo {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--page-bg); display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--navy); flex-shrink: 0;
}
.panel-entity-name { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.025em; line-height: 1.2; }
.panel-entity-sub  { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── TIMELINE ── */
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 10px; padding-bottom: 14px; position: relative; }
.timeline-item:not(:last-child)::before { content: ''; position: absolute; left: 6px; top: 14px; bottom: 0; width: 1px; background: var(--border); }
.timeline-dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--lime); background: var(--surface); flex-shrink: 0; margin-top: 2px; z-index: 1; }
.timeline-dot.done { background: var(--lime); border-color: var(--lime); }
.timeline-action { font-size: 13px; color: var(--text); line-height: 1.4; }
.timeline-time   { font-size: 11px; color: var(--subtle); margin-top: 2px; }

/* ── STAT CARDS ── */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; }
.stat-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 7px; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: -0.04em; line-height: 1; }
.stat-sub   { font-size: 12px; color: var(--muted); margin-top: 5px; }
.stat-lime  { color: var(--lime-text); }

/* ── CONTENT AREA ── */
.content-area { padding: 22px 32px; flex: 1; }

/* ── MODAL ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15, 15, 15, 0.6); z-index: 300; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  width: 520px; max-width: 95vw; max-height: 90vh; overflow-y: auto;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-title  { font-size: 15px; font-weight: 700; color: var(--text); }
.modal-body   { padding: 20px 22px; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }

/* ── Add modal (application + contact) ── */
#add-app-modal.modal-overlay,
#add-contact-modal.modal-overlay,
#upload-modal.modal-overlay { background: rgba(22, 38, 60, 0.28); }
.add-modal {
  background: #FFFFFF;
  border: 1px solid rgba(28,43,58,0.12);
  border-radius: 16px;
  width: 100%; max-width: 460px; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 64px rgba(28,43,58,0.22);
}
.add-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(28,43,58,0.08);
}
.add-modal-title {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 16px; font-weight: 800; color: #1C2B3A;
  letter-spacing: -0.01em; margin: 0;
}
.add-modal-close {
  width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(28,43,58,0.06);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #3A5470; flex-shrink: 0; padding: 0;
  transition: background .12s, color .12s;
}
.add-modal-close:hover { background: rgba(28,43,58,0.12); color: #16263C; }
.add-modal-body {
  overflow-y: auto; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.add-modal-field label {
  display: block;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: #5A7A96; margin-bottom: 6px;
}
.add-modal-field label span {
  font-weight: 500; text-transform: none; letter-spacing: 0;
  font-size: 11px; color: #8A9BB0;
}
.add-modal .form-input,
.add-modal .form-select,
.add-modal .form-textarea {
  width: 100%; box-sizing: border-box;
  background: #F4F6F8 !important;
  border: 1px solid rgba(47, 82, 112, 0.22) !important;
  border-radius: 8px !important;
  color: #1C2B3A !important;
  font-family: 'Geist', system-ui, sans-serif;
  outline: none !important;
  box-shadow: none !important;
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.add-modal .form-input:focus,
.add-modal .form-select:focus,
.add-modal .form-textarea:focus {
  border-color: #2F5270 !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 2px rgba(47,82,112,0.18) !important;
}
.add-modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.add-modal-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid rgba(28,43,58,0.08);
}
.add-modal-cancel {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 8px;
  border: 1px solid rgba(28,43,58,0.14); background: transparent;
  color: #4A637A; cursor: pointer;
  transition: color .12s, border-color .12s, background .12s;
}
.add-modal-cancel:hover { color: #16263C; border-color: rgba(28,43,58,0.28); background: rgba(28,43,58,0.04); }
.add-modal-save {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 8px 18px; border-radius: 8px;
  border: none; background: #2F5270; color: #fff;
  cursor: pointer; transition: background .12s;
}
.add-modal-save:hover { background: #1E3A5F; }

.form-group   { margin-bottom: 14px; }
.form-label   { display: block; font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-input   { width: 100%; height: 36px; padding: 0 11px; font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); outline: none; }
.form-input:focus { border-color: var(--subtle); box-shadow: 0 0 0 3px rgba(0,0,0,0.04); }
.form-select  {
  width: 100%; height: 36px; padding: 0 30px 0 11px; font-size: 13px; color: var(--text);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%2378899F' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 1px solid var(--border-strong); border-radius: var(--radius); outline: none; appearance: none;
}
select[data-cs-init] { display: none !important; }

/* ── Custom select ──────────────────────────────────────────────────────────── */
.cs-wrap { position: relative; width: 100%; }
.cs-btn {
  width: 100%; height: 36px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 0 11px; font-size: 13px; font-family: inherit; font-weight: 500;
  color: var(--text); background: #fff; border: 1px solid rgba(47,82,112,0.22);
  border-radius: 6px; cursor: pointer; user-select: none; transition: border-color .12s, box-shadow .12s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cs-btn:hover { border-color: #2F5270; }
.cs-btn.open  { border-color: #2F5270; box-shadow: 0 0 0 2px rgba(47,82,112,0.18); }
.cs-btn-text  { flex: 1; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.cs-chevron   { flex-shrink: 0; color: #8A9BB0; margin-left: 6px; transition: transform .15s; }
.cs-btn.open .cs-chevron { transform: rotate(180deg); }
.cs-dropdown {
  display: none; position: absolute; left: 0; right: 0;
  background: #fff; border: 1px solid rgba(28,43,58,0.12); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(28,43,58,0.16); z-index: 500; overflow: hidden;
  padding: 6px;
}
.cs-dropdown.open { display: block; }
.cs-dropdown.up   { bottom: calc(100% + 4px); top: auto; }
.cs-dropdown.down { top: calc(100% + 4px); bottom: auto; }
.cs-opt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; font-size: 13px; font-weight: 500; color: #4A637A;
  border-radius: 7px; cursor: pointer; transition: background .1s;
}
.cs-opt:hover { background: rgba(28,43,58,0.06); }
.cs-opt.selected { font-weight: 700; color: #2F5270; }
.cs-opt-check { color: #2F5270; flex-shrink: 0; opacity: 0; }
.cs-opt.selected .cs-opt-check { opacity: 1; }
.form-textarea { width: 100%; padding: 9px 11px; font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); outline: none; resize: vertical; min-height: 80px; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: var(--radius); font-size: 13px; font-weight: 500;
  opacity: 0; transition: opacity 0.2s, transform 0.2s; z-index: 400; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── PRIORITY LABELS ── */
.urgency { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.urgency-red   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.urgency-amber { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.urgency-lime  { background: var(--lime-soft); color: var(--lime-text); border: 1px solid var(--lime-border); }

/* ── SECTION HEADING ── */
.section-heading { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.section-sub      { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── INFO BANNER ── */
.info-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--lime-soft); border: 1px solid var(--lime-border);
  border-radius: var(--radius); padding: 10px 14px;
  font-size: 13px; color: var(--lime-text); margin-bottom: 16px;
}

/* ── BAR CHART ── */
.bar-chart { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-label { font-size: 12px; color: var(--muted); width: 160px; flex-shrink: 0; }
.bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.bar-fill  { height: 100%; border-radius: 4px; background: var(--navy); transition: width 0.6s ease; }
.bar-fill.lime { background: var(--lime-accent); }
.bar-val   { font-size: 12px; color: var(--muted); width: 32px; text-align: right; flex-shrink: 0; }

/* ── DONUT ── */
.donut-wrap { position: relative; width: 120px; height: 120px; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-big  { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.04em; }
.donut-tiny { font-size: 11px; color: var(--muted); }

/* ── KANBAN ── */
.kanban-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kanban-col {
  min-width: 200px; max-width: 220px; flex-shrink: 0;
  background: var(--page-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.kanban-col-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.kanban-count { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: 11px; color: var(--subtle); }
.kanban-cards { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.kanban-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
  cursor: pointer; transition: box-shadow 0.1s, border-color 0.1s;
}
.kanban-card:hover { border-color: var(--border-strong); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.kc-company { font-size: 11px; color: var(--muted); margin-bottom: 2px; font-weight: 500; }
.kc-role    { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 8px; }
.kc-meta    { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.kc-tag     { font-size: 10px; padding: 1px 6px; border-radius: 3px; background: var(--hover-bg); color: var(--muted); border: 1px solid var(--border); }
.kc-urgency { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 3px; }
.kc-next    { font-size: 11px; color: var(--muted); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }

/* ── FUNNEL ── */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel-row { display: flex; align-items: center; gap: 12px; }
.funnel-label { font-size: 12px; color: var(--muted); width: 100px; flex-shrink: 0; }
.funnel-bar   { height: 28px; border-radius: 4px; background: var(--navy); display: flex; align-items: center; padding-left: 10px; transition: width 0.6s ease; }
.funnel-val   { font-size: 12px; font-weight: 700; color: #fff; }
.funnel-pct   { font-size: 11px; color: var(--muted); margin-left: 8px; }

/* ── FEATURE CARD ── */
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 22px;
}
.feature-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--lime-soft); border: 1px solid var(--lime-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; color: var(--lime-text);
}
.feature-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.feature-desc  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── MOBILE NAV TOGGLE (hamburger) — hidden on desktop, shown ≤768px below ── */
.mobile-nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 8px; background: transparent;
  color: var(--navy); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-toggle:hover { background: var(--hover-bg); }
.mobile-nav-toggle svg { display: block; }
.top-header-student .mobile-nav-toggle { color: rgba(22, 38, 60, 0.65); }

.sidebar-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(15,20,40,0.4);
  z-index: 48;
}
.sidebar-backdrop.open { display: block; }

/* Let flex/grid children shrink below their content's intrinsic width at
   ANY viewport, instead of forcing the whole page to zoom out or overflow
   the moment a window narrows (the classic flexbox/grid "min-width: auto"
   trap). This is a no-op — zero visual effect — whenever content already
   fits, so it's safe unconditionally rather than only inside a mobile
   breakpoint; every component-specific breakpoint below relies on it. */
.main, .content-area, .hs-shell, .hs-split, .hs-list-col, .hs-detail-col,
.hs-detail-inner, .kb-board-wrap, .kb-col, .ct-list, .cdp-body,
.settings-layout, .table-container, .data-table, .stat-grid, .stat-card,
.page-band, .page-header-row, .top-header-inner {
  min-width: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px)  { .detail-panel { width: 100%; } }
@media (max-width: 768px)  {
  .mobile-nav-toggle { display: inline-flex; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform .24s cubic-bezier(.4,0,.2,1);
    box-shadow: 8px 0 32px rgba(0,0,0,0.22);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .main { margin-left: 0; }
  .content-area { padding: 16px; }
  .page-band { padding: 18px 16px 14px; }
  .top-header-inner, .top-header-student .top-header-inner { padding: 0 16px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .page-header-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-title { font-size: 24px; }
  .page-actions { flex-wrap: wrap; width: 100%; }

  /* Search / inputs — full width, ≥16px to stop iOS auto-zoom on focus */
  .search-wrap { max-width: none; width: 100%; }
  .search-input, .form-input, .form-select, .form-textarea, .cs-btn {
    font-size: 16px;
  }

  /* Comfortable touch targets */
  .icon-btn { width: 40px; height: 40px; }
  .sidebar .nav-item { min-height: 44px; }
  .btn, .panel-action-btn { min-height: 40px; }

  /* Modals / side panels must never exceed the viewport */
  .modal-box, .add-modal { width: 100%; max-width: 100%; max-height: calc(100vh - 24px); }
  .detail-panel { width: 100%; max-width: 100%; max-height: 92vh; }
  .panel-grid-2 { grid-template-columns: 1fr; }

  /* Dropdowns/menus stay inside the viewport */
  .profile-dropdown, .notif-dropdown, .ws-dropdown, .cs-dropdown {
    max-width: calc(100vw - 24px);
  }

  .tc-selection-bar { left: 50%; }
}
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr; } }

/* ── SIDEBAR ICONS SVG HELPER ── */
.nav-svg { display: block; }

/* ── Shared light sidebar ─────────────────────────────────────────────── */
body .sidebar {
  background: #F4F6F9 !important;
  border-right: 1px solid #D7E0EA !important;
  box-shadow: 6px 0 22px rgba(18, 48, 82, .045);
}
body.sidebar-compact { --sidebar-w: 64px; }
body .sidebar .sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 14px 20px;
}
body .sidebar .sidebar-logo-img {
  width: 29px; height: 29px;
  border-radius: 7px;
  opacity: 1;
  box-shadow: 0 1px 2px rgba(24, 55, 93, .08);
}
body .sidebar .sidebar-compact-toggle {
  width: 28px; height: 28px; flex: 0 0 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  color: #7D8CA0;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(206,218,232,.72);
  box-shadow: 0 1px 3px rgba(24,54,92,.035);
  transition: background .12s, color .12s, border-color .12s;
}
body .sidebar .sidebar-compact-toggle:hover {
  color: #2F5F99;
  background: #FFFFFF;
  border-color: rgba(181,199,221,.92);
}
body .sidebar .sidebar-resize-handle::after {
  opacity: 0 !important;
  box-shadow: none !important;
}

body .sidebar.sidebar-student .sidebar-nav { padding: 6px 12px 8px; }
body .sidebar .nav-section-label {
  color: #94A0AF;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  margin: 12px 0 6px;
  padding: 0 10px;
}
body .sidebar .nav-item {
  color: #52565D !important;
  background: transparent !important;
}
body .sidebar.sidebar-student .nav-item {
  min-height: 35px;
  gap: 10px;
  padding: 7px 10px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  font-weight: 620 !important;
  margin-bottom: 2px;
}
body .sidebar .nav-item:hover {
  color: #33465F !important;
  background: #EAF0F7 !important;
}
body .sidebar .nav-item.active {
  color: #1F5FB8 !important;
  background: #DFEBFF !important;
  box-shadow: inset 0 0 0 1px rgba(50, 113, 203, .08);
}
body .sidebar .nav-item-featured {
  min-height: 36px !important;
  margin: 0 !important;
  background: transparent !important;
  border: 1px solid transparent;
  box-shadow: none;
}
body .sidebar .nav-item-featured:hover {
  color: #2C3B4E !important;
  background: rgba(255,255,255,.56) !important;
  border-color: rgba(208,218,229,.58);
}
body .sidebar .nav-item-featured.active {
  color: #27384D !important;
  background: rgba(255,255,255,.72) !important;
  border-color: rgba(202,213,225,.72);
  box-shadow: 0 1px 2px rgba(30,53,80,.035);
}
body .sidebar .nav-ai-cluster {
  margin: 0 0 30px;
}
body .sidebar .nav-ai-cluster::before {
  content: none;
  display: none;
}
body .sidebar .nav-ai-history {
  padding: 8px 7px 0 13px;
}
body .sidebar .nav-ai-history-label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 1px 5px;
  padding: 0;
  color: #52565D;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
  text-align: left;
}
body .sidebar .nav-ai-history-label:hover { color: #2A2D31; }
body .sidebar .nav-ai-history-chevron {
  width: 6px;
  height: 6px;
  margin-right: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .16s ease;
}
body .sidebar .nav-ai-history.collapsed .nav-ai-history-chevron {
  transform: rotate(-45deg) translate(-1px, -1px);
}
body .sidebar .nav-ai-history.collapsed .nav-ai-history-label { margin-bottom: 0; }
body .sidebar .nav-ai-history-list {
  max-height: 70px;
  opacity: 1;
  overflow: hidden;
  transition: max-height .18s ease, opacity .12s ease;
}
body .sidebar .nav-ai-history.collapsed .nav-ai-history-list {
  max-height: 0;
  opacity: 0;
}
body .sidebar .nav-ai-recent {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 25px;
  padding: 0 5px;
  border-radius: 7px;
  color: #52565D;
  font-size: 10.5px;
  font-weight: 520;
  text-decoration: none;
}
body .sidebar .nav-ai-recent:hover {
  color: #365A86;
  background: rgba(226,235,247,.72);
}
body .sidebar .nav-ai-recent > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body .sidebar .nav-ai-recent-dot {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 50%;
  background: #52565D;
}
body .sidebar .nav-ai-history-empty {
  padding: 4px 5px 2px;
  color: #A0ABBA;
  font-size: 9.5px;
  line-height: 1.35;
}
body .sidebar .nav-ai-history-shortcut { display: none; }
body .sidebar:not(.sidebar-student) .nav-item.active { padding-left: 14px !important; }
body .sidebar .nav-item.active::after,
body .sidebar .nav-item.active::before {
  content: none !important;
  display: none !important;
}
body:not(.sidebar-compact) .sidebar .nav-item-featured::before {
  content: '' !important;
  display: block !important;
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: #4E7FCB;
  box-shadow: 0 0 0 1px rgba(78,127,203,.04);
}
body .sidebar.sidebar-student .nav-item .nav-ic {
  width: 16px; height: 16px;
  color: #52565D !important;
}
body .sidebar.sidebar-student .nav-item .nav-ic svg { width: 16px; height: 16px; }
body .sidebar.sidebar-student .nav-item:hover .nav-ic { color: #2A2D31 !important; }
body .sidebar.sidebar-student .nav-item.active .nav-ic { color: #2563D9 !important; }
body:not(.sidebar-compact) .sidebar.sidebar-student .nav-item-featured .nav-ic {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-left: 0;
  color: #6F8198 !important;
}
body:not(.sidebar-compact) .sidebar.sidebar-student .nav-item-featured .nav-ic svg {
  width: 16px;
  height: 16px;
}
body:not(.sidebar-compact) .sidebar.sidebar-student .nav-item-featured:hover .nav-ic,
body:not(.sidebar-compact) .sidebar.sidebar-student .nav-item-featured.active .nav-ic {
  color: #486B98 !important;
}
body .sidebar .nav-badge {
  color: #7A899D !important;
  font-size: 11px;
  letter-spacing: .02em;
}
body .sidebar .nav-item.active .nav-badge { color: #2563D9 !important; }
body:not(.sidebar-compact) .sidebar .nav-item-featured .nav-badge-new {
  margin-left: auto;
  padding: 2px 6px;
  color: #3F6FAF !important;
  background: rgba(239,245,255,.72);
  border: 1px solid rgba(91,135,197,.24);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: .075em;
  text-transform: uppercase;
}
body .sidebar .nav-subitem { color: #718096 !important; }
body .sidebar .nav-subitem::before { background: #B5C0CD; }
body .sidebar .nav-subitem:hover {
  color: #344A64 !important;
  background: #EAF0F7 !important;
}
body .sidebar .nav-subitem.active {
  color: #1F5FB8 !important;
  background: #DFEBFF !important;
  box-shadow: inset 0 0 0 1px rgba(50, 113, 203, .08);
}
body .sidebar .nav-subitem.active::before { background: #2563D9; }

body .sidebar .onboarding-checklist {
  padding: 12px 12px 11px;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(248,251,255,.82));
  border: 0;
  border-radius: 14px;
  color: #24354B;
  box-shadow: 0 7px 24px rgba(31,61,99,.075), inset 0 0 0 1px rgba(220,228,238,.58);
}
body .sidebar .onboarding-checklist-head { min-height: 22px; gap: 3px; }
body .sidebar .onboarding-checklist-title {
  font-size: 12px;
  font-weight: 680;
  letter-spacing: -.01em;
}
body .sidebar .onboarding-checklist-icon-btn {
  width: 22px; height: 22px; flex-basis: 22px;
  border-radius: 7px;
  color: #8996A7;
}
body .sidebar .onboarding-checklist-icon-btn svg { width: 11px; height: 11px; }
body .sidebar .onboarding-checklist-icon-btn:hover {
  color: #2F5F99;
  background: #EEF4FB;
}
body .sidebar .onboarding-checklist-progress {
  color: #8491A3;
  font-size: 10.5px;
  margin-top: 5px;
}
body .sidebar .onboarding-checklist-track {
  height: 3px;
  margin-top: 6px;
  background: #E3E9F1;
}
body .sidebar .onboarding-checklist-fill {
  background: linear-gradient(90deg, #4E83D3, #2F6FD2);
}
body .sidebar .onboarding-checklist-steps { gap: 0; margin-top: 7px; }
body .sidebar .onboarding-checklist-step {
  min-height: 27px;
  gap: 8px;
  padding: 4px 3px;
  border-radius: 7px;
  color: #586A80;
  font-size: 10.5px;
}
body .sidebar .onboarding-checklist-step:hover {
  color: #294F7D;
  background: rgba(235,241,249,.78);
}
body .sidebar .onboarding-checklist-check {
  width: 14px; height: 14px; flex-basis: 14px;
  border-color: #B9C5D3;
}
body .sidebar .onboarding-checklist-check svg { width: 8px; height: 8px; }
body .sidebar .onboarding-checklist-step.done { color: #919EAF; }
body .sidebar .onboarding-checklist-step.done .onboarding-checklist-check {
  background: #E4EDFA;
  border-color: #D4E1F4;
  color: #2F6FCA;
}

body .sidebar .sidebar-feedback-widget {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 7px 8px;
  background: transparent;
  border: 0;
  border-radius: 11px;
  box-shadow: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
body .sidebar .sidebar-feedback-widget:hover {
  background: rgba(255,255,255,.68);
}
body .sidebar .sidebar-feedback-icon {
  width: 20px; height: 20px; flex: 0 0 20px;
  background: transparent;
  color: #52565D;
  display: flex; align-items: center; justify-content: center;
}
body .sidebar .sidebar-feedback-widget:hover .sidebar-feedback-icon {
  background: transparent;
  color: #2A2D31;
}
body .sidebar .sidebar-feedback-title,
body .sidebar .workspace-name {
  color: #2A3B51;
}
body .sidebar .sidebar-feedback-title {
  font-size: 12px;
  font-weight: 650;
  color: #34475E;
}
body .sidebar .sidebar-feedback-sub {
  color: #929EAD;
  font-size: 10px;
  margin-top: 1px;
}
body .sidebar .workspace-role { color: #8491A2; }
body .sidebar .workspace-card {
  background: #FFFFFF;
  border: 1px solid rgba(207, 218, 232, .82);
  box-shadow: 0 2px 8px rgba(23, 53, 88, .04);
}
body .sidebar .sidebar-bottom-stack {
  gap: 10px;
  margin: 0;
  padding: 16px 14px 14px;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
body .sidebar .onboarding-checklist-slot:not([hidden]) { margin-bottom: 0; }

body .sidebar .workspace-switcher,
body .sidebar .sidebar-user-footer { border-color: #E2E8F0; }
body .sidebar .ws-btn { color: #475A72; }
body .sidebar .ws-btn:hover,
body .sidebar .sidebar-user-btn:hover,
body .sidebar .sidebar-user-footer.open .sidebar-user-btn { background: #EAF0F7; }
body .sidebar .ws-btn-name,
body .sidebar .sidebar-user-name { color: #2A3B51; }
body .sidebar .ws-btn-type,
body .sidebar .sidebar-user-role,
body .sidebar .sidebar-user-email { color: #8491A2; }
body .sidebar .ws-chevron,
body .sidebar .sidebar-user-chevron { color: #8C9AAC; }
body .sidebar .sidebar-user-av {
  background: #EAF2FF;
  color: #2E64AA;
}
body .sidebar .ws-dropdown,
body .sidebar .sidebar-logo-menu {
  background: #FFFFFF;
  border-color: #DCE5F0;
  box-shadow: 0 10px 30px rgba(25, 51, 82, .12);
}
body .sidebar .ws-option { border-color: #E8EDF3; }
body .sidebar .ws-option:hover,
body .sidebar .ws-option.active,
body .sidebar .slm-item:hover { background: #EAF0F7; }
body .sidebar .ws-option-name,
body .sidebar .slm-user-name,
body .sidebar .slm-item { color: #34465D; }
body .sidebar .ws-option-sub,
body .sidebar .slm-user-email { color: #8794A5; }
body .sidebar .ws-check { color: #4774AE; }
body .sidebar .slm-divider { background: #E5EBF2; }

body.sidebar-compact .sidebar {
  overflow: hidden;
}
body.sidebar-compact .sidebar .sidebar-resize-handle { display: none; }
body.sidebar-compact .sidebar .sidebar-brand {
  display: grid;
  place-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 8px 16px;
  gap: 0;
}
body.sidebar-compact .sidebar .sidebar-wordmark-link,
body.sidebar-compact .sidebar .sidebar-compact-toggle {
  grid-area: 1 / 1;
  transition: opacity .14s ease, transform .16s ease, background .12s, color .12s, border-color .12s;
}
body.sidebar-compact .sidebar .sidebar-wordmark-link {
  opacity: 1;
  transform: scale(1);
}
body.sidebar-compact .sidebar .sidebar-logo-img {
  width: 28px; height: 28px;
}
body.sidebar-compact .sidebar .sidebar-compact-toggle {
  width: 32px; height: 32px;
  background: #FFFFFF;
  opacity: 0;
  transform: scale(.88);
  pointer-events: none;
}
body.sidebar-compact .sidebar .sidebar-brand:hover .sidebar-wordmark-link {
  opacity: 0;
  transform: scale(.88);
}
body.sidebar-compact .sidebar .sidebar-brand:hover .sidebar-compact-toggle {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
body.sidebar-compact .sidebar .sidebar-compact-toggle svg {
  transform: scaleX(-1);
}
body.sidebar-compact .sidebar.sidebar-student .sidebar-nav {
  padding: 4px 6px 8px;
  align-items: center;
}
body.sidebar-compact .sidebar .nav-section-label,
body.sidebar-compact .sidebar .nav-label,
body.sidebar-compact .sidebar .nav-badge,
body.sidebar-compact .sidebar .onboarding-checklist,
body.sidebar-compact .sidebar .sidebar-feedback-title,
body.sidebar-compact .sidebar .sidebar-feedback-sub {
  display: none !important;
}
body.sidebar-compact .sidebar.sidebar-student .nav-item,
body.sidebar-compact .sidebar .nav-item-featured {
  width: 40px;
  height: 40px;
  min-height: 40px !important;
  margin: 0 auto 6px !important;
  padding: 0 !important;
  justify-content: center;
  gap: 0;
  border-radius: 12px !important;
}
body.sidebar-compact .sidebar.sidebar-student .nav-item .nav-ic {
  width: 18px; height: 18px;
}
body.sidebar-compact .sidebar.sidebar-student .nav-item .nav-ic svg {
  width: 18px; height: 18px;
}
body.sidebar-compact .sidebar .nav-item-featured {
  margin-bottom: 4px !important;
}
body.sidebar-compact .sidebar .nav-ai-cluster {
  width: 46px;
  margin: 0 auto 12px;
  padding: 3px;
  border-radius: 14px;
  background: rgba(227,237,251,.72);
}
body.sidebar-compact .sidebar .nav-ai-cluster::before,
body.sidebar-compact .sidebar .nav-ai-history {
  display: none;
}
body.sidebar-compact .sidebar .nav-ai-history-shortcut {
  width: 36px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #8293A9;
}
body.sidebar-compact .sidebar .nav-ai-history-shortcut:hover {
  color: #2F67AD;
  background: rgba(255,255,255,.72);
}
body.sidebar-compact .sidebar .nav-ai-history-shortcut .nav-ic,
body.sidebar-compact .sidebar .nav-ai-history-shortcut svg {
  width: 17px;
  height: 17px;
}
body.sidebar-compact .sidebar .sidebar-bottom-stack {
  padding: 8px 8px 12px;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.sidebar-compact .sidebar .onboarding-checklist-slot {
  display: none !important;
}
body.sidebar-compact .sidebar .sidebar-feedback-widget {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  margin: 0 auto 6px;
  justify-content: center;
  border-radius: 12px;
}
body.sidebar-compact .sidebar .sidebar-feedback-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

body .sidebar.ops-sidebar .ops-logo { filter: none; opacity: 1; }
body .sidebar.ops-sidebar .ops-side-top,
body .sidebar.ops-sidebar .ops-side-foot { border-color: #E2E8F0; }
body .sidebar.ops-sidebar .ops-ws-name { color: #2A3B51; }
body .sidebar.ops-sidebar .ops-ws-sub,
body .sidebar.ops-sidebar .ops-nav-label,
body .sidebar.ops-sidebar .ops-flow-title,
body .sidebar.ops-sidebar .ops-side-meta { color: #8A98A9; }
body .sidebar.ops-sidebar .ops-nav-item { color: #66758A; }
body .sidebar.ops-sidebar .ops-nav-item:hover {
  color: #33465F;
  background: #F3F6FA;
}
body .sidebar.ops-sidebar .ops-nav-item.active {
  color: #1F5FB8;
  background: #EAF2FF;
}
body .sidebar.ops-sidebar .ops-nav-item.active::after { content: none; display: none; }
body .sidebar.ops-sidebar .ops-nav-count {
  color: #718198;
  background: #EEF3F8;
}
body .sidebar.ops-sidebar .ops-nav-count.alert {
  color: #B74747;
  background: #FCECEC;
}
body .sidebar.ops-sidebar .ops-side-flow {
  background: #FFFFFF;
  border-color: #DFE7F0;
  box-shadow: 0 2px 8px rgba(23, 53, 88, .04);
}
body .sidebar.ops-sidebar .ops-flow-steps span { color: #687A90; }
body .sidebar.ops-sidebar .ops-flow-steps span::before { background: #B5C0CD; }
body .sidebar.ops-sidebar .ops-flow-steps span:not(:last-child)::after { background: #DCE4ED; }
body .sidebar.ops-sidebar .ops-flow-steps span:first-child::before,
body .sidebar.ops-sidebar .ops-flow-steps span:last-child::before { background: #3B78D4; }
body .sidebar.ops-sidebar .ops-side-link { color: #55769D; }
body .sidebar.ops-sidebar .ops-side-link:hover { color: #245EA9; }

/* Neutral reveal behind the inset AI canvas. */
body.aisp-page { background: #F8FAFC; }

@media (max-width: 768px) {
  body .sidebar { box-shadow: 8px 0 28px rgba(18, 48, 82, .16); }
}
