/* CoderVariant CRM — same dark tokens as the website (assets/css/cx.css). */
:root {
  --bg: #05070d; --bg-2: #0a0f1c; --surface: #0e1424; --surface-2: #131a2c; --hover: rgba(255,255,255,.04);
  --text: #fff; --text-2: #dbe2ee; --muted: #a7b0c0; --dim: #6b7688;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --blue: #3b82f6; --cyan: #22d3ee; --grad: linear-gradient(120deg,#3b82f6 0%,#22d3ee 100%);
  --ok: #4ade80; --ok-bg: rgba(34,197,94,.14); --warn: #fde047; --warn-bg: rgba(250,204,21,.13); --err: #fca5a5; --err-bg: rgba(244,63,94,.15); --info: #93c5fd; --info-bg: rgba(59,130,246,.16);
  --radius: 16px; --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text-2); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: #7dd3fc; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--text); letter-spacing: -.02em; margin: 0; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 650; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shell */
.app { display: flex; min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 250px; background: #070a12; border-right: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .25s ease; }
.side.is-open { transform: none; }
.side__brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px; min-width: 0; }
.side__brand > span:last-child { min-width: 0; }
.side__brand strong { display: block; color: #fff; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side__brand span span { display: block; color: var(--dim); font-size: 12px; }
.side__who { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.side__who strong { display: block; color: #fff; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side__nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; display: grid; align-content: start; gap: 2px; }
.side__label { padding: 16px 10px 6px; color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.side__nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px; color: #b7c0cf; font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.side__nav a:hover { background: var(--hover); color: #fff; text-decoration: none; }
.side__nav a.is-on { background: rgba(59,130,246,.14); color: #fff; }
.side__nav a.is-on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.side__nav a.is-on .ico { color: var(--cyan); }
.side__foot { padding: 12px; border-top: 1px solid var(--line); }
.side__foot > form button { width: 100%; text-align: left; }
.who { display: flex; align-items: center; gap: 10px; padding: 4px; }
.who__text { flex: 1; min-width: 0; }
.who__text strong { display: block; color: #fff; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who__text small { display: block; color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 12px; background: rgba(5,7,13,.85); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.topbar strong { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; font-size: 15px; overflow: hidden; white-space: nowrap; }
.ico { flex: none; display: block; }
.logo { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--grad); color: #04121f; font: 800 12px/1 var(--font); }
.logo--sm { width: 28px; height: 28px; font-size: 11px; }
.iconbtn { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.iconbtn:hover { background: var(--hover); color: #fff; }
.iconbtn--danger:hover { background: var(--err-bg); color: var(--err); }
.avatar { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: rgba(148,163,184,.16); color: #e2e8f0; font: 650 13px/1 var(--font); }
.avatar--xs { width: 24px; height: 24px; font-size: 10px; }
.avatar--sm { width: 30px; height: 30px; font-size: 11px; }
.avatar--lg { width: 52px; height: 52px; font-size: 17px; }
.avatar--0 { background: var(--warn-bg); color: var(--warn); }
.avatar--1 { background: var(--info-bg); color: var(--info); }
.avatar--2 { background: var(--ok-bg); color: var(--ok); }
.backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.55); display: none; }
.backdrop.is-open { display: block; }
.main { flex: 1; min-width: 0; }
.page { max-width: 1180px; margin: 0 auto; padding: 24px 16px 60px; }
.page__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page__head p { color: var(--muted); margin-top: 4px; font-size: 14px; }
@media (min-width: 960px) {
  .side { position: sticky; top: 0; height: 100vh; transform: none; flex: 0 0 250px; }
  .topbar, .backdrop { display: none !important; }
  .page { padding: 32px 28px 60px; }
}

/* ---------- surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card__pad { padding: 20px; }
.card__head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack > * + * { margin-top: 16px; }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 16px 18px; }
.stat small { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat strong { display: block; margin-top: 6px; font-size: 28px; color: #fff; letter-spacing: -.03em; }

/* ---------- forms */
label { display: block; font-size: 13px; font-weight: 500; color: #c9d1de; margin-bottom: 6px; }
.field + .field { margin-top: 14px; }
.field small { display: block; color: var(--dim); font-size: 12.5px; margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(5,7,13,.65); color: #fff; font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
select option { background: #0b1120; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.has-error input, .has-error select, .has-error textarea { border-color: #f87171; }
.crm-field-error { color: var(--err); font-size: 12.5px; margin-top: 5px; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.filters { display: grid; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .filters { grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; align-items: end; } }
.filters label { font-size: 12px; color: var(--muted); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: #fff; font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { background: rgba(255,255,255,.09); }
.btn--primary { background: var(--grad); border-color: transparent; color: #04121f; }
.btn--primary:hover { background: var(--grad); filter: brightness(1.08); }
.btn--danger { color: var(--err); border-color: rgba(248,113,113,.35); }
.btn--danger:hover { background: var(--err-bg); }
.btn--ghost { background: transparent; border-color: transparent; color: #c9d1de; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form { display: inline; }

/* ---------- tables + lists */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 16px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--hover); }
td .sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.cards-mobile .row { padding: 14px 16px; border-bottom: 1px solid var(--line); display: block; color: inherit; }
.cards-mobile .row:last-child { border-bottom: 0; }
.cards-mobile .row strong { color: #fff; }
.only-desk { display: none; }
@media (min-width: 760px) { .only-desk { display: block; } .only-mob { display: none; } }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: #fff; font-size: 16px; margin-bottom: 6px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; }
.list li:last-child { border-bottom: 0; }
.meta { color: var(--muted); font-size: 12.5px; }
dl.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; color: #fff; word-break: break-word; }
.message { white-space: pre-wrap; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--text-2); }

/* ---------- badges + alerts */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge--0, .badge--trial, .badge--Pending { background: var(--warn-bg); color: var(--warn); }
.badge--1, .badge--admin { background: var(--info-bg); color: var(--info); }
.badge--2, .badge--active, .badge--Done { background: var(--ok-bg); color: var(--ok); }
.badge--manager { background: rgba(139,92,246,.18); color: #c4b5fd; }
.badge--sales, .badge--off { background: rgba(255,255,255,.07); color: var(--muted); }
.badge--suspended, .badge--cancelled, .badge--expired, .badge--past_due { background: var(--err-bg); color: var(--err); }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.alert--success { background: var(--ok-bg); color: var(--ok); }
.alert--error { background: var(--err-bg); color: var(--err); }
.alert--info { background: var(--info-bg); color: var(--info); }

/* ---------- auth screens */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  background-image: radial-gradient(700px 420px at 50% 0%, rgba(59,130,246,.22), transparent 65%), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px; }
.auth__box { width: 100%; max-width: 440px; }
.auth__brand { text-align: center; margin-bottom: 20px; }
.auth__brand strong { color: #fff; font-size: 18px; }
.auth__brand span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.auth .card { padding: 28px; background: rgba(14,20,36,.88); border-color: var(--line-2); }
.auth h1 { font-size: 22px; margin-bottom: 6px; }
.auth .lead { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.auth__alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth form .btn--primary { margin-top: 20px; }

/* secondary line under a title (lists, tables, cards) */
.sub { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
h2.field, .message.field { margin-top: 18px; }
.card__pad > .meta + .alert, .card__pad > .meta + form { margin-top: 14px; }
@media (max-width: 759px) { .page__head .actions { width: 100%; } .alert { flex-wrap: wrap; } }

/* ==========================================================================
   Leads dashboard (KPIs, tabs, filters, table, lead page)
   ========================================================================== */
.btn .ico { margin-left: -2px; }
.nowrap { white-space: nowrap; }
.crumb { margin-bottom: 12px; font-size: 14px; }
.crumb a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.crumb a:hover { color: #fff; text-decoration: none; }
.page__head .crumb { margin-bottom: 8px; }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.dot--0 { background: var(--warn); } .dot--1 { background: var(--info); } .dot--2 { background: var(--ok); }
.chip { display: table; margin-top: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--muted); font-size: 11.5px; font-weight: 500; }

/* KPI cards — each one is a status filter */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.kpi { display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 2px 8px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.kpi:hover { border-color: var(--line-2); transform: translateY(-1px); }
.kpi.is-on { border-color: rgba(34,211,238,.45); background: linear-gradient(180deg, rgba(34,211,238,.06), transparent 70%), var(--surface); }
.kpi__icon { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
.kpi__label { grid-column: 1; grid-row: 1; color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi__value { grid-column: 1; grid-row: 2; color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.kpi__sub { grid-column: 1 / -1; margin-top: 6px; color: var(--dim); font-size: 12px; }
.kpi__sub--gap { margin-top: 20px; }
.kpi__bar { grid-column: 1 / -1; width: 100%; height: 4px; margin-top: 10px; border: 0; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; -webkit-appearance: none; appearance: none; }
.kpi__bar::-webkit-progress-bar { background: rgba(255,255,255,.06); border-radius: 4px; }
.kpi__bar::-webkit-progress-value { border-radius: 4px; }
.bar--0::-webkit-progress-value { background: var(--warn); } .bar--0::-moz-progress-bar { background: var(--warn); }
.bar--1::-webkit-progress-value { background: var(--info); } .bar--1::-moz-progress-bar { background: var(--info); }
.bar--2::-webkit-progress-value { background: var(--ok); } .bar--2::-moz-progress-bar { background: var(--ok); }
.tone-all { background: rgba(34,211,238,.12); color: var(--cyan); }
.tone-0 { background: var(--warn-bg); color: var(--warn); }
.tone-1 { background: var(--info-bg); color: var(--info); }
.tone-2 { background: var(--ok-bg); color: var(--ok); }
@media (max-width: 420px) { .kpi { padding: 14px; } .kpi__value { font-size: 22px; } .kpi__icon { width: 30px; height: 30px; } }

/* status tabs */
.tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 14px 10px 12px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 550; white-space: nowrap; }
.tab:hover { color: #fff; text-decoration: none; }
.tab.is-on { color: #fff; border-bottom-color: var(--cyan); }
.tab > span { padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tab.is-on > span { background: rgba(34,211,238,.14); color: var(--cyan); }

/* filters: search always visible, the rest folds away on phones */
.lfilters { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.lfilters__row { display: flex; gap: 8px; }
.lfilters label { margin: 0; }
.search { position: relative; flex: 1; min-width: 0; display: flex !important; align-items: center; }
.search .ico { position: absolute; left: 12px; color: var(--dim); pointer-events: none; }
.search input[type=search] { min-height: 42px; padding-left: 38px; }
.search input::-webkit-search-cancel-button { filter: invert(.7); }
.lfilters__toggle { position: relative; padding: 0 12px; }
.lfilters__flag { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.lfilters__more { display: none; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.lfilters.is-open .lfilters__more { display: grid; }
.lfilters__more > .pfield:first-child:nth-last-child(n+3) { grid-column: 1 / -1; }
.lfilters__clear { grid-column: 1 / -1; justify-self: start; }
.pfield { display: flex !important; align-items: center; min-height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(5,7,13,.65); min-width: 0; transition: border-color .15s, box-shadow .15s; }
.pfield:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.pfield > span { padding-left: 12px; color: var(--dim); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pfield :is(select, input) { min-height: 40px; border: 0; background: transparent; box-shadow: none !important; min-width: 0; color-scheme: dark; }
@media (max-width: 899px) { .lfilters:not(.is-open) .lfilters__go { display: none; } }
@media (max-width: 479px) { .lfilters__toggle span { display: none; } .lfilters__more { grid-template-columns: 1fr; } }
@media (min-width: 900px) {
  .lfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .lfilters__row, .lfilters__more, .lfilters.is-open .lfilters__more { display: contents; }
  .search { order: 1; flex: 1 1 240px; }
  .pfield { order: 2; flex: 0 1 auto; }
  .pfield select { width: 170px; }
  .pfield input { width: 150px; }
  .lfilters__go { order: 3; }
  .lfilters__clear { order: 4; }
  .lfilters__toggle { display: none; }
}

/* leads table */
table.leads td { vertical-align: middle; padding: 14px 16px; }
table.leads tbody tr { position: relative; }
.person { display: flex; align-items: center; gap: 12px; min-width: 200px; color: inherit; }
.person:hover { text-decoration: none; }
.person:hover strong { color: #7dd3fc; }
/* the name link covers the whole row, so any cell opens the lead */
.person::after { content: ""; position: absolute; inset: 0; }
.person__text { min-width: 0; max-width: 260px; }
.person__text strong { display: block; color: #fff; }
.person__text .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assignee { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.when { color: var(--text-2); font-weight: 500; }
.col-wide { display: none; }
@media (min-width: 1100px) { .col-wide { display: table-cell; } }

/* lead cards on phones */
ul.cards-mobile { list-style: none; margin: 0; padding: 0; }
.cards-mobile li { border-bottom: 1px solid var(--line); }
.cards-mobile li:last-child { border-bottom: 0; }
.cards-mobile .row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; }
.cards-mobile .row:hover, .cards-mobile .row:active { background: var(--hover); text-decoration: none; }
.row__text { flex: 1; min-width: 0; }
.row__text strong, .row__text .sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* empty state + pager */
.empty__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: rgba(34,211,238,.1); color: var(--cyan); }
.empty p { margin-bottom: 14px; }
.empty--sm { padding: 24px 20px; }
.pager { flex-wrap: wrap; }
.pager strong { color: #fff; font-weight: 600; }
.pager__nav { display: flex; align-items: center; gap: 4px; }
.pager__btn { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.pager__btn:hover { background: var(--hover); color: #fff; text-decoration: none; }
.pager__btn.is-on { background: rgba(34,211,238,.14); color: var(--cyan); }
.pager__btn.is-disabled { opacity: .35; pointer-events: none; }
.pager__gap { padding: 0 4px; color: var(--dim); }
@media (max-width: 480px) { .pager { justify-content: center; } }

/* lead page */
.lead-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 20px; margin-bottom: 16px; }
.lead-head__text { flex: 1; min-width: 200px; }
.lead-head h1 { font-size: 22px; overflow-wrap: anywhere; }
.lead-head__text p { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 13.5px; }
@media (max-width: 560px) { .lead-head__actions { width: 100%; flex-wrap: nowrap; } .lead-head__actions .btn { flex: 1; padding: 0 8px; } .lead-head__actions form { flex: none; } }
@media (max-width: 400px) { .lead-head__actions .btn span { display: none; } }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; border-radius: 12px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.details > div { padding: 10px 14px; background: var(--surface-2); min-width: 0; }
.details__full { grid-column: 1 / -1; }
.details dt { color: var(--dim); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.details dd { margin: 2px 0 0; color: #fff; overflow-wrap: anywhere; }
.sec-title { margin: 20px 0 10px; font-size: 14px; }
.sec-gap { margin-top: 10px; }
.message { border-left: 3px solid rgba(34,211,238,.5); }
.card__head h2 { display: flex; align-items: center; gap: 8px; }
.card__head h2 small { font-weight: 500; }
.tasks { list-style: none; margin: 0; padding: 8px; display: grid; gap: 6px; }
.task { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.task form { display: flex; }
.task__text { flex: 1; min-width: 0; color: #fff; overflow-wrap: anywhere; }
.task.is-done .task__desc { color: var(--dim); text-decoration: line-through; }
.task__check { display: grid; place-items: center; flex: none; width: 20px; height: 20px; padding: 0; border-radius: 6px; border: 2px solid var(--line-2); background: none; color: #04121f; cursor: pointer; transition: border-color .15s, background .15s; }
button.task__check:hover { border-color: var(--ok); background: var(--ok-bg); }
.task__check.is-done { border-color: var(--ok); background: var(--ok); cursor: default; }
.task__check.is-locked { opacity: .5; cursor: default; }
.taskform { display: grid; gap: 8px; border-top: 1px solid var(--line); }
@media (min-width: 560px) { .taskform { grid-template-columns: 1fr 160px auto; } }
.inline-row { display: flex; gap: 8px; margin-top: 12px; }
.inline-row select { flex: 1; min-width: 0; }
.timeline { position: relative; list-style: none; margin: 12px 0 0; padding: 0 0 0 4px; display: grid; gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 7.5px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.timeline li { position: relative; display: flex; gap: 12px; }
.timeline .dot { position: relative; margin-top: 6px; box-shadow: 0 0 0 4px var(--surface); }
.timeline strong { display: block; color: #fff; font-size: 13.5px; font-weight: 500; }

@media (prefers-reduced-motion: reduce) { .side, .kpi { transition: none !important; } }
