/* Limo SaaS — global dark shell */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --bg: #0b1220;
  --bg-elevated: #111827;
  --bg-muted: #1f2937;
  --bg-hover: #273549;
  --border: #374151;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #00d4e8;
  --accent-soft: #0a3a42;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
  --offline: #6b7280;
  --shell-h: 52px;
  --font: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --brand-cyan: #00ecff;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

body.has-shell {
  padding-top: var(--shell-h);
}

#limo-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--shell-h);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  overflow: visible;
}

.shell-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f3f4f6;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-right: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.shell-logo {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  background: #000;
  border: 1px solid rgba(0, 236, 255, 0.35);
}

.shell-brand-text {
  color: #f3f4f6;
  font-weight: 700;
}

.shell-brand-text > span {
  color: var(--brand-cyan);
}

.shell-nav {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 100%;
  flex: 1;
  min-width: 0;
  /* overflow-x:auto clips dropdowns — keep visible */
  overflow: visible;
}

.shell-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.shell-link {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 0 12px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.shell-link:hover {
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.04);
}

.shell-link.active {
  color: #f3f4f6;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.shell-caret {
  font-size: 10px;
  opacity: 0.7;
}

.shell-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10001;
  min-width: 200px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  padding: 6px 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.shell-item:hover .shell-dropdown,
.shell-item:focus-within .shell-dropdown,
.shell-item.open .shell-dropdown {
  display: block;
}

.shell-drop-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  color: #f3f4f6;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.shell-drop-link:hover {
  background: var(--bg-hover);
}

.shell-drop-link.active {
  color: #3b82f6;
  background: var(--accent-soft);
}

.shell-drop-link.soon {
  color: #9ca3af;
  cursor: default;
}

.shell-soon {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 6px;
}

.shell-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.shell-chip {
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

@media (max-width: 900px) {
  .shell-brand-text { display: none; }
  .shell-link { padding: 0 8px; font-size: 12px; }
}
