/* BSL Adviser Portal: mobile first lead management app */
:root { --ink:#15171C; --ink-2:#3A3F48; --muted:#6B717C; --line:#E4E7EC; --bg:#F3F4F6; --card:#fff; --ok:#1E8E5A; --warn:#C77700; --bad:#C62828; --r:16px; --tabbar:68px; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.bslp { overflow-x: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; font-size: 15px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
[hidden] { display: none !important; }
.bslp-muted { color: var(--muted); }

/* ── Buttons ── */
.bslp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid transparent; background: none; font-weight: 650; font-size: 14.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: filter .15s, background .15s, transform .08s; }
.bslp-btn:active { transform: scale(.98); }
.bslp-btn--primary { background: var(--brand); color: var(--brand-ink); }
.bslp-btn--primary:hover { filter: brightness(1.08); }
.bslp-btn--accent { background: var(--accent); color: var(--accent-ink); }
.bslp-btn--ghost { border-color: var(--line); background: #fff; color: var(--ink-2); }
.bslp-btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.bslp-btn--danger { border-color: #F3C9C9; color: var(--bad); background: #fff; }
.bslp-btn--wa { background: #25D366; color: #08361C; }
.bslp-btn--light { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.35); }
.bslp-btn--block { width: 100%; }
.bslp-btn[disabled] { opacity: .6; pointer-events: none; }
.bslp-iconbtn { width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; color: inherit; display: inline-grid; place-items: center; cursor: pointer; }
.bslp-iconbtn:hover { background: rgba(0,0,0,.06); }
.bslp-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.bslp-btns > * { flex: 1 1 auto; }

/* ── Login ── */
.bslp-login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--brand-soft), transparent 70%), var(--bg); }
.bslp-login__card { width: 100%; max-width: 400px; background: #fff; border-radius: 22px; padding: 32px 26px; box-shadow: 0 20px 50px rgba(15,23,42,.10); }
.bslp-login__logo { display: block; max-width: 170px; max-height: 64px; margin: 0 auto 22px; }
.bslp-login h1 { margin: 0 0 6px; font-size: 22px; text-align: center; }
.bslp-login .bslp-muted { text-align: center; margin: 0 0 22px; }
.bslp-login form p { margin: 0 0 14px; }
.bslp-login label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.bslp-login input[type=text], .bslp-login input[type=password] { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 16px; outline: none; }
.bslp-login input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.bslp-login .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--muted); }
.bslp-login .login-remember input { accent-color: var(--brand); width: 18px; height: 18px; }
.bslp-login input[type=submit] { width: 100%; border: 0; border-radius: 12px; padding: 14px; font-weight: 700; font-size: 16px; background: var(--brand); color: var(--brand-ink); cursor: pointer; }
.bslp-login__lost { text-align: center; margin: 14px 0 0; font-size: 14px; }

/* ── App layout ── */
.bslp-app { min-height: 100vh; }
.bslp-side { display: none; }
.bslp-main { min-width: 0; overflow-x: clip; padding-bottom: calc(var(--tabbar) + 24px + env(safe-area-inset-bottom)); }
.bslp-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 14px; background: var(--brand); color: var(--brand-ink); box-shadow: 0 2px 12px rgba(0,0,0,.10); }
.bslp-top__title { flex: 1; margin: 0; font-size: 18px; font-weight: 700; }
.bslp-logo-chip { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 10px; padding: 5px 8px; height: 40px; max-width: 110px; flex: none; }
.bslp-logo-chip img { max-height: 30px; max-width: 94px; object-fit: contain; display: block; }
.bslp-view { padding: 16px 14px; max-width: 1480px; margin: 0 auto; }

