:root {
  --blue-50: #fff7ed;
  --blue-100: #ffe8c7;
  --blue-500: #e85d04;
  --blue-700: #201f1c;
  --amber: #ffb000;
  --amber-soft: #fff3d6;
  --ink: #22211f;
  --muted: #706b62;
  --line: #eadfce;
  --bg: #fffaf3;
  --white: #ffffff;
  --danger: #b42318;
  --shadow: 0 10px 30px rgba(52, 37, 18, 0.08);
}

/* Premium interface refresh */
:root {
  --blue-50: #fff8ec;
  --blue-100: #ffe6b8;
  --blue-500: #f59e0b;
  --blue-700: #15130f;
  --amber: #f6a800;
  --amber-soft: #fff4d7;
  --ink: #181613;
  --muted: #6d675d;
  --line: #e9dfcf;
  --bg: #f7f3ea;
  --white: #ffffff;
  --danger: #b42318;
  --success: #087443;
  --shadow: 0 18px 48px rgba(30, 22, 10, 0.11);
  --shadow-soft: 0 8px 24px rgba(30, 22, 10, 0.07);
  --radius: 8px;
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 8% -10%, rgba(246, 168, 0, 0.20), transparent 320px),
    linear-gradient(180deg, #fffaf0 0, #f7f3ea 280px, #f4f0e8 100%);
  color: var(--ink);
  font-family: "Segoe UI Variable", "Segoe UI", "Aptos", "Inter", Arial, sans-serif;
  line-height: 1.45;
}

