/* findmeafuckingjob - focused product UI */

:root {
  --bg: #f5f7fb;
  --bg-2: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #edf2f7;
  --ink: #1d232f;
  --text: #1d232f;
  --text-dim: #5f6b7a;
  --text-faint: #8792a2;
  --border: #dbe2ea;
  --border-strong: #b8c4d0;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-soft: #e0f2f1;
  --violet: #6d5dfc;
  --violet-soft: #ecebff;
  --warm: #c76a1c;
  --warm-soft: #fff1df;
  --danger: #c83232;
  --danger-soft: #fee6e6;
  --ok: #177245;
  --ok-soft: #e1f6ea;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 18px 48px rgba(29, 35, 47, 0.12);
  --shadow-sm: 0 8px 24px rgba(29, 35, 47, 0.08);
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --maxw: 1220px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

/* Shell */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.18) 48% 52%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(255, 255, 255, 0.18) 48% 52%, transparent 52%),
    conic-gradient(from 90deg, var(--accent) 0 25%, var(--ink) 0 50%, var(--violet) 0 75%, var(--warm) 0);
  border: 1px solid rgba(29, 35, 47, 0.18);
  color: #ffffff;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
  box-shadow: 0 10px 22px rgba(29, 35, 47, 0.16);
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-accent { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  text-decoration: none;
}

.nav-link:hover {
  background: var(--surface-3);
  color: var(--ink);
  text-decoration: none;
}

.nav-link.active {
  background: var(--ink);
  color: #ffffff;
}

.nav-cta {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.nav-cta:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.nav-logout:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.app {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 28px 72px;
}

.boot {
  padding: 24px;
  color: var(--text-faint);
  font-family: var(--mono);
}

.footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 28px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
  background: var(--surface);
}

.footer a {
  color: var(--text-dim);
  font-weight: 750;
}

.footer a:hover {
  color: var(--accent);
}

.footer-sep { color: var(--border-strong); }

/* Type */
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  font-size: 42px;
  font-weight: 820;
}

h2 {
  font-size: 24px;
  font-weight: 780;
}

h3 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p { margin: 0; }

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  max-width: 68ch;
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 17px;
}

.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mono { font-family: var(--mono); }
.kicker { color: var(--accent); font-weight: 800; }

/* Layout helpers */
.section { margin-top: 24px; }

.page-header,
.view-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.page-actions,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.row-end { justify-content: flex-end; }
.spacer { flex: 1; }

/* Surfaces */
.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card {
  padding: 20px;
}

.panel {
  padding: 22px;
}

.card-2,
.subpanel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.action-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.divider {
  height: 1px;
  margin: 22px 0;
  background: var(--border);
}

/* Forms */
.field { margin-bottom: 16px; }

label,
.label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 750;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.hint {
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 13px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.08s;
}

.btn:hover {
  background: var(--surface-3);
  text-decoration: none;
}

.btn:active { transform: translateY(1px); }

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
}

.btn-danger {
  border-color: var(--danger);
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger-soft);
}

.btn-sm {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* Badges */
.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.2;
}

.pill { padding: 5px 9px; }
.tag { padding: 4px 7px; }

.pill-accent {
  border-color: rgba(15, 118, 110, 0.35);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.pill-warm {
  border-color: rgba(199, 106, 28, 0.35);
  background: var(--warm-soft);
  color: var(--warm);
}

.pill-cool {
  border-color: rgba(109, 93, 252, 0.35);
  background: var(--violet-soft);
  color: var(--violet);
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

/* Auth */
body.landing .app {
  max-width: 1180px;
  padding-top: 34px;
}

.auth-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 390px;
  gap: 22px;
  align-items: stretch;
}

.auth-intro,
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  padding: 34px;
  overflow: hidden;
}

.hero-title {
  font-size: 48px;
  font-weight: 860;
}

.hero-sub {
  max-width: 620px;
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 18px;
}

