/* JobsForYou Telecalling CRM — purple primary, neutral surfaces, semantic status colours only. */
:root {
  /* Owner palette (8 Nov 2026) */
  --sidebar-bg: #3B0764;
  --sidebar-text: #E9D5FF;
  --sidebar-title: #FFFFFF;
  --sidebar-active-bg: #C026D3;
  --sidebar-active-text: #FFFFFF;
  --page-bg: #FDFAFF;
  --text: #2E1065;
  --text-muted: #6B6280;
  --border: #EDE4F5;
  --primary: #A21CAF;
  --primary-hover: #86198F;
  --on-primary: #FFFFFF;
  --shree-bg: #FFF7ED;
  --shree-border: #FB923C;
  --shree-text: #9A3412;
  --prime-bg: #ECFEFF;
  --prime-border: #22D3EE;
  --prime-text: #155E75;
  --new-bg: #FAF5FF;
  --new-border: #D8B4FE;
  --new-text: #6B21A8;
  --brand-900: var(--sidebar-bg);
  --brand-700: var(--primary-hover);
  --brand-600: var(--primary);
  --brand-100: #F3E8FF;
  --brand-50: var(--new-bg);
  --ink: var(--text);
  --ink-2: #4A3D66;
  --muted: var(--text-muted);
  --line: var(--border);
  --line-2: #DCCDEA;
  --bg: var(--page-bg);
  --surface: #ffffff;
  --success: #17803d;
  --success-bg: #e8f5ec;
  --warning: #a35a00;
  --warning-bg: #fdf3e2;
  --danger: #b42323;
  --danger-bg: #fbeaea;
  --neutral-bg: #F4EEF9;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(46, 16, 101, .06);
  --focus: 0 0 0 3px rgba(162, 28, 175, .35);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 20px; font-weight: 650; }
