:root {
  --ink: #12201c;
  --ink-soft: #2a3a34;
  --paper: #edf1ef;
  --paper-2: #f7faf8;
  --line: #c9d4ce;
  --teal: #0f766e;
  --teal-deep: #0b5a54;
  --copper: #b85c38;
  --ok: #1f7a4c;
  --warn: #9a6700;
  --bad: #a33b2d;
  --shadow: 0 18px 50px rgba(18, 32, 28, 0.12);
  --radius: 18px;
  --font: "Onest", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-synthesis: none;
  font-optical-sizing: auto;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(15, 118, 110, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 100%, rgba(184, 92, 56, 0.12), transparent 50%),
    linear-gradient(160deg, #dfe8e3 0%, var(--paper) 45%, #e8ece9 100%);
}
button, input, select, textarea {
  font-family: inherit;
}

.shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.menu-btn,
.rail-close,
.rail-scrim {
  display: none;
}

.rail {
  padding: 28px 20px;
  background: linear-gradient(180deg, #0f1b18 0%, #15241f 100%);
  color: #e8efeb;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.brand { display: flex; gap: 12px; align-items: center; }
.brand > div:nth-child(2) { flex: 1; min-width: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal), #1aa39a);
  color: white;
}
.brand-name { font-weight: 700; font-size: 1.15rem; }
.brand-sub { font-size: 0.78rem; opacity: 0.65; }

.nav { display: flex; flex-direction: column; gap: 8px; }
.nav-btn {
  border: 0; text-align: left; cursor: pointer;
  background: transparent; color: #d5e0db;
  padding: 10px 12px; border-radius: 12px;
  font: inherit; font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-btn:hover { background: rgba(255,255,255,0.06); }
.nav-btn.active { background: rgba(26, 163, 154, 0.22); color: white; }

.rail-foot {
  margin-top: auto;
  padding: 12px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(26, 163, 154, 0.22), rgba(255,255,255,0.04) 55%),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.rail-user {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
}
.rail-user.is-empty {
  display: block;
  padding: 6px 4px;
  color: rgba(232, 239, 235, 0.7);
  font-size: 0.86rem;
}
.rail-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #0f1b18;
  background: linear-gradient(145deg, #7ee0d6, #1aa39a);
  box-shadow: 0 0 0 3px rgba(26, 163, 154, 0.22);
}
.rail-user-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.rail-user-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7ee0d6;
}
.rail-user-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f3f8f6;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rail-user-slug {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(232, 239, 235, 0.72);
  line-height: 1.3;
}

.main { padding: 28px 32px 48px; }
.top {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 24px; gap: 16px;
}
.top h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.2;
}
.hint { margin: 6px 0 0; color: var(--ink-soft); opacity: 0.8; }

.view { display: none; }
.view.active { display: block; animation: rise 0.35s ease; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(15,118,110,0.12), transparent 40%),
    linear-gradient(180deg, #ffffffcc, #f4f8f6ee);
  border: 1px solid rgba(18,32,28,0.08);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.hero::after {
  content: "";
  position: absolute; inset: auto -40px -60px auto;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,92,56,0.18), transparent 70%);
  pointer-events: none;
}
.hero-brand {
  font-weight: 800;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 8px;
}
.hero p { margin: 0 0 20px; max-width: 52ch; color: var(--ink-soft); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.stat, .panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stat .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.stat .value { font-weight: 700; font-size: 1.55rem; line-height: 1.2; margin-top: 6px; }
.stat.ok .value { color: var(--ok); }
.stat.warn .value { color: var(--warn); }
.stat.bad .value { color: var(--bad); }

.panel h3 {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.25;
}

.btn {
  border: 0; border-radius: 999px; padding: 8px 14px 8px 8px;
  font: inherit; font-weight: 600; cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--teal); color: white; }
