/* Azurv admin + client portal · v11 (app shell: sidebar on desktop, tab bar on phones) */
:root {
  --bg: #f5f7fb; --surface: #ffffff; --soft: #f7f9fc; --soft-2: #eef2f8;
  --ink: #0d1424; --ink-2: #47526a; --ink-3: #6b7489; --line: #e6eaf2; --line-2: #d7deea;
  --navy: #0b1530; --navy-2: #121f44; --cyan: #22c3ec; --azure: #3f7ff5; --azure-ink: #2f62c9; --violet: #7c5cf0;
  --green: #16a36a; --red: #d93a3a; --amber: #b7791f;
  --grad: linear-gradient(120deg, #22c3ec 0%, #3f7ff5 45%, #7c5cf0 100%);
  --shadow-sm: 0 1px 2px rgba(13,20,36,.05);
  --shadow: 0 1px 2px rgba(13,20,36,.04), 0 6px 20px -14px rgba(13,20,36,.16);
  --shadow-lg: 0 24px 60px -28px rgba(13,20,36,.35);
  --r: 16px; --side: 260px;
  --head: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif; --body: "Inter", system-ui, -apple-system, sans-serif;
  /* legacy aliases used in markup */
  --text: var(--ink); --muted: var(--ink-2); --dim: var(--ink-3); --stroke: var(--line); --stroke2: var(--line-2); --card: var(--surface); --card2: var(--soft-2);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 .95rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--azure); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: clamp(1.55rem, 2.6vw, 1.95rem); letter-spacing: -.03em; font-weight: 800; }
h1, h2 { text-wrap: balance; }
@media (min-width: 960px) { .topbar.plain { display: none; } .no-nav .main { padding-top: 40px; } }
h2 { font-size: 1.05rem; }
h3 { font-size: .98rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.center { text-align: center; }
.t-err { color: var(--red); font-weight: 600; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; border-radius: 6px; }
.ico { width: 20px; height: 20px; flex: none; display: block; }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; min-height: 44px; }
.logo-mark { display: block; height: 21px; aspect-ratio: 669 / 131; background: var(--grad); -webkit-mask: url(/assets/azurv-logo.png) center / contain no-repeat; mask: url(/assets/azurv-logo.png) center / contain no-repeat; }
.tag { font: 700 .64rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 5px 8px; border-radius: 6px; background: var(--soft-2); white-space: nowrap; }