.auth-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.proof-item {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.proof-num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 900;
}

.proof-label {
  margin-top: 2px;
  color: var(--text-dim);
  font-size: 13px;
}

.workflow-preview {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.workflow-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.workflow-index {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #ffffff;
  font-family: var(--mono);
  font-weight: 900;
}

.workflow-title {
  font-weight: 850;
}

.workflow-note {
  color: var(--text-faint);
  font-size: 13px;
}

.auth-card {
  align-self: start;
  padding: 26px;
}

.auth-card h2 {
  margin-bottom: 8px;
}

.auth-status {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 14px;
}

.magic-devlink {
  font-weight: 800;
}

/* Profile */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.dropzone {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 24px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.08s;
}

.dropzone:hover,
.dropzone.drag {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone:active { transform: translateY(1px); }

.dropzone-title {
  font-size: 18px;
  font-weight: 850;
}

.dropzone-sub {
  max-width: 52ch;
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 14px;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.integration-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.chat-log {
  height: 210px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 14px;
  white-space: pre-wrap;
}

.chat-line {
  margin-bottom: 8px;
}

.timeline-axis {
  min-height: 220px;
  overflow-x: auto;
  padding: 4px 0 6px;
}

.tl-track {
  position: relative;
  min-height: calc(122px + var(--lanes, 1) * 64px);
  padding: 42px 20px 54px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.07) 1px, transparent 1px) 0 0 / 92px 100%,
    var(--surface-2);
}

.tl-axis {
  position: absolute;
  top: 24px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--border-strong);
}

.tl-tick {
  position: absolute;
  top: -5px;
  width: 1px;
  height: 12px;
  background: var(--border-strong);
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 11px;
}

.tl-tick-label {
  position: absolute;
  top: -20px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.tl-now {
  position: absolute;
  top: -11px;
  bottom: -260px;
  width: 2px;
  background: var(--warm);
}

.tl-now::after {
  content: "now";
  position: absolute;
  top: -24px;
  left: 6px;
  color: var(--warm);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.tl-bars {
  position: relative;
  min-height: calc(44px + var(--lanes, 1) * 64px);
}

.tl-bar {
  position: absolute;
  top: calc(22px + var(--lane) * 64px);
  min-width: 88px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 118, 110, 0.35);
  border-radius: var(--radius-sm);
  background: #dff5f1;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.tl-bar.edu {
  border-color: rgba(109, 93, 252, 0.35);
  background: var(--violet-soft);
}

.tl-bar-title {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tl-bar-meta {
  margin-top: 3px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 11px;
}

.tl-legend {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 12px;
}

.tl-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.tl-dot.edu { background: var(--violet); }

.tl-hint { margin-left: auto; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.project-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-name {
  color: var(--ink);
  font-weight: 850;
}

.project-desc {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 14px;
}

.project-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
}

/* Jobs and dashboard */
.job,
.response {
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.job-head,
.response-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.job-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.job-company {
  margin-top: 2px;
  color: var(--text-dim);
}

.job-loc,
.job-meta {
  margin-top: 10px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 12px;
}

.job-desc {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 14px;
}

.score {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.score-bar {
  position: relative;
  width: 118px;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-3);
}

.score-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--violet));
}

