/* Recruiter web app. Palette from the 7-screen mockup: stone, deep green, lime. */

:root {
  color-scheme: light;
  --bg: #F2F2EF;
  --surface: #FFFFFF;
  --surface2: #FAFAF7;
  --line: #E4E4DF;
  --line3: #D6D6D0;
  --ink: #111311;
  --ink2: #3D413B;
  --muted: #5E625C;
  --accent: #C6EC4E;
  --avatar: #111311;
  --hero: #0F2A22;
  --hero-text: #F2F2EF;
  --warn-bg: #FBEFD9;
  --warn: #7A4A00;
  --focus: #0F2A22;
  --glow: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A0C0B;
    --surface: #121513;
    --surface2: #171B18;
    --line: #232925;
    --line3: #323A35;
    --ink: #ECEFE8;
    --ink2: #C3C9BF;
    --muted: #949C91;
    --accent: #C8FF2E;
    --avatar: #1C221E;
    --hero: #0E1410;
    --hero-text: #ECEFE8;
    --warn-bg: rgba(255, 190, 40, .14);
    --warn: #FFC94A;
    --focus: #C8FF2E;
    --glow: 0 0 0 1px rgba(200, 255, 46, .55), 0 0 22px rgba(200, 255, 46, .35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0C0B;
  --surface: #121513;
  --surface2: #171B18;
  --line: #232925;
  --line3: #323A35;
  --ink: #ECEFE8;
  --ink2: #C3C9BF;
  --muted: #949C91;
  --accent: #C8FF2E;
  --avatar: #1C221E;
  --hero: #0E1410;
  --hero-text: #ECEFE8;
  --warn-bg: rgba(255, 190, 40, .14);
  --warn: #FFC94A;
  --focus: #C8FF2E;
  --glow: 0 0 0 1px rgba(200, 255, 46, .55), 0 0 22px rgba(200, 255, 46, .35);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Geist, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; }
button, input { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  z-index: 10;
}
.skip:focus { top: 12px; }

.shell {
  min-height: 100vh;
  padding: 20px clamp(16px, 3vw, 40px) 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 8px 8px 8px 20px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid var(--ink);
}
.brand-name { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.tenant, .kicker, .who {
  font-family: "Geist Mono", ui-monospace, Consolas, monospace;
  font-size: 11px;
  color: var(--muted);
}
.tenant { border-left: 1px solid var(--line); padding-left: 10px; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  background: var(--bg);
  border-radius: 24px;
  padding: 4px;
}
.tabs a {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink2);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.tabs a:hover { background: var(--surface); }
.tabs a[aria-current="page"] {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--glow);
}

.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.theme-toggle {
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.theme-toggle .moon { opacity: .4; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { opacity: 1; }
  :root:not([data-theme="light"]) .theme-toggle .sun { opacity: .4; }
}
:root[data-theme="dark"] .theme-toggle .moon { opacity: 1; }
:root[data-theme="dark"] .theme-toggle .sun { opacity: .4; }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--avatar);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}

.inline { display: inline; margin: 0; }

.ghost, .primary {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  cursor: pointer;
}
.ghost { border: 1px solid var(--line); background: var(--surface); }
.primary { border: 0; background: var(--hero); color: var(--hero-text); font-weight: 600; }

main { display: flex; flex-direction: column; gap: 20px; }
main:focus { outline: none; }

.page-head { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.page-head .kicker { font-size: 12px; }
h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
h2 { margin: 0; font-size: 18px; font-weight: 600; }

.empty, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 24px;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.empty p { margin: 0; max-width: 44ch; color: var(--muted); }
.empty-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px dashed var(--line3);
  background: var(--surface2);
}

.sign-in { max-width: 420px; width: 100%; margin: 40px auto 0; display: flex; flex-direction: column; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack input {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line3);
  background: var(--surface2);
}
.warn-chip {
  margin: 0;
  align-self: flex-start;
  font-size: 12px;
  color: var(--warn);
  background: var(--warn-bg);
  border-radius: 999px;
  padding: 4px 10px;
}

