/* =====================================================================
   Wholesale Payments · Hiring CRM
   Apple-style system typography, white surfaces, light hues of the
   logo palette (navy #141b4d · blue #1088e8 · green #2fbe70) — accents
   only, no large color blocks.
   ===================================================================== */

:root {
  --navy: #141b4d;
  --navy-soft: #3a4270;
  --blue: #1088e8;
  --blue-deep: #0b6fc4;
  --green: #2fbe70;
  --mint: #56d68e;
  --ink: #1f2430;
  --muted: #7a8194;
  --line: #e7eaf1;
  --bg: #f7f8fb;
  --card: #ffffff;
  --blue-tint: #eef6fe;
  --green-tint: #ebf9f1;
  --mint-tint: #f0fbf5;
  --navy-tint: #eff0f7;
  --red: #d9544f;
  --red-tint: #fdf0ef;
  --amber: #b78103;
  --amber-tint: #fdf6e4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 27, 77, 0.05), 0 8px 24px -12px rgba(20, 27, 77, 0.10);
  /* San Francisco on Apple devices; Inter (the closest match) elsewhere. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui,
          "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
button, input, select, textarea { font-family: var(--font); }

/* ---------------- Icons ---------------- */
.ico { display: inline-block; vertical-align: -0.18em; flex-shrink: 0; }
.btn .ico { vertical-align: -0.2em; }
.notice-ico { display: inline-flex; margin-top: 1px; }
.ok-ico .ico { color: var(--green); vertical-align: -0.2em; }
.bad-ico .ico { color: var(--red); vertical-align: -0.2em; }
.search-wrap { position: relative; max-width: 260px; flex: 1; }
.search-wrap .search-ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); display: inline-flex; pointer-events: none; }
.search-wrap .search { max-width: none; padding-left: 32px; }

.shell { display: flex; min-height: 100vh; }

