/*!************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!../../packages/ui/src/tokens.css ***!
  \************************************************************************************************************************************************************************************************************************************************************************************/
/* OpenBean design tokens — the brand system.
   Single dark theme, deliberately: deep black, one accent (bean green), calm and
   technical, never a light/dark toggle away from being itself. Source of truth for
   the palette is the brand mark at apps/web/public/logo.png (sampled: rgb(124,201,82)). */

:root {
  /* --- surfaces --- */
  --paper: #050605;           /* page background — near-black, not pure #000 (kinder on OLED/eyes) */
  --surface: #0d0f0d;         /* raised panels: cards, the topbar, form fields */
  --surface-2: #14170f;       /* one step further raised (hover states, nested panels) */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --blur: 18px;

  /* --- ink --- */
  --ink: #f1f4ee;             /* primary text — warm-white, not clinical pure white */
  /* Secondary text — desaturated green-grey, not plain grey. #8e988a
     measured 6.4:1 on --surface: technically AA, but most --muted
     usage is 11-13px (section labels, table headers, card subs, meta
     lines), where it read dim on real screens. #a5b0a0 is 8.5:1 on
     --surface / 9.0:1 on --paper — same hue family, clearly legible. */
  --muted: #a5b0a0;
  /* The floor for deliberately-quiet text (timestamps, placeholders,
     de-emphasized search hints). Anything dimmer than this fails at
     small sizes — the old pattern of alpha-fading --muted (opacity
     .7 / color-mix 70%) landed at 3.7:1 and was unreadable. 5.1:1 on
     --surface. Use this token; never alpha-fade ink. */
  --muted-dim: #7d8779;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);

  /* --- the one accent: bean green --- */
  --accent: #7cc952;
  --accent-bright: #9fe873;   /* hover / glow highlight */
  --accent-deep: #4c9a2e;     /* pressed state, deep fills */
  --accent-ink: #b7f09a;      /* accent text on dark surfaces (links, highlighted values) */
  --accent-wash: rgba(124, 201, 82, 0.12);
  --accent-line: rgba(124, 201, 82, 0.35);
  --glow-accent: 0 0 1px rgba(124, 201, 82, 0.6), 0 0 28px rgba(124, 201, 82, 0.22);
  --glow-accent-lg: 0 0 1px rgba(124, 201, 82, 0.7), 0 0 64px rgba(124, 201, 82, 0.28);

  /* --- semantic (status), tinted toward the same dark palette --- */
  --danger: #ef7b6a;
  --danger-wash: rgba(239, 123, 106, 0.12);
  --danger-line: rgba(239, 123, 106, 0.35);
  --warn-wash: rgba(230, 179, 74, 0.12);
  --warn-ink: #e6b34a;
  --review-line: rgba(230, 179, 74, 0.35);
  --role-line: var(--accent-line);
  --member-wash: rgba(255, 255, 255, 0.04);
  --member-line: var(--line-strong);

  /* --- shape --- */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.5);

  /* --- legacy "--ws-*" aliases ---
     Several workspace components (Connections' QuickConnect/
     InstallerCommand, Home's MissionCard, /try) were written inline
     against a "--ws-*" vocabulary that never existed in this system,
     each var() carrying a GitHub-light-theme fallback — so on the
     real dark theme they rendered WHITE cards and panels with
     near-white inherited text (the washed-out sections). Defining the
     aliases here flips every fallback off at once, mapped onto the
     real palette. New code should use the primary tokens above. */
  --ws-fg: var(--ink);
  --ws-muted: var(--muted);
  --ws-border: var(--line-strong);
  --ws-card-bg: var(--surface);
  /* used as a CARD BACKGROUND (the "Quick reference" panel) — its
     original fallback was a pale surface tint, so the right dark
     mapping is the raised surface, NOT the accent (a first mapping
     to var(--accent) turned the whole card saturated green with
     white text on it). */
  --ws-card-accent: var(--surface-2);
  --ws-accent: var(--accent-ink);
  --ws-accent-bg: var(--surface-2);
  --ws-ok: var(--accent);
  --ws-ok-bg: var(--accent-wash);
  --ws-error: var(--danger);
  --ws-error-bg: var(--danger-wash);
  --ws-warn: var(--warn-ink);
  --ws-code-bg: #030402;   /* matches .snippet */
  --ws-code-fg: #dff2d3;
}

/* OpenBean is a deliberate single dark identity, not a light/dark toggle — this rule
   exists only so a browser/OS light-mode preference can't silently fight the brand. */
