/* 95match — Recommendations — admin styly */
:root {
  --bg-page: #f6f6f3;
  --bg-card: #ffffff;
  --bg-surface: #f0efea;
  --bg-info: #e7f0fb;
  --bg-success: #e4f3e9;
  --bg-warn: #f6efdc;
  --bg-danger: #fbeaea;
  --text-primary: #1d1d1b;
  --text-secondary: #6c6b66;
  --text-tertiary: #9b9a94;
  --text-info: #1d5fa0;
  --text-success: #1f7a3a;
  --text-warn: #8a6d1f;
  --text-danger: #a8302f;
  --border-soft: rgba(0, 0, 0, 0.09);
  --border-mid: rgba(0, 0, 0, 0.16);
  --brand: #16a34a;
  --brand-hover: #15803d;
  --radius-md: 8px;
  --radius-lg: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #1f1e1c;
    --bg-card: #2a2926;
    --bg-surface: #323029;
    --bg-info: #21364a;
    --bg-success: #20382a;
    --bg-warn: #3a3320;
    --bg-danger: #3d2422;
    --text-primary: #ededea;
    --text-secondary: #a8a7a1;
    --text-tertiary: #7a7975;
    --text-info: #7db4ea;
    --text-success: #6cc488;
    --text-warn: #d6bb6b;
    --text-danger: #e89492;
    --border-soft: rgba(255, 255, 255, 0.10);
    --border-mid: rgba(255, 255, 255, 0.18);
    --brand: #22c55e;
    --brand-hover: #4ade80;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.page { max-width: 900px; margin: 0 auto; padding: 32px 24px 72px; }
h1, h2, h3 { font-weight: 500; }
code { background: var(--bg-surface); padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }
.muted { color: var(--text-tertiary); }
.small { font-size: 11.5px; }
.t-ok { color: var(--text-success); }
.t-no { color: var(--text-danger); }
.t-info { color: var(--text-info); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-family: inherit; color: var(--text-primary); background: transparent; border: 0.5px solid var(--border-mid); border-radius: var(--radius-md); padding: 7px 13px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--bg-surface); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-danger { color: var(--text-danger); border-color: var(--border-soft); }
.btn-danger:hover { background: var(--bg-danger); }
.btn-sm { font-size: 12px; padding: 4px 10px; }
.btn-block { width: 100%; margin-top: 0.3rem; }

/* Flash */
.flash { background: var(--bg-info); color: var(--text-info); border-radius: var(--radius-md); padding: 10px 14px; font-size: 13px; margin-bottom: 1rem; }

/* Topbar */
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 1.1rem; flex-wrap: wrap; }
.topbar h1 { margin: 0; font-size: 22px; }
.topbar .sub { margin: 4px 0 0; font-size: 13px; color: var(--text-tertiary); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 10px; border-radius: var(--radius-md); }
.badge-key { background: var(--bg-surface); color: var(--text-secondary); }
.badge-draft { background: var(--bg-warn); color: var(--text-warn); }
.badge-sent { background: var(--bg-success); color: var(--text-success); }

/* Filter bar */
.filterbar { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; flex-wrap: wrap; }
.filterbar .fb-label { font-size: 13px; color: var(--text-secondary); }
.filterbar select { font-family: inherit; font-size: 13px; color: var(--text-primary); background: var(--bg-card); border: 0.5px solid var(--border-mid); border-radius: var(--radius-md); padding: 6px 10px; max-width: 320px; }
.filterbar .fb-hist { font-size: 12.5px; color: var(--text-tertiary); }

/* Summary */
.summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 1rem; flex-wrap: wrap; }
.summary-count { font-size: 14px; color: var(--text-secondary); }
.summary-count strong { color: var(--text-primary); font-weight: 500; }

/* List cards */
.rec { display: block; background: var(--bg-card); border: 0.5px solid var(--border-soft); border-radius: var(--radius-lg); padding: 1.1rem 1.3rem; margin-bottom: 1rem; text-decoration: none; color: inherit; transition: border-color .12s; }
.rec:hover { border-color: var(--border-mid); }
.rec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rec-name { margin: 0; font-size: 17px; }
.rec-name.unassigned { color: var(--text-tertiary); font-style: italic; }
.rec-meta { margin: 3px 0 0; font-size: 12.5px; color: var(--text-tertiary); }
.rec-foot { display: flex; align-items: center; gap: 16px; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 0.5px solid var(--border-soft); font-size: 12.5px; color: var(--text-secondary); flex-wrap: wrap; }
.rec-foot .pill { display: inline-flex; align-items: center; gap: 6px; }

/* Detail */
.back { display: inline-block; font-size: 13px; color: var(--text-secondary); text-decoration: none; margin-bottom: 1rem; }
.back:hover { text-decoration: underline; }
.detail-head { background: var(--bg-card); border: 0.5px solid var(--border-soft); border-radius: var(--radius-lg); padding: 1.2rem 1.35rem; margin-bottom: 1.1rem; }
.detail-head h2 { margin: 0; font-size: 19px; }
.detail-head .email { margin: 3px 0 0; font-size: 13px; color: var(--text-secondary); }
.detail-head .row2 { display: flex; align-items: center; gap: 10px; margin-top: 0.7rem; flex-wrap: wrap; font-size: 12.5px; }

