@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0b2147;
  --ink-2: #233957;
  --muted: #64758d;
  --line: #dce6ec;
  --canvas: #f4f7f9;
  --panel: #ffffff;
  --teal: #08b5a6;
  --teal-dark: #008f84;
  --mint: #e2f8f4;
  --blue: #2b7de9;
  --blue-soft: #eaf2fe;
  --amber: #d98b12;
  --amber-soft: #fff4d9;
  --coral: #e4655b;
  --coral-soft: #fff0ee;
  --navy: #082b57;
  --shadow: 0 10px 32px rgba(11, 33, 71, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
}

body {
  min-height: 100vh;
  margin: 0;
}

body,
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 248px;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  background: var(--navy);
  color: #fff;
}

.brand {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  transform: rotate(45deg);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i::before,
.brand-mark i::after {
  content: "";
  position: absolute;
  background: #14cbbb;
}

.brand-mark::before {
  top: 17px;
  left: 2px;
  width: 34px;
  height: 3px;
}

.brand-mark::after {
  top: 2px;
  left: 17px;
  width: 3px;
  height: 34px;
}

.brand-mark i::before {
  inset: 9px;
  border: 2px solid #14cbbb;
  background: transparent;
}

.brand-mark i::after {
  inset: 15px;
  background: var(--navy);
}

.brand > span:last-child {
  min-width: 0;
  display: grid;
}

.brand strong {
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
}

.brand small {
  margin-top: 2px;
  color: #9fc0d4;
  font-size: 11px;
}

.main-nav {
  display: grid;
  gap: 5px;
  margin-top: 38px;
}

.main-nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 14px;
  border-radius: 6px;
  color: #b9d1df;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.main-nav a.is-active {
  background: #fff;
  color: var(--navy);
}

.main-nav a.is-active svg {
  color: var(--teal);
}

.sidebar-foot {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 14px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.user-mini {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-mini > span,
.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-dark);
  font-style: normal;
  font-weight: 800;
}

.user-mini p {
  min-width: 0;
  display: grid;
  gap: 2px;
  margin: 0;
}

.user-mini strong,
.user-mini small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-mini strong {
  font-size: 12px;
}

