/* ================================================================
   SailPoint Academy CRM — design system v3
   Inter · neutral-first · cobalt accent · layered depth · quiet motion
   ================================================================ */
:root {
  /* palette */
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #fbfcfd;
  --ink: #191b20;
  --text: #2b2f36;
  --text-2: #5b6472;
  --text-3: #8b94a3;
  --border: #e6e9ee;
  --border-2: #d8dde5;

  --accent: #2d5fe3;
  --accent-strong: #2450c4;
  --accent-ink: #1d3f9b;
  --accent-tint: #edf2fe;
  --accent-tint-2: #dbe6fd;

  --green: #188653;
  --green-tint: #e8f6ef;
  --red: #d92d20;
  --red-tint: #fdecea;
  --amber: #b54708;
  --amber-tint: #fdf1e2;
  --star: #e8a33d;

  /* depth */
  --sh-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .06);
  --sh-md: 0 4px 10px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .05);
  --sh-lg: 0 12px 28px -8px rgba(16, 24, 40, .16), 0 4px 10px -4px rgba(16, 24, 40, .08);
  --sh-overlay: -24px 0 64px -24px rgba(16, 24, 40, .28);

  /* shape */
  --r-sm: 7px;
  --r-md: 10px;
  --r-lg: 14px;

  /* z scale */
  --z-fly: 30;
  --z-sticky: 20;
  --z-menu: 40;
  --z-dim: 60;
  --z-overlay: 70;
  --z-modal: 100;
  --z-toast: 200;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* ease-out-quint */
  --t-fast: 140ms;
  --t-med: 260ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.5;
}
.hidden { display: none !important; }
button { cursor: pointer; font-family: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.015em; text-wrap: balance; }

.ic { vertical-align: -0.155em; flex: none; }

input, select, textarea {
  font-family: inherit; font-size: 13.5px; color: var(--text);
  padding: 8px 11px; border: 1px solid var(--border-2); border-radius: var(--r-sm);
  background: var(--surface); width: 100%;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint-2);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label {
  font-size: 11px; font-weight: 600; color: var(--text-2);
  display: block; margin: 12px 0 5px; text-transform: uppercase; letter-spacing: .05em;
}

