:root {
  --bg: #f4f6f3;
  --card: #ffffff;
  --ink: #17201c;
  --muted: #5f6b65;
  --line: #e1e6e2;
  --line-2: #eef1ee;
  --brand: #1d5a47;
  --brand-ink: #ffffff;
  --brand-soft: #e5f0eb;
  --brand-line: #b9d5c9;
  --ok: #1f7a4d; --ok-bg: #e6f4ec;
  --warn: #8a5a00; --warn-bg: #fdf1d8;
  --no: #a23a2a; --no-bg: #fbe8e4;
  --late: #b4361f;
  --blue: #2856a3; --blue-bg: #e7eefb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 40, 30, .05), 0 4px 16px rgba(20, 40, 30, .05);
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
body.locked { overflow: hidden; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.late { color: var(--late); font-weight: 600; }
[hidden] { display: none !important; }

/* ---------- bara demo + antet ---------- */
.demo-ribbon {
  background: #23302a; color: #f2f5f3; text-align: center; font-size: 13px; font-weight: 600;
  padding: 7px 16px; letter-spacing: .01em;
}
.demo-ribbon::before { content: "●"; color: #f2b84b; margin-right: 8px; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(16px, calc((100vw - 1240px) / 2)); background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand strong { display: block; font-size: 16px; }
.brand-sub { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.logo {
  width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; letter-spacing: .02em;
}
.job-switch { display: flex; gap: 6px; background: var(--line-2); padding: 4px; border-radius: 12px; }
.job-switch button {
  border: 0; background: transparent; border-radius: 9px; padding: 6px 12px; text-align: left; line-height: 1.25; min-height: 44px;
}
.job-switch button b { display: block; font-size: 13px; font-weight: 600; }
.job-switch button span { display: block; font-size: 12px; color: var(--muted); }
.job-switch button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.job-switch button[aria-pressed="true"] b { color: var(--brand); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 20px 16px 40px; }

/* ---------- capul postului ---------- */
.job-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.job-head h1 { font-size: 26px; }
.head-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.head-stats b { color: var(--ink); }
.head-stats .late b { color: var(--late); }

/* ---------- azi ---------- */
.today { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.hero { background: linear-gradient(135deg, #ffffff 0%, #f1f8f4 100%); border-color: var(--brand-line); }
.hero .eyebrow { color: var(--brand); }
.hero h2 { font-size: 22px; margin-bottom: 6px; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.why { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 14px; }
.why li { position: relative; padding-left: 18px; }
.why li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.fineprint { font-size: 12px; color: var(--muted); margin-top: 10px; }
.stat .big { font-size: 30px; font-weight: 700; line-height: 1.1; margin-bottom: 6px; }
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.linkrow {
  width: 100%; display: flex; justify-content: space-between; gap: 8px; border: 0; background: none; padding: 4px 0; text-align: left; font-size: 13px;
  border-bottom: 1px dashed var(--line);
}
.linkrow span:first-child { font-weight: 600; }
.linkrow:hover span:first-child { color: var(--brand); }
.linkish { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-top: 8px; }

/* ---------- butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { border-color: #c7d0ca; background: #fafbfa; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: #174b3b; }
.btn.soft { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }
.btn.go-on { background: var(--ok-bg); border-color: #9fd2b5; color: var(--ok); }
.btn.stop-on { background: var(--no-bg); border-color: #efb8ab; color: var(--no); }

/* ---------- file ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap; min-height: 44px;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.tab-count { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 99px; background: var(--line-2); color: var(--muted); font-size: 12px; text-align: center; margin-left: 4px; }
.tabs button[aria-selected="true"] .tab-count { background: var(--brand); color: #fff; }

/* ---------- candidați ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.search { flex: 1 1 260px; position: relative; display: flex; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.search input, .sort select, .field input, .field textarea, .note-form textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px; min-height: 42px;
}
.search input { padding-left: 38px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort select { width: auto; color: var(--ink); font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; min-height: 36px;
}
.chip span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.chip[aria-pressed="true"], .chip.on { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }
.chip[aria-pressed="true"] span { color: var(--brand); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.list { display: grid; gap: 8px; }
.list-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 0 14px; }
.row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; transition: border-color .15s, background .15s;
}
.row:hover { border-color: #c7d0ca; }
.row.sel { background: var(--brand-soft); border-color: var(--brand-line); box-shadow: inset 3px 0 0 var(--brand); }
.row-main { min-width: 0; display: grid; gap: 2px; }
.row-name { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-sub { font-size: 13px; color: var(--muted); }
.row-score { display: grid; justify-items: end; gap: 3px; flex-shrink: 0; }
.row-score b { font-size: 18px; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--brand); }
.bonus { font-size: 11px; color: var(--blue); font-weight: 600; }
.warn-t { font-size: 11px; color: var(--warn); font-weight: 600; }

.status { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; line-height: 1.5; }
.s-new { background: var(--line-2); color: var(--muted); }
.s-call { background: var(--blue-bg); color: var(--blue); }
.s-follow { background: var(--warn-bg); color: var(--warn); }
.s-late { background: var(--no-bg); color: var(--late); }
.s-done { background: #eef0f8; color: #4a4f72; }
.s-go { background: var(--ok-bg); color: var(--ok); }
.s-stop { background: #f0f0ef; color: #77736d; text-decoration: line-through; }

/* ---------- fișa candidatului ---------- */
.detail {
  position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px 22px; box-shadow: var(--shadow); overscroll-behavior: contain;
}
.detail:empty { display: none; }
.d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.d-head h2 { font-size: 22px; }
.score-box { background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.score-num { font-size: 15px; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.score-num b { font-size: 20px; color: var(--brand); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0 0 14px; }
.contact-grid .wide { grid-column: 1 / -1; }
.contact-grid dt, .call dt, .facts dt { font-size: 12px; color: var(--muted); }
.contact-grid dd, .call dd, .facts dd { margin: 0; font-weight: 600; font-size: 14px; }
.now { display: inline-block; font-size: 11px; background: var(--ok); color: #fff; border-radius: 99px; padding: 0 7px; margin-left: 4px; vertical-align: 1px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sec { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 0 8px; }
.criteria { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.criteria li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.criteria li.is-bonus { border-style: dashed; background: #fbfcfb; }
.c-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.c-label { font-weight: 600; }
.c-label em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--blue); background: var(--blue-bg); padding: 1px 6px; border-radius: 99px; margin-left: 4px; }
.said { margin: 4px 0 2px; font-size: 14px; }
.hint { font-size: 12px; color: var(--muted); }
.ev { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.ev.ok { background: var(--ok-bg); color: var(--ok); }
.ev.warn { background: var(--warn-bg); color: var(--warn); }
.ev.no { background: var(--no-bg); color: var(--no); }
.clarify { margin: 0; padding: 0 0 0 0; list-style: none; display: grid; gap: 6px; }
.clarify li { background: var(--warn-bg); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.decide { display: flex; gap: 8px; flex-wrap: wrap; }
.note-form { display: grid; gap: 8px; justify-items: start; }
.note-form textarea { resize: vertical; }
.notes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.notes li { background: #fffbea; border: 1px solid #f1e3b0; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.notes time { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.history { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 6px; }
.history li { position: relative; font-size: 13px; display: grid; }
.history li::before { content: ""; position: absolute; left: -19px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-line); }
.history li:first-child::before { background: var(--brand); border-color: var(--brand); }
.history time { color: var(--muted); font-size: 12px; }

.empty { text-align: center; padding: 28px 16px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); display: grid; gap: 6px; justify-items: center; }
.big-empty { padding: 48px 16px; }
.empty .btn { margin-top: 8px; }

/* ---------- lista de apeluri ---------- */
.intro { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.call-group { margin-bottom: 18px; }
.call-group h3 { font-size: 15px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.call-group h3 span { font-size: 12px; background: var(--line-2); color: var(--muted); border-radius: 99px; padding: 0 8px; }
.calls { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.call {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
}
.call.is-late { border-color: #f0b9ad; box-shadow: inset 3px 0 0 var(--late); }
.call-n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.call.is-late .call-n { background: var(--no-bg); color: var(--late); }
.call-name { border: 0; background: none; padding: 0; font-weight: 700; font-size: 16px; text-align: left; }
.call-name:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.call-name b { font-size: 13px; color: var(--brand); background: var(--brand-soft); border-radius: 99px; padding: 1px 8px; margin-left: 4px; }
.call dl { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 4px 16px; margin: 6px 0 0; }
.call-actions { display: flex; gap: 8px; }

/* ---------- fișa postului ---------- */
.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-grid h2 { font-size: 20px; }
.post-grid p + p { margin-top: 8px; }
.post-grid .card > p:not(.eyebrow):not(.muted) { margin-top: 8px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 14px 0 0; }
.post-crit { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.post-crit span { display: block; font-size: 13px; color: var(--muted); }
.mt { margin-top: 16px; }
.legend { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.legend .ev { margin-right: 6px; }
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pipeline li { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }

/* ---------- subsol ---------- */
.foot {
  max-width: 1240px; margin: 0 auto; padding: 16px 16px 32px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); border-top: 1px solid var(--line);
}
.foot-links { display: flex; gap: 16px; align-items: center; }
.foot a, .foot .linkish { color: var(--muted); margin: 0; font-weight: 500; }

/* ---------- dialoguri ---------- */
dialog {
  border: 0; border-radius: 16px; padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); color: var(--ink);
}
dialog::backdrop { background: rgba(20, 30, 25, .45); }
dialog form { padding: 20px; display: grid; gap: 12px; }
dialog h3 { font-size: 18px; }
.field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea { color: var(--ink); font-weight: 400; font-size: 15px; }
.radio-cards { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.radio-cards legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; padding: 0; }
.radio-cards label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.radio-cards label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio-cards input { margin-top: 4px; accent-color: var(--brand); }
.radio-cards small { display: block; color: var(--muted); font-size: 12px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: #1d2a24; color: #fff; padding: 10px 16px;
  border-radius: 10px; font-size: 14px; font-weight: 600; z-index: 60; transition: opacity .2s, transform .2s; box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- foaie pe telefon ---------- */
.sheet { position: fixed; inset: 0; z-index: 40; background: #fff; display: flex; flex-direction: column; animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(24px); } to { transform: none; } }
.sheet-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); padding-top: max(8px, env(safe-area-inset-top)); }
.sheet-bar .btn { border: 0; padding-left: 4px; }
.demo-pill { font-size: 12px; font-weight: 600; background: #23302a; color: #fff; padding: 3px 10px; border-radius: 99px; }
.sheet-body { overflow: auto; padding: 16px 16px max(32px, env(safe-area-inset-bottom)); flex: 1; overscroll-behavior: contain; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .today { grid-template-columns: 1fr 1fr; }
  .today .hero { grid-column: 1 / -1; }
  .call { grid-template-columns: auto minmax(0, 1fr); }
  .call-actions { grid-column: 2; }
  .call dl { grid-template-columns: 1fr 1fr; }
  .call dl div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .detail { display: none; }
  .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar { flex-direction: column; align-items: stretch; gap: 8px; position: static; }
  .brand-sub { display: none; }
  .job-switch button { flex: 1; }
  .wrap { padding-top: 16px; }
  .job-head h1 { font-size: 22px; }
  .today { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 14px; }
  .hero h2 { font-size: 20px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .stat .big { font-size: 24px; }
  .tabs { position: sticky; top: 0; background: var(--bg); z-index: 15; margin-left: -16px; margin-right: -16px; padding: 0 8px; }
  .tabs button { padding: 10px; flex: 1; }
  .sort span { display: none; }
  .toolbar .search { flex-basis: 100%; }
  .sort { flex: 1; }
  .sort select { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .call { grid-template-columns: 1fr; gap: 8px; }
  .call-n { display: none; }
  .call-actions { grid-column: auto; }
  .call-actions .btn { flex: 1; }
  .call dl { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.ev.none { background: var(--line-2); color: var(--muted); }
@media (max-width: 640px) {
  .tabs button { flex: 1 1 auto; padding: 10px 4px; font-size: 14px; }
  .tab-count { margin-left: 2px; padding: 0 5px; min-width: 18px; }
  .mini .linkrow { flex-direction: column; gap: 0; }
}
.in-calls { flex-basis: 100%; font-size: 13px; color: var(--brand); font-weight: 600; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.in-calls .linkish { margin: 0; color: var(--muted); font-weight: 500; font-size: 13px; }
