/* ============================================================================
   EXERGY TALENT DASHBOARD — Living Blueprint design system
   Surface/ink/accent/signal tokens are taken from the canonical exergy-website
   rebrand. The status hues --reject (oxide red) and --paid (slate) are EXTENSION
   tokens, added here for dashboard status legibility — not part of the canonical palette.
   Surface A = energetic editorial (paper + forest bands).
   Surface B = data-dense dashboard (KPI cards, ledgers, tabular money).
   ========================================================================== */

:root {
  /* surfaces (warm paper) */
  --bg-primary: #FDFDFB;
  --bg-secondary: #F7F5EE;
  --bg-tertiary: #F1F4EF;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(16, 38, 25, 0.025);
  /* ink (forest near-black) */
  --text-primary: #10241A;
  --text-secondary: #2C3B32;
  --text-muted: #5C6A63;
  /* forest accent */
  --accent: #1C6B45;
  --accent-light: #2F9D63;   /* DECORATION ONLY — never text */
  --accent-dark: #124E32;
  --accent-glow: rgba(28, 107, 69, 0.10);
  --accent-gradient: linear-gradient(135deg, #124E32 0%, #1C6B45 100%);
  /* signal (warm amber) — trust / award / do-not-cross only */
  --signal: #946410;
  --signal-bright: #E0A23C;
  --signal-soft: rgba(148, 100, 16, 0.10);
  /* status hues (dashboard semantics) */
  --ok: #1C6B45;
  --pending: #946410;                       /* decorative amber — borders/meters/SVG only */
  --pending-ink: #7A520C;                    /* AA-safe amber for TEXT on soft tints (>=4.5:1) */
  --pending-soft: rgba(148, 100, 16, 0.12);
  --reject: #8A3324;                         /* extension token — earthen oxide red */
  --reject-soft: rgba(138, 51, 36, 0.10);
  --paid: #2C5E8A;                           /* extension token — slate */
  --paid-soft: rgba(44, 94, 138, 0.10);
  /* lines / borders / blueprint grid */
  --border: #DCE4DD;
  --border-hover: #C6D2C8;
  --border-accent: rgba(28, 107, 69, 0.22);
  --rule: #DCE4DD;
  --grid: rgba(16, 38, 25, 0.04);
  /* gradients / premium */
  --gradient-2: linear-gradient(135deg, rgba(28, 107, 69, 0.10) 0%, rgba(47, 157, 99, 0.04) 100%);
  --metal-gradient: linear-gradient(135deg, #FBFCFD 0%, #AEB6BB 48%, #434B51 100%);
  /* fonts */
  --display: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  /* radius / motion */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  /* shadows (paper) */
  --shadow-sm: 0 1px 3px rgba(16, 38, 25, 0.06);
  --shadow-md: 0 8px 28px rgba(16, 38, 25, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 38, 25, 0.12);
  --shadow-card: 0 4px 24px rgba(16, 38, 25, 0.06), 0 0 0 1px var(--border);
  /* spacing */
  --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem; --space-5:1.5rem;
  --space-6:2rem; --space-7:2.5rem; --space-8:3rem; --space-9:4rem; --space-10:6rem;
  --pill: 50px;
  --nav-h: 64px;
}

/* ===== DARK FOREST BAND (hero / earnings / footer) ===== */
.band-forest {
  --bg-primary: #0A1A0F;
  --bg-secondary: #0F2113;
  --bg-tertiary: #16301C;
  --bg-card: #16301C;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --text-primary: #EEF3EE;
  --text-secondary: #C4D2C7;
  --text-muted: #93A698;
  --accent: #8FDCAE;
  --accent-light: #B7E8CD;
  --accent-dark: #B7E8CD;
  --accent-glow: rgba(143, 220, 174, 0.13);
  --accent-gradient: linear-gradient(135deg, #8FDCAE, #B7E8CD);
  --signal: #E0A23C;
  --signal-bright: #E0A23C;
  --pending: #E0A23C;
  --pending-ink: #E0A23C;       /* bright amber stays legible on dark forest bands */
  --border: rgba(199, 208, 203, 0.16);
  --border-hover: rgba(199, 208, 203, 0.28);
  --rule: rgba(199, 208, 203, 0.16);
  --grid: rgba(255, 255, 255, 0.05);
  background: var(--bg-primary);
  color: var(--text-secondary);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.num  { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* eyebrow / kicker */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}

.wrap { width: min(1180px, 92vw); margin-inline: auto; }
.wrap-narrow { width: min(880px, 92vw); margin-inline: auto; }

/* blueprint grid backdrop */
.blueprint-bg {
  position: relative;
}
.blueprint-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 40%, transparent 100%);
}
.blueprint-bg > * { position: relative; z-index: 1; }

/* ============================ TOP NAV ============================ */
.nav {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(253, 253, 251, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--border);
}
.nav.on-forest {
  background: rgba(10, 26, 15, 0.74);
  border-bottom-color: rgba(199,208,203,.16);
  color: var(--text-primary);
}
.brand { display: flex; align-items: center; gap: .6rem; }
.mark {
  width: 30px; height: 30px; border-radius: 8px;
  object-fit: cover; flex: none;
  background: var(--accent-gradient);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.1rem;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255,255,255,.06);
}
.brand .word { font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: .02em; }
.brand .tag { font-family: var(--mono); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.3rem; border-radius: var(--pill);
  font-weight: 600; font-size: .92rem;
  transition: var(--transition-fast); white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent-gradient); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .48rem .9rem; font-size: .82rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:focus-visible, a:focus-visible, .chip:focus-visible, .tab:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ============================ CHIPS / TAGS ============================ */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .32rem .72rem; border-radius: var(--pill);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em;
  border: 1px solid var(--border); color: var(--text-secondary);
  background: var(--bg-card); transition: var(--transition-fast);
}
.chip.active, .chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip:not(.static):hover { border-color: var(--accent); }
.tag {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .6rem; border-radius: 6px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase;
  font-weight: 600;
}
.tag-discipline { background: var(--accent-glow); color: var(--accent); }
.tag-industry { background: var(--bg-tertiary); color: var(--text-muted); }