/* ---------------- buttons ---------------- */
.btn {
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
  padding: 7px 13px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px; box-shadow: var(--sh-xs);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-danger { color: var(--red); border-color: #f3c6c1; }
.btn-danger:hover { background: var(--red-tint); border-color: var(--red); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-block { width: 100%; justify-content: center; margin-top: 16px; }
.icon-btn {
  border: none; background: none; font-size: 15px; color: var(--text-2);
  padding: 5px 7px; border-radius: var(--r-sm); line-height: 1;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--accent-tint); color: var(--accent-ink); }

/* ---------------- login ---------------- */
.login-wrap {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(45, 95, 227, .28), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(45, 95, 227, .16), transparent 55%),
    #101422;
}
.login-card {
  background: var(--surface); border-radius: 18px; padding: 40px 42px; width: 388px;
  box-shadow: 0 32px 80px -16px rgba(0, 0, 0, .5);
  animation: card-in .5s var(--ease) both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.login-logo {
  width: 50px; height: 50px; border-radius: 13px; background: var(--accent); color: #fff;
  font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; box-shadow: 0 8px 18px -6px rgba(45, 95, 227, .55);
}
.login-card h1 { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.login-sub { color: var(--text-2); font-size: 13px; margin-bottom: 12px; }
.form-error { color: var(--red); font-size: 13px; margin-top: 12px; font-weight: 500; }

/* ---------------- app shell ---------------- */

.shell { flex: 1; min-width: 0; margin-left: 58px; display: flex; flex-direction: column; min-height: 100dvh; }
.topbar {
  height: 54px; border-bottom: 1px solid var(--border); display: flex; align-items: center;
  justify-content: space-between; padding: 0 22px; position: sticky; top: 0;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); z-index: var(--z-sticky);
}
.org { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.org-badge {
  width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff;
  font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.topbar-right { display: flex; align-items: center; gap: 16px; }
.notify-btn { border: none; background: none; color: var(--text-2); font-size: 19px; display: inline-flex; align-items: center; cursor: pointer; padding: 4px; border-radius: 8px; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.notify-btn:hover { background: var(--bg); color: var(--ink); }
.notify-btn.on { color: var(--accent); }
.top-counts { font-size: 12.5px; color: var(--text-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.top-counts b { color: var(--ink); font-weight: 700; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700;
}
.avatar.sm { width: 24px; height: 24px; font-size: 9.5px; background: #7c8db5; }
.main { flex: 1; min-width: 0; padding: 20px 26px 40px; max-width: 1440px; width: 100%; margin: 0 auto; }
/* grid/flex items must be allowed to shrink below content (Chart.js canvas, wide tables) */
.dash-grid2, .dash-grid2 > *, .dash-section { min-width: 0; }
.dash-section canvas { max-width: 100%; }

/* ---------------- page / view head ---------------- */
.view-head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.view-title { font-size: 19px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; cursor: pointer; letter-spacing: -0.02em; }
.view-title .caret { font-size: 11px; color: var(--text-3); }
.view-toggle { margin-left: auto; display: flex; gap: 0; border: 1px solid var(--border-2); border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--sh-xs); }
.toggle-btn { border: none; background: var(--surface); width: 38px; height: 31px; font-size: 14px; color: var(--text-2); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.toggle-btn + .toggle-btn { border-left: 1px solid var(--border-2); }
.toggle-btn.active { background: var(--accent); color: #fff; }

/* ---------------- condition bar ---------------- */
.cond-bar {
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px;
  margin-bottom: 14px; background: var(--surface); box-shadow: var(--sh-sm);
}
.cond-add { text-align: center; margin-bottom: 10px; }
.cond-add a { font-weight: 600; font-size: 13px; }
.cond-add a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cond-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cond-chip {
  background: var(--accent-tint); border: 1px solid var(--accent-tint-2); border-radius: var(--r-sm);
  padding: 5px 9px; font-size: 12.5px; font-weight: 600; color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 6px;
  animation: chip-in var(--t-med) var(--ease) both;
}
@keyframes chip-in { from { opacity: 0; transform: scale(.94); } }
.cond-chip .x { cursor: pointer; color: #8fa4dd; font-weight: 700; padding: 0 2px; transition: color var(--t-fast) var(--ease); }
.cond-chip .x:hover { color: var(--red); }
.cond-chip select, .cond-chip input {
  border: none; background: transparent; padding: 0 2px; width: auto; font-weight: 700;
  font-size: 12.5px; color: var(--accent-ink); max-width: 170px; box-shadow: none;
}
.cond-chip select:focus, .cond-chip input:focus { box-shadow: none; outline: 1px dashed var(--accent); }
.sort-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); font-weight: 550; flex-wrap: wrap; }
.sort-row select { width: auto; padding: 4px 7px; font-size: 12.5px; }
.sub { color: var(--text-2); font-size: 12px; }

/* condition picker menu */
.cond-picker { position: relative; }
.cond-menu {
  position: absolute; top: 112%; left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); width: 348px; max-height: 330px; overflow-y: auto;
  z-index: var(--z-menu); padding: 6px; text-align: left;
  animation: menu-in var(--t-fast) var(--ease) both;
}
@keyframes menu-in { from { opacity: 0; transform: translateX(-50%) translateY(-4px); } }
.cond-menu .cm-title { font-size: 10.5px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 7px 10px 3px; }
.cond-menu a { display: flex; gap: 9px; align-items: center; padding: 7px 10px; border-radius: var(--r-sm); color: var(--text); font-size: 13px; font-weight: 550; }
.cond-menu a:hover { background: var(--accent-tint); color: var(--accent-ink); }

/* ---------------- list toolbar / table ---------------- */
.list-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.pageinfo { font-size: 12.5px; color: var(--text-2); font-weight: 550; display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.pageinfo button {
  border: 1px solid var(--border-2); background: var(--surface); border-radius: var(--r-sm);
  width: 26px; height: 26px; font-size: 13px; color: var(--text-2); box-shadow: var(--sh-xs);
  transition: background var(--t-fast) var(--ease);
}
.pageinfo button:hover:not(:disabled) { background: var(--bg); color: var(--ink); }
.pageinfo button:disabled { opacity: .35; cursor: default; }
.list-toolbar .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: auto; box-shadow: var(--sh-sm); }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 11px; font-weight: 650; color: var(--text-2);
  text-transform: uppercase; letter-spacing: .05em;
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2);
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
td { padding: 11px 14px; border-bottom: 1px solid #f0f2f5; font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody tr { cursor: pointer; transition: background var(--t-fast) var(--ease); animation: row-in .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 16ms); }
@keyframes row-in { from { opacity: 0; transform: translateY(3px); } }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f6f8fc; }
.lead-link { color: var(--ink); font-weight: 620; }
tbody tr:hover .lead-link { color: var(--accent-ink); }
.empty-state { text-align: center; padding: 56px 20px; color: var(--text-2); font-size: 13.5px; }
.empty-state .big { font-size: 30px; margin-bottom: 10px; color: var(--text-3); }
.empty-state .big .ic { width: 34px; height: 34px; }

/* status pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px;
  border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; letter-spacing: .002em;
}
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }

/* stars */
.stars { display: inline-flex; gap: 1px; color: #d6dae2; font-size: 13px; cursor: pointer; white-space: nowrap; }
.stars > span { transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease); line-height: 1; }
.stars > span:hover { transform: scale(1.25); }
.stars .on { color: var(--star); }

/* skeleton loading */
.skel-table { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 6px 14px; box-shadow: var(--sh-sm); }
.skel-row { display: flex; gap: 18px; padding: 13px 0; border-bottom: 1px solid #f0f2f5; }
.skel-row:last-child { border-bottom: none; }
.skel {
  height: 13px; border-radius: 5px;
  background: linear-gradient(90deg, #eef0f4 25%, #f7f8fa 45%, #eef0f4 65%);
  background-size: 220% 100%; animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -90% 0; } }

/* ---------------- chart view ---------------- */
.chart-tabs { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 3px; width: fit-content; margin-bottom: 14px; flex-wrap: wrap; box-shadow: var(--sh-xs); }
.chart-tab { border: none; background: none; padding: 7px 13px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--text-2); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.chart-tab:hover { color: var(--ink); }
.chart-tab.active { color: var(--accent-ink); background: var(--accent-tint); }
.chart-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-sm); }
.chart-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.chart-toolbar select { width: auto; padding: 5px 8px; font-size: 12.5px; }
.chart-toolbar .right { margin-left: auto; display: flex; gap: 8px; }
.chart-box { position: relative; height: 380px; }
.chart-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 22px; margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.leg-item { display: flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; padding: 6px 8px; border-radius: var(--r-sm); transition: background var(--t-fast) var(--ease); }
.leg-item:hover { background: var(--accent-tint); }
.leg-item b { font-size: 13px; font-variant-numeric: tabular-nums; }
.leg-item .pct { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---------------- lead overlay ---------------- */
.overlay-dim { position: fixed; inset: 0; background: rgba(18, 22, 33, .45); z-index: var(--z-dim); animation: dim-in var(--t-med) var(--ease) both; }
@keyframes dim-in { from { opacity: 0; } }
.lead-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; width: 62%; min-width: 640px; max-width: 95vw;
  background: var(--surface); z-index: var(--z-overlay); overflow-y: auto;
  box-shadow: var(--sh-overlay); border-radius: 16px 0 0 16px;
  animation: overlay-in .32s var(--ease) both;
}
@keyframes overlay-in { from { transform: translateX(48px); opacity: 0; } }
@media (max-width: 900px) { .lead-overlay { width: 100%; max-width: 100%; min-width: 0; left: 0; right: 0; border-radius: 0; animation: overlay-in-m .28s var(--ease) both; } }
@keyframes overlay-in-m { from { transform: translateY(10px); opacity: 0; } }
.ov-nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 0; }
.ov-nav button.nav-pill { border: 1px solid var(--border-2); background: var(--surface); border-radius: 999px; padding: 6px 16px; font-size: 12.5px; font-weight: 600; box-shadow: var(--sh-xs); transition: background var(--t-fast) var(--ease); }
.ov-nav button.nav-pill:hover:not(:disabled) { background: var(--bg); }
.ov-nav button:disabled { opacity: .35; cursor: default; }
.ov-head { padding: 12px 26px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ov-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.ov-head-right { text-align: right; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.assign-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); padding: 5px 8px; border-radius: var(--r-sm); transition: background var(--t-fast) var(--ease); }
.assign-btn:hover { background: var(--accent-tint); }
.assign-btn .caret { font-size: 10px; color: var(--text-3); }
.ov-sub { display: flex; align-items: center; gap: 12px; padding: 10px 26px 16px; flex-wrap: wrap; }
.status-pill-btn { border: none; border-radius: var(--r-sm); padding: 6px 12px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: filter var(--t-fast) var(--ease); }
.status-pill-btn:hover { filter: brightness(.96); }

.ov-fields { padding: 18px 26px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 15px 34px; border-top: 1px solid var(--border); }
.ov-field { border-radius: var(--r-sm); margin: -4px -6px; padding: 4px 6px; cursor: pointer; transition: background var(--t-fast) var(--ease); }
.ov-field:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.ov-field label { margin: 0 0 3px; cursor: pointer; }
.ov-field .val { font-size: 13.5px; font-weight: 600; min-height: 22px; display: flex; align-items: center; color: var(--ink); }
.ov-field .val .chip { background: var(--accent-tint); color: var(--accent-ink); border-radius: 6px; padding: 2px 9px; font-weight: 620; }
.ov-field .val .chip.empty { background: transparent; color: var(--text-3); padding: 0; font-weight: 450; }
.ov-showmore { text-align: center; padding: 12px 0 6px; border-bottom: 1px solid var(--border); margin: 8px 26px 0; }
.ov-showmore a { font-size: 12.5px; font-weight: 600; }

.ov-actions { display: flex; justify-content: space-around; padding: 14px 26px; border-bottom: 1px solid var(--border); }
.ov-act {
  border: none; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; color: var(--text-2); letter-spacing: .05em;
  padding: 8px 12px; border-radius: var(--r-md);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.ov-act:hover { background: var(--bg); color: var(--ink); }
.ov-act:active { transform: scale(.97); }
.ov-act.active { color: var(--accent-ink); background: var(--accent-tint); }
.ov-act .ico { font-size: 18px; line-height: 1; }
.ov-act .ico .ic { width: 19px; height: 19px; }

.ov-composer { padding: 16px 26px; border-bottom: 1px solid var(--border); background: var(--surface-2); animation: composer-in var(--t-med) var(--ease) both; }
@keyframes composer-in { from { opacity: 0; transform: translateY(-5px); } }
.composer-head { font-size: 12.5px; font-weight: 700; color: var(--green); margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.composer-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; flex-wrap: wrap; }
.tpl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tpl-chip { border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface); padding: 4px 11px; font-size: 12px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.tpl-chip:hover { background: var(--accent-tint); border-color: var(--accent-tint-2); color: var(--accent-ink); }

.ov-tabs { display: flex; gap: 4px; padding: 14px 26px 0; align-items: center; border-bottom: 1px solid var(--border); }
.ov-tab { border: none; background: none; font-size: 13.5px; font-weight: 650; color: var(--text-2); padding: 8px 12px 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.ov-tab:hover { color: var(--ink); }
.ov-tab.active { color: var(--accent-ink); border-bottom-color: var(--accent); }
.ov-body { padding: 14px 26px 34px; }
.act-filters { display: flex; gap: 8px; margin-bottom: 12px; }
.act-filters select { width: auto; padding: 4px 9px; font-size: 12.5px; border-radius: 999px; }
.act-item { display: flex; gap: 11px; padding: 11px 2px; border-bottom: 1px solid #f0f2f5; font-size: 13.5px; align-items: flex-start; }
.act-item:last-child { border-bottom: none; }
.act-item .ico { color: var(--text-3); margin-top: 2px; }
.act-item .ico .ic { width: 15px; height: 15px; }
.act-item .body { flex: 1; min-width: 0; }
.act-item .note { white-space: pre-wrap; color: var(--text); overflow-wrap: break-word; max-width: 68ch; }
.act-item .meta { margin-left: auto; color: var(--text-3); font-size: 12px; white-space: nowrap; display: flex; gap: 7px; align-items: center; }
.status-flow b { font-weight: 680; color: var(--ink); }

.task-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid #f0f2f5; }
.task-row input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--accent); }
.task-row.done .t-title { text-decoration: line-through; color: var(--text-3); }
.task-add { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.task-add input[type=text] { flex: 1; min-width: 200px; }
.task-add input[type=datetime-local] { width: 210px; }

/* grouped status menu */
.status-menu {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--sh-lg); width: 256px; max-height: 340px;
  overflow-y: auto; z-index: var(--z-modal); padding: 6px;
  animation: menu-in var(--t-fast) var(--ease) both;
}
.status-menu .grp { font-size: 10.5px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 8px 10px 3px; }
.status-menu a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: var(--r-sm); color: var(--text); font-size: 13px; font-weight: 550; }
.status-menu a:hover { background: var(--accent-tint); color: var(--accent-ink); }
.status-menu input { margin: 4px; width: calc(100% - 8px); }

/* ---------------- owner dashboard ---------------- */
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 13px 15px; box-shadow: var(--sh-xs); }
.dash-card .lbl { font-size: 11px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.dash-card .num { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0; }
.dash-card .sub2 { font-size: 11.5px; color: var(--text-3); }
.dash-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-xs); padding: 16px 18px; margin-bottom: 16px; }
.dash-section h3 { font-size: 14.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 980px) { .dash-grid2 { grid-template-columns: 1fr; } }
.funnel-row { margin-bottom: 10px; }
.funnel-row .fl { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 3px; }
.funnel-row .bar { height: 26px; border-radius: 6px; min-width: 26px; display: flex; align-items: center; padding: 0 9px; color: #fff; font-size: 12px; font-weight: 700; transition: width .4s var(--ease); }
.status-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; font-size: 12.5px; }
.status-bar-row .nm { width: 128px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-bar-row .tr { flex: 1; background: var(--surface-2); border-radius: 5px; height: 14px; overflow: hidden; }
.status-bar-row .fill { height: 100%; border-radius: 5px; }
.dtscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th { text-align: left; font-size: 11px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.dash-table td { padding: 8px 10px; font-size: 13px; border-bottom: 1px solid var(--border); }
.dash-table tr:last-child td { border-bottom: none; }

/* ---------------- fees ---------------- */
.fee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
@media (max-width: 560px) { .fee-grid { grid-template-columns: repeat(2, 1fr); } }
.fee-box { background: var(--surface-2); border-radius: var(--r-sm); padding: 9px 11px; }
.fee-box label { font-size: 10.5px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 2px; }
.fee-box b { font-size: 15px; }

/* ---------------- Kanban board ---------------- */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 14px; -webkit-overflow-scrolling: touch; }
.board-col { width: 240px; flex: none; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; display: flex; flex-direction: column; max-height: calc(100dvh - 280px); min-height: 180px; }
.bc-head { display: flex; align-items: center; gap: 7px; padding: 10px 12px 8px; font-weight: 700; font-size: 13px; border-radius: 14px 14px 0 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.bc-head b { margin-left: auto; color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 12px; }
.bc-body { padding: 8px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 60px; border-radius: 0 0 14px 14px; }
.bc-body.dragover { background: var(--accent-tint); }
.bcard { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; box-shadow: var(--sh-xs); cursor: grab; }
.bcard:active { cursor: grabbing; }
.bcard.dragging { opacity: .45; }
.bcard-name { font-weight: 650; font-size: 13.5px; }
.bcard-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); margin-top: 5px; }
.bcard-fu { font-size: 11.5px; color: var(--amber); font-weight: 600; margin-top: 4px; display: flex; gap: 4px; align-items: center; }
.bc-more { font-size: 11.5px; color: var(--text-3); text-align: center; padding: 6px 0 2px; }

/* ---------------- Calendar ---------------- */
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.cal-legend { margin-left: auto; display: flex; gap: 12px; font-size: 12px; color: var(--text-2); align-items: center; flex-wrap: wrap; }
.cal-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.cal-leg-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dow { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding: 3px 0; }
.cal-cell { min-height: 58px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 5px 6px; cursor: pointer; }
.cal-cell.empty { background: transparent; border: none; cursor: default; }
.cal-cell.today { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal-cell.sel { background: var(--accent-tint); }
.cal-cell:not(.has):not(.today) .cal-date { color: var(--text-3); }
.cal-date { font-size: 12px; font-weight: 700; color: var(--text-2); }
.cal-dots { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 4px; }
.cal-dot { min-width: 17px; height: 17px; border-radius: 9px; color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.cal-dot.fu { background: var(--amber); }
.cal-dot.task { background: var(--accent); }
.cal-dot.pay { background: var(--red); }

/* ---------------- in-app reminder banners ---------------- */
#remind-host { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 1500; display: flex; flex-direction: column; gap: 10px; width: min(500px, calc(100vw - 24px)); }
.remind-banner { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: 14px; box-shadow: var(--sh-lg); padding: 12px 14px; animation: rb-in .3s var(--ease); }
@keyframes rb-in { from { transform: translateY(-16px); opacity: 0; } }
.remind-banner .rb-ico { font-size: 24px; }
.remind-banner .rb-body { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.45; }
.remind-banner .rb-actions { display: flex; gap: 6px; align-items: center; flex: none; }
@media (prefers-reduced-motion: reduce) { .remind-banner { animation: none; } }

/* ---------------- tags ---------------- */
.tag-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; }
.tag-chip .x { cursor: pointer; opacity: .65; font-size: 11px; }
.tag-chip .x:hover { opacity: 1; }
.tag-mini { display: inline-block; font-size: 10.5px; font-weight: 650; padding: 1px 7px; border-radius: 999px; margin-right: 4px; }
.tag-mini-row { display: inline-flex; flex-wrap: wrap; gap: 3px; margin: 3px 0 1px; }
.ov-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 0 26px 12px; }
.tag-add { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px dashed var(--border-2); color: var(--text-2); border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 600; cursor: pointer; }
.tag-add:hover { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-ink); }
.btn-call { color: #fff !important; background: var(--green) !important; border-color: var(--green) !important; }
.btn-call:hover { filter: brightness(.95); }

/* ---------------- Call List (auto-dialer) ---------------- */
.calllist { position: fixed; inset: 0; z-index: 1200; background: var(--bg); display: flex; flex-direction: column; align-items: center; overflow-y: auto; }
.cl-top { width: 100%; max-width: 560px; display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.cl-x { border: none; background: var(--surface-2); width: 34px; height: 34px; border-radius: 50%; font-size: 15px; cursor: pointer; color: var(--text-2); }
.cl-progress { font-size: 14px; color: var(--text-2); }
.cl-progress b { color: var(--ink); font-size: 16px; }
.cl-nav { margin-left: auto; display: flex; gap: 8px; }
.cl-nav button { border: 1px solid var(--border-2); background: var(--surface); border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 650; cursor: pointer; }
.cl-nav button:disabled { opacity: .4; cursor: default; }
.cl-nav button#cl-next { background: var(--accent); color: #fff; border-color: var(--accent); }
.cl-card { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--sh-lg); padding: 24px 22px 26px; margin: 0 14px 30px; }
.cl-loading { text-align: center; color: var(--muted); padding: 40px; }
.cl-name { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.cl-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.cl-phone { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); margin: 4px 0 2px; }
.cl-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 14px 0; }
.cl-fields > div { display: flex; justify-content: space-between; font-size: 13px; border-bottom: 1px solid var(--border); padding: 4px 0; }
.cl-fields span { color: var(--muted); }
.cl-call { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--green); color: #fff; font-size: 20px; font-weight: 800; letter-spacing: .04em; border-radius: 14px; padding: 16px; margin: 16px 0; box-shadow: 0 8px 20px -8px var(--green); }
.cl-call:hover { filter: brightness(.96); }
.cl-outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cl-oc { border: 1px solid var(--border-2); background: var(--surface); border-radius: 10px; padding: 11px 6px; font-size: 12.5px; font-weight: 650; cursor: pointer; }
.cl-oc:hover { background: var(--surface-2); }
.cl-oc.picked { background: var(--accent); color: #fff; border-color: var(--accent); }
.cl-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; align-items: center; }
.cl-quick select { flex: 1; min-width: 140px; }
.cl-later-row { display: flex; gap: 8px; margin-bottom: 10px; }
#cl-note { width: 100%; margin-top: 6px; }

/* ---------------- task board ---------------- */
.task-group { margin-bottom: 18px; }
.task-group-head { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.task-group-head .cnt { background: var(--surface-2); color: var(--text-2); border-radius: 999px; padding: 1px 9px; font-size: 12px; }
.tb-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 8px; cursor: pointer; box-shadow: var(--sh-xs); }
.tb-row:hover { border-color: var(--accent); }
.tb-done { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.tb-main { flex: 1; min-width: 0; }
.tb-title { font-weight: 650; }
.tb-right { text-align: right; white-space: nowrap; }
.tb-due { font-weight: 700; font-size: 13px; }

/* ---------------- leaderboard ---------------- */
.lb-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--border); }
.lb-row:last-child { border-bottom: none; }
.lb-rank { width: 30px; text-align: center; font-size: 18px; font-weight: 800; color: var(--text-3); }
.lb-rank.top { font-size: 20px; }
.lb-name { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.lb-stats { display: flex; gap: 10px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.lb-score { width: 46px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); }

/* ---------------- settings ---------------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.page-head h2 { font-size: 19px; display: flex; align-items: center; gap: 9px; }
.page-head h2 .ic { color: var(--accent); width: 20px; height: 20px; }
.page-head .sub { display: block; margin-top: 3px; }

.stages-grid { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .stages-grid { grid-template-columns: 1fr; } }
.stage-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.stage-col-head { padding: 11px 16px; font-weight: 700; font-size: 13px; color: var(--ink); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; background: var(--surface-2); text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px; }
.stage-col-head::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.stage-col-head.initial::before { background: var(--text-3); }
.stage-col-head.active::before { background: var(--accent); }
.stage-col-head.closed::before { background: var(--green); }
.stage-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.status-card { border-radius: var(--r-md); padding: 9px 12px; font-weight: 620; font-size: 13px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); background: var(--surface); transition: box-shadow var(--t-fast) var(--ease); }
.status-card:hover { box-shadow: var(--sh-md); }
.status-card .grow { flex: 1; }
.status-card .tools { display: flex; gap: 1px; opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.status-card:hover .tools { opacity: 1; }
.status-card .tools button { border: none; background: none; font-size: 12px; color: var(--text-2); padding: 3px 5px; border-radius: 5px; }
.status-card .tools button:hover { background: var(--bg); color: var(--ink); }
.won-box { border: 1px solid #b8e4cd; background: var(--green-tint); border-radius: var(--r-md); padding: 10px; margin-bottom: 10px; }
.won-box .box-title { color: var(--green); font-weight: 750; margin-bottom: 8px; font-size: 12.5px; }
.lost-box { border: 1px solid #f3c6c1; background: var(--red-tint); border-radius: var(--r-md); padding: 10px; }
.lost-box .box-title { color: var(--red); font-weight: 750; margin-bottom: 8px; font-size: 12.5px; }
.reason-row { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid #f6d9d5; font-size: 13px; font-weight: 550; }
.reason-row:last-child { border-bottom: none; }
.reason-row .grow { flex: 1; }
.reasons-head { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 4px; font-weight: 700; font-size: 12.5px; color: #8f2b21; }

.fields-table td, .fields-table th { padding: 10px 14px; }
.type-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); font-weight: 550; }

/* ---------------- modal / toast ---------------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(18, 22, 33, .45); z-index: var(--z-modal);
  display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px;
  overflow-y: auto; animation: dim-in var(--t-med) var(--ease) both;
}
.modal {
  background: var(--surface); border-radius: 16px; width: 620px; max-width: 100%;
  padding: 24px 26px; box-shadow: 0 32px 90px -18px rgba(16, 24, 40, .4);
  animation: modal-in var(--t-med) var(--ease) both;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal h3 { margin-bottom: 12px; font-size: 16.5px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .form-grid, .ov-fields { grid-template-columns: 1fr; } }
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: var(--r-md);
  font-size: 13px; font-weight: 600; z-index: var(--z-toast);
  box-shadow: 0 14px 40px -8px rgba(0, 0, 0, .4);
  animation: toast-in var(--t-med) var(--ease) both;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(10px); } }
.toast.err { background: #a92318; }

/* ---------------- add lead / import / search ---------------- */
.add-form { max-width: 920px; }
.add-form .fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 10px 26px 26px; box-shadow: var(--sh-sm); }
@media (max-width: 800px) { .add-form .fgrid { grid-template-columns: 1fr; } }
.add-foot { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 16px 0 6px; margin-top: 14px; display: flex; justify-content: center; gap: 10px; }
.add-foot .btn { padding: 10px 36px; font-size: 13.5px; }

