/* Design system lifted from the Guided Player prototype: mint page, deep teal ink,
   coral accent, white 16px cards, Plus Jakarta Sans for text, JetBrains Mono for meta. */
:root {
  --page: #e8f1f0;
  --mint: #e8f1f0;
  --mint-2: #bcd5d3;
  --mint-3: #aec9c6;
  --teal: #0a454e;
  --teal-2: #0d525c;
  --teal-3: #123f47;
  --coral: #f44b53;
  --white: #fff;
  --ink: #0a454e;
  --ink-2: rgba(10, 69, 78, .72);
  --ink-3: rgba(10, 69, 78, .55);
  --line: rgba(10, 69, 78, .12);
  --line-2: rgba(10, 69, 78, .22);
  --shadow: 0 12px 32px rgba(10, 69, 78, .22);
  --shadow-sm: 0 1px 0 rgba(10, 69, 78, .06), 0 4px 14px rgba(10, 69, 78, .08);
  --radius: 16px;
  --radius-sm: 12px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--coral); }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
h1 .muted { font-weight: 600; }
h2 { font-size: 17px; font-weight: 700; margin: 0 0 14px; }
h3 { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--mint); padding: 1px 6px; border-radius: 6px; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }

/* Mono meta label with the coral dot, as in the prototype header */
.meta { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--mono); color: var(--ink); }
.meta::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--coral); flex: none; }

/* ---- Header ---- */
.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  background: var(--teal);
  color: var(--mint);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--mint); min-width: 0; }
.brand:hover { color: var(--mint); }
.brand img { height: 26px; width: auto; display: block; }
.brand span { font: 600 12px var(--mono); color: var(--mint-2); padding-left: 14px; border-left: 1px solid rgba(232, 241, 240, .25); white-space: nowrap; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--mint-2); height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--mint); background: rgba(232, 241, 240, .1); }
.nav a.active { background: var(--mint); color: var(--teal); }
.who { display: flex; gap: 12px; align-items: center; font: 600 12px var(--mono); color: var(--mint-2); }
.who span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who a { color: var(--mint); height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 10px; background: rgba(232, 241, 240, .12); font-family: var(--font); font-weight: 600; font-size: 13px; }
.who a:hover { background: var(--coral); color: #fff; }

/* ---- Page ---- */
.page { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px 20px 40px; display: flex; flex-direction: column; gap: 14px; }
.page-head { margin-bottom: 6px; }
.lede { color: var(--ink-2); margin: 6px 0 0; font-weight: 500; }
.foot { display: flex; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--ink-3); font: 500 12px var(--mono); }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Overview cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); gap: 14px; }
.card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.card-title { display: flex; align-items: center; gap: 8px; font: 600 12px var(--mono); }
.card-title::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--coral); }
.card-value { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.card-value.muted { color: var(--ink-3); }
.card-label { font-size: 14px; font-weight: 600; }
.card-note { font: 500 12px var(--mono); color: var(--ink-3); margin-top: 8px; min-height: 34px; line-height: 1.45; }
.card-note.error { color: var(--coral); font-family: var(--font); font-size: 12.5px; }
.card-more { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--teal); }
.card:hover .card-more { color: var(--coral); }

