* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
}
body {
  margin: 0;
  background: #0b0d10;
  color: #efede5;
  font:
    14px Inter,
    system-ui,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
.btn {
  touch-action: manipulation;
}
button,
.btn {
  cursor: pointer;
  border: 1px solid #30353e;
  border-radius: 7px;
  background: #1b2028;
  color: #e7e7e1;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:hover,
.btn:hover {
  border-color: #65758e;
  background: #242c36;
}
.primary {
  background: #cddafa;
  color: #0c1422;
  border-color: #cddafa;
}
.primary:hover {
  background: #e1e9fd;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
input,
select,
textarea {
  width: 100%;
  background: #11151b;
  color: #efede5;
  border: 1px solid #303741;
  border-radius: 6px;
  padding: 10px 12px;
}
textarea {
  min-height: 94px;
  resize: vertical;
}
label {
  display: block;
  color: #9ca5b4;
  font-size: 12px;
  margin-bottom: 8px;
}
label input,
label select,
label textarea {
  margin-top: 7px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 14px;
  font-weight: 550;
}
.muted {
  color: #8f99a8;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #99a9c2;
  margin-bottom: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 216px;
  background: #0e1115;
  border-right: 1px solid #242930;
  display: flex;
  flex-direction: column;
  padding: 26px 16px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 28px;
}
.mark {
  border: 1px solid #8795ab;
  border-radius: 9px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 36px;
  font-weight: 650;
  font-size: 13px;
  letter-spacing: -1px;
}
.brand strong {
  font-size: 15px;
  font-weight: 550;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #8993a2;
  margin-top: 6px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
nav a {
  padding: 11px 13px;
  border-radius: 6px;
  color: #909ba9;
  display: flex;
  align-items: center;
  gap: 13px;
}
nav a.active {
  color: #e2eafd;
  background: #1b2432;
  border: 1px solid #2b3d58;
}
nav a:hover {
  color: #f3eee5;
}
nav .icon {
  font-size: 15px;
  width: 16px;
  opacity: 0.7;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #252b33;
  padding-top: 20px;
  font-size: 11px;
  color: #9ca8ba;
}
.user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #283244;
  display: grid;
  place-items: center;
  color: #cddafa;
}
.shell {
  margin-left: 216px;
  min-width: 0;
}
.topbar {
  padding: 18px 34px;
  border-bottom: 1px solid #242930;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #8f99a8;
}
.demo {
  color: #afbdc9;
  border: 1px solid #303e4c;
  border-radius: 20px;
  padding: 6px 12px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #9ccbb6;
  border-radius: 50%;
  margin-right: 7px;
}
.content {
  max-width: 1600px;
  margin: auto;
  padding: 34px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.heading p {
  margin-top: 9px;
  color: #8f99a8;
  font-size: 13px;
  line-height: 1.6;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filters input {
  width: 220px;
}
.filters select {
  width: 140px;
}
.filters input[type="date"] {
  width: 148px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-bottom: 26px;
}
.card {
  background: linear-gradient(130deg, #171c23, #11151a);
  border: 1px solid #2a3039;
  border-radius: 9px;
  padding: 20px;
  min-width: 0;
}
.kpi .label {
  font-size: 11px;
  color: #929eaf;
}
.kpi strong {
  display: block;
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 16px 0 12px;
}
.kpi small {
  font-size: 10px;
  color: #8294ab;
}
.kpi.featured {
  background: linear-gradient(125deg, #1b2737, #131c27);
  border-color: #364b65;
}
.grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.grid.equal {
  grid-template-columns: 1fr 1fr;
}
.panel {
  background: #11151a;
  border: 1px solid #292f37;
  border-radius: 9px;
  overflow: hidden;
  min-width: 0;
}
.panel-head {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #242b33;
  gap: 12px;
}
.panel-body {
  padding: 20px;
}
.pipeline {
  display: flex;
  gap: 7px;
  align-items: stretch;
  overflow: auto;
  padding: 23px 20px;
}
.funnel-step {
  min-width: 70px;
  flex: 1;
  padding: 14px 10px;
  border-left: 2px solid #537499;
  background: #17202c;
  border-radius: 0 5px 5px 0;
}
.funnel-step small {
  display: block;
  font-size: 9px;
  color: #a6b7ca;
  white-space: nowrap;
}
.funnel-step strong {
  display: block;
  font-size: 24px;
  font-weight: 500;
  margin: 14px 0;
}
.funnel-step em {
  font-style: normal;
  font-size: 9px;
  color: #8591a1;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  letter-spacing: 0.8px;
  font-weight: 500;
  text-transform: uppercase;
  color: #8d98a9;
  padding: 14px 18px;
  background: #151a21;
}
td {
  padding: 15px 18px;
  border-top: 1px solid #232a32;
  font-size: 12px;
  color: #abb4c2;
}
td strong {
  color: #e5e3dc;
  font-weight: 500;
}
td small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: #778598;
}
tr:hover td {
  background: #161d26;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #9cafcf;
}
.status,
.score {
  display: inline-flex;
  padding: 5px 7px;
  border: 1px solid #36445a;
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 0.5px;
  background: #192536;
  color: #b9cce9;
}
.status.won {
  border-color: #33594d;
  background: #172a23;
  color: #a8d4bf;
}
.status.lost,
.status.no_go,
.status.not_interested {
  border-color: #514244;
  background: #261b20;
  color: #b8a1a8;
}
.score {
  border-radius: 50%;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
}
.score.a {
  color: #b7d8c9;
  background: #1b3028;
  border-color: #385447;
}
.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  color: #8693a4;
  font-size: 11px;
  gap: 12px;
}
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #282e35;
}
.list-item:last-child {
  border: 0;
}
.list-item p {
  margin-top: 6px;
  font-size: 11px;
  color: #8591a2;
}
.call-phone {
  font-size: 26px;
  letter-spacing: -0.7px;
  color: #ceddf5;
  display: block;
  margin: 18px 0;
}
.detail-columns {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.facts dt {
  font-size: 10px;
  color: #8491a3;
  margin-bottom: 6px;
}
.facts dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.timeline {
  padding: 20px;
}
.event {
  position: relative;
  padding: 0 0 24px 25px;
  border-left: 1px solid #354050;
  font-size: 12px;
  line-height: 1.6;
}
.event:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8babc8;
}
.event:last-child {
  padding-bottom: 0;
}
.event small {
  display: block;
  color: #778597;
  margin-bottom: 7px;
  font-size: 10px;
}
.event p {
  overflow-wrap: anywhere;
}
.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.quick button {
  font-size: 11px;
}
.banner {
  background: #172437;
  border: 1px solid #34465f;
  padding: 22px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.banner h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.kanban {
  display: flex;
  gap: 12px;
  overflow: auto;
  padding-bottom: 18px;
}
.kanban-column {
  flex: 0 0 228px;
  background: #11151b;
  border: 1px solid #2d3440;
  border-radius: 8px;
  padding: 14px;
}
.kanban-column h3 {
  font-size: 11px;
  color: #a8b5c8;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}
.lead-tile {
  display: block;
  padding: 16px;
  background: #1b212a;
  border: 1px solid #303a48;
  border-radius: 6px;
  margin-bottom: 10px;
}
.lead-tile strong {
  font-weight: 500;
  font-size: 12px;
}
.lead-tile p {
  font-size: 10px;
  color: #8c9aae;
  margin: 9px 0;
}
.lead-tile span {
  font-size: 11px;
  color: #b9cde7;
}
.empty {
  padding: 40px 20px;
  text-align: center;
  color: #8b98a9;
  font-size: 13px;
  line-height: 1.8;
}
.notice {
  padding: 13px 16px;
  border: 1px solid #3c424c;
  background: #171d25;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: #aeb9c8;
  margin-bottom: 20px;
}
.error {
  color: #edb0aa;
}
.login {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-art {
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(ellipse at 15% 65%, #1c2c41, transparent 65%);
  border-right: 1px solid #293039;
}
.login-art h1 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  max-width: 550px;
  margin: 45px 0 24px;
}
.login-art p {
  max-width: 350px;
  line-height: 1.8;
  color: #97a2b1;
}
.login-form {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 35px;
}
.login-form form {
  width: 100%;
  max-width: 340px;
}
.login-form h2 {
  font-size: 25px;
  margin-bottom: 12px;
}
.login-form .muted {
  margin-bottom: 30px;
  font-size: 12px;
  line-height: 1.7;
}
.login-form label {
  margin-bottom: 20px;
}
.login-form button {
  width: 100%;
  margin-top: 8px;
}
.login-form small {
  display: block;
  color: #6f7d91;
  font-size: 10px;
  line-height: 1.7;
  margin-top: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full {
  grid-column: 1/-1;
}
dialog {
  background: #12171e;
  border: 1px solid #3b4759;
  border-radius: 12px;
  color: #e8e6df;
  width: min(620px, calc(100vw - 28px));
  padding: 28px;
  max-height: 90svh;
  overflow: auto;
}
dialog::backdrop {
  background: #05080bd9;
  backdrop-filter: blur(5px);
}
dialog h2 {
  margin-bottom: 22px;
}
.close {
  float: right;
  background: none;
  padding: 3px 9px;
  font-size: 20px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 22px;
  border: 1px solid #4c5c73;
  border-radius: 8px;
  background: #26354a;
  z-index: 100;
  display: none;
  max-width: calc(100vw - 48px);
}
.mobile-menu {
  display: none;
}
.metric-bar {
  height: 5px;
  background: #202b39;
  border-radius: 3px;
  margin-top: 14px;
  overflow: hidden;
}
.metric-bar i {
  height: 100%;
  background: #7a9dbf;
  display: block;
}
.chart {
  display: flex;
  gap: 8px;
  height: 150px;
  align-items: end;
  margin-top: 18px;
}
.chart-col {
  flex: 1;
  text-align: center;
  min-width: 35px;
}
.chart-bar {
  border: 1px solid #58778e;
  background: linear-gradient(#456c83, #273b4b);
  width: 75%;
  margin: auto;
  border-radius: 3px 3px 0 0;
  min-height: 3px;
}
.chart-col small {
  font-size: 9px;
  color: #8493a7;
  display: block;
  margin-top: 10px;
}
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip-row .btn {
  font-size: 11px;
}
.chip-row .selected {
  background: #263c54;
  border-color: #57799e;
}
.review-table td {
  max-width: 280px;
  white-space: normal;
}
.review-table select {
  min-width: 110px;
}
.legend {
  font-size: 10px;
  color: #718399;
  margin-top: 14px;
  line-height: 1.7;
}
.package-card {
  display: flex;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid #2a3038;
}
.package-card strong {
  font-weight: 500;
  font-size: 16px;
}
.package-card p {
  font-size: 11px;
  color: #8694a7;
  margin-top: 8px;
}
@media (min-width: 1500px) {
  .kpis {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (max-width: 1050px) {
  .content {
    padding: 24px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .kpis {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid,
  .detail-columns {
    grid-template-columns: 1fr;
  }
  .pipeline {
    gap: 6px;
  }
  .sidebar {
    width: 190px;
  }
  .shell {
    margin-left: 190px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    transform: translateX(-100%);
    width: 220px;
    transition: transform 0.15s;
  }
  .sidebar.open {
    transform: none;
    box-shadow: 0 0 0 100vmax #0008;
  }
  .shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
    padding: 4px 10px;
  }
  .topbar {
    padding: 14px 18px;
    gap: 8px;
  }
  .content {
    padding: 23px 16px;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .card {
    padding: 16px;
  }
  .kpi strong {
    font-size: 25px;
  }
  .heading h1 {
    font-size: 26px;
  }
  .banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .grid.equal,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .filters input {
    width: 100%;
  }
  .filters select {
    flex: 1;
    min-width: 130px;
  }
  .login {
    display: block;
  }
  .login-art {
    padding: 32px;
    border-bottom: 1px solid #283242;
  }
  .login-art h1 {
    font-size: 38px;
    margin: 20px 0;
  }
  .login-art p {
    font-size: 12px;
  }
  .login-form {
    padding: 28px 22px;
  }
  .facts {
    gap: 16px;
  }
  th,
  td {
    padding: 13px;
  }
  .demo {
    font-size: 9px;
  }
  .topbar .path {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 1200px) {
  .kpis {
    grid-template-columns: repeat(6, 1fr);
  }
  .kpi {
    padding: 16px;
  }
  .kpi strong {
    margin: 10px 0;
    font-size: 26px;
  }
}

.mark img {
  width: 27px;
  height: 25px;
  object-fit: contain;
}
.mark {
  border: none;
  background: none;
}

.mark {
  width: 34px;
  height: 28px;
}
.mark img {
  width: 34px;
  height: 22px;
  filter: grayscale(1) brightness(0.94) sepia(0.1);
}
@media (min-width: 1200px) {
  .kpis .featured:last-child {
    grid-column: span 2;
  }
  .kpis .featured:nth-last-child(2) {
    grid-column: span 1;
  }
}

@media (min-width: 1200px) {
  .kpis {
    grid-template-columns: repeat(7, 1fr);
  }
  .caller-kpis {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sidebar-close {
  display: none;
}
@media (max-width: 700px) {
  .sidebar-close {
    display: block;
    position: absolute;
    right: 12px;
    top: 70px;
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 20px;
  }
  .sidebar:not(.open) {
    pointer-events: none;
  }
}
/* Production caller controls keep touch actions usable on narrow screens. */
.language-switch{position:fixed;right:12px;bottom:12px;z-index:1000;display:flex;gap:4px;padding:4px;background:#111c2e;border:1px solid #345;border-radius:10px}.language-switch button{min-width:44px;min-height:44px}.language-switch button[aria-pressed=true]{background:#6854db;color:white}.conversations{margin-top:24px}.conversations pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.conversations details{margin:16px 0}textarea{min-height:140px}
@media(max-width:700px){.content{min-width:0;padding:16px!important}.detail-columns,.grid.equal{grid-template-columns:minmax(0,1fr)!important}.stack,.panel,.card{min-width:0}.quick,.actions{flex-wrap:wrap}.quick button,.actions button{min-height:44px}.call-phone{font-size:clamp(20px,7vw,34px);overflow-wrap:anywhere}.panel-body,.panel-head{padding:16px}.facts dd,p,pre{overflow-wrap:anywhere}.heading,.page-heading{flex-wrap:wrap}input,select,textarea{max-width:100%;min-width:0}.filters{flex-wrap:wrap}.language-switch{bottom:8px;right:8px}}
