/* ════════════════════════════════════════════════════════════
   Ascent CRM v2 — light, CFT-style layout (dark sidebar, white workspace).
   Loaded after styles.css: re-maps the theme colors so every existing
   screen (lead page, calendar, settings…) turns light too.
   ════════════════════════════════════════════════════════════ */
:root {
  --bg: #f4f5f7; --side: #23272e; --card: #ffffff; --card-2: #f8f9fb; --hover: #f1f3f6;
  --line: #e4e7ec; --line-2: #d6dae1; --text: #1f2430; --muted: #5d6675; --dim: #8b93a1;
  --accent: #16a34a; --accent-ink: #ffffff; --eyebrow: #16a34a; --green: #16a34a; --amber: #b7791f; --red: #dc2626;
  --brand: #16a34a; --brand-soft: #e9f7ee; --radius: 8px; --radius-sm: 6px;
  --head: 'Inter', system-ui, sans-serif;
}
html, body { background: var(--bg); color: var(--text); font-size: 13.5px; }
::selection { background: #16a34a33; }
a { color: var(--brand); }

/* ── Shell ── */
.v2 { display: grid; grid-template-columns: 210px 1fr; min-height: 100vh; }
.v2-side { background: var(--side); color: #c9ced6; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 14px 10px 10px; scrollbar-width: thin; }
.v2-logo { display: grid; place-items: center; padding: 6px 0 14px; border-bottom: 1px solid #343a44; margin-bottom: 12px; }
.v2-logo svg { width: 30px; height: 30px; }
.v2-msearch { display: flex; align-items: center; gap: 6px; border: 1px solid #5a616d; border-radius: 4px; padding: 5px 8px; margin: 0 0 12px; }
.v2-msearch svg { width: 14px; height: 14px; color: #c9ced6; flex: none; }
.v2-msearch input { background: none; border: 0; outline: 0; color: #fff; width: 100%; font-size: 12.5px; }
.v2-msearch input::placeholder { color: #c9ced6; }
.v2-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: #c9ced6; text-transform: uppercase; padding: 10px 6px 6px; }
.v2-link, .v2-mhead { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; color: #e3e6ea; font-size: 12.5px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; font-family: inherit; }
.v2-link svg, .v2-mhead svg { width: 14px; height: 14px; flex: none; }
.v2-link:hover, .v2-mhead:hover { background: #2f343d; color: #fff; }
.v2-link.active { background: var(--brand); color: #fff; }
.v2-mhead .lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-mhead .chev { transition: transform .15s; opacity: .8; }
.v2-menu.open > .v2-mhead { background: #343a44; color: #fff; }
.v2-menu.open > .v2-mhead .chev { transform: rotate(180deg); }
.v2-sub { display: none; background: #343a44; border-radius: 0 0 4px 4px; padding: 2px 0 4px; margin-bottom: 2px; }
.v2-menu.open .v2-sub { display: block; }
.v2-sub .v2-link { padding-left: 14px; }
.v2-sub .v2-empty { color: #9aa1ad; font-size: 12px; padding: 4px 14px 6px; }
.v2-sep { border-top: 1px solid #343a44; margin: 10px 0 4px; }
.v2-hidden { display: none !important; }

.v2-main { display: flex; flex-direction: column; min-width: 0; }
.v2-top { height: 52px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 18px; position: sticky; top: 0; z-index: 20; }
.v2-top .back { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; color: var(--text); }
.v2-top .back svg { width: 16px; height: 16px; }
.v2-top .sp { flex: 1; }
.v2-ico { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--text); position: relative; border-radius: 6px; }
.v2-ico:hover { background: var(--hover); }
.v2-ico svg { width: 19px; height: 19px; }
.v2-ico .badge { position: absolute; top: 3px; right: 3px; background: var(--brand); color: #fff; font-size: 9px; min-width: 14px; height: 14px; border-radius: 7px; display: grid; place-items: center; padding: 0 3px; }
.v2-user { display: flex; align-items: center; gap: 8px; padding: 0 0 0 14px; border-left: 1px solid var(--line); margin-left: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; position: relative; }
.v2-user svg { width: 20px; height: 20px; }
.v2-umenu { position: absolute; right: 0; top: 40px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px #0002; min-width: 190px; padding: 6px; display: none; }
.v2-user.open .v2-umenu { display: block; }
.v2-umenu button, .v2-umenu a { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 6px; color: var(--text); font-weight: 500; cursor: pointer; font-size: 13px; }
.v2-umenu button:hover, .v2-umenu a:hover { background: var(--hover); }
.v2-umenu .who { padding: 6px 10px 8px; color: var(--muted); font-weight: 400; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 12px; }
.v2-view { padding: 22px 22px 80px; flex: 1; }
#view .empty { color: var(--muted); }

/* ── Bottom open-lead tabs ── */
.v2-tabs { position: fixed; left: 210px; right: 0; bottom: 0; height: 44px; background: #fff; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 12px; z-index: 30; }
.v2-tabs .arrow { border: 0; background: none; color: var(--brand); cursor: pointer; font-size: 18px; padding: 0 6px; }
.v2-tabs .strip { display: flex; gap: 8px; overflow: hidden; flex: 1; }
.v2-tab { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 4px; padding: 5px 8px; font-size: 12.5px; white-space: nowrap; background: #fff; }
.v2-tab .nm { max-width: 110px; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.v2-tab button, .v2-tab a.i { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); display: inline-flex; }
.v2-tab svg { width: 14px; height: 14px; }
.v2-tabs .plus { width: 30px; height: 30px; border-radius: 4px; background: var(--brand); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; }
.v2-tabs .plus svg { width: 16px; height: 16px; }

/* ── Page bits ── */
.v2-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.v2-h1 { font: 700 26px var(--body); letter-spacing: -.01em; margin: 0; position: relative; padding-bottom: 6px; }
.v2-h1::after { content: ''; position: absolute; left: 0; bottom: 0; width: 26px; height: 3px; border-radius: 2px; background: var(--brand); }
.v2-actions { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.v2-fld { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.v2-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--brand); background: var(--brand); color: #fff; border-radius: 4px; padding: 6px 12px; font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.v2-btn svg { width: 14px; height: 14px; }
.v2-btn.ghost { background: #fff; color: var(--brand); }
.v2-btn:disabled { opacity: .5; cursor: default; }
.v2-in, .v2-sel { border: 1px solid var(--line-2); border-radius: 4px; background: #fff; padding: 6px 9px; font-size: 12.5px; color: var(--text); min-width: 0; height: 32px; }
.v2-in:focus, .v2-sel:focus { outline: 2px solid #16a34a33; border-color: var(--brand); }
.v2-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px #0000000a; }
.v2-tabbar { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 12px; }
.v2-tabbar a { padding: 10px 16px; font-weight: 600; font-size: 12.5px; color: var(--text); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.v2-tabbar a.on { color: var(--brand); border-color: var(--brand); }
.v2-saved { display: flex; gap: 0; padding: 12px 14px; margin-bottom: 14px; flex-wrap: wrap; }
.v2-saved > div { padding: 0 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.v2-saved > div:first-child { padding-left: 0; }
.v2-saved > div:last-child { border: 0; }
.v2-saved .lab { font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.v2-filters { padding: 16px; margin-bottom: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 18px; align-items: end; }
.v2-filters .full { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.v2-range { display: flex; align-items: center; gap: 4px; }
.v2-range .v2-in { flex: 1; }
.v2-checks { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--text); font-weight: 600; height: 32px; }
.v2-checks label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; }
.v2-checks input, .v2-ms-panel input, .v2-tbl input[type=checkbox] { accent-color: var(--brand); width: 15px; height: 15px; }

/* multi-select */
.v2-ms { position: relative; }
.v2-ms > button { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.v2-ms > button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-ms > button svg { width: 14px; height: 14px; flex: none; }
.v2-ms-panel { position: absolute; left: 0; right: 0; top: 34px; z-index: 40; background: #fff; border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 8px 24px #0002; max-height: 280px; overflow: auto; padding: 6px; display: none; min-width: 220px; }
.v2-ms.open .v2-ms-panel { display: block; }
.v2-ms-panel label { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 4px; cursor: pointer; font-size: 12.5px; color: var(--text); }
.v2-ms-panel label:hover { background: var(--hover); }
.v2-ms-panel .all { border-bottom: 1px solid var(--line); margin-bottom: 4px; font-weight: 600; }

/* table */
.v2-tbl-wrap { overflow-x: auto; }
.v2-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.v2-tbl th { text-align: left; font-weight: 600; padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--text); background: #fff; position: sticky; top: 0; }
.v2-tbl th.sort { cursor: pointer; }
.v2-tbl th .ar { color: var(--dim); font-weight: 400; margin-left: 3px; }
.v2-tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); }
.v2-tbl tbody tr:hover { background: #fafbfc; }
.v2-tbl tr.click { cursor: pointer; }
.v2-act { display: inline-flex; gap: 10px; }
.v2-act button, .v2-act a { border: 0; background: none; color: var(--brand); cursor: pointer; padding: 0; display: inline-flex; }
.v2-act svg { width: 16px; height: 16px; }
.v2-pill { display: inline-block; padding: 3px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; line-height: 1.35; max-width: 140px; }
.v2-phone { display: inline-flex; align-items: center; gap: 5px; background: var(--brand); color: #fff !important; border-radius: 10px; padding: 1px 8px; font-size: 12px; white-space: nowrap; }
.v2-phone svg { width: 12px; height: 12px; }
.v2-pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.v2-pager button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 4px; }
.v2-pager button.on { background: #fde9c8; background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.v2-pager button:disabled { opacity: .35; cursor: default; }
.v2-banner { background: #dff3e6; border: 1px solid #b8e4c6; border-left: 4px solid var(--brand); border-radius: 6px; padding: 10px 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 12.5px; }
.v2-banner .x { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--muted); }
.v2-stat { padding: 16px 18px; }
.v2-stat b { display: block; font-size: 26px; font-weight: 700; }
.v2-stat span { color: var(--muted); font-size: 12px; }
.v2-grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }

/* Existing screens on the light theme */
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px #0000000a; }
.btn { background: #fff; border: 1px solid var(--line-2); color: var(--text); border-radius: 4px; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.input, select.input, textarea.input { background: #fff; border: 1px solid var(--line-2); color: var(--text); border-radius: 4px; }
.page-head h1 { font-family: var(--body); font-weight: 700; }
.eyebrow { color: var(--brand); }
table th { color: var(--muted); }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.overlay { background: #0f172a66; }
.modal { background: #fff; color: var(--text); border: 1px solid var(--line); }
.toast { background: #1f2430; color: #fff; }
.toast.err { background: #b91c1c; }
.pill.funded { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.pill.pending { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.recent { display: none !important; }
@media (max-width: 860px) { .v2 { grid-template-columns: 1fr; } .v2-side { position: fixed; z-index: 50; width: 230px; transform: translateX(-100%); transition: transform .2s; } .v2-side.open { transform: none; } .v2-tabs { left: 0; } .v2-burger { display: grid !important; } }
.v2-burger { display: none; }

/* Fixes for older screens on the light theme */
tbody tr:hover td { background: #f7f9fb; }
th { background: #fff; color: var(--muted); letter-spacing: .02em; text-transform: none; font-size: 12px; }
.v2-tbl th { text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--text); }
.sc-bubble { bottom: 58px; background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 6px 18px #16a34a55; height: 44px; }
.sc-bubble .sc-ico svg { color: #fff; }
.sc-bubble.active { background: #15803d; border-color: #15803d; }
.sc-panel { bottom: 110px; background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: 0 16px 40px #0003; }
.avatar { background: var(--brand-soft); color: var(--brand); }

/* Script bubble removed (CFT has none) */
.sc-bubble, .sc-panel { display: none !important; }
.v2-tbl .v2-pill { white-space: normal; }
.modal .f .check { display: flex; margin: 4px 0; }

/* Conversations (Sendblue) */
.cv-wrap { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - 210px); min-height: 480px; overflow: hidden; }
.cv-list { border-right: 1px solid var(--line); overflow-y: auto; }
.cv-t { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text); }
.cv-t:hover { background: var(--hover); } .cv-t.on { background: var(--brand-soft); }
.cv-t b { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.cv-prev { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-badge { background: var(--brand); color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 7px; align-self: center; }
.cv-main { display: flex; flex-direction: column; min-width: 0; }
.cv-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); gap: 10px; flex-wrap: wrap; }
.cv-msgs { flex: 1; overflow-y: auto; padding: 16px; background: #f8fafb; }
.cv-b { display: flex; flex-direction: column; margin-bottom: 10px; max-width: 70%; }
.cv-b.out { margin-left: auto; align-items: flex-end; }
.cv-bub { padding: 8px 12px; border-radius: 16px; background: #e9ecef; color: var(--text); white-space: pre-wrap; word-wrap: break-word; font-size: 13.5px; }
.cv-b.out .cv-bub { background: var(--brand); color: #fff; }
.cv-meta { font-size: 10.5px; color: var(--dim); margin-top: 3px; }
.cv-compose { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); align-items: flex-end; }
.cv-compose textarea { flex: 1; height: auto; min-height: 40px; resize: vertical; }
.cv-empty { margin: auto; color: var(--muted); padding: 40px; text-align: center; }
@media (max-width: 860px) { .cv-wrap { grid-template-columns: 1fr; } .cv-list { max-height: 220px; } }

/* ── Lead window (CFT layout) ── */
.lv { padding-bottom: 70px; }
.lv-head { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px 12px; box-shadow: 0 1px 2px #0000000a; }
.lv-top { display: flex; gap: 14px; align-items: flex-start; }
.lv-av { width: 46px; height: 46px; border-radius: 50%; background: #1f2430; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 16px; flex: none; }
.lv-who { flex: 1; min-width: 0; }
.lv-name { display: flex; align-items: center; gap: 10px; }
.lv-name h1 { font-size: 19px; font-weight: 700; margin: 0; color: var(--text); font-family: var(--head); }
.lv-badge { background: var(--brand-soft); color: var(--brand); font-size: 11px; border-radius: 10px; padding: 2px 9px; font-weight: 600; }
.lv-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.lv-meta b { color: var(--text); font-weight: 600; }
.lv-meta i { font-style: normal; color: var(--line-2); margin: 0 4px; }
.lv-meta-edit { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; text-decoration: underline dotted; }
.lv-icons { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.lv-icons button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: #3c4757; color: #fff; display: grid; place-items: center; cursor: pointer; }
.lv-icons button:hover { background: var(--brand); }
.lv-icons button:disabled { opacity: .35; cursor: default; background: #3c4757; }
.lv-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.lv-toggles { display: flex; gap: 6px; }
.lv-tg { display: flex; align-items: center; gap: 5px; border: 0; background: #4b5563; color: #fff; border-radius: 14px; padding: 4px 11px 4px 5px; font-size: 11.5px; cursor: pointer; }
.lv-tg i { width: 12px; height: 12px; border-radius: 50%; background: #fff; display: block; }
.lv-tg.on { background: var(--brand); }
.lv-tg.on.red { background: var(--red); }
.lv-tg:disabled { opacity: .5; cursor: default; }
.lv-comp { background: var(--brand); color: #fff; border: 0; border-radius: 16px; padding: 7px 14px; font-size: 12.5px; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.lv-comp svg { width: 14px; height: 14px; }
.lv-rej { font-size: 11.5px; color: var(--red); }
.lv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.lv-row > * { padding: 2px 14px; border-right: 1px solid var(--line); }
.lv-row > *:first-child { padding-left: 0; } .lv-row > *:last-child { border-right: 0; }
.lv-id { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.lv-id button { border: 0; background: none; color: var(--brand); cursor: pointer; padding: 0; display: grid; }
.lv-dd { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.lv-pill { appearance: none; -webkit-appearance: none; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center; color: #fff; border: 0; border-radius: 12px; padding: 3px 24px 3px 10px; font-size: 12px; max-width: 220px; field-sizing: content; cursor: pointer; }
.lv-pill.st { background-color: color-mix(in srgb, var(--c) 22%, white); color: #1f2430; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231f2430' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.lv-pill option { color: #1f2430; background: #fff; }
.lv-pill:disabled { opacity: .7; cursor: default; }
.lv-remind { margin-top: 10px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.lv-link { border: 0; background: none; color: var(--brand); cursor: pointer; font-size: 12.5px; }
.lv-tabs { display: flex; gap: 4px; margin: 14px 0 12px; border-bottom: 1px solid var(--line); }
.lv-tabs a, .lv-sub a { display: flex; align-items: center; gap: 5px; padding: 9px 12px; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.lv-tabs a.on, .lv-sub a.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.lv-sub { display: flex; gap: 6px; margin: 16px 0 10px; border-bottom: 1px solid var(--line); }
.lv-box { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; }
.lv-box > header { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; font-weight: 600; font-size: 13px; cursor: pointer; user-select: none; }
.lv-chev { display: grid; transform: rotate(180deg); transition: transform .15s; color: var(--muted); }
.lv-box.shut .lv-chev { transform: none; }
.lv-box.shut > .lv-boxbody { display: none; }
.lv-boxbody { padding: 4px 14px 14px; }
.lv-box.flat { background: transparent; border: 0; }
.lv-box.flat > header { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.lv-box.flat > .lv-boxbody { padding: 10px 0 0; }
.lv-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.lv-sum dl { display: grid; grid-template-columns: 150px 1fr; gap: 4px 12px; margin: 0; font-size: 12.5px; }
.lv-sum dt { font-weight: 600; } .lv-sum dd { margin: 0; }
.lv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.lv-cols.wrap > div > .lv-box { margin-bottom: 12px; }
.lv-grid { display: grid; gap: 10px; }
.lv-grid.g1 { grid-template-columns: 1fr; } .lv-grid.g2 { grid-template-columns: 1fr 1fr; } .lv-grid.g3 { grid-template-columns: 1fr 1fr 1fr; }
.lv-grid .s2 { grid-column: span 2; } .lv-grid .s3 { grid-column: 1 / -1; } .lv-grid .half { max-width: 50%; }
.lv-f { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted); min-width: 0; }
.lv-req { color: var(--red); font-style: normal; }
.lv-in { border: 1px solid var(--line-2); border-radius: 4px; padding: 7px 9px; font-size: 13px; background: #fff; color: var(--text); width: 100%; font-family: inherit; }
.lv-in:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 2px #16a34a22; }
textarea.lv-in { resize: vertical; }
.lv-ph { display: flex; gap: 6px; align-items: center; }
.lv-ph a { color: var(--brand); display: grid; }
.lv-chk { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); align-self: end; padding-bottom: 8px; }
.lv-foot { position: fixed; right: 26px; bottom: 58px; display: flex; gap: 8px; z-index: 30; }
.lv-foot .btn { box-shadow: 0 2px 8px #0000001f; }
.lv-warn { background: #fff7e6; border: 1px solid #fde3a7; color: #7a5a00; padding: 8px 12px; border-radius: 6px; font-size: 12.5px; display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.lv-stats { display: grid; grid-template-columns: 170px repeat(7, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; }
.lv-stats-h { display: flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 600; font-size: 13.5px; padding: 14px; border-left: 4px solid var(--brand); }
.lv-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 6px; border-left: 1px solid var(--line); gap: 3px; }
.lv-stat b { font-size: 16px; } .lv-stat span { font-size: 11px; color: var(--muted); line-height: 1.25; }
.lv-prog { text-align: center; font-weight: 700; font-size: 15px; padding: 3px 4px; max-width: 120px; }
.lv-pane.hide { display: none; }
.lv-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.lv-cred-top { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; padding-right: 14px; }
.lv-cred-sum { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); flex: 1; }
.lv-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.lv-table th { text-align: left; font-weight: 600; padding: 9px 8px; border-bottom: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.lv-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lv-pre { white-space: pre-wrap; }
.lv-empty { text-align: center; color: var(--dim); padding: 22px !important; }
.lv-act { white-space: nowrap; } .lv-act button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px 4px; }
.lv-act button:hover { color: var(--brand); }
.lv-hf { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.lv-hf .lv-in { width: auto; min-width: 140px; }
.lv-hf .grow { flex: 1; }
.lv-total { font-size: 12.5px; font-weight: 600; margin: 4px 0 6px; }
.lv-pager { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding-top: 10px; }
.lv-count { text-align: right; font-size: 11.5px; color: var(--dim); margin: 4px 0 10px; }
.lv-notes { margin-top: 10px; max-height: 340px; overflow-y: auto; display: grid; gap: 8px; }
.lv-note { border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; font-size: 13px; display: grid; gap: 3px; }
.lv-note span { font-size: 11.5px; color: var(--dim); }
@media (max-width: 1100px) { .lv-cols { grid-template-columns: 1fr; } .lv-stats { grid-template-columns: repeat(4, 1fr); } .lv-stats-h { grid-column: 1 / -1; } }
@media (max-width: 700px) { .lv-top { flex-wrap: wrap; } .lv-right { align-items: flex-start; } .lv-grid.g3, .lv-grid.g2 { grid-template-columns: 1fr; } .lv-sum { grid-template-columns: 1fr; } }

/* ── Conversation Center ── */
.cc-stats { display: grid; grid-template-columns: 5fr 4fr; gap: 12px; margin-bottom: 12px; }
.cc-group { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.cc-gh { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--brand); margin-bottom: 10px; }
.cc-gh svg { width: 15px; height: 15px; }
.cc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.cc-tile { background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.cc-tile b { font-size: 22px; font-weight: 700; color: var(--text); }
.cc-tile span { font-size: 12px; color: var(--muted); }
.cc-tile i { font-style: normal; font-size: 11px; color: var(--dim); }
.cc-reps { margin-bottom: 12px; overflow-x: auto; }
.cc-inbox .v2-head { margin-top: 4px; }
.cc-h2 { font-size: 15px; font-weight: 600; margin: 0; }
@media (max-width: 1000px) { .cc-stats { grid-template-columns: 1fr; } }
.nm-sug { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; background: #fff; border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 6px 18px #0000001f; max-height: 260px; overflow-y: auto; margin-top: 2px; }
.nm-sug button { display: flex; justify-content: space-between; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 10px; text-align: left; cursor: pointer; font-size: 13px; }
.nm-sug button:hover { background: var(--hover); }
.nm-sug button span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.nm-new { background: var(--brand-soft); color: #14532d; border-radius: 6px; padding: 8px 10px; font-size: 12.5px; display: flex; gap: 6px; align-items: center; }

/* ── Conversation Center: Sendblue-style contacts ── */
.ct { display: grid; grid-template-columns: 270px 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: calc(100vh - 190px); min-height: 560px; }
.ct-left { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ct-lh { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 12px; border-bottom: 1px solid var(--line); }
.ct-lh h2 { font-size: 22px; font-weight: 600; margin: 0; }
.ct-new { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ct-scope { margin: 10px 12px 0; width: calc(100% - 24px); }
.ct-buckets { padding: 10px; display: grid; gap: 2px; border-bottom: 1px solid var(--line); }
.ct-buckets button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text); text-align: left; }
.ct-buckets button span { flex: 1; }
.ct-buckets button b { font-size: 11px; font-weight: 600; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 1px 7px; color: var(--muted); }
.ct-buckets button.on { background: var(--brand-soft); color: var(--brand); }
.ct-buckets button.on b { background: #fff; }
.ct-warn { font-size: 12px; color: var(--amber); padding: 6px 10px; }
.ct-list { overflow-y: auto; flex: 1; min-height: 0; }
.ct-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #f0f2f5; color: var(--text); text-decoration: none; }
.ct-row:hover { background: var(--hover); } .ct-row.on { background: var(--brand-soft); }
.ct-rmain { flex: 1; min-width: 0; }
.ct-rtop { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; } .ct-rtop b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ct-rtop span { font-size: 11px; color: var(--dim); white-space: nowrap; }
.ct-rsub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-badge { background: var(--brand); color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 7px; }
.ct-av { width: 46px; height: 46px; border-radius: 50%; background: #4f46e5; color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; position: relative; font-size: 15px; }
.ct-av.sm { width: 34px; height: 34px; font-size: 12px; } .ct-av.xs { width: 36px; height: 36px; font-size: 13px; } .ct-av.lg { width: 56px; height: 56px; font-size: 19px; }
.ct-av.me { background: #4f46e5; }
.ct-av i { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #2563eb; box-shadow: 0 0 0 2px #fff; }
.ct-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--card-2); padding: 14px; gap: 12px; }
.ct-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ct-search { display: flex; align-items: center; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; flex: 0 1 300px; }
.ct-search svg { margin: 0 0 0 0; padding: 9px; width: 34px; height: 34px; background: var(--brand); color: #fff; box-sizing: border-box; }
.ct-search input { border: 0; outline: 0; padding: 8px 12px; font-size: 13px; width: 100%; background: none; }
.ct-nav { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 2px 6px; }
.ct-nav button { border: 0; background: none; width: 32px; height: 30px; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.ct-nav i { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.ct-count { font-size: 12px; color: var(--muted); line-height: 1.3; } .ct-count b { font-weight: 500; }
.ct-cardwrap { flex: 1; min-height: 0; display: flex; }
.ct-empty { margin: auto; color: var(--dim); font-size: 13.5px; text-align: center; padding: 30px; } .ct-empty.sm { padding: 40px 0; }
.ct-card { flex: 1; display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-height: 0; }
.ct-card.with-side { grid-template-columns: 1fr 260px; }
.ct-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ct-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ct-who { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; } .ct-who b { font-size: 14px; }
.ct-status { border: 0; background: #f1f3f6; border-radius: 6px; padding: 4px 8px; font-size: 13px; width: fit-content; max-width: 220px; cursor: pointer; }
.ct-nolead { font-size: 12px; color: var(--dim); }
.ct-loc { text-align: right; font-size: 12px; color: var(--muted); } .ct-loc a { color: #2563eb; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.ct-acts { display: flex; align-items: center; gap: 8px; }
.ct-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #f1f3f6; display: grid; place-items: center; cursor: pointer; color: #1f2430; }
.ct-btn:hover { background: #e4e7ec; } .ct-btn.pill { border-radius: 22px; width: 60px; }
.ct-div { width: 1px; height: 28px; background: var(--line); }
.ct-grp { display: flex; background: #f1f3f6; border-radius: 22px; } .ct-grp .ct-btn { background: none; }
.ct-tl { flex: 1; overflow-y: auto; padding: 16px 22px; background: #f8f9fb; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.ct-day { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 6px 0; justify-content: center; }
.ct-day::before, .ct-day::after { content: ''; height: 1px; background: var(--line-2); width: 90px; }
.ct-msg { display: flex; gap: 10px; align-items: flex-start; max-width: 80%; } .ct-msg.out { align-self: flex-end; } .ct-msg.out > div:first-child { display: flex; flex-direction: column; align-items: flex-end; }
.ct-bub { background: #e9ebef; border-radius: 16px; padding: 9px 13px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.ct-msg.out .ct-bub { background: #2563eb; color: #fff; }
.ct-meta { font-size: 11px; color: var(--dim); margin-top: 4px; display: flex; gap: 4px; align-items: center; } .ct-meta a { color: var(--dim); display: inline-flex; }
.ct-call { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 3px #0000000d; min-width: 260px; }
.ct-call-ic { width: 38px; height: 38px; border-radius: 50%; background: #e8f7ee; color: #16a34a; display: grid; place-items: center; flex: none; }
.ct-call.miss .ct-call-ic { background: #fdecec; color: #dc2626; }
.ct-call-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; } .ct-call-b b { font-size: 13.5px; }
.ct-sub { font-size: 12.5px; color: var(--muted); }
.ct-player { display: flex; align-items: center; gap: 8px; }
.ct-play { width: 26px; height: 26px; border-radius: 50%; border: 0; background: #2563eb; color: #fff; font-size: 10px; cursor: pointer; }
.ct-dur { font-size: 12.5px; } .ct-prog { flex: 1; height: 4px; background: #dbe4fb; border-radius: 4px; min-width: 120px; } .ct-prog i { display: block; height: 100%; width: 0; background: #2563eb; border-radius: 4px; }
.ct-tr { border: 0; background: none; color: #2563eb; font-size: 12px; padding: 0; cursor: pointer; display: inline-flex; gap: 3px; align-items: center; width: fit-content; }
.ct-trbox .lv-pre { font-size: 12px; max-height: 200px; overflow-y: auto; background: #f8f9fb; border-radius: 6px; padding: 8px; }
.ct-compose { border-top: 1px solid var(--line); padding: 12px 16px; background: #fff; }
.ct-compose textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; resize: none; font-family: inherit; outline: none; }
.ct-compose textarea:focus { border-color: #93b4f5; }
.ct-ctools { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ct-tpl { border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; font-size: 12.5px; background: #fff; }
.ct-from { font-size: 11.5px; color: var(--dim); }
.ct-send { background: #1f2430; color: #fff; border: 0; border-radius: 8px; padding: 9px 20px; font-weight: 600; cursor: pointer; }
.ct-send:disabled { opacity: .5; }
.ct-side { border-left: 1px solid var(--line); padding: 16px; overflow-y: auto; }
.ct-side h3 { font-size: 13px; margin: 0 0 10px; }
.ct-side dl { display: grid; gap: 2px; margin: 0 0 14px; font-size: 12.5px; } .ct-side dt { color: var(--dim); font-size: 11px; margin-top: 6px; } .ct-side dd { margin: 0; }
@media (max-width: 1150px) { .ct-card.with-side { grid-template-columns: 1fr; } .ct-side { display: none; } }
@media (max-width: 800px) { .ct { grid-template-columns: 1fr; height: auto; } .ct-left { max-height: 320px; } }
.ct-who { min-width: 0; } .ct-status { max-width: 100%; }
.ct-loc { flex: none; white-space: nowrap; }
.upd-bar { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 9999; background: #1f2430; color: #fff; padding: 9px 14px; border-radius: 10px; font-size: 13px; display: flex; gap: 10px; align-items: center; box-shadow: 0 6px 20px #0004; }
.upd-bar button { background: var(--brand); color: #fff; border: 0; border-radius: 6px; padding: 5px 10px; cursor: pointer; font-weight: 600; }

/* ── Sendblue phone widget ── */
.sbp { position: fixed; right: 18px; bottom: 58px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 13px; }
.sbp .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: #9ca3af; }
.sbp .dot.active { background: #16a34a; box-shadow: 0 0 0 3px #16a34a33; } .sbp .dot.away { background: #f59e0b; } .sbp .dot.on_call { background: #dc2626; box-shadow: 0 0 0 3px #dc262633; animation: sbpPulse 1.4s infinite; } .sbp .dot.offline { background: #cbd5e1; }
@keyframes sbpPulse { 50% { box-shadow: 0 0 0 6px #dc262611; } }
.sbp-pill { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line-2); border-radius: 20px; padding: 7px 13px; cursor: pointer; box-shadow: 0 4px 14px #00000022; color: var(--text); font-weight: 500; }
.sbp.on_call .sbp-pill { background: #dc2626; color: #fff; border-color: #dc2626; } .sbp.on_call .sbp-pill .dot { background: #fff; }
.sbp-card { width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 34px #00000030; padding: 14px; display: grid; gap: 12px; }
.sbp-top { display: flex; justify-content: space-between; align-items: center; } .sbp-x { border: 0; background: none; cursor: pointer; color: var(--muted); }
.sbp-seg { display: grid; grid-template-columns: 1fr 1fr; background: #f1f3f6; border-radius: 10px; padding: 3px; }
.sbp-seg button { border: 0; background: none; padding: 8px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 500; color: var(--muted); }
.sbp-seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px #0000001a; }
.sbp-dial { display: flex; gap: 6px; } .sbp-dial input { flex: 1; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.sbp-dial button { width: 38px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; }
.sbp-call { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; background: #fef2f2; border-radius: 10px; padding: 12px; }
.sbp-ring { width: 38px; height: 38px; border-radius: 50%; background: #dc2626; color: #fff; display: grid; place-items: center; animation: sbpPulse 1.4s infinite; }
.sbp-cinfo { display: flex; flex-direction: column; } .sbp-cinfo span { font-size: 11.5px; color: var(--muted); } .sbp-cinfo i { font-style: normal; font-variant-numeric: tabular-nums; color: #b91c1c; font-weight: 600; }
.sbp-end { grid-column: 1 / -1; border: 0; background: #dc2626; color: #fff; border-radius: 8px; padding: 8px; font-weight: 600; cursor: pointer; }
.sbp-link { grid-column: 1 / -1; text-align: center; font-size: 12.5px; }
.sbp-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border-top: 1px solid var(--line); padding-top: 10px; }
.sbp-stats b { display: block; font-size: 16px; } .sbp-stats span { font-size: 11px; color: var(--muted); }
.sbp-last { font-size: 12px; color: var(--muted); }
.sbp-team { border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 6px; max-height: 210px; overflow-y: auto; }
.sbp-th { font-size: 11px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.sbp-tm { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; font-size: 12.5px; } .sbp-tm span { grid-column: 2; font-size: 11.5px; color: var(--muted); } .sbp-tm em { font-style: normal; font-variant-numeric: tabular-nums; }
.sbp-foot { font-size: 11px; color: var(--dim); line-height: 1.35; }
@media (max-width: 700px) { .sbp-card { width: calc(100vw - 36px); } }

/* ── Lead window: backend routing + Salesforce push bar ── */
.lv-route { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 12px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); border-left: 4px solid var(--green); background: var(--brand-soft); }
.lv-route.warn { border-left-color: var(--amber); background: #fdf6e7; }
.lv-route.bad { border-left-color: var(--red); background: #fdecec; }
.lv-route-main { display: flex; flex-direction: column; gap: 2px; min-width: 220px; flex: 1; }
.lv-route-lab { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.lv-route-name { font-size: 17px; font-weight: 700; color: var(--text); }
.lv-route-why { font-size: 12px; color: var(--muted); }
.lv-route-pick { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.lv-route-pick select { height: 30px; min-width: 200px; }
.lv-route-sf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lv-sf { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.lv-sf.ok { color: var(--green); font-weight: 600; } .lv-sf.bad { color: var(--red); }
/* ── Budget: income rows ── */
.lv-inc-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.lv-inc { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 180px) 30px; gap: 8px; align-items: center; }
.lv-inc-x { border: 0; background: none; color: var(--dim); cursor: pointer; display: grid; place-items: center; height: 30px; }
.lv-inc-x:hover { color: var(--red); }
@media (max-width: 600px) { .lv-inc { grid-template-columns: 1fr 1fr 30px; } .lv-route-pick select { min-width: 0; } }
/* ── Worklist: Send To + select ── */
.v2-send { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; background: var(--brand-soft); color: #166534; white-space: nowrap; }
.v2-send.warn { background: #fdf6e7; color: var(--amber); } .v2-send.bad { background: #fdecec; color: var(--red); }
.v2-bulk { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--brand-soft); font-size: 12.5px; }
.v2-sfok { color: var(--green); font-weight: 600; }

/* ── Education ── */
.ed-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.ed-kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.ed-kpi b { font-size: 24px; font-weight: 700; } .ed-kpi span { color: var(--muted); font-size: 12.5px; }
.ed-kpi.warn b { color: var(--amber); }
.ed-filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ed-seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: #fff; }
.ed-seg button { border: 0; background: none; padding: 6px 14px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--muted); }
.ed-seg button + button { border-left: 1px solid var(--line-2); }
.ed-seg button.on { background: var(--brand); color: #fff; }
.ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ed-card { display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.ed-card:hover { box-shadow: 0 6px 18px #0000001a; transform: translateY(-1px); }
.ed-thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1f2937, #14532d); display: grid; place-items: center; color: #ffffffd9; }
.ed-len { position: absolute; right: 8px; bottom: 8px; background: #000000b3; color: #fff; font-size: 11.5px; padding: 2px 6px; border-radius: 4px; }
.ed-req { position: absolute; left: 8px; top: 8px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.ed-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.ed-cat { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }
.ed-title { font-weight: 600; font-size: 14.5px; }
.ed-desc { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ed-side .ed-desc { -webkit-line-clamp: unset; display: block; }
.ed-bar { height: 6px; background: var(--hover); border-radius: 99px; overflow: hidden; }
.ed-bar.big { height: 10px; }
.ed-bar i { display: block; height: 100%; background: var(--amber); border-radius: 99px; transition: width .3s; }
.ed-bar i.done { background: var(--green); }
.ed-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ed-st { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.ed-st.go { color: var(--amber); font-weight: 600; } .ed-st.done { color: var(--green); font-weight: 600; }
.ed-team { font-size: 11.5px; color: var(--muted); }
.ed-back { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); text-decoration: none; margin-bottom: 4px; }
.ed-watch { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.ed-player { overflow: hidden; background: #000; }
.ed-player video { display: block; width: 100%; max-height: 72vh; background: #000; }
.ed-side { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ed-me { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.ed-me .lab { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ed-me .big { font-size: 22px; font-weight: 700; }
.ed-me .dim { font-size: 12.5px; }
.ed-tablehead { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ed-matrix th a { color: inherit; text-decoration: none; max-width: 160px; display: inline-block; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.ed-cell { display: inline-grid; place-items: center; min-width: 46px; height: 24px; border-radius: 5px; font-size: 12px; font-weight: 600; background: var(--hover); color: var(--dim); }
.ed-cell.go { background: #fdf6e7; color: var(--amber); } .ed-cell.done { background: var(--brand-soft); color: var(--green); }
.v2-btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
@media (max-width: 900px) { .ed-watch { grid-template-columns: 1fr; } .ed-sum { grid-template-columns: 1fr 1fr 1fr; } }

/* ── Calendar (color-coded sources) ── */
:root { --c-booked: #2563eb; --c-manual: #16a34a; --c-team: #7c3aed; --c-google: #ea580c; }
.c2-connect { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 12px 16px; margin-bottom: 12px; }
.c2-conn { display: flex; align-items: center; gap: 10px; }
.c2-conn > div { display: flex; flex-direction: column; } .c2-conn b { font-size: 13px; } .c2-conn span { font-size: 12px; color: var(--muted); }
.c2-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.c2-dot.booked { background: var(--c-booked); } .c2-dot.google { background: var(--c-google); }
.c2-err { padding: 10px 14px; margin-bottom: 12px; border-color: #f8717155; color: var(--red); font-size: 13px; }
.c2-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.c2-nav { display: flex; align-items: center; gap: 6px; } .c2-nav h2 { margin: 0 0 0 8px; font-size: 18px; font-weight: 600; }
.c2-src { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.c2-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: 5px 12px 5px 9px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--muted); }
.c2-chip i { width: 12px; height: 12px; border-radius: 3px; border: 2px solid currentColor; }
.c2-chip span { background: var(--hover); border-radius: 99px; padding: 0 7px; font-size: 11px; }
.c2-chip.booked { --c: var(--c-booked); } .c2-chip.manual { --c: var(--c-manual); } .c2-chip.team { --c: var(--c-team); } .c2-chip.google { --c: var(--c-google); }
.c2-chip i { border-color: var(--c); }
.c2-chip.on { color: var(--text); border-color: var(--c); } .c2-chip.on i { background: var(--c); }
.c2-chip:not(.on) { opacity: .6; }
.c2-all { border: 0; background: none; color: var(--brand); font: inherit; font-size: 12.5px; cursor: pointer; }
.c2-ev { display: block; font-size: 11.5px; line-height: 1.35; padding: 3px 6px; border-radius: 5px; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 70%, #000); cursor: pointer; }
.c2-ev b { font-weight: 600; } .c2-ev em { display: block; font-style: normal; opacity: .75; white-space: normal; }
.c2-ev.booked { --c: var(--c-booked); } .c2-ev.manual { --c: var(--c-manual); } .c2-ev.team { --c: var(--c-team); } .c2-ev.google { --c: var(--c-google); }
.c2-ev.done { opacity: .5; text-decoration: line-through; }
.c2-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.c2-month .dow { padding: 8px 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--card-2); border-bottom: 1px solid var(--line); }
.c2-month .day { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.c2-month .day:nth-child(7n) { border-right: 0; }
.c2-month .day:hover { background: var(--hover); }
.c2-month .day.out { background: var(--card-2); } .c2-month .day.out .d { opacity: .45; }
.c2-month .d { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; width: 24px; height: 24px; display: grid; place-items: center; }
.c2-month .day.today .d { background: var(--brand); color: #fff; border-radius: 50%; font-weight: 600; }
.c2-more { border: 0; background: none; color: var(--brand); font: inherit; font-size: 11.5px; cursor: pointer; padding: 0 4px; }
.c2-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.c2-week .col { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; min-height: 360px; cursor: pointer; min-width: 0; }
.c2-week .col.today { border-color: var(--brand); box-shadow: inset 0 3px 0 var(--brand); }
.c2-week .wd { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; } .c2-week .wd span { font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 600; } .c2-week .wd b { font-size: 18px; }
.c2-week .c2-ev { white-space: normal; padding: 6px 7px; margin-bottom: 6px; }
.c2-week .none { color: var(--dim); font-size: 12px; }
.c2-list { padding: 4px 0; }
.c2-lday { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.c2-lday:last-child { border-bottom: 0; }
.c2-ldate { font-weight: 600; font-size: 13px; } .c2-ldate.today { color: var(--brand); }
.c2-lrow .c2-ev { white-space: normal; padding: 7px 10px; font-size: 12.5px; }
@media (max-width: 900px) { .c2-week { grid-template-columns: 1fr; } .c2-week .col { min-height: 0; } .c2-lday { grid-template-columns: 1fr; } .c2-month .day { min-height: 80px; } }

/* ── Ascent Financial logo ── */
.v2-logo { padding: 10px 0 16px; }
.v2-logo-img { width: 118px; height: auto; display: block; }
.brand-logo { height: 84px; width: auto; display: block; }
.login .brand { justify-content: center; }

/* ── 8x8 Analytics ── */
.x8-warn { padding: 12px 16px; margin-bottom: 14px; border-left: 4px solid var(--amber); font-size: 13px; }
.x8-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.x8-tile { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.x8-tile b { font-size: 22px; font-weight: 700; } .x8-tile span { font-size: 12px; color: var(--muted); } .x8-tile i { font-style: normal; font-size: 11.5px; color: var(--dim); }
.x8-tile.good b { color: var(--green); } .x8-tile.bad b { color: var(--red); }
.x8-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.x8-h { font-weight: 600; font-size: 13.5px; margin-bottom: 10px; }
.x8-chart, .x8-out { padding: 14px; }
.x8-bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; }
.x8-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.x8-bar .stk { width: 100%; max-width: 34px; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 2px; }
.x8-bar .stk i, .x8-legend i { display: block; } .x8-bar span { font-size: 10.5px; color: var(--muted); }
.x8-bar .o, .x8-legend .o { background: var(--brand); } .x8-bar .i, .x8-legend .i { background: #2563eb; } .x8-bar .n, .x8-legend .n { background: #a3a3a3; }
.x8-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.x8-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.x8-orow { display: grid; grid-template-columns: 110px 1fr 36px; gap: 8px; align-items: center; font-size: 12.5px; margin-bottom: 8px; }
.x8-obar { height: 8px; background: var(--hover); border-radius: 99px; overflow: hidden; } .x8-obar i { display: block; height: 100%; background: var(--brand); }
.x8-orow b { text-align: right; }
.x8-dir { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 10px; white-space: nowrap; }
.x8-dir.o { background: var(--brand-soft); color: #166534; } .x8-dir.i { background: #e8effd; color: #1d4ed8; } .x8-dir.n { background: var(--hover); color: var(--muted); }
.x8-res { font-size: 12px; color: var(--muted); } .x8-res.ok { color: var(--green); font-weight: 600; } .x8-res.bad { color: var(--red); }
@media (max-width: 900px) { .x8-row { grid-template-columns: 1fr; } }

/* ── 8x8 Extension summary ── */
.x8-top { padding: 14px; }
.x8-toph { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.x8-toph .sp { flex: 1; }
.x8-tbars { display: flex; align-items: flex-end; gap: 10px; height: 230px; margin-top: 14px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.x8-tb { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; position: relative; padding-bottom: 22px; }
.x8-tb .b { width: 100%; max-width: 90px; background: #6ee7b7; border-radius: 3px 3px 0 0; }
.x8-tb:hover .b { background: var(--brand); }
.x8-tb em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--text); }
.x8-tb span { position: absolute; bottom: 2px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.x8-tf { display: flex; align-items: center; gap: 14px; padding: 12px 14px; flex-wrap: wrap; }
.x8-ext td, .x8-ext th { white-space: nowrap; }
.x8-ext tbody tr:not(.x8-detail):not(.x8-group):not(.x8-total) { background: #fbf3e2; }
.x8-ext tbody tr.x8-me { box-shadow: inset 4px 0 0 var(--brand); }
.x8-exp button { border: 0; background: none; cursor: pointer; color: var(--brand); font-size: 13px; padding: 0 4px; }
.x8-detail td { background: #fff; }
.x8-dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; padding: 6px 0 10px; white-space: normal; }
.x8-dgrid div { display: flex; flex-direction: column; } .x8-dgrid span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); } .x8-dgrid b { font-weight: 500; font-size: 12.5px; }
.x8-group td { background: var(--card-2); font-weight: 600; }
.x8-total td { font-weight: 700; background: var(--card-2); }
.x8-colpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }

/* Email template picker (lead page) */
.lv-tpls{display:grid;gap:10px}
.lv-tpl{display:flex;flex-direction:column;gap:4px;text-align:left;padding:14px 16px;border:1px solid var(--line,#e5e7eb);border-radius:12px;background:var(--card,#fff);cursor:pointer;font:inherit;color:inherit}
.lv-tpl:hover{border-color:#2f7d4f;box-shadow:0 0 0 3px rgba(47,125,79,.12)}
.lv-tpl b{font-size:14.5px}
.lv-tpl span{font-size:13px;font-weight:600;color:#2f7d4f}
.lv-tpl em{font-style:normal;font-size:12.5px;color:var(--muted,#6b7280);line-height:1.45}
.lv-tpl.blank{border-style:dashed}

/* ── CFT-style filter grids (Worklist 6 across, Search 8 across) ── */
.v2-filters.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.v2-filters.eight { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.v2-filters.eight .sbtns { grid-column: span 2; align-items: flex-start; }
@media (max-width: 1500px) { .v2-filters.eight { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1200px) { .v2-filters.six, .v2-filters.eight { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .v2-filters.six, .v2-filters.eight { grid-template-columns: 1fr; } }
.v2-filters .v2-in, .v2-filters .v2-sel { width: 100%; min-width: 0; }
.v2-srch { position: relative; display: flex; align-items: center; }
.v2-srch svg { position: absolute; left: 0; top: 0; bottom: 0; width: 34px; height: 100%; padding: 0 10px; color: var(--muted); background: #f3f4f6; border: 1px solid var(--line); border-radius: 6px 0 0 6px; box-sizing: border-box; }
.v2-srch input { padding-left: 42px !important; width: 100%; }
/* Date range: one box + calendar button */
.v2-dr { position: relative; display: flex; }
.v2-dr > input { flex: 1; border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; cursor: pointer; min-width: 0; }
.v2-dr-btn { width: 40px; flex: none; border: 0; border-radius: 0 6px 6px 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; }
.v2-dr-btn svg { width: 15px; height: 15px; }
.v2-dr-pop { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(15,23,42,.16); padding: 12px; }
.v2-dr.open .v2-dr-pop { display: block; }
.v2-dr-pop .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v2-dr-pop label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.v2-dr-pop .quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.v2-dr-pop .quick button { border: 1px solid var(--line); background: #f8fafc; border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; color: var(--text); }
.v2-dr-pop .quick button:hover { border-color: var(--brand); color: var(--brand); }
.v2-dr-pop .foot { display: flex; justify-content: flex-end; gap: 6px; }
.v2-card.v2-filters { overflow: visible; }
/* Plain phone number (click = call with 8x8) */
.v2-tel { color: var(--text); text-decoration: none; }
.v2-tel:hover { color: var(--brand); text-decoration: underline; }
/* Search results header + Bulk Action */
.v2-bulkbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.v2-bulkbar .sp { flex: 1; }
.v2-bulkwrap { position: relative; }
.v2-bulkmenu { display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(15,23,42,.16); min-width: 220px; padding: 6px; }
.v2-bulkmenu.open { display: block; }
.v2-bulkmenu button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 13px; color: var(--text); text-align: left; }
.v2-bulkmenu button:hover { background: #f3f4f6; }
.v2-bulkmenu svg { width: 14px; height: 14px; }
/* Zoom control in the top bar */
.v2-zoom { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; height: 30px; }
.v2-zoom button { border: 0; background: #fff; height: 100%; padding: 0 9px; cursor: pointer; font: inherit; font-size: 14px; color: var(--text); }
.v2-zoom button:hover { background: #f3f4f6; }
.v2-zoom #zPct { font-size: 12px; min-width: 46px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--muted); }

/* Row actions: horizontal icon bar under the link icon (like CFT) */
.row-menu.icons { display: flex; gap: 4px; padding: 8px 10px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(15,23,42,.14); }
.row-menu.icons button { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 8px; color: var(--brand); }
.row-menu.icons button svg { width: 19px; height: 19px; color: var(--brand); }
.row-menu.icons button:hover:not([disabled]) { background: var(--brand-soft); }
.v2-act button[data-more] { border: 1px solid transparent; border-radius: 6px; padding: 3px; }
.v2-act button[data-more]:hover { border-color: var(--brand); background: var(--brand-soft); }

/* Loan steps */
.ln-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; flex-wrap: wrap; }
.ln-amt, .ln-time { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.ln-amt input { width: 160px; font-weight: 600; }
.ln-time input { max-width: 240px; }
.ln-steps { display: flex; flex-direction: column; }
.ln-step { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ln-step:last-child { border-bottom: 0; }
.ln-step > i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-style: normal; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.ln-body { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ln-body .t { font-weight: 600; font-size: 14.5px; }
.ln-body .s { font-size: 13px; color: var(--muted); }
.ln-tip { font-size: 13px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: 8px; padding: 8px 10px; }
.ln-code { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; background: #f8fafc; border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; }
.ln-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Loans page */
.ln-page { padding: 18px 20px; }
.ln-pick { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.ln-pick #lpQ { width: 240px; }
.ln-res { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; background: #fff; border-radius: 8px; box-shadow: 0 12px 28px rgba(15,23,42,.16); margin-top: 4px; overflow: hidden; }
.ln-res:empty { display: none; }
.ln-res button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 8px 10px; cursor: pointer; font: inherit; text-align: left; }
.ln-res button:hover { background: var(--brand-soft); }
.ln-res button b { font-size: 13px; color: var(--text); } .ln-res button span { font-size: 11.5px; color: var(--muted); }
.ln-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.ln-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
@media (max-width: 800px) { .ln-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ln-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-left: 4px solid var(--c); cursor: pointer; font: inherit; text-align: left; }
.ln-stat span { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ln-stat b { font-size: 22px; } .ln-stat em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.ln-stat.on { box-shadow: 0 0 0 2px var(--c); }

/* Meta / Zapier setup card */
.meta-map { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.meta-map th, .meta-map td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.meta-map th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.meta-map td:last-child { color: var(--muted); }

/* Calendar: reminders get their own color */
:root { --c-remind: #d97706; }
.c2-ev.remind { --c: var(--c-remind); } .c2-chip.remind { --c: var(--c-remind); } .c2-dot.remind { background: var(--c-remind); }
/* Reminder window */
.rm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rm-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.rm-ico svg { width: 20px; height: 20px; }
.rm-types, .rm-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rm-type, .rm-quick button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--text); }
.rm-type.on, .rm-quick button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.rm-quick button { font-size: 12.5px; padding: 5px 11px; }
.rm-when { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.rm-when label, .rm-note { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.rm-note textarea { resize: vertical; min-height: 56px; font: inherit; font-size: 13.5px; }
.rm-sum { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 13px; }
.rm-sum svg { width: 15px; height: 15px; flex: none; }

/* Resources: admins add/remove links in place */
.res-add { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; padding: 12px; margin-bottom: 12px; }
@media (max-width: 720px) { .res-add { grid-template-columns: 1fr; } }
.res-item { display: flex; align-items: center; }
.res-item .res-row { flex: 1; min-width: 0; }
.res-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 8px 12px; border-radius: 6px; }
.res-x:hover { color: #dc2626; background: #fef2f2; }
.res-x svg { width: 15px; height: 15px; }

/* Notes window (matches CFT Connect) */
.modal.nt-modal { width: min(825px, 96vw); height: min(620px, 92vh); max-width: none; max-height: none; padding: 0; overflow: auto; resize: both; min-width: 420px; min-height: 320px; display: flex; flex-direction: column; }
.overlay.nt-float { background: transparent !important; pointer-events: none; display: block; padding: 0; animation: none; }
.overlay.nt-float .modal.nt-modal { pointer-events: auto; position: fixed; margin: 0; box-shadow: 0 18px 50px rgba(15,23,42,.28), 0 0 0 1px rgba(15,23,42,.08); }
.nt-float .nt-head { cursor: move; user-select: none; padding: 10px 14px; }
.nt-float .nt-wrap { flex: 1; min-height: 0; gap: 12px; padding: 10px 14px 14px; }
.nt-float .nt-editor { min-height: 0; flex: 1; }
.nt-float .nt-area { min-height: 120px; }
.nt-float .nt-left, .nt-float .nt-right { min-height: 0; }
.nt-float .nt-list { max-height: none; min-height: 0; }
.nt-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.nt-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; } .nt-title svg { color: var(--brand); }
.nt-x { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 6px; } .nt-x:hover { background: #f3f4f6; }
.nt-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; padding: 14px 18px 18px; }
@media (max-width: 860px) { .nt-wrap { grid-template-columns: 1fr; } }
.nt-left, .nt-right { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nt-lab { font-size: 12px; color: var(--muted); }
.nt-tpl { position: relative; }
.nt-tpl-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; cursor: pointer; text-align: left; background: #fff; }
.nt-tpl.open .nt-tpl-btn { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.nt-tpl-pop { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(15,23,42,.16); padding: 8px; }
.nt-tpl.open .nt-tpl-pop { display: block; }
.nt-tpl-search { position: relative; } .nt-tpl-search input { width: 100%; padding-right: 30px; } .nt-tpl-search svg { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.nt-tpl-list { max-height: 240px; overflow-y: auto; margin-top: 6px; }
.nt-tpl-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 6px; font: inherit; font-size: 13.5px; cursor: pointer; color: var(--text); }
.nt-tpl-list button:hover { background: var(--brand-soft); }
.nt-editor { border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; min-height: 330px; }
.nt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); background: #fafafa; border-radius: 8px 8px 0 0; }
.nt-tools button { border: 0; background: none; min-width: 30px; height: 30px; border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--text); }
.nt-tools button:hover { background: #ececec; }
.nt-block, .nt-color select { border: 1px solid var(--line); border-radius: 6px; height: 30px; padding: 0 6px; font: inherit; font-size: 13px; background: #fff; }
.nt-color { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.nt-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.nt-area { flex: 1; padding: 12px; outline: none; font-size: 14px; line-height: 1.5; overflow-y: auto; min-height: 220px; }
.nt-area:empty::before { content: attr(data-ph); color: var(--muted); }
.nt-area blockquote, .nt-body blockquote, .nt-text blockquote { border-left: 3px solid var(--line); margin: 4px 0; padding-left: 10px; color: var(--muted); }
.nt-count { text-align: right; font-size: 12px; color: var(--muted); padding: 6px 10px; border-top: 1px solid var(--line); }
.nt-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.nt-search { position: relative; } .nt-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); } .nt-search input { width: 100%; padding-left: 32px; }
.nt-filters { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.nt-filters label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.nt-range { width: auto; }
.nt-list { flex: 1; overflow-y: auto; max-height: 360px; display: flex; flex-direction: column; gap: 8px; }
.nt-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; }
.nt-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.nt-meta b { color: var(--text); font-weight: 600; }
.nt-meta em { font-style: normal; font-size: 11px; background: #f3f4f6; border-radius: 4px; padding: 1px 6px; }
.nt-av { width: 22px; height: 22px; border-radius: 50%; background: #4b5563; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.nt-text { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.nt-text ul, .nt-text ol, .nt-body ul, .nt-body ol { margin: 4px 0; padding-left: 20px; }
.nt-empty { padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }
.nt-pager { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--line); }
.nt-pager button { border: 0; background: none; cursor: pointer; padding: 2px 6px; color: var(--muted); } .nt-pager button:disabled { opacity: .35; cursor: default; }
.nt-pager b { background: var(--brand-soft); color: var(--brand); border-radius: 4px; padding: 2px 8px; }
.nt-pager select { border: 1px solid var(--line); border-radius: 6px; height: 26px; }
.nt-body { border-radius: 6px; padding: 2px 6px; }
.nt-filters label { white-space: nowrap; }

/* ── Company report ── */
.rp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.rp-eye { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.rp-range { text-align: right; display: flex; flex-direction: column; gap: 2px; } .rp-range b { font-size: 15px; } .rp-range span { font-size: 12px; color: var(--muted); }
.rp-filters { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 14px; flex-wrap: wrap; } .rp-filters .sp { flex: 1; } .rp-filters .v2-sel { width: 180px; }
.rp-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 1100px) { .rp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rp-kpi { padding: 16px 18px; border-left: 4px solid var(--c); display: flex; flex-direction: column; gap: 4px; }
.rp-kpi span { font-size: 12.5px; color: var(--muted); } .rp-kpi b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; } .rp-kpi em { font-style: normal; font-size: 12px; color: var(--muted); }
.rp-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 1100px) { .rp-grid { grid-template-columns: 1fr; } }
.rp-box { padding: 16px 18px; margin-bottom: 0; } .rp-box h3 { margin: 0 0 10px; font-size: 17px; } .rp-box h3 .dim { font-size: 12.5px; font-weight: 400; }
.v2-card.rp-box + .v2-card.rp-box { margin-top: 14px; }
.rp-c { position: relative; height: 280px; } .rp-c.sm { height: 210px; } .rp-c.tall { height: 300px; }
.rp-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.rp-legend span { display: flex; align-items: center; gap: 6px; } .rp-legend i { width: 9px; height: 9px; border-radius: 50%; } .rp-legend b { margin-left: auto; color: var(--text); }
/* ── Enrolled deals ── */
.en-months { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.en-months button { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 14px; cursor: pointer; font: inherit; color: var(--text); }
.en-months button b { font-size: 13.5px; } .en-months button span { font-size: 12px; color: var(--muted); }
.en-months button.on { border-color: var(--brand); background: var(--brand-soft); } .en-months button.on b { color: var(--brand); }
.en-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
@media (max-width: 900px) { .en-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.en-kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; } .en-kpi span { font-size: 12.5px; color: var(--muted); } .en-kpi b { font-size: 24px; }
.en-bar { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 12px; } .en-bar .v2-srch { flex: 1; max-width: 420px; }
.en-tbl .num { text-align: right; } .en-exp { height: 30px; padding: 2px 8px; width: 150px; }
.en-paid { background: #dcfce7; color: #166534; border-radius: 6px; padding: 2px 8px; font-weight: 600; font-size: 12.5px; }
.en-total td { background: #f8fafc; }
.v2-onebar { padding: 10px 12px; margin-bottom: 12px; } .v2-onebar .v2-srch { max-width: 560px; }

/* Worklist: search + buttons on one row, filters right below */
.wl-bar { display: flex; flex-direction: column; gap: 12px; }
.wl-row { display: flex; gap: 10px; align-items: center; }
.wl-row .v2-srch { flex: 1; max-width: none; }
.wl-row .v2-btn { flex: none; white-space: nowrap; }
.wl-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.wl-filters .v2-fld { min-width: 0; }
.wl-clear { height: 38px; }
.v2-ms .v2-ms-panel input.v2-ms-q { display: block; width: 100%; height: 34px; margin: 2px 0 6px; padding: 0 10px; font-size: 13px; accent-color: auto; -webkit-appearance: none; appearance: none; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
@media (max-width: 900px) { .wl-filters { grid-template-columns: 1fr 1fr; } .wl-row { flex-wrap: wrap; } }

/* Connect company Gmail pop-up */
.em-steps { display: flex; flex-direction: column; gap: 14px; }
.em-step { display: flex; gap: 12px; align-items: flex-start; }
.em-step > b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft, #dcfce7); color: var(--brand, #16a34a); display: grid; place-items: center; font-size: 13px; }

/* Enrolled deal form: find the lead while typing */
.en-find { position: relative; }
.en-sug { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(15,23,42,.16); padding: 4px; margin-top: 4px; max-height: 300px; overflow-y: auto; }
.en-sug.open { display: block; }
.en-sug button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; font: inherit; }
.en-sug button:hover { background: var(--brand-soft, #dcfce7); }
.en-sug button span { font-size: 12px; color: var(--muted); }
.en-linked { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 8px 12px; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.en-rep { background: #f9fafb; display: flex; align-items: center; }

/* Outside-hours call warning */
.modal { position: relative; }
.oh-x { position: absolute; top: 12px; right: 12px; border: 0; background: none; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 6px; } .oh-x:hover { background: #f3f4f6; }
.oh-x svg { width: 18px; height: 18px; }

/* Resources: files open in a viewer inside the CRM */
.modal.rv-modal { width: min(1100px, 96vw); max-width: none; height: 90vh; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.rv-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); } .rv-head .sp { flex: 1; }
.rv-body { flex: 1; min-height: 0; overflow: auto; background: #f8fafc; display: flex; justify-content: center; }
.rv-body iframe { border: 0; width: 100%; height: 100%; background: #fff; }
.rv-body img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }

/* Deal Tracker setup card */
.ds-steps { margin: 12px 0 6px; padding-left: 20px; line-height: 1.7; font-size: 14px; }
.ds-code summary { cursor: pointer; color: var(--brand); font-size: 13px; margin: 4px 0; }
.ds-code pre { max-height: 260px; overflow: auto; background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 8px; font-size: 12px; line-height: 1.45; white-space: pre; }

/* Reporting: switch filters without blanking the page */
.rp-loading { position: relative; }
.rp-loading::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; background: linear-gradient(90deg, transparent, var(--brand, #16a34a), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: rpbar 1s linear infinite; }
.rp-loading .rp-kpis, .rp-loading .rp-grid, .rp-loading .rp-box { opacity: .55; transition: opacity .15s; pointer-events: none; }
@keyframes rpbar { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.rp-skel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 60px 0 0; }
.rp-skel div { height: 104px; border-radius: 12px; background: linear-gradient(90deg, #f1f5f9, #e2e8f0, #f1f5f9); background-size: 200% 100%; animation: rpsk 1.2s ease-in-out infinite; }
@keyframes rpsk { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* CRM-styled dropdowns (selects.js) */
.cs { display: contents; }
select.cs-native { display: none !important; }
.cs-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; font: inherit; color: var(--text); background-image: none !important; padding-right: 10px !important; white-space: nowrap; }
.cs-btn.input { font-size: 14px; }
.cs-btn .cs-val { overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.cs-btn.cs-ph .cs-val { color: var(--muted); }
.cs-btn .cs-chev { flex: none; color: var(--muted); transition: transform .15s; }
.cs-btn:hover { border-color: #cbd5e1; }
.cs-btn.cs-open, .cs-btn:focus-visible { border-color: var(--brand, #16a34a); box-shadow: 0 0 0 3px #16a34a1f; outline: 0; }
.cs-btn.cs-open .cs-chev { transform: rotate(180deg); color: var(--brand, #16a34a); }
.cs-btn:disabled { opacity: .6; cursor: default; }
.cs-pan { position: fixed; z-index: 2000; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 12px 32px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .06); padding: 5px; display: flex; flex-direction: column; max-width: min(420px, 94vw); animation: csIn .12s ease-out; font-size: 14px; }
@keyframes csIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cs-q { padding: 2px 2px 6px; border-bottom: 1px solid #f1f5f9; margin-bottom: 4px; }
.cs-q input { width: 100%; height: 34px; border: 1px solid #e5e7eb; border-radius: 7px; padding: 0 10px; font: inherit; font-size: 13.5px; outline: 0; }
.cs-q input:focus { border-color: var(--brand, #16a34a); box-shadow: 0 0 0 3px #16a34a1a; }
.cs-list { overflow-y: auto; min-height: 0; }
.cs-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 7px; cursor: pointer; color: var(--text); line-height: 1.3; }
.cs-opt.act { background: #f3f4f6; }
.cs-opt.on { background: #ecfdf3; color: #15803d; font-weight: 600; }
.cs-opt.on.act { background: #dcfce7; }
.cs-opt.on svg { color: #16a34a; flex: none; }
.cs-opt.ph { color: var(--muted); }
.cs-opt.dis { opacity: .45; cursor: default; }
.cs-grp { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 4px; }
.cs-none { padding: 12px; color: var(--muted); font-size: 13px; text-align: center; }

/* lead header pills keep their colored look */
.cs-btn.lv-pill { color: #fff; padding: 3px 10px !important; gap: 6px; max-width: 220px; }
.cs-btn.lv-pill.st { color: #1f2430; }
.cs-btn.lv-pill .cs-chev, .cs-btn.lv-pill.cs-ph .cs-val { color: inherit; }
.cs-btn.lv-pill .cs-chev { width: 11px; height: 11px; }
.cs-btn.lv-pill.cs-open { box-shadow: 0 0 0 3px #16a34a33; }
.cs-btn.lv-pill:hover { filter: brightness(.96); }

/* Creditors tab */
.cr-box { padding: 0; }
.cr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: default !important; }
.cr-actions { display: flex; gap: 8px; }
.cr-up { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cr-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.cr-sum > div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.cr-sum span { font-size: 12.5px; color: var(--muted); } .cr-sum b { font-size: 22px; } .cr-sum em { font-style: normal; font-size: 12px; color: var(--muted); }
.cr-note { margin: 0 14px 12px; padding: 10px 12px; border-radius: 8px; background: #f0fdf4; border: 1px solid #bbf7d0; font-size: 13.5px; }
.cr-note.red { background: #fef2f2; border-color: #fecaca; }
.cr-tbl td { padding: 6px 8px; vertical-align: middle; } .cr-tbl .lv-in { padding: 5px 7px; font-size: 13px; }
.cr-tbl .lv-in.num { text-align: right; } .cr-tbl tr.off td { opacity: .55; } .cr-tbl tr.off td:first-child { opacity: 1; }
.cr-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; } .cr-x:hover { color: #dc2626; background: #fef2f2; }
.cr-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.cr-src { display: flex; gap: 10px; } .cr-src .btn { flex: 1; padding: 14px; font-weight: 600; }
@media (max-width: 800px) { .cr-sum { grid-template-columns: 1fr; } }

/* Address suggestions */
.ac-pan { padding: 4px; }
.ac-opt { justify-content: flex-start !important; gap: 10px !important; align-items: flex-start !important; }
.ac-opt svg { flex: none; margin-top: 2px; color: var(--muted); }
.ac-opt div { display: flex; flex-direction: column; min-width: 0; }
.ac-opt b { font-weight: 600; font-size: 13.5px; } .ac-opt span { font-size: 12px; color: var(--muted); }
.ac-opt.act svg { color: var(--brand, #16a34a); }
.ac-by { font-size: 10.5px; color: #9ca3af; text-align: right; padding: 4px 8px 2px; border-top: 1px solid #f1f5f9; margin-top: 2px; }
