:root {
  --bg:        #0d0f14;
  --bg2:       #13161e;
  --bg3:       #1a1e2a;
  --border:    #252a38;
  --border2:   #2e3446;
  --text:      #e2e6f0;
  --text2:     #8892aa;
  --text3:     #545d74;
  --accent:    #4f8ef7;
  --accent2:   #3a6fd4;
  --green:     #34d399;
  --amber:     #fbbf24;
  --red:       #f87171;
  --purple:    #a78bfa;
  --teal:      #2dd4bf;
  --radius:    8px;
  --radius2:   12px;
}
[data-theme="light"] {
  --bg:        #f4f6fb;
  --bg2:       #ffffff;
  --bg3:       #eef1f8;
  --border:    #dde2ee;
  --border2:   #c8d0e4;
  --text:      #1a1e2a;
  --text2:     #5a6380;
  --text3:     #9aa3bc;
  --accent:    #3a6fd4;
  --accent2:   #2d58ab;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
}
.app { display: flex; flex-direction: column; height: 100vh; }

/* ── Header ── */
header {
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px; height: 52px;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  flex-shrink: 0; z-index: 10;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; letter-spacing: -0.3px; color: var(--text); flex-shrink: 0; }
.logo-icon { width: 26px; height: 26px; background: var(--accent); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.nav { display: flex; gap: 2px; margin-left: 12px; }
.nav-btn { padding: 5px 14px; border-radius: var(--radius); border: none; background: none; color: var(--text2); font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; }
.nav-btn:hover { background: var(--bg3); color: var(--text); }
.nav-btn.active { background: var(--bg3); color: var(--text); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 5px 12px; width: 220px; transition: border-color 0.15s; }
.search-box:focus-within { border-color: var(--accent); }
.search-box input { border: none; background: none; color: var(--text); font-family: inherit; font-size: 13px; outline: none; width: 100%; }
.search-box input::placeholder { color: var(--text3); }
.search-icon { color: var(--text3); font-size: 12px; flex-shrink: 0; }
.theme-toggle { width: 32px; height: 32px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg3); color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all 0.15s; }
.theme-toggle:hover { border-color: var(--accent); color: var(--text); }
.nav-badge { display: inline-block; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 10px; margin-left: 6px; font-family: 'DM Mono', monospace; }
.nav-badge-blue { background: #B5D4F4; color: #0C447C; }
.nav-badge-gray { background: var(--bg3); color: var(--text3); border: 1px solid var(--border); }

/* ── Layout ── */
.main { display: flex; flex: 1; overflow: hidden; }
.content { flex: 1; overflow: hidden; display: flex; flex-direction: column; }

/* ── Banner ── */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 24px 0; padding: 10px 16px; background: rgba(79,142,247,0.12); border: 1px solid rgba(79,142,247,0.3); border-radius: var(--radius); font-size: 13px; color: var(--text); flex-shrink: 0; }
.banner-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.banner-link { color: var(--accent); font-weight: 600; cursor: pointer; background: none; border: none; font-family: inherit; font-size: 13px; }
.banner-dismiss { color: var(--text3); cursor: pointer; background: none; border: none; font-size: 16px; line-height: 1; }
.banner-dismiss:hover { color: var(--text); }

/* ── Views ── */
.view { display: none; flex: 1; overflow: hidden; flex-direction: column; }
.view.active { display: flex; }