/* Bottom tab bar */
.bslp-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); background: rgba(255,255,255,.96); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-around; }
.bslp-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #8A909A; text-decoration: none; font-size: 11px; font-weight: 600; padding: 6px 0; }
.bslp-tabbar a.is-active { color: var(--brand); }
.bslp-tabbar__fab { flex: 0 0 auto !important; width: 56px; height: 56px; border-radius: 18px; background: var(--accent) !important; color: var(--accent-ink) !important; display: grid !important; place-items: center; margin-top: -26px; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.bslp-tabbar__fab svg { width: 28px; height: 28px; }

@media (min-width: 900px) {
	.bslp-app { display: grid; grid-template-columns: 248px 1fr; }
	.bslp-tabbar { display: none; }
	.bslp-main { min-width: 0; overflow-x: clip; padding-bottom: 40px; min-width: 0; }
	.bslp-side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--brand); color: var(--brand-ink); padding: 22px 14px; }
	.bslp-side__brand { padding: 0 6px 22px; }
	.bslp-side__brand .bslp-logo-chip { height: 58px; max-width: 200px; padding: 8px 12px; border-radius: 12px; }
	.bslp-side__brand .bslp-logo-chip img { max-height: 42px; max-width: 176px; }
	.bslp-side__nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
	.bslp-side__nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: inherit; text-decoration: none; font-weight: 600; opacity: .82; }
	.bslp-side__nav a:hover { background: rgba(255,255,255,.10); opacity: 1; }
	.bslp-side__nav a.is-active { background: rgba(255,255,255,.18); opacity: 1; box-shadow: inset 3px 0 0 var(--accent); }
	.bslp-side__foot { border-top: 1px solid rgba(255,255,255,.18); padding: 16px 8px 0; font-size: 13px; }
	.bslp-side__me strong { display: block; } .bslp-side__me span { opacity: .75; }
	.bslp-side__out { display: inline-block; margin-top: 10px; color: inherit; opacity: .85; }
	.bslp-top { background: var(--bg); color: var(--ink); box-shadow: none; padding: 22px 28px 6px; position: static; }
	.bslp-top__logo { display: none; }
	.bslp-top__title { font-size: 24px; }
	.bslp-view { padding: 14px 32px; margin: 0; }
}

/* ── Leads view ── */
.bslp-hello p { margin: 0; color: var(--muted); font-size: 14px; }
.bslp-hello h2 { margin: 2px 0 14px; font-size: 21px; letter-spacing: -.01em; }
@media (min-width: 900px) { .bslp-hello { display: none; } }
.bslp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.bslp-kpi { background: var(--card); border-radius: 14px; padding: 12px 12px 11px; border: 1px solid var(--line); }
.bslp-kpi b { display: block; font-size: 22px; line-height: 1.1; color: var(--brand); }
.bslp-kpi span { font-size: 12px; color: var(--muted); font-weight: 600; }
.bslp-kpi--alert b { color: var(--warn); }

