:root {
  --teal: #0F766E; --teal-light: #14968C; --teal-dark: #0B5C56;
  --navy: #0F172A; --slate: #64748B; --slate-200: #E2E8F0; --slate-100: #F1F5F9;
  --cyan: #22D3EE; --paper: #F8FAFC; --white: #FFFFFF; --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body { font-family: 'Inter', sans-serif; color: var(--navy); background: var(--paper); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: 'Sora', sans-serif; font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.node-icon { display: block; }

/* NAV */
nav { position: sticky; top: 0; background: rgba(248,250,252,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--slate-200); z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Sora', sans-serif; font-size: 19px; }
.logo b { font-weight: 700; } .logo span { font-weight: 400; }
.logo-mark { width: 34px; height: 34px; border: 2px solid var(--teal); border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a.text-link { font-size: 15px; color: var(--navy); opacity: 0.75; transition: opacity .15s; }
.nav-links a.text-link:hover, .nav-links a.text-link.current { opacity: 1; }
.nav-links a.text-link.current { font-weight: 600; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; font-size: 15px; font-weight: 600; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--teal); color: #fff; } .btn-primary:hover { background: var(--teal-light); }
.btn-outline { background: transparent; border: 1.5px solid var(--slate-200); color: var(--navy); } .btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-on-dark { background: #fff; color: var(--teal-dark); } .btn-on-dark:hover { background: #E6FFFB; }
.btn-outline-dark { background: transparent; border: 1.5px solid rgba(255,255,255,.35); color: #fff; } .btn-outline-dark:hover { border-color: #fff; }
.btn-block { width: 100%; padding: 12px 20px; }
.menu-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1.5px solid var(--slate-200); border-radius: 8px; padding: 8px 12px; font-size: 14.5px; font-weight: 600; color: var(--navy); }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--slate-200); flex-direction: column; align-items: stretch; gap: 0; padding: 6px 32px 22px; }
  .nav-links.open { display: flex; }
  .nav-links a.text-link { padding: 13px 0; opacity: 1; border-bottom: 1px solid var(--slate-100); }
  .nav-links .btn { margin-top: 16px; }
}

/* HERO */
.hero { position: relative; background: var(--teal-dark); color: #fff; padding: 100px 0 0; overflow: hidden; }
.hero-motif { position: absolute; top: -140px; right: -180px; width: 640px; height: 640px; opacity: .14; pointer-events: none; }
.hero-motif-2 { position: absolute; bottom: -220px; left: -200px; width: 480px; height: 480px; opacity: .09; pointer-events: none; transform: rotate(24deg); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: end; }
.hero-copy { padding-bottom: 76px; }
.hero h1 { font-size: 56px; font-weight: 700; margin-bottom: 22px; max-width: 12ch; }
.hero p.lead { font-size: 18px; color: #CFEFEB; max-width: 42ch; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; margin-bottom: 14px; }
.hero-note { font-size: 13.5px; color: #8FD0C7; }
.transcript-card { background: #fff; color: var(--navy); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); transform: translateY(64px); }
.transcript-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--slate-200); font-size: 13px; color: var(--slate); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; }
.transcript-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; min-height: 240px; }
.msg { max-width: 82%; font-size: 14.5px; padding: 10px 14px; border-radius: 12px; }
.msg.user { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 3px; }
.msg.bot { align-self: flex-start; background: var(--slate-100); border-bottom-left-radius: 3px; }
.hero-spacer { height: 64px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 38px; max-width: none; }
  .hero-copy { padding-bottom: 40px; } .transcript-card { transform: translateY(40px); } .hero-spacer { height: 40px; }
}

/* STATS */
.stats-band { padding: 0 0 90px; }
.stats-strip { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--slate-200); border-radius: var(--radius); overflow: hidden; background: #fff; }
.stat { padding: 20px 22px; border-right: 1px solid var(--slate-200); } .stat:last-child { border-right: none; }
.stat .num { font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 700; color: var(--teal-dark); }
.stat .label { font-size: 12.5px; color: var(--slate); margin-top: 3px; }
@media (max-width: 700px) { .stats-strip { grid-template-columns: 1fr; } .stat { border-right: none; border-bottom: 1px solid var(--slate-200); } .stat:last-child { border-bottom: none; } }

/* TRUST */
.trust { border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); padding: 28px 0; }
.trust-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; font-size: 14.5px; color: var(--slate); }
.trust-inner strong { color: var(--navy); font-weight: 600; } .trust-sep { color: var(--slate-200); }

