:root {
  --bg-warm:      #f5f3ef;
  --bg-cream:     #f9f8f5;
  --accent:       #b45309;
  --accent-hover: #92400e;
  --accent-soft:  rgba(180, 83, 9, 0.08);
  --ink:          #251913;
  --ink-soft:     #4a3a30;
  --ink-mute:     #8a7a6e;
  --border:       #d9d1c2;
  --border-soft:  #e4dccd;
  --white:        #ffffff;
  --bg-card:      #ffffff;
  --success:      #047857;
  --warning:      #b45309;
  --danger:       #b91c1c;
  --shadow-sm: 0 1px 2px rgba(37, 25, 19, 0.04);
  --shadow-md: 0 4px 12px rgba(37, 25, 19, 0.08);
  --shadow-lg: 0 12px 32px rgba(37, 25, 19, 0.12);
  --shadow-xl: 0 24px 64px rgba(37, 25, 19, 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: 'Fraunces', 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: #cdc2b6;
  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: #cdc2b6;
  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.04); color: #f6f3eb; }
.nav-item.active { background: rgba(180, 83, 9, 0.18); color: var(--bg-cream); }
.nav-item.active .nav-icon { color: #f6c98c; }
.nav-icon {
  width: 19px; height: 19px;
  color: #8a7a6e;
  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: #2a1f1a;
  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: #f6f3eb;
  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: #f6f3eb; font-size: 13px; font-weight: 500; }
.user-role { color: #8a7a6e; font-size: 11px; }