h2 { font-size: 15px; font-weight: 650; }
h3 { font-size: 13px; font-weight: 650; color: var(--ink-2); }
p { margin: 0 0 8px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; }
.row input, .row select { width: auto; }
.row input.grow, .row input[type=search] { flex: 1 1 180px; min-width: 0; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar select { max-width: 260px; }
.mt { margin-top: 16px; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--brand-50); text-decoration: none; }
.btn-primary { background: var(--brand-600); border-color: var(--brand-600); color: var(--on-primary); }
.btn-primary:hover { background: var(--brand-700); }
.btn-danger { color: var(--danger); border-color: #e6b8b8; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn-lg { height: 48px; font-size: 16px; padding: 0 20px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-700); font: inherit; cursor: pointer; }

label { display: block; font-weight: 550; margin-bottom: 4px; color: var(--ink-2); }
.field { margin-bottom: 12px; }
fieldset.plain { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 3px; }
.field-error { font-size: 12px; color: var(--danger); margin-top: 3px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=tel],
input[type=number], input[type=file], select, textarea {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #fff; color: var(--ink); font: inherit;
}
input[type=file] { padding: 6px; height: auto; }
textarea { height: auto; min-height: 80px; padding: 8px 10px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: var(--focus); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.check input { margin-top: 3px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 64px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 26px; padding: 0 8px;
  border: 0; background: transparent; color: var(--brand-700); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.card-pad { padding: 16px; }
.card-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.alert { padding: 10px 14px; border-radius: var(--radius); border: 1px solid; margin-bottom: 16px; }
.alert-success { background: var(--success-bg); border-color: #b9dfc5; color: #0f5a2b; }
.alert-error { background: var(--danger-bg); border-color: #efc2c2; color: #8a1a1a; }
.alert-info { background: var(--new-bg); border-color: var(--new-border); color: var(--new-text); }
.alert-warning { background: var(--warning-bg); border-color: #f1d6a8; color: #7a4300; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }

.chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--neutral-bg); color: var(--ink-2); }
.chip-success { background: var(--success-bg); color: var(--success); }
.chip-warning { background: var(--warning-bg); color: var(--warning); }
.chip-danger { background: var(--danger-bg); color: var(--danger); }
.chip-muted { background: var(--neutral-bg); color: var(--muted); }
.chip-brand { background: var(--new-bg); color: var(--new-text); box-shadow: inset 0 0 0 1px var(--new-border); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); margin-right: 4px; }
.dot-on { background: var(--success); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; font-weight: 650; color: var(--muted); background: #FAF6FE; position: sticky; top: 0; white-space: nowrap; }
tbody tr:hover { background: var(--brand-50); }
td.wrap { max-width: 260px; overflow-wrap: anywhere; }
.table-compact td { white-space: nowrap; }
.table-compact td.wrap { white-space: normal; min-width: 160px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 16px; flex-wrap: wrap; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 14px 16px; }
.kpi .label { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi .value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi .sub { font-size: 12px; color: var(--muted); }
.kpis-compact { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.kpis-compact .value { font-size: 20px; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.bars { width: 100%; }
.bars text { font-size: 12px; fill: var(--ink-2); }
.bars .bar { fill: var(--brand-600); }
.bars .track { fill: var(--brand-50); }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.dl dt { color: var(--muted); font-size: 13px; }
.dl dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.dl.mt { margin-top: 12px; }
form + .dl { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- filters ---------- */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; align-items: end; }
.filters label { font-size: 12px; margin-bottom: 2px; }
.filters input, .filters select { height: 32px; }
details.more > summary { cursor: pointer; color: var(--brand-700); font-weight: 600; margin: 8px 0; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }

/* ---------- admin shell ---------- */
.admin-shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--brand-900); color: #fff; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 700; font-size: 15px; color: var(--sidebar-title); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--brand-700); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.brand-logo { width: 36px; height: 36px; border-radius: 8px; background: #fff; display: grid; place-items: center; flex: none; overflow: hidden; }
.brand-logo img { width: 32px; height: 32px; display: block; }
.tc-header .brand-logo { width: 30px; height: 30px; }
.tc-header .brand-logo img { width: 28px; height: 28px; }
.auth-logo { display: block; width: 88px; height: 88px; margin: 0 auto 12px; border-radius: 12px; }
.sidebar a { color: var(--sidebar-text); padding: 8px 10px; border-radius: 6px; font-weight: 550; display: block; }
.sidebar a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.sidebar a.active { background: var(--sidebar-active-bg); color: var(--sidebar-active-text); }
.sidebar .spacer { flex: 1; }
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar .who { text-align: right; font-size: 13px; }
.admin-main { padding: 20px 24px 8px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.footer { padding: 16px 24px; color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 8px; }
  .sidebar .brand { width: 100%; padding-bottom: 8px; }
  .sidebar .spacer { display: none; }
  .admin-main, .topbar { padding-left: 12px; padding-right: 12px; }
}

/* ---------- telecaller (mobile-first) ---------- */
.tc-header { position: sticky; top: 0; z-index: 10; background: var(--brand-900); color: #fff; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tc-header .brand { padding: 0; font-size: 14px; }
.tc-header .btn { height: 30px; background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.tc-header .btn:hover { background: rgba(255,255,255,.12); }
.tc-main { max-width: 640px; margin: 0 auto; padding: 12px 12px 4px; }
.tc-profile { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.tc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.tc-stats .kpi { padding: 10px; }
.tc-stats .value { font-size: 20px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; scrollbar-width: none; }
.tabs a { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.tabs a.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.tabs a:hover { text-decoration: none; }
.lead-card { display: block; padding: 12px 14px; color: var(--ink); border-bottom: 1px solid var(--line); }
.lead-card:last-child { border-bottom: 0; }
.lead-card:hover { background: var(--brand-50); text-decoration: none; }
.lead-card .phone { font-size: 17px; font-weight: 700; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.lead-card .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.call-hero { text-align: center; padding: 18px 14px; }
.call-hero .phone { font-size: 26px; font-weight: 750; letter-spacing: .5px; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.btn-call { height: 52px; font-size: 17px; width: 100%; background: var(--success); border-color: var(--success); color: #fff; border-radius: 10px; }
.btn-call:hover { background: #126a32; }
.dispositions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dispositions label { margin: 0; }
.dispositions input { position: absolute; opacity: 0; pointer-events: none; }
.dispositions span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px; text-align: center; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; font-weight: 600; color: var(--ink); cursor: pointer; }
.dispositions input:checked + span { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.dispositions input:focus-visible + span { box-shadow: var(--focus); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
@media (min-width: 700px) { .tc-stats { grid-template-columns: repeat(6, 1fr); } }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; background: linear-gradient(180deg, var(--brand-50), var(--bg)); }
.auth-card { width: 100%; max-width: 400px; padding: 28px 24px; }
.auth-card .brand-mark { width: 44px; height: 44px; font-size: 16px; background: var(--brand-600); color: #fff; margin: 0 auto 12px; }
.auth-title { text-align: center; margin-bottom: 20px; }
.auth-title h1 { font-size: 22px; }
.auth-title p { color: var(--muted); margin-top: 4px; }

/* Toolbar controls keep their natural width (placed last so it overrides the base form rules). */
.row input:not([type=checkbox]):not([type=radio]):not(.grow):not([type=search]), .row select, .toolbar select, .toolbar input[type=date] { width: auto; }
.row input[type=date], .toolbar input[type=date] { width: 150px; }
.table-compact th, .table-compact td { padding: 6px 8px; font-size: 13px; }

/* ---------- phone-first dialer (360–430px first; no horizontal scroll; touch targets ≥ 44px) ---------- */
.tc-main { padding-bottom: 88px; }
.dl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.dl-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; text-align: center; }
.dl-stats b { display: block; font-size: 20px; line-height: 1.1; }
.dl-stats span { font-size: 12px; color: var(--muted); }
.dl-search { display: grid; gap: 6px; margin-bottom: 8px; }
.dl-search input[type=search] { width: 100%; min-height: 44px; }
.dl-search-row { display: flex; gap: 6px; }
.dl-search-row select { flex: 1 1 0; min-width: 0; min-height: 44px; }
.dl-search-row .btn { min-height: 44px; }
.dl-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dl-filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; text-decoration: none; }
.dl-filters a.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dl-row { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0; }
.dl-row.is-zero { border-left: 4px solid var(--danger); }
.dl-row.is-closed { opacity: .65; }
.dl-main { flex: 1 1 auto; display: flex; gap: 10px; align-items: center; padding: 8px 10px; color: inherit; text-decoration: none; min-width: 0; min-height: 56px; }
.dl-main:hover { text-decoration: none; background: var(--brand-50); }
.dl-fod { flex: 0 0 44px; height: 44px; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.dl-fod small { font-size: 11px; font-weight: 600; margin-left: 1px; }
.dl-info { display: grid; gap: 2px; min-width: 0; }
.dl-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-remark { display: block; font-size: 13px; line-height: 1.35; margin-top: 2px; color: var(--muted); }
.dl-remark-zero { color: var(--danger, #b42318); font-weight: 600; }
.dl-remark-payout { color: var(--success, #067647); }
.dl-remark-unknown { color: var(--warning, #7a4300); }
.dl-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.dl-tags .chip { font-size: 11px; }
.dl-call { flex: 0 0 64px; display: grid; place-items: center; background: var(--success); color: #fff; font-weight: 700; text-decoration: none; min-height: 44px; }
.dl-call:hover { text-decoration: none; filter: brightness(1.08); }
.dl-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
.dl-sticky > * { max-width: 616px; margin: 0 auto; }
.dl-actions { display: flex; gap: 8px; justify-content: center; }
.dl-actions .btn { flex: 1 1 0; height: 50px; font-size: 17px; max-width: 300px; }
.dl-actions .btn-call { width: auto; }
.dl-wa { background: #1f9e55; border-color: #1f9e55; color: #fff; }
.dl-wa:hover { background: #188546; }
.dl-back { margin: 0 0 8px; }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.dl-card.is-zero { border-color: var(--danger); }
.dl-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.dl-card h1 { font-size: 20px; margin: 0; overflow-wrap: anywhere; }
.dl-phone { color: var(--muted); font-size: 14px; }
.dl-facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 14px; }
.dl-facts dt { color: var(--muted); }
.dl-facts dd { margin: 0; overflow-wrap: anywhere; }
.dl-stage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.dl-stage li { font-size: 11px; text-align: center; padding: 5px 2px; border-radius: 6px; background: var(--neutral-bg, #F4EEF9); color: var(--muted); }
.dl-stage li.done { background: var(--success); color: #fff; font-weight: 600; }
.dl-warn { margin-top: 8px; background: var(--warning-bg); border: 1px solid #f1d6a8; color: #7a4300; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.dl-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 10px 0 8px; position: sticky; top: 50px; z-index: 5; background: var(--bg, #F8F2FD); padding: 4px 0; }
.dl-tabs a { display: grid; place-items: center; min-height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; font-size: 14px; }
.dl-tabs a[aria-selected="true"] { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.dl-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.dl-panel h2 { font-size: 16px; margin: 0 0 6px; }
.dl-script { font-size: 16px; line-height: 1.55; margin: 0 0 12px; }
.dl-stores, .dl-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dl-stores li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.dl-stores li div:first-child { display: grid; min-width: 0; }
.dl-km { font-weight: 700; color: var(--brand-700); white-space: nowrap; }
.dl-store-actions { grid-column: 1 / -1; display: flex; gap: 6px; }
.dl-store-actions .btn { flex: 1 1 0; min-height: 44px; }
.dl-history li { border-bottom: 1px solid var(--line); padding-bottom: 8px; display: grid; gap: 2px; }
.dl-form fieldset { border: 0; padding: 0; margin: 0 0 10px; }
.dl-form legend { font-weight: 700; margin-bottom: 6px; }
.dl-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.dl-choices label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-size: 15px; }
.dl-choices label:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); font-weight: 600; }
.dl-choices label.off { opacity: .45; cursor: not-allowed; }
.dl-choices input { width: 20px; height: 20px; flex: 0 0 auto; }
.dl-form input[type=text], .dl-form input[type=datetime-local], .dl-form select, .dl-form textarea { width: 100%; min-height: 44px; font-size: 16px; }
.dl-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dl-call-page.js [data-panel] { display: none; }
.dl-call-page.js[data-tab="script"] [data-panel="script"], .dl-call-page.js[data-tab="stores"] [data-panel="stores"],
.dl-call-page.js[data-tab="history"] [data-panel="history"], .dl-call-page.js[data-tab="result"] [data-panel="result"] { display: block; }
@media (max-width: 380px) { .dl-choices { grid-template-columns: 1fr; } .dl-stats b { font-size: 18px; } }

/* Call screen v2: short rider card, move-to-payout box, quick follow-up times */
.dl-store-line { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.dl-more { border-top: 1px solid var(--line); padding-top: 6px; }
.dl-more > summary { cursor: pointer; color: var(--brand-700); font-weight: 600; font-size: 14px; min-height: 36px; display: flex; align-items: center; list-style: none; }
.dl-more > summary::-webkit-details-marker { display: none; }
.dl-more > summary::before { content: "▸"; margin-right: 6px; transition: transform .15s; }
.dl-more[open] > summary::before { transform: rotate(90deg); }
.dl-more > * + * { margin-top: 8px; }
.dl-wa-soft { background: #e8f7ee; border-color: #b7e3c7; color: #146c3a; }
.dl-wa-soft:hover { background: #d6f0e0; }
.dl-none { margin: 0; color: #8a1a1a; }
.dl-choices label.dl-choice-move { border-color: #b7e3c7; }
.dl-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.dl-search-more > summary { font-size: 14px; }

/* Dialer v2: icons, round row buttons, top bar, banners, script blocks, store cards, chip-style results */
.icon { flex: 0 0 auto; display: inline-block; vertical-align: -4px; }
.dl-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--neutral-bg); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.dl-filters a.on .dl-count { background: rgba(255,255,255,.22); color: #fff; }
.dl-btns { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 6px 8px 6px 0; }
.dl-round { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: #fff; text-decoration: none; }
.dl-round:hover { text-decoration: none; filter: brightness(1.08); }
.dl-round-call { background: var(--success); }
.dl-round-wa { background: #1f9e55; }
.dl-row .dl-call { flex: 0 0 44px; min-height: 44px; }
.dl-start span { overflow: hidden; text-overflow: ellipsis; }
.dl-topbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; margin-bottom: 8px; }
.dl-topbar a { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 6px; font-weight: 600; }
.dl-top-next { font-size: 13px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-store-line { display: flex; align-items: center; gap: 6px; }
.dl-store-line .icon { color: var(--muted); }
.dl-code { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--neutral-bg); border-radius: 6px; padding: 1px 6px; }
.dl-meta { font-size: 13px; color: var(--ink-2); }
.dl-banner { margin-top: 8px; border-radius: 12px; padding: 10px 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.dl-banner .btn { min-height: 44px; }
.dl-banner-zero { background: var(--danger-bg); border: 1px solid #efc2c2; color: #8a1a1a; }
.dl-banner-zero .btn { border-color: var(--danger); color: var(--danger); }
.dl-banner-warn { display: grid; justify-content: stretch; }
.dl-block { padding: 8px 0; border-bottom: 1px solid var(--line); }
.dl-block:last-of-type { border-bottom: 0; }
.dl-block h3 { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-700); margin: 0 0 4px; }
.dl-block .dl-script { margin: 0; }
.dl-block-reco { background: var(--success-bg); margin: 4px -12px; padding: 8px 12px; border-bottom: 0; }
.dl-block-reco h3 { color: var(--success); }
.dl-ask { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.6; }
.dl-obj-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dl-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.dl-chip[aria-expanded="true"], .dl-chip.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.dl-obj-reply { margin: 8px 0 0; padding: 8px 10px; background: var(--brand-50); border-radius: 10px; font-size: 15px; }
.dl-store-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; background: var(--surface); }
.dl-store-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.dl-store-head > div { display: grid; min-width: 0; }
.dl-store-head strong { overflow-wrap: anywhere; }
.dl-store-payout { border-color: #b7e3c7; background: var(--success-bg); }
.dl-store-zero { border-color: #efc2c2; }
.dl-store-unknown { border-color: #f1d6a8; background: var(--warning-bg); }
.dl-store-note { margin: 0; font-size: 14px; }
.dl-store-card.is-best { border: 2px solid var(--success); }
.dl-best { display: inline-flex; align-items: center; gap: 2px; width: max-content; font-size: 11px; font-weight: 700; color: var(--success); text-transform: uppercase; }
.dl-stores .dl-store-card { padding: 10px; }
.dl-store-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dl-store-actions .btn-primary { grid-column: 1 / -1; min-height: 48px; font-size: 16px; }
.dl-store-actions .btn { min-height: 44px; padding: 0 8px; }
.dl-wa-preview { background: #e8f7ee; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.dl-wa-preview h3 { display: flex; align-items: center; gap: 4px; color: #146c3a; margin: 0 0 4px; }
.dl-wa-preview p { margin: 0; font-size: 14px; }
.dl-choices label.dl-choice { position: relative; justify-content: center; text-align: center; font-weight: 600; min-height: 48px; }
.dl-choices label.dl-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dl-choices label.dl-choice:has(input:checked) { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.dl-choices label.dl-choice:has(input:focus-visible) { box-shadow: var(--focus); }
.dl-choices-1 { grid-template-columns: 1fr; }
.dl-retry { margin: 0 0 10px; padding: 8px 10px; background: var(--neutral-bg); border-radius: 10px; font-size: 14px; }
.dl-next-step { margin: 0 0 10px; padding: 8px 10px; border-left: 3px solid var(--brand-600); background: var(--brand-50); border-radius: 0 10px 10px 0; font-weight: 600; }
.dl-bar-call { display: flex; gap: 8px; align-items: center; }
.dl-bar-call .btn-call { flex: 1 1 auto; height: 52px; gap: 8px; }
.dl-bar-call .dl-round { width: 52px; height: 52px; flex: 0 0 52px; }
.dl-bar-save { display: none; }
.dl-call-page.js[data-tab="result"] .dl-bar-call { display: none; }
.dl-call-page.js[data-tab="result"] .dl-bar-save { display: block; }
.dl-call-page.js .dl-nojs-submit { display: none; }
.dl-bar-save .btn[disabled] { opacity: .5; cursor: not-allowed; }
