/* Signo — one stylesheet. Deep ink + one signal coral. Light and dark follow the phone. Never text-transform: uppercase. */
:root {
  --bg: #F5F4F0; --surface: #FFFFFF; --surface-2: #FAF9F6; --sunk: #EFEDE7;
  --ink: #141826; --ink-2: #3A3F4E; --muted: #6E7383; --line: #E6E3DC; --line-2: #EFECE6;
  --accent: #E8553B; --accent-2: #D2452C; --accent-soft: #FDECE7; --on-accent: #FFFFFF;
  --btn: #141826; --on-btn: #FFFFFF;
  --ok: #0C8A5F; --ok-soft: #E2F4EC; --warn: #9A6400; --warn-soft: #FBF0D9; --bad: #C8371F; --bad-soft: #FCE7E2;
  --meta: #1877F2; --meta-soft: #E7F0FE; --wa: #148F49; --wa-soft: #E2F5EA; --google: #9A6B00; --google-soft: #FCF1D6; --web: #4B4F63; --web-soft: #ECEBF0;
  --shadow: 0 1px 2px rgba(20, 24, 38, .04), 0 4px 18px rgba(20, 24, 38, .05);
  --shadow-lg: 0 10px 40px rgba(20, 24, 38, .14), 0 2px 6px rgba(20, 24, 38, .06);
  --r: 18px; --r-sm: 12px; --side: 252px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0E15; --surface: #141823; --surface-2: #181D2A; --sunk: #10131C;
    --ink: #EEF0F5; --ink-2: #C7CBD6; --muted: #8D93A4; --line: #252A39; --line-2: #1E2331;
    --accent: #FF6B4E; --accent-2: #FF826A; --accent-soft: rgba(255, 107, 78, .14);
    --btn: #EEF0F5; --on-btn: #0C0E15;
    --ok: #3CCB91; --ok-soft: rgba(60, 203, 145, .13); --warn: #F2B544; --warn-soft: rgba(242, 181, 68, .13); --bad: #FF7A63; --bad-soft: rgba(255, 122, 99, .13);
    --meta: #6AA6FF; --meta-soft: rgba(106, 166, 255, .14); --wa: #43D180; --wa-soft: rgba(67, 209, 128, .13); --google: #F5C451; --google-soft: rgba(245, 196, 81, .13); --web: #B9BDCC; --web-soft: rgba(185, 189, 204, .12);
    --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 6px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 14px 50px rgba(0, 0, 0, .55);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 10px; } p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; line-height: 1.2; }
