/* Elite — operations system. Brand colours are variables: change them here. */
:root {
  --ink: #11161d;        /* sidebar / dark */
  --ink-2: #1a212b;
  --gold: #c9a54e;       /* accent */
  --gold-2: #e3c77f;
  --bg: #f5f4f0;
  --card: #ffffff;
  --line: #e6e3db;
  --text: #1d232b;
  --muted: #6d7380;
  --red: #c4423b;
  --amber: #b7791f;
  --green: #2f855a;
  --blue: #2b6cb0;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(17, 22, 29, .06), 0 4px 16px rgba(17, 22, 29, .04);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
h1 { font-size: 22px; margin: 0; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 0 0 4px; }
h3 { font-size: 14px; margin: 0 0 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
h4 { font-size: 12px; margin: 14px 0 4px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.muted { color: var(--muted); }
.small, small { font-size: 12px; }
.block { display: block; }
.red { color: var(--red) !important; }
.amber { color: var(--amber) !important; }
.green { color: var(--green) !important; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; margin: 0; line-height: 1.5; }
.boot { display: grid; place-items: center; height: 100vh; font-family: "Cormorant Garamond", Georgia, serif; font-size: 40px; letter-spacing: .3em; color: var(--gold); background: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 9px; padding: 9px 14px; font: inherit; font-weight: 600; cursor: pointer; background: #eceae4; color: var(--text); transition: .15s; white-space: nowrap; }
.btn:hover { filter: brightness(.97); color: inherit; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #000; color: var(--gold-2); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ghost:hover { border-color: var(--gold); }
.btn.danger { color: var(--red); }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.btn.block { width: 100%; justify-content: center; padding: 12px; }
.btn:disabled { opacity: .5; cursor: wait; }
.icon-btn { border: 0; background: transparent; cursor: pointer; font-size: 15px; padding: 4px 6px; border-radius: 6px; color: var(--muted); }
.icon-btn:hover { background: #f0eee8; color: var(--text); }

/* Gate (country + login) */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 20% -10%, #2a3340 0%, var(--ink) 55%); }
.gate-card { background: var(--card); border-radius: 18px; padding: 36px; width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,.35); text-align: center; }
.gate-card.narrow { max-width: 400px; text-align: left; }
.gate-brand { text-align: center; margin-bottom: 24px; }
.gate-brand img { max-height: 64px; max-width: 200px; display: block; margin: 0 auto 8px; }
.gate-brand h1 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; letter-spacing: .35em; color: var(--ink); margin-left: .35em; }
.gate-brand img + h1 { display: none; }
.gate-brand p { margin: 2px 0 0; color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: 11px; font-weight: 600; }
.gate h2 { margin-top: 6px; }
.countries { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 22px; }
.country { border: 1px solid var(--line); border-radius: 14px; padding: 26px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: .15s; }
.country:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.country .flag { font-size: 44px; line-height: 1; }
.country b { font-size: 16px; }
.gate-lang { margin-top: 22px; }
.err { color: var(--red); min-height: 18px; margin: 4px 0 10px; font-size: 13px; }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.side { width: 240px; background: var(--ink); color: #c9ced6; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 22px 20px 14px; }
.brand img { max-height: 38px; max-width: 120px; }
.brand b { font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; letter-spacing: .3em; color: #fff; display: block; }
.brand img + div b { display: none; }
.brand small { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: 9.5px; font-weight: 600; }
.country-chip { margin: 0 16px 10px; padding: 8px 12px; border-radius: 9px; background: var(--ink-2); color: #fff; font-weight: 600; border: 1px solid #2a323d; }
.side nav { flex: 1; overflow-y: auto; padding: 6px 10px; }
.nav-h { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #7c8592; padding: 14px 10px 6px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #c9ced6; font-weight: 500; }
.side nav a:hover { background: var(--ink-2); color: #fff; }
.side nav a.on { background: var(--ink-2); color: var(--gold-2); box-shadow: inset 3px 0 0 var(--gold); }
.ni { width: 18px; text-align: center; opacity: .8; }
.side-foot { padding: 14px 20px; border-top: 1px solid #252c36; color: #fff; font-weight: 600; }
.side-foot small { display: block; color: #7c8592; font-weight: 400; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-r { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.sw { display: flex; gap: 6px; }
.burger { display: none; }
.content { padding: 24px; max-width: 1400px; width: 100%; }

/* Page header */
.ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ph p { margin: 4px 0 0; }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back { display: inline-block; color: var(--muted); margin-bottom: 10px; font-size: 13px; }

/* Cards & grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.card-h h3 { margin: 0; }
.grid2c { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2c > .card { margin-bottom: 0; }
.grid2c { margin-bottom: 16px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; border-top: 3px solid var(--gold); }
.kpi:hover { color: inherit; border-color: var(--gold); }
.kpi span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.kpi b { font-size: 30px; font-weight: 700; }
.kpi small { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.facts span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.facts b { font-size: 14px; }

/* Bars */
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar { display: grid; grid-template-columns: 130px 1fr 34px; align-items: center; gap: 10px; font-size: 13px; }
.bar div { height: 10px; background: #f0eee8; border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 6px; min-width: 2px; }
.bar b { text-align: right; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 9px 0; border-bottom: 1px solid #f0eee8; display: flex; flex-direction: column; gap: 2px; }
.list li:last-child { border: 0; }
.list small { color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 10px; padding: 7px 0; }
.timeline .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 6px; flex-shrink: 0; }
.timeline small { display: block; color: var(--muted); }
.empty { color: var(--muted); padding: 18px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; font-size: 13px; }
.dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 14px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.files, .contacts { list-style: none; margin: 0; padding: 0; }
.files li, .contacts li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0eee8; }
.files li:last-child, .contacts li:last-child { border: 0; }
.files a.fmain, .contacts li > div { flex: 1; min-width: 0; }
.files small, .contacts small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp { font-size: 11px; color: var(--muted); white-space: nowrap; }
.progress { height: 6px; background: #f0eee8; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.progress i { display: block; height: 100%; background: var(--green); }
pre.code { background: var(--ink); color: #e6e6e6; padding: 14px; border-radius: 10px; overflow-x: auto; font-size: 12px; }

/* Tables */
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 11px 12px; border-bottom: 1px solid var(--line); background: #faf9f6; white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid #f0eee8; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr[data-href], .tbl tr.clickable { cursor: pointer; }
.tbl tr[data-href]:hover td, .tbl tr.clickable:hover td { background: #fbfaf6; }
.card .tbl td:first-child { padding-left: 0; }
.tbl td.msg { max-width: 280px; color: var(--muted); font-size: 12px; white-space: pre-wrap; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: #f3ecd9; color: #8a6d22; vertical-align: middle; }

/* Badges */
.badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; background: #eef0f3; color: #4a5260; white-space: nowrap; }
.b-new, .b-sourced, .b-lead, .b-pending { background: #e8f0fb; color: var(--blue); }
.b-available, .b-active, .b-open, .b-done, .b-passed, .b-placed, .b-converted { background: #e5f4ec; color: var(--green); }
.b-in_process, .b-screened, .b-shortlisted, .b-in_progress, .b-sent_to_client, .b-client_interview, .b-offer, .b-normal { background: #fbf1dc; color: #92680f; }
.b-high { background: #fde9d7; color: #b35900; }
.b-urgent, .b-blacklisted, .b-rejected, .b-failed, .b-cancelled, .b-no_show { background: #fbe4e2; color: var(--red); }
.b-on_hold, .b-not_available, .b-inactive, .b-filled, .b-ended, .b-closed, .b-na, .b-low, .b-replaced { background: #eef0f3; color: #59606c; }

/* Filters & forms */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; align-items: center; }
.filters input, .filters select { min-width: 160px; }
.filters input[name=q] { flex: 1; min-width: 220px; }
input, select, textarea { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: #fff; color: var(--text); width: 100%; }
.filters input, .filters select { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(201,165,78,.35); border-color: var(--gold); }
input[type=checkbox] { width: auto; }
.inline-sel { width: auto; padding: 5px 8px; font-size: 12.5px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.fld { display: flex; flex-direction: column; gap: 5px; }
.fld.full { grid-column: 1 / -1; }
.fld label { font-size: 12px; font-weight: 600; color: #4a5260; }
.fld small { color: var(--muted); }
.fld.chk { justify-content: flex-end; }
.fld.chk label, label.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; align-items: center; margin-top: 4px; }
.form-actions .muted { margin-right: auto; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(17,22,29,.55); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .12s; }
.modal { background: var(--card); border-radius: 14px; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.modal.wide { max-width: 760px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-h h3 { margin: 0; text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--text); }
.modal-b { padding: 18px 20px; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
.pick-list { max-height: 50vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.pick { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #f0eee8; cursor: pointer; align-items: flex-start; }
.pick:hover { background: #fbfaf6; }
.pick small { display: block; color: var(--muted); }

/* Kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; }
.kcol { background: #ecebe5; border-radius: 12px; display: flex; flex-direction: column; min-height: 160px; border-top: 3px solid #c9c6bc; }
.kcol.over { background: #f3ecd9; }
.kcol.k-placed { border-top-color: var(--green); }
.kcol.k-rejected { border-top-color: var(--red); }
.kcol.k-offer, .kcol.k-client_interview { border-top-color: var(--gold); }
.kcol-h { padding: 10px 12px; font-weight: 600; font-size: 12.5px; display: flex; justify-content: space-between; }
.kcol-h span { background: #fff; border-radius: 10px; padding: 0 8px; font-size: 11px; line-height: 18px; }
.kcol-b { padding: 0 8px 8px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kcard { background: #fff; border-radius: 9px; padding: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.08); cursor: grab; display: flex; flex-direction: column; gap: 3px; }
.kcard.drag { opacity: .4; }
.kcard small { color: var(--muted); font-size: 11.5px; }
.kmove { margin-top: 6px; padding: 4px 6px; font-size: 11.5px; }

/* Toasts */
#toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); border-left: 4px solid var(--gold); animation: fade .2s; max-width: 340px; }
.toast.err { border-left-color: var(--red); }

/* Responsive */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .grid-main, .grid2c { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .side { position: fixed; left: -260px; z-index: 30; transition: .2s; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .side.open { left: 0; }
  .burger { display: block; }
  .content { padding: 16px; }
  .top { padding: 0 12px; }
  .sw { display: none; }
  .form.grid2 { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 8px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi b { font-size: 24px; }
}
@media (max-width: 760px) { .kcol { min-height: 90px; } .kanban { grid-auto-columns: 78%; } }

.flag-i { width: 1.4em; height: .95em; vertical-align: -0.12em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); display: inline-block; }
.country .flag .flag-i { width: 66px; height: 44px; border-radius: 5px; }

/* ===================== v2 components ===================== */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px 14px; }
.grid .fld { grid-column: span 6; min-width: 0; }
.fld.s1 { grid-column: span 1; } .fld.s2 { grid-column: span 2; } .fld.s3 { grid-column: span 3; } .fld.s4 { grid-column: span 4; }
.fld.s5 { grid-column: span 5; } .fld.s6 { grid-column: span 6; } .fld.s7 { grid-column: span 7; } .fld.s8 { grid-column: span 8; }
.fld.s9 { grid-column: span 9; } .fld.s10 { grid-column: span 10; } .fld.s12 { grid-column: 1 / -1; }
.fld.info { color: var(--muted); font-size: 13px; }
.fld .req { color: var(--red); font-style: normal; }
.fld.invalid input, .fld.invalid select, .fld.invalid textarea, .fld.invalid .cbx-in, .fld.invalid .phone { border-color: var(--red); background: #fff7f6; }
.fld.chk { justify-content: center; padding-top: 18px; }
.mt { margin-top: 18px; }

/* Phone */
.phone { display: flex; gap: 6px; }
.phone .dial { width: 112px; flex-shrink: 0; padding-right: 4px; }
.phone .num { flex: 1; min-width: 0; }

/* Checkbox groups */
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.ck { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; cursor: pointer; font-size: 13px; background: #fff; user-select: none; }
.ck:has(input:checked) { border-color: var(--gold); background: #fbf5e6; font-weight: 600; }
.ck input { margin: 0; accent-color: var(--ink); }

/* Stars */
.star-in { display: flex; gap: 2px; }
.star-in button { border: 0; background: none; font-size: 22px; color: #d9d4c7; cursor: pointer; padding: 0 2px; line-height: 1; }
.star-in button.on { color: var(--gold); }
.stars i { font-style: normal; color: #d9d4c7; font-size: 15px; } .stars i.on { color: var(--gold); }

/* Chips & combobox */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: #f1efe9; border-radius: 14px; padding: 3px 10px; font-size: 12px; font-weight: 500; margin: 1px 4px 1px 0; color: #3b424d; white-space: nowrap; }
.chip.strong { background: #fbf1dc; color: #7a5a12; }
.chip.ok { background: #e5f4ec; color: var(--green); }
.chip.rm { background: #fbf5e6; border: 1px solid #ecdcb4; }
.chip-x { border: 0; background: none; cursor: pointer; color: #8a6d22; font-size: 15px; line-height: 1; padding: 0 0 0 2px; }
.chips-cell { max-width: 260px; }
.cbx, .tagin { position: relative; display: flex; flex-direction: column; gap: 6px; }
.cbx-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(17,22,29,.15); max-height: 260px; overflow-y: auto; margin-top: 4px; }
.cbx-o { padding: 8px 12px; cursor: pointer; font-size: 13.5px; }
.cbx-o:hover, .cbx-o.act { background: #fbf5e6; }
.cbx-o.add { color: var(--blue); font-weight: 600; border-top: 1px solid var(--line); }
.cbx-none { padding: 10px 12px; color: var(--muted); font-size: 13px; }

/* Repeater */
.rep-l { font-size: 12px; font-weight: 600; color: #4a5260; margin-bottom: 6px; display: block; }
.rep-rows { display: flex; flex-direction: column; gap: 10px; }
.rep-row { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 14px 40px 14px 14px; background: #fcfbf8; }
.rep-row .grid { gap: 10px 12px; }
.rep-del { position: absolute; top: 8px; right: 8px; }
.rep-add { margin-top: 10px; align-self: flex-start; }
.rep { display: flex; flex-direction: column; }

/* Full-page editor */
.ed-wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 80px; }
.ed-nav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; }
.ed-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 13px; }
.ed-nav a:hover { background: #fff; color: var(--text); }
.ed-sec { scroll-margin-top: 76px; }
.ed-sec h3 { margin-bottom: 16px; }
.ed-bar { position: fixed; bottom: 0; left: 240px; right: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 12px 24px; display: flex; justify-content: flex-end; gap: 10px; z-index: 20; }

/* Profile hero & tabs */
.hero { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.hero-l { display: flex; gap: 18px; align-items: flex-start; min-width: 0; flex: 1; }
.hero-l h1 { font-size: 24px; }
.hero-sub { margin: 4px 0 0; font-size: 15px; color: #3b424d; font-weight: 500; }
.facts-line { margin: 6px 0 0; color: var(--muted); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 0; }
.hero-r { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--ink), #3a4554); color: var(--gold-2); display: inline-grid; place-items: center; font-weight: 700; font-size: 12px; flex-shrink: 0; object-fit: cover; }
.av.sq { border-radius: 9px; }
.av.xl { width: 76px; height: 76px; font-size: 26px; border-radius: 18px; }
.who { display: flex; gap: 10px; align-items: center; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--text); border-bottom-color: var(--gold); }
.tabs button small { background: #eceae4; border-radius: 9px; padding: 1px 7px; font-size: 11px; margin-left: 4px; }
[data-pane][hidden] { display: none !important; }
.xp { list-style: none; margin: 0; padding: 0; }
.xp li { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f0eee8; }
.xp li:last-child { border: 0; }
.xp-d { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.xp p { margin: 6px 0 0; }
.lv { display: inline-flex; gap: 3px; }
.lv i { width: 14px; height: 7px; border-radius: 3px; background: #e6e3db; }
.lv i.on { background: var(--gold); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pcard { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.pcard small { color: var(--muted); display: block; }
.pcard p { margin: 4px 0; }
.kpi.warn { border-top-color: var(--red); }
.kpi b.sm { font-size: 16px; line-height: 1.35; }
.score { display: inline-block; min-width: 46px; text-align: center; font-weight: 700; font-size: 12px; border-radius: 12px; padding: 3px 8px; }
.score.hi { background: #e5f4ec; color: var(--green); } .score.mid { background: #fbf1dc; color: #92680f; } .score.lo { background: #eef0f3; color: #59606c; }
.ficon { font-size: 9.5px; font-weight: 800; background: var(--ink); color: var(--gold-2); border-radius: 5px; padding: 4px 5px; }

/* Client stage stepper & funnel */
.stepper { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.stepper .st { flex: 1; min-width: 110px; border: 0; background: #e9e7e0; color: #59606c; font: inherit; font-weight: 600; font-size: 12.5px; padding: 10px 12px; cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); }
.stepper .st:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); border-radius: 8px 0 0 8px; }
.stepper .st.done { background: #d9ecdf; color: var(--green); }
.stepper .st.cur { background: var(--ink); color: var(--gold-2); }
.stepper .st.lost { flex: 0 0 auto; clip-path: none; border-radius: 8px; margin-left: 8px; }
.stepper .st.lost.cur { background: var(--red); color: #fff; }
.stepper .st:disabled { cursor: default; }
.funnel { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 14px; }
.fs { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.fs b { font-size: 20px; } .fs span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.fs.on { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--gold); }
.fs-won b { color: var(--green); } .fs-lost b { color: var(--red); }
a.bar { color: inherit; }
.flt-more { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; align-items: center; }
.flt-more[hidden] { display: none; }
.b-prospect, .b-contacted { background: #e8f0fb; color: var(--blue); }
.b-meeting, .b-proposal, .b-negotiation { background: #fbf1dc; color: #92680f; }
.b-won, .b-signed { background: #e5f4ec; color: var(--green); }
.b-lost, .b-terminated, .b-expired { background: #fbe4e2; color: var(--red); }
.b-1 { background: #eef0f3; color: #59606c; } .b-2 { background: #fbf1dc; color: #92680f; } .b-3 { background: #e5f4ec; color: var(--green); }

@media (max-width: 1100px) {
  .ed-wrap { grid-template-columns: 1fr; }
  .ed-nav { position: static; flex-direction: row; overflow-x: auto; }
  .funnel { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  .grid .fld, .fld.s1, .fld.s2, .fld.s3, .fld.s4, .fld.s5, .fld.s6, .fld.s7, .fld.s8, .fld.s9, .fld.s10 { grid-column: 1 / -1; }
  .ed-bar { left: 0; }
  .hero-r { align-items: flex-start; }
  .xp li { grid-template-columns: 1fr; gap: 2px; }
  .funnel { grid-template-columns: repeat(2, 1fr); }
  .fld.chk { padding-top: 0; }
}

/* Document slots */
.dslots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dslot { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fcfbf8; display: flex; flex-direction: column; gap: 8px; }
.dslot-h b { font-size: 13px; }
.dfiles { display: flex; flex-direction: column; gap: 4px; }
.dfiles:empty::before { content: '—'; color: #b8b3a6; font-size: 12px; }
.dfile { display: flex; align-items: center; gap: 6px; font-size: 12.5px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; min-width: 0; }
.dfile a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--blue); }
.dfile small { color: var(--muted); white-space: nowrap; }
.dfile.new { border-color: #b7dcc4; background: #f1faf4; }
.dfile.removed { opacity: .5; text-decoration: line-through; border-style: dashed; }
.dfile-x { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--red); font-size: 16px; line-height: 1; }
.dslot-a { display: flex; gap: 8px; align-items: center; }
.dslot-a .dexp { width: 160px; padding: 6px 8px; font-size: 12.5px; }
.dpick { cursor: pointer; }
.checklist { display: flex; flex-wrap: wrap; gap: 8px; }
.ci { font-size: 12.5px; font-weight: 600; border-radius: 16px; padding: 5px 11px; }
.ci.ok { background: #e5f4ec; color: var(--green); }
.ci.no { background: #fbe4e2; color: var(--red); }
.mt0 { margin: 10px 0 0; }
@media (max-width: 760px) { .dslots { grid-template-columns: 1fr; } }