/* status pills */
.status { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .6rem; border-radius: var(--pill);
  font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-cleared, .status-approved { color: var(--ok); background: var(--accent-glow); }
.status-pending { color: var(--pending-ink); background: var(--pending-soft); }
.status-paid { color: var(--paid); background: var(--paid-soft); }
.status-rejected { color: var(--reject); background: var(--reject-soft); }
.status-processing, .status-queued { color: var(--paid); background: var(--paid-soft); }

/* ============================ CARDS ============================ */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-pad { padding: var(--space-5); }

/* ============================ SURFACE A — SHOWCASE ============================ */
.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  text-align: center;
}
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero .sub { font-size: clamp(1.02rem, 2vw, 1.22rem); color: var(--text-secondary); max-width: 56ch; margin: 1.4rem auto 2rem; }
.hero .cta-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero .trust { margin-top: 2.4rem; display: flex; gap: clamp(1rem,4vw,2.6rem); justify-content: center; flex-wrap: wrap; }
.hero .trust .stat { text-align: center; }
.hero .trust .stat b { font-family: var(--mono); font-size: 1.5rem; color: var(--accent); display: block; }
.hero .trust .stat span { font-size: .78rem; color: var(--text-muted); letter-spacing: .04em; }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto clamp(2rem,4vw,3rem); }
.section-head .eyebrow { display: block; margin-bottom: .8rem; }
.section-head p { color: var(--text-secondary); margin-top: .8rem; }

/* gallery */
.gallery-controls { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.filter-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.filter-row .filter-label { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); margin-right: .3rem; }
.gallery {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.tile {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); box-shadow: var(--shadow-sm);
  transition: var(--transition); display: flex; flex-direction: column;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-accent); }
.tile .viz { aspect-ratio: 16 / 10; background: var(--bg-tertiary); position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.tile .viz svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile .viz .viz-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.tile .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.tile .tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.tile h3 { font-size: 1.18rem; line-height: 1.2; }
.tile .blurb { font-size: .9rem; color: var(--text-secondary); }
.tile .metric { margin-top: auto; font-family: var(--mono); font-size: .76rem; color: var(--accent); letter-spacing: .02em; padding-top: .4rem; }

/* 3-step explainer */
.steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); position: relative; }
.step .n { font-family: var(--mono); font-size: .8rem; color: var(--accent); font-weight: 600; }
.step h3 { font-size: 1.25rem; margin: .5rem 0 .4rem; }
.step p { font-size: .9rem; color: var(--text-secondary); }
.step .big { font-family: var(--mono); font-size: 1.05rem; color: var(--accent); margin-top: .7rem; }