/* Candidate form */
.cand-form { margin: 0; }
.dh-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); margin-bottom: 5px; }
.cand-select { width: 100%; font-family: inherit; font-size: 14px; color: var(--text-primary); background: var(--bg-page); border: 0.5px solid var(--border-mid); border-radius: var(--radius-md); padding: 8px 10px; }
.cand-manual { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cand-manual input { flex: 1; min-width: 160px; font-family: inherit; font-size: 13.5px; color: var(--text-primary); background: var(--bg-page); border: 0.5px solid var(--border-mid); border-radius: var(--radius-md); padding: 8px 10px; }
.help { font-size: 11.5px; color: var(--text-tertiary); margin-top: 5px; }

/* Stepper */
.stepper-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-surface); border-radius: var(--radius-md); padding: 9px 13px; margin-top: 0.9rem; flex-wrap: wrap; }
.stepper-box .lbl { font-size: 13px; color: var(--text-secondary); }
.stepper { display: inline-flex; align-items: center; gap: 0; border: 0.5px solid var(--border-mid); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-card); margin: 0; }
.stepper button { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; font-size: 16px; color: var(--text-primary); font-family: inherit; }
.stepper button:hover { background: var(--bg-surface); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper .val { min-width: 38px; text-align: center; font-size: 14px; }

/* Section label */
.sec-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); margin: 1.4rem 0 0.7rem; }

/* Item card */
.item { background: var(--bg-card); border: 0.5px solid var(--border-soft); border-radius: var(--radius-lg); padding: 1rem 1.15rem; margin-bottom: 0.8rem; }
.item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.item-head-l { display: flex; gap: 10px; }
.item-num { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-surface); color: var(--text-secondary); font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.item-title { margin: 0; font-size: 15px; }
.item-emp { margin: 2px 0 0; font-size: 12.5px; color: var(--text-secondary); }
.item-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0.6rem 0; }
.item-tag { font-size: 11.5px; color: var(--text-secondary); background: var(--bg-surface); border-radius: 999px; padding: 3px 9px; }
.item-desc { font-size: 13px; color: var(--text-primary); background: var(--bg-surface); border-radius: var(--radius-md); padding: 9px 11px; margin: 0.55rem 0; line-height: 1.5; }
.item-url { font-size: 12px; color: var(--text-info); word-break: break-all; }
.item-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 0.7rem; }
.item-tools { display: flex; gap: 4px; margin: 0; }
.icon-btn { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 0.5px solid var(--border-soft); border-radius: var(--radius-md); background: transparent; cursor: pointer; color: var(--text-secondary); font-size: 13px; }
.icon-btn:hover { background: var(--bg-surface); }
.icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* Tracking */
.track { display: flex; align-items: center; gap: 12px; margin-top: 0.7rem; padding-top: 0.7rem; border-top: 0.5px solid var(--border-soft); flex-wrap: wrap; }
.track-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.tc-ok { background: var(--bg-success); color: var(--text-success); }
.tc-no { background: var(--bg-danger); color: var(--text-danger); }
.tc-none { background: var(--bg-surface); color: var(--text-tertiary); }
.tc-info { background: var(--bg-info); color: var(--text-info); }
.fb-note { font-size: 12.5px; color: var(--text-secondary); background: var(--bg-surface); border-radius: var(--radius-md); padding: 8px 11px; margin-top: 0.6rem; }
.fb-note b { color: var(--text-primary); font-weight: 600; }

/* Info box */
.infobox { background: var(--bg-info); color: var(--text-info); border-radius: var(--radius-md); padding: 10px 13px; font-size: 12.5px; margin: 0.9rem 0; line-height: 1.5; }

/* Empty */
.empty { text-align: center; color: var(--text-tertiary); font-size: 13.5px; background: var(--bg-card); border: 0.5px dashed var(--border-mid); border-radius: var(--radius-lg); padding: 2.2rem 1.2rem; line-height: 1.6; }

/* Action bar */
.actionbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-card); border: 0.5px solid var(--border-soft); border-radius: var(--radius-lg); padding: 0.85rem 1.1rem; margin-top: 1.1rem; flex-wrap: wrap; }
.actionbar .hint { font-size: 12.5px; color: var(--text-secondary); }
.actionbar-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Forms / card form */
.card-form { background: var(--bg-card); border: 0.5px solid var(--border-soft); border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; }
.field { margin-bottom: 0.9rem; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 13.5px; color: var(--text-primary);
  background: var(--bg-page); border: 0.5px solid var(--border-mid); border-radius: var(--radius-md); padding: 8px 10px;
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.field-2 { display: flex; gap: 12px; flex-wrap: wrap; }
.field-2 > .field { flex: 1; min-width: 180px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 1.2rem; flex-wrap: wrap; }
.confirm-list { margin: 0.6rem 0 0; padding-left: 20px; font-size: 13.5px; }
.confirm-list li { margin-bottom: 5px; }

/* Login */
.login-wrap { min-height: 78vh; display: flex; align-items: center; justify-content: center; }
.login-card { background: var(--bg-card); border: 0.5px solid var(--border-soft); border-radius: var(--radius-lg); padding: 2rem 1.9rem; max-width: 360px; width: 100%; }
.login-card .logo { font-size: 19px; font-weight: 600; }
.login-card .logo b { color: var(--brand); }
.login-card p { font-size: 13px; color: var(--text-secondary); margin: 0.4rem 0 1.3rem; }
.login-err { background: var(--bg-danger); color: var(--text-danger); border-radius: var(--radius-md); padding: 8px 12px; font-size: 12.5px; margin-bottom: 1rem; }

footer { margin-top: 2rem; font-size: 12px; color: var(--text-tertiary); text-align: center; }
