/* Lead Chain additions on top of the MsgCX app.css. Tokens only — no hard-coded colors. */

/* auth pages */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-wrap { width: min(400px, 100%); display: flex; flex-direction: column; gap: 18px; }
.auth-brand { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.auth-brand:hover { text-decoration: none; }
.form-error { background: var(--red-soft); color: var(--red); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px; }

/* source badges */
.badge.src-justdial { background: var(--amber-soft); color: var(--amber); }
.badge.src-indiamart { background: var(--blue-soft); color: var(--blue); }

/* live sign-in */
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.live-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.live-bar .input { font-family: var(--mono); font-size: 12.5px; }
.live-screen { position: relative; background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.live-screen canvas { display: block; width: 100%; height: auto; cursor: pointer; outline: none; }
.live-screen canvas:focus { box-shadow: inset 0 0 0 2px var(--primary); }
.live-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--text-2); }
.live-type { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--border); }
@media (max-width: 1000px) { .live-grid { grid-template-columns: 1fr; } }

/* lead detail */
.json { font-family: var(--mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; overflow: auto; max-height: 420px; margin: 0; white-space: pre-wrap; word-break: break-word; }
.kv.wide { grid-template-columns: 130px 1fr; }

/* small screens: tabs scroll, labels hide */
@media (max-width: 860px) {
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tab span { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .filter-panel { border-right: 0; border-bottom: 1px solid var(--border); }
  .page-body, .page-head { padding-left: 16px; padding-right: 16px; }
  .search input { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

/* segmented filter links (MsgCX styles only buttons) */
.seg-toggle a { color: var(--text-2); font-size: 12px; padding: 4px 10px; background: var(--surface); }
.seg-toggle a:hover { text-decoration: none; background: var(--surface-3); }
.seg-toggle a.on { background: var(--surface-3); color: var(--text); font-weight: 500; }

/* compact select (e.g. interval picker on account cards) */
.select.select-sm { height: 28px; font-size: 12.5px; padding-left: 9px; padding-right: 26px; background-position: right 9px center; width: auto; max-width: 100%; }

/* Long switch labels must not squash the toggle. */
.switch input { flex-shrink: 0; }