/* SECTIONS */
.section { padding: 96px 0; }
.section-head { max-width: 56ch; margin-bottom: 56px; }
.section-head h2 { font-size: 32px; margin-bottom: 14px; }
.section-head p { color: var(--slate); font-size: 16.5px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.step { padding-top: 8px; border-top: 2px solid var(--slate-200); }
.step .idx { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 600; color: var(--teal); margin-bottom: 14px; display: block; }
.step h3 { font-size: 19px; margin-bottom: 10px; } .step p { color: var(--slate); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

/* SCOPE */
.scope-section { background: var(--slate-100); }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--slate-200); border: 1px solid var(--slate-200); border-radius: 12px; overflow: hidden; }
.scope-col { background: #fff; padding: 32px 30px; }
.scope-col h3 { font-size: 17px; margin-bottom: 16px; }
.scope-col.does h3 { color: var(--teal-dark); } .scope-col.not h3 { color: var(--slate); }
.scope-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.scope-list li { font-size: 14.5px; padding-left: 20px; position: relative; }
.scope-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.scope-col.not .scope-list li { color: var(--slate); } .scope-col.not .scope-list li::before { background: var(--slate-200); }
@media (max-width: 800px) { .scope-grid { grid-template-columns: 1fr; } }

/* DASHBOARD */
.dash-section { background: var(--navy); padding: 96px 0; position: relative; overflow: hidden; }
.dash-motif { position: absolute; top: -100px; left: -140px; width: 420px; height: 420px; opacity: .06; transform: rotate(-16deg); pointer-events: none; }
.dash-section .section-head h2 { color: #fff; position: relative; } .dash-section .section-head p { color: #94A3B8; position: relative; }
.dashboard { position: relative; display: grid; grid-template-columns: 210px 1fr; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.dash-side { background: var(--slate-100); border-right: 1px solid var(--slate-200); padding: 22px 0; }
.dside-logo { padding: 0 20px 20px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--slate-200); margin-bottom: 12px; }
.dside-item { padding: 10px 20px; font-size: 14px; color: var(--slate); display: flex; align-items: center; gap: 10px; }
.dside-item.active { color: var(--teal); font-weight: 600; background: #fff; border-right: 2px solid var(--teal); }
.dside-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.dash-main { padding: 26px 28px; }
.dash-main h4 { font-family: 'Sora', sans-serif; font-size: 17px; margin-bottom: 4px; }
.dash-main h5 { font-family: 'Sora', sans-serif; font-size: 14px; margin: 4px 0 8px; }
.dash-main .sub { font-size: 13px; color: var(--slate); margin-bottom: 18px; }
.dash-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 24px; }
.dcard { border: 1px solid var(--slate-200); border-radius: 8px; padding: 14px 16px; }
.dcard .num { font-family: 'Sora', sans-serif; font-size: 21px; font-weight: 600; } .dcard .label { font-size: 12.5px; color: var(--slate); margin-top: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--slate); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--slate-200); font-size: 12.5px; }
td { padding: 10px; border-bottom: 1px solid var(--slate-100); }
.pill { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.pill.new { background: #DCFCE7; color: #15803D; } .pill.replied { background: #DBEAFE; color: #1D4ED8; } .pill.passed { background: var(--slate-100); color: var(--slate); }
@media (max-width: 800px) { .dashboard { grid-template-columns: 1fr; } .dash-side { display: none; } .dash-cards { grid-template-columns: 1fr; } }

/* PRICING + SIGN-UP */
fieldset { border: none; min-width: 0; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.plan-opt { position: relative; }
.plan-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; margin: 0; }
.plan { position: relative; height: 100%; background: #fff; border: 1.5px solid var(--slate-200); border-radius: 14px; padding: 34px 32px 30px; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, background .15s; }
.plan-opt:hover .plan { border-color: #9AD1CB; }
.plan-opt input:checked + .plan { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); background: #F3FBFA; }
.plan-opt input:focus-visible + .plan { outline: 2px solid var(--teal); outline-offset: 3px; }
.plan-check { position: absolute; top: 26px; right: 26px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--slate-200); background: #fff; }
.plan-opt input:checked + .plan .plan-check { border-color: var(--teal); background: var(--teal); }
.plan-opt input:checked + .plan .plan-check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.plan-tag { align-self: flex-start; font-size: 12.5px; font-weight: 600; color: var(--teal-dark); background: #DDF4F0; padding: 4px 10px; border-radius: 20px; margin-bottom: 16px; }
.plan h3 { font-size: 20px; margin-bottom: 6px; padding-right: 40px; }
.plan .plan-for { font-size: 14px; color: var(--slate); margin-bottom: 24px; min-height: 42px; }
.plan .price { font-family: 'Sora', sans-serif; font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.plan .price-note { font-size: 14px; color: var(--slate); margin: 8px 0 26px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; flex: 1; }
.plan li { font-size: 14.5px; padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.plan-cta { font-size: 14.5px; font-weight: 600; color: var(--teal); padding-top: 18px; border-top: 1px solid var(--slate-200); }
.plan-cta .on { display: none; }
.plan-opt input:checked + .plan .plan-cta .on { display: inline; }
.plan-opt input:checked + .plan .plan-cta .off { display: none; }
.signup-card { padding: 34px; }
.signup-card h3 { font-size: 20px; margin-bottom: 18px; }
.choice-summary { background: #F0FDFA; border: 1px solid #CCEFEA; border-radius: 8px; padding: 12px 16px; margin-bottom: 24px; font-size: 14.5px; color: var(--slate); }
.choice-summary strong { color: var(--navy); }
.choice-summary.chosen { color: var(--navy); }
.price-foot { margin-top: 18px; font-size: 13.5px; color: var(--slate); }
@media (max-width: 800px) { .pricing-grid { grid-template-columns: 1fr; } .plan .plan-for { min-height: 0; } }

/* CONTACT + FORMS */
.contact-section { background: var(--slate-100); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.contact-copy h2 { font-size: 32px; margin-bottom: 14px; }
.contact-copy p { color: var(--slate); font-size: 16.5px; max-width: 38ch; }
.form-card { background: #fff; border: 1px solid var(--slate-200); border-radius: 14px; padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font-family: inherit; font-size: 15px; color: var(--navy); background: #fff; border: 1.5px solid var(--slate-200); border-radius: 8px; padding: 11px 13px; transition: border-color .15s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { margin-top: 16px; font-size: 14.5px; padding: 12px 14px; border-radius: 8px; background: #DCFCE7; color: #15803D; display: none; }
.form-status.show { display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } .field-row { grid-template-columns: 1fr; gap: 0; } }

/* LOGIN */
.login-page { min-height: 100vh; background: var(--teal-dark); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.login-top { padding: 28px 32px; position: relative; display: flex; justify-content: space-between; align-items: center; }
.login-top .logo { color: #fff; } .login-top .logo-mark { border-color: #fff; }
.login-top a.back { color: #CFEFEB; font-size: 14.5px; } .login-top a.back:hover { color: #fff; }
.login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 20px 72px; position: relative; }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 14px; padding: 36px 34px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
.login-card h1 { font-size: 26px; margin-bottom: 8px; }
.login-card .intro { color: var(--slate); font-size: 15px; margin-bottom: 26px; }
.login-links { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 22px; font-size: 14px; }
.login-links a, .link-btn { color: var(--teal); font-weight: 600; background: none; font-size: 14px; padding: 0; }
.login-links a:hover, .link-btn:hover { text-decoration: underline; }
.login-foot { margin-top: 22px; text-align: center; font-size: 14px; color: var(--slate); }
.view { display: none; } .view.active { display: block; }
.login-motif { position: absolute; right: -160px; bottom: -180px; width: 560px; height: 560px; opacity: .1; pointer-events: none; }

/* FOOTER */
footer { border-top: 1px solid var(--slate-200); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 26px; font-size: 14px; color: var(--slate); flex-wrap: wrap; }
.footer-links a:hover { color: var(--navy); } .footer-copy { font-size: 13.5px; color: var(--slate); }

/* CONTACT FORM: anti-spam + feedback */
.hp-field { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status.error { background: #FEE2E2; color: #B91C1C; margin: 0 0 20px; }
.form-status.error ul { margin: 0; padding-left: 18px; }
.contact-success { padding: 12px 4px; }
.contact-success h3 { font-size: 22px; margin-bottom: 10px; color: var(--teal-dark); }
.contact-success p { color: var(--slate); font-size: 16px; }
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--slate); }
.btn[disabled] { opacity: .7; cursor: not-allowed; }

/* =====================================================================
   MEMBERS AREA (/members/)
   Builds on the DASHBOARD block above: the logged-in area is the home
   page "Every conversation, in one place" preview made full size, with
   working navigation, tables, forms and chat transcripts.
   ===================================================================== */

/* Top bar */
.mb-top { background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.mb-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.mb-top .logo { color: #fff; } .mb-top .logo-mark { border-color: #fff; }
.mb-top-user { display: flex; align-items: center; gap: 22px; font-size: 14.5px; }
.mb-top-name { color: #94A3B8; }
.mb-logout { margin: 0; }
.mb-top .link-btn { color: #CFEFEB; } .mb-top .link-btn:hover { color: #fff; }

/* Shell */
.members-shell { padding: 40px 0 64px; min-height: calc(100vh - 72px - 64px); }
.members-shell .dashboard { min-height: 620px; }
.members-shell .dash-main { min-width: 0; padding: 30px 32px; }
.members-shell .dash-main h4 { font-size: 20px; }
.members-shell .dash-main h5 { font-size: 15px; }
.members-shell .dash-main .sub { margin-bottom: 0; }
.members-shell a.dside-item { transition: color .15s; }
.members-shell a.dside-item:hover { color: var(--navy); }
.members-shell a.dside-item.active:hover { color: var(--teal); }
.dside-badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 20px; background: var(--teal); color: #fff; font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.6; }

/* Page heading row */
.mb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.mb-back { margin-bottom: 14px; font-size: 14px; }
.mb-back a, .mb-link { color: var(--teal); font-weight: 600; font-size: 14px; }
.mb-back a::before { content: "\2190\00a0"; }
.mb-back a:hover, .mb-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.mb-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 10px; }
.members-shell .mb-section-head h5 { margin: 0; }
.mb-note, .mb-hint { font-size: 13.5px; color: var(--slate); margin-top: 6px; }
.mb-panel .mb-hint { margin-bottom: 14px; }
.mb-nowrap { white-space: nowrap; }
.mb-right { text-align: right; }
.mb-prewrap { white-space: pre-wrap; }

/* Period switch */
.mb-segment { display: inline-flex; border: 1px solid var(--slate-200); border-radius: 20px; padding: 3px; background: #fff; }
.mb-segment a { padding: 5px 13px; border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--slate); }
.mb-segment a:hover { color: var(--navy); }
.mb-segment a.on { background: var(--teal); color: #fff; }

/* Smaller buttons inside the app */
.btn.mb-btn-sm { padding: 8px 16px; font-size: 14px; }
.mb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 22px; }

/* Alerts (same colours as .form-status) and empty states */
.mb-alert { margin-bottom: 20px; padding: 12px 14px; border-radius: 8px; font-size: 14.5px; background: #DCFCE7; color: #15803D; }
.mb-alert-error { background: #FEE2E2; color: #B91C1C; }
.mb-alert ul { padding-left: 18px; }
.mb-empty { border: 1.5px dashed var(--slate-200); border-radius: var(--radius); padding: 26px 28px; background: var(--paper); }
.members-shell .mb-empty h5 { margin: 0 0 6px; }
.mb-empty p { color: var(--slate); font-size: 14.5px; }
.mb-empty a { color: var(--teal); font-weight: 600; }
.mb-empty-sm { padding: 16px 20px; }

/* Tables */
.mb-table-wrap { overflow-x: auto; border: 1px solid var(--slate-200); border-radius: var(--radius); }
.mb-table th { background: var(--paper); padding: 10px 14px; white-space: nowrap; }
.mb-table td { padding: 12px 14px; vertical-align: middle; }
.mb-table tbody tr:last-child td { border-bottom: none; }
.mb-table tbody tr:hover { background: #FAFCFD; }
.mb-row-link { font-weight: 600; }
.mb-row-link:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.mb-cell-contact span { display: block; }
.mb-cell-contact span + span { color: var(--slate); font-size: 12.5px; }

/* Lead status pills (new, replied and passed are defined above) */
.pill { white-space: nowrap; }
.pill.booked, .pill.lead { background: #DDF4F0; color: var(--teal-dark); }

/* Search, filters, pager */
.mb-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.mb-search input[type="search"],
.mb-search input[type="date"] { flex: 1 1 260px; min-width: 0; font-family: inherit; font-size: 14.5px; color: var(--navy); background: #fff; border: 1.5px solid var(--slate-200); border-radius: 8px; padding: 9px 12px; }
.mb-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,.15); }
.mb-search-dates input[type="date"] { flex: 0 1 180px; }
.mb-date label { display: block; font-size: 13px; font-weight: 600; color: var(--slate); margin-bottom: 4px; }
.mb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.mb-chip { padding: 5px 12px; border: 1px solid var(--slate-200); border-radius: 20px; font-size: 13px; font-weight: 600; background: #fff; }
.mb-chip:hover { border-color: var(--teal); }
.mb-chip span { color: var(--slate); font-weight: 500; margin-left: 2px; }
.mb-chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.mb-chip.on span { color: #CFEFEB; }
.mb-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 13.5px; color: var(--slate); }
.mb-pager a { color: var(--teal); font-weight: 600; }
.mb-pager a:first-child::before { content: "\2190\00a0"; }
.mb-pager a:last-child::after { content: "\00a0\2192"; }

/* Lead details */
.mb-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--slate-200); border-radius: var(--radius); overflow: hidden; }
.mb-dl > div { padding: 13px 16px; border-bottom: 1px solid var(--slate-100); }
.mb-dl > div:nth-child(odd):not(.mb-dl-wide) { border-right: 1px solid var(--slate-100); }
.mb-dl .mb-dl-wide { grid-column: 1 / -1; border-bottom: none; }
.mb-dl dt { font-size: 12.5px; font-weight: 500; color: var(--slate); margin-bottom: 2px; }
.mb-dl dd { font-size: 14.5px; overflow-wrap: anywhere; }
.mb-dl dd a { color: var(--teal); }
.mb-dl dd a:hover { text-decoration: underline; }
.mb-status-form { display: flex; align-items: center; gap: 8px; }
.mb-status-form label { font-size: 13px; font-weight: 600; color: var(--slate); }
.mb-status-form select { font-family: inherit; font-size: 14px; color: var(--navy); background: #fff; border: 1.5px solid var(--slate-200); border-radius: 8px; padding: 7px 10px; }

/* Chat transcripts (bubbles match .msg in the hero) */
.mb-chat { display: flex; flex-direction: column; gap: 12px; padding: 20px 18px; border: 1px solid var(--slate-200); border-radius: var(--radius); max-height: 70vh; overflow-y: auto; }
.mb-msg { max-width: 78%; font-size: 14.5px; padding: 10px 14px; border-radius: 12px; }
.mb-msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.mb-msg.bot { align-self: flex-start; background: var(--slate-100); border-bottom-left-radius: 3px; }
.mb-msg.user { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 3px; }
.mb-msg.plain { align-self: stretch; max-width: none; background: var(--slate-100); }
.mb-msg-who { display: block; font-size: 11.5px; font-weight: 600; opacity: .7; margin-bottom: 2px; }

/* Settings */
.mb-panel { padding: 26px 0; border-top: 1px solid var(--slate-200); }
.mb-panel:first-of-type { border-top: none; padding-top: 0; }
.members-shell .mb-panel h5 { margin: 0 0 8px; }
.mb-panel > p { color: var(--slate); font-size: 14.5px; max-width: 68ch; margin-bottom: 14px; }
.mb-panel > p strong { color: var(--navy); }
.mb-panel form { max-width: 720px; }
.mb-panel code { font-size: .9em; background: var(--slate-100); padding: 1px 5px; border-radius: 4px; }
.field textarea.mb-code { min-height: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; background: var(--paper); }
.mb-copy-status { margin-left: 10px; font-size: 13.5px; font-weight: 600; color: var(--teal); }
.mb-subhead { margin: 26px 0 8px; font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600; }
.mb-history { list-style: none; max-width: 720px; max-height: 320px; overflow-y: auto; border: 1px solid var(--slate-200); border-radius: var(--radius); }
.mb-history li { padding: 12px 14px; border-bottom: 1px solid var(--slate-100); font-size: 14px; }
.mb-history li:last-child { border-bottom: none; }
.mb-history-when { display: block; font-size: 12px; font-weight: 600; color: var(--slate); margin-bottom: 2px; }

/* Footer */
.mb-foot { padding: 22px 0; font-size: 13.5px; color: var(--slate); text-align: center; border-top: none; }
.mb-foot a { color: var(--teal); font-weight: 600; }

/* Login page alerts */
.login-card .mb-alert { margin-bottom: 18px; }

/* Small screens: the preview hides .dash-side at 800px, the app turns it into tabs */
@media (max-width: 800px) {
  .members-shell { padding: 20px 0 40px; }
  .members-shell .wrap { padding: 0 16px; }
  .members-shell .dashboard { min-height: 0; }
  .members-shell .dash-side { display: flex; align-items: stretch; padding: 0; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--slate-200); -webkit-overflow-scrolling: touch; }
  .members-shell .dside-logo { display: none; }
  .members-shell a.dside-item { flex: 0 0 auto; padding: 14px 16px; white-space: nowrap; }
  .members-shell .dside-item.active { border-right: none; border-bottom: 2px solid var(--teal); }
  .members-shell .dash-main { padding: 22px 18px; }
  .mb-dl { grid-template-columns: minmax(0, 1fr); }
  .mb-dl > div:nth-child(odd):not(.mb-dl-wide) { border-right: none; }
  .mb-msg { max-width: 90%; }
  .mb-top-name { display: none; }
  .mb-top-inner { padding: 0 16px; }
}
@media (max-width: 560px) {
  .mb-status-form { flex-wrap: wrap; }
  .mb-search .btn { width: 100%; }
}