/* ---------- Sidebar (desktop) ---------- */
.side { display: none; }
.side .nav, .sheet .nav { display: grid; gap: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 11px; font-weight: 500; font-size: .93rem; text-decoration: none !important; transition: background .15s, color .15s; }
.nav a span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cnt { font: 700 .7rem/1 var(--body); font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--azure); color: #fff; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; }
.av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 700 .78rem/1 var(--head); letter-spacing: .02em; }
.me-t { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.me-t b, .me-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-t b { font-size: .88rem; font-weight: 600; }
.me-t small { font-size: .76rem; }
.me-out { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; transition: background .15s, color .15s; }

@media (min-width: 960px) {
  .has-nav .side { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--side); padding: 22px 14px 14px; z-index: 30;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #b9c4dc; }
  .side .brand { padding: 0 10px 26px; }
  .side .tag { background: rgba(255,255,255,.08); color: #9fb0d2; }
  .side .nav { flex: 1; align-content: start; overflow-y: auto; }
  .side .nav a { color: #aebad4; }
  .side .nav a .ico { opacity: .85; }
  .side .nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .side .nav a.on { background: rgba(63,127,245,.2); color: #fff; font-weight: 600; }
  .side .nav a.on::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
  .side .nav a.on .ico { opacity: 1; color: #8fb3ff; }
  .side .me { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
  .side .me-t b { color: #fff; } .side .me-t small { color: #8c9abb; }
  .side .me-out { color: #8c9abb; } .side .me-out:hover { background: rgba(255,255,255,.08); color: #fff; }
  .has-nav .shell { margin-left: var(--side); }
  .has-nav .topbar, .tabbar, .sheet, .sheet-bg { display: none !important; }
}

/* ---------- Top bar + tab bar + sheet (phones and tablets) ---------- */
.topbar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 62px; padding: 0 18px; padding-top: env(safe-area-inset-top); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.topbar.plain { justify-content: center; background: transparent; border-bottom: 0; position: static; padding-top: 18px; }
.av-btn { border: 0; background: none; padding: 4px; margin-right: -4px; cursor: pointer; border-radius: 50%; min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(13,20,36,.25); }
.tabbar a, .tabbar button { position: relative; flex: 1; min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: none; border-radius: 12px; color: var(--ink-3); font: 600 .68rem/1 var(--body); text-decoration: none !important; cursor: pointer; padding: 0 2px; }
.tabbar a span, .tabbar button span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabbar .ico { width: 22px; height: 22px; }
.tabbar .on { color: var(--azure); }
.tabbar .on::before { content: ""; position: absolute; top: -6px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad); }
.tabbar .cnt { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; font-size: .62rem; padding: 0 4px; box-shadow: 0 0 0 2px #fff; }
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(11,21,48,.4); opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 86vh; overflow-y: auto; padding: 8px 14px calc(14px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; box-shadow: var(--shadow-lg); transform: translateY(105%); transition: transform .25s ease; }
.sheet-open .sheet { transform: none; }
.sheet-open .sheet-bg { opacity: 1; pointer-events: auto; }
.sheet-open { overflow: hidden; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 6px 12px; }
.sheet-h::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
.sheet-h b { font: 700 1.05rem var(--head); }
.sheet-h button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--soft-2); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.sheet .nav a { color: var(--ink-2); min-height: 50px; font-size: 1rem; }
.sheet .nav a .ico { color: var(--ink-3); }
.sheet .nav a:hover { background: var(--soft); }
.sheet .nav a.on { background: #eef4ff; color: var(--azure-ink); font-weight: 600; }
.sheet .nav a.on .ico { color: var(--azure); }
.sheet .me { margin-top: 10px; background: var(--soft); border: 1px solid var(--line); }
.sheet .me-t b { color: var(--ink); } .sheet .me-t small { color: var(--ink-3); }
.sheet .me-out { color: var(--ink-2); background: #fff; border: 1px solid var(--line); }
@media (max-width: 959px) { .has-nav .shell { padding-bottom: calc(70px + env(safe-area-inset-bottom)); } }

/* Legacy top bar names (kept for safety) */
.bar, .navbtn { display: none; }

/* ---------- Page layout ---------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 34px 36px 56px; }
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 20px; flex-wrap: wrap; margin-bottom: 26px; }
.hello h1 { margin-bottom: 0; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; margin: -8px 0 10px -6px; padding: 0 10px 0 4px; border-radius: 10px; color: var(--ink-3); font-weight: 600; font-size: .86rem; text-decoration: none !important; }
.back .ico { width: 18px; height: 18px; }
.back:hover { color: var(--azure-ink); background: var(--soft-2); }
.hello p { margin: 6px 0 0; max-width: 62ch; }
.hello > .btn, .hello > form, .hello > .seg { flex: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .7rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--azure); margin-bottom: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--azure); box-shadow: 0 0 0 3px rgba(63,127,245,.15); }
.dot.warn { background: #e0a020; box-shadow: 0 0 0 3px rgba(224,160,32,.18); }
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.wide-left { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-bottom: 18px; color: inherit; text-decoration: none !important; box-shadow: var(--shadow); }
.grid > .card, .grid > div > .card:last-child { margin-bottom: 0; }
.grid > div { display: grid; gap: 18px; align-content: start; }
a.card { transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { border-color: #bcd0fb; transform: translateY(-2px); box-shadow: 0 1px 2px rgba(13,20,36,.04), 0 14px 28px -18px rgba(63,127,245,.45); }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; }
.card-h h2 { margin: 0; }
.card > h2:first-child { margin-bottom: 14px; }
.k { font: 600 .7rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.v { font: 700 1.1rem/1.25 var(--head); margin-bottom: 4px; color: var(--ink); }
.v.big { font-size: 1.9rem; letter-spacing: -.03em; font-weight: 800; }
.v small { font: 500 .88rem var(--body); color: var(--ink-3); }
.stat { position: relative; overflow: hidden; padding: 20px 22px; }
.stat::after { content: ""; position: absolute; right: -36px; top: -36px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(63,127,245,.10), transparent 70%); pointer-events: none; }
.stat .k { margin-bottom: 10px; }
.stat .v.big { color: var(--ink); margin-bottom: 2px; }
.link { font-weight: 600; font-size: .94rem; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none !important; }
.row:first-of-type { border-top: 0; }
a.row { margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 12px; }
a.row:hover { background: var(--soft); }
a.row + a.row, .row + a.row, a.row + .row { border-top-color: transparent; box-shadow: 0 -1px 0 var(--line); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 7px; background: #e7f7ef; color: var(--green); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }

/* ---------- Buttons + forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 0; cursor: pointer; font: 600 .94rem/1 var(--body); color: #fff; background: var(--grad); box-shadow: 0 10px 22px -12px rgba(63,127,245,.7); text-decoration: none !important; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(63,127,245,.75); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px #b9cdfa, var(--shadow-sm); color: var(--azure-ink); }
.btn.danger { background: var(--red); box-shadow: 0 10px 22px -12px rgba(217,58,58,.7); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: .86rem; border-radius: 10px; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.stack { display: grid; gap: 16px; }
.stack.two { grid-template-columns: 1fr 1fr; }
.stack .full, .stack.two .inline.full { grid-column: 1 / -1; }
label { display: grid; gap: 7px; font-weight: 600; font-size: .86rem; color: var(--ink); }
label .muted { font-weight: 400; }
label.inline { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink-2); font-size: .9rem; cursor: pointer; }
label.inline input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--azure); flex: none; box-shadow: none; }
input, select, textarea { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 400 .97rem/1.4 var(--body); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #9aa3b5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; cursor: pointer; }
textarea { resize: vertical; min-height: 96px; }
input:hover, select:hover, textarea:hover { border-color: #c4cddd; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 4px rgba(63,127,245,.14); }
input:disabled { background: var(--soft); color: var(--ink-3); box-shadow: none; }
input.code { font: 700 1.6rem/1 var(--head); letter-spacing: .4em; text-align: center; min-height: 60px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.filters input { flex: 1; min-width: 200px; }
.filters select { width: auto; min-width: 180px; }
form.mini { display: inline; }
form.mini select { width: auto; min-height: 36px; padding: 4px 32px 4px 11px; font-size: .85rem; border-radius: 10px; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 13px; background: var(--soft-2); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a { flex: none; padding: 8px 14px; border-radius: 10px; color: var(--ink-2); text-decoration: none !important; font-weight: 500; font-size: .89rem; white-space: nowrap; transition: background .15s, color .15s; }
.seg a:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.seg a.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(13,20,36,.08), 0 2px 8px -4px rgba(13,20,36,.15); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 .74rem/1.2 var(--body); white-space: nowrap; background: var(--soft-2); color: var(--ink-2); }
.badge[class*="b-"]::before, .badge[class*="p-"]::before, .badge[class*="r-"]::before, .badge[class*="l-"]::before, .badge[class*="k-"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.b-active, .p-paid, .r-done, .l-won, .l-ready, .l-final, .l-live { background: #e6f6ee; color: #11704a; }
.b-pending, .r-in_progress, .p-pending, .l-contacted, .k-preview, .l-sent { background: #eaf1ff; color: #2f62c9; }
.b-past_due, .b-suspended, .p-failed, .l-lost, .l-spam { background: #fdecec; color: #b32b2b; }
.b-canceling, .r-open, .l-new, .k-order { background: #fff4dc; color: #8a5a00; }
.b-canceled, .p-refunded { background: var(--soft-2); color: var(--ink-3); }
.k-contact, .l-building, .l-paid { background: #f0ebff; color: #5b3fc4; }
.l-won { background: #fff4dc; color: #8a5a00; }

/* ---------- Alerts + flash ---------- */
.flash, .alert { position: relative; padding: 14px 16px 14px 46px; border-radius: 14px; margin-bottom: 18px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); line-height: 1.55; }
.flash::before, .alert::before { content: "i"; position: absolute; left: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 .78rem/1 var(--head); background: var(--soft-2); color: var(--ink-2); }
.flash.ok { border-color: #bfe8d3; background: #eefaf4; color: #11633f; }
.flash.ok::before { content: "✓"; background: #d2f1e1; color: #11704a; }
.flash.err, .alert.err { border-color: #f4c6c6; background: #fdf1f1; color: #8f2424; }
.flash.err::before, .alert.err::before { content: "!"; background: #f9d9d9; color: #b32b2b; }
.alert.warn { border-color: #f1dca6; background: #fff8e8; color: #7a4d00; }
.alert.warn::before { content: "!"; background: #fbe8b8; color: #8a5a00; }
.alert.info { border-color: #cfdcfb; background: #f2f6ff; color: #29498f; }
.alert.info::before { background: #dbe6fd; color: #2f62c9; }
.alert.small { padding-left: 16px; } .alert.small::before { display: none; }
.alert a { color: inherit; font-weight: 700; text-decoration: underline; }
.alert form { display: inline; }

/* ---------- Tables ---------- */
.table { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
.card > .table:only-child { margin-top: -6px; margin-bottom: -8px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .93rem; }
th { text-align: left; font: 600 .7rem/1 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); padding: 12px 12px; background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child { border-radius: 10px 0 0 10px; } th:last-child { border-radius: 0 10px 10px 0; }
thead th { border-bottom: 0; }
td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f8faff; }
tr.click td:first-child { border-radius: 10px 0 0 10px; } tr.click td:last-child { border-radius: 0 10px 10px 0; }

/* ---------- Requests / messages ---------- */
details.req { border-top: 1px solid var(--line); }
details.req:first-of-type { border-top: 0; }
details.req summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; min-height: 44px; }
details.req summary::-webkit-details-marker { display: none; }
details.req summary:hover b { color: var(--azure-ink); }
.req-body { padding: 0 0 16px; color: var(--ink-2); }
.reply { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: #f2f6ff; border: 1px solid #cfdcfb; color: var(--ink-2); }
.req-card .card-h { align-items: flex-start; }
.req-card > p { color: var(--ink-2); background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
pre.msg { white-space: pre-wrap; font: 400 .88rem/1.55 var(--body); color: var(--ink-2); background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 10px 0; max-height: 420px; overflow: auto; }
.copy { margin-top: 14px; }
.copy .k { margin-bottom: 6px; }
.copy code { display: block; padding: 10px 12px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); font-size: .82rem; color: var(--ink-2); word-break: break-all; user-select: all; }
details > summary.small { cursor: pointer; color: var(--ink-3); margin-top: 8px; }

/* ---------- Sign-in ---------- */
.auth { display: grid; place-items: center; min-height: calc(100vh - 160px); padding: 10px 0 30px; }
.auth-wrap { width: 100%; max-width: 940px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.auth-art { position: relative; overflow: hidden; padding: 44px 40px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; background: linear-gradient(160deg, #0b1530 0%, #14275a 100%); color: #b9c4dc; }
.auth-art::before { content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(63,127,245,.45), transparent 65%); }
.auth-art::after { content: ""; position: absolute; left: -120px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,240,.35), transparent 65%); }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .logo-mark { position: absolute; top: 40px; left: 40px; height: 24px; }
.auth-art h2 { color: #fff; font-size: 1.7rem; letter-spacing: -.03em; font-weight: 800; margin-bottom: 10px; }
.auth-art p { margin-bottom: 22px; }
.auth-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.auth-ticks li { position: relative; padding-left: 30px; color: #d6deee; font-size: .93rem; }
.auth-ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: #8ff0c4; background: rgba(34,179,122,.18); }
.auth-card { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.auth-card h1 { font-size: 1.75rem; }
.auth-card .btn { width: 100%; min-height: 50px; }
.auth-foot { margin: 18px 0 0; }
.no-nav .shell { min-height: 0; }
.no-nav .main { padding-top: 10px; }

/* ---------- Cancel ---------- */
.narrow { max-width: 720px; margin: 0 auto; }
.danger-card { border-color: #f4c6c6; }
.warnlist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.warnlist li { position: relative; padding: 13px 16px 13px 46px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); }
.warnlist li::before { content: "!"; position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem/1 var(--body); background: #fff4dc; color: #8a5a00; }
.warnlist li b { color: var(--ink); }
label.confirm { padding: 14px 16px; border-radius: 12px; border: 1px solid #f4c6c6; background: #fdf1f1; color: #8f2424; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-width: 1200px; width: 100%; margin: 0 auto; padding: 20px 36px 26px; color: var(--ink-3); font-size: .82rem; }
.foot a { color: var(--ink-2); }

/* ---------- Dashboard: needs attention ---------- */
.todo { display: flex; align-items: center; gap: 14px; padding: 12px; margin: 0 -12px; border-radius: 12px; color: inherit; text-decoration: none !important; transition: background .15s; }
.todo + .todo { box-shadow: 0 -1px 0 var(--line); }
.todo:hover { background: var(--soft); }
.todo:hover + .todo { box-shadow: none; }
.todo .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--soft-2); color: var(--ink-2); }
.todo .ic .ico { width: 19px; height: 19px; }
.todo .ic.go { background: #e6f6ee; color: #11704a; } .todo .ic.warn { background: #fff4dc; color: #8a5a00; } .todo .ic.bad { background: #fdecec; color: #b32b2b; } .todo .ic.new { background: #eaf1ff; color: var(--azure-ink); }
.todo .tx { flex: 1; min-width: 0; }
.todo .tx b { display: block; color: var(--ink); font-weight: 600; }
.todo .tx span { display: block; font-size: .85rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo .go-arrow { color: #b3bccd; transition: transform .15s, color .15s; }
.todo:hover .go-arrow { color: var(--azure); transform: translateX(2px); }
.todo .go-arrow .ico { width: 18px; height: 18px; }
.empty { padding: 26px 18px; text-align: center; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; font-family: var(--head); }

/* ---------- Website requests ---------- */
.pipe { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.pipe-s { position: relative; padding: 14px 14px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pipe-s b { display: block; font: 800 1.45rem/1.1 var(--head); color: var(--ink); letter-spacing: -.02em; }
.pipe-s span { display: block; margin-top: 4px; font-size: .76rem; line-height: 1.3; color: var(--ink-3); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.facts span { font-size: .8rem; padding: 4px 10px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); }
.t-link { color: var(--ink); text-decoration: none !important; }
.t-link:hover { color: var(--azure); }
/* Slim stepper */
.track { display: flex; gap: 0; margin: 0 0 22px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow-x: auto; }
.track button { position: relative; flex: 1; min-width: 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px 4px; border: 0; background: none; color: var(--ink-3); font: 500 .74rem/1.2 var(--body); cursor: pointer; text-align: center; }
.track button::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.track button:first-of-type::before { display: none; }
.track button i { position: relative; z-index: 1; font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); font-size: .72rem; font-weight: 700; color: var(--ink-3); transition: border-color .15s, color .15s; }
.track button:hover i { border-color: var(--azure); color: var(--azure); }
.track button.done { color: var(--ink-2); }
.track button.done::before, .track button.on::before { background: var(--green); }
.track button.done i { background: var(--green); border-color: var(--green); color: #fff; }
.track button.on { color: var(--ink); font-weight: 700; }
.track button.on i { background: var(--azure); border-color: var(--azure); color: #fff; box-shadow: 0 0 0 4px rgba(63,127,245,.15); }
.qa-r { display: grid; grid-template-columns: 180px 1fr; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.card h2 + .qa-r { border-top: 0; }
.qa-r .k { margin: 0; padding-top: 3px; }
.qa-r div { white-space: pre-wrap; color: var(--ink); }
.qa-r .na { color: var(--ink-3); }
.selectable { user-select: all; }
.send-box { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.send-box h3 { margin: 0; }
.mail-prev { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #eef1f6; }
.mail-prev .k { margin: 0; padding: 10px 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
.mail-prev iframe { display: block; width: 100%; height: 620px; border: 0; background: #eef1f6; }
.spam-box { border-color: #f4c6c6; background: #fffafa; }
.pay-box { border-color: #f1dca6; background: #fffcf3; }
.final-box { border-color: #bfe8d3; background: #f8fdfa; }
.card.claimed { border-color: #bfe8d3; }
/* "What happens next" box on a website request */
.next { border-color: #cfdcfb; background: linear-gradient(180deg, #f7faff, #fff); }
.next-h { display: flex; gap: 16px; align-items: flex-start; }
.next-ic { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: #eaf1ff; color: var(--azure-ink); }
.next-ic .ico { width: 22px; height: 22px; }
.next h2 { margin: 2px 0 6px; font-size: 1.08rem; }
.next p { margin: 0 0 12px; max-width: 70ch; }
.next p:last-child { margin-bottom: 0; }
.next.pay-box { background: linear-gradient(180deg, #fffaf0, #fff); border-color: #f1dca6; }
.next.pay-box .next-ic { background: #fff4dc; color: #8a5a00; }
.next.final-box { background: linear-gradient(180deg, #f3fcf7, #fff); border-color: #bfe8d3; }
.next.final-box .next-ic { background: #e6f6ee; color: #11704a; }
.close-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; width: 100%; margin-bottom: 4px; }
.close-form label { flex: 1; min-width: 220px; }
.head-actions { margin: 0; }
.head-actions .btn .ico, .hello .btn .ico { width: 17px; height: 17px; }
details.more summary { cursor: pointer; color: var(--ink-3); margin-top: 12px; }
@media (max-width: 640px) { .next-h { flex-direction: column; gap: 10px; } .close-form .btn { width: 100%; } .head-actions { width: 100%; } }
.cancel-box { padding: 14px 16px; border-radius: 12px; border: 1px solid #f4c6c6; background: #fffafa; }
.cancel-box .k { color: #b32b2b; margin-bottom: 10px; }
.site-off { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid #f4c6c6; background: #fdf1f1; }
.site-off .k { margin-bottom: 2px; }
.site-off b { color: #8f2424; font-size: .93rem; }
.site-off.is-off { border-color: var(--line); background: var(--soft); }
.site-off.is-off b { color: var(--ink-2); }
.closeout h2 { display: flex; align-items: center; gap: 9px; }
.closeout h2 .ico { width: 22px; height: 22px; color: var(--green); }
.closeout.pay-box h2 .ico { color: var(--amber); }
.closeout p b { color: var(--ink); }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.card .files { margin: 6px 0 12px; }
.file { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.file img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.file:hover img { transform: scale(1.04); }
.file.logo { grid-column: span 2; aspect-ratio: auto; background: #fff; }
.file.logo img { object-fit: contain; padding: 14px; height: 104px; }
.file.logo span { position: absolute; left: 8px; bottom: 6px; font-size: .7rem; font-weight: 700; color: var(--ink-3); }
.fb-box { margin: 4px 0 12px; padding: 4px 16px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); }
.fb-box > .k { margin: 10px 0 0; }
details.tech { padding: 0; }
details.tech > summary { list-style: none; cursor: pointer; padding: 16px 24px; min-height: 52px; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; }
details.tech > summary::-webkit-details-marker { display: none; }
details.tech > summary::after { content: "Show"; font-weight: 600; color: var(--azure); font-size: .86rem; }
details.tech[open] > summary::after { content: "Hide"; }
details.tech > .tech-in { padding: 0 24px 20px; }
details.card > summary { min-height: 24px; }

/* ---------- Client portal ---------- */
.welcome { position: relative; overflow: hidden; padding: 32px; border-radius: 22px; background: linear-gradient(135deg, #0b1530 0%, #14275a 100%); color: #d6deee; margin-bottom: 18px; box-shadow: 0 20px 40px -28px rgba(11,21,48,.6); }
.welcome::after { content: ""; position: absolute; right: -120px; top: -160px; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(63,127,245,.4), transparent 65%); pointer-events: none; }
.welcome::before { content: ""; position: absolute; left: 30%; bottom: -220px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,240,.22), transparent 65%); pointer-events: none; }
.welcome > * { position: relative; z-index: 1; }
.welcome .eyebrow { color: #8fb3ff; }
.welcome h1 { color: #fff; margin-bottom: 6px; }
.welcome p { color: #b9c4dc; margin: 0; }
.welcome .wl-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.welcome .btn.ghost { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.welcome .btn.ghost:hover { background: rgba(255,255,255,.16); }
.steps { display: flex; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.steps div { position: relative; flex: 1; text-align: center; font-size: .8rem; color: #8f9cb8; }
.steps div::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: rgba(255,255,255,.15); }
.steps div:first-child::before { display: none; }
.steps i { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 8px; border-radius: 50%; background: var(--navy); border: 2px solid rgba(255,255,255,.25); font-style: normal; font-weight: 700; font-size: .75rem; color: #8f9cb8; }
.steps .done i { background: #22b37a; border-color: #22b37a; color: #fff; }
.steps .done::before, .steps .on::before { background: #22b37a; }
.steps .on i { background: var(--azure); border-color: var(--azure); color: #fff; box-shadow: 0 0 0 4px rgba(63,127,245,.3); }
.steps .on { color: #fff; font-weight: 600; }
.steps .done { color: #c8d3ea; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: inherit; text-decoration: none !important; transition: border-color .15s, transform .15s, box-shadow .15s; cursor: pointer; font: inherit; text-align: left; width: 100%; }
.tile:hover { border-color: #bcd0fb; transform: translateY(-2px); box-shadow: 0 1px 2px rgba(13,20,36,.04), 0 14px 28px -18px rgba(63,127,245,.45); }
.tile .ti { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #eaf6ff, #efeaff); color: var(--azure); margin-bottom: 10px; }
.tile .ti svg { width: 21px; height: 21px; }
.tile b { font-family: var(--head); color: var(--ink); font-size: .98rem; }
.tile span { font-size: .84rem; color: var(--ink-3); }
form.tilef { margin: 0; display: flex; }
.tile b .ext, .ext { font-style: normal; color: var(--ink-3); font-weight: 500; }
.site-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.sc-l { display: flex; align-items: center; gap: 16px; min-width: 0; }
.sc-ic { flex: none; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 22px -12px rgba(63,127,245,.8); }
.sc-ic svg { width: 24px; height: 24px; }
.site-card .k { margin-bottom: 2px; }
.site-card .v { font-size: 1.15rem; margin-bottom: 6px; word-break: break-all; }
.sc-st { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-amt { display: flex; align-items: baseline; gap: 4px; margin: 6px 0 0; }
.plan-amt b { font: 800 2.1rem/1 var(--head); letter-spacing: -.03em; color: var(--ink); }
.plan-amt span { color: var(--ink-3); font-weight: 500; }
.card-h a { font-weight: 600; font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .pipe { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .g4, .tiles { grid-template-columns: 1fr 1fr; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .g2, .wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 959px) {
  .main { padding: 24px 22px 40px; }
  .foot { padding: 18px 22px 22px; }
  .auth-wrap { grid-template-columns: 1fr; max-width: 460px; }
  .auth-art { display: none; }
}
@media (max-width: 640px) {
  body { font-size: .94rem; }
  .main { padding: 20px 16px 32px; }
  .foot { padding: 16px; flex-direction: column; align-items: center; text-align: center; }
  .hello { margin-bottom: 20px; }
  .hello > .btn, .hello > form, .hello > form .btn { width: 100%; }
  .g4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .g4 .stat { padding: 16px; }
  .g4 .stat .k { min-height: 2.4em; font-size: .64rem; letter-spacing: .08em; margin-bottom: 6px; }
  .g4 .v.big { font-size: 1.45rem; }
  .g3, .stack.two { grid-template-columns: 1fr; }
  .card { padding: 18px; border-radius: 15px; }
  .table { margin: 0 -18px; padding: 0 18px; }
  .tag { font-size: .58rem; }
  .btns { flex-direction: column-reverse; }
  .btns .btn { width: 100%; }
  th:nth-child(n+4), td:nth-child(n+4) { display: none; }
  .auth { min-height: 0; padding-top: 0; }
  .auth-wrap { border-radius: 22px; }
  .auth-card { padding: 30px 22px; }
  .qa-r { grid-template-columns: 1fr; gap: 4px; }
  .welcome { padding: 24px 20px; border-radius: 20px; }
  .steps div { font-size: .68rem; }
  .pipe { display: flex; overflow-x: auto; margin: 0 -16px 18px; padding: 2px 16px 6px; scrollbar-width: none; }
  .pipe::-webkit-scrollbar { display: none; }
  .pipe-s { flex: none; min-width: 112px; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters .seg { align-self: flex-start; }
  .filters select, .filters input { width: 100%; min-width: 0; }
  .site-card .btnrow { width: 100%; }
  .site-card .btnrow .btn { flex: 1; }
  .tiles { gap: 10px; }
  .tile { padding: 15px; }
  .tile span { font-size: .8rem; }
  .todo { gap: 12px; }
}

/* ---------- Lead Engine (Prospects) ---------- */
.k-hot { background: #fdecec; color: #b32b2b; }
.k-good { background: #eaf1ff; color: #2f62c9; }
.k-skip { background: var(--soft-2); color: var(--ink-3); }
.k-check { background: #fff4dc; color: #8a5a00; }
.k-supp { background: #fdecec; color: #8f2424; }
a.pipe-s { color: inherit; text-decoration: none !important; transition: border-color .15s; }
a.pipe-s:hover { border-color: #bcd0fb; }
.le-form { display: grid; grid-template-columns: 1.2fr 1.2fr .9fr .6fr 1.2fr auto; gap: 12px; align-items: end; }
.le-est { margin: 12px 0 0; }
.le-why { margin-top: 4px; white-space: nowrap; }
.le-gap { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.le-table td, .le-stable td { vertical-align: top; }
.le-table td:first-child { min-width: 210px; }
.le-table td:nth-child(2) { min-width: 130px; }
.le-table td:nth-child(3), .le-table td:nth-child(5), .le-nowrap { white-space: nowrap; }
.le-table td:nth-child(6) { min-width: 180px; }
.le-stable td:first-child { min-width: 220px; }
.le-stable th { padding-left: 8px; padding-right: 8px; }
.le-stable td { padding-left: 8px; padding-right: 8px; }
.le-stable td:nth-child(n+3), .le-stable th:nth-child(n+3) { text-align: center; }
@media (max-width: 960px) { .le-form { grid-template-columns: 1fr 1fr; } .le-form .btn { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .le-table th, .le-table td { display: none; }
  .le-table td:first-child, .le-stable td:first-child { min-width: 0; }
  .le-nowrap, .le-why { white-space: normal; }
  .le-table th:nth-child(1), .le-table td:nth-child(1), .le-table th:nth-child(4), .le-table td:nth-child(4), .le-table th:last-child, .le-table td:last-child { display: table-cell; }
  .le-stable th, .le-stable td { display: none; }
  .le-stable th:nth-child(1), .le-stable td:nth-child(1), .le-stable th:nth-child(2), .le-stable td:nth-child(2), .le-stable th:nth-child(4), .le-stable td:nth-child(4), .le-stable th:nth-child(11), .le-stable td:nth-child(11) { display: table-cell; }
}

/* ---------- Lead Engine Phase 2 (website check) ---------- */
.le-break { overflow-wrap: anywhere; }
.le-p2row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 14px; font-size: .9rem; color: var(--ink-2); }
.le-p2row b { color: var(--ink); font-family: var(--head); }
.le-cand { padding: 12px 0; border-top: 1px solid var(--line); }
.le-cand:first-of-type { border-top: 0; padding-top: 0; }
.le-cand .card-h { margin-bottom: 4px; align-items: flex-start; }
.le-ev { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; font-size: .86rem; }
.le-ev li.ok { color: #11704a; }
.le-ev li.no { color: var(--ink-3); }
.le-shots { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin: 14px 0 6px; align-items: start; }
.le-shots figure { margin: 0; }
.le-shots img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.le-shots figcaption { margin-top: 6px; color: var(--ink-3); }
.le-noshot { padding: 30px 10px; text-align: center; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--ink-3); font-size: .85rem; }
.le-sig .qa-r { grid-template-columns: 240px 1fr; padding: 7px 0; }
@media (max-width: 640px) { .le-shots { grid-template-columns: 1fr; } .le-sig .qa-r { grid-template-columns: 1fr; } }

/* Lead Engine: Customer Zone (Stage 1) */
.lz-form h3 { margin: 18px 0 10px; font-size: 1rem; }
.lz-group { margin-bottom: 14px; }
.lz-gh { margin-bottom: 8px; }
.lz-inds { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.lz-ind { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); cursor: pointer; font-weight: 500; }
.lz-ind input, .lz-preset input, label.chk input { width: 18px; height: 18px; min-height: 0; flex: none; margin: 0; }
.lz-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-bottom: 8px; }
.lz-preset { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.lz-preset > span { display: flex; flex-direction: column; gap: 2px; }
label.chk { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; }
.lz-adv { margin: 12px 0; }
.lz-adv summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.lz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 8px 0; }
.lz-save { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.lz-save input { flex: 1; }
.lz-test { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
.lz-test .wide { grid-column: span 3; }
.lz-dec { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.lz-dec .qa-r { grid-template-columns: 160px 1fr; }
.lz-act { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 10px; margin-bottom: 8px; background: var(--soft-2); }
.lz-act.lz-process_first, .lz-act.lz-process { background: rgba(22,163,106,.1); color: var(--green); }
.lz-act.lz-stop { background: rgba(217,58,58,.08); color: var(--red); }
.lz-act.lz-later, .lz-act.lz-hold { background: rgba(183,121,31,.1); color: var(--amber); }
.lz-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lz-chip { font-size: .78rem; padding: 3px 8px; border-radius: 999px; background: var(--soft-2); }
.lz-rules li { margin-bottom: 8px; }
@media (max-width: 640px) { .lz-test { grid-template-columns: 1fr 1fr; } .lz-test .wide { grid-column: span 2; } .lz-dec .qa-r { grid-template-columns: 1fr; } .lz-save { flex-direction: column; } .lz-inds { grid-template-columns: 1fr 1fr; } }
.le-acts { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
@media (max-width: 640px) { .le-acts { width: 100%; } .le-acts .btn { flex: 1; } }

/* Lead Engine: Discovery + Inventory (Stage 2) */
.ld-camp { padding: 12px 0; border-top: 1px solid var(--line); }
.ld-camp:first-of-type { border-top: 0; }
.ld-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ld-new { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; margin-top: 8px; }
.ld-new .wide { grid-column: 1 / -1; }
.ld-resolve { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ld-resolve input { flex: 1; min-width: 200px; }
.ld-vb { font-size: .7rem; margin-left: 4px; vertical-align: middle; }
.lz-ind span .ld-vb { display: inline-block; }
@media (max-width: 640px) { .ld-new { grid-template-columns: 1fr 1fr; } }

.lc-reach { white-space: normal; min-width: 120px; }
.lc-reach .lc-ch { margin: 1px 2px 1px 0; }
.lp-status { display: flex; gap: 8px; flex-wrap: wrap; }
.lp-status select { width: auto; }
.lp-status input { flex: 1; min-width: 160px; }