.btn.primary:hover { background: var(--teal-deep); }
.btn.copper { background: var(--copper); color: white; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.danger { background: #f6e8e5; color: var(--bad); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }

table {
  width: 100%; border-collapse: collapse; font-size: 0.92rem;
}
th, td {
  text-align: left; padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
tr:hover td { background: rgba(15,118,110,0.04); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  background: #e4eeea; color: var(--ink-soft);
}
.pill.on { background: #d9f0e4; color: var(--ok); }
.pill.off { background: #f4e7e3; color: var(--bad); }

label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
}
input, select, textarea {
  font: inherit; font-weight: 500; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; background: white;
}
select, .fancy-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #f4faf8;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--teal) 50%),
    linear-gradient(135deg, var(--teal) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
  border: 1px solid #b7d4cc;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
textarea { resize: vertical; }

.feature-list, .pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feature-list span, .pick-row button {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: #e7f3ef;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  border: 0;
}
.pick-row button { cursor: pointer; font: inherit; }
.pick-row button.on { background: var(--teal); color: white; }

.item-list { display: flex; flex-direction: column; gap: 8px; }
.item-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f4f8f6;
  border: 1px solid var(--line);
}
.item-row .row { justify-content: end; }

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.panel-head h3 { margin: 0 0 6px; }
.panel-head .muted { margin: 0; max-width: 58ch; }
.panel-foot { margin: 14px 0 0; }
.empty-hint {
  padding: 16px;
  text-align: center;
  color: var(--ink-soft);
  background: #f4f8f6;
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.control-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: #f4f8f6;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.control-field {
  min-width: 180px;
  max-width: 220px;
  flex: 0 0 200px;
}
.control-field input { width: 100%; }
.control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.event-row {
  grid-template-columns: 1fr auto;
  align-items: start;
}
.event-main { min-width: 0; display: grid; gap: 6px; }
.event-main strong { line-height: 1.3; }
.event-kind { align-self: start; white-space: nowrap; }
.event-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.event-note, .event-err {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.event-err { color: var(--bad); font-weight: 600; }

.realtor-row {
  grid-template-columns: minmax(200px, 1.5fr) auto 1fr auto;
}
.realtor-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.realtor-mini .rail-user-avatar {
  width: 40px;
  height: 40px;
  font-size: 0.76rem;
}
.realtor-mini strong {
  display: block;
  line-height: 1.25;
}
.realtor-nums {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.realtor-nums span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e7f3ef;
}
.realtor-pills { justify-content: flex-start !important; }

.kanban {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), minmax(240px, 1fr));
  gap: 14px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 8px;
}
.kanban-col {
  background:
    linear-gradient(180deg, #f6fbf9 0%, #eef4f1 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.kanban-col.is-over {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
  background: #e7f6f2;
}
.kanban-col.is-add {
  min-height: 160px;
  justify-content: center;
  border-style: dashed;
  background: transparent;
}
.kanban-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
}
.col-rename input {
  width: 100%;
  font-weight: 700;
  font-size: 0.92rem;
  border: 0;
  background: transparent;
  padding: 6px 8px;
  border-radius: 10px;
}
.col-rename input:focus {
  background: white;
  border: 1px solid var(--line);
  outline: none;
}
.kanban-count {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: #d9efe6;
  color: var(--teal-deep);
}
.icon-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 9px;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  flex: 0 0 28px;
}
.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 120px;
}
.kanban-empty {
  border: 1px dashed #b7d4cc;
  border-radius: 14px;
  padding: 18px 10px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.lead-create {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr auto;
  gap: 10px;
  align-items: end;
}
.lead-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d7e2dc;
  border-radius: 18px;
  padding: 14px 14px 12px;
  cursor: grab;
  box-shadow: 0 8px 20px rgba(18, 32, 28, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ink);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.lead-card::before,
.lead-card::after { display: none; }
.lead-card:hover {
  border-color: #b7d4cc;
  box-shadow: 0 12px 28px rgba(18, 32, 28, 0.1);
  transform: translateY(-1px);
}
.lead-card:active { cursor: grabbing; }
.lead-card.is-dragging {
  opacity: 0.45;
  transform: rotate(1.5deg) scale(0.98);
}
.lead-top {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
}
.lead-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #0f1b18;
  background: linear-gradient(145deg, #9be8df, #1aa39a);
}
.lead-head {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.lead-head strong {
  display: block;
  line-height: 1.25;
  font-size: 0.98rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lead-meta-line {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
.lead-facts {
  display: grid;
  gap: 8px;
  padding-top: 2px;
  border-top: 1px solid #e7efeb;
}
.lead-fact {
  display: grid;
  gap: 2px;
}
.lead-fact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6f8279;
}
.lead-fact-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  word-break: break-word;
  text-decoration: none;
}
.lead-fact-value.is-empty {
  color: #8a9a93;
  font-weight: 500;
}
a.lead-fact-value { color: var(--teal-deep); }
.lead-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid #e7efeb;
  min-width: 0;
}
.lead-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 650;
  border-radius: 12px;
  line-height: 1.1;
  box-sizing: border-box;
}
.lead-actions .btn.ghost {
  background: #f3f8f5;
  border: 1px solid #d0ddd6;
  color: var(--ink);
}
.lead-actions .btn.danger {
  background: #fff1ef;
  border: 1px solid #f0cfc8;
  color: var(--bad);
}
.lead-actions .btn::before {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 6px;
  background-size: 11px 11px, 100% 100%, 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 14px;
  min-height: min(70vh, 640px);
  height: calc(100dvh - 180px);
}
.chat-list, .chat-thread {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.chat-item, .bubble {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.chat-item.active { background: #e7f3ef; }
.chat-list { overflow: auto; }
.thread-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bubble {
  max-width: 78%;
  border: 0;
  border-radius: 16px;
  cursor: default;
}
.bubble.in { background: #e7f3ef; align-self: flex-start; }
.bubble.out { background: #d9efe6; align-self: flex-end; }
.chat-compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-compose input { flex: 1; }
.secret-field { letter-spacing: 0.18em; }

@media (max-width: 1100px) {
  .item-row { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; height: auto; min-height: 0; }
}

dialog {
  border: 0; border-radius: 24px; padding: 0;
  width: min(720px, calc(100vw - 24px));
  max-height: min(92dvh, 900px);
  overflow: auto;
  box-shadow: var(--shadow);
  background: transparent;
}
dialog::backdrop { background: rgba(12, 20, 18, 0.45); backdrop-filter: blur(4px); }
.dialog-card { background: white; padding: 24px; border-radius: 24px; display: grid; gap: 12px; }
.dialog-card h2 { margin: 0; font-weight: 700; line-height: 1.25; }
.dialog-actions { display: flex; justify-content: end; gap: 8px; margin-top: 8px; }

.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  background: var(--ink); color: white; padding: 12px 16px;
  border-radius: 14px; max-width: min(420px, calc(100vw - 32px));
  box-shadow: var(--shadow); animation: rise 0.25s ease;
}
.muted { color: var(--ink-soft); font-size: 0.86rem; }
.thumb {
  width: 64px; height: 48px; object-fit: cover; border-radius: 8px;
  background: #d7e0db;
}
.listing-cell { cursor: pointer; }
.listing-cell:hover .listing-title { color: var(--teal); }
.listing-title {
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.listing-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.listing-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.listing-card.is-off { opacity: 0.62; }
.listing-card .thumb-wrap {
  aspect-ratio: 16 / 10;
  background: #d7e0db;
  overflow: hidden;
}
.listing-card .thumb-wrap img,
.listing-card .thumb-wrap .thumb-empty {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.listing-card .thumb-empty {
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
}
.listing-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  flex: 1;
}
.listing-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.listing-card .card-actions {
  margin-top: auto;
  padding-top: 4px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 8px 0 16px;
}
.gallery a { display: block; line-height: 0; }
.gallery img {
  width: 100%; height: 140px; object-fit: cover;
  border-radius: 12px; background: #d7e0db;
}
.gallery img.cover { grid-column: 1 / -1; height: 280px; }
.map-box {
  margin: 8px 0 16px;
  border-radius: 14px;
  overflow: hidden;
  background: #d7e0db;
}
.chip-x {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  margin-left: 4px;
  padding: 0 2px;
  opacity: 0.7;
}
.chip-x:hover { opacity: 1; }
.warn-banner {
  margin-top: 14px;
  border: 1px solid #e2b86a;
  background: #fff8ea;
}
.tg-channels {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 14px;
  background: #eef3f0;
}
.map-box iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}
.listing-hero-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.25;
}
.post-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
}
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 12px; font-size: 0.95rem; align-items: baseline; }
.kv dt { color: var(--ink-soft); font-weight: 500; }
.kv dd { margin: 0; font-weight: 600; }
.source-box {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: #f3f6f4;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  overflow: auto;
  max-height: 480px;
}
.source-box.is-raw {
  background: #0f1b18;
  color: #d5e0db;
  border-color: transparent;
  font-size: 0.86rem;
  line-height: 1.5;
}
.price {
  font-weight: 700;
  color: var(--teal-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.row-off td { opacity: 0.55; }

.login-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-gate[hidden],
.shell[hidden] {
  display: none !important;
}
.login-card {
  width: min(400px, 100%);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}
.login-card h1 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}
.brand-mark.big {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem;
  background: linear-gradient(135deg, var(--teal), #1aa39a);
  color: white;
}
.rail-logout {
  margin-top: 8px;
  width: 100%;
  color: #d5e0db !important;
  border-color: rgba(255,255,255,0.15) !important;
}

.realtor-head { display: flex; flex-direction: column; gap: 16px; }
.realtor-id { display: flex; align-items: center; gap: 14px; }
.realtor-stats { margin: 0; }
.realtor-stats .stat { padding: 12px 14px; }

.explain h3 { margin-bottom: 8px; }
.explain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.explain-grid p { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.45; }

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
  background: var(--teal);
}
.step-body h3 { margin: 4px 0 4px; }
.divider-line {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; }
.plan.is-hit { border-color: var(--teal); background: #f3faf8; }
.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-deep);
  background: #d9f0e4;
  border-radius: 999px;
  padding: 3px 8px;
}
.plan-name { font-weight: 700; font-size: 1.05rem; }
.plan-price {
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--teal-deep);
  font-variant-numeric: tabular-nums;
}
.plan-price span { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.plan-list {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.plan-split {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.plan-split b { color: var(--ink); font-weight: 700; }

@media (max-width: 1100px) {
  .explain-grid, .tariff-grid { grid-template-columns: 1fr; }
}

/* ——— tablet / phone ——— */
@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 60;
    border: 0;
    border-radius: 999px;
    padding: 8px 14px 8px 8px;
    font: inherit;
    font-weight: 700;
    color: #f3f8f6;
    cursor: pointer;
    background:
      linear-gradient(160deg, rgba(26, 163, 154, 0.35), rgba(15, 27, 24, 0.95)),
      #121c19;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 10px 28px rgba(12, 20, 18, 0.28);
  }
  .menu-btn::before {
    content: "";
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 10px;
    background-image:
      var(--ico-grid),
      linear-gradient(155deg, rgba(255,255,255,0.84) 0%, rgba(255,255,255,0.16) 38%, transparent 42%),
      linear-gradient(160deg, #7ee0d6, #0f766e);
    background-size: 16px 16px, 100% 100%, 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.74), 0 4px 10px rgba(15, 118, 110, 0.35);
  }

  .rail-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(8, 14, 12, 0.48);
    backdrop-filter: blur(3px);
  }
  .rail-scrim[hidden] { display: none !important; }

  .rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 86vw);
    z-index: 80;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    overflow: auto;
    box-shadow: 18px 0 40px rgba(0,0,0,0.28);
  }
  body.rail-open .rail { transform: none; }
  body.rail-open { overflow: hidden; }

  .rail-close {
    display: grid !important;
    place-items: center;
    margin-left: auto;
  }

  .main {
    padding: 72px 18px 36px;
    width: 100%;
    min-width: 0;
  }
  .top { align-items: start; }
  .top-copy { min-width: 0; }

  .kanban {
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 82vw);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 12px;
  }
  .kanban-col { scroll-snap-align: start; min-height: 320px; }
  .lead-create {
    grid-template-columns: 1fr 1fr;
  }
  .lead-create > :last-child,
  .lead-create button {
    grid-column: 1 / -1;
  }

  .realtor-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .realtor-row > .btn { width: 100%; justify-content: center; }

  .control-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .control-field {
    max-width: none;
    flex: 1 1 auto;
    width: 100%;
  }
  .control-actions {
    width: 100%;
  }
  .control-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .chat-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  .chat-list {
    max-height: 220px;
  }
  .chat-thread {
    min-height: 420px;
    height: min(58dvh, 520px);
  }

  .step { grid-template-columns: 36px 1fr; gap: 12px; }
  .kv { grid-template-columns: 110px 1fr; }
  .gallery img.cover { height: 200px; }
  .map-box iframe { height: 220px; }
}