.score-num {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat-num {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 900;
}

.stat-label {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 850;
}

.status.applied,
.status.responded { color: var(--accent); }
.status.interview,
.status.negotiating { color: var(--warm); }
.status.declined,
.status.rejected { color: var(--danger); }

.response-body {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 14px;
  white-space: pre-wrap;
}

/* Graph */
.goal-input {
  min-height: 54px !important;
  padding: 14px 16px !important;
  font-size: 20px !important;
  font-weight: 750;
}

.graph-wrap {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(29, 35, 47, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(0deg, rgba(29, 35, 47, 0.04) 1px, transparent 1px) 0 0 / 56px 56px,
    #ffffff;
  box-shadow: var(--shadow-sm);
}

.graph-svg {
  display: block;
  width: 100%;
  height: 560px;
  cursor: grab;
}

.graph-svg:active { cursor: grabbing; }

.node-circle {
  cursor: pointer;
  transition: filter 0.15s, r 0.2s;
}

.node-circle:hover {
  filter: drop-shadow(0 6px 14px rgba(29, 35, 47, 0.24));
}

.node-label {
  fill: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  pointer-events: none;
}

.edge {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.6;
  opacity: 0.72;
}

.edge.near { stroke: var(--warm); }
.edge.far { stroke: var(--violet); opacity: 0.55; }

.node-detail {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 310px;
  max-width: calc(100% - 32px);
  box-shadow: var(--shadow);
}

.graph-tooltip {
  position: absolute;
  z-index: 20;
  max-width: 260px;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #ffffff;
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
}

.graph-tooltip.show { opacity: 1; }

/* Recruiters */
.recruiters-view {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.recruiters-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.recruiters-rail,
.recruiter-main,
.recruiter-new-search {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.recruiters-rail {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 14px;
}

.recruiters-rail .btn {
  margin-bottom: 12px;
}

.recruiter-main {
  min-height: 420px;
  padding: 16px;
}

.recruiter-threads {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recruiter-thread {
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
}

.recruiter-thread:hover {
  border-color: var(--border-strong);
}

.recruiter-thread.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.recruiter-thread-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.recruiter-thread-preview {
  overflow: hidden;
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recruiter-thread-header {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.recruiter-thread-company {
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.recruiter-thread-note {
  margin-top: 5px;
  color: var(--text-dim);
  font-size: 14px;
}

.recruiter-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 54vh;
  margin-top: 12px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.recruiter-msg {
  max-width: 84%;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.recruiter-msg.recruiter { align-self: flex-start; }

.recruiter-msg.user {
  align-self: flex-end;
  border-color: rgba(15, 118, 110, 0.35);
  background: var(--accent-soft);
}

.recruiter-msg.system {
  align-self: center;
  max-width: 94%;
  border-style: dashed;
  background: transparent;
  color: var(--text-faint);
}

.recruiter-msg-author {
  margin-bottom: 4px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 12px;
}

.recruiter-msg-body {
  color: var(--text);
  font-size: 14px;
  white-space: pre-wrap;
}

.suggested-job {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(109, 93, 252, 0.35);
  border-radius: var(--radius-sm);
  background: var(--violet-soft);
}

.suggested-job-title {
  color: var(--ink);
  font-weight: 850;
}

.suggested-job-location,
.suggested-job-desc,
.suggested-job-why {
  margin-top: 5px;
  color: var(--text-dim);
  font-size: 13px;
}

.suggested-job-location {
  font-family: var(--mono);
  font-size: 12px;
}

.suggested-job-why { font-style: italic; }

.recruiter-composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.recruiter-composer-input {
  flex: 1;
  min-height: 66px;
}

.recruiter-new-search {
  padding: 22px;
}

.recruiter-new-search .field em {
  color: var(--warm);
  font-style: normal;
}

.notice {
  padding: 12px 14px;
  border: 1px solid rgba(109, 93, 252, 0.3);
  border-radius: var(--radius);
  background: var(--violet-soft);
  color: #383060;
  font-size: 14px;
}

/* Subscribe */
.plan {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.plan-price {
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 38px;
  font-weight: 900;
}

.plan-price small {
  color: var(--text-faint);
  font-size: 14px;
  font-weight: 500;
}

.plan-feats {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  color: var(--text-dim);
  list-style: none;
}

.plan-feats li {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.plan-feats li::before {
  content: "OK";
  color: var(--ok);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
}

.paywall-banner {
  padding: 14px;
  border: 1px solid rgba(199, 106, 28, 0.35);
  border-radius: var(--radius);
  background: var(--warm-soft);
  color: #6b3b12;
}

/* System cards */
.syscards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.syscards-header h1 { margin-bottom: 8px; }

.syscards-meta,
.syscards-breadcrumb {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.syscards-summary {
  max-width: 76ch;
  margin-top: 8px;
  color: var(--text-dim);
}

.syscards-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  min-height: 520px;
}

.syscards-tree,
.syscards-content {
  max-height: 72vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.syscards-tree { padding: 10px; }
.syscards-content { padding: 24px; }

.syscards-tree-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
}

.syscards-tree-row:hover,
.syscards-tree-row.active {
  background: var(--surface-2);
  color: var(--ink);
}

.syscards-twistie {
  flex: none;
  width: 16px;
  color: var(--text-faint);
  text-align: center;
}

.syscards-tree-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.syscards-tree-children {
  margin-left: 14px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.syscards-tree-children.collapsed { display: none; }

.syscards-card-root > .syscards-tree-row {
  color: var(--ink);
  font-weight: 850;
}

.syscards-section-body {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

.syscards-section-body p { margin: 0 0 12px; }

.syscards-bullet {
  margin: 8px 0 12px;
  padding-left: 22px;
}

.syscards-code {
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}

.syscards-empty,
.syscards-inline-error { color: var(--text-faint); }
.syscards-inline-error { color: var(--danger); font-size: 13px; }

/* Legal and static SEO pages */
.legal-page {
  max-width: 900px;
}

.legal-layout {
  display: grid;
  gap: 18px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.legal-section {
  display: grid;
  gap: 12px;
}

.legal-section h2 {
  margin-top: 4px;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dim);
}

.legal-section li + li {
  margin-top: 6px;
}

.sitemap-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 800;
}

.sitemap-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Utility states */
.empty {
  padding: 44px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-faint);
  text-align: center;
}

.empty-title {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
}

.skeleton {
  height: 18px;
  margin-bottom: 9px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 200% 100%;
  animation: sk 1.2s infinite;
}

@keyframes sk {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -3px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Modal, toast, consent */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(29, 35, 47, 0.54);
  backdrop-filter: blur(6px);
}

.modal {
  width: 100%;
  max-width: 520px;
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal h2,
.modal h3 { margin-bottom: 10px; }

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.toast-wrap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  max-width: 380px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #ffffff;
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: toastin 0.2s ease;
}

.toast.error { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warm); }

@keyframes toastin {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cookie-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--text-dim);
  font-size: 13px;
}

.cookie-text strong {
  color: var(--ink);
  font-size: 14px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1040px) {
  .auth-shell,
  .profile-grid,
  .split,
  .recruiters-layout,
  .syscards-layout {
    grid-template-columns: 1fr;
  }

  .auth-intro {
    min-height: auto;
  }

  .recruiters-rail {
    position: static;
    max-height: none;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    padding: 12px 16px;
    flex-direction: column;
  }

  .brand {
    width: 100%;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .nav-link {
    flex: 0 1 auto;
  }

  .app {
    padding: 24px 16px 58px;
  }

  h1,
  .hero-title {
    font-size: 32px;
  }

  h2 {
    font-size: 21px;
  }

  .lead,
  .hero-sub {
    font-size: 16px;
  }

  .page-header,
  .view-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .page-actions,
  .toolbar,
  .action-strip {
    justify-content: flex-start;
  }

  .grid-2,
  .grid-3,
  .integration-grid,
  .auth-proof,
  .stats {
    grid-template-columns: 1fr;
  }

  .auth-intro,
  .auth-card,
  .panel,
  .card {
    padding: 18px;
  }

  .workflow-step {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .workflow-note {
    grid-column: 2;
  }

  .recruiter-msg {
    max-width: 96%;
  }

  .recruiter-composer {
    align-items: stretch;
    flex-direction: column;
  }

  .score-bar {
    width: 92px;
  }

  .tl-hint {
    width: 100%;
    margin-left: 0;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }
}
