/* Nexflow hub — shared styles (matches site/: lime on near-black, Archivo). */
:root {
  --bg: #0A0A0A;
  --surface: #121212;
  --surface-2: #181818;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-2: rgba(255, 255, 255, 0.16);
  --text: #F2F2EF;
  --text-2: #A8A8A4;
  --text-3: #83837F;
  --lime: #5FB2FF;
  --lime-dim: rgba(95, 178, 255, 0.35);
  /* Text ON the accent. The accent is a light neon blue, so this is near-black.
     It was briefly light while the ERP tracked the site's darker blue. */
  --lime-ink: #0A1C33;
  --r-card: 16px;
  --r-btn: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.mono { font-family: 'JetBrains Mono', monospace; }

/* The brand is the NexFlow lockup image. It replaces the old CSS-drawn mark --
   a rounded square with an ::after bar through it, which read as a letter "I" --
   and the text wordmark beside it, since the artwork carries its own. The white
   variant is used because every hub page is on near-black. */
.brand-logo { height: 22px; width: auto; display: block; flex: none; }

/* .mark / .wordmark are deliberately gone: all three hub pages now use the
   lockup image above, and nothing referenced them any more. */

/* topbar (launcher + workspaces) */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-bottom: 1px solid var(--hairline);
}
.topbar .brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.topbar .right { display: flex; align-items: center; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--hairline-2); border-radius: 999px;
  padding: 7px 14px; text-decoration: none; cursor: pointer;
}
.chip:hover { border-color: var(--lime-dim); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.linkbtn {
  background: none; border: none; cursor: pointer;
  color: var(--text-3); font-size: 13px; font-family: inherit;
}
.linkbtn:hover { color: var(--text); }

/* centered auth card (sign in / workspaces) */
.center-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.card {
  width: 100%; max-width: 400px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 34px 30px;
}
.card .brandrow { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.card h1 { font-size: 24px; font-weight: 750; letter-spacing: -0.02em; margin: 0 0 6px; }
.card p.sub { margin: 0 0 22px; color: var(--text-2); font-size: 14px; }
label { display: block; font-size: 13px; color: var(--text-2); margin: 0 0 6px; }
input[type=email], input[type=password] {
  width: 100%; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--hairline-2); border-radius: var(--r-btn);
  padding: 11px 13px; font-size: 15px; font-family: inherit; outline: none;
}
input:focus { border-color: var(--lime-dim); }
.field { margin-bottom: 16px; }
.btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--lime); color: var(--lime-ink);
  font-weight: 650; font-size: 15px; font-family: inherit;
  padding: 12px 20px; border: none; border-radius: var(--r-btn); cursor: pointer;
  transition: filter 0.2s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.6; cursor: default; }
.notice {
  border-radius: var(--r-btn); padding: 10px 13px; font-size: 13.5px;
  margin-bottom: 16px; display: none;
}
.notice.error { display: block; background: rgba(255, 90, 90, 0.1); color: #ff9c9c; border: 1px solid rgba(255, 90, 90, 0.25); }
.notice.info { display: block; background: rgba(95, 178, 255, 0.08); color: var(--lime); border: 1px solid var(--lime-dim); }

/* workspace list */
.ws-list { display: flex; flex-direction: column; gap: 10px; }
.ws-item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--surface-2); border: 1px solid var(--hairline-2);
  border-radius: 12px; padding: 15px 17px; cursor: pointer; text-align: left;
  color: var(--text); font-family: inherit; font-size: 15px; font-weight: 600;
  transition: border-color 0.15s ease;
}
.ws-item:hover { border-color: var(--lime); }
.ws-item .ws-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--lime); color: var(--lime-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.ws-item .ws-sub { display: block; font-weight: 400; font-size: 12.5px; color: var(--text-3); }

/* launcher grid */
.launch { max-width: 1080px; margin: 0 auto; padding: 44px 28px 72px; }
.launch h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 750; letter-spacing: -0.02em; margin: 0 0 6px; }
.launch p.sub { color: var(--text-2); margin: 0 0 34px; font-size: 15px; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px;
}
.tile {
  display: block; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 20px 20px 18px;
  color: var(--text); text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tile:hover { border-color: var(--lime); transform: translateY(-2px); }
.tile .key {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--lime);
}
.tile h3 { margin: 6px 0 5px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.tile p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.tile.locked { opacity: 0.38; pointer-events: none; }
.tile.locked .key::after { content: " · locked"; color: var(--text-3); }
.skeleton { color: var(--text-3); font-size: 14px; }