@media (prefers-color-scheme: light) {
  :root { color-scheme: dark; }
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--paper);
  background-image:
    radial-gradient(90% 60% at 15% -10%, rgba(124, 201, 82, 0.07) 0%, transparent 55%),
    radial-gradient(70% 50% at 100% 0%, rgba(124, 201, 82, 0.05) 0%, transparent 60%);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 15px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { font-weight: 650; letter-spacing: -0.02em; line-height: 1.12; margin: 0; color: var(--ink); }
h1 { font-size: 2rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.02rem; font-weight: 600; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent-bright); }
code, .mono { font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace; font-size: 0.85em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* top bar */
.topbar {
  position: -webkit-sticky;
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 5, 0.72);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-size: 1.05rem; font-weight: 650; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.brand .brand-mark { width: 26px; height: 26px; display: inline-block; object-fit: contain; vertical-align: middle; filter: drop-shadow(0 0 10px rgba(124, 201, 82, 0.45)); }
.brand small { font-family: ui-sans-serif, system-ui; font-size: 0.66rem; color: var(--accent-ink); letter-spacing: 0.1em; text-transform: uppercase; background: var(--accent-wash); border: 1px solid var(--accent-line); padding: 2px 8px; border-radius: 20px; }

/* cards / sections — the glass panel is the base unit of the whole system */
.grid { display: grid; grid-gap: 20px; gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--glass-bg), rgba(255, 255, 255, 0.015)), var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.card:hover { border-color: var(--line-strong); }
.card > header { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card > header p { margin: 3px 0 0; color: var(--muted); font-size: 0.82rem; }
.card .body { padding: 18px 22px; }
/* 0.74rem is the floor for uppercase+letterspaced micro-type: at the
   old 0.70-0.72rem (~11px) these were the least-readable text in the
   product even after the --muted contrast bump. */
.section-label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* table */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 9px 22px; border-bottom: 1px solid var(--line); }
td { padding: 12px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.015); }

/* badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; border: 1px solid transparent; }
.badge.review { background: var(--warn-wash); color: var(--warn-ink); border-color: var(--review-line); }
.badge.quarantined { background: var(--danger-wash); color: var(--danger); border-color: var(--danger-line); }
.badge.role { background: var(--accent-wash); color: var(--accent-ink); border-color: var(--role-line); }
.badge.role.member { background: var(--member-wash); color: var(--muted); border-color: var(--member-line); }

/* buttons */
.btn { font: inherit; font-size: 0.86rem; font-weight: 560; padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, transform .1s ease; }
.btn:hover { border-color: var(--accent-line); color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #06210a; font-weight: 650; box-shadow: var(--glow-accent); }
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); box-shadow: var(--glow-accent-lg); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); padding: 7px 10px; }
.btn-ghost:hover { color: var(--ink); border-color: var(--line-strong); transform: none; }
.btn-danger { color: var(--danger); border-color: var(--danger-line); }
.btn-danger:hover { background: var(--danger-wash); border-color: var(--danger); }
.btn-sm { padding: 6px 11px; font-size: 0.8rem; }

/* forms */
.field { display: block; margin-bottom: 16px; }
.field label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; font-weight: 550; }
input, select {
  font: inherit; font-size: 0.92rem; width: 100%; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  transition: border-color .14s ease, box-shadow .14s ease;
}
input::placeholder { color: var(--muted-dim); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row .field { flex: 1 1; min-width: 160px; margin-bottom: 0; }

/* auth screens */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .card { width: 100%; max-width: 400px; }
.auth h1 { font-size: 1.5rem; margin-bottom: 4px; }
.auth .sub { color: var(--muted); margin: 0 0 20px; font-size: 0.9rem; }
.auth .alt { margin-top: 16px; font-size: 0.85rem; color: var(--muted); }

.error { background: var(--danger-wash); color: var(--danger); border: 1px solid var(--danger-line); border-radius: var(--radius-sm); padding: 10px 13px; font-size: 0.85rem; margin-bottom: 14px; }
.empty { color: var(--muted); font-size: 0.9rem; padding: 8px 0; }
.snippet { background: #030402; color: #dff2d3; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-family: ui-monospace, monospace; font-size: 0.8rem; line-height: 1.6; white-space: pre; overflow-x: auto; }
.muted { color: var(--muted); }
.belief-val { font-weight: 550; }
.stack > * + * { margin-top: 10px; }

/* site footer — shared across every page, not just the marketing site */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 40px 0 0; }
.site-footer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; padding-bottom: 28px; }
.site-footer-brand { max-width: 340px; }
.site-footer-brand p { margin: 10px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer-links a { color: var(--muted); font-size: 0.86rem; }
.site-footer-links a:hover { color: var(--accent-ink); }
.site-footer-sub { border-top: 1px solid var(--line); padding: 16px 0 28px; color: var(--muted); font-size: 0.78rem; }

@media (max-width: 640px) {
  .site-footer-grid { flex-direction: column; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