.user-mini small {
  color: #8fb1c6;
  font-size: 9px;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.workspace {
  min-width: 0;
  grid-column: 2;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.mobile-menu {
  display: none;
}

.topbar-title {
  display: grid;
  gap: 2px;
}

.topbar-title small {
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar-title strong {
  font-size: 20px;
}

.topbar-actions {
  display: flex;
  gap: 9px;
  margin-left: auto;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.button-primary:hover {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.button-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: #a9bdc9;
}

.button-large {
  min-height: 50px;
  width: 100%;
}

.messages {
  position: fixed;
  top: 88px;
  right: 22px;
  z-index: 60;
  width: min(380px, calc(100% - 32px));
}

.message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #b9e8df;
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--teal-dark);
  font-weight: 700;
  transition: opacity 200ms ease, transform 200ms ease;
}

.message.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.content {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 26px 28px 56px;
}

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

.metric {
  min-height: 132px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(11, 33, 71, 0.04);
}

.metric-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 7px;
}

.metric-icon.mint {
  background: var(--mint);
  color: var(--teal-dark);
}

.metric-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.metric-icon.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.metric-icon.coral {
  background: var(--coral-soft);
  color: var(--coral);
}

.metric p {
  min-width: 0;
  display: grid;
  gap: 2px;
  margin: 0;
}

.metric small,
.metric span {
  color: var(--muted);
  font-size: 11px;
}

.metric strong {
  overflow: hidden;
  font-size: 26px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-block {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(11, 33, 71, 0.035);
}

.section-heading {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading.compact {
  min-height: 42px;
}

.section-heading h2 {
  margin: 0;
  font-size: 18px;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.text-link svg {
  width: 16px;
}

.counter {
  min-width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 800;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(8, minmax(112px, 1fr));
  overflow-x: auto;
  scrollbar-width: thin;
}

.pipeline-stage {
  position: relative;
  min-width: 112px;
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px;
  border-top: 3px solid #a7b6c5;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
}

.pipeline-stage:first-child {
  border-radius: 6px 0 0 6px;
}

.pipeline-stage:last-child {
  border-right: 0;
  border-radius: 0 6px 6px 0;
}

.pipeline-stage:hover {
  background: #f3f8fa;
}

.pipeline-stage span {
  min-height: 34px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.pipeline-stage strong {
  font-size: 24px;
}

.pipeline-stage small {
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 700;
}

.pipeline-stage.status-new {
  border-top-color: #2b7de9;
}

.pipeline-stage.status-contacted,
.pipeline-stage.status-estimate {
  border-top-color: #00a9a0;
}

.pipeline-stage.status-approval {
  border-top-color: #cf8a20;
}

.pipeline-stage.status-scheduled,
.pipeline-stage.status-in_progress {
  border-top-color: #735ec9;
}

.pipeline-stage.status-completed {
  border-top-color: #31a66c;
}

.pipeline-stage.status-lost {
  border-top-color: #d46161;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.task-list,
.recent-list {
  display: grid;
}

.task-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.task-row:first-child {
  border-top: 0;
}

.task-time {
  display: grid;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.task-time small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.task-row p {
  min-width: 0;
  display: grid;
  gap: 3px;
  margin: 0;
}

.task-row p strong,
.task-row p span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-row p strong {
  font-size: 12px;
}

.task-row p span,
.task-row em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.task-row.is-overdue .task-time {
  color: var(--coral);
}

.recent-list > a {
  min-height: 66px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 82px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.recent-list > a:first-child {
  border-top: 0;
}

.recent-list p {
  min-width: 0;
  display: grid;
  gap: 3px;
  margin: 0;
}

.recent-list p strong,
.recent-list p small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-list p strong {
  font-size: 12px;
}

.recent-list p small {
  color: var(--muted);
  font-size: 9px;
}

.recent-list em {
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.status-badge {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 13px;
  background: #edf1f4;
  color: #53667f;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.status-badge.status-new {
  background: var(--blue-soft);
  color: #236ac4;
}

.status-badge.status-contacted,
.status-badge.status-estimate {
  background: var(--mint);
  color: var(--teal-dark);
}

.status-badge.status-approval {
  background: var(--amber-soft);
  color: #9f6915;
}

.status-badge.status-scheduled,
.status-badge.status-in_progress {
  background: #efecff;
  color: #5e4bb3;
}

.status-badge.status-completed {
  background: #e7f7ee;
  color: #247e51;
}

.status-badge.status-lost {
  background: var(--coral-soft);
  color: #b54d46;
}

.city-performance {
  overflow-x: auto;
}

.table-head,
.performance-row {
  min-width: 700px;
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(4, minmax(100px, 0.75fr));
  align-items: center;
  gap: 12px;
}

.table-head {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 5px;
  background: #f3f6f8;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.performance-row {
  min-height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.performance-row > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.performance-row > span:first-child svg {
  width: 17px;
  color: var(--teal);
}

.conversion {
  color: var(--teal-dark);
  font-weight: 800;
}

.empty-state {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
}

.empty-state.wide {
  grid-column: 1 / -1;
}

.empty-state > svg {
  width: 34px;
  height: 34px;
  color: #9bb1bf;
}

.empty-state p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.empty-state strong {
  color: var(--ink);
}

.empty-state span {
  font-size: 12px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 0.5fr)) auto auto;
  gap: 9px;
  margin-bottom: 18px;
}

.filters-simple {
  grid-template-columns: minmax(260px, 1fr) auto auto;
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  top: 11px;
  left: 12px;
  width: 18px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #cfdce4;
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 181, 166, 0.12);
}

.search-field input {
  padding-left: 40px;
}

.clear-filter {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}

.data-table {
  overflow-x: auto;
}

.data-row {
  min-width: 960px;
  min-height: 64px;
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.leads-table .data-row {
  grid-template-columns: 86px minmax(260px, 1.6fr) minmax(100px, 0.6fr) minmax(110px, 0.7fr) minmax(130px, 0.75fr) 95px 22px;
}

.customers-table .data-row {
  grid-template-columns: minmax(280px, 1.6fr) 110px 130px minmax(180px, 1fr) 70px;
}

.users-table .data-row {
  grid-template-columns: minmax(260px, 1.5fr) 140px 150px 140px 100px;
}

.data-row:not(.data-head):hover {
  background: #f8fbfc;
}

.data-head {
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  background: #f3f6f8;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.data-row > span {
  min-width: 0;
}

.data-row > span:not(.customer-cell) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-row > span:first-child,
.data-row > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.data-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-row em {
  color: var(--muted);
  font-style: normal;
}

.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: #a7b6c5;
}

.status-dot.status-new {
  background: var(--blue);
}

.status-dot.status-contacted,
.status-dot.status-estimate {
  background: var(--teal);
}

.status-dot.status-approval {
  background: var(--amber);
}

.status-dot.status-scheduled,
.status-dot.status-in_progress {
  background: #735ec9;
}

.status-dot.status-completed {
  background: #31a66c;
}

.status-dot.status-lost {
  background: var(--coral);
}

.customer-cell {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.customer-cell > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.page-actions {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.page-actions p {
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.city-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(11, 33, 71, 0.035);
}

.city-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.city-card-head > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--mint);
  color: var(--teal-dark);
}

.availability {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
  background: #aebbc6;
}

.availability.is-active {
  background: #25aa6a;
  box-shadow: 0 0 0 4px #e7f7ee;
}

.city-card h2 {
  margin: 22px 0 4px;
  font-size: 21px;
}

.city-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.city-card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.city-card-metrics span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafb;
}

.city-card-metrics small {
  color: var(--muted);
  font-size: 9px;
}

.city-card-metrics strong {
  font-size: 19px;
}

.city-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.city-card-foot b {
  color: #248257;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(260px, 0.65fr);
  align-items: start;
  gap: 18px;
}

.form-card {
  margin-top: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.form-grid label {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 750;
}

.form-grid label > span b {
  color: var(--coral);
}

.form-grid label > small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.form-grid label > em {
  color: var(--coral);
  font-size: 10px;
  font-style: normal;
}

.field-wide {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 9px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.form-aside {
  min-height: 280px;
  padding: 26px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
}

.form-aside > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: #16cbb9;
}

.form-aside h2 {
  margin: 28px 0 12px;
  font-size: 21px;
}

.form-aside p {
  margin: 0;
  color: #b7cede;
  font-size: 12px;
  line-height: 1.7;
}

.form-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #f0c2bd;
  border-radius: 6px;
  background: var(--coral-soft);
  color: #a84640;
  font-size: 11px;
  font-weight: 700;
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-bottom: 14px;
}

.lead-hero {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
}

.lead-hero h1 {
  margin: 14px 0 4px;
  font-size: 28px;
}

.lead-hero p {
  margin: 0;
  color: #b9d1df;
}

.lead-hero > strong {
  font-size: 30px;
  white-space: nowrap;
}

.status-flow {
  display: grid;
  grid-template-columns: repeat(8, minmax(92px, 1fr));
  overflow-x: auto;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.status-flow button {
  position: relative;
  min-width: 92px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.status-flow button:last-child {
  border-right: 0;
}

.status-flow button i {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 2px solid #a9b8c5;
  border-radius: 50%;
  background: #fff;
}

.status-flow button.is-current {
  color: var(--ink);
}

.status-flow button.is-current i {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--mint);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}

.info-list div {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-list div:nth-child(odd) {
  padding-right: 18px;
}

.info-list dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.info-list dd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.info-list a {
  color: var(--teal-dark);
}

.quick-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.quick-note textarea {
  min-height: 72px;
}

.timeline {
  display: grid;
  padding-top: 8px;
}

.timeline article {
  position: relative;
  min-height: 82px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding-top: 14px;
}

.timeline article::before {
  content: "";
  position: absolute;
  top: 44px;
  bottom: -8px;
  left: 16px;
  border-left: 1px solid var(--line);
}

.timeline article:last-child::before {
  display: none;
}

.timeline article > span {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-dark);
}

.timeline article > span svg {
  width: 16px;
}

.timeline article > div {
  display: grid;
  align-content: start;
  gap: 4px;
}

.timeline strong {
  font-size: 12px;
}

.timeline p {
  margin: 0;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.5;
}

.timeline small {
  color: var(--muted);
  font-size: 9px;
}

.sidebar-backdrop {
  display: none;
}

.login-page {
  background: #edf3f6;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
}

.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 6vw, 86px);
  background: var(--navy);
  color: #fff;
}

.brand-large {
  padding: 0;
}

.brand-large strong {
  font-size: 18px;
}

.brand-large small {
  font-size: 12px;
}

.login-label {
  margin: 0 0 16px;
  color: #18cbbb;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-brand h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.08;
}

.login-brand > div:nth-child(2) > p:last-child {
  max-width: 620px;
  margin: 24px 0 0;
  color: #b8cfdd;
  font-size: 16px;
  line-height: 1.7;
}

.login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c7dbe6;
  font-size: 12px;
}

.login-points li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.login-points svg {
  width: 16px;
  color: #18cbbb;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-form {
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.login-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  border-radius: 7px;
  background: var(--mint);
  color: var(--teal-dark);
}

.login-heading h2 {
  margin: 0;
  font-size: 22px;
}

.login-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.login-form > label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 750;
}

.login-form > .button {
  margin-top: 24px;
}

.login-help {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar-open .sidebar {
    transform: translateX(0);
  }

  .workspace {
    width: 100%;
  }

  .mobile-menu {
    display: grid;
    color: var(--ink);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    border: 0;
    background: rgba(7, 28, 52, 0.48);
  }

  .sidebar-open .sidebar-backdrop {
    display: block;
  }

  .form-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .form-aside {
    min-height: 220px;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: 420px;
    padding: 36px;
  }

  .login-brand h1 {
    font-size: 44px;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 68px;
    padding: 0 14px;
  }

  .topbar-title small {
    display: none;
  }

  .topbar-title strong {
    font-size: 16px;
  }

  .topbar-actions .button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
  }

  .hide-mobile {
    display: none;
  }

  .content {
    padding: 16px 14px 40px;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .metric {
    min-height: 116px;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    padding: 14px;
  }

  .metric-icon {
    width: 36px;
    height: 36px;
  }

  .metric-icon svg {
    width: 18px;
  }

  .metric strong {
    font-size: 19px;
  }

  .section-block {
    padding: 16px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .pipeline {
    margin-right: -16px;
    margin-left: -16px;
    padding: 0 16px;
  }

  .task-row {
    grid-template-columns: 44px minmax(0, 1fr) 16px;
  }

  .task-row em {
    display: none;
  }

  .recent-list > a {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .recent-list .status-badge {
    display: none;
  }

  .filters,
  .filters-simple {
    grid-template-columns: 1fr 1fr;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .filters .button {
    width: 100%;
  }

  .list-section {
    overflow: hidden;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .lead-hero h1 {
    font-size: 24px;
  }

  .lead-hero > strong {
    font-size: 25px;
  }

  .status-flow {
    margin-right: -14px;
    margin-left: -14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .info-list div:nth-child(odd) {
    padding-right: 0;
  }

  .quick-note {
    grid-template-columns: 1fr;
  }

  .detail-actions {
    justify-content: stretch;
  }

  .detail-actions .button {
    flex: 1;
    padding: 0 10px;
  }

  .login-brand {
    min-height: 390px;
    padding: 28px 22px;
  }

  .login-brand h1 {
    font-size: 36px;
  }

  .login-brand > div:nth-child(2) > p:last-child {
    font-size: 13px;
  }

  .login-points {
    display: grid;
  }

  .login-panel {
    padding: 18px 14px 36px;
  }

  .login-form {
    padding: 24px 20px;
  }
}