.bslp-toolbar { display: grid; gap: 10px; margin-bottom: 12px; }
.bslp-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; color: var(--muted); }
.bslp-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.bslp-search input { flex: 1; border: 0; outline: 0; padding: 13px 0; font-size: 16px; background: transparent; min-width: 0; }
.bslp-filters { display: flex; gap: 8px; }
.bslp-filters .bslp-select { flex: 1; min-width: 0; }
.bslp-select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%236B717C' stroke-width='2' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center/16px no-repeat; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 32px 10px 12px; min-height: 44px; font-size: 14.5px; }
.bslp-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; }
.bslp-tabs::-webkit-scrollbar { display: none; }
.bslp-tab { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.bslp-tab i { font-style: normal; opacity: .6; margin-left: 4px; }
.bslp-tab.is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
@media (min-width: 900px) { .bslp-toolbar { grid-template-columns: 1fr auto; } .bslp-tabs { grid-column: 1 / -1; margin: 0; padding: 0; } }

.bslp-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.bslp-item { min-width: 0; display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; cursor: pointer; text-align: left; width: 100%; transition: border-color .15s, box-shadow .15s; }
.bslp-item:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(15,23,42,.06); }
.bslp-ava { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: var(--brand-soft); color: var(--brand); overflow: hidden; }
.bslp-ava img { width: 100%; height: 100%; object-fit: cover; }
.bslp-item__body { flex: 1; min-width: 0; }
.bslp-item__name { display: block; font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bslp-item__meta { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bslp-item__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.bslp-item__date { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.bslp-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 9px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.bslp-badge--new { background: var(--accent-soft); color: var(--ink); }
.bslp-badge--new::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.bslp-badge--contacted { background: #E8F0FE; color: #1A56C4; }
.bslp-badge--qualified { background: #F3E8FD; color: #7B2CBF; }
.bslp-badge--application { background: #FFF4E0; color: #A35F00; }
.bslp-badge--completed { background: #E3F5EC; color: var(--ok); }
.bslp-badge--lost { background: #F1F2F4; color: #6B717C; }
.bslp-src { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.bslp-empty { text-align: center; padding: 46px 20px; color: var(--muted); background: #fff; border-radius: var(--r); border: 1.5px dashed var(--line); }
.bslp-empty strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.bslp-more { text-align: center; margin-top: 14px; }
.bslp-skel { height: 72px; border-radius: var(--r); background: linear-gradient(90deg, #eceef1 25%, #f6f7f8 50%, #eceef1 75%); background-size: 200% 100%; animation: bslp-sh 1.2s infinite; }
@keyframes bslp-sh { to { background-position: -200% 0; } }

/* ── Panels & forms ── */
.bslp-panel { background: var(--card); border-radius: 18px; border: 1px solid var(--line); padding: 18px 16px; }
@media (min-width: 900px) { .bslp-panel { padding: 24px 26px; max-width: 760px; } }
.bslp-form h3 { margin: 4px 0 12px; font-size: 16px; }
.bslp-form h3:not(:first-child) { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.bslp-field { display: block; margin-bottom: 13px; }
.bslp-field > span { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.bslp-field > span small { font-weight: 400; color: var(--muted); }
.bslp-field input:not([type=checkbox]):not([type=radio]), .bslp-field textarea, .bslp-field select { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 13px; font-size: 16px; outline: none; background: #fff; }
.bslp-field input:focus, .bslp-field textarea:focus, .bslp-field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.bslp-field textarea { resize: vertical; min-height: 92px; line-height: 1.45; }
.bslp-help { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.bslp-grid2 { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .bslp-grid2 { grid-template-columns: 1fr 1fr; } }
.bslp-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.bslp-chip { position: relative; }
.bslp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bslp-chip span { display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 13px; font-size: 13.5px; cursor: pointer; background: #fff; line-height: 1.3; }
.bslp-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.bslp-chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--brand-soft); }
.bslp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 10px 0; line-height: 1.45; }
.bslp-check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--brand); }
.bslp-form__actions { position: sticky; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0)); padding: 16px 0 6px; margin-top: 8px; display: flex; gap: 10px; }
.bslp-form__actions .bslp-btn { flex: 1; min-height: 50px; font-size: 16px; }
@media (min-width: 900px) { .bslp-form__actions { position: static; background: none; } }

/* Photo capture */
.bslp-photo { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--brand-softer); }
.bslp-photo__img { width: 92px; height: 92px; border-radius: 16px; flex: none; background: #fff center/cover no-repeat; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); overflow: hidden; }
.bslp-photo__img img { width: 100%; height: 100%; object-fit: cover; }
.bslp-photo__ctl { flex: 1; display: grid; gap: 8px; }
.bslp-photo__ctl .bslp-btn { min-height: 42px; }
.bslp-file { position: relative; overflow: hidden; }
.bslp-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Camera overlay */
.bslp-cam { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; }
.bslp-cam video { flex: 1; width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.bslp-cam video.is-mirror { transform: scaleX(-1); }
.bslp-cam__bar { display: flex; align-items: center; justify-content: space-around; padding: 18px 12px calc(18px + env(safe-area-inset-bottom)); background: #000; }
.bslp-cam__shutter { width: 74px; height: 74px; border-radius: 50%; border: 5px solid #fff; background: rgba(255,255,255,.25); cursor: pointer; }
.bslp-cam__shutter:active { background: #fff; }

/* ── Lead sheet ── */
.bslp-sheet { position: fixed; inset: 0; z-index: 60; }
.bslp-sheet__backdrop { position: absolute; inset: 0; background: rgba(10,14,22,.45); animation: bslp-fade .2s; }
.bslp-sheet__panel { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; animation: bslp-up .22s ease-out; }
@media (min-width: 900px) { .bslp-sheet__panel { left: auto; width: 560px; box-shadow: -10px 0 40px rgba(0,0,0,.15); animation: bslp-left .22s ease-out; } }
@keyframes bslp-fade { from { opacity: 0; } }
@keyframes bslp-up { from { transform: translateY(30px); opacity: 0; } }
@keyframes bslp-left { from { transform: translateX(40px); opacity: 0; } }
.bslp-sheet__head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: calc(8px + env(safe-area-inset-top)) 8px 8px; background: var(--brand); color: var(--brand-ink); }
.bslp-sheet__head h2 { margin: 0; font-size: 17px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bslp-sheet__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 14px calc(30px + env(safe-area-inset-bottom)); }
.bslp-profile { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.bslp-profile .bslp-ava { width: 64px; height: 64px; font-size: 20px; cursor: zoom-in; }
.bslp-profile h3 { margin: 0; font-size: 19px; }
.bslp-profile p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.bslp-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.bslp-action { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 4px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--brand); font-size: 12px; font-weight: 650; cursor: pointer; }
.bslp-action--wa { color: #128C4A; }
.bslp-action.is-off { opacity: .35; pointer-events: none; }
.bslp-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.bslp-card h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bslp-dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 10px; margin: 0; font-size: 14px; }
.bslp-dl dt { color: var(--muted); }
.bslp-dl dd { margin: 0; word-break: break-word; }
.bslp-wa-preview { white-space: pre-wrap; background: #E7FFDB; border-radius: 12px 12px 12px 4px; padding: 12px 13px; font-size: 14px; line-height: 1.45; color: #111; margin-bottom: 10px; }
.bslp-bigphoto { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 20px; }
.bslp-bigphoto img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* ── Overview ── */
.bslp-row { margin-bottom: 12px; }
.bslp-statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 700px) { .bslp-statgrid { grid-template-columns: repeat(4, 1fr); } }
.bslp-stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.bslp-stat b { display: block; font-size: 26px; color: var(--ink); line-height: 1.1; }
.bslp-stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.bslp-charts { display: grid; gap: 12px; }
@media (min-width: 900px) { .bslp-charts { grid-template-columns: 1fr 1fr; } .bslp-charts .bslp-card--wide { grid-column: 1 / -1; } }
.bslp-cols { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 18px; }
.bslp-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.bslp-col__bar { width: 100%; max-width: 34px; background: var(--brand); border-radius: 6px 6px 2px 2px; min-height: 2px; position: relative; }
.bslp-col__bar.is-current { background: var(--accent); }
.bslp-col__bar i { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.bslp-col span { font-size: 10.5px; color: var(--muted); }
.bslp-hbar { display: grid; grid-template-columns: minmax(90px, 40%) 1fr 34px; align-items: center; gap: 10px; font-size: 13px; margin: 9px 0; }
.bslp-hbar__track { height: 10px; background: var(--brand-softer); border-radius: 999px; overflow: hidden; }
.bslp-hbar__fill { height: 100%; background: var(--brand); border-radius: 999px; }
.bslp-hbar b { text-align: right; }
.bslp-hbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── QR ── */
.bslp-qr { text-align: center; }
@media (min-width: 900px) { .bslp-qr { max-width: 520px; } }
.bslp-qr__card { background: #fff; border-radius: 18px; padding: 12px; display: inline-block; border: 1px solid var(--line); }
.bslp-qr__card canvas { width: min(300px, 72vw); height: auto; display: block; }
.bslp-linkbox { text-align: left; margin-top: 22px; }
.bslp-linkbox label { font-size: 13px; font-weight: 650; display: block; margin-bottom: 6px; }
.bslp-linkbox__row { display: flex; gap: 8px; }
.bslp-linkbox__row input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; background: var(--bg); }

/* ── Toast ── */
.bslp-toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: #15171C; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .2s; z-index: 100; max-width: 90vw; text-align: center; }
.bslp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.bslp-toast.is-err { background: var(--bad); }
@media (min-width: 900px) { .bslp-toast { bottom: 28px; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── WhatsApp card ── */
.bslp-wa .bslp-btn--block { min-height: 50px; font-size: 15px; }
.bslp-sent { text-transform: none; letter-spacing: 0; color: var(--ok); }
.bslp-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.bslp-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; margin: 14px 0 10px; }
.bslp-or::before, .bslp-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── Desktop ── */
.bslp-bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--brand); color: var(--brand-ink); border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; position: sticky; top: 8px; z-index: 5; box-shadow: 0 8px 24px rgba(15,23,42,.15); }
.bslp-bulk strong { margin-right: 6px; }
.bslp-bulk .bslp-select { min-width: 200px; color: var(--ink); }
.bslp-bulk .bslp-btn--primary { background: var(--accent); color: var(--accent-ink); }
.bslp-tablewrap { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: auto; }
.bslp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bslp-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 10px; background: #FAFBFC; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.bslp-table td { padding: 10px 10px; border-bottom: 1px solid #EEF0F3; vertical-align: middle; }
.bslp-table tbody tr { cursor: pointer; transition: background .12s; }
.bslp-table tbody tr:hover { background: var(--brand-softer); }
.bslp-table tbody tr.is-sel { background: var(--brand-soft); }
.bslp-table tbody tr:last-child td { border-bottom: 0; }
.bslp-table .c-sel { width: 40px; text-align: center; }
.bslp-table .c-sel input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }
.bslp-table .c-date { color: var(--muted); white-space: nowrap; font-size: 13px; }
.bslp-cell-contact a:nth-child(2) { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.bslp-table td.is-due { color: var(--warn); font-weight: 700; }
.bslp-cell-client { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.bslp-cell-client b { display: block; font-weight: 650; }
.bslp-cell-client small { display: block; color: var(--muted); font-size: 12.5px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bslp-ava--sm { width: 36px; height: 36px; font-size: 13px; }
.bslp-cell-contact a { display: block; color: var(--ink-2); text-decoration: none; font-size: 13px; white-space: nowrap; }
.bslp-cell-contact a:hover { color: var(--brand); text-decoration: underline; }
.bslp-cell-int { max-width: 210px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.bslp-cell-int i { font-style: normal; color: var(--muted); font-size: 12px; }
.bslp-srcpill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: #F1F2F4; color: var(--ink-2); white-space: nowrap; }
.bslp-srcpill--qr { background: var(--accent-soft); }
.bslp-srcpill--manual { background: var(--brand-soft); color: var(--brand); }
.bslp-stsel { appearance: none; -webkit-appearance: none; border: 0; border-radius: 99px; padding: 5px 26px 5px 11px; font-size: 12.5px; font-weight: 700; cursor: pointer; background: #F1F2F4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23555' stroke-width='2.5' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 8px center/11px no-repeat; }
.bslp-stsel--new { background-color: var(--accent-soft); }
.bslp-stsel--contacted { background-color: #E8F0FE; color: #1A56C4; }
.bslp-stsel--qualified { background-color: #F3E8FD; color: #7B2CBF; }
.bslp-stsel--application { background-color: #FFF4E0; color: #A35F00; }
.bslp-stsel--completed { background-color: #E3F5EC; color: var(--ok); }
.bslp-stsel--lost { background-color: #F1F2F4; color: #6B717C; }
@media (min-width: 900px) {
	.bslp-toolbar { grid-template-columns: minmax(260px, 1fr) auto; }
	.bslp-kpis { grid-template-columns: repeat(3, minmax(0, 220px)); }
	#view-add .bslp-panel, #view-settings .bslp-panel { max-width: 980px; }
	#view-add .bslp-form { display: grid; grid-template-columns: 300px 1fr; gap: 0 32px; }
	#view-add .bslp-form > * { grid-column: 2; }
	#view-add .bslp-form > h3:first-child, #view-add .bslp-form > .bslp-photo, #view-add .bslp-form > #bslp-ph-consent-wrap { grid-column: 1; }
	#view-add .bslp-form > h3:first-child { grid-row: 1; margin-top: 4px; }
	#view-add .bslp-form > .bslp-photo { grid-row: 2 / span 4; flex-direction: column; align-items: stretch; align-self: start; }
	#view-add .bslp-form > #bslp-ph-consent-wrap { grid-row: 6; }
	#view-add .bslp-photo__img { width: 100%; height: 240px; }
	#view-add .bslp-form > h3:nth-of-type(2) { grid-row: 1; margin-top: 4px; padding-top: 0; border-top: 0; }
	#view-add .bslp-form__actions { grid-column: 1 / -1; justify-content: flex-end; }
	#view-add .bslp-form__actions .bslp-btn { flex: 0 0 220px; }
}
@media (max-width: 1360px) { .bslp-cell-contact a:nth-child(2) { display: none; } .bslp-cell-int { max-width: 160px; } .bslp-cell-client { min-width: 0; } .bslp-cell-client small { max-width: 150px; } }
.bslp-btn svg { flex: none; }

.bslp-type { display: inline-block; vertical-align: middle; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: #E8F0FE; color: #1A56C4; margin-left: 4px; }
.bslp-type--protection { background: #FDECEC; color: #B3261E; }
.bslp-table td .bslp-type { margin: 0 0 4px; }
.bslp-h3s { font-size: 13.5px !important; margin: 16px 0 8px !important; padding: 0 !important; border: 0 !important; }
.bslp-typechips .bslp-chip span { padding: 11px 18px; font-size: 15px; font-weight: 600; }

/* ── Phone layout for filters and status tabs ── */
@media (max-width: 899px) {
	.bslp-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.bslp-filters .bslp-select { width: 100%; min-width: 0; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
	.bslp-filters #bslp-f-adviser { grid-column: 1 / -1; }
	.bslp-filters #bslp-export { grid-column: 1 / -1; width: 100%; }
	.bslp-filters:not(:has(#bslp-f-type)) #bslp-f-source { grid-column: 1; }
	.bslp-tabs { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; gap: 6px; }
	.bslp-tab { padding: 7px 12px; font-size: 13px; }
}
.bslp-type--recruit { background: #F3E8FD; color: #7B2CBF; }
