:root {
  /* ===== HubSpot-inspired palette ===== */
  --bg-warm:      #eef1f5;   /* light gray canvas + hover tint */
  --bg-cream:     #ffffff;   /* white chrome: topbar / sub-nav */
  --accent:       #f57722;   /* HubSpot orange — primary actions */
  --accent-hover: #dd6410;
  --accent-soft:  rgba(245, 119, 34, 0.10);
  --accent-lav:   #dcebfb;   /* soft blue highlight */
  --mint:         #67aded;   /* sky blue — second accent */
  --mint-soft:    rgba(103, 173, 237, 0.16);
  --mint-ink:     #2f6db0;   /* readable blue text on light */
  --amber:        #ff9d2a;   /* amber — third accent */
  --amber-soft:   rgba(255, 157, 42, 0.16);
  --ink:          #393939;   /* charcoal text + sidebar */
  --ink-soft:     #565656;
  --ink-mute:     #8c8c8c;
  --border:       #d3d3d3;   /* gray borders */
  --border-soft:  #e6e8ea;
  --white:        #ffffff;
  --bg-card:      #ffffff;   /* cards — white, pop off the gray canvas */
  --success:      #12a46b;
  --warning:      #ff9d2a;
  --danger:       #e0483d;
  --shadow-sm: 0 1px 2px rgba(57, 57, 57, 0.06);
  --shadow-md: 0 4px 12px rgba(57, 57, 57, 0.09);
  --shadow-lg: 0 12px 32px rgba(57, 57, 57, 0.13);
  --shadow-xl: 0 24px 64px rgba(57, 57, 57, 0.18);
}

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

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-warm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.display { font-family: 'Inter', sans-serif; font-feature-settings: "ss01" 1; letter-spacing: -0.01em; }

button, input, textarea, select { font-family: inherit; }

/* ===== Layout ===== */
.app {
  display: grid;
  grid-template-columns: 72px 1fr;
  height: 100vh;
  overflow: hidden;
}

/* ===== Sidebar ===== */
.sidebar {
  background: var(--ink);
  color: #cfd2d7;
  display: flex;
  flex-direction: column;
  padding: 18px 0;
  overflow-y: auto;
}

.brand {
  padding: 14px 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.brand img {
  width: 36px;
  height: auto;
  display: block;
  mix-blend-mode: screen;
}
#workspace-name-display { display: none; }

.nav-section { padding: 6px 6px; }
.nav-label { display: none; }
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 500;
  color: #bcc0c6;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  margin-bottom: 2px;
  text-align: center;
  line-height: 1.2;
  position: relative;
}
.nav-item:hover { background: rgba(255,255,255,0.05); color: #e8eaed; }
.nav-item.active { background: rgba(245, 119, 34, 0.22); color: var(--bg-cream); }
.nav-item.active .nav-icon { color: #67aded; }
.nav-icon {
  width: 19px; height: 19px;
  color: #8c8c8c;
  flex-shrink: 0;
}
.nav-badge {
  position: absolute;
  top: 5px; right: 10px;
  background: var(--accent);
  color: white;
  font-size: 8px;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 8px;
  min-width: 14px;
  height: 14px;
  text-align: center;
  line-height: 14px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s;
}
.sidebar-footer:hover { background: rgba(255,255,255,0.05); }
.user-meta { display: none; }
.sidebar-user-menu {
  position: fixed;
  bottom: 64px;
  left: 76px;
  width: 200px;
  background: #2b2b2b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 500;
  display: none;
}
.sidebar-user-menu.open { display: block; }
.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: #cfd2d7;
  cursor: pointer;
  transition: background .12s;
}
.sidebar-menu-item:hover { background: rgba(255,255,255,0.08); }
.sidebar-menu-item.danger { color: #f87171; }
.sidebar-menu-item.danger:hover { background: rgba(248,113,113,0.12); }
.avatar {
  width: 30px; height: 30px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}
.user-meta { line-height: 1.3; }
.user-name { color: #cfd2d7; font-size: 13px; font-weight: 500; }
.user-role { color: #8c8c8c; font-size: 11px; }