/* ── TODAY VIEW ── */
.today-view { overflow-y: auto; padding: 20px 24px; gap: 20px; flex-direction: column; }
.today-section { display: flex; flex-direction: column; gap: 10px; }
.section-header { display: flex; align-items: center; gap: 10px; }
.section-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); }
.section-count { font-size: 11px; font-family: 'DM Mono', monospace; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 1px 7px; color: var(--text2); }
.attention-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.attention-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); padding: 14px 16px; cursor: pointer; transition: border-color 0.15s, transform 0.1s; position: relative; overflow: hidden; }
.attention-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.attention-card.urgent::before  { background: var(--purple); }
.attention-card.warning::before { background: var(--amber); }
.attention-card:hover { border-color: var(--border2); transform: translateY(-1px); }
.card-company { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.card-role { font-size: 12px; color: var(--text2); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 4px; }
.tag-interview { background: rgba(167,139,250,0.15); color: var(--purple); }
.tag-followup  { background: rgba(251,191,36,0.15); color: var(--amber); }
.tag-stale     { background: rgba(248,113,113,0.12); color: var(--red); }
.tag-submitted { background: rgba(79,142,247,0.12); color: var(--accent); }
.card-days { font-size: 11px; color: var(--text3); font-family: 'DM Mono', monospace; }
.today-empty { text-align: center; padding: 48px 20px; color: var(--text3); font-size: 13px; }
.today-empty-icon { font-size: 32px; margin-bottom: 10px; }

/* ── Agenda (Today rewrite) ── */
.agenda-section { display: flex; flex-direction: column; gap: 8px; }
.agenda-header { display: flex; align-items: center; justify-content: space-between; }
.agenda-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); }
.agenda-dismiss-all { font-size: 11px; color: var(--text3); cursor: pointer; background: none; border: none; font-family: inherit; }
.agenda-dismiss-all:hover { color: var(--text2); text-decoration: underline; }
.agenda-list { display: flex; flex-direction: column; }
.agenda-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius); transition: background 0.1s; }
.agenda-row:hover { background: var(--bg2); }
.agenda-text { flex: 1; font-size: 13px; color: var(--text); cursor: pointer; }
.agenda-context { font-size: 11px; color: var(--text3); margin-top: 1px; }
.agenda-check { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); background: none; color: var(--text3); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; transition: all 0.15s; }
.agenda-check:hover { border-color: var(--green); color: var(--green); }
.agenda-snooze { font-size: 11px; color: var(--text2); border: 1px solid var(--border); background: none; border-radius: var(--radius); padding: 4px 10px; cursor: pointer; font-family: inherit; transition: all 0.15s; flex-shrink: 0; }
.agenda-snooze:hover { border-color: var(--accent); color: var(--accent); }
.agenda-done { opacity: 0.5; text-decoration: line-through; }
.agenda-show-more { font-size: 11px; color: var(--text3); cursor: pointer; background: none; border: none; font-family: inherit; padding: 6px 12px; }
.agenda-show-more:hover { color: var(--text2); }

