:root {
  --bg: #090d16;
  --surface: #0f172a;
  --border: rgba(148, 163, 184, 0.16);
  --ink: #f1f5f9;
  --ink-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
}

/* ---------------------------------------------------------------- landing */
.landing-main {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signin {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 26px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.signin:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------------------------------------------------------------- shell */
.shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.shell-header {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 46px;
  flex: 0 0 46px;
  padding: 0 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.shell-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
}

.nav-tab {
  height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.nav-tab:hover { color: var(--ink); }

.nav-tab.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(56, 189, 248, 0.3);
  font-weight: 600;
}

.shell-user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-muted);
}

.user-name { font-weight: 500; color: var(--ink); }

.signout {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.signout:hover { color: var(--ink); }

/* ---------------------------------------------------------------- panels */
.shell-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.panel {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
}

.panel.is-active { display: flex; }

.panel-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 28px;
  flex: 0 0 28px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 12px;
}

.panel-title { color: var(--ink); font-weight: 600; }

.panel-host { font-variant-numeric: tabular-nums; }

.app-links {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.app-link, .panel-open {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.panel-open { margin-left: 14px; }

.app-link:hover, .panel-open:hover { color: var(--accent); border-color: var(--accent); }

.panel-frame {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: var(--bg);
}