/* Candidate screen */
.muted { color: var(--muted); }
.card { padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.card p { margin: 0; }
.person { flex-direction: row; align-items: center; gap: 16px; }
.stack-tight { display: flex; flex-direction: column; gap: 4px; }
.stack-tight p { margin: 0; }
.photo {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--avatar);
  color: var(--hero-text);
  display: grid;
  place-items: center;
  font-weight: 600;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.alerts { display: flex; flex-direction: column; gap: 8px; }
.alert { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--warn-bg); color: var(--warn); }
.alert.stop { border: 1px solid var(--warn); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.plain, .people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.people li { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.timeline li:first-child { border-top: 0; }
.timeline .meta { font-size: 13px; color: var(--muted); }
.timeline .detail { color: var(--ink2); white-space: pre-line; overflow-wrap: anywhere; }
.chip { font-size: 12px; border-radius: 999px; padding: 2px 8px; background: var(--surface2); border: 1px solid var(--line); color: var(--ink2); }

@media (max-width: 640px) {
  .topbar { border-radius: 20px; padding: 10px; }
  .tabs { width: 100%; }
  .tabs a { flex: 1 1 auto; justify-content: center; padding: 8px 10px; }
  .who { display: none; }
  h1 { font-size: 26px; }
}

@media (prefers-reduced-motion: no-preference) {
  .tabs a, button { transition: background-color .2s ease, color .2s ease; }
}

/* Jobs screen */
.card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rows li + li { border-top: 1px solid var(--line); }
.row-link { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding: 14px 4px; text-decoration: none; }
.row-link:hover .row-title { text-decoration: underline; }
.row-title { font-weight: 600; flex: 1 1 220px; }
.row-meta { color: var(--muted); font-size: 14px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.description { white-space: pre-wrap; max-width: 75ch; }
.internal .note { margin: 0; color: var(--muted); }
/* Replies screen */
.views { display: flex; flex-wrap: wrap; gap: 6px; }
.views a {
  min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none;
}
.views a[aria-current="page"] { background: var(--hero); color: var(--hero-text); border-color: var(--hero); }
.replies { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.reply-list { flex: 1 1 300px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.reply-item {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none;
}
.reply-item[aria-current="true"] { border-color: var(--ink); box-shadow: var(--glow); }
.reply-item .snippet { font-size: 13px; color: var(--ink2); }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.name { font-weight: 500; }
.meta { font-size: 12px; color: var(--muted); }
.reply-detail { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.reply-card, .hero-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.hero-card { background: var(--hero); color: var(--hero-text); border-color: var(--hero); }
.hero-card .meta { color: var(--hero-text); opacity: .7; }
.hero-card p, .reply-card p { margin: 0; }
.message { white-space: pre-line; background: var(--bg); border-radius: 4px 16px 16px 16px; padding: 14px 16px; max-width: 60ch; }
.pill { font-size: 12px; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--line3); background: var(--surface2); white-space: nowrap; }
.pill-interested { background: var(--accent); color: #0B0D0C; border-color: var(--accent); }
.pill-question { background: var(--hero); color: var(--hero-text); border-color: var(--hero); }
.pill-unsubscribe { background: var(--warn-bg); color: var(--warn); border-color: transparent; }

/* Working as a recruiter (#72) */
.acting-banner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.act-as-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
/* Approvals screen */
.draft-form { display: flex; flex-direction: column; gap: 8px; }
.draft-form label { font-size: 12px; color: var(--muted); margin-top: 6px; }
.draft-form input, .draft-form textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; line-height: 1.5;
}
.draft-form textarea { resize: vertical; }
.draft-form [readonly] { opacity: .8; }
.draft-actions { justify-content: flex-start; }
.draft-actions button {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line3);
  background: var(--surface2); cursor: pointer;
}
.draft-actions button.primary { background: var(--accent); color: #0B0D0C; border-color: var(--accent); }
.draft-actions button:disabled { opacity: .45; cursor: not-allowed; }
.draft-actions kbd { font-size: 11px; opacity: .7; margin-left: 4px; }
.guardrail { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 12px 16px; }
.guardrail ul { margin: 6px 0 0; padding-left: 18px; }

/* Today (T20) */
.today { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.today-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.today-card h2 { margin: 0; font-size: 18px; }
.today-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.today-counts { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }

/* One-click logging (T34) */
.one-click { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.one-click-row { display: flex; flex-wrap: wrap; gap: 6px; }
.one-click-row button { font-size: 12px; padding: 4px 10px; }
.one-click-row .one-click-link { font-size: 12px; padding: 4px 10px; text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
.one-click-more summary { cursor: pointer; font-size: 13px; color: var(--ink2); }
.one-click-more input, .one-click-more select { max-width: 100%; }
.one-click-pass .confirm { font-size: 13px; display: flex; gap: 6px; align-items: center; }
.danger { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.flash { padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.flash-ok { background: var(--surface2); border: 1px solid var(--line3); }
.flash-error { background: var(--warn-bg); color: var(--warn); }

/* Shortlist (T08) */
.shortlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.shortlist-row { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.shortlist-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.shortlist-reason { margin: 0; }
.checklist { margin: 0; padding-left: 18px; font-size: 13px; }
.check-not_met { color: var(--warn); }
.pill-flag { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
/* Needs-attention alerts on Today (T27, #41) */
.pill-attention { background: var(--warn-bg); color: var(--warn); border-color: transparent; }

/* Team view (T26) */
.table-wrap { overflow-x: auto; }
.team-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.team-table th, .team-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.team-table thead th { font-size: 12px; color: var(--muted); font-weight: 600; }
.status-needs_attention, .status-no_recruiter { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
/* LinkedIn search text on the job page (T21, #34) */
#linkedin-search .note { margin: 0 0 8px; color: var(--muted); }
.search-text { white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