/* ---- Hero ---- */
.hero { background: var(--teal); color: var(--mint); border-radius: var(--radius); padding: 24px 26px; }
.hero-value { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.hero-label { font-size: 16px; font-weight: 600; margin-top: 4px; }
.hero-note { color: var(--mint-2); font-size: 13.5px; margin-top: 10px; max-width: 760px; }

/* ---- Panels & tables ---- */
.panel { background: var(--white); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.panel.narrow { max-width: 640px; }
.panel.placeholder { background: transparent; border: 2px dashed var(--line-2); box-shadow: none; color: var(--ink-2); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font: 600 11px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font: 600 13px var(--mono); white-space: nowrap; }
.table th.num { font-weight: 600; font-size: 11px; }
.table .nowrap { font: 500 12.5px var(--mono); }
.table .bar-col { width: 160px; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions form { display: inline-block; margin-left: 6px; }
.table tr.muted td { color: var(--ink-3); }

.bar { height: 8px; background: var(--mint); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 999px; }

.columns { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.column { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.column span { display: block; width: 100%; background: var(--teal); border-radius: 3px 3px 0 0; min-height: 2px; }

.funnel { display: grid; gap: 10px; max-width: 760px; }
.funnel-step { display: grid; grid-template-columns: 190px 1fr 190px; align-items: center; gap: 12px; }
.funnel-label { font-size: 14px; font-weight: 600; }
.funnel-bar { height: 22px; background: var(--mint); border-radius: 8px; overflow: hidden; }
.funnel-bar span { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 8px; }
.funnel-count { font: 600 13px var(--mono); }
.funnel-count em { font-style: normal; font-weight: 500; color: var(--ink-3); font-size: 12px; }
@media (max-width: 700px) { .funnel-step { grid-template-columns: 1fr; gap: 4px; } }

.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font: 600 12px var(--mono); background: var(--mint); color: var(--teal); }
.badge-analyzed, .badge-hired, .badge-open, .badge-enterprise, .badge-active, .badge-offer { background: var(--teal); color: var(--mint); }
.badge-processing, .badge-uploaded, .badge-screening, .badge-interview, .badge-in-conversation, .badge-contacted, .badge-paused { background: var(--mint-2); }
.badge-failed, .badge-rejected, .badge-declined, .badge-suspended, .badge-closed, .badge-quiet { background: rgba(244, 75, 83, .12); color: var(--coral); }
.badge-internal { background: rgba(10, 69, 78, .1); }

.notice { background: var(--mint-2); border-radius: var(--radius-sm); padding: 12px 16px; color: var(--ink); font-size: 14px; }
.notice.error { background: rgba(244, 75, 83, .1); color: #c9333b; }
.notice ul { margin: 0; padding-left: 18px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: var(--mint-2);
  color: var(--teal);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { background: var(--mint-3); color: var(--teal); }
.btn.primary { background: var(--teal); color: var(--mint); font-weight: 700; }
.btn.primary:hover { background: var(--teal-2); color: var(--mint); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--teal); }
.btn.ghost:hover { background: rgba(10, 69, 78, .06); }
.btn.danger { background: transparent; color: var(--coral); box-shadow: inset 0 0 0 2px rgba(244, 75, 83, .35); }
.btn.danger:hover { background: var(--coral); color: #fff; box-shadow: none; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.wide { width: 100%; height: 52px; font-size: 16px; }
.btn-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-row form { display: inline-block; }

/* ---- Forms ---- */
.form { display: grid; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--mint); }
.field > span { font: 500 11px var(--mono); color: var(--ink); opacity: .7; }
.field em { color: var(--coral); font-style: normal; }
.field small { color: var(--ink-3); font-size: 12px; }
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  padding: 4px 0;
  width: 100%;
  font-weight: 600;
  font-size: 15px;
  outline: none;
}
.field textarea { resize: vertical; min-height: 96px; font-weight: 500; }
.field:focus-within { box-shadow: inset 0 0 0 2px var(--teal); }
.form.compact { gap: 8px; }
.field-group { border: 2px solid var(--line-2); border-radius: 14px; padding: 12px 12px 12px; display: grid; gap: 8px; margin: 0; }
.field-group legend { font: 600 12px var(--mono); padding: 0 6px; }
.form-actions { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }

/* ---- 1.5x goal ladder ---- */
.goal-grid { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 22px; margin-bottom: 18px; }
@media (max-width: 800px) { .goal-grid { grid-template-columns: 1fr; } }
.goal-current { background: var(--mint); border-radius: 14px; padding: 16px 18px; }
.goal-label { display: flex; align-items: center; gap: 8px; font: 600 12px var(--mono); }
.goal-label::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--coral); }
.goal-value { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; margin: 6px 0 4px; }
.goal-activities ol { margin: 8px 0 6px; padding-left: 0; list-style: none; counter-reset: act; display: grid; gap: 6px; }
.goal-activities li { counter-increment: act; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px 0 6px; border-radius: 10px; background: var(--mint); font-weight: 600; }
.goal-activities li::before { content: counter(act); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--teal); color: var(--mint); font: 600 13px var(--mono); }
.edit-activities summary { cursor: pointer; font: 500 12px var(--mono); color: var(--ink-3); }
.edit-activities .form { margin-top: 10px; }
.timeline { display: grid; gap: 8px; max-width: 820px; }
.timeline-row { display: grid; grid-template-columns: 170px 1fr 230px; gap: 12px; align-items: center; }
.timeline-label { font: 600 13px var(--mono); }
.timeline-bar { height: 16px; background: var(--mint); border-radius: 8px; overflow: hidden; }
.timeline-bar span { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 8px; }
.timeline-row.in-progress .timeline-bar span { background: repeating-linear-gradient(135deg, var(--mint-2) 0 8px, var(--mint-3) 8px 16px); }
.timeline-meta { font: 500 12px var(--mono); color: var(--ink-2); }
@media (max-width: 700px) { .timeline-row { grid-template-columns: 1fr; gap: 4px; } }
.archived { margin-top: 14px; }
.archived summary { cursor: pointer; font: 500 12px var(--mono); color: var(--ink-3); }
.archived-ladder { margin: 10px 0 0; padding: 10px 12px; border: 2px dashed var(--line-2); border-radius: 12px; }
.archived-ladder ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }

/* ---- Weekly feed ---- */
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-item { display: grid; grid-template-columns: 130px 120px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.feed-item:last-child { border-bottom: 0; }
.feed-when { font: 500 12px var(--mono); color: var(--ink-3); white-space: nowrap; }
.feed-kind { font: 600 11px var(--mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.feed-item.kind-goal .feed-kind { color: var(--coral); }
.feed-item a { font-weight: 600; }
@media (max-width: 700px) { .feed-item { grid-template-columns: 1fr; gap: 2px; } }

/* ---- Quiet customers ---- */
.table tr.quiet td:first-child { box-shadow: inset 3px 0 0 var(--coral); padding-left: 12px; }

/* ---- Brand assets ---- */
.instructions { display: grid; gap: 12px; }
.instruction { border-radius: 14px; padding: 14px 16px; background: var(--mint); }
.instruction-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.instruction-head h3 { margin: 0; }
.instruction-body { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font); font-weight: 500; font-size: 14px; color: var(--ink-2); max-height: 320px; overflow: auto; }

/* ---- Sign-in ---- */
.signin { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.signin-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 32px; width: min(440px, 92vw); text-align: center; display: grid; gap: 14px; }
.signin-logo { height: 40px; width: auto; margin: 0 auto; display: block; background: var(--teal); padding: 8px 14px; border-radius: 12px; box-sizing: content-box; }
.signin-brand { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 13px var(--mono); }
.signin-brand::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--coral); }

@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .page { padding: 18px 16px 36px; }
  .hero-value { font-size: 40px; }
  .card-value { font-size: 32px; }
  .table .bar-col { display: none; }
}
