/* ================================================================
   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 ---------------- */
.app { display: flex; min-height: 100dvh; }
.rail {
  width: 58px; background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 6px;
  position: fixed; top: 0; bottom: 0; left: 0; z-index: var(--z-fly);
}
.rail-logo {
  width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff;
  font-weight: 800; font-size: 12.5px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px; letter-spacing: .01em;
}
.rail-btn {
  width: 40px; height: 40px; border-radius: var(--r-md); display: flex; align-items: center;
  justify-content: center; font-size: 17px; color: var(--text-2); cursor: pointer; position: relative;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.rail-btn:hover { background: var(--bg); color: var(--ink); }
.rail-btn.active { background: var(--accent-tint); color: var(--accent-ink); }
.rail-spacer { flex: 1; }
#rail-user {
  background: var(--accent); color: #fff; font-weight: 700; font-size: 12px;
  box-shadow: 0 4px 10px -3px rgba(45, 95, 227, .5);
}
.fly {
  visibility: hidden; opacity: 0; transform: translateX(-4px);
  position: absolute; left: 48px; top: -4px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-lg);
  min-width: 216px; padding: 6px; z-index: var(--z-menu);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
}
.has-fly:hover .fly, .has-fly:focus-within .fly {
  visibility: visible; opacity: 1; transform: translateX(0); transition-delay: 0s;
}
.fly-title { font-size: 10.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; padding: 7px 10px 4px; }
.fly a {
  display: block; padding: 8px 10px; border-radius: var(--r-sm); color: var(--text);
  font-size: 13px; font-weight: 550; white-space: nowrap;
  transition: background var(--t-fast) var(--ease);
}
.fly a:hover { background: var(--accent-tint); color: var(--accent-ink); }

.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; }
