/* ═══════════ WA Panel UI — design tokens ═══════════ */
:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f3f4f6; --surface-3: #eceef1; --border: #e4e7eb; --border-strong: #d1d5db;
  --text: #111827; --text-2: #374151; --muted: #6b7280; --faint: #9ca3af;
  --brand: #0f9d58; --brand-600: #0b7f47; --brand-50: #e8f6ef; --on-brand: #fff;
  --danger: #dc2626; --danger-50: #fef2f2; --warn: #b45309; --warn-50: #fffbeb; --info: #2563eb; --info-50: #eff6ff;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16,24,40,.05); --shadow-md: 0 4px 12px rgba(16,24,40,.08); --shadow-lg: 0 12px 32px rgba(16,24,40,.16);
  --side-w: 252px; --top-h: 60px; --tab-h: 62px;
  --sidebar: #ffffff; --sidebar-text: #4b5563; --sidebar-active: var(--brand-50);
  font-size: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: 15px; margin: 0 0 14px; font-weight: 600; letter-spacing: -.005em; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 600; }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; }
img { max-width: 100%; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[x-cloak] { display: none !important; }

/* ═══════════ layout ═══════════ */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--sidebar); border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 0 12px 12px; z-index: 40; scrollbar-width: thin; }
.side-head { display: flex; align-items: center; justify-content: space-between; height: var(--top-h); padding: 0 6px; flex: none; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 16px; letter-spacing: -.01em; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-dot { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; font-size: 16px; flex: none; color: #fff; }
.brand-logo { width: 32px; height: 32px; border-radius: 9px; object-fit: contain; background: #fff; flex: none; border: 1px solid var(--border); }
.org-chip { display: flex; align-items: center; gap: 8px; margin: 0 2px 10px; padding: 7px 10px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.org-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .org-chip .i { width: 15px; height: 15px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a { display: flex; align-items: center; gap: 11px; color: var(--sidebar-text); padding: 8px 10px; border-radius: var(--radius-sm); font-weight: 500; font-size: 13.5px; }
.nav a .i { color: var(--faint); }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a:hover .i { color: var(--text-2); }
.nav a.active { background: var(--sidebar-active); color: var(--brand-600); font-weight: 600; }
.nav a.active .i { color: var(--brand); }
.nav a span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .count { background: var(--brand); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 11px; font-weight: 700; line-height: 18px; }
.nav .count.warn { background: #f59e0b; }
.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 600; padding: 16px 10px 6px; }
.nav-group summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; border-radius: var(--radius-sm); }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover { color: var(--text-2); }
.nav-group .chev { width: 14px; height: 14px; transition: transform .15s; }
.nav-group[open] .chev { transform: rotate(180deg); }
.powered { font-size: 11px; color: var(--faint); padding: 16px 10px 0; margin-top: auto; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 28px; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
.top-left, .top-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crumb { color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-2); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--border); background: var(--surface); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); margin: 0; }
.status-pill.on { color: var(--brand-600); border-color: color-mix(in srgb, var(--brand) 35%, white); background: var(--brand-50); }
.status-pill.on .dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; padding: 4px 6px 4px 4px; border-radius: 22px; cursor: pointer; font: inherit; color: var(--text); }
.user-btn:hover { background: var(--surface-2); }
.user-meta { display: grid; text-align: left; line-height: 1.2; } .user-meta b { font-size: 13px; } .user-meta small { color: var(--muted); font-size: 11.5px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; font-weight: 700; flex: none; font-size: 14px; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; }
.menu-head { display: grid; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; } .menu-head small { color: var(--muted); }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); border: 0; background: none; font: inherit; color: var(--text-2); cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-2); text-decoration: none; }
.menu form { margin: 0; }
.acting-bar { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 8px 16px; background: #fff7ed; color: #9a3412; border-bottom: 1px solid #fed7aa; font-size: 13px; }
.content { padding: 26px 28px 48px; width: 100%; max-width: 1360px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 5px 0 0; color: var(--muted); }
.scrim { display: none; }
.tabbar { display: none; }
.only-mobile { display: none; }

/* ═══════════ components ═══════════ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.grid { display: grid; gap: 16px; }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.stat { position: relative; }
.stat .label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stat .value { font-size: 28px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.15; }
.stat .sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.meter { height: 6px; background: var(--surface-3); border-radius: 6px; overflow: hidden; margin-top: 10px; }
.meter > span { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.meter.warn > span { background: #f59e0b; } .meter.danger > span { background: var(--danger); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); padding: 7px 14px; border-radius: var(--radius-sm); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 1px rgba(16,24,40,.04); transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:focus-visible, .icon-btn:focus-visible, .nav a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-danger { color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: var(--danger-50); }
.btn-sm { min-height: 30px; padding: 4px 10px; font-size: 12.5px; }
.btn .i { width: 16px; height: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover td { background: #fafbfc; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; padding: 0; -webkit-overflow-scrolling: touch; }
.table-wrap .table th:first-child { border-top-left-radius: var(--radius); } .table-wrap .table th:last-child { border-top-right-radius: var(--radius); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; line-height: 1.5; }
.badge.green { background: var(--brand-50); color: var(--brand-600); }
.badge.red { background: var(--danger-50); color: var(--danger); }
.badge.yellow { background: var(--warn-50); color: var(--warn); }
.badge.blue { background: var(--info-50); color: var(--info); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 20px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--text-2); }
.field input[type=text], .field input[type=password], .field input[type=email], .field input[type=number], .field input[type=url],
.field input[type=datetime-local], .field input[type=date], .field input[type=time], .field input[type=search], .field input[type=tel],
.field select, .field textarea, .input {
  width: 100%; min-height: 38px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 11px; font: inherit; font-size: 14px; background: #fff; color: var(--text); transition: border-color .12s, box-shadow .12s;
}
select.input, .field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px; }
textarea.input, .field textarea { min-height: 80px; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input[type=color] { width: 52px; height: 38px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 3px; background: #fff; }
.field input[type=checkbox], .field input[type=radio], .table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); }
.field .help { color: var(--muted); font-size: 12px; margin-top: 5px; }
.field .error { color: var(--danger); font-size: 12px; margin-top: 5px; }
.field ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.field ul label { font-weight: 500; display: flex; align-items: center; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.check label { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.input-sm { min-height: 32px; padding: 4px 9px; font-size: 13px; width: auto; }
select.input-sm { padding-right: 30px; background-position: right 7px center; }

/* feedback */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid; font-weight: 500; }
.flash.success { background: var(--brand-50); border-color: color-mix(in srgb, var(--brand) 30%, white); color: var(--brand-600); }
.flash.error { background: var(--danger-50); border-color: #fecaca; color: #b91c1c; }
.flash.warning { background: var(--warn-50); border-color: #fde68a; color: var(--warn); }
.flash.info { background: var(--info-50); border-color: #bfdbfe; color: #1d4ed8; }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row .input { flex: 1; min-width: 0; }

/* login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--brand) 14%, white), var(--bg) 60%); }
.auth .card { width: 100%; max-width: 400px; padding: 32px; box-shadow: var(--shadow-lg); border: 0; }
.auth .brand { font-size: 18px; margin-bottom: 6px; }
.auth h1 { font-size: 20px; margin: 18px 0 4px; } .auth .sub { color: var(--muted); margin: 0 0 22px; }
.auth .btn { width: 100%; min-height: 42px; }

/* ═══════════ inbox ═══════════ */
.content.wide { max-width: none; padding: 20px; }
.inbox { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: calc(100vh - var(--top-h) - 40px); min-height: 520px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.inbox-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); }
.inbox-thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.inbox-filter { padding: 14px; border-bottom: 1px solid var(--border); display: grid; gap: 8px; }
.inbox-title { display: flex; align-items: center; justify-content: space-between; } .inbox-title h1 { font-size: 18px; }
.search-box { position: relative; } .search-box .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 16px; height: 16px; }
.search-box .input { padding-left: 34px; background: var(--surface-2); border-color: transparent; }
.search-box .input:focus { background: #fff; }
.filter-row { display: flex; gap: 6px; } .filter-row .input { min-height: 32px; padding: 4px 28px 4px 9px; font-size: 12.5px; background-position: right 6px center; }
#conv-list { overflow-y: auto; flex: 1; min-height: 0; }
.conv-item { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--surface-3); color: var(--text); cursor: pointer; position: relative; }
.conv-item:hover { background: #f9fafb; text-decoration: none; }
.conv-item.active { background: var(--brand-50); }
.conv-item.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.conv-item .avatar { width: 42px; height: 42px; font-size: 15px; }
.conv-item.unread b { font-weight: 700; } .conv-item.unread .ellipsis { color: var(--text); font-weight: 500; }
.conv-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.conv-top, .conv-bottom { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.conv-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.conv-top .time { color: var(--faint); font-size: 11.5px; white-space: nowrap; flex: none; }
.conv-item.unread .time { color: var(--brand-600); font-weight: 600; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-bottom .ellipsis { color: var(--muted); font-size: 13px; }
.conv-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; } .conv-tags .badge { font-size: 10.5px; padding: 1px 7px; }
.count-pill { background: var(--brand); color: #fff; border-radius: 10px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.load-more { margin: 12px auto; display: flex; }
.thread { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.thread-empty { margin: auto; text-align: center; color: var(--muted); }
.thread-empty .big-ico { width: 64px; height: 64px; border-radius: 20px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin: 0 auto 12px; }
.thread-empty .big-ico .i { width: 30px; height: 30px; }
.thread-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface); min-height: 64px; }
.thread-who { display: flex; gap: 11px; align-items: center; min-width: 0; }
.thread-who > div { min-width: 0; } .thread-who b { font-size: 15px; }
.thread-who .name-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.thread-who .sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.back-btn { display: none; }
.msgs { flex: 1; overflow-y: auto; padding: 18px 6%; background: #efeae2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23000' fill-opacity='.025'%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Ccircle cx='50' cy='30' r='1.5'/%3E%3Ccircle cx='30' cy='60' r='2'/%3E%3Ccircle cx='70' cy='70' r='1.5'/%3E%3C/g%3E%3C/svg%3E"); display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.day-sep { text-align: center; margin: 12px 0 8px; } .day-sep span { background: rgba(255,255,255,.92); padding: 4px 12px; border-radius: 8px; font-size: 11.5px; color: var(--muted); font-weight: 500; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bubble-row { display: flex; } .bubble-row.out { justify-content: flex-end; }
.bubble { max-width: min(560px, 72%); padding: 7px 10px 6px; border-radius: 10px; background: #fff; box-shadow: 0 1px .5px rgba(11,20,26,.13); position: relative; word-wrap: break-word; font-size: 14px; line-height: 1.45; }
.bubble.in { border-top-left-radius: 2px; } .bubble.out { background: #d9fdd3; border-top-right-radius: 2px; }
.bubble.failed { background: #fff1f0; box-shadow: 0 0 0 1px #fecaca; }
.bubble .origin { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #667781; margin-bottom: 3px; font-weight: 600; }
.bubble .meta { display: flex; justify-content: flex-end; align-items: center; gap: 3px; font-size: 11px; color: #667781; margin-top: 2px; }
.bubble .err { color: var(--danger); margin-top: 4px; font-size: 12px; }
.bubble .media { max-width: 280px; max-height: 320px; border-radius: 8px; display: block; margin-bottom: 4px; }
.bubble .doc { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; background: rgba(0,0,0,.05); border-radius: 8px; margin-bottom: 4px; }
.bubble .reaction { position: absolute; bottom: -12px; right: 8px; background: #fff; border-radius: 12px; padding: 0 5px; font-size: 13px; box-shadow: var(--shadow-md); }
.tick { margin-left: 2px; letter-spacing: -3px; padding-right: 3px; } .tick.read { color: #53bdeb; } .tick.fail { color: var(--danger); font-weight: 600; letter-spacing: 0; }
.note-bubble { align-self: center; max-width: 80%; background: #fff8d6; border: 1px solid #f3e3a2; border-radius: 10px; padding: 7px 12px; font-size: 13px; margin: 6px 0; }
.composer { border-top: 1px solid var(--border); padding: 10px 14px 12px; background: #f7f8f9; }
.composer-error { margin: 8px 14px 0; }
.tabs { display: flex; gap: 2px; margin-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.tabs button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 6px 11px; border-radius: 7px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tabs button .i { width: 15px; height: 15px; }
.tabs button:hover { background: var(--surface-3); color: var(--text-2); }
.tabs button.on { background: #fff; color: var(--brand-600); box-shadow: var(--shadow); }
.tabs button:disabled { opacity: .4; cursor: not-allowed; }
.compose-row { display: flex; gap: 8px; align-items: flex-end; }
.compose-row textarea { resize: none; min-height: 44px; max-height: 160px; border-radius: 22px; padding: 11px 16px; background: #fff; }
.compose-row .canned { width: 120px; flex: none; }
.send-btn { width: 44px; height: 44px; border-radius: 50%; padding: 0; min-height: 0; flex: none; }
.send-btn .i { width: 19px; height: 19px; margin-left: -2px; }
.note-input { background: #fffdf0 !important; }
.tpl-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 8px; }
.tpl-fields label { display: grid; gap: 3px; font-size: 12.5px; font-weight: 600; }
.tpl-preview { grid-column: 1 / -1; background: #d9fdd3; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
body.live .status-pill.on .dot { animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(34,197,94,.12); } }
.wa-preview { background: #efeae2; padding: 16px; border-radius: var(--radius-sm); }
.wa-preview .bubble { max-width: 100%; }
.wa-btn { border-top: 1px solid rgba(0,0,0,.08); margin: 6px -10px -6px; padding: 7px; text-align: center; color: #027eb5; font-weight: 600; }
.btn-row { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
/* ── contacts ── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; padding: 12px; }
.filter-bar input[type=search] { flex: 1; min-width: 220px; } .filter-bar select { width: auto; }
.bulk-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--brand-50); border: 1px solid #bfe6cf; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.tag { display: inline-block; font-size: 11px; padding: 0 7px; border-radius: 10px; margin: 1px 2px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); border: 1px solid color-mix(in srgb, var(--c) 35%, white); }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; }
.timeline { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; } .timeline li { border-left: 2px solid var(--border); padding-left: 8px; }

/* ── broadcasts ── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex !important; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 16px; padding: 3px 10px; font-weight: 500 !important; font-size: 12.5px !important; cursor: pointer; margin: 0 !important; }
.chip:has(input:checked) { background: var(--brand-50); border-color: var(--brand); color: var(--brand-600); }
.aud-count { margin-top: 12px; padding: 12px; background: var(--surface-2); border-radius: 8px; }
.aud-n { font-size: 28px; font-weight: 700; color: var(--brand-600); }
.var-row { display: grid; grid-template-columns: 110px 1fr 1fr 1fr; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.var-row .input-sm { width: 100%; }
.camp-stats { margin-bottom: 4px; }
.hours td { padding: 5px 8px; } .hours .input-sm { width: 120px; }
.code-box { background: #0e1a14; color: #d6f5e3; padding: 12px; border-radius: 8px; overflow-x: auto; white-space: pre; }

/* ── analytics chart (series colors validated: #1a73e8 / #0f9d58) ── */
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.legend { display: flex; gap: 14px; color: var(--muted); } .legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; } .sw.in { background: #1a73e8; } .sw.out { background: #0f9d58; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; }
.chart .bar.in { fill: #1a73e8; } .chart .bar.out { fill: #0f9d58; } .chart .bar:hover { opacity: .8; }
.chart .grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 3; } .chart .base { stroke: #c9d1cc; stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart-tip { position: absolute; top: 0; right: 0; background: #16201b; color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; }

/* ── flow builder ── */
.flow-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); gap: 16px; align-items: start; }
.flow-side { position: sticky; top: 76px; display: grid; gap: 16px; }
.flow-steps { display: grid; gap: 12px; }
.flow-node { padding: 12px; display: grid; gap: 8px; border-left: 4px solid var(--border); }
.flow-node.sel { border-left-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-50), var(--shadow); }
.node-head { display: flex; gap: 8px; align-items: center; }
.node-title { flex: 1; font-weight: 600; }
.node-type { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--surface-2); white-space: nowrap; }
.node-type.message { background: var(--brand-50); color: var(--brand-600); } .node-type.list { background: var(--info-50); color: var(--info); }
.node-type.question { background: var(--warn-50); color: var(--warn); } .node-type.handoff, .node-type.end { background: #f3e8fd; color: #7b1fa2; }
.opt-row { display: flex; gap: 6px; align-items: center; margin-top: 6px; } .opt-row .input-sm { flex: 1; min-width: 0; }
.opt-ico { width: 22px; text-align: center; color: var(--muted); font-size: 12px; }
.add-step { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 12px; }
.flow-map { width: 100%; height: auto; max-height: 420px; }
.flow-map .edge { fill: none; stroke: #9fb0a6; stroke-width: 1.5; }
.flow-map .box { fill: #fff; stroke: var(--border); stroke-width: 1.5; } .flow-map .box.sel { stroke: var(--brand); stroke-width: 2.5; }
.flow-map .box.message { fill: var(--brand-50); } .flow-map .box.list { fill: var(--info-50); } .flow-map .box.question { fill: var(--warn-50); }
.flow-map .box.handoff, .flow-map .box.end { fill: #f3e8fd; } .flow-map .box.orphan { fill: #eee; stroke-dasharray: 4 3; }
.flow-map .box-t { font-size: 11px; fill: var(--text); pointer-events: none; }
.wa-chip { background: #fff; color: #027eb5; text-align: center; border-radius: 8px; padding: 6px; margin-top: 4px; font-weight: 550; font-size: 13px; }
.steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 12px; } .steps li { padding-left: 4px; }
.step-when { font-size: 11.5px; font-weight: 700; color: var(--info); text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 1000px) { .flow-layout { grid-template-columns: 1fr; } .flow-side { position: static; } }
.qr-row { display: flex; gap: 14px; align-items: center; margin: 10px 0; } .qr { width: 150px; height: 150px; border: 1px solid var(--border); border-radius: 8px; padding: 6px; background: #fff; }
.avail { display: inline-flex; align-items: center; gap: 6px; } .avail .dot { margin: 0; }


/* ═══════════ white-label + console ═══════════ */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.feat-grid label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.logo-preview { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; border: 1px solid var(--border); background: #fff; }
.card.table-wrap > h2 { padding: 16px 20px 6px; margin: 0; }
td.danger, .kpi-big.danger { color: var(--danger); }
.kpi-big { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.avail { display: inline-flex; align-items: center; gap: 6px; } .avail .dot { margin: 0; }
.qr-row { display: flex; gap: 14px; align-items: center; margin: 10px 0; flex-wrap: wrap; } .qr { width: 150px; height: 150px; border: 1px solid var(--border); border-radius: 8px; padding: 6px; background: #fff; }

/* ═══════════ responsive ═══════════ */
@media (max-width: 1200px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .inbox { grid-template-columns: 300px minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); height: 100%; transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-lg); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  body.nav-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(17,24,39,.42); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .only-mobile { display: inline-grid; }
  .topbar { padding: 0 16px 0 10px; }
  .g-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .flow-layout { grid-template-columns: 1fr; } .flow-side { position: static; }
}
@media (max-width: 760px) {
  :root { --top-h: 56px; }
  .hide-sm { display: none !important; }
  .content { padding: 16px 14px calc(var(--tab-h) + 24px); }
  .content.wide { padding: 0; }
  h1 { font-size: 20px; }
  .card { padding: 16px; border-radius: 10px; }
  .g-4, .g-3, .g-2, .form-grid, .tpl-fields { grid-template-columns: minmax(0, 1fr); }
  .g-4.stats-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .page-head { align-items: flex-start; flex-direction: column; margin-bottom: 16px; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn-primary { flex: 1 1 auto; }
  .status-pill { padding: 0 10px; } .user-btn { padding: 2px; }
  .table th, .table td { padding: 10px 12px; }
  .table td { white-space: nowrap; }
  .filter-bar { flex-direction: column; align-items: stretch; } .filter-bar > * { width: 100% !important; min-width: 0 !important; }
  .var-row { grid-template-columns: 1fr 1fr; } .var-row b { grid-column: 1 / -1; }
  .copy-row { flex-wrap: wrap; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--border); z-index: 30; }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font: inherit; font-size: 10.5px; font-weight: 600; background: none; border: 0; position: relative; cursor: pointer; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar .i { width: 22px; height: 22px; }
  .tabbar .active { color: var(--brand-600); }
  .tabbar .dot-count { position: absolute; top: 6px; left: calc(50% + 6px); background: var(--brand); color: #fff; border-radius: 9px; font-size: 10px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
  /* inbox: one pane at a time */
  .inbox { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - var(--top-h) - var(--tab-h) - env(safe-area-inset-bottom)); border-radius: 0; border: 0; min-height: 0; }
  .inbox .inbox-thread { display: none; }
  .inbox.has-open .inbox-list { display: none; }
  .inbox.has-open .inbox-thread { display: flex; }
  .back-btn { display: inline-grid; margin-left: -8px; }
  .thread-head { padding: 8px 10px; min-height: 58px; gap: 6px; }
  .thread-who .avatar { width: 36px; height: 36px; }
  .thread-actions .window-badge { display: none; }
  .thread-actions .input-sm { max-width: 120px; }
  .msgs { padding: 12px 10px; }
  .bubble { max-width: 86%; }
  .composer { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .compose-row .canned { display: none; }
  .auth .card { padding: 24px 20px; }
}
@media (min-width: 761px) { .tabbar { display: none; } }
/* avatar palette (by contact id) */
.av0{background:#e0f2fe;color:#0369a1}.av1{background:#fce7f3;color:#be185d}.av2{background:#ede9fe;color:#6d28d9}.av3{background:#fef3c7;color:#b45309}.av4{background:#dcfce7;color:#15803d}
.av5{background:#ffe4e6;color:#be123c}.av6{background:#e0e7ff;color:#4338ca}.av7{background:#ccfbf1;color:#0f766e}.av8{background:#ffedd5;color:#c2410c}.av9{background:#f3e8ff;color:#7e22ce}
.conv-top b, .conv-bottom .ellipsis { flex: 1; min-width: 0; }
.thread-who { flex: 1; min-width: 0; } .thread-actions { flex: none; flex-wrap: nowrap; }
.thread-who .name-line b { min-width: 0; }
@media (max-width: 860px) {
  .grid[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 760px) {
  table.hours { display: block; overflow-x: auto; } .hours .input-sm { width: 108px; }
  .chips { gap: 6px; } .aud-count { margin-top: 10px; }
}
/* real replies vs auto-replies */
.conv-item.human-new { background: #fffbeb; }
.conv-item.human-new.active { background: var(--brand-50); }
.conv-item.human-new .avatar { box-shadow: 0 0 0 2px #f59e0b; }
.badge.human { background: #fef3c7; color: #92400e; }
.badge.auto { background: var(--surface-2); color: var(--faint); }
.bubble.in.human { box-shadow: 0 1px .5px rgba(11,20,26,.13), inset 3px 0 0 #f59e0b; padding-left: 13px; }
.bubble.in.auto { background: #f6f7f8; color: var(--muted); }
.bubble.in.auto .text { font-size: 13px; }
.kind-tag { margin: 0 0 3px; }
.kind-tag button { border: 0; background: none; padding: 0; font: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; cursor: pointer; text-transform: uppercase; }
.bubble.human .kind-tag button { color: #b45309; } .bubble.auto .kind-tag button { color: var(--faint); }
.kind-tag button:hover { text-decoration: underline; }

/* ═══════════ CRM ═══════════ */
.content.wide-pad { max-width: none; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; } .avatar.lg { width: 52px; height: 52px; font-size: 20px; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(264px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; scroll-snap-type: x proximity; }
.k-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 250px); min-height: 160px; scroll-snap-align: start; border-top: 3px solid var(--c); }
.k-col.over { background: color-mix(in srgb, var(--c) 8%, white); outline: 2px dashed var(--c); }
.k-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; }
.k-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.k-head b { font-size: 13px; } .k-n { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 0 7px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.k-val { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.k-list { padding: 4px 8px 10px; overflow-y: auto; display: grid; gap: 8px; align-content: start; }
.k-card { display: grid; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 11px; color: var(--text); box-shadow: var(--shadow); cursor: grab; }
.k-card:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.k-card.dragging { opacity: .45; }
.k-top { display: flex; align-items: center; gap: 8px; min-width: 0; } .k-top b { font-size: 13.5px; min-width: 0; }
.k-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.k-empty { color: var(--faint); font-size: 12.5px; text-align: center; padding: 18px 6px; border: 1px dashed var(--border-strong); border-radius: 10px; }
.stage-bar { display: flex; gap: 6px; padding: 10px; margin-bottom: 16px; overflow-x: auto; }
.stage-step { border: 1px solid var(--border); background: #fff; color: var(--muted); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.stage-step:hover { border-color: var(--c); color: var(--c); }
.stage-step.past { background: color-mix(in srgb, var(--c) 10%, white); color: var(--c); border-color: transparent; }
.stage-step.on { background: var(--c); color: #fff; border-color: var(--c); }
.fu-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--surface-3); position: relative; }
.fu-row:last-child { border-bottom: 0; }
.fu-row.overdue .fu-when { background: var(--danger-50); color: var(--danger); }
.fu-when { display: grid; place-items: center; text-align: center; min-width: 62px; padding: 6px 4px; border-radius: 10px; background: var(--info-50); color: var(--info); line-height: 1.2; flex: none; }
.fu-when b { font-size: 13px; } .fu-when small { font-size: 11px; }
.fu-when.sm { min-width: 54px; padding: 4px; }
.fu-main { flex: 1; min-width: 0; display: grid; gap: 3px; } .fu-main a { color: var(--text); }
.fu-actions { display: flex; gap: 6px; align-items: center; position: relative; flex: none; }
.done-pop, .strip-pop { position: absolute; right: 0; top: calc(100% + 6px); width: 270px; z-index: 20; box-shadow: var(--shadow-lg); padding: 14px; }
.fu-list { padding: 4px 18px; }
.fu-form { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.seg-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 10px; padding: 3px; gap: 2px; overflow-x: auto; max-width: 100%; }
.seg a { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a.on { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feed li { display: flex; gap: 10px; }
.feed-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); margin-top: 6px; flex: none; }
.feed-reply .feed-dot { background: #f59e0b; } .feed-stage .feed-dot { background: var(--info); } .feed-done .feed-dot { background: var(--brand); } .feed-note .feed-dot { background: #8b5cf6; }
.mini-chat { background: #efeae2; border-radius: 10px; padding: 10px; display: grid; gap: 4px; max-height: 340px; overflow-y: auto; }
.mini-chat .bubble { max-width: 90%; font-size: 13px; }
.crm-strip { display: flex; align-items: center; gap: 8px; padding: 7px 16px; border-bottom: 1px solid var(--border); background: #fbfbfc; position: relative; flex-wrap: wrap; min-height: 44px; }
.stage-select { border-color: var(--c) !important; color: var(--c); font-weight: 600; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .card-head h2 { margin-bottom: 10px; }
.mini-row { display: flex; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--surface-3); color: var(--text); }
.mini-row:hover { text-decoration: none; background: #fafbfc; }
.mini-main { flex: 1; min-width: 0; display: grid; }
@media (max-width: 760px) {
  .kanban { grid-auto-columns: 82vw; margin: 0 -14px; padding: 0 14px 12px; scroll-snap-type: x mandatory; }
  .k-col { max-height: none; }
  .fu-row { flex-wrap: wrap; } .fu-actions { width: 100%; justify-content: flex-end; }
  .done-pop, .strip-pop { right: 0; left: 0; width: auto; }
  .crm-strip { padding: 6px 10px; }
  .fu-list { padding: 0 14px; }
}
.tabbar .dot-count.warn { background: #f59e0b; }

/* ═══════════ calls ═══════════ */
.call-menu { position: relative; display: inline-block; }
.call-menu .menu { left: auto; right: 0; min-width: 250px; }
.call-row { align-self: center; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 6px 12px; font-size: 12.5px; color: var(--text-2); box-shadow: 0 1px 1px rgba(0,0,0,.06); margin: 6px 0; }
.call-row .i { width: 15px; height: 15px; color: var(--brand); }
.call-row.missed .i, .call-row.failed .i, .call-row.rejected .i { color: var(--danger); }
.call-dock { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 300px; background: #0f172a; color: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 18px; display: grid; gap: 12px; }
.call-dock .who { display: flex; gap: 12px; align-items: center; }
.call-dock .who .avatar { width: 46px; height: 46px; background: #1e293b; color: #fff; font-size: 18px; }
.call-dock .who b { display: block; font-size: 15px; } .call-dock .who small { color: #94a3b8; }
.call-dock .btns { display: flex; gap: 10px; justify-content: center; }
.call-dock .rb { width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; background: #334155; }
.call-dock .rb .i { width: 22px; height: 22px; }
.call-dock .rb.ok { background: #22c55e; } .call-dock .rb.no { background: #ef4444; } .call-dock .rb.on { background: #f59e0b; }
.call-dock .rb.no .i { transform: rotate(135deg); }
.call-dock .msg { font-size: 12.5px; color: #cbd5e1; text-align: center; }
.call-dock.ringing .who .avatar { animation: ring 1.2s infinite; }
@keyframes ring { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 50% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 55; background: #fff; border: 1px solid var(--border); border-left: 4px solid #f59e0b; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px 14px; width: 320px; display: grid; gap: 2px; cursor: pointer; animation: slidein .2s ease; }
.toast small { color: var(--muted); }
@keyframes slidein { from { transform: translateY(12px); opacity: 0; } }
@media (max-width: 760px) {
  .call-dock { left: 12px; right: 12px; width: auto; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); }
  .toast { left: 12px; right: 12px; width: auto; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); }
}

/* broadcast: duplicate & quality control */
.qc .chk{display:flex;gap:10px;align-items:flex-start;padding:7px 0;font-size:14px;line-height:1.4;cursor:pointer}
.qc .chk input{margin-top:3px;flex:none}
.qc .grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:860px){.qc .grid2{grid-template-columns:1fr}}

/* CRM → Replies */
.table.replies .who{display:flex;gap:10px;align-items:center;min-width:0}
.table.replies .reply-text{max-width:520px;white-space:pre-line;line-height:1.4;margin-bottom:4px}
.table.replies tr.is-human td:first-child{box-shadow:inset 3px 0 0 var(--brand,#16a34a)}
.reply-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:10px;margin-bottom:14px}
.reply-filters .input{width:auto;flex:1 1 180px}
.reply-filters input[type=search]{flex:2 1 260px}