.topbar {
  min-height: 74px;
  padding: 10px 24px;
  gap: 14px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(233, 223, 207, 0.9);
  box-shadow: 0 10px 28px rgba(25, 19, 10, 0.08);
  backdrop-filter: blur(14px);
}
.menu-toggle,
.notify-bell,
nav a,
button,
.button {
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.menu-toggle {
  border-color: transparent;
  background: #fff7e6;
  box-shadow: inset 0 0 0 1px rgba(246, 168, 0, 0.2);
}
.menu-toggle:hover,
.notify-bell:hover,
nav a:hover,
.button:hover,
button:hover {
  transform: translateY(-1px);
}
.brand {
  min-width: 230px;
  color: #16130f;
  font-size: 15px;
  letter-spacing: 0;
}
.brand img {
  width: 72px;
  height: 46px;
  border: 1px solid rgba(233, 223, 207, 0.9);
  box-shadow: 0 6px 16px rgba(30, 22, 10, 0.08);
}
.global-search {
  width: min(620px, 46vw);
}
.global-search input {
  height: 44px;
  border-color: rgba(233, 223, 207, 0.96);
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 22, 10, 0.07);
}
.global-search input::placeholder { color: #8b8376; }
.global-search-results {
  top: calc(100% + 10px);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(24, 19, 10, 0.18);
}
.global-search-row {
  min-height: 58px;
  border-bottom: 1px solid #f2eadc;
}
.global-search-row:last-child { border-bottom: 0; }
.global-search-type {
  background: #17130e;
  color: #ffd36b;
}
.notify-bell {
  background: #fff;
  border-color: rgba(233, 223, 207, 0.95);
  box-shadow: var(--shadow-soft);
}
.notify-bell:first-of-type { margin-left: auto; }
.notify-badge {
  background: #ffb000;
  color: #17130e;
}

.app-drawer {
  width: min(348px, 88vw);
  background:
    linear-gradient(180deg, #17130e 0%, #211a12 100%);
  border-right: 1px solid rgba(255, 208, 104, 0.16);
  box-shadow: 28px 0 70px rgba(15, 11, 6, 0.36);
}
.drawer-head {
  padding: 4px 4px 16px;
  margin-bottom: 12px;
}
.drawer-head img {
  border: 1px solid rgba(255,255,255,0.22);
}
.menu-section {
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.menu-section h3 {
  margin-top: 14px;
  color: #ffd36b;
}
.app-drawer a {
  min-height: 50px;
  padding: 8px;
  border-radius: 8px;
}
.app-drawer a:hover {
  background: rgba(255, 176, 0, 0.14);
  box-shadow: inset 3px 0 0 #ffb000;
}
.app-drawer a strong { font-size: 12.5px; }
.app-drawer a small { font-size: 10.5px; }
.list-icon {
  background: rgba(255, 176, 0, 0.18);
  color: #ffd36b;
}
.list-icon::before { background-color: currentColor; }

.shell {
  max-width: 1320px;
  padding: 28px;
}
.hero,
.lead-hero,
.app-menu-head {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.hero {
  padding: 20px 22px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #17130e 0%, #302414 68%, #f6a800 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.hero h1,
.hero p { color: #fff; }
.hero h1,
h1 {
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: 0;
}
.hero p {
  max-width: 840px;
  color: rgba(255,255,255,0.78);
}
.panel,
.mobile-menu-list,
.staff-chat-list-panel,
.staff-chat-panel,
.lead-kpi,
.pipeline-card,
.module-tile,
.login-card {
  border-radius: var(--radius);
  border: 1px solid rgba(233, 223, 207, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}
.panel {
  padding: 20px;
}
.panel + .panel { margin-top: 18px !important; }
.panel h2 {
  margin: 2px 0 14px;
  font-size: 18px;
  color: #17130e;
}
.app-menu-head,
.module-head,
.lead-hero {
  background: linear-gradient(135deg, #17130e 0%, #2b2115 58%, #f6a800 100%);
  color: #fff;
  border: 0;
}
.app-menu-head h1,
.module-head h1,
.lead-hero h1 { color: #fff; }
.app-menu-head p,
.module-head p,
.lead-hero p { color: rgba(255,255,255,0.78); }
.module-launcher {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}
.module-tile {
  min-height: 188px;
  background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
}
.module-tile:hover,
.lead-kpi:hover,
.pipeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(30, 22, 10, 0.13);
}
.module-tile strong { font-size: 22px; }
.module-tile b,
button.primary,
.primary {
  background: linear-gradient(180deg, #ffc247 0%, #f6a800 100%);
  border-color: #d89000;
  color: #17130e;
  box-shadow: 0 10px 22px rgba(246, 168, 0, 0.24);
}

.grid {
  gap: 14px;
}
label {
  color: #2e281f;
  font-size: 12px;
  letter-spacing: 0;
}
input,
select,
textarea {
  min-height: 42px;
  border-color: #e7dccb;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}
input:hover,
select:hover,
textarea:hover {
  border-color: #d7c6ac;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(246, 168, 0, 0.20);
  border-color: #f6a800;
  box-shadow: 0 0 0 1px rgba(246, 168, 0, 0.18);
}
textarea { min-height: 92px; }
nav a,
button,
.button {
  min-height: 38px;
  border-radius: 8px;
  background: #fff;
  border-color: #e5dac9;
}
.actions {
  gap: 10px;
}
.field-with-action button {
  background: #17130e;
  color: #ffd36b;
}
.filter-status {
  padding: 0 10px;
  border-left: 3px solid #f6a800;
  background: #fff9eb;
  border-radius: 8px;
}

.table-wrap {
  border-radius: var(--radius);
  border-color: rgba(233, 223, 207, 0.92);
  box-shadow: var(--shadow-soft);
}
table {
  min-width: 920px;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 11px;
  background: #17130e;
  color: #fff3d0;
  font-size: 12px;
  letter-spacing: 0;
}
td {
  padding: 11px;
  color: #28231d;
}
tbody tr:nth-child(even) { background: #fffcf6; }
tbody tr:hover { background: #fff4d7; }
.lead-pill {
  border: 1px solid rgba(246, 168, 0, 0.28);
}

.lead-kpis {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.lead-pipeline {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.lead-kpi strong,
.pipeline-card strong {
  color: #17130e;
}
.pipeline-card {
  border-top-color: #f6a800;
}
.lead-quote-table {
  background: #fff9eb;
}
.staff-chat-messages {
  background:
    linear-gradient(180deg, rgba(255, 246, 225, 0.72), rgba(249, 247, 242, 0.9));
}
.chat-message.mine span {
  background: linear-gradient(180deg, #211a12 0%, #17130e 100%);
}
.chat-message.theirs span {
  box-shadow: 0 4px 14px rgba(30, 22, 10, 0.06);
}

.login-page {
  background:
    radial-gradient(circle at 50% -20%, rgba(246, 168, 0, 0.26), transparent 360px),
    linear-gradient(180deg, #fff8ec 0%, #f4f0e8 100%);
}
.login-card {
  padding: 30px;
}
.login-card img {
  width: 150px;
}
.success { color: var(--success); }

@media (max-width: 1100px) {
  .brand { min-width: auto; }
  .brand span { display: none; }
  .global-search { width: min(560px, 54vw); }
  .module-launcher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .topbar {
    padding: 10px 12px;
  }
  .brand span { display: inline; }
  .shell {
    padding: 14px;
  }
  .hero,
  .panel,
  .lead-hero,
  .app-menu-head {
    padding: 16px;
  }
  .global-search {
    order: 10;
    width: 100%;
  }
  .global-search-row {
    grid-template-columns: 76px minmax(0, 1fr) auto;
  }
  .module-launcher {
    grid-template-columns: 1fr;
  }
  .module-tile {
    min-height: 150px;
    padding: 18px;
  }
  .lead-hero h1,
  .hero h1,
  h1 {
    font-size: 25px;
  }
  .table-wrap {
    margin-left: -4px;
    margin-right: -4px;
  }
  .app-drawer {
    width: min(342px, 92vw);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 176, 0, 0.12) 0, rgba(255, 250, 243, 0) 230px),
    var(--bg);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 12px 22px;
  background: #ffffff;
  color: var(--ink);
  border-bottom: 3px solid var(--amber);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 5;
}
.menu-toggle {
  display: inline-grid;
  place-items: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  flex: 0 0 auto;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue-700);
  border-radius: 2px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.2px; }
.brand img { width: 76px; height: 48px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px; }
.global-search {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(520px, 42vw);
  transform: translate(-50%, -50%);
  z-index: 8;
}
.global-search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf3;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.global-search input:focus {
  outline: 2px solid rgba(255, 176, 0, 0.35);
  border-color: var(--amber);
  background: #fff;
}
.global-search-icon {
  position: absolute;
  left: 15px;
  top: 12px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--blue-700);
  border-radius: 50%;
  pointer-events: none;
}
.global-search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  background: var(--blue-700);
  transform: rotate(45deg);
  border-radius: 2px;
}
.global-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: 430px;
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 6px;
}
.global-search-row {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
}
.global-search-row:hover { background: #fff7e6; }
.global-search-row strong,
.global-search-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.global-search-row small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 12px;
}
.global-search-type {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  border-radius: 6px;
  background: var(--amber-soft);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 800;
}
.global-search-empty {
  margin: 0;
  padding: 12px;
  color: var(--muted);
}
.notify-bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--ink);
  font-weight: 900;
}
.notify-bell:hover {
  border-color: var(--amber);
  background: #fff7e6;
}
.chat-bell {
  margin-left: 0;
}
.bell-icon {
  width: 16px;
  height: 16px;
  border: 2px solid var(--blue-700);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom: 0;
  font-size: 0;
  position: relative;
}
.bell-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: -5px;
  width: 6px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: var(--blue-700);
}
.chat-bell .bell-icon {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 0;
  background: var(--blue-700);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.chat-bell .bell-icon::after {
  display: none;
}
.notify-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: none;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  color: #201f1c;
  border: 2px solid #ffffff;
  font-size: 11px;
  line-height: 16px;
  font-weight: 900;
}
.notify-badge.show { display: grid; }
nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-left: auto; }
.app-nav { display: none; }
.app-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
}
.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--amber-soft);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(32, 31, 28, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 8;
}
.app-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 86vw);
  height: 100vh;
  background: #201f1c;
  color: #fff;
  border-right: 1px solid #3d3830;
  box-shadow: 18px 0 40px rgba(32, 31, 28, 0.24);
  transform: translateX(-104%);
  transition: transform 0.2s ease;
  z-index: 9;
  padding: 14px;
  display: block;
  overflow-y: auto;
}
.drawer-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.drawer-open .app-drawer { transform: translateX(0); }
.drawer-head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
.drawer-head img {
  width: 62px;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 3px;
}
.drawer-head strong,
.drawer-head small {
  display: block;
}
.drawer-head strong { font-size: 14px; }
.drawer-head small { font-size: 11px; opacity: 0.78; }
.menu-section {
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.menu-section h3 {
  margin: 10px 4px 5px;
  color: #ffb000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.app-drawer a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 7px 6px;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  font-weight: 700;
}
.app-drawer a:hover {
  background: rgba(255, 176, 0, 0.16);
}
.app-drawer a strong {
  display: block;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 750;
}
.app-drawer a small {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,0.68);
  font-size: 10px;
  line-height: 1.15;
  font-weight: 500;
}
nav a, button, .button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
button.primary, .primary {
  background: var(--amber);
  border-color: #e49d00;
  color: #201f1c;
  box-shadow: 0 6px 14px rgba(255, 176, 0, 0.24);
}
.shell { max-width: 1180px; margin: 0 auto; padding: 24px; }
.hero { margin-bottom: 20px; }
.hero h1, h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; color: var(--blue-700); }
.hero p { margin: 0; color: var(--muted); }
.app-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  background: linear-gradient(90deg, #ffffff 0%, #fff3d6 58%, #fffaf3 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.app-menu-head h1 { margin: 0 0 4px; }
.app-menu-head p { margin: 0; color: var(--muted); }
.app-menu-head img {
  width: 112px;
  max-width: 32%;
  height: 68px;
  object-fit: contain;
  background: #fff;
}
.compact-head {
  padding: 14px 16px;
  margin-bottom: 12px;
}
.compact-head img {
  width: 86px;
  height: 52px;
}
.mobile-menu-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.mobile-menu-list h2 {
  margin: 0;
  padding: 14px 16px 8px;
  background: #fff3d6;
  color: var(--blue-700);
  font-size: 14px;
  text-transform: uppercase;
}
.mobile-menu-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.mobile-menu-list a:hover {
  background: #fff7e6;
}
.mobile-menu-list strong,
.mobile-menu-list small {
  display: block;
}
.mobile-menu-list small {
  margin-top: 3px;
}
.list-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--amber-soft);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 800;
}
.list-icon::before {
  content: "";
  width: 16px;
  height: 16px;
  background-color: var(--blue-700);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon-home { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 11l9-8 9 8h-3v9h-5v-6h-2v6H6v-9H3z'/%3E%3C/svg%3E"); }
.icon-crm { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v5H4V4zm0 7h7v9H4v-9zm9 0h7v9h-7v-9z'/%3E%3C/svg%3E"); }
.icon-lead { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2l3 7h7l-5.6 4.3L18.6 21 12 16.7 5.4 21l2.2-7.7L2 9h7l3-7z'/%3E%3C/svg%3E"); }
.icon-daily { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h2v3h6V2h2v3h3v17H4V5h3V2zm13 8H4v10h16V10zM7 12h5v2H7v-2zm0 4h8v2H7v-2z'/%3E%3C/svg%3E"); }
.icon-tdl { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 3h16v18H4V3zm3 4v2h10V7H7zm0 4v2h10v-2H7zm0 4v2h6v-2H7zm9.5 2.7l-2.2-2.2 1.4-1.4.8.8 2.8-2.8 1.4 1.4-4.2 4.2z'/%3E%3C/svg%3E"); }
.icon-chat { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4v-4H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm3 5v2h10V9H7zm0 4v2h7v-2H7z'/%3E%3C/svg%3E"); }
.icon-customer { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm-7 9a7 7 0 0 1 14 0H5z'/%3E%3C/svg%3E"); }
.icon-referral { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 7h10v3h4l-6 6-6-6h4V9H7v12H5V7a2 2 0 0 1 2-2h5V2l6 6-6 6v-3H7V7z'/%3E%3C/svg%3E"); }
.icon-resource,.icon-user-status { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2c-3.3 0-6 2.2-6 5v1h12v-1c0-2.8-2.7-5-6-5zm8-1c-.9 0-1.8.2-2.5.6 1.5 1.1 2.5 2.8 2.5 4.7V20h6v-1c0-3.3-2.7-6-6-6z'/%3E%3C/svg%3E"); }
.icon-phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.6 10.8c1.4 2.8 3.8 5.2 6.6 6.6l2.2-2.2c.3-.3.8-.4 1.2-.3 1.3.4 2.7.6 4.1.6.7 0 1.3.6 1.3 1.3v3.5c0 .7-.6 1.3-1.3 1.3C10.4 22 2 13.6 2 3.3 2 2.6 2.6 2 3.3 2h3.5C7.4 2 8 2.6 8 3.3c0 1.4.2 2.8.6 4.1.1.4 0 .9-.3 1.2l-1.7 2.2z'/%3E%3C/svg%3E"); }
.icon-bell { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 22a2.5 2.5 0 0 0 2.4-2h-4.8A2.5 2.5 0 0 0 12 22zM20 17l-2-2v-5a6 6 0 1 0-12 0v5l-2 2v1h16v-1z'/%3E%3C/svg%3E"); }
.icon-service { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M22 19.6l-6.3-6.3a7 7 0 0 1-8.8-8.8l4.5 4.5 3.5-3.5L10.4 1a7 7 0 0 1 8.8 8.8l6.3 6.3-3.5 3.5z'/%3E%3C/svg%3E"); }
.icon-list,.icon-report { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v3H4V4zm0 6h16v3H4v-3zm0 6h10v3H4v-3z'/%3E%3C/svg%3E"); }
.icon-status { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 10 10H12V2zm2 0v8h8A10 10 0 0 0 14 2z'/%3E%3C/svg%3E"); }
.icon-closed { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2L4.8 12l-2 2L9 20 22 7l-2-2L9 16.2z'/%3E%3C/svg%3E"); }
.icon-count { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 20h4V10H4v10zm6 0h4V4h-4v16zm6 0h4v-7h-4v7z'/%3E%3C/svg%3E"); }
.icon-calendar { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h2v3h6V2h2v3h3v17H4V5h3V2zm13 8H4v10h16V10z'/%3E%3C/svg%3E"); }
.icon-logout { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 3h10v18H10v-3h2v1h6V5h-6v1h-2V3zM3 12l5-5v3h7v4H8v3l-5-5z'/%3E%3C/svg%3E"); }
.list-more {
  justify-self: end;
  color: rgba(255,255,255,0.48);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 12px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.module-head {
  min-height: 148px;
  align-items: center;
  background: linear-gradient(135deg, #201f1c 0%, #443522 48%, #ffb000 100%);
  color: #fff;
  border: 0;
}
.module-head h1 { color: #fff; }
.module-head p { color: rgba(255,255,255,0.82); }
.module-launcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.module-tile {
  min-height: 210px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.module-tile:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
}
.module-tile strong {
  display: block;
  margin-bottom: 7px;
  color: var(--blue-700);
  font-size: 24px;
}
.module-tile small {
  display: block;
  max-width: 520px;
  line-height: 1.55;
  font-size: 14px;
}
.module-tile b {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--amber);
  color: var(--blue-700);
  font-size: 13px;
}
.module-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: var(--amber-soft);
}
.module-icon::before {
  content: "";
  width: 28px;
  height: 28px;
  background: var(--blue-700);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.module-lead {
  background: linear-gradient(180deg, #fff 0%, #fffaf3 100%);
}
.module-daily {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.module-tdl {
  background: linear-gradient(180deg, #fff 0%, #f6fff7 100%);
}
.module-chat {
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}
.lead-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
  padding: 22px;
  min-height: 170px;
  border-radius: 8px;
  background: linear-gradient(135deg, #201f1c 0%, #3a3125 50%, #ffb000 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.lead-hero h1 {
  color: #fff;
  font-size: 32px;
}
.lead-hero p {
  max-width: 720px;
  color: rgba(255,255,255,0.82);
}
.eyebrow {
  margin: 0 0 6px;
  color: #ffcf66 !important;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lead-kpis,
.lead-pipeline {
  display: grid;
  gap: 12px;
}
.lead-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.lead-pipeline {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 12px;
}
.lead-kpi,
.pipeline-card {
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(52, 37, 18, 0.06);
}
.lead-kpi:hover,
.pipeline-card:hover {
  border-color: var(--amber);
  box-shadow: 0 10px 24px rgba(255, 176, 0, 0.18);
  transform: translateY(-1px);
}
.lead-kpi small,
.pipeline-card small,
.pipeline-card span,
.lead-kpi span {
  display: block;
}
.lead-kpi span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.lead-kpi strong {
  display: block;
  margin-top: 7px;
  color: var(--blue-700);
  font-size: 22px;
}
.pipeline-card {
  border-top: 4px solid var(--amber);
}
.pipeline-card strong {
  display: block;
  margin: 6px 0 4px;
  color: var(--blue-700);
  font-size: 20px;
}
.lead-entry-panel h2 { margin-top: 0; }
.lead-quote-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffaf3;
}
.lead-quote-table h3 {
  margin: 0 0 10px;
  color: var(--blue-700);
  font-size: 14px;
}
.lead-quote-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.quote-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  text-align: right;
  color: var(--muted);
  font-weight: 800;
}
.quote-total strong {
  color: var(--blue-700);
}
.report-title {
  margin: 14px 0 4px;
}
.report-title h2 {
  margin: 0 0 3px;
  font-size: 18px;
}
.report-title p {
  margin: 0;
}
.lead-table table { min-width: 1260px; }
.lead-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.staff-chat-shell {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 16px;
  min-height: 620px;
}
.staff-chat-list-panel,
.staff-chat-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.staff-chat-list-panel {
  padding: 14px;
}
.staff-chat-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 540px;
  overflow: auto;
}
.staff-chat-person {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 68px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.staff-chat-person.active,
.staff-chat-person:hover {
  border-color: var(--amber);
  background: #fff8e8;
}
.staff-chat-preview,
.staff-chat-preview span,
.staff-chat-preview strong,
.staff-chat-preview small,
.staff-chat-preview time {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.staff-chat-preview > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.staff-chat-preview time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.staff-chat-preview small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.staff-chat-person b {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
}
.staff-chat-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--blue-700);
  font-weight: 900;
}
.staff-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: 620px;
}
.staff-chat-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.staff-chat-head strong,
.staff-chat-head small {
  display: block;
}
.staff-chat-head small {
  margin-top: 4px;
  color: var(--muted);
}
.staff-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow: auto;
  background: #f8fbff;
}
.chat-date-separator {
  display: flex;
  justify-content: center;
  margin: 2px 0;
}
.chat-date-separator span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.chat-message {
  display: grid;
  gap: 4px;
  max-width: min(68%, 620px);
}
.chat-message span {
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-message small {
  color: var(--muted);
  font-size: 11px;
}
.chat-message.mine {
  align-self: flex-end;
  text-align: right;
}
.chat-message.mine span {
  background: var(--blue-700);
  color: #fff;
}
.chat-message.theirs {
  align-self: flex-start;
}
.chat-message.theirs span {
  border: 1px solid var(--line);
  background: #fff;
}
.staff-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.staff-chat-form textarea {
  min-height: 58px;
  resize: vertical;
}
.lead-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--blue-700);
  font-weight: 800;
  font-size: 12px;
}
.priority-hot {
  background: #ffe1d6;
  color: #b42318;
}
.priority-warm {
  background: #fff3d6;
  color: #7a4a00;
}
.priority-cold {
  background: #e8f1ff;
  color: #124f8c;
}
nav a:hover, .button:hover, button:hover {
  border-color: var(--amber);
  box-shadow: 0 5px 14px rgba(255, 176, 0, 0.2);
}
small, .muted { color: var(--muted); }
.form-link {
  justify-self: center;
  color: var(--blue-700);
  font-weight: 700;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
label { display: grid; gap: 5px; font-weight: 700; font-size: 13px; color: #3a332a; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  min-height: 40px;
  font: inherit;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(255, 176, 0, 0.34);
  border-color: var(--amber);
}
textarea { min-height: 84px; resize: vertical; }
.field-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: end;
}
.field-with-action button {
  min-height: 40px;
  padding: 0;
  background: var(--amber-soft);
  color: var(--blue-700);
  font-size: 18px;
}
.selection-create {
  display: flex;
  align-items: end;
}
.selection-create .button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.span-2 { grid-column: span 2; }
.span-4 { grid-column: span 4; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.actions button,
.actions .button {
  min-height: 34px;
}
.filter-status {
  align-self: end;
  min-height: 40px;
  display: flex;
  align-items: center;
  font-size: 13px;
}
.table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(52, 37, 18, 0.06); }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #201f1c; color: #fff; font-size: 13px; }
tbody tr:hover { background: #fff7e6; }
.error { color: var(--danger); font-weight: 700; }
.success { color: #067647; font-weight: 700; }
.login-page { display: grid; place-items: center; padding: 20px; }
.login-card {
  width: min(420px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow);
}
.login-card img { width: 140px; justify-self: center; }
.login-card h1 { text-align: center; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.hidden { display: none !important; }
@media (max-width: 850px) {
  .topbar { align-items: center; gap: 10px; padding: 10px 14px; flex-wrap: wrap; }
  .brand span { font-size: 15px; }
  .brand img { width: 66px; height: 42px; }
  .global-search {
    position: relative;
    left: auto;
    top: auto;
    order: 5;
    width: 100%;
    transform: none;
  }
  .global-search-results { max-height: 330px; }
  .app-menu-head { align-items: flex-start; }
  .app-menu-head img { width: 86px; height: 56px; }
  .grid { grid-template-columns: 1fr; }
  .span-2, .span-4 { grid-column: span 1; }
  .shell { padding: 16px; }
  .module-launcher,
  .lead-kpis,
  .lead-pipeline,
  .staff-chat-shell,
  .staff-chat-form {
    grid-template-columns: 1fr;
  }
  .lead-hero {
    display: grid;
    align-items: start;
  }
  .module-tile {
    min-height: 170px;
  }
  .staff-chat-shell,
  .staff-chat-panel {
    min-height: auto;
  }
  .staff-chat-list {
    max-height: 300px;
  }
  .staff-chat-messages {
    min-height: 360px;
  }
  .chat-message {
    max-width: 88%;
  }
  .lead-quote-grid {
    grid-template-columns: 1fr;
  }
}

/* Final premium cascade layer */
body {
  background:
    radial-gradient(circle at 8% -10%, rgba(246, 168, 0, 0.20), transparent 320px),
    linear-gradient(180deg, #fffaf0 0, #f7f3ea 280px, #f4f0e8 100%);
  color: #181613;
  font-family: "Segoe UI Variable", "Segoe UI", "Aptos", "Inter", Arial, sans-serif;
  line-height: 1.45;
}
.topbar {
  min-height: 74px;
  padding: 10px 24px;
  gap: 14px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(233, 223, 207, 0.95);
  box-shadow: 0 10px 28px rgba(25, 19, 10, 0.08);
  backdrop-filter: blur(14px);
}
.menu-toggle,
.notify-bell,
nav a,
button,
.button,
.module-tile,
.lead-kpi,
.pipeline-card {
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.menu-toggle {
  border-color: transparent;
  background: #fff7e6;
  box-shadow: inset 0 0 0 1px rgba(246, 168, 0, 0.22);
}
.brand {
  color: #16130f;
  font-size: 15px;
  letter-spacing: 0;
}
.brand img {
  width: 72px;
  height: 46px;
  border: 1px solid rgba(233, 223, 207, 0.96);
  box-shadow: 0 6px 16px rgba(30, 22, 10, 0.08);
}
.global-search { width: min(620px, 46vw); }
.global-search input {
  height: 44px;
  background: #fff;
  border-color: rgba(233, 223, 207, 0.96);
  box-shadow: 0 8px 24px rgba(30, 22, 10, 0.07);
}
.global-search-results {
  top: calc(100% + 10px);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(24, 19, 10, 0.18);
}
.global-search-row {
  min-height: 58px;
  border-bottom: 1px solid #f2eadc;
}
.global-search-row:last-child { border-bottom: 0; }
.global-search-type {
  background: #17130e;
  color: #ffd36b;
}
.notify-bell {
  background: #fff;
  border-color: rgba(233, 223, 207, 0.95);
  box-shadow: 0 8px 24px rgba(30, 22, 10, 0.07);
}
.app-drawer {
  width: min(348px, 88vw);
  background: linear-gradient(180deg, #17130e 0%, #211a12 100%);
  box-shadow: 28px 0 70px rgba(15, 11, 6, 0.36);
}
.app-drawer a {
  min-height: 50px;
  padding: 8px;
  border-radius: 8px;
}
.app-drawer a:hover {
  background: rgba(255, 176, 0, 0.14);
  box-shadow: inset 3px 0 0 #ffb000;
}
.list-icon {
  background: rgba(255, 176, 0, 0.18);
  color: #ffd36b;
}
.list-icon::before { background-color: currentColor; }
.shell {
  max-width: 1320px;
  padding: 28px;
}
.hero,
.lead-hero,
.app-menu-head,
.module-head {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #17130e 0%, #2b2115 58%, #f6a800 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 18px 48px rgba(30, 22, 10, 0.11);
}
.hero {
  padding: 20px 22px;
}
.hero h1,
.hero p,
.lead-hero h1,
.lead-hero p,
.app-menu-head h1,
.app-menu-head p,
.module-head h1,
.module-head p {
  color: #fff;
}
.hero p,
.lead-hero p,
.app-menu-head p,
.module-head p {
  color: rgba(255,255,255,0.78);
}
.hero h1,
h1 {
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: 0;
}
.panel,
.mobile-menu-list,
.staff-chat-list-panel,
.staff-chat-panel,
.lead-kpi,
.pipeline-card,
.module-tile,
.login-card {
  border-radius: 8px;
  border: 1px solid rgba(233, 223, 207, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(30, 22, 10, 0.07);
}
.panel { padding: 20px; }
.panel h2 {
  margin: 2px 0 14px;
  color: #17130e;
  font-size: 18px;
}
.module-launcher { grid-template-columns: repeat(4, minmax(220px, 1fr)); }
.module-tile {
  min-height: 188px;
  background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
}
.module-tile:hover,
.lead-kpi:hover,
.pipeline-card:hover,
.notify-bell:hover,
.menu-toggle:hover,
nav a:hover,
.button:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(30, 22, 10, 0.13);
}
.module-tile strong { font-size: 22px; }
.module-tile b,
button.primary,
.primary {
  background: linear-gradient(180deg, #ffc247 0%, #f6a800 100%);
  border-color: #d89000;
  color: #17130e;
  box-shadow: 0 10px 22px rgba(246, 168, 0, 0.24);
}
.grid { gap: 14px; }
label {
  color: #2e281f;
  font-size: 12px;
  letter-spacing: 0;
}
input,
select,
textarea {
  min-height: 42px;
  border-color: #e7dccb;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}
input:hover,
select:hover,
textarea:hover { border-color: #d7c6ac; }
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(246, 168, 0, 0.20);
  border-color: #f6a800;
  box-shadow: 0 0 0 1px rgba(246, 168, 0, 0.18);
}
textarea { min-height: 92px; }
nav a,
button,
.button {
  min-height: 38px;
  border-radius: 8px;
  background: #fff;
  border-color: #e5dac9;
}
.field-with-action button {
  background: #17130e;
  color: #ffd36b;
}
.filter-status {
  padding: 0 10px;
  border-left: 3px solid #f6a800;
  background: #fff9eb;
  border-radius: 8px;
}
.table-wrap {
  border-radius: 8px;
  border-color: rgba(233, 223, 207, 0.92);
  box-shadow: 0 8px 24px rgba(30, 22, 10, 0.07);
}
table { min-width: 920px; }
th {
  padding: 12px 11px;
  background: #17130e;
  color: #fff3d0;
  font-size: 12px;
  letter-spacing: 0;
}
td {
  padding: 11px;
  color: #28231d;
}
tbody tr:nth-child(even) { background: #fffcf6; }
tbody tr:hover { background: #fff4d7; }
tbody tr.quick-call-duplicate,
tbody tr.quick-call-duplicate:hover {
  background: #fff3bf;
}
tbody tr.quick-call-duplicate-amc,
tbody tr.quick-call-duplicate-amc:hover {
  background: #dcfce7;
}
tbody tr.quick-call-duplicate-non-amc,
tbody tr.quick-call-duplicate-non-amc:hover {
  background: #fee2e2;
}
tbody tr.quick-call-duplicate td,
tbody tr.quick-call-duplicate-amc td,
tbody tr.quick-call-duplicate-non-amc td {
  border-bottom-color: rgba(32, 31, 28, 0.12);
}
.quick-call-color-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 4px;
  color: #5f574c;
  font-size: 12px;
  font-weight: 700;
}
.quick-call-color-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.quick-call-color-legend i {
  width: 18px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(32, 31, 28, 0.12);
}
.legend-green { background: #dcfce7; }
.legend-red { background: #fee2e2; }
.legend-yellow { background: #fff3bf; }
.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 10px 0 8px;
}
.report-actions button {
  min-height: 36px;
  padding: 8px 12px;
}
.lead-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.lead-pipeline { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.lead-kpi strong,
.pipeline-card strong { color: #17130e; }
.pipeline-card { border-top-color: #f6a800; }
.lead-quote-table { background: #fff9eb; }
.staff-chat-messages {
  background: linear-gradient(180deg, rgba(255, 246, 225, 0.72), rgba(249, 247, 242, 0.9));
}
.chat-message.mine span {
  background: linear-gradient(180deg, #211a12 0%, #17130e 100%);
}
.chat-message.theirs span {
  box-shadow: 0 4px 14px rgba(30, 22, 10, 0.06);
}
.login-page {
  background:
    radial-gradient(circle at 50% -20%, rgba(246, 168, 0, 0.26), transparent 360px),
    linear-gradient(180deg, #fff8ec 0%, #f4f0e8 100%);
}
.login-card { padding: 30px; }
.login-card img { width: 150px; }
.success { color: #087443; }

.login-shell {
  width: min(1080px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 430px);
  gap: 22px;
  align-items: stretch;
}
.login-brand-panel {
  min-height: 560px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 38px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 19, 14, 0.96) 0%, rgba(45, 34, 20, 0.94) 58%, rgba(246, 168, 0, 0.92) 100%);
  color: #fff;
  box-shadow: 0 26px 70px rgba(30, 22, 10, 0.18);
  overflow: hidden;
}
.login-brand-panel img {
  width: 150px;
  height: 92px;
  object-fit: contain;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}
.login-brand-panel h1 {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.02;
}
.login-brand-panel p {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,0.80);
  font-size: 16px;
}
.login-highlights,
.main-dashboard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.login-highlights span,
.main-dashboard-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff7df;
  font-size: 12px;
  font-weight: 800;
}
.login-page {
  padding: 24px;
}
.login-card {
  width: min(420px, 100%);
  align-self: center;
  justify-self: center;
  padding: 34px;
}
.login-card h1 {
  margin: 4px 0 0;
  color: #17130e;
  font-size: 30px;
}
.login-subtitle {
  margin: -4px 0 6px;
  text-align: center;
  color: #6d675d;
}
.login-card button.primary {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  font-size: 15px;
}
.login-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff8ec;
}
.login-choice button {
  min-height: 36px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.login-choice button.active {
  background: #17130e;
  color: #ffd36b;
}
.login-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.login-secondary-actions .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  text-align: center;
}
.customer-register-panel {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(233, 223, 207, 0.92);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fff8ec 100%);
  box-shadow: 0 18px 48px rgba(30, 22, 10, 0.11);
}
.customer-register-panel .list-icon {
  width: 44px;
  height: 44px;
  background: #17130e;
  color: #ffd36b;
}
.customer-register-panel h2 {
  margin: 0;
  color: #17130e;
  font-size: 26px;
}
.customer-register-panel p {
  margin: 0;
  color: #6d675d;
}
.customer-register-panel .button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
}
.register-shell {
  width: min(820px, calc(100vw - 32px));
  display: grid;
  place-items: center;
}
.register-card {
  width: 100%;
  max-width: none;
}
.register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.main-dashboard-head {
  min-height: 220px;
  align-items: center;
}
.main-dashboard-head h1 {
  font-size: clamp(34px, 4vw, 52px);
}
.main-dashboard-head p {
  max-width: 760px;
  font-size: 15px;
}
.main-dashboard-head img {
  width: 150px;
  max-width: 24%;
  height: 96px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}
.module-launcher {
  align-items: stretch;
}
.module-tile {
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: minmax(110px, 1fr) auto;
}
.module-tile small {
  color: #645d52;
}

@media (max-width: 1100px) {
  .brand { min-width: auto; }
  .brand span { display: none; }
  .global-search { width: min(560px, 54vw); }
  .module-launcher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-shell {
    grid-template-columns: 1fr;
    width: min(560px, calc(100vw - 28px));
  }
  .login-brand-panel {
    min-height: auto;
    padding: 26px;
  }
  .login-brand-panel h1 {
    font-size: 34px;
  }
}

@media (max-width: 850px) {
  .topbar {
    padding: 10px 12px;
  }
  .brand span { display: inline; }
  .shell { padding: 14px; }
  .hero,
  .panel,
  .lead-hero,
  .app-menu-head { padding: 16px; }
  .global-search {
    order: 10;
    width: 100%;
  }
  .global-search-row {
    grid-template-columns: 76px minmax(0, 1fr) auto;
  }
  .module-launcher { grid-template-columns: 1fr; }
  .module-tile {
    min-height: 150px;
    padding: 18px;
  }
  .lead-hero h1,
  .hero h1,
  h1 { font-size: 25px; }
  .table-wrap {
    margin-left: -4px;
    margin-right: -4px;
  }
  .app-drawer { width: min(342px, 92vw); }
  .login-page {
    padding: 14px;
  }
  .login-shell {
    width: 100%;
    gap: 14px;
  }
  .login-brand-panel {
    padding: 20px;
  }
  .login-brand-panel img {
    width: 118px;
    height: 76px;
  }
  .login-brand-panel h1 {
    font-size: 28px;
  }
  .login-brand-panel p {
    font-size: 14px;
  }
  .login-card {
    padding: 22px;
  }
  .login-secondary-actions {
    grid-template-columns: 1fr;
  }
  .register-grid {
    grid-template-columns: 1fr;
  }
  .customer-register-panel {
    padding: 22px;
  }
  .main-dashboard-head {
    min-height: auto;
  }
  .main-dashboard-head img {
    max-width: none;
    width: 108px;
    height: 70px;
  }
  .main-dashboard-meta span {
    font-size: 11px;
  }
}
/* Call tracking and mobile workspace */
.module-call-tracker { background: linear-gradient(145deg, #071f3d, #0c5a8f); color: #fff; }
.module-call-tracker small, .module-call-tracker b { color: #d8efff; }
.call-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px 30px; margin-bottom:18px; border-radius:22px; color:#fff; background:radial-gradient(circle at 90% 10%, rgba(69,211,178,.35), transparent 34%), linear-gradient(135deg,#071c36,#0b4e75); box-shadow:0 20px 48px rgba(7,28,54,.22); }
.call-hero h1 { margin:3px 0 8px; color:#fff; font-size:clamp(1.8rem,4vw,2.7rem); }
.call-hero p { margin:0; max-width:740px; color:#d7e8f4; }
.call-hero .eyebrow { color:#67e8c4; }
.secure-pill { display:inline-flex; align-items:center; width:max-content; padding:8px 12px; border-radius:999px; background:#e8f7f2; color:#12604d; font-size:.78rem; font-weight:800; white-space:nowrap; }
.call-hero .secure-pill { background:rgba(255,255,255,.13); color:#eafff8; border:1px solid rgba(255,255,255,.2); }
.call-filter-bar { display:grid; grid-template-columns:repeat(4,minmax(150px,1fr)) auto auto; gap:12px; align-items:end; padding:16px; margin-bottom:18px; border:1px solid #dce7ef; border-radius:18px; background:#fff; box-shadow:0 8px 28px rgba(15,45,68,.08); }
.call-filter-bar label { margin:0; }
.call-filter-bar .call-check { display:flex; flex-direction:row; align-items:center; gap:8px; min-height:42px; font-weight:700; }
.call-filter-bar .call-check input { width:18px; height:18px; }
.call-kpis { display:grid; grid-template-columns:repeat(6,minmax(145px,1fr)); gap:12px; margin-bottom:14px; }
.call-kpi { min-height:124px; padding:17px; border:1px solid #dce8f0; border-radius:17px; background:linear-gradient(145deg,#fff,#f5fafc); box-shadow:0 7px 20px rgba(12,57,88,.07); }
.call-kpi small, .call-kpi span { display:block; color:#627687; }
.call-kpi strong { display:block; margin:8px 0 6px; color:#092e4b; font-size:1.55rem; }
.call-kpi span { font-size:.77rem; }
.call-leaders { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:18px; }
.call-leader { position:relative; overflow:hidden; padding:20px 22px; border-radius:18px; color:#fff; box-shadow:0 12px 28px rgba(9,46,75,.15); }
.call-leader.highest { background:linear-gradient(135deg,#08775c,#16a777); }
.call-leader.lowest { background:linear-gradient(135deg,#8a4b12,#d27a1b); }
.call-leader small,.call-leader span,.call-leader strong { display:block; color:#fff; }
.call-leader strong { margin:5px 0; font-size:1.35rem; }
.call-leader span { opacity:.88; }
.call-panel { margin-bottom:18px; }
.section-title { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:14px; }
.section-title h2,.section-title p { margin:0; }
.call-type { display:inline-flex; padding:5px 9px; border-radius:999px; font-size:.74rem; font-weight:800; text-transform:capitalize; background:#edf3f7; color:#304c60; }
.call-type.incoming { background:#e1f8ef; color:#087356; }
.call-type.outgoing { background:#e5efff; color:#175eb3; }
.call-type.missed,.call-type.rejected { background:#ffe8e7; color:#b52d2a; }
.device-status { display:inline-flex; padding:5px 9px; border-radius:999px; font-size:.73rem; font-weight:800; }
.device-status.online { background:#dcf8eb; color:#087653; }
.device-status.disabled { background:#f2e7e7; color:#8c3b3b; }
.mobile-workspace-grid { display:grid; grid-template-columns:repeat(2,minmax(250px,1fr)); gap:14px; }
.mobile-workspace-card { display:grid; grid-template-columns:52px 1fr auto; align-items:center; gap:14px; padding:18px; color:#17364c; text-decoration:none; border:1px solid #dce8ef; border-radius:18px; background:#fff; box-shadow:0 8px 24px rgba(11,50,77,.08); transition:.18s ease; }
.mobile-workspace-card:hover { transform:translateY(-2px); border-color:#1a8c72; box-shadow:0 13px 30px rgba(11,50,77,.13); }
.mobile-workspace-card strong,.mobile-workspace-card small { display:block; }
.mobile-workspace-card small { margin-top:3px; color:#6c7d89; }
.mobile-workspace-card b { color:#13765f; }
.mobile-workspace-icon { display:grid; place-items:center; width:52px; height:52px; border-radius:15px; color:#fff; background:linear-gradient(145deg,#0c5075,#16a47d); font-size:1.2rem; font-weight:900; }
@media (max-width:1100px) { .call-kpis { grid-template-columns:repeat(3,1fr); } .call-filter-bar { grid-template-columns:repeat(3,1fr); } }
@media (max-width:720px) { .call-hero { align-items:flex-start; flex-direction:column; padding:22px; } .call-filter-bar,.call-kpis,.call-leaders,.mobile-workspace-grid { grid-template-columns:1fr; } .section-title { align-items:flex-start; flex-direction:column; } }

/* Call report layout v2: intentionally last so legacy CRM rules cannot flatten it. */
#call-tracking-report-page {
  display: block;
  width: 100%;
  min-width: 0;
  color: #17212b;
}
#call-tracking-report-page .call-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 160px;
  padding: 28px 30px;
  margin: 0 0 18px;
  border: 0;
  border-radius: 16px;
}
#call-tracking-report-page .call-hero h1 { margin: 3px 0 8px; }
#call-tracking-report-page .call-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  width: 100%;
  padding: 18px;
  margin: 0 0 18px;
  border: 1px solid #e6dccb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 22, 10, 0.07);
}
#call-tracking-report-page .call-filter-bar label {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  color: #4b4235;
  font-size: 12px;
  font-weight: 800;
}
#call-tracking-report-page .call-filter-bar input,
#call-tracking-report-page .call-filter-bar select { width: 100%; min-width: 0; }
#call-tracking-report-page .call-filter-bar .call-check {
  display: flex;
  grid-column: 1 / span 2;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 2px;
}
#call-tracking-report-page .call-filter-bar .call-check input {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  min-height: 19px;
}
#call-tracking-report-page .call-filter-bar button {
  grid-column: 4;
  min-height: 42px;
  width: 100%;
}
#call-tracking-report-page .call-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 0 0 16px;
}
#call-tracking-report-page .call-kpi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 132px;
  padding: 19px 20px;
  margin: 0;
  border: 1px solid #e7ddcc;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #fffaf0);
  box-shadow: 0 8px 22px rgba(30, 22, 10, 0.07);
}
#call-tracking-report-page .call-kpi small,
#call-tracking-report-page .call-kpi strong,
#call-tracking-report-page .call-kpi span { display: block; }
#call-tracking-report-page .call-kpi small {
  color: #6f6455;
  font-size: 12px;
  font-weight: 800;
}
#call-tracking-report-page .call-kpi strong {
  margin: 8px 0 5px;
  color: #17130e;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.05;
}
#call-tracking-report-page .call-kpi span { color: #7c7162; font-size: 12px; }
#call-tracking-report-page .call-leaders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 0 0 18px;
}
#call-tracking-report-page .call-leader {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 118px;
  padding: 20px 22px;
  margin: 0;
  border-radius: 12px;
}
#call-tracking-report-page .call-leader small,
#call-tracking-report-page .call-leader strong,
#call-tracking-report-page .call-leader span { display: block; }
#call-tracking-report-page .call-leader strong { overflow-wrap: anywhere; }
#call-tracking-report-page .call-panel {
  width: 100%;
  min-width: 0;
  margin: 0 0 18px !important;
  border-radius: 12px;
}
#call-tracking-report-page .call-panel + .call-panel { margin-top: 0 !important; }
#call-tracking-report-page .call-alert-panel {
  border-color: #f0c7c1;
  background: linear-gradient(180deg, #fff 0%, #fff9f8 100%);
}
#call-tracking-report-page .call-alert-row td { background: #fff7f5; }
#call-tracking-report-page .call-alert-row strong { color: #a72f29; }
#call-tracking-report-page .call-alert-clear {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #bfe4d2;
  border-radius: 10px;
  background: #effaf5;
  color: #176b50;
  font-weight: 700;
}
#call-tracking-report-page .section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}
#call-tracking-report-page .section-title h2 { margin: 2px 0 0; }
#call-tracking-report-page .table-wrap { max-width: 100%; overflow-x: auto; }

@media (min-width: 1480px) {
  #call-tracking-report-page .call-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  #call-tracking-report-page .call-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #call-tracking-report-page .call-filter-bar .call-check { grid-column: 1; }
  #call-tracking-report-page .call-filter-bar button { grid-column: 2; }
  #call-tracking-report-page .call-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  #call-tracking-report-page .call-hero { align-items: flex-start; flex-direction: column; min-height: 0; padding: 22px 20px; }
  #call-tracking-report-page .call-filter-bar,
  #call-tracking-report-page .call-kpis,
  #call-tracking-report-page .call-leaders { grid-template-columns: 1fr; }
  #call-tracking-report-page .call-filter-bar .call-check,
  #call-tracking-report-page .call-filter-bar button { grid-column: 1; }
  #call-tracking-report-page .section-title { align-items: flex-start; flex-direction: column; }
  #call-tracking-report-page .call-kpi { min-height: 112px; }
}

/* PIN-code customer intelligence map */
#customer-pincode-map-page { color: #18364a; }
.pincode-map-hero {
  align-items: center;
  background: linear-gradient(128deg, #071c36 0%, #123f55 64%, #0b8a6a 150%);
  border-radius: 24px;
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
  min-height: 174px;
  overflow: hidden;
  padding: 28px 30px;
  position: relative;
}
.pincode-map-hero::after {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  content: "";
  height: 220px;
  position: absolute;
  right: -45px;
  top: -100px;
  width: 220px;
}
.pincode-map-hero h1 { font-size: clamp(28px, 4vw, 42px); margin: 3px 0 8px; }
.pincode-map-hero p { margin: 0; opacity: .82; }
.pincode-map-hero .eyebrow,
.pincode-map-card .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; margin: 0; text-transform: uppercase; }
.pincode-map-kpis { display: grid; gap: 9px; grid-template-columns: repeat(3, minmax(100px, 1fr)); position: relative; z-index: 1; }
.pincode-map-kpis article {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  min-width: 112px;
  padding: 14px;
}
.pincode-map-kpis article.needs-attention { background: rgba(245, 166, 35, .18); }
.pincode-map-kpis strong, .pincode-map-kpis span { display: block; }
.pincode-map-kpis strong { font-size: 27px; }
.pincode-map-kpis span { font-size: 11px; opacity: .78; }
.pincode-map-layout { display: grid; gap: 18px; grid-template-columns: minmax(390px, .85fr) minmax(0, 1.35fr); }
.pincode-map-card {
  background: #fff;
  border: 1px solid #dce8ed;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(21, 54, 73, .07);
  min-width: 0;
  padding: 20px;
}
.map-card-head { align-items: flex-end; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 14px; }
.map-card-head h2 { font-size: 21px; margin: 3px 0 0; }
.map-card-head label { color: #607987; font-size: 11px; font-weight: 700; max-width: 190px; }
.map-card-head input, .map-card-head select { margin-top: 5px; width: 100%; }
.india-map { display: block; height: min(62vh, 650px); margin: 0 auto; max-width: 100%; overflow: visible; }
.india-state {
  cursor: pointer;
  outline: none;
  stroke: #fff;
  stroke-linejoin: round;
  stroke-width: 1.2;
  transition: fill .18s, filter .18s, stroke-width .18s;
}
.india-state:hover, .india-state:focus { filter: brightness(.94); stroke: #071c36; stroke-width: 2.3; }
.india-state.selected { filter: drop-shadow(0 3px 4px rgba(7,28,54,.28)); stroke: #071c36; stroke-width: 3; }
.map-heat-0 { fill: #e8eef0; background: #e8eef0; }
.map-heat-1 { fill: #c7eadf; background: #c7eadf; }
.map-heat-2 { fill: #8ed4c0; background: #8ed4c0; }
.map-heat-3 { fill: #4eb79a; background: #4eb79a; }
.map-heat-4 { fill: #168f72; background: #168f72; }
.map-heat-5 { fill: #075f50; background: #075f50; }
.map-legend { align-items: center; color: #68808c; display: flex; font-size: 11px; gap: 5px; justify-content: center; margin-top: 4px; }
.map-legend i { border-radius: 4px; display: inline-block; height: 12px; width: 22px; }
.map-credit { color: #8296a0; display: block; margin-top: 8px; text-align: center; }
.map-credit a { color: #47707f; }
.results-card { max-height: 830px; overflow: auto; }
.pincode-groups { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 16px; }
.pincode-chip {
  background: #eef6f4;
  border: 1px solid #cce3dc;
  border-radius: 999px;
  color: #315e54;
  font-size: 12px;
  padding: 8px 11px;
}
.pincode-chip strong { background: #fff; border-radius: 999px; margin-left: 4px; padding: 2px 6px; }
.pincode-chip.active { background: #0b8a6a; border-color: #0b8a6a; color: #fff; }
.pin-badge { background: #eaf3f6; border-radius: 7px; color: #194e62; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 800; padding: 5px 8px; }
.button.compact { font-size: 11px; padding: 6px 9px; }
.map-empty { background: #f4f8fa; border: 1px dashed #c8d9e1; border-radius: 14px; color: #69818c; padding: 35px 18px; text-align: center; }
.missing-pin-card { margin-top: 18px; }
.missing-pin-grid { display: grid; gap: 9px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.missing-pin-grid a { background: #fffaf1; border: 1px solid #f1dfbd; border-radius: 12px; color: #283f4b; padding: 12px 13px; text-decoration: none; }
.missing-pin-grid strong, .missing-pin-grid span, .missing-pin-grid b { display: block; overflow-wrap: anywhere; }
.missing-pin-grid span { color: #7c8689; font-size: 11px; margin: 3px 0 8px; }
.missing-pin-grid b { color: #a56712; font-size: 11px; }
.missing-pin-grid a:hover { border-color: #d59b42; transform: translateY(-1px); }
@media (max-width: 1000px) {
  .pincode-map-layout { grid-template-columns: 1fr; }
  .india-map { height: min(68vh, 620px); }
}
@media (max-width: 700px) {
  .pincode-map-hero { align-items: stretch; flex-direction: column; padding: 22px 18px; }
  .pincode-map-kpis { grid-template-columns: repeat(3, 1fr); }
  .pincode-map-kpis article { min-width: 0; padding: 10px; }
  .pincode-map-kpis strong { font-size: 21px; }
  .pincode-map-card { border-radius: 16px; padding: 15px; }
  .map-card-head { align-items: stretch; flex-direction: column; }
  .map-card-head label { max-width: none; }
  .missing-pin-grid { grid-template-columns: 1fr; }
}