h2 { font-size: 16.5px; font-weight: 650; margin-bottom: 14px; }
h2 small, h3 small { font-weight: 450; color: var(--muted); font-size: 13px; letter-spacing: 0; }
h3 { font-size: 14.5px; font-weight: 650; }
h3.sep { margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid var(--line-2); }
code { font-family: var(--mono); font-size: .88em; background: var(--sunk); padding: 1px 6px; border-radius: 6px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; margin-top: 12px; }
.center { text-align: center; margin-top: 14px; }
.mt { margin-top: 14px; }
.i { width: 20px; height: 20px; flex: none; }
.mark { color: var(--ink); flex: none; }
.mark rect { fill: var(--ink); }
.mark circle { fill: var(--accent); }
@media (prefers-color-scheme: dark) { .mark path { stroke: #0C0E15; } }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid transparent; background: var(--btn); color: var(--on-btn); font: 600 14.5px/1 var(--font); cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), background .15s, box-shadow .15s, opacity .15s; -webkit-tap-highlight-color: transparent; }
.btn:hover { box-shadow: 0 4px 14px rgba(20, 24, 38, .16); }
.btn:active { transform: scale(.97); }
.btn .i { width: 18px; height: 18px; }
.btn small { font-weight: 450; opacity: .7; }
.btn.sec { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.sec:hover { background: var(--surface-2); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface); box-shadow: none; }
.btn.danger, .link-btn.danger { color: var(--bad); }
.btn.light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn.fb { background: #1877F2; color: #fff; } .btn.wa { background: #1FA855; color: #fff; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.lg { height: 50px; padding: 0 22px; font-size: 15.5px; border-radius: 14px; }
.btn.w { width: 100%; }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btnrow form { margin: 0; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--muted); font: 600 13.5px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { color: var(--ink); }

/* ---------- forms ---------- */
.f { display: block; margin-bottom: 14px; min-width: 0; }
.f > span:first-child { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.f > span small { font-weight: 450; color: var(--muted); }
.f > small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; line-height: 1.45; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=search], input:not([type]), select, textarea {
  width: 100%; min-width: 0; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 15px var(--font); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
textarea { height: auto; padding: 11px 13px; line-height: 1.5; resize: vertical; }
select { padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%238D93A4' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[readonly] { background: var(--surface-2); font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
input[type=color] { width: 52px; height: 40px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.colour { display: flex; align-items: center; gap: 12px; } .colour small { color: var(--muted); font-size: 12.5px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.stack .f:last-of-type { margin-bottom: 18px; }
.switch { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; margin-bottom: 8px; cursor: pointer; border-top: 1px solid var(--line-2); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .sw { flex: none; width: 42px; height: 26px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; margin-top: 1px; }
.switch .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .22s var(--ease); }
.switch input:checked + .sw { background: var(--ok); }
.switch input:checked + .sw::after { transform: translateX(16px); }
.switch input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch b { display: block; font-size: 14.5px; } .switch small { color: var(--muted); font-size: 13px; }
.checks { display: grid; gap: 8px; margin: 10px 0 16px; }
.check { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.inline { display: inline-flex; } .inline select { height: 42px; width: auto; }

/* ---------- app frame ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; border-right: 1px solid var(--line); background: var(--surface-2); z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.side .brand { padding: 0 8px; }
.acc-chip { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; min-width: 0; }
.acc-chip i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.acc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-chip.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 99px; max-width: 46vw; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--ink-2); font-weight: 550; font-size: 14.5px; transition: background .15s, color .15s; position: relative; }
.nav a:hover { background: var(--sunk); color: var(--ink); }
.nav a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.nav a.on .i { color: var(--accent); }
.badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font: 700 12px/22px var(--font); font-style: normal; text-align: center; animation: pop .35s var(--ease); }
.badge[hidden] { display: none; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.me { display: flex; gap: 10px; align-items: center; padding: 0 6px; min-width: 0; }
.me-t { min-width: 0; } .me-t b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .me-t small { color: var(--muted); font-size: 12px; }
.side-foot form { padding: 0 6px; }
.av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: var(--sunk); color: var(--ink-2); font-weight: 700; font-size: 14.5px; position: relative; }
.av.new { background: var(--accent); color: var(--on-accent); }
.av.new::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ring 2.4s var(--ease) infinite; }
.top { display: none; }
.main { margin-left: var(--side); min-height: 100vh; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 34px 36px 60px; }
.ph { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.ph-t { flex: 1; min-width: 0; }
.ph h1 { font-size: 27px; font-weight: 680; letter-spacing: -.025em; }
.ph p { color: var(--muted); margin-top: 5px; font-size: 14.5px; }
.back { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); flex: none; }
.tabs { display: none; }
.asbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; padding: 8px 16px; background: #141826; color: #E9EBF1; font-size: 13.5px; margin-left: var(--side); }
@media (prefers-color-scheme: dark) { .asbar { background: #262B3A; } }
.asbar form { margin: 0; }
.only-phone { display: none; }

/* ---------- cards, lists, stats ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > h2.pad, .pad { padding: 18px 20px 4px; margin: 0; }
.card.narrow { max-width: 640px; }
.card.note, .note { background: var(--surface-2); box-shadow: none; }
.note-s { background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 12px 14px; color: var(--ink-2); font-size: 14px; }
.row-h { display: flex; align-items: center; justify-content: space-between; }
.more { font-size: 13.5px; font-weight: 600; color: var(--accent); }
details.card summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.card summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
details[open].card summary::after { transform: rotate(225deg); }
details summary::-webkit-details-marker { display: none; }
details:not(.card) summary { cursor: pointer; font-weight: 600; color: var(--ink-2); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { display: flex; flex-direction: column; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; transition: transform .2s var(--ease), border-color .2s; }
a.stat:hover { transform: translateY(-2px); }
.stat .l { color: var(--muted); font-size: 13px; font-weight: 550; }
.stat .v { font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat .v .u { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat > small { color: var(--muted); font-size: 12.5px; }
.stat.hot { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 140%); }
.stat.hot .v { color: var(--accent); }
.it { display: flex; align-items: center; gap: 13px; padding: 14px 20px; border-top: 1px solid var(--line-2); min-width: 0; transition: background .15s; }
.card.flush > .it:first-child, .card.flush > h2 + .it { border-top: 0; }
a.it:hover { background: var(--surface-2); }
.tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tx b { font-weight: 620; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx b i { font-style: normal; color: var(--muted); font-weight: 500; }
.tx small { color: var(--muted); font-size: 13px; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; min-width: 0; }
.end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.end small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.src, .st { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--sunk); color: var(--ink-2); }
.src-meta { background: var(--meta-soft); color: var(--meta); } .src-whatsapp { background: var(--wa-soft); color: var(--wa); } .src-google { background: var(--google-soft); color: var(--google); }
.src-website, .src-erp { background: var(--web-soft); color: var(--web); }
.st-new { background: var(--accent-soft); color: var(--accent); } .st-contacted, .st-quoted { background: var(--meta-soft); color: var(--meta); } .st-won { background: var(--ok-soft); color: var(--ok); } .st-lost { background: var(--sunk); color: var(--muted); }
.warn-t { color: var(--warn); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
.grid2.tight { gap: 0 16px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid-main > :only-child { grid-column: 1 / -1; }
.grid-lead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.kvl { list-style: none; margin: 0; padding: 0; } .kvl li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14px; } .kvl li:first-child { border-top: 0; }
.kvl b.ok { color: var(--ok); } .kvl b.muted { color: var(--muted); font-weight: 500; }

/* ---------- alerts and flash ---------- */
.flash { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; font-size: 14.5px; font-weight: 550; animation: rise .35s var(--ease) both; }
.flash.ok { background: var(--ok-soft); color: var(--ok); } .flash.err { background: var(--bad-soft); color: var(--bad); }
.flash .i { width: 18px; height: 18px; }
.alert { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r); margin-bottom: 18px; border: 1px solid transparent; }
.alert > span { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; } .alert small { font-size: 13.5px; opacity: .85; }
.alert.bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.alert.bad .i { animation: shake 2.6s ease-in-out infinite; }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.ok-line { display: flex; align-items: center; gap: 6px; color: var(--ok); margin: -6px 0 18px; } .ok-line .i { width: 16px; height: 16px; }

/* ---------- filters ---------- */
.pbar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 12px; padding: 2px; max-width: 100%; }
.pbar::-webkit-scrollbar { display: none; }
.pbar a { flex: none; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s; }
.pbar a.on { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.pbar a em { font-style: normal; color: var(--accent); margin-left: 2px; } .pbar a.on em { color: inherit; opacity: .8; }
.filters { display: flex; gap: 8px; margin-bottom: 16px; }
.filters input { flex: 1; } .filters select { width: 160px; flex: none; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px; color: var(--muted); font-size: 13.5px; }
.pager a { font-weight: 650; color: var(--ink); padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }

/* ---------- one lead ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chips form { margin: 0; }
.chip { height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 13.5px var(--font); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--ink-2); }
.chip.on { border-color: transparent; }
.chip.on.st-new { background: var(--accent); color: var(--on-accent); } .chip.on.st-contacted, .chip.on.st-quoted { background: var(--meta); color: #fff; } .chip.on.st-won { background: var(--ok); color: #fff; } .chip.on.st-lost { background: var(--muted); color: #fff; }
.acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 650; font-size: 14px; transition: transform .15s var(--ease), background .15s; }
.act:active { transform: scale(.96); }
.act .i { width: 22px; height: 22px; }
.act.call { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.act.wa .i { color: var(--wa); } .act.mail .i { color: var(--meta); }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 9px 14px; margin: 0; font-size: 14.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.msg { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14.5px; word-break: break-word; }
.note-f { display: grid; gap: 8px; margin-bottom: 18px; }
.note-f .btn { justify-self: start; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); border-radius: 2px; }
.tl li { display: flex; gap: 14px; padding: 0 0 16px; position: relative; }
.tl .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); flex: none; margin-top: 3px; position: relative; }
.tl p { margin: 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; } .tl small { color: var(--muted); font-size: 12.5px; }
.tl-created .dot { border-color: var(--accent); } .tl-contact .dot, .tl-status .dot { border-color: var(--meta); } .tl-note .dot { border-color: var(--ink-2); }
.tl-forward_ok .dot { border-color: var(--ok); } .tl-forward_failed .dot { border-color: var(--warn); } .tl-merged .dot { border-color: var(--google); }
.tl-note p { background: var(--surface-2); border-radius: 10px; padding: 8px 11px; }

/* ---------- connections ---------- */
.cx { padding: 24px; scroll-margin-top: 80px; }
.cx-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.cx-h > div { flex: 1; min-width: 0; } .cx-h h2 { margin: 2px 0 4px; } .cx-h p { font-size: 14px; }
.cx-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.cx-ic .i { width: 23px; height: 23px; }
.cx-st { flex: none; font-size: 12.5px; font-weight: 650; padding: 5px 11px; border-radius: 99px; background: var(--sunk); color: var(--muted); }
.cx-st.on { background: var(--ok-soft); color: var(--ok); }
.cx-st.on::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; animation: blink 2.4s ease-in-out infinite; }
.cx-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.cx-foot form { margin: 0; } .cx-foot .hint { margin: 0; }
.rows { list-style: none; margin: 0 0 16px; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line-2); }
.rows li:first-child { border-top: 0; } .rows li > span { min-width: 0; } .rows b { display: block; } .rows small { color: var(--muted); font-size: 13px; } .rows form { margin: 0; }
.howto { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.howto li { counter-increment: s; position: relative; padding-left: 36px; font-size: 14.5px; min-height: 24px; }
.howto li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--sunk); color: var(--ink); font-weight: 700; font-size: 12.5px; display: grid; place-items: center; }
.copies { display: grid; gap: 12px; }
.copy { display: block; min-width: 0; }
.copy-l { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.copy-b { display: flex; gap: 8px; align-items: flex-start; }
.copy-b input, .copy-b textarea { flex: 1; min-width: 0; }
.copy-b textarea { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); color: var(--ink-2); white-space: pre; overflow: auto; }
.copy-b .btn { height: 44px; flex: none; }
.copy-b .btn.done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.savebar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; z-index: 5; margin-bottom: 18px; }
.savebar .btn { box-shadow: var(--shadow-lg); }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: t; }
.todo a { display: flex; flex-direction: column; padding: 12px 14px 12px 46px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); position: relative; counter-increment: t; transition: border-color .15s, transform .15s var(--ease); }
.todo a::before { content: counter(t); position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.todo a:hover { border-color: var(--accent); transform: translateX(2px); }
.todo b { font-size: 14.5px; } .todo small { color: var(--muted); font-size: 13px; }

/* ---------- admin companies ---------- */
.co { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; min-width: 0; }
.co:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.co-top { display: flex; align-items: center; gap: 10px; min-width: 0; } .co-top i { width: 12px; height: 12px; border-radius: 4px; flex: none; } .co-top b { font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-n b { font-size: 34px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .co-n small { color: var(--muted); margin-left: 6px; }
.co-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.dots { display: flex; gap: 5px; } .dots em { font-style: normal; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: var(--sunk); color: var(--muted); }
.dots em.on { background: var(--ok-soft); color: var(--ok); }

/* ---------- the new-lead banner ---------- */
.lead-toast { position: fixed; left: 50%; top: 14px; z-index: 100; width: min(440px, calc(100vw - 24px)); display: flex; align-items: center; gap: 13px; padding: 13px 14px 13px 13px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translate(-50%, -140%); transition: transform .5s var(--ease); }
.lead-toast.on { transform: translate(-50%, 0); }
.lt-ic { width: 42px; height: 42px; border-radius: 14px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; position: relative; }
.lead-toast.on .lt-ic::after { content: ""; position: absolute; inset: -5px; border-radius: 17px; border: 2px solid var(--accent); animation: ring 1.6s var(--ease) infinite; }
.lt-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; } .lt-tx b { font-size: 15px; } .lt-tx small { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-x { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); font-size: 20px; flex: none; }

/* ---------- public pages ---------- */
body.pub { background: var(--bg); }
.pub-top { max-width: 1160px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pub-top nav { display: flex; align-items: center; gap: 20px; font-size: 14.5px; font-weight: 550; color: var(--ink-2); }
.pub-main { max-width: 1160px; margin: 0 auto; padding: 0 24px 40px; }
.pub-foot { max-width: 1160px; margin: 0 auto; padding: 28px 24px 40px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }
.pub-foot a:hover { color: var(--ink); }
.hero-pub { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 56px 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 650; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 99px; margin-bottom: 22px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); animation: ring 2s var(--ease) infinite; }
.hero-pub h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 720; letter-spacing: -.04em; line-height: 1.02; margin-bottom: 22px; text-wrap: balance; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 540px; margin-bottom: 30px; line-height: 1.6; }
.hero-demo { position: relative; padding-top: 34px; }
.demo-toast { position: absolute; top: 0; left: 50%; width: 86%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 2; animation: drop 5.5s var(--ease) infinite; }
.demo-toast > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; } .demo-toast small { color: var(--muted); font-size: 13px; } .demo-toast em { font-style: normal; color: var(--muted); font-size: 12px; }
.dt-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.demo-list { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 54px 6px 6px; }
.demo-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; }
.demo-row + .demo-row { border-top: 1px solid var(--line-2); }
.demo-row em { font-style: normal; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.feat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-bottom: 32px; }
.feat article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.feat h3 { font-size: 16px; margin: 14px 0 8px; } .feat p { color: var(--muted); font-size: 14.5px; }
.fi { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 40px; }
.band > div { padding: 30px; border-radius: 22px; background: #141826; color: #E9EBF1; }
.band > div:last-child { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.band h2 { font-size: 22px; margin-bottom: 10px; } .band p { opacity: .8; font-size: 15px; }
.legal { max-width: 720px; margin: 20px auto 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 40px 44px; }
.legal h1 { font-size: 32px; letter-spacing: -.03em; margin-bottom: 6px; } .legal h2 { margin: 28px 0 8px; font-size: 18px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; } .legal ul, .legal ol { padding-left: 22px; } .legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); font-weight: 600; } .legal .card { margin: 16px 0; }
body.auth .pub-main { display: grid; place-items: center; min-height: calc(100vh - 190px); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 34px 32px; box-shadow: var(--shadow-lg); animation: rise .45s var(--ease) both; margin: 20px 0; }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { font-size: 26px; letter-spacing: -.03em; margin: 14px 0 6px; } .auth-card > .muted { margin-bottom: 22px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; } .auth-alt a { color: var(--accent); font-weight: 600; }
.stop { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.stop-box { max-width: 420px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px 30px; box-shadow: var(--shadow); }
.stop-box h1 { font-size: 22px; margin: 14px 0 8px; } .stop-box p { color: var(--muted); margin-bottom: 22px; } .stop-box .btnrow { justify-content: center; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes ring { 0% { opacity: .7; transform: scale(.9); } 80%, 100% { opacity: 0; transform: scale(1.45); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes shake { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(14deg); } 92% { transform: rotate(-12deg); } 95% { transform: rotate(8deg); } }
@keyframes drop { 0%, 8% { opacity: 0; transform: translate(-50%, -14px) scale(.98); } 16%, 82% { opacity: 1; transform: translate(-50%, 0) scale(1); } 92%, 100% { opacity: 0; transform: translate(-50%, -8px) scale(.98); } }
html.js .wrap > .card, html.js .wrap > .stats, html.js .wrap > section, html.js .grid-main > *, html.js .grid-lead > .col > *, html.js .cards3 > *, html.js .conn > * { animation: rise .42s var(--ease) both; }
html.js .wrap > :nth-child(3), html.js .grid-main > :nth-child(2), html.js .conn > :nth-child(2), html.js .cards3 > :nth-child(2) { animation-delay: .04s; }
html.js .wrap > :nth-child(4), html.js .conn > :nth-child(3), html.js .cards3 > :nth-child(3) { animation-delay: .08s; }
html.js .wrap > :nth-child(5), html.js .conn > :nth-child(4) { animation-delay: .12s; }
html.js .conn > :nth-child(5) { animation-delay: .16s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- phones and small screens ---------- */
@media (max-width: 1100px) { .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .side { display: none; }
  .main { margin-left: 0; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .asbar { margin-left: 0; justify-content: space-between; }
  .top { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; height: 58px; padding: 0 16px; padding-top: env(safe-area-inset-top); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line-2); }
  .top .brand { font-size: 17px; } .top .acc-chip { margin-left: auto; } .top > .av { width: 34px; height: 34px; font-size: 13.5px; }
  .tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-top: 1px solid var(--line); }
  .tabs a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; }
  .tabs a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tabs a .i { width: 23px; height: 23px; }
  .tabs a.on { color: var(--ink); } .tabs a.on .i { color: var(--accent); }
  .tabs .badge { position: absolute; top: 0; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; font-size: 11px; line-height: 18px; padding: 0 5px; }
  .wrap { padding: 20px 16px 32px; }
  .ph { flex-wrap: wrap; margin-bottom: 18px; }
  .ph h1 { font-size: 23px; }
  .ph > .btn, .ph > .btnrow { width: 100%; } .ph > .btnrow .btn { flex: 1; }
  .grid-main, .grid-lead, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .only-phone { display: block; }
  .hero-pub { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 28px 0 48px; }
  .band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .card { padding: 18px 16px; border-radius: 16px; }
  .cx { padding: 18px 16px; }
  .it { padding: 13px 16px; gap: 11px; }
  .stats { gap: 8px; }
  .stat { padding: 12px 12px; border-radius: 15px; }
  .stat .l { font-size: 11.5px; line-height: 1.3; } .stat .v { font-size: 24px; } .stat > small { font-size: 11.5px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: 104px minmax(0, 1fr); font-size: 14px; }
  .filters { flex-wrap: wrap; } .filters input { flex: 1 1 100%; } .filters select { flex: 1; width: auto; }
  .cx-h { flex-wrap: wrap; } .cx-h > div { flex: 1 1 calc(100% - 60px); } .cx-st { margin-left: 60px; }
  .copy-b .btn { padding: 0 10px; }
  .pub-top { padding: 16px; } .pub-top nav { gap: 14px; font-size: 13.5px; } .pub-top nav a:not(.btn) { display: none; }
  .pub-main { padding: 0 16px 30px; } .pub-foot { padding: 22px 16px 32px; }
  .feat { grid-template-columns: minmax(0, 1fr); }
  .lede { font-size: 16.5px; }
  .legal { padding: 26px 20px; border-radius: 18px; } .legal h1 { font-size: 26px; }
  .auth-card { padding: 26px 20px; border-radius: 20px; }
  .end .st { font-size: 11.5px; padding: 0 8px; }
  .tx b { font-size: 14.5px; }
  .savebar { bottom: calc(84px + env(safe-area-inset-bottom)); } .savebar .btn { width: 100%; }
}