/* ── PIPELINE VIEW ── */
.pipeline-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 0; flex-shrink: 0; }
.pipeline-count { font-size: 12px; color: var(--text2); font-weight: 500; }
.view-toggle { display: flex; gap: 2px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 2px; }
.view-toggle-btn { padding: 5px 14px; border-radius: 6px; border: none; background: none; color: var(--text2); font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.15s; }
.view-toggle-btn.active { background: var(--bg2); color: var(--text); }
.pipeline-gate-view { flex: 1; overflow: hidden; padding: 12px 24px 16px; }
.gate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; height: 100%; }
.gate-col { display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); overflow: hidden; min-width: 0; }
.gate-col-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.gate-col-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text2); }
.gate-col-badge { font-size: 11px; font-family: 'DM Mono', monospace; background: var(--bg3); border-radius: 10px; padding: 1px 8px; color: var(--text2); }
.gate-col-cards { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.gate-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; transition: border-color 0.15s; }
.gate-card:hover { border-color: var(--accent); }
.gate-card-company { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.gate-card-role { font-size: 11px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.gate-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gate-score-chip { font-size: 10px; font-weight: 600; font-family: 'DM Mono', monospace; padding: 2px 7px; border-radius: 4px; }
.gate-score-strong  { background: rgba(52,211,153,0.15);  color: var(--green); }
.gate-score-targeted{ background: rgba(79,142,247,0.15);  color: var(--accent); }
.gate-score-tactical{ background: rgba(251,191,36,0.15);  color: var(--amber); }
.gate-card-action { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text3); }
.gate-next { font-size: 11px; color: var(--text3); }
.gate-score-chip-sm { font-size: 10px; font-weight: 600; font-family: 'DM Mono', monospace; padding: 1px 6px; border-radius: 4px; background: var(--bg3); color: var(--text2); }
.gate-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.gate-dot.red { background: var(--red); }
.gate-dot.blue { background: var(--accent); }
.gate-collapsed { padding: 14px 12px; text-align: center; font-size: 11px; color: var(--text3); border: 1px dashed var(--border2); border-radius: var(--radius); }
.pipeline-all-view { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* ── ALL APPS VIEW ── */
.all-view { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.filter-bar { display: flex; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; flex-wrap: wrap; align-items: center; }
.filter-pill { padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border); background: none; color: var(--text2); font-family: inherit; font-size: 12px; cursor: pointer; transition: all 0.15s; }
.filter-pill:hover { border-color: var(--accent); color: var(--text); }
.filter-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.apps-table { flex: 1; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; }
thead { position: sticky; top: 0; background: var(--bg2); z-index: 1; }
th { text-align: left; padding: 10px 16px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text3); border-bottom: 1px solid var(--border); white-space: nowrap; cursor: pointer; user-select: none; }
th:hover { color: var(--text2); }
td { padding: 9px 16px; font-size: 13px; border-bottom: 1px solid var(--border); color: var(--text); }
tr { cursor: pointer; transition: background 0.1s; }
tr:hover td { background: var(--bg2); }
.td-company { font-weight: 500; }
.td-role { color: var(--text2); max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-date { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text3); white-space: nowrap; }
.status-pill { display: inline-block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.s-submitted   { background: rgba(79,142,247,0.12);  color: var(--accent); }
.s-interviewed { background: rgba(167,139,250,0.15); color: var(--purple); }
.s-rejected    { background: rgba(248,113,113,0.12); color: var(--red); }
.s-offer       { background: rgba(52,211,153,0.15);  color: var(--green); }
.s-declined    { background: rgba(248,113,113,0.08); color: var(--text3); }
.s-cold        { background: rgba(100,116,139,0.12); color: var(--text3); }
.s-waitlisted  { background: rgba(251,191,36,0.12);  color: var(--amber); }
.s-targeted    { background: rgba(45,212,191,0.12);  color: var(--teal); }
.s-pursuing    { background: rgba(79,142,247,0.10);  color: var(--accent); border: 1px solid rgba(79,142,247,0.2); }

/* ── ACTIVITIES VIEW ── */
.activities-view { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.act-toolbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; flex-shrink: 0; flex-wrap: wrap; }
.act-toolbar-top { border-bottom: 1px solid var(--border); }
.act-toolbar-period { padding-top: 0; }
.act-chips { display: flex; gap: 6px; }
.act-chip { padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border); background: none; color: var(--text2); font-family: inherit; font-size: 12px; cursor: pointer; transition: all 0.15s; }
.act-chip:hover { border-color: var(--accent); color: var(--text); }
.act-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.act-archive-toggle { font-size: 11px; color: var(--text3); background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 10px; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.act-archive-toggle:hover { border-color: var(--border2); color: var(--text2); }
.act-archive-toggle.active { color: var(--accent); border-color: var(--accent); }
.act-row-archive { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); background: none; color: var(--text3); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; transition: all 0.15s; margin-left: auto; }
.act-row-archive:hover { border-color: var(--green); color: var(--green); }
.act-row.archived { opacity: 0.45; }
.act-toolbar-group { display: flex; align-items: center; gap: 6px; }
.act-toolbar-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text3); white-space: nowrap; }
.act-select { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 12px; padding: 5px 10px; cursor: pointer; transition: border-color 0.15s; outline: none; }
.act-select:focus { border-color: var(--accent); }
.act-date-input { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: 'DM Mono', monospace; font-size: 12px; padding: 5px 10px; cursor: pointer; outline: none; width: 130px; }
.act-date-input:focus { border-color: var(--accent); }
.act-date-input::-webkit-calendar-picker-indicator { filter: invert(0.5); cursor: pointer; }
.act-toolbar-sep { width: 1px; height: 20px; background: var(--border); flex-shrink: 0; }
.act-count-badge { margin-left: auto; font-size: 11px; font-family: 'DM Mono', monospace; color: var(--text3); white-space: nowrap; }
.deed-export-btn { display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius); border: 1px solid var(--border); background: none; color: var(--text2); font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.deed-export-btn:hover { border-color: var(--green); color: var(--green); }
.act-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 16px; }
.act-date-group { margin-top: 20px; }
.act-date-header { display: flex; align-items: center; gap: 10px; padding: 8px 0 6px; position: sticky; top: 0; background: var(--bg); z-index: 1; }
.act-date-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); font-family: 'DM Mono', monospace; white-space: nowrap; }
.act-date-line { flex: 1; height: 1px; background: var(--border); }
.act-date-count { font-size: 10px; font-family: 'DM Mono', monospace; color: var(--text3); white-space: nowrap; }
.act-row { display: flex; align-items: flex-start; gap: 12px; padding: 9px 12px; border-radius: var(--radius); cursor: pointer; transition: background 0.1s; margin-bottom: 2px; }
.act-row:hover { background: var(--bg2); }
.act-type-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.dot-interview_scheduled   { background: var(--purple); }
.dot-interview_completed   { background: var(--purple); opacity: 0.6; }
.dot-offer_received        { background: var(--green); }
.dot-application_submitted { background: var(--accent); }
.dot-application_confirmed { background: var(--accent); opacity: 0.7; }
.dot-rejected              { background: var(--red); }
.dot-recruiter_outreach    { background: var(--teal); }
.dot-networking_call       { background: var(--teal); }
.dot-networking_email      { background: var(--teal); opacity: 0.7; }
.dot-followup_due          { background: var(--amber); }
.dot-self_note             { background: var(--text3); }
.dot-coffee_chat           { background: var(--teal); }
.dot-job_fair_visit        { background: var(--accent); }
.dot-default               { background: var(--border2); }
.act-row-content { flex: 1; min-width: 0; }
.act-row-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.act-row-type { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text2); white-space: nowrap; }
.act-row-company { font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-row-company::before { content: '·'; margin-right: 8px; color: var(--text3); }
.act-row-note { font-size: 12px; color: var(--text2); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-row-meta { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.act-row-source { font-size: 10px; font-family: 'DM Mono', monospace; color: var(--text3); }
.deed-badge { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 1px 5px; border-radius: 3px; background: rgba(52,211,153,0.12); color: var(--green); border: 1px solid rgba(52,211,153,0.2); }

/* ── FUNNEL / SANKEY VIEW ── */
.funnel-view { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.funnel-header { padding: 16px 24px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; }
.funnel-title { font-size: 13px; font-weight: 600; color: var(--text); }
.funnel-subtitle { font-size: 11px; color: var(--text3); margin-top: 2px; }
.funnel-body { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.sankey-wrap { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); padding: 24px; }
.sankey-svg { width: 100%; overflow: visible; }
.conv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.conv-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); padding: 16px 18px; }
.conv-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text3); margin-bottom: 6px; }
.conv-value { font-size: 28px; font-weight: 600; font-family: 'DM Mono', monospace; letter-spacing: -1px; }
.conv-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }
.conv-value.c-total    { color: var(--text); }
.conv-value.c-active   { color: var(--accent); }
.conv-value.c-interview{ color: var(--purple); }
.conv-value.c-offer    { color: var(--green); }
.conv-value.c-rejected { color: var(--red); }
.stage-breakdown { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); overflow: hidden; }
.stage-breakdown-header { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text3); }
.stage-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--border); transition: background 0.1s; }
.stage-row:last-child { border-bottom: none; }
.stage-row:hover { background: var(--bg3); }
.stage-name { font-size: 13px; font-weight: 500; width: 160px; flex-shrink: 0; }
.stage-bar-wrap { flex: 1; height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.stage-bar { height: 100%; border-radius: 4px; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
.stage-count { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text2); width: 36px; text-align: right; flex-shrink: 0; }
.stage-pct { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text3); width: 44px; text-align: right; flex-shrink: 0; }