.map-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.preview-table { font-size: 12px; max-height: 180px; overflow: auto; border: 1px solid var(--border); border-radius: var(--r-md); margin-top: 12px; }
.preview-table td, .preview-table th { padding: 6px 8px; }
.import-summary { background: var(--green-tint); border: 1px solid #b8e4cd; border-radius: var(--r-md); padding: 12px 14px; margin-top: 12px; font-weight: 600; color: var(--green); }

.search-page { max-width: 640px; }
.search-page h2 { margin-bottom: 12px; }
.search-page > input { padding: 12px 14px; font-size: 14.5px; border-radius: var(--r-md); box-shadow: var(--sh-sm); }
.search-modes { margin: 10px 2px 16px; }

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Two-way WhatsApp chat tab ---------- */
.wa-banner { padding: 8px 12px; border-radius: 8px; font-size: 12.5px; margin-bottom: 8px; }
.wa-banner.ok { background: #16a34a14; color: #15803d; border: 1px solid #16a34a33; }
.wa-banner.warn { background: #f59e0b14; color: #b45309; border: 1px solid #f59e0b33; }
.wa-ai-toggle { display: flex; align-items: center; gap: 7px; font-size: 12.5px; margin-bottom: 8px; cursor: pointer; }
.wa-ai-toggle input { width: auto; }
#wa-chat-list { max-height: 340px; overflow-y: auto; padding: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.wa-msg { max-width: 82%; display: flex; flex-direction: column; }
.wa-msg.in { align-self: flex-start; }
.wa-msg.out { align-self: flex-end; align-items: flex-end; }
.wa-bubble { padding: 8px 11px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.wa-msg.in .wa-bubble { background: var(--surface); border: 1px solid var(--border-2); border-bottom-left-radius: 4px; }
.wa-msg.out .wa-bubble { background: #d7f5d0; border: 1px solid #b8e0ae; border-bottom-right-radius: 4px; color: #1d3a16; }
.wa-meta { font-size: 10.5px; color: var(--muted); margin-top: 3px; padding: 0 3px; }
.wa-compose { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.wa-compose textarea { flex: 1; resize: none; }


/* ================= WhatsApp Campaign Studio ================= */
.wa-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.wa-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--sh-sm); }
.wa-kpi .v { font-size: 24px; font-weight: 720; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.wa-kpi .l { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.wa-empty { padding: 44px 24px; text-align: center; }
.wa-empty svg { width: 36px; height: 36px; color: var(--accent); }
.wa-empty h3 { margin: 10px 0 4px; }
.wa-empty .btn { margin-top: 14px; }
.wa-row:hover { background: var(--surface-2); }
.wa-funnel { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.wa-fr { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.wa-fr .nm { width: 62px; color: var(--text-2); font-weight: 600; }
.wa-fr .tr { flex: 1; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.wa-fr .fill { display: block; height: 100%; width: 100%; border-radius: 4px; transform-origin: left; transition: transform var(--t-med) var(--ease); }
.wa-fr .v { width: 70px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.wa-fr .v em { font-style: normal; color: var(--text-3); font-weight: 500; }
.wa-stepper { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.wa-step { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.wa-step .n { width: 20px; height: 20px; border-radius: 50%; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.wa-step.on { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-tint); }
.wa-step.on .n { background: var(--accent); color: #fff; }
.wa-step.done { cursor: pointer; color: var(--green); }
.wa-step.done .n { background: var(--green-tint); color: var(--green); }
.wa-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.wa-main { padding: 18px 20px; }
.wa-main h3 { font-size: 16px; margin-bottom: 12px; }
.wa-main label { display: block; margin-top: 10px; }
.wa-side { position: sticky; top: 12px; }
.wa-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.wa-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.wa-card { display: block; border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 12px; cursor: pointer; background: var(--surface); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.wa-card:hover { box-shadow: var(--sh-md); }
.wa-card.on { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 2px var(--accent-tint-2); }
.wa-card.dis { opacity: .55; cursor: not-allowed; }
.wa-card input { display: none; }
.wa-card b { display: block; }
.wa-card .sub { display: block; margin-top: 2px; }
.wa-card .pill { float: right; }
.wa-tpl-snip { font-size: 12px; color: var(--text-2); margin-top: 6px; white-space: pre-wrap; line-height: 1.4; }
.wa-vars { display: flex; flex-direction: column; gap: 6px; }
.wa-var { display: flex; gap: 6px; align-items: center; }
.wa-var .k { font-family: monospace; font-size: 12px; background: var(--bg); border: 1px solid var(--border); padding: 4px 6px; border-radius: 6px; color: var(--accent-ink); }
.wa-var select, .wa-var input { margin: 0; }
.wa-media { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wa-media-thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.wa-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wa-chks { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-chk { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px; font-size: 12.5px; cursor: pointer; background: var(--surface); }
.wa-chk input { margin: 0; width: auto; }
.wa-chk.on { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-ink); }
.wa-segs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.wa-count { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-tint); border: 1px solid var(--accent-tint-2); }
.wa-count .v { font-size: 30px; font-weight: 760; color: var(--accent-ink); letter-spacing: -.02em; }
.wa-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
.wa-note svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 1px; }
.wa-note.warn { background: var(--amber-tint); border-color: #f4d9b0; }
.wa-note.warn svg { color: var(--amber); }
.wa-review { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-bottom: 4px; }
.wa-review > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.wa-progress { position: relative; height: 22px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; margin-bottom: 14px; }
.wa-progress .bar { height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), #6d8ef0); transform-origin: left; transition: transform var(--t-med) var(--ease); }
.wa-progress span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 650; color: var(--ink); }
.wa-tplgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.wa-tplcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--sh-sm); }
.wa-tplcard .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 2px; }
.wa-tplprev { margin-top: 12px; }
/* phone preview */
.wa-phone { background: #e5ddd5; border-radius: 22px; border: 6px solid #1f2430; overflow: hidden; box-shadow: var(--sh-lg); font-size: 13px; }
.wa-phone-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; background: var(--surface-2); color: var(--text-3); }
.wa-phone-empty svg { width: 32px; height: 32px; margin-bottom: 8px; }
.wa-ph-top { display: flex; align-items: center; gap: 10px; background: #075e54; color: #fff; padding: 10px 12px; }
.wa-ph-top .sub { color: rgba(255,255,255,.75); }
.wa-ph-av { width: 32px; height: 32px; border-radius: 50%; background: #25d366; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; color: #073; }
.wa-ph-body { padding: 14px 10px 16px; min-height: 200px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='%23cfc6bd'/%3E%3Ccircle cx='80' cy='60' r='1.5' fill='%23cfc6bd'/%3E%3Ccircle cx='40' cy='100' r='1.5' fill='%23cfc6bd'/%3E%3C/svg%3E"); }
.wa-ph-bubble { background: #fff; border-radius: 10px; border-top-left-radius: 2px; padding: 6px 8px 18px; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,.08); max-width: 92%; }
.wa-ph-bubble img { width: 100%; border-radius: 8px; display: block; margin-bottom: 6px; }
.wa-ph-media { display: flex; align-items: center; justify-content: center; gap: 8px; height: 110px; border-radius: 8px; background: #f0f2f5; color: #667; margin-bottom: 6px; font-size: 12px; }
.wa-ph-media svg { width: 20px; height: 20px; }
.wa-ph-htext { font-weight: 700; margin-bottom: 4px; }
.wa-ph-text { line-height: 1.42; word-break: break-word; color: #111; }
.wa-ph-foot { color: #8696a0; font-size: 11.5px; margin-top: 4px; }
.wa-ph-time { position: absolute; right: 8px; bottom: 4px; font-size: 10.5px; color: #8696a0; }
.wa-ph-btns { max-width: 92%; margin-top: 3px; display: flex; flex-direction: column; gap: 3px; }
.wa-ph-btn { background: #fff; border-radius: 8px; text-align: center; padding: 8px; color: #027eb5; font-weight: 600; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
@media (max-width: 900px) {
  .wa-grid { grid-template-columns: 1fr; }
  .wa-side { position: static; order: -1; }
  .wa-2col, .wa-review { grid-template-columns: 1fr; }
  .wa-fr .nm { width: 54px; }
}


/* ================= Navigation v4: labeled sidebar + mobile bottom bar ================= */
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 232px; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: var(--z-sticky); }
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 14px 12px 12px 14px; border-bottom: 1px solid var(--border); min-height: 58px; }
.sb-logo { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 800; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sb-brandname { font-weight: 720; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.sb-collapse, .sb-out { border: none; background: none; color: var(--text-3); width: 28px; height: 28px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.sb-collapse:hover, .sb-out:hover { background: var(--bg); color: var(--ink); }
.sb-collapse svg, .sb-out svg { width: 16px; height: 16px; }
.sb-nav { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px;  scrollbar-width: thin; scrollbar-color: transparent transparent; }
.sb-nav:hover { scrollbar-color: var(--border-2) transparent; }
.sb-nav::-webkit-scrollbar { width: 6px; }
.sb-nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.sb-nav:hover::-webkit-scrollbar-thumb { background: var(--border-2); }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-md); color: var(--text-2); font-size: 13.5px; font-weight: 600; text-decoration: none; border: none; background: none; width: 100%; text-align: left; cursor: pointer; position: relative; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); font-family: inherit; }
.nav-item .ic { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.nav-item .ic svg { width: 19px; height: 19px; }
.nav-item .lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item:hover { background: var(--bg); color: var(--ink); }
.nav-item.active { background: var(--accent-tint); color: var(--accent-ink); }
.nav-item .nb { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.nav-item .live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.nav-item .chev { width: 14px; height: 14px; flex: none; opacity: .55; transition: transform var(--t-fast) var(--ease); }
.nav-item .chev::before { content: ''; display: block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 2px auto 0; }
.nav-group.open > .nav-toggle .chev { transform: rotate(180deg); }
.nav-sub { display: none; flex-direction: column; gap: 1px; padding: 2px 0 4px 40px; }
.nav-group.open > .nav-sub { display: flex; }
.nav-sub a { display: block; padding: 7px 10px; border-radius: var(--r-sm); color: var(--text-2); font-size: 13px; font-weight: 550; text-decoration: none; }
.nav-sub a:hover { background: var(--bg); color: var(--ink); }
.nav-sub a.active { color: var(--accent-ink); background: var(--accent-tint); font-weight: 650; }
.sb-foot { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px 14px; border-top: 1px solid var(--border); }
.sb-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.sb-foot .lbl { flex: 1; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell { margin-left: 232px; }
.topbar .org { display: none; }
/* collapsed */
body.nav-collapsed .sidebar { width: 64px; }
body.nav-collapsed .shell { margin-left: 64px; }
body.nav-collapsed .sb-brandname, body.nav-collapsed .nav-item .lbl, body.nav-collapsed .nav-item .chev, body.nav-collapsed .sb-foot .lbl, body.nav-collapsed .sb-out { display: none; }
body.nav-collapsed .sb-brand { justify-content: center; padding: 14px 8px 12px; gap: 6px; flex-direction: column; }
body.nav-collapsed .sb-collapse { transform: rotate(180deg); }
body.nav-collapsed .nav-item { justify-content: center; padding: 10px 0; }
body.nav-collapsed .nav-item .nb { position: absolute; top: 4px; right: 8px; min-width: 16px; height: 16px; font-size: 9.5px; padding: 0 4px; }
body.nav-collapsed .nav-item .live { position: absolute; top: 8px; right: 12px; }
body.nav-collapsed .sb-foot { justify-content: center; padding: 10px 8px 12px; }
body.nav-collapsed .nav-group { position: relative; }
body.nav-collapsed .nav-group.open > .nav-sub, body.nav-collapsed .nav-group:hover > .nav-sub { display: flex; position: absolute; left: 60px; top: 0; min-width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: 6px; z-index: var(--z-menu); }
body.nav-collapsed .nav-item[title], body.nav-collapsed .nav-item { --tip: attr(title); }
.bottombar, .more-sheet, .more-dim { display: none; }

@media (max-width: 768px) {
  .sidebar { display: none !important; }
  .shell { margin-left: 0 !important; }
  .topbar .org { display: flex; }
  .bottombar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 62px; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -4px 16px -8px rgba(18,22,33,.18); z-index: var(--z-sticky); padding-bottom: env(safe-area-inset-bottom); }
  .bb-item { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-2); text-decoration: none; font-size: 10px; font-weight: 700; letter-spacing: .01em; border: none; background: none; position: relative; font-family: inherit; }
  .bb-item .ic { width: 22px; height: 22px; display: inline-flex; }
  .bb-item .ic svg { width: 22px; height: 22px; }
  .bb-item .lbl { white-space: nowrap; }
  .bb-item.active { color: var(--accent); }
  .bb-item .nb { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 9.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
  .bb-add .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; align-items: center; justify-content: center; margin-top: -14px; box-shadow: 0 6px 16px -4px rgba(45,95,227,.6); }
  .bb-add .ic svg { width: 22px; height: 22px; }
  .more-dim { display: block; position: fixed; inset: 0; background: rgba(16,24,40,.35); z-index: calc(var(--z-sticky) + 1); }
  .more-sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 18px 18px 0 0; padding: 8px 12px calc(16px + env(safe-area-inset-bottom)); z-index: calc(var(--z-sticky) + 2); box-shadow: 0 -12px 32px -12px rgba(16,24,40,.3); }
  .ms-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--border-2); margin: 4px auto 12px; }
  .ms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .ms-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: var(--r-md); background: var(--bg); color: var(--text); font-size: 11px; font-weight: 650; text-align: center; text-decoration: none; }
  .ms-item .ic { width: 22px; height: 22px; color: var(--accent); }
  .ms-item .ic svg { width: 22px; height: 22px; }
  .ms-item:active { background: var(--accent-tint); }
}

/* ================= Closer Desk ================= */
.cl-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cl-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 280px; gap: 14px; align-items: stretch; height: calc(100vh - 175px); min-height: 520px; }
.cl-threads, .cl-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.cl-side { overflow-y: auto; }
.cl-thread-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 2px; }
.cl-thread { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 12px; cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.cl-thread:hover { box-shadow: var(--sh-md); }
.cl-thread.on { border-color: var(--accent); background: var(--accent-tint); }
.cl-th-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.cl-th-top b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.cl-th-sub { display: flex; gap: 6px; align-items: center; margin-top: 5px; flex-wrap: wrap; }
.cl-th-meta { margin-top: 4px; }
.cl-temp { font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.cl-chat { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm); min-height: 0; overflow: hidden; }
.cl-chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.cl-title { border: 1px solid transparent; background: transparent; font-weight: 700; font-size: 14.5px; padding: 6px 8px; flex: 1; min-width: 0; color: var(--ink); }
.cl-title:hover, .cl-title:focus { border-color: var(--border-2); background: var(--surface); }
.cl-track { display: inline-flex; border: 1px solid var(--border-2); border-radius: 999px; overflow: hidden; background: var(--surface); flex: none; }
.cl-seg { border: none; background: none; padding: 6px 14px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.cl-seg + .cl-seg { border-left: 1px solid var(--border); }
.cl-seg.on.t-iiq { background: var(--accent); color: #fff; }
.cl-seg.on.t-isc { background: #0e7490; color: #fff; }
.cl-seg.on.t-both { background: #7c3aed; color: #fff; }
.cl-seg.on.t-shared { background: var(--ink); color: #fff; }
.cl-seg .sub { color: inherit; opacity: .7; font-size: 11px; margin-left: 3px; }
.cl-msgs { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 18px; background: var(--bg); }
.cl-intro { background: var(--surface); border: 1px dashed var(--border-2); border-radius: var(--r-md); padding: 14px 16px; font-size: 13px; color: var(--text-2); }
.cl-ex { display: flex; flex-direction: column; gap: 8px; }
.cl-req { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.cl-tag { background: var(--surface); border: 1px solid var(--border-2); border-radius: 999px; padding: 2px 9px; font-weight: 700; font-size: 11.5px; color: var(--accent-ink); text-transform: capitalize; }
.cl-req-d { flex-basis: 100%; }
.cl-req-d summary { cursor: pointer; color: var(--text-2); font-size: 12px; }
.cl-req-text { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 10px; margin-top: 6px; font-size: 12.5px; color: var(--text-2); max-height: 220px; overflow: auto; }
.cl-out { align-self: flex-end; max-width: 78%; min-width: 320px; display: flex; flex-direction: column; gap: 8px; }
.cl-bubble { background: #d7f5d0; border: 1px solid #b8e0ae; border-radius: 12px; border-bottom-right-radius: 4px; padding: 10px 13px; font-size: 13.8px; line-height: 1.5; color: #14301a; white-space: pre-wrap; word-break: break-word; outline: none; box-shadow: var(--sh-xs); }
.cl-bubble:focus { box-shadow: 0 0 0 3px #b8e0ae88; }
.cl-bubble.cl-skel { display: flex; flex-direction: column; gap: 8px; min-height: 70px; }
.cl-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cl-actions .btn-primary { background: #188653; border-color: #188653; }
.cl-actions .btn-primary:hover { background: #136f44; }
.cl-why.on { background: var(--accent-tint); border-color: var(--accent-tint-2); color: var(--accent-ink); }
.cl-sent { font-size: 12px; color: var(--green); font-weight: 600; }
.cl-x { margin-left: auto; border: none; background: none; color: var(--text-3); font-size: 13px; padding: 4px 6px; border-radius: 6px; }
.cl-x:hover { background: var(--red-tint); color: var(--red); }
.cl-analysis { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 14px; display: grid; gap: 8px; font-size: 12.8px; color: var(--text); }
.cl-analysis b { display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.cl-err { align-self: flex-end; background: var(--red-tint); color: var(--red); border-radius: var(--r-md); padding: 8px 12px; font-size: 12.5px; }
.cl-compose { border-top: 1px solid var(--border); padding: 10px 14px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.cl-modes { display: flex; gap: 4px; background: var(--bg); border-radius: 999px; padding: 3px; align-self: flex-start; }
.cl-mode { border: none; background: none; border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.cl-mode.on { background: var(--surface); color: var(--accent-ink); box-shadow: var(--sh-sm); }
.cl-mode-opts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12.5px; }
.cl-mode-opts:empty { display: none; }
.cl-mode-opts label { font-weight: 700; color: var(--text-2); margin-right: 2px; }
.cl-mode-opts select { width: auto; padding: 5px 9px; }
.cl-chip { border: 1px solid var(--border-2); background: var(--surface); border-radius: 999px; width: 30px; height: 28px; font-weight: 700; font-size: 12.5px; }
.cl-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.cl-compose textarea { resize: vertical; min-height: 84px; }
.cl-compose-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 14px; box-shadow: var(--sh-sm); font-size: 13px; }
.cl-card-h { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.cl-card-h .ic, .cl-card-h svg { width: 14px; height: 14px; }
.cl-card-h .cl-temp, .cl-card-h .cl-link-btn { margin-left: auto; text-transform: none; letter-spacing: 0; }
.cl-link-btn { border: none; background: none; color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; }
.cl-lead b { font-size: 14px; }
.cl-kv { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.cl-lead-res { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; max-height: 260px; overflow: auto; }
.cl-lead-hit { padding: 7px 9px; border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer; }
.cl-lead-hit:hover { background: var(--accent-tint); border-color: var(--accent-tint-2); }
.cl-mem { display: grid; gap: 7px; }
.cl-mem > div { display: grid; grid-template-columns: 74px 1fr; gap: 6px; align-items: start; }
.cl-mem span { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.cl-mem em { display: inline-block; font-style: normal; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; margin: 0 4px 4px 0; font-size: 12px; }
.cl-mobile-tabs { display: none; }
/* knowledge base + skills */
.cl-kb-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.cl-kb-list { display: flex; flex-direction: column; gap: 12px; }
.cl-kb { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 14px; box-shadow: var(--sh-sm); }
.cl-kb.off { opacity: .6; }
.cl-kb-h { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.cl-kb-title { flex: 1; min-width: 180px; font-weight: 700; border-color: transparent; background: transparent; padding: 5px 8px; }
.cl-kb-title:hover, .cl-kb-title:focus { border-color: var(--border-2); background: var(--surface); }
.cl-kb-h select { width: auto; padding: 5px 8px; font-size: 12px; }
.cl-kb textarea { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; line-height: 1.5; }
.cl-kb-f { display: flex; justify-content: flex-end; gap: 10px; align-items: center; margin-top: 8px; }
.cl-switch { position: relative; width: 34px; height: 20px; flex: none; cursor: pointer; }
.cl-switch input { display: none; }
.cl-switch span { position: absolute; inset: 0; background: var(--border-2); border-radius: 999px; transition: background var(--t-fast); }
.cl-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); transition: transform var(--t-fast); }
.cl-switch input:checked + span { background: var(--green); }
.cl-switch input:checked + span::after { transform: translateX(14px); }
.cl-pre { white-space: pre-wrap; font-size: 11.5px; line-height: 1.45; max-height: 60vh; overflow: auto; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px; }
@media (max-width: 1100px) {
  .cl-layout { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .cl-layout > * { display: none; }
  .cl-layout[data-pane="threads"] .cl-threads, .cl-layout[data-pane="chat"] .cl-chat, .cl-layout[data-pane="side"] .cl-side { display: flex; }
  .cl-chat { height: calc(100vh - 220px); min-height: 480px; }
  .cl-mobile-tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; margin: 12px auto 0; width: max-content; }
  .cl-mobile-tabs button { border: none; background: none; border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 12.5px; color: var(--text-2); }
  .cl-mobile-tabs button.on { background: var(--accent); color: #fff; }
  .cl-out { max-width: 100%; min-width: 0; }
}


/* re-engaged lead: enquiry time in the Created On column */
.reeng-when { color: #db2777; font-weight: 650; }

/* wa-audience v2 */
/* step cards are <label>s — undo the global uppercase label style */
.wa-card, .wa-card b, .wa-card .sub { text-transform: none; letter-spacing: 0; }
.wa-card { font-size: 13px; font-weight: 400; color: var(--text); margin: 0; }
.wa-card b { font-size: 14px; color: var(--ink); }

.btn-wa { color: #0f7a4d; border-color: #bfe6d2; background: #f1faf5; }
.btn-wa:hover { background: #e3f5eb; border-color: #9fd9bd; }
.btn-wa svg { color: #1ea362; }

.wa-aud-head h3 { margin-bottom: 2px; }
.wa-aud-head p { margin: 0 0 12px; max-width: 62ch; }

/* live summary */
.wa-aud-sum { position: sticky; top: 8px; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-tint); border: 1px solid var(--accent-tint-2); box-shadow: var(--sh-xs); }
.wa-aud-sum.empty { background: var(--surface-2); border-color: var(--border); }
.wa-aud-sum .v { font-size: 32px; font-weight: 760; line-height: 1; color: var(--accent-ink); letter-spacing: -.02em; min-width: 2ch; font-variant-numeric: tabular-nums; }
.wa-aud-sum.empty .v { color: var(--text-3); }
.wa-aud-sumtx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wa-aud-sumtx > .sub { line-height: 1.4; }
.wa-aud-srcs { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-src { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.wa-src.filters { color: #1d3f9b; background: #edf2fe; border-color: #dbe6fd; }
.wa-src.picked { color: #6b2bd9; background: #f3edfe; border-color: #e4d8fc; }
.wa-src.pasted { color: #0f7a4d; background: #ecf8f1; border-color: #cdebdc; }

/* source tabs */
.wa-aud-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; padding: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: calc(var(--r-md) + 2px); }
.wa-aud-tab { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 10px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background var(--t-fast, .15s), color var(--t-fast, .15s), box-shadow var(--t-fast, .15s); }
.wa-aud-tab svg { width: 16px; height: 16px; flex: none; }
.wa-aud-tab:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.wa-aud-tab.on { background: var(--surface); color: var(--accent-ink); box-shadow: var(--sh-sm); }
.wa-aud-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.wa-aud-tab em { font-style: normal; font-size: 11px; font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: #fff; font-variant-numeric: tabular-nums; }
.wa-aud-panel { padding: 16px 2px 4px; }

.wa-aud-lbl { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 8px; font-size: 11px; font-weight: 650; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.wa-aud-lbl:first-child { margin-top: 0; }
.wa-aud-lbl .acts { display: inline-flex; gap: 4px; text-transform: none; letter-spacing: 0; }
.wa-aud-lbl .acts button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 6px; border-radius: 6px; font: inherit; font-size: 12px; font-weight: 600; color: var(--accent); cursor: pointer; }
.wa-aud-lbl .acts button:hover { background: var(--accent-tint); }
.wa-aud-lbl .acts svg { width: 13px; height: 13px; }

/* filter chips */
.wa-fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-fchip, .wa-qchip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 10px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .12s, background .12s, color .12s; }
.wa-fchip:hover, .wa-qchip:hover { border-color: var(--accent); }
.wa-fchip:focus-visible, .wa-qchip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.wa-fchip em { font-style: normal; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.wa-fchip svg { width: 13px; height: 13px; }
.wa-fchip.on { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-ink); font-weight: 600; }
.wa-fchip.on em { color: var(--accent-ink); opacity: .75; }
.wa-qchip { background: var(--surface-2); font-weight: 550; }
.wa-qchip.seg { color: var(--accent-ink); }
.wa-qchip svg { width: 13px; height: 13px; }
.wa-aud-fs { border: 0; margin: 0; padding: 0; min-width: 0; transition: opacity .15s; }
.wa-aud-fs:disabled { opacity: .45; }

.wa-aud-toggle { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.wa-switch { position: relative; flex: none; width: 38px; height: 22px; margin: 1px 0 0; cursor: pointer; text-transform: none; letter-spacing: 0; }
.wa-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wa-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--border-2); transition: background .15s; pointer-events: none; }
.wa-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.wa-switch input:checked + span { background: var(--accent); }
.wa-switch input:checked + span::after { transform: translateX(16px); }
.wa-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.wa-aud-more { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 4px; }
.wa-aud-more > summary { cursor: pointer; padding: 8px 0; font-size: 13px; font-weight: 600; color: var(--accent); list-style: none; }
.wa-aud-more > summary::-webkit-details-marker { display: none; }
.wa-aud-more > summary::before { content: '▸'; display: inline-block; width: 14px; transition: transform .15s; }
.wa-aud-more[open] > summary::before { transform: rotate(90deg); }
.wa-aud-more label { margin-top: 8px; }
.wa-range { display: flex; gap: 6px; margin-top: 6px; }
.wa-segsave { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.wa-segsave input { max-width: 300px; }

/* .wa-main label { display:block; margin-top } would otherwise flatten these label-based controls */
.wa-main .wa-prow { display: grid; margin: 0; }
.wa-main .wa-switch { display: block; margin: 1px 0 0; }
.wa-pchip .ph { margin-left: 4px; font-size: 11px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* pick by name */
.wa-pick-bar { display: flex; gap: 8px; }
.wa-pick-bar select { width: auto; max-width: 180px; }
.wa-pick-search { position: relative; flex: 1; min-width: 0; }
.wa-pick-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.wa-pick-search input { padding-left: 34px; }
.wa-pick-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.wa-pick-col { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.wa-pick-col.sel { background: var(--surface-2); }
.wa-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--border); min-height: 44px; }
.wa-pick-list { max-height: 360px; overflow-y: auto; overscroll-behavior: contain; }
.wa-prow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0; padding: 9px 12px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; font-weight: 400; color: var(--text); text-transform: none; letter-spacing: 0; transition: background .1s; }
.wa-prow:last-child { border-bottom: 0; }
.wa-prow:hover { background: var(--surface-2); }
.wa-prow.on { background: var(--accent-tint); }
.wa-prow.dis { cursor: not-allowed; opacity: .6; }
.wa-prow input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.wa-prow .nm, .wa-rrow .nm { display: flex; flex-direction: column; min-width: 0; }
.wa-prow .nm b, .wa-rrow .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.wa-prow .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.wa-bad { font-size: 12px; color: var(--red); font-weight: 600; }
.wa-pick-chips { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; padding: 10px; max-height: 300px; overflow-y: auto; }
.wa-pchip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 3px 3px 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-2); font-size: 12.5px; font-weight: 550; }
.wa-pchip button { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; color: var(--text-3); font-size: 16px; line-height: 1; cursor: pointer; }
.wa-pchip button:hover { background: var(--red-tint); color: var(--red); }
.wa-pick-tip { margin: auto 0 0; padding: 10px; border-top: 1px dashed var(--border); font-size: 12px; }

/* paste numbers */
#wa-paste { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; resize: vertical; min-height: 150px; }
.wa-paste-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; min-height: 4px; }
.wa-paste-stats span { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.wa-paste-stats .ok { color: var(--green); background: var(--green-tint); border-color: #cdebdc; font-weight: 600; }
.wa-paste-stats .bad { color: var(--red); background: var(--red-tint); border-color: #f6cfcb; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-paste-stats svg { width: 13px; height: 13px; }
.wa-paste-help { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; max-width: 72ch; }

/* skip recent */
.wa-aud-opt { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); }
.wa-aud-opt > svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.wa-aud-opt .tx { flex: 1; min-width: 0; }
.wa-aud-opt select { width: auto; min-width: 140px; }

/* review recipients */
.wa-aud-review { margin-top: 10px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.wa-aud-review > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; cursor: pointer; list-style: none; }
.wa-aud-review > summary::-webkit-details-marker { display: none; }
.wa-aud-review > summary > span:first-child::before { content: '▸'; display: inline-block; width: 14px; color: var(--text-3); transition: transform .15s; }
.wa-aud-review[open] > summary > span:first-child::before { transform: rotate(90deg); }
.wa-aud-rtools { display: flex; gap: 8px; align-items: center; padding: 0 12px 10px; }
.wa-aud-rlist { max-height: 340px; overflow-y: auto; border-top: 1px solid var(--border); overscroll-behavior: contain; }
.wa-rrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.wa-rrow:last-child { border-bottom: 0; }
.wa-rm { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--text-3); font-size: 18px; line-height: 1; cursor: pointer; }
.wa-rm:hover { background: var(--red-tint); color: var(--red); }
.wa-rm:focus-visible { outline: 2px solid var(--accent); }
.wa-rmore { padding: 10px 12px; }

@media (max-width: 760px) {
  .wa-aud-sum { top: 0; flex-wrap: wrap; }
  .wa-aud-sum .v { font-size: 26px; }
  .wa-aud-tab { flex-direction: column; gap: 3px; font-size: 12px; min-height: 52px; padding: 6px 4px; }
  .wa-pick-grid { grid-template-columns: 1fr; }
  .wa-pick-bar { flex-direction: column; }
  .wa-pick-bar select { max-width: none; width: 100%; }
  .wa-aud-opt { flex-wrap: wrap; }
  .wa-aud-opt select { width: 100%; }
  .wa-segsave input { max-width: none; }
  .wa-aud-review > summary > .sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-aud-tab, .wa-fchip, .wa-qchip, .wa-switch span, .wa-switch span::after, .wa-aud-fs { transition: none; }
}

/* wa-audience v3 */
.wa-linkbtn { display: inline-flex; align-items: center; border: 0; background: none; padding: 4px 6px; border-radius: 6px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: none; white-space: nowrap; }
.wa-linkbtn:hover { background: var(--accent-tint); text-decoration: none; }
.wa-linkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.wa-intl { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; color: #8a4b08; background: #fff4e5; border: 1px solid #f7dcb4; }

/* summary: why not all leads */
.wa-why-btn { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px; align-self: flex-start; margin: 2px 0 0 -6px; padding: 4px 6px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent-ink); cursor: pointer; text-align: left; }
.wa-why-btn:hover { background: rgba(255, 255, 255, .7); }
.wa-why-btn .car { width: 10px; }
.wa-why-btn .sub { font-weight: 400; }
.wa-why { margin-top: 8px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.wa-why-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--border); font-size: 13.5px; }
.wa-why-row:first-child { border-top: 0; }
.wa-why-row .lbl { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wa-why-row .lbl .sub { font-size: 12px; }
.wa-why-row .acts { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.wa-why-row > b { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; }
.wa-why-row > b.neg { color: var(--text-2); font-weight: 600; }
.wa-why-row > b.pos { color: var(--green); }
.wa-why-row.total { grid-template-columns: minmax(0, 1fr) 64px; background: var(--surface-2); font-weight: 600; }
.wa-why-row.total.final { background: var(--accent-tint); color: var(--accent-ink); }
.wa-why-row.total.final b { font-size: 16px; }
.wa-why-list { max-height: 260px; overflow-y: auto; border-top: 1px dashed var(--border); background: var(--surface-2); overscroll-behavior: contain; }
.wa-why-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 14px 7px 28px; border-bottom: 1px solid var(--border); font-size: 13px; }
.wa-why-item:last-child { border-bottom: 0; }
.wa-why-item .nm { display: flex; flex-direction: column; min-width: 0; }
.wa-why-item .nm b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* don't send to */
.wa-ex { margin-top: 16px; border: 1px solid #f2d3cf; border-radius: var(--r-md); background: #fffafa; }
.wa-ex-head { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px 0; }
.wa-ex-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--red-tint); color: var(--red); font-size: 17px; font-weight: 700; line-height: 1; }
.wa-ex-head .tx { flex: 1; min-width: 0; }
.wa-ex-head .tx b { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.wa-ex-n { font-size: 11px; font-weight: 700; min-width: 20px; text-align: center; padding: 1px 6px; border-radius: 999px; background: var(--red); color: #fff; }
.wa-ex-body { position: relative; padding: 10px 14px 12px; }
.wa-ex-sug { position: absolute; left: 14px; right: 14px; z-index: 5; margin-top: 4px; max-height: 320px; overflow-y: auto; border: 1px solid var(--border-2); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-lg); }
.wa-sug { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--border); background: none; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.wa-sug:last-child { border-bottom: 0; }
.wa-sug:hover, .wa-sug:focus-visible { background: var(--red-tint); outline: none; }
.wa-sug .nm { display: flex; flex-direction: column; min-width: 0; }
.wa-sug .act { flex: none; font-size: 12px; font-weight: 650; color: var(--red); }
.wa-sug-empty { padding: 10px 12px; }
.wa-ex-pastebox { margin-top: 10px; }
.wa-ex-pastebox textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.wa-ex-prow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.wa-ex-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.wa-exchip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 3px 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid #f2c9c4; font-size: 12.5px; }
.wa-exchip .nm { font-weight: 600; color: var(--text); text-decoration: line-through; text-decoration-color: rgba(217, 45, 32, .45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-exchip .ph { color: var(--text-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.wa-exchip button { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: var(--accent); font-size: 14px; cursor: pointer; }
.wa-exchip button:hover { background: var(--accent-tint); }

/* international switch row */
.wa-aud-opt .wa-globe { font-size: 17px; width: 18px; text-align: center; flex: none; }
.wa-aud-opt .wa-switch { flex: none; }
.wa-main .wa-aud-opt .wa-switch { margin: 0; }
.wa-aud-opt + .wa-aud-opt { margin-top: 8px; }

/* review list with checkboxes */
.wa-main .wa-rrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; margin: 0; padding: 8px 12px; cursor: pointer; font-size: 13px; font-weight: 400; color: var(--text); text-transform: none; letter-spacing: 0; transition: opacity .15s, background .1s; }
.wa-main .wa-rrow:hover { background: var(--surface-2); }
.wa-rrow input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.wa-rrow.out { opacity: .45; }
.wa-paste-stats .intl { color: #8a4b08; background: #fff4e5; border-color: #f7dcb4; font-weight: 600; }

@media (max-width: 760px) {
  .wa-why-row { grid-template-columns: minmax(0, 1fr) 52px; }
  .wa-why-row .acts { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; margin: -4px 0 0 -6px; }
  .wa-why-row.total { grid-template-columns: minmax(0, 1fr) 52px; }
  .wa-ex-head { flex-wrap: wrap; }
  .wa-ex-head .btn { margin-left: 42px; }
  .wa-main .wa-rrow { grid-template-columns: auto minmax(0, 1fr) auto; }
  .wa-main .wa-rrow .wa-intl { display: none; }
}
