:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --border: #e4e4df;
  --text: #1c1c1a;
  --muted: #6b6b66;
  --accent: #14a800;
  --accent-soft: #e8f6e5;
  --warn: #b25e00;
  --love: #d6336c;
  --love-soft: #fbe7ee;
  --warn-soft: #fbf0e3;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --surface: #1f1f1d;
    --border: #33332f;
    --text: #ececea;
    --muted: #9a9a94;
    --accent: #4cc93a;
    --accent-soft: #1f3a1b;
    --warn: #f0a050;
    --love: #f06595;
    --love-soft: #3d1a27;
    --warn-soft: #3a2a17;
  }
}

:root { color-scheme: light dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.brand { font-weight: 600; }
.muted { color: var(--muted); font-weight: 400; }
.connection { font-size: 13px; color: var(--muted); }
.connection.online { color: var(--accent); }

.conversation {
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px 8px;
}

body.empty .conversation { display: none; }

.composer-wrap {
  position: sticky;
  bottom: 0;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 16px 20px;
  background: linear-gradient(transparent, var(--bg) 30%);
}

body.empty .composer-wrap {
  position: static;
  margin: auto;
  padding-bottom: 12vh;
  background: none;
}

.hero { text-align: center; font-size: 28px; font-weight: 600; margin: 0 0 24px; }
body:not(.empty) .hero, body:not(.empty) .suggestions { display: none; }

.composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 10px 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.06);
}

.composer textarea {
  flex: 1;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  max-height: 200px;
  padding: 6px 0;
}

.composer button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.composer button:disabled { opacity: 0.4; cursor: default; }

.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }

.suggestions button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.suggestions button:hover { border-color: var(--accent); }

.message { margin: 0 0 18px; }

.message.user {
  margin-left: auto;
  max-width: 75%;
  width: fit-content;
  padding: 10px 14px;
  background: var(--accent-soft);
  border-radius: var(--radius) var(--radius) 4px var(--radius);
  white-space: pre-wrap;
}

.message.assistant p:first-child { margin-top: 0; }
.message.assistant a { color: var(--accent); }

.message.status { color: var(--muted); font-size: 13px; }
.message.status::before { content: "● "; color: var(--accent); }
.message.error { color: var(--warn); }
.message.cost { color: var(--muted); font-size: 12px; text-align: right; }

.jobs { display: flex; flex-direction: column; gap: 12px; margin: 0 0 18px; }

.job-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
}

.job-card:hover, .job-card:focus-visible { border-color: var(--accent); outline: none; }
.job-card.verdict-love { border-color: var(--love); }
.job-card.verdict-like { border-color: var(--accent); }
.job-card.verdict-dislike { border-color: var(--warn); }

.job-body { display: flex; gap: 16px; padding: 14px 16px; }
.job-card.verdict-dislike .job-body { opacity: 0.65; }
.job-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.job-title { color: var(--text); font-weight: 600; text-decoration: none; }
.job-title:hover { color: var(--accent); }

.card-feedback {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 14px;
}
.card-feedback header { display: flex; align-items: baseline; gap: 10px; }
.card-author { color: var(--muted); font-size: 13px; }
.card-feedback-actions { margin-left: auto; display: flex; align-items: baseline; gap: 10px; }
.card-verdict { font-size: 15px; font-weight: 700; }
.card-feedback time { color: var(--muted); font-size: 12px; }
.card-feedback.unrated { padding: 8px 16px; }
.card-feedback.unrated .card-verdict { font-size: 13px; font-weight: 400; color: var(--muted); }
.card-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.card-reasons:empty { display: none; }
.card-reasons li { padding: 2px 10px; border: 1px solid var(--warn); border-radius: 999px; color: var(--warn); font-size: 12px; font-weight: 600; }
.card-comment { margin: 8px 0 0; padding-left: 10px; border-left: 3px solid currentColor; white-space: pre-wrap; color: var(--text); }