/* ── SEARCH & EVALUATE / QUEUE VIEW ── */
.search-view { display: flex; flex-direction: column; flex: 1; overflow-y: auto; padding: 20px 24px; gap: 20px; }
.search-layout { display: grid; grid-template-columns: 380px 1fr; gap: 0; flex: 1; min-height: 0; overflow: hidden; }
.search-col-left { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; padding: 20px 16px 20px 24px; border-right: 1px solid var(--border); }
.search-col-right { display: flex; flex-direction: column; overflow-y: auto; }
.eval-result-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; color: var(--text3); font-size: 13px; text-align: center; line-height: 1.6; padding: 40px; height: 100%; }
.search-results { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); overflow: hidden; }
.search-results-group { border-bottom: 1px solid var(--border); }
.search-results-group:last-child { border-bottom: none; }
.search-results-group-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text3); padding: 10px 16px 4px; }
.search-result-row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; cursor: pointer; transition: background 0.1s; }
.search-result-row:hover { background: var(--bg3); }
.search-result-company { font-size: 13px; font-weight: 500; }
.search-result-role { font-size: 11px; color: var(--text3); }
.queue-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.queue-stats { font-size: 12px; color: var(--text2); }
.queue-decided-toggle { font-size: 11px; color: var(--text3); cursor: pointer; padding: 6px 0 2px; user-select: none; }
.queue-decided-toggle:hover { color: var(--text2); }
.queue-actions { display: flex; gap: 8px; margin-left: auto; }
.queue-intake { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.queue-intake-row { display: flex; gap: 10px; }
.queue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.queue-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); overflow: hidden; cursor: pointer; transition: border-color 0.15s; }
.queue-card:hover { border-color: var(--border2); }
.queue-card-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; gap: 8px; }
.queue-card-company { font-size: 13px; font-weight: 600; }
.queue-card-role { font-size: 11px; color: var(--text2); }
.queue-badge { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 4px; flex-shrink: 0; }
.queue-badge-evaluated { background: rgba(52,211,153,0.15); color: var(--green); }
.queue-badge-evaluating { background: var(--bg3); color: var(--text2); }
.queue-card-summary { font-size: 11px; color: var(--text2); padding: 0 14px 10px; line-height: 1.4; }
.queue-card-divider { height: 1px; background: var(--border); }
.queue-card-score-row { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 12px; }
.queue-card-tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 14px 10px; }
.queue-tag { font-size: 10px; padding: 2px 7px; border-radius: 4px; }
.queue-tag-strength { background: rgba(52,211,153,0.12); color: var(--green); }
.queue-tag-gap { background: rgba(248,113,113,0.1); color: var(--red); }
.queue-card-actions { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); }
.queue-skeleton-row { height: 10px; border-radius: 4px; background: var(--bg3); margin: 0 14px 8px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.queue-card-queued { padding: 14px; font-size: 12px; font-style: italic; color: var(--text3); }
.queue-card-passed { padding: 14px; font-size: 12px; color: var(--text3); }
.queue-badge-passed { background: rgba(248,113,113,0.12); color: var(--red); }
.queue-card-expanded { padding: 14px; border-top: 1px solid var(--border); }
.queue-pass-form { display: flex; gap: 8px; padding: 8px 14px; align-items: center; border-top: 1px solid var(--border); }
.queue-override { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.queue-intake-input { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 10px; color: var(--text); font-family: inherit; font-size: 13px; outline: none; }
.queue-intake-input:focus { border-color: var(--accent); }
.queue-intake-jd { width: 100%; min-height: 140px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; color: var(--text); font-family: inherit; font-size: 13px; outline: none; resize: vertical; box-sizing: border-box; }
.queue-intake-jd:focus { border-color: var(--accent); }
.queue-intake-actions { display: flex; gap: 8px; justify-content: flex-end; }
.search-group-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text3); padding: 10px 16px 4px; }
.search-result-name { font-size: 13px; font-weight: 500; flex: 1; }
.search-result-sub { font-size: 11px; color: var(--text3); }
.btn-sm { padding: 4px 10px; font-size: 11px; }