/* ---------------- Sidebar ---------------- */
.sidebar {
  width: 256px;
  flex-shrink: 0;
  background: var(--card);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { padding: 0 8px 18px; border-bottom: 1px solid var(--line); }
.brand-logo { width: 100%; max-width: 168px; display: block; }
.brand-sub {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border: none; background: none; cursor: pointer;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 500;
  color: var(--navy-soft);
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: var(--navy-tint); color: var(--navy); }
.nav-item.active { background: var(--blue-tint); color: var(--blue-deep); font-weight: 600; }
.nav-ico { width: 18px; display: inline-flex; justify-content: center; opacity: 0.85; }
.nav-item.active .nav-ico { opacity: 1; }
.nav-count {
  margin-left: auto;
  font-size: 11px; font-weight: 600;
  background: var(--green-tint); color: var(--green);
  padding: 1px 7px; border-radius: 99px;
}
.nav-count:empty { display: none; }
.sidebar-foot { margin-top: auto; padding: 14px 6px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.account { display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding: 0 2px; }
.account-dot { width: 8px; height: 8px; border-radius: 50%; background: #cfd4e0; flex-shrink: 0; margin-top: 5px; }
.account.ok .account-dot { background: var(--green); }
.account.warn .account-dot { background: var(--amber); }
.account-text { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.account-name { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-email { font-size: 11px; color: var(--muted); line-height: 1.35; letter-spacing: -0.01em; overflow-wrap: normal; word-break: keep-all; }
.account-email:empty { display: none; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--navy-soft); font-weight: 550; }
.btn-ghost:hover { background: var(--navy-tint); }
.signout { width: 100%; justify-content: center; padding: 7px 10px; font-size: 12.5px; }

/* ---------------- Main / pages ---------------- */
.main { flex: 1; padding: 28px 36px 48px; max-width: 1200px; }
.view { display: none; }
.view.active { display: block; animation: fadeUp 0.22s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.page-sub { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; max-width: 560px; }
.head-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------------- Cards ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-size: 15px; font-weight: 650; color: var(--navy); letter-spacing: -0.01em; white-space: nowrap; }
.card-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.two-col .card { margin-bottom: 0; }
.two-col { margin-bottom: 20px; }
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } }

/* ---------------- Stats ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 980px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px;
}
.stat-card.clickable { cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s, transform 0.05s; }
.stat-card.clickable:hover { border-color: #cfd8ea; box-shadow: 0 2px 4px rgba(20,27,77,0.06), 0 12px 28px -12px rgba(20,27,77,0.16); }
.stat-card.clickable:active { transform: scale(0.995); }
.stat-card.clickable:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.modal-wide { width: 780px; }
.tile-sub { margin: 4px 0 0; }
.tile-actions { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; font-size: 12px; color: var(--muted); }
.tile-actions:empty { display: none; }
.tile-list { list-style: none; margin: 8px 0 0; padding: 0; }
.tile-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.tile-row:last-child { border-bottom: none; }
.tile-main { flex: 1; min-width: 0; }
.tile-name { font-weight: 600; color: var(--navy); font-size: 13.5px; }
.tile-email { font-size: 12px; color: var(--muted); }
.tile-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.tile-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.tile-link { font-size: 12px; font-weight: 600; color: var(--blue-deep); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.tile-link:hover { text-decoration: underline; }
.reply-quote { margin: 8px 0 0; padding: 10px 12px; background: var(--mint-tint); border-left: 3px solid var(--green); border-radius: 8px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; color: var(--ink); }
.reply-quote.muted-quote { background: var(--navy-tint); border-left-color: #cfd4e0; color: var(--muted); font-style: italic; }
.tile-when { font-size: 13px; font-weight: 600; color: var(--navy); }
.tile-empty { color: var(--muted); padding: 18px 0; text-align: center; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-size: 30px; font-weight: 700; color: var(--navy); letter-spacing: -0.03em; margin-top: 6px; }
.bar { display: inline-block; width: 7px; border-radius: 3px; }
.bar-blue { background: var(--blue); height: 60%; opacity: 0.85; }
.bar-green { background: var(--green); height: 100%; opacity: 0.85; }
.bar-mint { background: var(--mint); height: 40%; opacity: 0.85; }

.tint-blue  { background: var(--blue-tint);  color: var(--blue-deep); }
.tint-green { background: var(--green-tint); color: #1e8a50; }
.tint-mint  { background: var(--mint-tint);  color: #279a63; }
.tint-navy  { background: var(--navy-tint);  color: var(--navy-soft); }
.tint-amber { background: var(--amber-tint); color: var(--amber); }
.tint-red   { background: var(--red-tint);   color: var(--red); }

/* ---------------- Pipeline ---------------- */
.pipeline { display: flex; flex-direction: column; gap: 12px; }
.pipe-row { display: grid; grid-template-columns: 110px 1fr 34px; align-items: center; gap: 12px; }
.pipe-label { font-size: 12.5px; font-weight: 550; color: var(--navy-soft); }
.pipe-track { height: 8px; background: var(--navy-tint); border-radius: 99px; overflow: hidden; }
.pipe-fill { height: 100%; border-radius: 99px; transition: width 0.4s ease; }
.pipe-count { font-size: 12.5px; font-weight: 650; color: var(--navy); text-align: right; }

/* ---------------- Activity ---------------- */
.activity { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.activity li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.activity li:last-child { border-bottom: none; }
.activity .act-ico {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.activity .act-time { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.empty-line { color: var(--muted); padding: 10px 0; }

/* ---------------- Setup checklist ---------------- */
.setup-list { list-style: none; margin: 0; padding: 0; }
.setup-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.setup-list li:last-child { border-bottom: none; }
.setup-check { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.setup-check.todo { border: 1.5px solid #cfd4e0; background: transparent; }
.setup-list .link .ico { vertical-align: -0.2em; }
.setup-check.done { background: var(--green-tint); color: var(--green); }
.setup-check.todo { background: var(--navy-tint); color: var(--muted); }
.setup-list .link { margin-left: auto; }

/* ---------------- Buttons / inputs ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--navy);
  font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:hover { background: var(--navy-tint); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-danger-ghost { color: var(--red); }
.btn-danger-ghost:hover { background: var(--red-tint); }

.icon-btn {
  border: none; background: none; cursor: pointer; color: var(--muted);
  padding: 6px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--navy-tint); color: var(--navy); }

.label { display: block; font-size: 12px; font-weight: 600; color: var(--navy-soft); margin: 12px 0 5px; }
.input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); background: #fff; }
.textarea { resize: vertical; line-height: 1.55; }
.select.slim { width: auto; padding: 6px 10px; font-size: 12.5px; }
.field-row { display: flex; gap: 10px; }
.field-row .input { flex: 1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.check { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; font-size: 13px; color: var(--navy-soft); line-height: 1.45; cursor: pointer; }
.check input { accent-color: var(--blue); width: 15px; height: 15px; margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.hint code { background: var(--navy-tint); padding: 1px 6px; border-radius: 6px; font-size: 11px; color: var(--navy); word-break: break-all; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 0; }
.small { font-size: 11.5px; font-weight: 500; }

.badge { font-size: 11px; font-weight: 650; padding: 3px 9px; border-radius: 99px; background: var(--navy-tint); color: var(--navy-soft); white-space: nowrap; }

/* ---------------- Toolbar / chips ---------------- */
.toolbar { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.search { max-width: 260px; }
.toolbar > .search-wrap { min-width: 220px; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--card); color: var(--navy-soft);
  font-size: 12.5px; font-weight: 550; cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue-deep); }
.chip.active { background: var(--blue-tint); border-color: transparent; color: var(--blue-deep); font-weight: 650; }

/* ---------------- Table ---------------- */
.table-card { padding: 6px 0 0; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 11px; font-weight: 650; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--muted);
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.table tbody tr:hover { background: #fafbfe; }
.table tbody tr:last-child td { border-bottom: none; }
.col-check { width: 36px; }
.table input[type="checkbox"] { accent-color: var(--blue); width: 15px; height: 15px; cursor: pointer; }

.cand-name { font-weight: 600; color: var(--navy); }
.cand-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700;
  margin-right: 10px; vertical-align: middle;
}
.name-cell { display: flex; align-items: center; }

.status-pill { font-size: 11.5px; font-weight: 650; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.status-select {
  -webkit-appearance: none; appearance: none;
  border: none; outline: none; cursor: pointer;
  font-family: var(--font); font-size: 11.5px; font-weight: 650;
  padding: 4px 22px 4px 10px; border-radius: 99px; white-space: nowrap;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%237a8194' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat; background-position: right 8px center;
}
.status-select:focus { box-shadow: 0 0 0 3px var(--blue-tint); }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; opacity: 0; transition: opacity 0.12s; }
tr:hover .row-actions { opacity: 1; }

.empty-state { text-align: center; padding: 56px 20px 60px; display: none; }
.empty-state h3 { margin: 14px 0 4px; color: var(--navy); font-size: 16px; }
.empty-state p { color: var(--muted); margin: 0 0 18px; }
.empty-art .bar { width: 10px; margin: 0 2px; }
.empty-art .bar-blue { height: 26px; } .empty-art .bar-green { height: 40px; } .empty-art .bar-mint { height: 18px; }

/* ---------------- Import ---------------- */
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 34px 16px; margin-top: 6px;
  border: 1.5px dashed #c9d6ea; border-radius: 12px;
  background: #fbfdff; color: var(--navy-soft); font-size: 13px;
  cursor: pointer; text-align: center;
  transition: all 0.15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--blue); background: var(--blue-tint); }
.drop-ico { color: var(--blue); display: inline-flex; }
.mapping-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 14px 0; }
.mapping-grid .label { margin-top: 0; }
.preview-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.preview-table th { background: var(--navy-tint); border-bottom: none; }
.preview-table td { font-size: 12.5px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- Template preview ---------------- */
.template-cols { align-items: stretch; }
.token-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.token {
  border: none; cursor: pointer;
  background: var(--green-tint); color: #1e8a50;
  font-size: 11.5px; font-weight: 650;
  padding: 4px 10px; border-radius: 99px;
  transition: background 0.15s;
}
.token:hover { background: #dcf3e7; }
.email-preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.email-meta { padding: 12px 16px; background: #fbfcfe; border-bottom: 1px solid var(--line); font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; }
.email-body { padding: 18px 16px; font-size: 13.5px; line-height: 1.6; min-height: 220px; }
.email-signature { padding: 0 16px 18px; font-size: 13px; line-height: 1.5; }
.email-signature img { max-width: 100%; height: auto; }
.email-signature[hidden] { display: none; }

/* ---------------- Settings ---------------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 980px) { .settings-grid { grid-template-columns: 1fr; } }
.settings-grid .card { margin-bottom: 0; }

/* ---------------- Modal ---------------- */
.modal-backdrop[hidden] { display: none; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20, 27, 77, 0.32);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--card); border-radius: 16px;
  width: 640px; max-width: 100%; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 64px -16px rgba(20, 27, 77, 0.35);
  animation: pop 0.18s ease;
}
.modal-sm { width: 480px; }
@keyframes pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-head h2 { margin: 0; font-size: 17px; color: var(--navy); }
.modal-body { padding: 6px 22px 10px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line); margin-top: 8px; }
.compose-to { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.compose-to .to-chip { background: var(--blue-tint); color: var(--blue-deep); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.compose-to .to-more { color: var(--muted); font-size: 12px; padding: 3px 4px; }
.progress { height: 8px; background: var(--navy-tint); border-radius: 99px; overflow: hidden; margin-top: 16px; }
.progress-fill { height: 100%; width: 0; background: var(--blue); border-radius: 99px; transition: width 0.3s ease; }
.send-card { margin-top: 0; }
.sending-card .progress { margin-top: 4px; }
.sending-meta { margin-top: 10px; font-size: 12.5px; }
.email-all-btn:disabled { opacity: 0.45; }
.send-progress { margin-top: 14px; font-size: 13px; color: var(--navy-soft); background: var(--mint-tint); border-radius: 10px; padding: 12px 14px; line-height: 1.7; max-height: 160px; overflow-y: auto; }

/* ---------------- Notices (persistence / security warnings) ---------------- */
.notices:empty { display: none; }
.notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; margin-bottom: 14px;
  border-radius: 12px; font-size: 13px; line-height: 1.5;
  border: 1px solid transparent;
}
.notice strong { font-weight: 650; }
.notice.warn { background: var(--amber-tint); color: #6d4c00; border-color: #f1e2b3; }
.notice.danger { background: var(--red-tint); color: #8c2f2b; border-color: #f3cfcd; }
.notice code { background: rgba(0,0,0,0.06); padding: 1px 6px; border-radius: 6px; font-size: 12px; }

/* ---------------- Sign-in ---------------- */
.login-screen {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-screen[hidden] { display: none; }
.login-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 34px 32px 28px; width: 360px; max-width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.login-logo { width: 170px; margin-bottom: 14px; }
.login-card h2 { margin: 0 0 4px; font-size: 18px; color: var(--navy); }
.login-card .input { margin-top: 18px; text-align: center; }
.setup-card-gate { width: 440px; }
.setup-steps { text-align: left; font-size: 13px; line-height: 1.6; color: var(--navy-soft); padding-left: 20px; margin: 14px 0 6px; }
.setup-steps li { margin-bottom: 6px; }
.setup-steps code { background: var(--navy-tint); padding: 1px 6px; border-radius: 6px; font-size: 12px; color: var(--navy); }
.login-btn { width: 100%; justify-content: center; margin-top: 12px; }

/* ---------------- Toasts ---------------- */
.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 99; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 500;
  padding: 11px 16px; border-radius: 12px;
  box-shadow: 0 8px 24px -8px rgba(20, 27, 77, 0.4);
  animation: toastIn 0.2s ease;
  max-width: 360px;
}
.toast.err { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 800px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; padding: 10px 14px; }
  .brand { border: none; padding: 0; } .brand-logo { max-width: 120px; } .brand-sub { display: none; }
  .nav { flex-direction: row; margin: 0 0 0 10px; overflow-x: auto; }
  .sidebar-foot { display: none; }
  .main { padding: 18px 16px 40px; }
}

/* Link an unmatched interview to a candidate (Interviews tile) */
.link-btn { background: none; border: none; padding: 0; cursor: pointer; font: inherit; }
.link-box { margin-top: 8px; max-width: 420px; }
.link-results { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.link-results:empty { display: none; }
.link-results li { padding: 8px 12px; font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--line); }
.link-results li:last-child { border-bottom: none; }
.link-results li:hover { background: var(--blue-tint, #eaf4fe); }
.link-results li.link-none { cursor: default; }
.link-results li.link-none:hover { background: none; }