/* timeline (how it works) */
.timeline { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); counter-reset: tl; }
.tl-item { padding: 1.3rem; border-radius: var(--radius); background: var(--bg-glass); border: 1px solid var(--border); }
.tl-item .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-gradient); color:#fff; display:grid; place-items:center; font-family: var(--mono); font-weight: 600; font-size: .85rem; margin-bottom: .7rem; }
.tl-item h4 { font-family: var(--sans); font-size: .98rem; font-weight: 700; margin-bottom: .3rem; }
.tl-item p { font-size: .85rem; color: var(--text-secondary); }

/* what-we-look-for grid */
.lookfor { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); }
.lookfor .lf { padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); }
.lookfor .lf h4 { font-family: var(--sans); font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.lookfor .lf ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.lookfor .lf li { font-size: .86rem; color: var(--text-secondary); display: flex; gap: .5rem; }
.lookfor .lf li::before { content: "▸"; color: var(--accent); }

/* scarcity */
.scarcity { text-align: center; border-radius: var(--radius-lg); padding: clamp(2.4rem,5vw,3.6rem); }
.scarcity .meter { width: min(520px, 90%); margin: 1.6rem auto .6rem; height: 12px; border-radius: var(--pill); background: rgba(255,255,255,.12); overflow: hidden; border: 1px solid var(--border); }
.scarcity .meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--signal-bright), var(--accent)); }
.scarcity .meter-label { font-family: var(--mono); font-size: .76rem; color: var(--text-muted); }

/* apply form */
.apply-card { max-width: 640px; margin-inline: auto; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 600; color: var(--text-secondary); }
.field label .req { color: var(--signal); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: .92rem; color: var(--text-primary);
  padding: .7rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-card); transition: var(--transition-fast);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field .hint { font-size: .72rem; color: var(--text-muted); }
.field .err { font-size: .72rem; color: var(--reject); display: none; }
.field.invalid input, .field.invalid select { border-color: var(--reject); }
.field.invalid .err { display: block; }
.apply-success { text-align: center; padding: 2rem; }
.apply-success .check { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--accent-glow); color: var(--accent); display: grid; place-items: center; font-size: 2rem; }
.queue-badge { font-family: var(--mono); font-size: 1.3rem; color: var(--accent); }

/* ============================ FOOTER ============================ */
.footer { padding: clamp(2.5rem,5vw,4rem) 0 2rem; }
.footer .cols { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer .word { font-family: var(--display); font-size: 1.5rem; }
.footer small { color: var(--text-muted); font-size: .8rem; }
.footer .links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer .links a { font-size: .86rem; color: var(--text-secondary); }
.footer .links a:hover { color: var(--accent); }

/* ============================================================================
   SURFACE B — AUTHENTICATED DASHBOARD
   ========================================================================== */
.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.side {
  border-right: 1px solid var(--border); background: var(--bg-secondary);
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 1.2rem .9rem;
}
.side .brand { padding: .3rem .5rem 1.2rem; }
.side-nav { display: flex; flex-direction: column; gap: .2rem; }
.side-nav a {
  display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: var(--radius-sm);
  font-size: .92rem; font-weight: 500; color: var(--text-secondary); transition: var(--transition-fast);
}
.side-nav a .ic { width: 18px; height: 18px; opacity: .8; flex: none; }
.side-nav a:hover { background: var(--bg-glass); color: var(--text-primary); }
.side-nav a.active { background: var(--accent-glow); color: var(--accent); font-weight: 600; }
.side .who { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; align-items: center; gap: .6rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-gradient); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.who .meta b { font-size: .86rem; display: block; }
.who .meta span { font-size: .72rem; color: var(--text-muted); }

.main { min-width: 0; }
.topbar-mobile { display: none; }

/* earnings top bar */
.earn-bar { padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.2rem,3vw,2.4rem); }
.earn-grid { display: grid; gap: 1rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.earn-today { display: flex; flex-direction: column; gap: .3rem; }
.earn-today .label { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.earn-today .big-money { font-family: var(--mono); font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.earn-today .split { display: flex; gap: 1.2rem; margin-top: .5rem; }
.earn-today .split div { font-size: .8rem; }
.earn-today .split .k { font-family: var(--mono); font-weight: 600; }
.earn-today .split .cl { color: var(--accent); }
.earn-today .split .pn { color: var(--pending); }
.live-dot { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .66rem; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
.live-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1);} 50%{opacity:.4; transform:scale(.7);} }
.kpi { padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--bg-glass); border: 1px solid var(--border); }
.kpi .label { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.kpi .val { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; margin-top: .25rem; }
.kpi .note { font-size: .74rem; color: var(--text-muted); margin-top: .15rem; }
.payout-count { color: var(--signal); }

/* content area */
.content { padding: clamp(1.4rem,3vw,2.2rem) clamp(1.2rem,3vw,2.4rem) 4rem; }
.page-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.page-title h2 { font-size: 1.7rem; }
.page-title .sub { color: var(--text-muted); font-size: .88rem; }
.grid-2 { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
.grid-auto { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); }
.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--border); }
.panel-head h3 { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; }
.panel-head .link { font-size: .82rem; color: var(--accent); font-weight: 600; }
.panel-body { padding: 1.2rem 1.3rem; }