.verdict-love .card-feedback { background: var(--love-soft); border-top-color: var(--love); }
.verdict-love .card-comment { border-color: var(--love); }
.verdict-love .card-verdict { color: var(--love); }
.verdict-like .card-feedback { background: var(--accent-soft); border-top-color: var(--accent); }
.verdict-like .card-verdict { color: var(--accent); }
.verdict-like .card-comment { border-color: var(--accent); }
.verdict-dislike .card-feedback { background: var(--warn-soft); border-top-color: var(--warn); }
.verdict-dislike .card-verdict { color: var(--warn); }
.verdict-dislike .card-comment { border-color: var(--warn); }

.job-side {
  flex-shrink: 0;
  width: 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}

.budget {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.interviewing { font-weight: 600; color: var(--text); }
.interviewing.hot { color: var(--warn); }

@media (max-width: 640px) {
  .job-body { flex-direction: column; }
  .job-side { width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; }
}

.job-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.job-dialog::backdrop { background: rgb(0 0 0 / 0.45); }
.job-dialog h2 { margin: 0 32px 8px 0; font-size: 20px; line-height: 1.3; }
.job-dialog h2 a { color: var(--text); }
.job-dialog h3 { margin: 22px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.job-dialog section ul:not(.skills) { margin: 0; padding-left: 20px; }

.dialog-close { position: absolute; top: 16px; right: 16px; margin: 0; }
.dialog-close button { border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.stats div { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.stats dt { font-size: 12px; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-weight: 600; }

.description { white-space: pre-wrap; font-size: 14px; }

.feedback { margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--border); }
.verdict-buttons { display: flex; gap: 8px; }

.feedback button {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.feedback button.selected { border-color: var(--accent); background: var(--accent-soft); }
.feedback button[data-verdict="love"].selected { border-color: var(--love); background: var(--love-soft); color: var(--love); }
.feedback button[data-verdict="dislike"].selected { border-color: var(--warn); background: transparent; color: var(--warn); }

.feedback-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.feedback-form p { margin: 0 0 8px; }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.reasons label { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; cursor: pointer; }
.reasons label:has(input:checked) { border-color: var(--warn); color: var(--warn); }

.feedback-form textarea {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.feedback-form button[type="submit"] { align-self: flex-start; background: var(--accent); border-color: var(--accent); color: #fff; }
.feedback-status { font-size: 13px; color: var(--muted); min-height: 1em; }

.meta, .skills { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.skills { gap: 4px; }
.skills li { padding: 1px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; }
.fit-note { margin: 0; font-size: 14px; }

.client {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.client strong { color: var(--text); font-weight: 600; }

.nav { display: flex; gap: 16px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.page { width: 100%; max-width: 920px; margin: 0 auto; padding: 24px 16px 40px; }
.page h1 { margin: 0 0 4px; font-size: 24px; }
.page-intro { margin: 0 0 18px; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters button {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.filters button.selected { border-color: var(--accent); background: var(--accent-soft); }

.empty-state { padding: 40px 0; text-align: center; color: var(--muted); }

.user-menu { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sign-out, .delete-feedback {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.sign-out:hover, .delete-feedback:hover { color: var(--text); border-color: var(--muted); }
.delete-feedback.armed { border-color: var(--warn); color: var(--warn); font-weight: 600; }

.layout { flex: 1; display: flex; min-height: 0; }
.chat-column { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.sidebar {
  flex-shrink: 0;
  width: 260px;
  position: sticky;
  top: 0;
  height: calc(100vh - 53px);
  overflow-y: auto;
  padding: 16px 12px;
  border-right: 1px solid var(--border);
}
.sidebar h2 { margin: 18px 8px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.sidebar .muted { margin: 0 8px; font-size: 13px; }

.new-chat {
  display: block;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.new-chat:hover { border-color: var(--accent); }

.conversation-list { display: flex; flex-direction: column; gap: 2px; }
.conversation-list a {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.conversation-list a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-list a time { font-size: 12px; color: var(--muted); }
.conversation-list a:hover { background: var(--surface); }
.conversation-list a[aria-current] { background: var(--accent-soft); }

@media (max-width: 800px) {
  .layout { flex-direction: column; }
  .sidebar { width: auto; height: auto; max-height: 30vh; position: static; border-right: 0; border-bottom: 1px solid var(--border); }
  .user-email { display: none; }
}

.login-page { align-items: center; justify-content: center; padding: 16px; }
.login-card {
  width: min(380px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.login-card h1 { margin: 0; font-size: 20px; }
.login-card p { margin: 0; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.login-card input {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.login-card button {
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.login-card button:disabled { opacity: 0.5; cursor: default; }
.login-error { min-height: 1em; color: var(--warn); font-size: 13px; }

.suggestions .sweep-button { border-color: var(--accent); color: var(--accent); font-weight: 600; }

.day { margin-bottom: 32px; }
.day > header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.day h2 { margin: 0; font-size: 18px; }
.day-counts { margin: 0; color: var(--muted); font-size: 14px; }
.day-counts strong { color: var(--accent); }
.last-check { margin: -8px 0 20px; font-size: 13px; color: var(--muted); }
.suggested-from { margin: 4px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.suggested-from a { color: var(--accent); }

.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sync-box { text-align: right; }
.sync-box p { margin: 6px 0 0; font-size: 12px; }
.sync-box button, .pager button {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.sync-box button:disabled, .pager button:disabled { opacity: 0.4; cursor: default; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; font-size: 13px; }

.proposal-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.proposal-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.proposal-card .stats { margin: 4px 0 0; }
.proposal-status { flex-shrink: 0; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.proposal-status[data-status="Accepted"] { color: var(--accent); border-color: var(--accent); }
.proposal-status[data-status="Offered"], .proposal-status[data-status="Hired"], .proposal-status[data-status="Activated"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.proposal-status[data-status="Declined"], .proposal-status[data-status="Withdrawn"] { color: var(--warn); border-color: var(--warn); }
.live-note { margin: 0; font-size: 12px; }
.cover-letter summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.cover-letter p { white-space: pre-wrap; font-size: 14px; margin: 8px 0 0; }
.card-proposal { margin: -2px 0 0; font-size: 13px; font-weight: 600; color: var(--accent); }
.proposal-fit { margin: 0; }
.job-description summary { cursor: pointer; font-size: 14px; color: var(--text); list-style: none; }
.job-description summary::-webkit-details-marker { display: none; }
.job-description[open] summary { color: var(--muted); font-size: 12px; }
.job-description p { white-space: pre-wrap; font-size: 14px; margin: 6px 0 0; }
.client-activity { margin: 4px 0 0; font-weight: 600; font-size: 14px; }
.client-activity.active { color: var(--accent); }
.client-activity.hired { color: var(--warn); }
.client-activity.idle, .client-activity.closed { color: var(--muted); }
.client-activity:empty, .opened-status:empty { display: none; }
.opened-status { margin: 0; font-size: 13px; }
.activity-changes { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }

:root {
  --outcome-won: #1baf7a;
  --outcome-viewed: #eb6834;
  --outcome-submitted: #2a78d6;
  --outcome-closed: #c3c2b7;
  --chart-grid: #e1e0d9;
  --chart-axis: #898781;
  --chart-weekend: #f0efec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --outcome-won: #199e70;
    --outcome-viewed: #d95926;
    --outcome-submitted: #3987e5;
    --outcome-closed: #4a4a46;
    --chart-grid: #2c2c2a;
    --chart-axis: #898781;
    --chart-weekend: #2b2b28;
  }
}

.timeline-panel {
  position: relative;
  margin: 8px 0 28px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.timeline-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.timeline-head h2 { margin: 0; font-size: 16px; }
.range-buttons { display: flex; gap: 6px; }
.range-buttons button {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.range-buttons button.selected { color: var(--text); border-color: var(--text); font-weight: 600; }

.timeline-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.stat-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.stat-tile strong { font-size: 22px; line-height: 1.2; }
.stat-tile span { font-size: 12px; color: var(--muted); }

.timeline-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 10px; height: 10px; border-radius: 2px; }
.legend-sizes { gap: 6px; }
.legend-size { display: inline-block; border-radius: 2px; background: var(--chart-axis); opacity: 0.6; }
.legend-boosted { background: var(--outcome-submitted); box-shadow: inset 0 0 0 1.5px var(--text); }

.timeline-scroll { overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
.timeline-scroll svg { display: block; }
.timeline-weekend { fill: var(--chart-weekend); }
.legend-weekend { background: var(--chart-weekend); box-shadow: inset 0 0 0 1px var(--border); }
.timeline-baseline { stroke: var(--chart-axis); stroke-width: 1; opacity: 0.6; }
.timeline-tick { stroke: var(--chart-axis); stroke-width: 1; }
.timeline-axis-label { fill: var(--chart-axis); font-size: 11px; font-variant-numeric: tabular-nums; }
.timeline-count { fill: var(--muted); font-size: 10px; text-anchor: middle; font-variant-numeric: tabular-nums; }
.timeline-square { pointer-events: none; transition: opacity 0.1s; }
.timeline-square.boosted { stroke: var(--text); stroke-width: 1.5; }
.timeline-square.hovered { stroke: var(--text); stroke-width: 2.5; }
.timeline-hit { fill: transparent; cursor: pointer; outline: none; }

.outcome-won { fill: var(--outcome-won); background: var(--outcome-won); }
.outcome-viewed { fill: var(--outcome-viewed); background: var(--outcome-viewed); }
.outcome-submitted { fill: var(--outcome-submitted); background: var(--outcome-submitted); }
.outcome-closed { fill: var(--outcome-closed); background: var(--outcome-closed); }

.timeline-tooltip {
  position: absolute;
  z-index: 5;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.15);
  font-size: 13px;
  pointer-events: none;
}
.timeline-tooltip strong { font-size: 14px; }
.tooltip-meta { color: var(--muted); font-size: 12px; }

.timeline-table { margin-top: 10px; font-size: 13px; }
.timeline-table summary { cursor: pointer; color: var(--muted); }
.timeline-table table { width: 100%; margin-top: 8px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.timeline-table th, .timeline-table td { padding: 4px 8px; text-align: right; border-bottom: 1px solid var(--border); }
.timeline-table th:first-child, .timeline-table td:first-child { text-align: left; }

.daily-suggested { fill: var(--outcome-submitted); background: var(--outcome-submitted); }
.daily-applied { fill: var(--outcome-won); background: var(--outcome-won); }
.job-card.flash { animation: card-flash 1.6s ease-out; }
@keyframes card-flash { 0%, 30% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }

.schedules { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-bottom: 28px; }
.schedule-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.schedule-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.schedule-card h3 { margin: 0; font-size: 15px; }
.schedule-card p { margin: 0; font-size: 13px; }
.schedule-interval { font-size: 12px; color: var(--muted); white-space: nowrap; }
.schedule-metrics { color: var(--muted); }

.runs h2 { margin: 0; font-size: 16px; }
.runs-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.runs-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.runs-table td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.run-row { cursor: pointer; }
.run-row:hover, .run-row.open { background: var(--surface); }
.run-status { white-space: nowrap; font-weight: 600; }
.run-status[data-status="failed"] { color: var(--warn); }
.run-status[data-status="incomplete"] { color: var(--warn); }
.run-logs-row td { background: var(--bg); }
.run-error { margin: 0 0 8px; color: var(--warn); font-weight: 600; }
.run-logs { margin: 0; padding: 0; list-style: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; max-height: 360px; overflow: auto; }
.run-logs li { display: grid; grid-template-columns: 80px 64px 1fr; gap: 8px; padding: 2px 0; }
.run-logs time, .log-level { color: var(--muted); }
.run-logs li[data-level="WARNING"] .log-level, .run-logs li[data-level="ERROR"] .log-level { color: var(--warn); font-weight: 600; }
.log-message { white-space: pre-wrap; word-break: break-word; }

@media (max-width: 800px) {
  .runs-table th:nth-child(3), .runs-table td:nth-child(3), .runs-table th:nth-child(5), .runs-table td:nth-child(5) { display: none; }
}

.comment-controls { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 4px 0 14px; font-size: 13px; }
.comment-controls .control { display: inline-flex; gap: 6px; align-items: center; }
.comment-controls select, .comment-controls input {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.comment-controls input[type="search"] { min-width: 240px; flex: 1; }
.comment-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.comment-tabs button {
  margin-bottom: -1px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.comment-tabs button.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.comment-tabs .count {
  display: inline-block;
  min-width: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}
.comment-summary { margin-bottom: 12px; font-size: 13px; color: var(--muted); }

.comment-card { display: block; margin-bottom: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.comment-group > summary { list-style: none; cursor: pointer; }
.comment-group > summary::-webkit-details-marker { display: none; }
.comment-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; justify-content: space-between; }
.comment-job { font-weight: 600; color: var(--text); text-decoration: none; }
.comment-job:hover { color: var(--accent); }
.comment-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.comment-badge { padding: 1px 8px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.comment-badge.applied { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.comment-badge.not-applied { color: var(--muted); border: 1px solid var(--border); }
.comment-badge.unknown { color: var(--muted); font-style: italic; }
.comment-badge.suggested { color: var(--outcome-viewed); border: 1px solid var(--outcome-viewed); }
.comment-meta { margin-top: 2px; font-size: 12px; color: var(--muted); }
.comment-meta.boost { color: var(--text); }
.comment-text { margin-top: 8px; white-space: pre-wrap; word-break: break-word; }
.comment-last { margin-top: 6px; word-break: break-word; font-size: 14px; }
.comment-thread { margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--border); }
.comment-thread .comment-card { margin: 0; padding: 6px 0; background: none; border: 0; }
.mention { padding: 0 3px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }

.job-title-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.upwork-link { font-size: 12px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.upwork-link:hover { color: var(--accent); }

.job-page { max-width: 860px; }
.job-page-header { margin-bottom: 18px; }
.job-page-header h1 { margin: 0 0 8px; font-size: 24px; line-height: 1.3; }
.job-page-links { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 14px; }
.job-page-links a { color: var(--accent); }
.job-page-links button { padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.job-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.job-chip { padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; }
.job-chip.suggested { color: var(--outcome-viewed); border-color: var(--outcome-viewed); }
.job-chip.applied { color: var(--accent); border-color: var(--accent); }
.job-section { margin: 0 0 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.job-section h2 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.job-section h3 { margin: 16px 0 6px; font-size: 13px; color: var(--muted); }
.job-section .description { margin-top: 10px; }
.job-section ul:not(.skills):not(.card-reasons):not(.suggested-from):not(.team-activity) { margin: 0; padding-left: 20px; }
.proposal-line { margin: 0; font-weight: 600; }
.team-feedback-item { padding: 8px 0; border-bottom: 1px solid var(--border); }
.team-feedback-item:last-child { border-bottom: 0; }
.team-feedback-head { margin: 0; font-size: 14px; color: var(--muted); }
.team-feedback-head strong { color: var(--text); }
.team-activity { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.team-activity li { padding: 2px 0; }
.comment-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.comment-form textarea { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.comment-form button { align-self: flex-start; padding: 6px 16px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; cursor: pointer; }
.comments-note { margin: -4px 0 10px; font-size: 12px; }
.mention-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.mention-chip { padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; }
.mention-chip:hover { border-color: var(--accent); }
.handle-form { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 14px; }
.handle-row { display: flex; align-items: center; gap: 6px; }
.handle-at { color: var(--muted); }
.handle-row input { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
.handle-row button { padding: 6px 14px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; cursor: pointer; }

.job-page { max-width: 1280px; }
.job-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 20px; align-items: start; }
.job-side-column { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.job-side-column .job-section { margin-bottom: 12px; }
.job-side-column .verdict-buttons { flex-wrap: wrap; }
.job-side-column .feedback button { padding: 6px 12px; }
@media (max-width: 900px) {
  .job-layout { grid-template-columns: minmax(0, 1fr); }
  .job-side-column { position: static; max-height: none; overflow: visible; }
}