/* ── METRICS VIEW ── */
.metrics-view { display: flex; flex-direction: column; flex: 1; overflow-y: auto; padding: 20px 24px; gap: 20px; }
.metric-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); padding: 16px 18px; }
.metric-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text3); margin-bottom: 6px; }
.metric-value { font-size: 28px; font-weight: 600; font-family: 'DM Mono', monospace; letter-spacing: -1px; color: var(--text); }
.metrics-placeholder { text-align: center; padding: 40px 20px; color: var(--text3); font-size: 13px; }

/* ── SETTINGS VIEW ── */
.settings-view { display: flex; flex-direction: column; flex: 1; overflow-y: auto; padding: 20px 24px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--border); }
.settings-row:last-child { border-bottom: none; }
.settings-label { font-size: 13px; font-weight: 500; color: var(--text); }
.settings-desc { font-size: 12px; color: var(--text3); margin-top: 2px; }
.settings-select { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 12px; padding: 6px 10px; cursor: pointer; outline: none; }

/* ── EVAL VIEW ── */
.eval-view { flex-direction: column; flex: 1; overflow-y: auto; }
.eval-layout { display: flex; min-height: 100%; }
.eval-intake { width: 380px; flex-shrink: 0; border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 20px; gap: 14px; overflow-y: auto; }
.eval-intake-title { font-size: 13px; font-weight: 600; color: var(--text); }
.eval-intake-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }
.eval-field { display: flex; flex-direction: column; gap: 5px; }
.eval-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text3); }
.eval-input { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 13px; padding: 8px 10px; outline: none; transition: border-color 0.15s; }
.eval-input:focus { border-color: var(--accent); }
.eval-textarea { resize: vertical; min-height: 280px; line-height: 1.5; font-size: 12px; }
.eval-btn { padding: 9px 18px; border-radius: var(--radius); border: none; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.eval-btn-primary { background: var(--accent); color: #fff; }
.eval-btn-primary:hover { background: var(--accent2); }
.eval-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.eval-results { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.eval-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; color: var(--text3); font-size: 13px; gap: 10px; }
.eval-empty-icon { font-size: 36px; }
.eval-progress { display: none; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 16px; }
.eval-progress-spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
.eval-progress-step { font-size: 12px; color: var(--text3); transition: color 0.3s; }
.eval-progress-step.active { color: var(--text2); }
@keyframes spin { to { transform: rotate(360deg); } }
.eval-score-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); flex-shrink: 0; }
.eval-score-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.eval-company { font-size: 16px; font-weight: 600; letter-spacing: -0.3px; }
.eval-role-title { font-size: 12px; color: var(--text2); margin-top: 2px; }
.eval-jde-id { font-size: 11px; font-family: 'DM Mono', monospace; color: var(--text3); margin-top: 4px; }
.eval-go-badge { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.eval-go-score { font-size: 32px; font-weight: 700; font-family: 'DM Mono', monospace; letter-spacing: -1px; line-height: 1; }
.eval-classification { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 8px; border-radius: 4px; }
.class-strong   { background: rgba(52,211,153,0.15);  color: var(--green); }
.class-targeted { background: rgba(79,142,247,0.15);  color: var(--accent); }
.class-tactical { background: rgba(251,191,36,0.15);  color: var(--amber); }
.class-nogo     { background: rgba(248,113,113,0.12); color: var(--red); }
.eval-score-meters { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border-bottom: 1px solid var(--border); }
.eval-meter { padding: 12px 16px; border-right: 1px solid var(--border); }
.eval-meter:last-child { border-right: none; }
.eval-meter-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); margin-bottom: 6px; }
.eval-meter-bar { height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.eval-meter-fill { height: 100%; border-radius: 2px; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
.eval-meter-val { font-size: 13px; font-weight: 600; font-family: 'DM Mono', monospace; }
.eval-body-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--border); }
.eval-body-col { padding: 14px 16px; border-right: 1px solid var(--border); }
.eval-body-col:last-child { border-right: none; }
.eval-list { display: flex; flex-direction: column; gap: 5px; }
.eval-body-col-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.eval-body-col-title.strengths { color: var(--green); }
.eval-body-col-title.gaps { color: var(--red); }
.eval-list-item { font-size: 12px; color: var(--text2); line-height: 1.4; padding-left: 12px; position: relative; }
.eval-list-item::before { content: ''; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; }
.eval-list-item.strength::before { background: var(--green); }
.eval-list-item.gap::before { background: var(--red); }
.eval-flags { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.eval-flags-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--amber); margin-bottom: 8px; }
.eval-flag-item { font-size: 12px; color: var(--text2); line-height: 1.4; padding: 5px 0; border-bottom: 1px solid var(--border); display: flex; gap: 8px; align-items: flex-start; }
.eval-flag-item:last-child { border-bottom: none; }
.eval-flag-item::before { content: '⚑'; color: var(--amber); font-size: 11px; flex-shrink: 0; margin-top: 1px; }
.eval-resume { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 16px; }
.eval-resume-badge { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 12px; font-family: 'DM Mono', monospace; font-size: 16px; font-weight: 600; color: var(--accent); flex-shrink: 0; }
.eval-resume-rationale { font-size: 12px; color: var(--text2); line-height: 1.5; }
.eval-resume-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text3); margin-bottom: 3px; }
.eval-decision-bar { padding: 14px 16px; display: flex; gap: 10px; align-items: center; background: var(--bg3); flex-wrap: wrap; }
.eval-decision-label { font-size: 11px; color: var(--text3); flex: 1; min-width: 120px; }
.btn-pursue { background: var(--green); color: #0d0f14; padding: 7px 20px; border-radius: var(--radius); border: none; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: opacity 0.15s; }
.btn-pursue:hover { opacity: 0.85; }
.btn-pass { background: none; color: var(--text2); padding: 7px 16px; border-radius: var(--radius); border: 1px solid var(--border); font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.15s; }
.btn-pass:hover { border-color: var(--red); color: var(--red); }
.eval-decided-badge { font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: var(--radius); }
.eval-decided-pursue { background: rgba(52,211,153,0.15); color: var(--green); }
.eval-decided-pass   { background: rgba(248,113,113,0.12); color: var(--red); }

/* ── Drawer ── */
.drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 50; backdrop-filter: blur(2px); }
.drawer-overlay.open { display: block; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 50vw; min-width: 480px; background: var(--bg2); border-left: 1px solid var(--border); z-index: 51; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.25s cubic-bezier(0.4,0,0.2,1); }
.drawer.open { transform: translateX(0); }
.drawer-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; position: relative; }
.drawer-close { position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg3); color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all 0.15s; }
.drawer-close:hover { border-color: var(--red); color: var(--red); }
.drawer-company { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 4px; padding-right: 40px; }
.drawer-role { font-size: 13px; color: var(--text2); margin-bottom: 12px; }
.drawer-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-section { margin-top: 20px; }
.drawer-section:first-child { margin-top: 0; }
.drawer-section-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text3); margin-bottom: 10px; }
.drawer-artifact-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.drawer-artifact-label { flex: 1; font-size: 13px; color: var(--text); }
.drawer-artifact-icon { width: 28px; height: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg3); color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; transition: all 0.15s; }
.drawer-artifact-icon:hover { border-color: var(--accent); color: var(--accent); }
.drawer-footer { display: flex; gap: 8px; align-items: center; padding: 14px 24px; border-top: 1px solid var(--border); flex-shrink: 0; }
.drawer-footer select { flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 13px; padding: 7px 10px; cursor: pointer; }
.drawer-gate-badge { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 4px; background: var(--bg3); color: var(--text2); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 3px; }
.field-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text3); }
.field-value { font-size: 13px; color: var(--text); }
.field-value.mono { font-family: 'DM Mono', monospace; font-size: 12px; }
.field-value.empty { color: var(--text3); font-style: italic; }
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.act-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border2); flex-shrink: 0; margin-top: 5px; }
.act-dot.interview_scheduled { background: var(--purple); }
.act-dot.rejected { background: var(--red); }
.act-dot.followup_due { background: var(--amber); }
.act-dot.application_confirmed { background: var(--green); }
.act-content { flex: 1; }
.act-date { font-size: 10px; font-family: 'DM Mono', monospace; color: var(--text3); margin-bottom: 2px; }
.act-type { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text2); margin-bottom: 3px; }
.act-note { font-size: 12px; color: var(--text); line-height: 1.4; }
.add-note-form { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 16px; }
.add-note-form textarea { width: 100%; background: none; border: none; color: var(--text); font-family: inherit; font-size: 13px; resize: none; outline: none; min-height: 60px; }
.add-note-form textarea::placeholder { color: var(--text3); }
.add-note-actions { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.type-select { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text2); font-family: inherit; font-size: 12px; padding: 4px 8px; cursor: pointer; }
.btn { padding: 5px 14px; border-radius: var(--radius); border: none; font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); }
.btn-ghost { background: none; color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border2); color: var(--text); }
.btn-green { background: var(--green); color: #0d0f14; }
.status-editor { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; padding: 12px; background: var(--bg3); border-radius: var(--radius); border: 1px solid var(--border); }
.status-editor label { font-size: 11px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.status-editor select { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 13px; padding: 4px 8px; cursor: pointer; flex: 1; }
.contact-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px; }
.contact-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.contact-title { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.contact-links { display: flex; gap: 8px; }
.contact-link { font-size: 11px; color: var(--accent); text-decoration: none; }
.contact-link:hover { text-decoration: underline; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text3); font-size: 13px; }
.empty-icon { font-size: 28px; margin-bottom: 8px; }
.loading { display: flex; align-items: center; justify-content: center; flex: 1; color: var(--text3); font-size: 13px; gap: 10px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }

/* DEED modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 60; backdrop-filter: blur(3px); align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); width: 600px; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0,0,0,0.5); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-title { font-size: 14px; font-weight: 600; }
.modal-close { width: 28px; height: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg3); color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.modal-close:hover { border-color: var(--red); color: var(--red); }
.modal-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.modal-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; flex-shrink: 0; }
.deed-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.deed-table th { text-align: left; padding: 6px 10px; background: var(--bg3); color: var(--text3); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; border: 1px solid var(--border); cursor: default; }
.deed-table td { padding: 7px 10px; border: 1px solid var(--border); color: var(--text); font-size: 11px; vertical-align: top; }
.deed-table tr:nth-child(even) td { background: var(--bg3); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 18px; font-size: 13px; color: var(--text); box-shadow: 0 8px 32px rgba(0,0,0,0.4); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); z-index: 100; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--green); }
.toast.error   { border-color: var(--red); }

/* ── Tailor panel ── */
.btn-tailor { background: none; color: var(--accent); border: 1px solid var(--accent); padding: 5px 14px; border-radius: var(--radius); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.btn-tailor:hover { background: var(--accent); color: #fff; }
.btn-tailor:disabled { opacity: 0.45; cursor: not-allowed; }
.tailor-panel { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.tailor-summary { font-size: 13px; color: var(--text2); }
.tailor-summary strong { color: var(--text); }
.tailor-resume-textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: 'DM Mono', monospace; font-size: 12px; line-height: 1.7; padding: 14px; outline: none; resize: vertical; min-height: 500px; }
.tailor-resume-textarea:focus { border-color: var(--accent); }
.tailor-gaps-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--amber); margin-bottom: 6px; }
.tailor-gap-item { font-size: 12px; color: var(--text2); display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; padding: 3px 0; }
.tailor-gap-item::before { content: '\26A0'; color: var(--amber); flex-shrink: 0; }
.tailor-loading-msg { display: flex; align-items: center; gap: 10px; padding: 24px 20px; color: var(--text3); font-size: 12px; }
.tailor-error-msg { margin: 16px 20px; padding: 12px 14px; background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.2); border-radius: var(--radius); font-size: 12px; color: var(--red); }

/* ── Status popover ── */
.status-popover { position: fixed; background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius2); box-shadow: 0 8px 32px rgba(0,0,0,0.45); padding: 6px; z-index: 300; display: flex; flex-direction: column; gap: 2px; }
.status-popover-item { padding: 7px 12px; border-radius: var(--radius); border: none; background: none; color: var(--text2); font-family: inherit; font-size: 12px; font-weight: 500; text-align: left; cursor: pointer; transition: background 0.1s; width: 100%; }
.status-popover-item:hover { background: var(--bg3); color: var(--text); }
.status-popover-item.snooze { color: var(--amber); }
.status-popover-item.snooze:hover { background: rgba(251,191,36,0.08); }
.status-popover-sep { height: 1px; background: var(--border); margin: 4px 0; }
.status-pill.clickable { cursor: pointer; }
.status-pill.clickable:hover { opacity: 0.8; }