/* opportunity card */
.opp { padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--border); display: grid; gap: .6rem; }
.opp:last-child { border-bottom: none; }
.opp .top { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.opp h4 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; }
.opp .tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .3rem; }
.opp .facts { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .82rem; color: var(--text-secondary); }
.opp .facts b { font-family: var(--mono); color: var(--text-primary); }
.match { text-align: center; flex: none; }
.match .ring { --p: 0; width: 56px; height: 56px; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p)*1%), var(--border) 0);
  display: grid; place-items: center; position: relative; }
.match .ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--bg-card); }
.match .ring b { position: relative; font-family: var(--mono); font-size: .9rem; font-weight: 600; z-index: 1; }
.match .lbl { font-family: var(--mono); font-size: .58rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-top: .2rem; }
.opp .terms { display: none; gap: .4rem; flex-wrap: wrap; }
.opp.expanded .terms { display: flex; }
.term { font-family: var(--mono); font-size: .68rem; padding: .2rem .5rem; border-radius: 6px; background: var(--bg-tertiary); color: var(--text-muted); }
.opp .actions { display: flex; gap: .6rem; }

/* discovery strip */
.strip { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .6rem; scroll-snap-type: x mandatory; }
.strip .tile { min-width: 240px; scroll-snap-align: start; }