@media (max-width: 720px) {
  .main { padding: 68px 14px 28px; }
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .top h1 { font-size: 1.45rem; }
  .hero { padding: 20px; border-radius: 22px; }
  .hero-brand { font-size: 1.7rem; }
  .hero-actions .btn,
  .panel .row > .btn {
    width: 100%;
    justify-content: center;
  }
  .lead-create { grid-template-columns: 1fr; }
  .listings-grid { grid-template-columns: 1fr; }
  .dialog-card { padding: 18px; border-radius: 20px; }
  .dialog-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .dialog-actions .btn { width: 100%; justify-content: center; }
  .chat-compose {
    flex-direction: column;
    align-items: stretch;
  }
  .chat-compose .btn { width: 100%; justify-content: center; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { font-size: 0.78rem; }
  .login-card { padding: 22px 18px; }
  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  .pick-row button { width: 100%; justify-content: flex-start; }
  .agency-seats-form,
  .agency-seats-form.row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

:root {
  --ico-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M8 3v10M3 8h10'/%3E%3C/svg%3E");
  --ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.2l3.2 3.3L13 4.5'/%3E%3C/svg%3E");
  --ico-trash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 4.5h9M6.2 4.5V3.4h3.6v1.1M5.2 4.5l.5 8.1h4.6l.5-8.1'/%3E%3C/svg%3E");
  --ico-edit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.4 2.9l1.7 1.7-8.1 8.1H3.3v-1.7l8.1-8.1z'/%3E%3C/svg%3E");
  --ico-send: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.8 8.1l10.4-5.2-4.2 10.3-1.6-4.2L2.8 8.1z'/%3E%3C/svg%3E");
  --ico-open: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 11L11 5M6.2 5H11v4.8'/%3E%3C/svg%3E");
  --ico-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.2H4.2v9.6H7M7.2 8h5.6M10.4 5.4L13 8l-2.6 2.6'/%3E%3C/svg%3E");
  --ico-in: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3.2h2.8v9.6H9M8.8 8H3.2M5.6 5.4L3 8l2.6 2.6'/%3E%3C/svg%3E");
  --ico-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3v7.2M5.2 7.4L8 10.6l2.8-3.2M3.6 13h8.8'/%3E%3C/svg%3E");
  --ico-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M6 4.2l6.4 3.8L6 11.8V4.2z'/%3E%3C/svg%3E");
  --ico-power: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M8 3v5M4.3 5.3a4.8 4.8 0 1 0 7.4 0'/%3E%3C/svg%3E");
  --ico-key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5.6' cy='8' r='2.6'/%3E%3Cpath d='M8 8h5.2v2.2H11V8'/%3E%3C/svg%3E");
  --ico-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M8 1.8l1.15 4.05L13.2 7 9.15 8.15 8 12.2 6.85 8.15 2.8 7l4.05-1.15L8 1.8z'/%3E%3C/svg%3E");
  --ico-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.2' y='3.6' width='9.6' height='9.2' rx='1.4'/%3E%3Cpath d='M3.2 6.6h9.6M6 2.8v2M10 2.8v2'/%3E%3C/svg%3E");
  --ico-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='3.6'/%3E%3Cpath d='M10 10.2L13.2 13.4'/%3E%3C/svg%3E");
  --ico-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M3.4 3.6h9.2v7.1H7.1L3.4 13.2V3.6z'/%3E%3C/svg%3E");
  --ico-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M3.2 8.4L8.4 3.2h4.4v4.4L8 12.4 3.2 8.4z'/%3E%3Ccircle cx='10.6' cy='5.4' r='0.8' fill='%23fff'/%3E%3C/svg%3E");
  --ico-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4L3.2 8 7 12M3.2 8H13'/%3E%3C/svg%3E");
  --ico-move: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.6v10.8M2.6 8h10.8M5.4 4.4L8 2.6l2.6 1.8M5.4 11.6L8 13.4l2.6-1.8'/%3E%3C/svg%3E");
  --ico-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Cpath d='M2.2 8s2.4-4 5.8-4 5.8 4 5.8 4-2.4 4-5.8 4-5.8-4-5.8-4z'/%3E%3Ccircle cx='8' cy='8' r='1.7'/%3E%3C/svg%3E");
  --ico-eye-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M3 3.2l10 10M6.1 6.2A3.4 3.4 0 0 0 5.4 8c0 1.5 1.2 2.6 2.6 2.6.6 0 1.1-.2 1.6-.5M12.4 10.2c1-.8 1.7-1.7 1.7-2.2 0 0-2.4-4-5.8-4-.8 0-1.6.2-2.3.5'/%3E%3C/svg%3E");
  --ico-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4.2 4.2l7.6 7.6M11.8 4.2l-7.6 7.6'/%3E%3C/svg%3E");
  --ico-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Ccircle cx='8' cy='8' r='2.2'/%3E%3C/svg%3E");
  --ico-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Crect x='2.8' y='2.8' width='4.2' height='4.2' rx='1'/%3E%3Crect x='9' y='2.8' width='4.2' height='4.2' rx='1'/%3E%3Crect x='2.8' y='9' width='4.2' height='4.2' rx='1'/%3E%3Crect x='9' y='9' width='4.2' height='4.2' rx='1'/%3E%3C/svg%3E");
  --ico-leads: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Crect x='2.6' y='3' width='2.4' height='10' rx='.8'/%3E%3Crect x='6.8' y='5.2' width='2.4' height='7.8' rx='.8'/%3E%3Crect x='11' y='2.4' width='2.4' height='10.6' rx='.8'/%3E%3C/svg%3E");
  --ico-people: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Ccircle cx='6' cy='5.4' r='2'/%3E%3Cpath d='M2.4 12.4c.2-2.2 1.7-3.4 3.6-3.4s3.4 1.2 3.6 3.4'/%3E%3Ccircle cx='11.1' cy='5.8' r='1.6'/%3E%3Cpath d='M10.2 9.2c1.5.1 2.8 1.1 3.2 3.2'/%3E%3C/svg%3E");
  --ico-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Ccircle cx='8' cy='5.4' r='2.3'/%3E%3Cpath d='M3.4 13c.3-2.6 2.1-4 4.6-4s4.3 1.4 4.6 4'/%3E%3C/svg%3E");
  --ico-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M2.8 7.4L8 3.2l5.2 4.2V13H9.4V9.4H6.6V13H2.8V7.4z'/%3E%3C/svg%3E");
  --ico-gear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M6.15 1.25h3.7l.28 1.62c.5.14.96.38 1.36.7l1.58-.58 1.85 3.2-1.3 1.06c.1.4.16.82.16 1.25s-.06.85-.16 1.25l1.3 1.06-1.85 3.2-1.58-.58c-.4.32-.86.56-1.36.7l-.28 1.62h-3.7l-.28-1.62a5.2 5.2 0 0 1-1.36-.7l-1.58.58-1.85-3.2 1.3-1.06A5 5 0 0 1 2.2 8c0-.43.06-.85.16-1.25L1.06 5.69l1.85-3.2 1.58.58c.4-.32.86-.56 1.36-.7l.28-1.62zM8 10.2A2.2 2.2 0 1 0 8 5.8a2.2 2.2 0 0 0 0 4.4z'/%3E%3C/svg%3E");
  --ico-map: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Cpath d='M8 13.2s4.2-3.4 4.2-6.2A4.2 4.2 0 0 0 8 2.8 4.2 4.2 0 0 0 3.8 7c0 2.8 4.2 6.2 4.2 6.2z'/%3E%3Ccircle cx='8' cy='7' r='1.4'/%3E%3C/svg%3E");
  --ico-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M4.2 3.4h2.2l.8 2.2-1.3 1.1a7.2 7.2 0 0 0 3.4 3.4l1.1-1.3 2.2.8v2.2c0 .7-.6 1.3-1.3 1.3C6.4 13.1 2.9 9.6 2.9 4.7c0-.7.6-1.3 1.3-1.3z'/%3E%3C/svg%3E");
}

.btn::before,
.nav-btn::before,
.icon-btn,
.pick-row button::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 8px;
  background-image:
    var(--ico, var(--ico-dot)),
    linear-gradient(155deg, rgba(255,255,255,0.84) 0%, rgba(255,255,255,0.16) 38%, transparent 42%),
    linear-gradient(160deg, var(--glass-a, #7ee0d6), var(--glass-b, #0f766e));
  background-size: 12px 12px, 100% 100%, 100% 100%;
  background-position: center, center, center;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.74),
    inset 0 -7px 9px rgba(0,0,0,0.14),
    0 4px 10px color-mix(in srgb, var(--glass-b, #0f766e) 38%, transparent);
}

.btn.primary { --glass-a: #5eead4; --glass-b: #0f766e; --ico: var(--ico-check); }
.btn.copper { --glass-a: #fdba74; --glass-b: #b85c38; --ico: var(--ico-send); }
.btn.danger { --glass-a: #fda4af; --glass-b: #be123c; --ico: var(--ico-trash); }
.btn.ghost { --glass-a: #bae6fd; --glass-b: #0369a1; --ico: var(--ico-spark); }

.btn[data-ico="plus"] { --ico: var(--ico-plus); --glass-a: #86efac; --glass-b: #15803d; }
.btn[data-ico="check"] { --ico: var(--ico-check); --glass-a: #5eead4; --glass-b: #0f766e; }
.btn[data-ico="trash"] { --ico: var(--ico-trash); --glass-a: #fda4af; --glass-b: #be123c; }
.btn[data-ico="edit"] { --ico: var(--ico-edit); --glass-a: #c4b5fd; --glass-b: #6d28d9; }
.btn[data-ico="send"] { --ico: var(--ico-send); --glass-a: #fdba74; --glass-b: #c2410c; }
.btn[data-ico="open"] { --ico: var(--ico-open); --glass-a: #67e8f9; --glass-b: #0e7490; }
.btn[data-ico="out"] { --ico: var(--ico-out); --glass-a: #e2e8f0; --glass-b: #475569; }
.btn[data-ico="in"] { --ico: var(--ico-in); --glass-a: #5eead4; --glass-b: #0f766e; }
.btn[data-ico="download"] { --ico: var(--ico-download); --glass-a: #93c5fd; --glass-b: #1d4ed8; }
.btn[data-ico="play"] { --ico: var(--ico-play); --glass-a: #86efac; --glass-b: #15803d; }
.btn[data-ico="power"] { --ico: var(--ico-power); --glass-a: #fcd34d; --glass-b: #b45309; }
.btn[data-ico="key"] { --ico: var(--ico-key); --glass-a: #fde68a; --glass-b: #a16207; }
.btn[data-ico="spark"] { --ico: var(--ico-spark); --glass-a: #f0abfc; --glass-b: #a21caf; }
.btn[data-ico="calendar"] { --ico: var(--ico-calendar); --glass-a: #fdba74; --glass-b: #c2410c; }
.btn[data-ico="search"] { --ico: var(--ico-search); --glass-a: #a5b4fc; --glass-b: #4338ca; }
.btn[data-ico="chat"] { --ico: var(--ico-chat); --glass-a: #86efac; --glass-b: #15803d; }
.btn[data-ico="tag"] { --ico: var(--ico-tag); --glass-a: #fdba74; --glass-b: #c2410c; }
.btn[data-ico="back"] { --ico: var(--ico-back); --glass-a: #cbd5e1; --glass-b: #334155; }
.btn[data-ico="move"] { --ico: var(--ico-move); --glass-a: #99f6e4; --glass-b: #0f766e; }
.btn[data-ico="eye"] { --ico: var(--ico-eye); --glass-a: #86efac; --glass-b: #166534; }
.btn[data-ico="eye-off"] { --ico: var(--ico-eye-off); --glass-a: #fda4af; --glass-b: #9f1239; }
.btn[data-ico="close"] { --ico: var(--ico-close); --glass-a: #e2e8f0; --glass-b: #475569; }
.btn[data-ico="home"] { --ico: var(--ico-home); --glass-a: #67e8f9; --glass-b: #0e7490; }
.btn[data-ico="map"] { --ico: var(--ico-map); --glass-a: #86efac; --glass-b: #15803d; }
.btn[data-ico="user"] { --ico: var(--ico-user); --glass-a: #c4b5fd; --glass-b: #6d28d9; }
.btn[data-ico="people"] { --ico: var(--ico-people); --glass-a: #fcd34d; --glass-b: #b45309; }

.nav-btn[data-view="overview"], .nav-btn[data-ico="grid"] { --ico: var(--ico-grid); --glass-a: #7ee0d6; --glass-b: #0f766e; }
.nav-btn[data-view="leads"], .nav-btn[data-ico="leads"] { --ico: var(--ico-leads); --glass-a: #93c5fd; --glass-b: #1d4ed8; }
.nav-btn[data-view="chat"], .nav-btn[data-ico="chat"] { --ico: var(--ico-chat); --glass-a: #86efac; --glass-b: #15803d; }
.nav-btn[data-view="clients"], .nav-btn[data-ico="people"] { --ico: var(--ico-people); --glass-a: #fcd34d; --glass-b: #b45309; }
.nav-btn[data-view="client"], .nav-btn[data-ico="user"] { --ico: var(--ico-user); --glass-a: #c4b5fd; --glass-b: #6d28d9; }
.nav-btn[data-view="listings"], .nav-btn[data-ico="home"] { --ico: var(--ico-home); --glass-a: #67e8f9; --glass-b: #0e7490; }
.nav-btn[data-view="tariffs"], .nav-btn[data-ico="tag"] { --ico: var(--ico-tag); --glass-a: #fdba74; --glass-b: #c2410c; }
.nav-btn[data-view="profile"], .nav-btn[data-ico="gear"] { --ico: var(--ico-gear); --glass-a: #e2e8f0; --glass-b: #475569; }

.nav-btn::before {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 10px;
  background-size: 16px 16px, 100% 100%, 100% 100%;
}

.icon-btn {
  --ico: var(--ico-close);
  --glass-a: #fda4af;
  --glass-b: #be123c;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 9px;
}
.icon-btn:hover { transform: translateY(-1px); }

.pick-row button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  --ico: var(--ico-user);
  --glass-a: #c4b5fd;
  --glass-b: #6d28d9;
}
.pick-row button.on {
  --glass-a: #5eead4;
  --glass-b: #0f766e;
  --ico: var(--ico-check);
}
