:root {
  color-scheme: light;
  --stitch-bg: #F6F3EE;
  --stitch-surface: #FFFDF8;
  --stitch-surface-raised: #FFFFFF;
  --stitch-surface-muted: #ECE7DF;
  --stitch-line: #D9D2C8;
  --stitch-line-strong: #B9AEA0;
  --stitch-ink: #14201F;
  --stitch-primary: #000505;
  --stitch-on-surface: #1b1c1b;
  --stitch-quiet: #4F5A57;
  --stitch-muted: #5C6966;
  --stitch-secondary: #54615e;
  --stitch-green: #1F7A66;
  --stitch-green-soft: #DDEFE9;
  --stitch-tertiary-fixed: #9ef3da;
  --stitch-tertiary-container: #00231b;
  --stitch-slate: #21302E;
  --stitch-slate-raised: #2B3B38;
  --stitch-slate-text: #F7F3EA;
  --stitch-slate-muted: #C9D0CA;
  --stitch-amber: #A25E26;
  --stitch-amber-soft: #F3E4D3;
  --stitch-danger: #9A3A2E;
  --shadow-card: 0 4px 20px -2px rgba(31, 122, 102, 0.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--stitch-bg);
  color: var(--stitch-ink);
  font-size: 15px;
}
a { color: inherit; }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
.material-symbols-outlined { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; -webkit-font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.concept-c-shell { min-height: 100vh; background: var(--stitch-bg); display: flex; flex-direction: column; }
.top-nav {
  min-height: 65px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  padding: 16px 56px;
  border-bottom: 1px solid var(--stitch-line);
  background: var(--stitch-surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark { display: none; }
.brand strong { font-size: 18px; line-height: 1.25; font-weight: 900; color: var(--stitch-primary); letter-spacing: -.015em; }
.top-nav nav { display: flex; gap: 24px; align-items: center; }
.top-nav nav a { display: inline-flex; align-items: center; text-decoration: none; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; line-height: 1.2; font-weight: 650; color: var(--stitch-muted); padding-bottom: 4px; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.top-nav nav a.active, .top-nav nav a:hover { color: var(--stitch-primary); border-bottom-color: var(--stitch-primary); }
.top-actions { display: flex; gap: 16px; align-items: center; }
.icon-button { border: 0; background: transparent; color: var(--stitch-muted); font-size: 24px; padding: 0; }
.profile-avatar { width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--stitch-line); display: grid; place-items: center; object-fit: cover; background: var(--stitch-surface-raised); color: var(--stitch-ink); font-weight: 800; }
.profile-button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--stitch-line); background: var(--stitch-surface-raised); border-radius: 9999px; padding: 4px 10px 4px 4px; color: var(--stitch-ink); font-weight: 700; }
.profile-button span:not(.profile-avatar) { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { flex: 1; min-height: 0; }
.eyebrow { margin: 0 0 16px; text-transform: uppercase; letter-spacing: .16em; color: var(--stitch-muted); font-size: 12px; line-height: 1.2; font-weight: 650; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: 36px; line-height: 1.08; letter-spacing: -.035em; font-weight: 650; }
h2 { font-size: 24px; line-height: 1.18; letter-spacing: -.025em; font-weight: 620; }
h3, h4 { font-size: 18px; line-height: 1.25; letter-spacing: -.015em; font-weight: 620; }
p, li, small, em, textarea, input { color: var(--stitch-quiet); line-height: 1.55; }
.body-lg { font-size: 17px; line-height: 1.6; }
.body-sm { font-size: 13px; line-height: 1.45; }
.button { border: 1px solid var(--stitch-line-strong); border-radius: 9999px; padding: 12px 24px; font-weight: 700; cursor: pointer; background: var(--stitch-surface-raised); color: var(--stitch-ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--stitch-green); color: white; border-color: var(--stitch-green); }
.button.secondary { background: var(--stitch-surface-raised); color: var(--stitch-ink); }
.button.full { width: 100%; }
.button.compact { padding: 8px 14px; font-size: 13px; }
.loading-card, .panel, .job-brief-card, .match-card, .search-result { background: var(--stitch-surface); border: 1px solid var(--stitch-line); border-radius: 12px; box-shadow: var(--shadow-card); }
.loading-card { margin: 56px; padding: 42px; }
.panel { padding: 24px; }
.panel.dark { background: var(--stitch-slate); color: var(--stitch-slate-text); border-color: #1a2826; }
.panel.dark p, .panel.dark small, .panel.dark li { color: var(--stitch-slate-muted); }
.panel.dark .eyebrow { color: var(--stitch-slate-muted); }

.home-dashboard { padding: 36px 56px 56px; display: grid; grid-template-columns: minmax(560px, 1.15fr) minmax(380px, .85fr); gap: 24px; align-items: stretch; }
.home-hero { min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; }
.home-hero h1 { color: white; font-size: 44px; line-height: 1.04; letter-spacing: -.04em; margin-bottom: 16px; }
.home-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.home-metrics article { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 16px; }
.home-metrics span { display: block; color: white; font-size: 36px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.home-metrics strong { display: block; color: white; margin: 10px 0 4px; font-size: 15px; }
.home-search, .agent-start, .beta-feedback, .today-focus { min-height: 240px; }
.search-box { display: grid; gap: 8px; margin: 20px 0; }
.search-box span { color: var(--stitch-ink); font-weight: 700; font-size: 13px; }
.search-box input { width: 100%; border: 1px solid var(--stitch-line); border-radius: 9999px; padding: 14px 16px; background: white; color: var(--stitch-ink); font-size: 15px; }
.search-results { display: grid; gap: 12px; }
.search-result { width: 100%; text-align: left; padding: 16px; display: grid; gap: 5px; }
.search-result strong { font-size: 18px; }
.search-result span { color: var(--stitch-quiet); font-size: 13px; }
.agent-start textarea, .beta-feedback textarea { width: 100%; min-height: 140px; border: 1px solid var(--stitch-line); border-radius: 12px; padding: 16px; resize: vertical; background: white; color: var(--stitch-ink); margin: 8px 0 16px; }
.today-focus { grid-column: 2; }

.screen-header { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin: 36px 56px 24px; }
.screen-header h1 { max-width: 860px; }
.jobs-layout { padding: 0 56px 56px; display: grid; grid-template-columns: minmax(410px, .9fr) 1fr; gap: 24px; }
.job-brief-card { padding: 24px; }
.job-brief-card blockquote, .search-brief-panel blockquote { margin: 18px 0; border-left: 0; background: var(--stitch-surface); border: 1px solid var(--stitch-line); border-radius: 8px; padding: 16px; color: var(--stitch-ink); font-style: italic; line-height: 1.55; }
.job-list { display: grid; gap: 16px; }
.job-row { width: 100%; text-align: left; border: 1px solid var(--stitch-line); background: var(--stitch-surface); border-radius: 12px; padding: 20px; cursor: pointer; display: grid; gap: 6px; box-shadow: var(--shadow-card); }
.job-row.active, .job-row:hover { border-color: rgba(31,122,102,.20); background: var(--stitch-green-soft); }

.matches-workspace { display: grid; grid-template-columns: 320px minmax(520px, 1fr) 450px; align-items: stretch; height: calc(100vh - 65px); overflow: hidden; }
.search-brief-panel { background: var(--stitch-surface-muted); border-right: 1px solid var(--stitch-line); padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 36px; }
.search-brief-panel h1 { font-size: 18px; line-height: 1.25; letter-spacing: -.015em; margin-bottom: 6px; }
.search-brief-panel small { display: block; margin-top: auto; padding-top: 36px; border-top: 1px solid var(--stitch-line); color: var(--stitch-green); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.brief-block { display: grid; gap: 12px; padding: 0 0 20px; border-bottom: 0; }
.brief-block strong { color: var(--stitch-muted); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.pill-list { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 14px; }
.pill-list span { background: var(--stitch-surface-raised); border: 1px solid var(--stitch-line); border-radius: 9999px; padding: 5px 8px; font-size: 13px; color: var(--stitch-ink); }
.match-list-panel { overflow-y: auto; padding: 36px; background: var(--stitch-bg); display: grid; align-content: start; gap: 16px; }
.match-group { display: grid; gap: 16px; margin-bottom: 36px; }
.match-group.dimmed { opacity: .8; }
.section-title { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--stitch-line); padding-bottom: 8px; margin-bottom: 8px; }
.section-title h2 { font-size: 24px; margin: 0; }
.section-title h2 span { color: var(--stitch-muted); font-size: 17px; font-weight: 400; margin-left: 8px; }
.section-title small { background: var(--stitch-green-soft); color: var(--stitch-green); border-radius: 9999px; padding: 5px 8px; font-weight: 650; font-size: 12px; }
.match-card { width: 100%; text-align: left; border-radius: 12px; padding: 24px; cursor: pointer; display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; align-items: start; transition: transform .15s ease, border-color .2s ease; }
.match-card.selected, .match-card:hover { border-color: rgba(31,122,102,.20); background: var(--stitch-green-soft); }
.match-card:hover { transform: translateY(-2px); }
.match-card span:not(.avatar) { display: grid; gap: 8px; }
.match-card strong { font-size: 18px; line-height: 1.25; font-weight: 620; color: var(--stitch-ink); }
.match-card em { font-style: normal; color: var(--stitch-quiet); font-size: 15px; }
.match-card small { font-size: 13px; color: var(--stitch-quiet); }
.avatar { width: 64px; height: 64px; border-radius: 8px; display: grid; place-items: center; background: var(--stitch-slate); color: white; font-weight: 900; font-size: 18px; border: 2px solid var(--stitch-surface-raised); object-fit: cover; overflow: hidden; flex-shrink: 0; }
.score-badge { padding: 0; text-align: right; color: var(--stitch-green); background: transparent; font-size: 24px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.score-badge small { display: block; color: var(--stitch-green); font-size: 12px; text-transform: uppercase; line-height: 1.2; letter-spacing: .08em; margin-top: 5px; }
.score-high { color: var(--stitch-green); }
.score-medium, .score-low { color: var(--stitch-ink); }
.candidate-analysis-panel { background: var(--stitch-slate); color: var(--stitch-slate-text); padding: 36px; overflow-y: auto; display: flex; flex-direction: column; gap: 24px; }
.candidate-analysis-panel p, .candidate-analysis-panel small, .candidate-analysis-panel span, .candidate-analysis-panel li { color: var(--stitch-slate-muted); }
.candidate-analysis-panel .eyebrow { color: var(--stitch-slate-muted); margin-bottom: 0; }
.candidate-analysis-panel h2 { font-size: 36px; line-height: 1.08; color: white; margin: 0; }
.analysis-header { display: flex; align-items: center; justify-content: space-between; }
.close-button { border: 0; background: transparent; color: var(--stitch-slate-muted); font-size: 24px; }
.evidence-card, .caveat-card, .draft-preview { border: 1px solid rgba(255,255,255,.05); background: var(--stitch-slate-raised); border-radius: 12px; padding: 16px; margin-bottom: 16px; display: grid; gap: 8px; }
.evidence-card strong { color: var(--stitch-tertiary-fixed); font-size: 18px; }
.caveat-card { border-color: rgba(162,94,38,.30); border-style: dashed; color: var(--stitch-amber); }
.draft-preview { position: relative; padding-left: 22px; font-style: italic; color: var(--stitch-slate-text); }
.draft-preview::before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 4px; background: var(--stitch-green); border-radius: 12px 0 0 12px; }
.analysis-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: auto; padding-top: 16px; }
.ai-chip, .review-chip { background: var(--stitch-tertiary-container); color: var(--stitch-tertiary-fixed) !important; border-radius: 4px; padding: 3px 5px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.evidence-grid, .outreach-layout { padding: 0 56px 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.outreach-layout { grid-template-columns: .9fr 1.15fr .85fr; }
ul { margin: 0; padding-left: 1.1rem; }
.check-list li::marker { color: var(--stitch-green); }
.caveat-list li::marker { color: var(--stitch-amber); }
.draft-panel textarea { width: 100%; min-height: 360px; border: 1px solid var(--stitch-line); border-radius: 12px; padding: 20px; resize: vertical; background: var(--stitch-surface); color: var(--stitch-ink); font-size: 15px; }
.pipeline-grid { padding: 0 56px 56px; display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 16px; overflow-x: auto; }
.pipeline-grid article { background: var(--stitch-surface); border: 1px solid var(--stitch-line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow-card); min-height: 260px; }
.pipeline-grid strong { font-size: 24px; color: var(--stitch-green); }
.digest-layout, .profile-layout { padding: 36px 56px 56px; display: grid; grid-template-columns: minmax(360px, .8fr) minmax(520px, 1.2fr); gap: 24px; }
.digest-layout aside { grid-row: span 2; padding: 32px; border-radius: 12px; background: var(--stitch-surface-muted); border: 1px solid var(--stitch-line); }
.profile-card { display: grid; gap: 16px; }
.profile-summary { display: flex; align-items: center; gap: 16px; }
.profile-summary .profile-avatar { width: 64px; height: 64px; font-size: 18px; }
.digest-card { display: grid; gap: 16px; }
.metric-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--stitch-line); }
.metric-row:last-child { border-bottom: 0; }
.status-chip { display: inline-flex; align-items: center; border-radius: 9999px; padding: 5px 8px; background: var(--stitch-surface-muted); color: var(--stitch-quiet); font-size: 12px; font-weight: 650; }
.status-chip.green { background: var(--stitch-green-soft); color: var(--stitch-green); }
.status-chip.amber { background: var(--stitch-amber-soft); color: var(--stitch-amber); }

@media (max-width: 1180px) {
  .top-nav { grid-template-columns: 1fr; height: auto; padding: 16px; gap: 16px; }
  .top-nav nav { flex-wrap: wrap; gap: 14px; }
  .top-actions { display: none; }
  .matches-workspace, .jobs-layout, .evidence-grid, .outreach-layout, .digest-layout, .profile-layout, .home-dashboard { grid-template-columns: 1fr; height: auto; overflow: visible; padding: 24px; }
  .search-brief-panel, .candidate-analysis-panel, .match-list-panel { overflow: visible; }
  .pipeline-grid { grid-template-columns: repeat(2, 1fr); padding: 24px; }
  .today-focus { grid-column: auto; }
  .screen-header { margin: 24px; }
}
@media (max-width: 700px) {
  .home-metrics, .pipeline-grid, .analysis-actions { grid-template-columns: 1fr; }
  .screen-header { display: block; }
  .match-card { grid-template-columns: 64px 1fr; }
  .score-badge { grid-column: 2; justify-self: start; text-align: left; }
}