/* assignments */
.assign { display: grid; gap: 1rem; }
.assign .head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; flex-wrap: wrap; }
.assign h4 { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; }
.assign .code { font-family: var(--mono); font-size: .72rem; color: var(--text-muted); }
.bar { height: 9px; border-radius: var(--pill); background: var(--bg-tertiary); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent-gradient); }
.bar.over > i { background: linear-gradient(90deg, var(--signal-bright), var(--reject)); }
.goal { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px dashed var(--border); }
.goal:last-child { border-bottom: none; }
.goal .gck { width: 24px; height: 24px; min-width: 24px; min-height: 24px; border-radius: 6px; border: 1.5px solid var(--border); flex: none; display: grid; place-items: center; cursor: pointer; font-size: .85rem; color: var(--accent); background: var(--bg-card); }
.goal .gck.done { background: var(--accent); border-color: var(--accent); color: #fff; }
.goal.done .gtext { color: var(--text-muted); text-decoration: line-through; }
.goal .gtext { font-size: .9rem; flex: 1; }

/* tables / ledger */
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbl th { text-align: left; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); font-weight: 600; padding: .7rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
.tbl tr:last-child td { border-bottom: none; }
.tbl .r { text-align: right; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl .money { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl tr.drill { cursor: pointer; }
.tbl tr.drill:hover { background: var(--bg-glass); }
.tbl .caret { transition: transform .2s; display: inline-block; color: var(--text-muted); }
.tbl tr.open .caret { transform: rotate(90deg); }
.blocks-row td { background: var(--bg-secondary); padding: 0; }
.blocks { padding: .6rem 1.2rem 1rem 2.4rem; display: grid; gap: .4rem; }
.block { display: grid; grid-template-columns: 90px 1fr 110px 90px; gap: .8rem; align-items: center; font-size: .8rem; padding: .35rem .6rem; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border); }
.block .act { height: 6px; border-radius: var(--pill); background: var(--bg-tertiary); overflow: hidden; }
.block .act > i { display: block; height: 100%; background: var(--accent); }
.shot { width: 26px; height: 18px; border-radius: 3px; background: var(--metal-gradient); opacity: .5; }
.table-scroll { overflow-x: auto; }

/* sparkline */
.spark { height: 44px; width: 100%; }
.spark path.line { fill: none; stroke: var(--accent); stroke-width: 2; }
.spark path.area { fill: var(--accent-glow); stroke: none; }

/* payout method */
.method-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.method-row:last-child { border-bottom: none; }
.method-row .k { font-size: .82rem; color: var(--text-muted); }
.method-row .v { font-family: var(--mono); font-size: .88rem; }
.kv-list { display: grid; gap: 0; }

/* profile */
.skill-bars { display: grid; gap: .7rem; }
.skill-bar .sk-top { display: flex; justify-content: space-between; font-size: .86rem; margin-bottom: .25rem; }
.skill-bar .sk-top .pr { font-family: var(--mono); color: var(--text-muted); font-size: .76rem; }
.skill-bar .track { height: 7px; border-radius: var(--pill); background: var(--bg-tertiary); overflow: hidden; }
.skill-bar .track > i { display: block; height: 100%; background: var(--accent-gradient); }
.toggle { position: relative; width: 46px; height: 26px; border-radius: var(--pill); background: var(--border); transition: var(--transition-fast); flex: none; }
.toggle[aria-checked="true"] { background: var(--accent); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: var(--transition-fast); box-shadow: var(--shadow-sm); }
.toggle[aria-checked="true"]::after { transform: translateX(20px); }

/* tracker handoff */
.tracker-cta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.sync-ok { color: var(--accent); }

/* banners */
.demo-banner {
  background: var(--signal-soft); color: var(--pending-ink); border-bottom: 1px solid var(--border);
  font-size: .8rem; text-align: center; padding: .4rem 1rem; font-family: var(--mono); letter-spacing: .02em;
}
.callout { background: var(--gradient-2); border: 1px solid var(--border-accent); border-radius: var(--radius); padding: 1.1rem 1.3rem; font-size: .88rem; color: var(--text-secondary); }
.callout b { color: var(--text-primary); }

/* tabs */
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--border); margin-bottom: 1.4rem; flex-wrap: wrap; }
.tab { padding: .6rem 1rem; font-size: .9rem; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab:hover { color: var(--text-primary); }

/* utility */
.muted { color: var(--text-muted); }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
.flex{display:flex}.between{justify-content:space-between}.center{align-items:center}.gap{gap:.6rem}.wrap-f{flex-wrap:wrap}
.hide{display:none !important}
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.skip-link { position:absolute; left:-999px; top:.5rem; z-index:2000; background:var(--accent); color:#fff; padding:.5rem 1rem; border-radius:8px; }
.skip-link:focus { left:.5rem; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1080px) {
  .earn-grid { grid-template-columns: 1fr 1fr; }
  .earn-today { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .app-shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .side.open { display: flex; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 1200; width: 264px; box-shadow: var(--shadow-lg); }
  .topbar-mobile {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--nav-h); padding: 0 1.1rem; position: sticky; top: 0; z-index: 1100;
    background: rgba(253,253,251,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
  }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .scrim { position: fixed; inset: 0; background: rgba(10,26,15,.4); z-index: 1150; }
  .block { grid-template-columns: 80px 1fr 90px; }
  .block .shot { display: none; }
}
@media (max-width: 560px) {
  .earn-grid { grid-template-columns: 1fr; }
  .footer .cols { flex-direction: column; gap: 1.2rem; }
  /* keep the primary "Apply to join" CTA on-screen on phones: drop the long secondary link */
  .nav .nav-actions .btn-ghost { display: none; }
}

/* ============================ MOTION SAFETY ============================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .live-dot i { animation: none; }
}
